Documentation ¶
Index ¶
- Constants
- Variables
- func GetUserAgent() string
- type AttributeCount
- type AttributeCoverage
- type ByProjectKeyImageSearchConfigRequestBuilder
- type ByProjectKeyImageSearchConfigRequestMethodGet
- func (r *ByProjectKeyImageSearchConfigRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyImageSearchConfigRequestMethodGet) Execute(ctx context.Context) (result *ImageSearchConfigResponse, err error)
- func (rb *ByProjectKeyImageSearchConfigRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyImageSearchConfigRequestMethodGet
- type ByProjectKeyImageSearchConfigRequestMethodPost
- func (r *ByProjectKeyImageSearchConfigRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeyImageSearchConfigRequestMethodPost) Execute(ctx context.Context) (result *ImageSearchConfigResponse, err error)
- func (rb *ByProjectKeyImageSearchConfigRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyImageSearchConfigRequestMethodPost
- type ByProjectKeyImageSearchRequestBuilder
- type ByProjectKeyImageSearchRequestMethodPost
- func (r *ByProjectKeyImageSearchRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeyImageSearchRequestMethodPost) Execute(ctx context.Context) (result *ImageSearchResponse, err error)
- func (rb *ByProjectKeyImageSearchRequestMethodPost) Limit(v int) *ByProjectKeyImageSearchRequestMethodPost
- func (rb *ByProjectKeyImageSearchRequestMethodPost) Offset(v int) *ByProjectKeyImageSearchRequestMethodPost
- func (rb *ByProjectKeyImageSearchRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyImageSearchRequestMethodPost
- func (rb *ByProjectKeyImageSearchRequestMethodPost) WithQueryParams(input ByProjectKeyImageSearchRequestMethodPostInput) *ByProjectKeyImageSearchRequestMethodPost
- type ByProjectKeyImageSearchRequestMethodPostInput
- type ByProjectKeyMissingDataAttributesRequestBuilder
- type ByProjectKeyMissingDataAttributesRequestMethodPost
- func (r *ByProjectKeyMissingDataAttributesRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataAttributesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
- func (rb *ByProjectKeyMissingDataAttributesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataAttributesRequestMethodPost
- type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder
- type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet
- func (r *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingDataTaskStatus, err error)
- func (rb *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet
- type ByProjectKeyMissingDataAttributesStatusRequestBuilder
- type ByProjectKeyMissingDataImagesRequestBuilder
- type ByProjectKeyMissingDataImagesRequestMethodPost
- func (r *ByProjectKeyMissingDataImagesRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataImagesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
- func (rb *ByProjectKeyMissingDataImagesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataImagesRequestMethodPost
- type ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder
- type ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet
- func (r *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingImagesTaskStatus, err error)
- func (rb *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet
- type ByProjectKeyMissingDataImagesStatusRequestBuilder
- type ByProjectKeyMissingDataPricesRequestBuilder
- type ByProjectKeyMissingDataPricesRequestMethodPost
- func (r *ByProjectKeyMissingDataPricesRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataPricesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
- func (rb *ByProjectKeyMissingDataPricesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataPricesRequestMethodPost
- type ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder
- type ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet
- func (r *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingPricesTaskStatus, err error)
- func (rb *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet
- type ByProjectKeyMissingDataPricesStatusRequestBuilder
- type ByProjectKeyMissingDataRequestBuilder
- func (rb *ByProjectKeyMissingDataRequestBuilder) Attributes() *ByProjectKeyMissingDataAttributesRequestBuilder
- func (rb *ByProjectKeyMissingDataRequestBuilder) Images() *ByProjectKeyMissingDataImagesRequestBuilder
- func (rb *ByProjectKeyMissingDataRequestBuilder) Prices() *ByProjectKeyMissingDataPricesRequestBuilder
- type ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder
- type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ConfidenceMax(v float64) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ConfidenceMin(v float64) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (r *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Execute(ctx context.Context) (result *GeneralCategoryRecommendationPagedQueryResponse, err error)
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Limit(v int) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Offset(v int) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ProductImageUrl(v string) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ProductName(v string) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) WithQueryParams(input ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
- type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput
- type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder
- type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) ConfidenceMax(v float64) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) ConfidenceMin(v float64) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (r *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Execute(ctx context.Context) (result *ProjectCategoryRecommendationPagedQueryResponse, err error)
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Limit(v int) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Offset(v int) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Staged(v bool) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) WithQueryParams(...) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
- type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGetInput
- type ByProjectKeyRecommendationsProjectCategoriesRequestBuilder
- type ByProjectKeyRecommendationsRequestBuilder
- type ByProjectKeyRequestBuilder
- func (rb *ByProjectKeyRequestBuilder) ImageSearch() *ByProjectKeyImageSearchRequestBuilder
- func (rb *ByProjectKeyRequestBuilder) MissingData() *ByProjectKeyMissingDataRequestBuilder
- func (rb *ByProjectKeyRequestBuilder) Recommendations() *ByProjectKeyRecommendationsRequestBuilder
- func (rb *ByProjectKeyRequestBuilder) Similarities() *ByProjectKeySimilaritiesRequestBuilder
- type ByProjectKeySimilaritiesProductsRequestBuilder
- type ByProjectKeySimilaritiesProductsRequestMethodPost
- func (r *ByProjectKeySimilaritiesProductsRequestMethodPost) Dump() map[string]interface{}
- func (rb *ByProjectKeySimilaritiesProductsRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
- func (rb *ByProjectKeySimilaritiesProductsRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeySimilaritiesProductsRequestMethodPost
- type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestBuilder
- type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet
- func (r *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
- func (rb *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *SimilarProductsTaskStatus, err error)
- func (rb *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet
- type ByProjectKeySimilaritiesProductsStatusRequestBuilder
- type ByProjectKeySimilaritiesRequestBuilder
- type CategoryReference
- type ChangeStatusUpdateAction
- type Client
- type ClientConfig
- type Date
- type DecodeStruct
- type GeneralCategoryRecommendation
- type GeneralCategoryRecommendationPagedQueryResponse
- type GenericRequestError
- type ImageSearchConfigRequest
- type ImageSearchConfigResponse
- type ImageSearchConfigStatus
- type ImageSearchConfigUpdateAction
- type ImageSearchResponse
- type LocalizedString
- type MissingAttributes
- type MissingAttributesDetails
- type MissingAttributesMeta
- type MissingAttributesPagedQueryResult
- type MissingAttributesSearchRequest
- type MissingDataTaskStatus
- type MissingImages
- type MissingImagesCount
- type MissingImagesMeta
- type MissingImagesPagedQueryResult
- type MissingImagesProductLevel
- type MissingImagesSearchRequest
- type MissingImagesTaskStatus
- type MissingImagesVariantLevel
- type MissingPrices
- type MissingPricesMeta
- type MissingPricesPagedQueryResult
- type MissingPricesProductCount
- type MissingPricesProductLevel
- type MissingPricesSearchRequest
- type MissingPricesTaskStatus
- type MissingPricesVariantLevel
- type Money
- type ProductReference
- type ProductSetSelector
- type ProductTypeReference
- type ProductVariant
- type ProjectCategoryRecommendation
- type ProjectCategoryRecommendationMeta
- type ProjectCategoryRecommendationPagedQueryResponse
- type Reference
- type ReferenceTypeId
- type ResultItem
- type SetUserAgentTransport
- type SimilarProduct
- type SimilarProductMeta
- type SimilarProductPair
- type SimilarProductSearchRequest
- type SimilarProductSearchRequestMeta
- type SimilarProductsPagedQueryResult
- type SimilarProductsTaskStatus
- type SimilarityMeasures
- type TaskStatusEnum
- type TaskToken
Constants ¶
const Version = "1.3.0"
Version identifies the current library version. Should match the git tag
Variables ¶
var ErrNotFound = errors.New("resource not found")
Functions ¶
func GetUserAgent ¶
func GetUserAgent() string
Types ¶
type AttributeCount ¶
type AttributeCount struct { // Number of attributes defined in the product type. ProductTypeAttributes int `json:"productTypeAttributes"` // Number of attributes defined in the variant. VariantAttributes int `json:"variantAttributes"` // Number of attributes missing values in the variant. MissingAttributeValues int `json:"missingAttributeValues"` }
type AttributeCoverage ¶
type AttributeCoverage struct { // The percentage of attributes from the product type defined in the product variant. A value of `1.0` indicates a product variant contains all attributes defined in the product type. Names float64 `json:"names"` // Represents the percentage of attributes in the product variant that contain values. Values float64 `json:"values"` }
type ByProjectKeyImageSearchConfigRequestBuilder ¶
type ByProjectKeyImageSearchConfigRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyImageSearchConfigRequestBuilder) Get ¶
func (rb *ByProjectKeyImageSearchConfigRequestBuilder) Get() *ByProjectKeyImageSearchConfigRequestMethodGet
* * Get the current image search config.
func (*ByProjectKeyImageSearchConfigRequestBuilder) Post ¶
func (rb *ByProjectKeyImageSearchConfigRequestBuilder) Post(body ImageSearchConfigRequest) *ByProjectKeyImageSearchConfigRequestMethodPost
* * Endpoint to update the image search config.
type ByProjectKeyImageSearchConfigRequestMethodGet ¶
type ByProjectKeyImageSearchConfigRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyImageSearchConfigRequestMethodGet) Dump ¶
func (r *ByProjectKeyImageSearchConfigRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyImageSearchConfigRequestMethodGet) Execute ¶
func (rb *ByProjectKeyImageSearchConfigRequestMethodGet) Execute(ctx context.Context) (result *ImageSearchConfigResponse, err error)
* * Get the current image search config.
func (*ByProjectKeyImageSearchConfigRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeyImageSearchConfigRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyImageSearchConfigRequestMethodGet
type ByProjectKeyImageSearchConfigRequestMethodPost ¶
type ByProjectKeyImageSearchConfigRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyImageSearchConfigRequestMethodPost) Dump ¶
func (r *ByProjectKeyImageSearchConfigRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeyImageSearchConfigRequestMethodPost) Execute ¶
func (rb *ByProjectKeyImageSearchConfigRequestMethodPost) Execute(ctx context.Context) (result *ImageSearchConfigResponse, err error)
* * Endpoint to update the image search config.
func (*ByProjectKeyImageSearchConfigRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeyImageSearchConfigRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyImageSearchConfigRequestMethodPost
type ByProjectKeyImageSearchRequestBuilder ¶
type ByProjectKeyImageSearchRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyImageSearchRequestBuilder) Config ¶
func (rb *ByProjectKeyImageSearchRequestBuilder) Config() *ByProjectKeyImageSearchConfigRequestBuilder
func (*ByProjectKeyImageSearchRequestBuilder) Post ¶
func (rb *ByProjectKeyImageSearchRequestBuilder) Post(body io.Reader) *ByProjectKeyImageSearchRequestMethodPost
* * Accepts an image file and returns similar products from product catalogue. *
type ByProjectKeyImageSearchRequestMethodPost ¶
type ByProjectKeyImageSearchRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyImageSearchRequestMethodPost) Dump ¶
func (r *ByProjectKeyImageSearchRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeyImageSearchRequestMethodPost) Execute ¶
func (rb *ByProjectKeyImageSearchRequestMethodPost) Execute(ctx context.Context) (result *ImageSearchResponse, err error)
* * Accepts an image file and returns similar products from product catalogue. *
func (*ByProjectKeyImageSearchRequestMethodPost) Limit ¶
func (rb *ByProjectKeyImageSearchRequestMethodPost) Limit(v int) *ByProjectKeyImageSearchRequestMethodPost
func (*ByProjectKeyImageSearchRequestMethodPost) Offset ¶
func (rb *ByProjectKeyImageSearchRequestMethodPost) Offset(v int) *ByProjectKeyImageSearchRequestMethodPost
func (*ByProjectKeyImageSearchRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeyImageSearchRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyImageSearchRequestMethodPost
func (*ByProjectKeyImageSearchRequestMethodPost) WithQueryParams ¶
func (rb *ByProjectKeyImageSearchRequestMethodPost) WithQueryParams(input ByProjectKeyImageSearchRequestMethodPostInput) *ByProjectKeyImageSearchRequestMethodPost
type ByProjectKeyImageSearchRequestMethodPostInput ¶
func (*ByProjectKeyImageSearchRequestMethodPostInput) Values ¶
func (input *ByProjectKeyImageSearchRequestMethodPostInput) Values() url.Values
type ByProjectKeyMissingDataAttributesRequestBuilder ¶
type ByProjectKeyMissingDataAttributesRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataAttributesRequestMethodPost ¶
type ByProjectKeyMissingDataAttributesRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataAttributesRequestMethodPost) Dump ¶
func (r *ByProjectKeyMissingDataAttributesRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataAttributesRequestMethodPost) Execute ¶
func (rb *ByProjectKeyMissingDataAttributesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
func (*ByProjectKeyMissingDataAttributesRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeyMissingDataAttributesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataAttributesRequestMethodPost
type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder ¶
type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet ¶
type ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Dump ¶
func (r *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Execute ¶
func (rb *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingDataTaskStatus, err error)
func (*ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestMethodGet
type ByProjectKeyMissingDataAttributesStatusRequestBuilder ¶
type ByProjectKeyMissingDataAttributesStatusRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataAttributesStatusRequestBuilder) WithTaskId ¶
func (rb *ByProjectKeyMissingDataAttributesStatusRequestBuilder) WithTaskId(taskId string) *ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder
type ByProjectKeyMissingDataImagesRequestBuilder ¶
type ByProjectKeyMissingDataImagesRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataImagesRequestMethodPost ¶
type ByProjectKeyMissingDataImagesRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataImagesRequestMethodPost) Dump ¶
func (r *ByProjectKeyMissingDataImagesRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataImagesRequestMethodPost) Execute ¶
func (rb *ByProjectKeyMissingDataImagesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
func (*ByProjectKeyMissingDataImagesRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeyMissingDataImagesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataImagesRequestMethodPost
type ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder ¶
type ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet ¶
type ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Dump ¶
func (r *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Execute ¶
func (rb *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingImagesTaskStatus, err error)
func (*ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataImagesStatusByTaskIdRequestMethodGet
type ByProjectKeyMissingDataImagesStatusRequestBuilder ¶
type ByProjectKeyMissingDataImagesStatusRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataImagesStatusRequestBuilder) WithTaskId ¶
func (rb *ByProjectKeyMissingDataImagesStatusRequestBuilder) WithTaskId(taskId string) *ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder
type ByProjectKeyMissingDataPricesRequestBuilder ¶
type ByProjectKeyMissingDataPricesRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataPricesRequestMethodPost ¶
type ByProjectKeyMissingDataPricesRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataPricesRequestMethodPost) Dump ¶
func (r *ByProjectKeyMissingDataPricesRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataPricesRequestMethodPost) Execute ¶
func (rb *ByProjectKeyMissingDataPricesRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
func (*ByProjectKeyMissingDataPricesRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeyMissingDataPricesRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyMissingDataPricesRequestMethodPost
type ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder ¶
type ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet ¶
type ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Dump ¶
func (r *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Execute ¶
func (rb *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *MissingPricesTaskStatus, err error)
func (*ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyMissingDataPricesStatusByTaskIdRequestMethodGet
type ByProjectKeyMissingDataPricesStatusRequestBuilder ¶
type ByProjectKeyMissingDataPricesStatusRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataPricesStatusRequestBuilder) WithTaskId ¶
func (rb *ByProjectKeyMissingDataPricesStatusRequestBuilder) WithTaskId(taskId string) *ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder
type ByProjectKeyMissingDataRequestBuilder ¶
type ByProjectKeyMissingDataRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyMissingDataRequestBuilder) Attributes ¶
func (rb *ByProjectKeyMissingDataRequestBuilder) Attributes() *ByProjectKeyMissingDataAttributesRequestBuilder
func (*ByProjectKeyMissingDataRequestBuilder) Images ¶
func (rb *ByProjectKeyMissingDataRequestBuilder) Images() *ByProjectKeyMissingDataImagesRequestBuilder
func (*ByProjectKeyMissingDataRequestBuilder) Prices ¶
func (rb *ByProjectKeyMissingDataRequestBuilder) Prices() *ByProjectKeyMissingDataPricesRequestBuilder
type ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder ¶
type ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder) Get ¶
func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder) Get() *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
* * This endpoint takes arbitrary product names or image URLs and generates recommendations from a general set of categories, which cover a broad range of industries. The full list of supported categories can be found [here](https://docs.commercetools.com/category_recommendations_supported_categories.txt). These are independent of the categories that are actually defined in your project. The main purpose of this API is to provide a quick way to test the behavior of the category recommendations engine for different names and images. In contrast to the [project-specific endpoint](https://docs.commercetools.com/http-api-projects-categoryrecommendations#project-specific-category-recommendations), this endpoint does not have [activation criteria](https://docs.commercetools.com/http-api-projects-categoryrecommendations#activating-the-api) and is enabled for all projects. *
type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet ¶
type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ConfidenceMax ¶
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ConfidenceMin ¶
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Dump ¶
func (r *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Execute ¶
func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) Execute(ctx context.Context) (result *GeneralCategoryRecommendationPagedQueryResponse, err error)
* * This endpoint takes arbitrary product names or image URLs and generates recommendations from a general set of categories, which cover a broad range of industries. The full list of supported categories can be found [here](https://docs.commercetools.com/category_recommendations_supported_categories.txt). These are independent of the categories that are actually defined in your project. The main purpose of this API is to provide a quick way to test the behavior of the category recommendations engine for different names and images. In contrast to the [project-specific endpoint](https://docs.commercetools.com/http-api-projects-categoryrecommendations#project-specific-category-recommendations), this endpoint does not have [activation criteria](https://docs.commercetools.com/http-api-projects-categoryrecommendations#activating-the-api) and is enabled for all projects. *
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ProductImageUrl ¶
func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ProductImageUrl(v string) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) ProductName ¶
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGet) WithQueryParams ¶
type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput ¶
type ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput struct { ProductImageUrl *string ProductName string Limit *int Offset *int ConfidenceMin *float64 ConfidenceMax *float64 }
func (*ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput) Values ¶
func (input *ByProjectKeyRecommendationsGeneralCategoriesRequestMethodGetInput) Values() url.Values
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder ¶
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder) Get ¶
func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder) Get() *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet
* * Response Representation: PagedQueryResult with a results array of ProjectCategoryrecommendation, sorted by confidence scores in descending order and the meta information of ProjectCategoryrecommendationMeta. *
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet ¶
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) ConfidenceMax ¶
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) ConfidenceMin ¶
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Dump ¶
func (r *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Execute ¶
func (rb *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) Execute(ctx context.Context) (result *ProjectCategoryRecommendationPagedQueryResponse, err error)
* * Response Representation: PagedQueryResult with a results array of ProjectCategoryrecommendation, sorted by confidence scores in descending order and the meta information of ProjectCategoryrecommendationMeta. *
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) WithHeaders ¶
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGet) WithQueryParams ¶
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGetInput ¶
type ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGetInput struct { Limit *int Offset *int Staged *bool ConfidenceMin *float64 ConfidenceMax *float64 }
func (*ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGetInput) Values ¶
func (input *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestMethodGetInput) Values() url.Values
type ByProjectKeyRecommendationsProjectCategoriesRequestBuilder ¶
type ByProjectKeyRecommendationsProjectCategoriesRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsProjectCategoriesRequestBuilder) WithProductId ¶
func (rb *ByProjectKeyRecommendationsProjectCategoriesRequestBuilder) WithProductId(productId string) *ByProjectKeyRecommendationsProjectCategoriesByProductIdRequestBuilder
type ByProjectKeyRecommendationsRequestBuilder ¶
type ByProjectKeyRecommendationsRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRecommendationsRequestBuilder) GeneralCategories ¶
func (rb *ByProjectKeyRecommendationsRequestBuilder) GeneralCategories() *ByProjectKeyRecommendationsGeneralCategoriesRequestBuilder
func (*ByProjectKeyRecommendationsRequestBuilder) ProjectCategories ¶
func (rb *ByProjectKeyRecommendationsRequestBuilder) ProjectCategories() *ByProjectKeyRecommendationsProjectCategoriesRequestBuilder
type ByProjectKeyRequestBuilder ¶
type ByProjectKeyRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeyRequestBuilder) ImageSearch ¶
func (rb *ByProjectKeyRequestBuilder) ImageSearch() *ByProjectKeyImageSearchRequestBuilder
* * Search for similar products using an image as search input. *
func (*ByProjectKeyRequestBuilder) MissingData ¶
func (rb *ByProjectKeyRequestBuilder) MissingData() *ByProjectKeyMissingDataRequestBuilder
func (*ByProjectKeyRequestBuilder) Recommendations ¶
func (rb *ByProjectKeyRequestBuilder) Recommendations() *ByProjectKeyRecommendationsRequestBuilder
func (*ByProjectKeyRequestBuilder) Similarities ¶
func (rb *ByProjectKeyRequestBuilder) Similarities() *ByProjectKeySimilaritiesRequestBuilder
type ByProjectKeySimilaritiesProductsRequestBuilder ¶
type ByProjectKeySimilaritiesProductsRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeySimilaritiesProductsRequestMethodPost ¶
type ByProjectKeySimilaritiesProductsRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ByProjectKeySimilaritiesProductsRequestMethodPost) Dump ¶
func (r *ByProjectKeySimilaritiesProductsRequestMethodPost) Dump() map[string]interface{}
func (*ByProjectKeySimilaritiesProductsRequestMethodPost) Execute ¶
func (rb *ByProjectKeySimilaritiesProductsRequestMethodPost) Execute(ctx context.Context) (result *TaskToken, err error)
func (*ByProjectKeySimilaritiesProductsRequestMethodPost) WithHeaders ¶
func (rb *ByProjectKeySimilaritiesProductsRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeySimilaritiesProductsRequestMethodPost
type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestBuilder ¶
type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestBuilder struct {
// contains filtered or unexported fields
}
type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet ¶
type ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Dump ¶
func (r *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Dump() map[string]interface{}
func (*ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Execute ¶
func (rb *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) Execute(ctx context.Context) (result *SimilarProductsTaskStatus, err error)
func (*ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) WithHeaders ¶
func (rb *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestMethodGet
type ByProjectKeySimilaritiesProductsStatusRequestBuilder ¶
type ByProjectKeySimilaritiesProductsStatusRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeySimilaritiesProductsStatusRequestBuilder) WithTaskId ¶
func (rb *ByProjectKeySimilaritiesProductsStatusRequestBuilder) WithTaskId(taskId string) *ByProjectKeySimilaritiesProductsStatusByTaskIdRequestBuilder
type ByProjectKeySimilaritiesRequestBuilder ¶
type ByProjectKeySimilaritiesRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ByProjectKeySimilaritiesRequestBuilder) Products ¶
func (rb *ByProjectKeySimilaritiesRequestBuilder) Products() *ByProjectKeySimilaritiesProductsRequestBuilder
type CategoryReference ¶
type CategoryReference struct {
ID string `json:"id"`
}
func (CategoryReference) MarshalJSON ¶
func (obj CategoryReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type ChangeStatusUpdateAction ¶
type ChangeStatusUpdateAction struct {
Status ImageSearchConfigStatus `json:"status"`
}
func (ChangeStatusUpdateAction) MarshalJSON ¶
func (obj ChangeStatusUpdateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *ClientConfig) (*Client, error)
NewClient creates a new client based on the provided ClientConfig
func (*Client) WithProjectKey ¶
func (c *Client) WithProjectKey(projectKey string) *ByProjectKeyRequestBuilder
type ClientConfig ¶
type Date ¶
Date holds date information for Commercetools API format
func (*Date) MarshalJSON ¶
MarshalJSON marshals into the commercetools date format
func (*Date) UnmarshalJSON ¶
UnmarshalJSON decodes JSON data into a Date struct
type DecodeStruct ¶
type GeneralCategoryRecommendationPagedQueryResponse ¶
type GeneralCategoryRecommendationPagedQueryResponse struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []GeneralCategoryRecommendation `json:"results"` }
type GenericRequestError ¶
func (GenericRequestError) Error ¶
func (e GenericRequestError) Error() string
type ImageSearchConfigRequest ¶
type ImageSearchConfigRequest struct { // The list of update actions to be performed on the project. Actions []ImageSearchConfigUpdateAction `json:"actions"` }
func (*ImageSearchConfigRequest) UnmarshalJSON ¶
func (obj *ImageSearchConfigRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ImageSearchConfigResponse ¶
type ImageSearchConfigResponse struct { // The image search activation status. Status ImageSearchConfigStatus `json:"status"` LastModifiedAt time.Time `json:"lastModifiedAt"` }
type ImageSearchConfigStatus ¶
type ImageSearchConfigStatus string
const ( ImageSearchConfigStatusOn ImageSearchConfigStatus = "on" ImageSearchConfigStatusOff ImageSearchConfigStatus = "off" )
type ImageSearchConfigUpdateAction ¶
type ImageSearchConfigUpdateAction interface{}
type ImageSearchResponse ¶
type ImageSearchResponse struct { // The maximum number of results to return from a query. Count int `json:"count"` // Number of [elements skipped](/../api/general-concepts#offset). Offset float64 `json:"offset"` // The total number of product images that were have been analyzed. Total int `json:"total"` // An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty. Results []ResultItem `json:"results"` }
* * Response format from image search endpoint. *
type LocalizedString ¶
type MissingAttributes ¶
type MissingAttributes struct { Product ProductReference `json:"product"` ProductType ProductTypeReference `json:"productType"` // ID of a ProductVariant. VariantId int `json:"variantId"` // The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order. MissingAttributeValues []string `json:"missingAttributeValues"` // The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order. MissingAttributeNames []string `json:"missingAttributeNames"` AttributeCount *AttributeCount `json:"attributeCount,omitempty"` AttributeCoverage *AttributeCoverage `json:"attributeCoverage,omitempty"` }
func (MissingAttributes) MarshalJSON ¶
func (obj MissingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type MissingAttributesDetails ¶
type MissingAttributesDetails struct { // Number of products scanned. Total int `json:"total"` // Number of products missing attribute names. MissingAttributeNames int `json:"missingAttributeNames"` // Number of products missing attribute values. MissingAttributeValues int `json:"missingAttributeValues"` }
type MissingAttributesMeta ¶
type MissingAttributesMeta struct { ProductLevel MissingAttributesDetails `json:"productLevel"` VariantLevel MissingAttributesDetails `json:"variantLevel"` // The IDs of the product types containing the requested `attributeName`. ProductTypeIds []string `json:"productTypeIds"` }
func (MissingAttributesMeta) MarshalJSON ¶
func (obj MissingAttributesMeta) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type MissingAttributesPagedQueryResult ¶
type MissingAttributesPagedQueryResult struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []MissingAttributes `json:"results"` Meta MissingAttributesMeta `json:"meta"` }
type MissingAttributesSearchRequest ¶
type MissingAttributesSearchRequest struct { // Number of [results requested](/../api/general-concepts#limit). Limit *int `json:"limit,omitempty"` // Number of [elements skipped](/../api/general-concepts#offset). Offset *int `json:"offset,omitempty"` // If true, searches data from staged products in addition to published products. Staged *bool `json:"staged,omitempty"` // Maximum number of products to scan. ProductSetLimit *int `json:"productSetLimit,omitempty"` // If true, searches all product variants. If false, only searches master variants. IncludeVariants *bool `json:"includeVariants,omitempty"` // Minimum attribute coverage of variants to display, applied to both coverage types. CoverageMin *float64 `json:"coverageMin,omitempty"` // Maximum attribute coverage of variants to display, applied to both coverage types. CoverageMax *float64 `json:"coverageMax,omitempty"` // Default value: `coverageAttributeValues` - Allowed values: [`coverageAttributeValues`, `coverageAttributeNames`] // `coverageAttributeValues` shows the product variants with the most missing attribute values first and `coverageAttributeNames` the ones with the most missing attribute names. SortBy *string `json:"sortBy,omitempty"` // If true, the `missingAttributeNames` will be included in the results. ShowMissingAttributeNames *bool `json:"showMissingAttributeNames,omitempty"` // Filters results by the provided Product IDs. // Cannot be applied in combination with any other filter. ProductIds []string `json:"productIds"` // Filters results by the provided product type IDs. // Cannot be applied in combination with any other filter. ProductTypeIds []string `json:"productTypeIds"` // Filters results by the provided attribute name. If provided, products are only checked for this attribute. Therefore, only products of product types which define the attribute name are considered. These product type IDs // are then listed in `MissingAttributesMeta`. The `attributeCount` and `attributeCoverage` fields are not part of the response when using this filter. Cannot be applied in combination with any other filter. AttributeName *string `json:"attributeName,omitempty"` }
func (MissingAttributesSearchRequest) MarshalJSON ¶
func (obj MissingAttributesSearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type MissingDataTaskStatus ¶
type MissingDataTaskStatus struct { State TaskStatusEnum `json:"state"` // The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS. Expires time.Time `json:"expires"` // The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is `SUCCESS`. Result MissingAttributesPagedQueryResult `json:"result"` }
* * Represents a URL path to poll to get the results of an Asynchronous Request.
type MissingImages ¶
type MissingImages struct { Product ProductReference `json:"product"` // ID of the variant VariantId int `json:"variantId"` // Number of images the variant contains. ImageCount int `json:"imageCount"` }
type MissingImagesCount ¶
type MissingImagesMeta ¶
type MissingImagesMeta struct { ProductLevel MissingImagesProductLevel `json:"productLevel"` VariantLevel MissingImagesVariantLevel `json:"variantLevel"` // The minimum number of images a product variant must have. Anything below this value is considered a product variant with missing images. Threshold int `json:"threshold"` }
type MissingImagesPagedQueryResult ¶
type MissingImagesPagedQueryResult struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []MissingImages `json:"results"` Meta MissingImagesMeta `json:"meta"` }
type MissingImagesSearchRequest ¶
type MissingImagesSearchRequest struct { // Number of [results requested](/../api/general-concepts#limit). Limit *int `json:"limit,omitempty"` // Number of [elements skipped](/../api/general-concepts#offset). Offset *int `json:"offset,omitempty"` // If true, searches data from staged products in addition to published products. Staged *bool `json:"staged,omitempty"` // Maximum number of products to scan. ProductSetLimit *int `json:"productSetLimit,omitempty"` // If true, searches all product variants. If false, only searches master variants. IncludeVariants *bool `json:"includeVariants,omitempty"` // If true, uses the median number of images per product variant as a threshold value. AutoThreshold *bool `json:"autoThreshold,omitempty"` // The minimum number of images a product variant must have. Anything below this value is considered a product variant with missing images. Threshold *int `json:"threshold,omitempty"` // Filters results by the provided Product IDs. Cannot be applied in combination with any other filter. ProductIds []string `json:"productIds"` // Filters results by the provided product type IDs. It cannot be applied in combination with any other filter. ProductTypeIds []string `json:"productTypeIds"` }
func (MissingImagesSearchRequest) MarshalJSON ¶
func (obj MissingImagesSearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type MissingImagesTaskStatus ¶
type MissingImagesTaskStatus struct { State TaskStatusEnum `json:"state"` // The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS. Expires time.Time `json:"expires"` // The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is `SUCCESS`. Result MissingImagesPagedQueryResult `json:"result"` }
* * Represents a URL path to poll to get the results of an Asynchronous Request.
type MissingPrices ¶
type MissingPrices struct { Product ProductReference `json:"product"` // Id of the `ProductVariant`. VariantId int `json:"variantId"` }
type MissingPricesMeta ¶
type MissingPricesMeta struct { ProductLevel MissingPricesProductLevel `json:"productLevel"` VariantLevel MissingPricesVariantLevel `json:"variantLevel"` }
type MissingPricesPagedQueryResult ¶
type MissingPricesPagedQueryResult struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []MissingPrices `json:"results"` Meta MissingPricesMeta `json:"meta"` }
type MissingPricesSearchRequest ¶
type MissingPricesSearchRequest struct { // Number of [results requested](/../api/general-concepts#limit). Limit *int `json:"limit,omitempty"` // Number of [elements skipped](/../api/general-concepts#offset). Offset *int `json:"offset,omitempty"` // If true, searches data from staged products in addition to published products. Staged *bool `json:"staged,omitempty"` // Maximum number of products to scan. ProductSetLimit *int `json:"productSetLimit,omitempty"` // If true, searches all product variants. If false, only searches master variants. IncludeVariants *bool `json:"includeVariants,omitempty"` // If used, only checks if a product variant has a price in the provided currency code. CurrencyCode *string `json:"currencyCode,omitempty"` // If true, checks if there are prices for the specified date range and time. CheckDate *bool `json:"checkDate,omitempty"` // Starting date of the range to check. If no value is given, checks prices valid at the time the search is initiated. ValidFrom *time.Time `json:"validFrom,omitempty"` // Ending date of the range to check. If no value is given, it is equal to `validFrom`. ValidUntil *time.Time `json:"validUntil,omitempty"` // Filters results by the provided Product IDs. Cannot be applied in combination with the `productTypeIds` filter. ProductIds []string `json:"productIds"` // Filters results by the provided product type IDs. Cannot be applied in combination with the `productIds` filter. ProductTypeIds []string `json:"productTypeIds"` }
func (MissingPricesSearchRequest) MarshalJSON ¶
func (obj MissingPricesSearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type MissingPricesTaskStatus ¶
type MissingPricesTaskStatus struct { State TaskStatusEnum `json:"state"` // The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS. Expires time.Time `json:"expires"` // The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is `SUCCESS`. Result MissingPricesPagedQueryResult `json:"result"` }
* * Represents a URL path to poll to get the results of an Asynchronous Request.
type Money ¶
type Money struct { CentAmount int `json:"centAmount"` // The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). CurrencyCode string `json:"currencyCode"` }
type ProductReference ¶
type ProductReference struct {
ID string `json:"id"`
}
func (ProductReference) MarshalJSON ¶
func (obj ProductReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type ProductSetSelector ¶
type ProductSetSelector struct { // The project containing the project set. ProjectKey string `json:"projectKey"` // An array of Product IDs to compare. If unspecified, no Product ID filter is applied. ProductIds []string `json:"productIds"` // An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied. ProductTypeIds []string `json:"productTypeIds"` // Specifies use of staged or current product data. Staged *bool `json:"staged,omitempty"` // Specifies use of product variants. If set to `true`, all product variants are compared, not just the master variant. IncludeVariants *bool `json:"includeVariants,omitempty"` // Maximum number of products to check (if unspecified, all products are considered). Note that the maximum number of product comparisons between two productSets is 20,000,000. This limit cannot be exceeded. If you need a higher limit, contact https://support.commercetools.com ProductSetLimit *int `json:"productSetLimit,omitempty"` }
* * A set of ProductData for comparison. If no optional attributes are specified, all `current` ProductData are selected for comparison.
func (ProductSetSelector) MarshalJSON ¶
func (obj ProductSetSelector) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type ProductTypeReference ¶
type ProductTypeReference struct {
ID string `json:"id"`
}
func (ProductTypeReference) MarshalJSON ¶
func (obj ProductTypeReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type ProductVariant ¶
type ProductVariant struct { // The product that contains this variant. Product ProductReference `json:"product"` // The state of the product variant. Staged bool `json:"staged"` // The id of the product variant. VariantId int `json:"variantId"` }
* * The product variant that contains the image.
type ProjectCategoryRecommendation ¶
type ProjectCategoryRecommendation struct { // A category that is recommended for a product. Category CategoryReference `json:"category"` // Probability score for the category recommendation. Confidence float64 `json:"confidence"` // Breadcrumb path to the recommended category. This only picks up one language, not all available languages for the category. English is prioritized, but if English data is not available, an arbitrary language is selected. Do not use this to identify a category,use the category ID from the category reference instead. Path string `json:"path"` }
type ProjectCategoryRecommendationMeta ¶
type ProjectCategoryRecommendationMeta struct { // The product name that was used to generate recommendations. ProductName *string `json:"productName,omitempty"` // The product image that was used to generate recommendations. ProductImageUrl *string `json:"productImageUrl,omitempty"` // Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section. GeneralCategoryNames []string `json:"generalCategoryNames"` }
type ProjectCategoryRecommendationPagedQueryResponse ¶
type ProjectCategoryRecommendationPagedQueryResponse struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []ProjectCategoryRecommendation `json:"results"` Meta ProjectCategoryRecommendationMeta `json:"meta"` }
type ReferenceTypeId ¶
type ReferenceTypeId string
const ( ReferenceTypeIdCart ReferenceTypeId = "cart" ReferenceTypeIdCartDiscount ReferenceTypeId = "cart-discount" ReferenceTypeIdCategory ReferenceTypeId = "category" ReferenceTypeIdChannel ReferenceTypeId = "channel" ReferenceTypeIdCustomer ReferenceTypeId = "customer" ReferenceTypeIdCustomerGroup ReferenceTypeId = "customer-group" ReferenceTypeIdDiscountCode ReferenceTypeId = "discount-code" ReferenceTypeIdKeyValueDocument ReferenceTypeId = "key-value-document" ReferenceTypeIdPayment ReferenceTypeId = "payment" ReferenceTypeIdProduct ReferenceTypeId = "product" ReferenceTypeIdProductType ReferenceTypeId = "product-type" ReferenceTypeIdProductDiscount ReferenceTypeId = "product-discount" ReferenceTypeIdOrder ReferenceTypeId = "order" ReferenceTypeIdReview ReferenceTypeId = "review" ReferenceTypeIdShoppingList ReferenceTypeId = "shopping-list" ReferenceTypeIdShippingMethod ReferenceTypeId = "shipping-method" ReferenceTypeIdState ReferenceTypeId = "state" ReferenceTypeIdStore ReferenceTypeId = "store" ReferenceTypeIdTaxCategory ReferenceTypeId = "tax-category" ReferenceTypeIdType ReferenceTypeId = "type" ReferenceTypeIdZone ReferenceTypeId = "zone" ReferenceTypeIdInventoryEntry ReferenceTypeId = "inventory-entry" ReferenceTypeIdOrderEdit ReferenceTypeId = "order-edit" )
type ResultItem ¶
type ResultItem struct { // The URL of the image. ImageUrl string `json:"imageUrl"` // An array of product variants containing the image URL. ProductVariants []ProductVariant `json:"productVariants"` }
* * An image URL and the product variants it is contained in. If no matching images are found, ResultItem is not present.
type SetUserAgentTransport ¶
type SetUserAgentTransport struct { T http.RoundTripper // contains filtered or unexported fields }
type SimilarProduct ¶
type SimilarProduct struct { // Reference to Product Product *ProductReference `json:"product,omitempty"` // ID of the ProductVariant that was compared. VariantId *int `json:"variantId,omitempty"` // Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product. Meta *SimilarProductMeta `json:"meta,omitempty"` }
* * One part of a SimilarProductPair. Refers to a specific ProductVariant.
type SimilarProductMeta ¶
type SimilarProductMeta struct { // Localized product name used for similarity estimation. Name *LocalizedString `json:"name,omitempty"` // Localized product description used for similarity estimation. Description *LocalizedString `json:"description,omitempty"` // The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount. Price *Money `json:"price,omitempty"` // Total number of variants associated with the product. VariantCount *int `json:"variantCount,omitempty"` }
type SimilarProductPair ¶
type SimilarProductPair struct { // The probability of product similarity. Confidence float64 `json:"confidence"` Products []SimilarProduct `json:"products"` }
* * A pair of SimilarProducts
type SimilarProductSearchRequest ¶
type SimilarProductSearchRequest struct { // Number of [results requested](/../api/general-concepts#limit). Limit *int `json:"limit,omitempty"` // Number of [elements skipped](/../api/general-concepts#offset). Offset *int `json:"offset,omitempty"` // language tag used to prioritize language for text comparisons. Language *string `json:"language,omitempty"` // The three-digit currency code to compare prices in. When a product has multiple prices, all prices for the product are converted to the currency provided by the currency attribute and the median price is calculated for comparison. Currencies are converted using the ECB currency exchange rates at the time the request is made. Of the currency codes, only currencies with currency exchange rates provided by the ECB are supported. CurrencyCode *string `json:"currencyCode,omitempty"` // `similarityMeasures` defines the attributes taken into account to measure product similarity. SimilarityMeasures *SimilarityMeasures `json:"similarityMeasures,omitempty"` // Array of length 2 of ProductSetSelector ProductSetSelectors []ProductSetSelector `json:"productSetSelectors"` ConfidenceMin *float64 `json:"confidenceMin,omitempty"` ConfidenceMax *float64 `json:"confidenceMax,omitempty"` }
func (SimilarProductSearchRequest) MarshalJSON ¶
func (obj SimilarProductSearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value or remove optional nil slices
type SimilarProductSearchRequestMeta ¶
type SimilarProductSearchRequestMeta struct { // The SimilarityMeasures used in this search. SimilarityMeasures SimilarityMeasures `json:"similarityMeasures"` }
type SimilarProductsPagedQueryResult ¶
type SimilarProductsPagedQueryResult struct { Count int `json:"count"` Total int `json:"total"` // Number of [elements skipped](/../api/general-concepts#offset). Offset int `json:"offset"` Results []SimilarProductPair `json:"results"` Meta SimilarProductSearchRequestMeta `json:"meta"` }
type SimilarProductsTaskStatus ¶
type SimilarProductsTaskStatus struct { State TaskStatusEnum `json:"state"` // The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS. Expires *time.Time `json:"expires,omitempty"` // The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is `SUCCESS`. Result SimilarProductsPagedQueryResult `json:"result"` }
* * Represents a URL path to poll to get the results of an Asynchronous Request.
type SimilarityMeasures ¶
type SimilarityMeasures struct { // Importance of the `name` attribute in overall similarity. Name *int `json:"name,omitempty"` // Importance of the `description` attribute in overall similarity. Description *int `json:"description,omitempty"` // Importance of the `description` attribute in overall similarity. Attribute *int `json:"attribute,omitempty"` // Importance of the number of product variants in overall similarity. VariantCount *int `json:"variantCount,omitempty"` // Importance of the `price` attribute in overall similarity. Price *int `json:"price,omitempty"` }
* * Specify which ProductData attributes to use for estimating similarity and how to weigh them. An attribute's weight can be any whole positive integer, starting with 0. The larger the integer, the higher its weight.
type TaskStatusEnum ¶
type TaskStatusEnum string
const ( TaskStatusEnumPENDING TaskStatusEnum = "PENDING" TaskStatusEnumSUCCESS TaskStatusEnum = "SUCCESS" )
Source Files ¶
- client.go
- client_api_root.go
- client_attributes_by_project_key_missing_data_attributes.go
- client_attributes_by_project_key_missing_data_attributes_post.go
- client_by_project_key.go
- client_config_by_project_key_image_search_config.go
- client_config_by_project_key_image_search_config_get.go
- client_config_by_project_key_image_search_config_post.go
- client_general_categories_by_project_key_recommendations_general_categories.go
- client_general_categories_by_project_key_recommendations_general_categories_get.go
- client_image_search_by_project_key_image_search.go
- client_image_search_by_project_key_image_search_post.go
- client_images_by_project_key_missing_data_images.go
- client_images_by_project_key_missing_data_images_post.go
- client_missing_data_by_project_key_missing_data.go
- client_prices_by_project_key_missing_data_prices.go
- client_prices_by_project_key_missing_data_prices_post.go
- client_products_by_project_key_similarities_products.go
- client_products_by_project_key_similarities_products_post.go
- client_project_categories_by_project_key_recommendations_project_categories.go
- client_project_categories_by_project_key_recommendations_project_categories_by_product_id.go
- client_project_categories_by_project_key_recommendations_project_categories_by_product_id_get.go
- client_recommendations_by_project_key_recommendations.go
- client_similarities_by_project_key_similarities.go
- client_status_by_project_key_missing_data_attributes_status.go
- client_status_by_project_key_missing_data_attributes_status_by_task_id.go
- client_status_by_project_key_missing_data_attributes_status_by_task_id_get.go
- client_status_by_project_key_missing_data_images_status.go
- client_status_by_project_key_missing_data_images_status_by_task_id.go
- client_status_by_project_key_missing_data_images_status_by_task_id_get.go
- client_status_by_project_key_missing_data_prices_status.go
- client_status_by_project_key_missing_data_prices_status_by_task_id.go
- client_status_by_project_key_missing_data_prices_status_by_task_id_get.go
- client_status_by_project_key_similarities_products_status.go
- client_status_by_project_key_similarities_products_status_by_task_id.go
- client_status_by_project_key_similarities_products_status_by_task_id_get.go
- date.go
- errors.go
- types_category_recommendations.go
- types_common.go
- types_general_category_recommendations.go
- types_image_search.go
- types_image_search_config.go
- types_missing_data.go
- types_similar_products.go
- utils.go