catalogItems20220401

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package catalogItems20220401 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.13.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCatalogItemRequest

func NewGetCatalogItemRequest(server string, asin string, params *GetCatalogItemParams) (*http.Request, error)

NewGetCatalogItemRequest generates requests for GetCatalogItem

func NewSearchCatalogItemsRequest

func NewSearchCatalogItemsRequest(server string, params *SearchCatalogItemsParams) (*http.Request, error)

NewSearchCatalogItemsRequest generates requests for SearchCatalogItems

Types

type BrandRefinement

type BrandRefinement struct {
	// BrandName Brand name. For display and can be used as a search refinement.
	BrandName string `json:"brandName"`

	// NumberOfResults The estimated number of results that would still be returned if refinement key applied.
	NumberOfResults int `json:"numberOfResults"`
}

BrandRefinement Description of a brand that can be used to get more fine-grained search results.

type ClassificationRefinement

type ClassificationRefinement struct {
	// ClassificationId Identifier for the classification that can be used for search refinement purposes.
	ClassificationId string `json:"classificationId"`

	// DisplayName Display name for the classification.
	DisplayName string `json:"displayName"`

	// NumberOfResults The estimated number of results that would still be returned if refinement key applied.
	NumberOfResults int `json:"numberOfResults"`
}

ClassificationRefinement Description of a classification that can be used to get more fine-grained search results.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn

	// A callback for modifying response which are generated after receive from the network.
	ResponseEditors []ResponseEditorFn

	// The user agent header identifies your application, its version number, and the platform and programming language you are using.
	// You must include a user agent header in each request submitted to the sales partner API.
	UserAgent string
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetCatalogItem

func (c *Client) GetCatalogItem(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error)

func (*Client) SearchCatalogItems

func (c *Client) SearchCatalogItems(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// SearchCatalogItems request
	SearchCatalogItems(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error)

	// GetCatalogItem request
	GetCatalogItem(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithResponseEditorFn

func WithResponseEditorFn(fn ResponseEditorFn) ClientOption

WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetCatalogItemWithResponse

func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error)

GetCatalogItemWithResponse request returning *GetCatalogItemResp

func (*ClientWithResponses) SearchCatalogItemsWithResponse

func (c *ClientWithResponses) SearchCatalogItemsWithResponse(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error)

SearchCatalogItemsWithResponse request returning *SearchCatalogItemsResp

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SearchCatalogItemsWithResponse request
	SearchCatalogItemsWithResponse(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error)

	// GetCatalogItemWithResponse request
	GetCatalogItemWithResponse(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Dimension

type Dimension struct {
	// Unit Measurement unit of the dimension value.
	Unit *string `json:"unit,omitempty"`

	// Value Numeric dimension value.
	Value *float32 `json:"value,omitempty"`
}

Dimension Individual dimension value of an Amazon catalog item or item package.

type Dimensions

type Dimensions struct {
	// Height Individual dimension value of an Amazon catalog item or item package.
	Height *Dimension `json:"height,omitempty"`

	// Length Individual dimension value of an Amazon catalog item or item package.
	Length *Dimension `json:"length,omitempty"`

	// Weight Individual dimension value of an Amazon catalog item or item package.
	Weight *Dimension `json:"weight,omitempty"`

	// Width Individual dimension value of an Amazon catalog item or item package.
	Width *Dimension `json:"width,omitempty"`
}

Dimensions Dimensions of an Amazon catalog item or item in its packaging.

type Error

type Error struct {
	// Code An error code that identifies the type of error that occurred.
	Code string `json:"code"`

	// Details Additional details that can help the caller understand or fix the issue.
	Details *string `json:"details,omitempty"`

	// Message A message that describes the error condition.
	Message string `json:"message"`
}

Error Error response returned when the request is unsuccessful.

type ErrorList

type ErrorList struct {
	Errors []Error `json:"errors"`
}

ErrorList A list of error responses returned when a request is unsuccessful.

type GetCatalogItemParams

type GetCatalogItemParams struct {
	// MarketplaceIds A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`

	// IncludedData A comma-delimited list of data sets to include in the response. Default: `summaries`.
	IncludedData *[]GetCatalogItemParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.
	Locale *string `form:"locale,omitempty" json:"locale,omitempty"`
}

GetCatalogItemParams defines parameters for GetCatalogItem.

type GetCatalogItemParamsIncludedData

type GetCatalogItemParamsIncludedData string

GetCatalogItemParamsIncludedData defines parameters for GetCatalogItem.

const (
	GetCatalogItemParamsIncludedDataAttributes    GetCatalogItemParamsIncludedData = "attributes"
	GetCatalogItemParamsIncludedDataDimensions    GetCatalogItemParamsIncludedData = "dimensions"
	GetCatalogItemParamsIncludedDataIdentifiers   GetCatalogItemParamsIncludedData = "identifiers"
	GetCatalogItemParamsIncludedDataImages        GetCatalogItemParamsIncludedData = "images"
	GetCatalogItemParamsIncludedDataProductTypes  GetCatalogItemParamsIncludedData = "productTypes"
	GetCatalogItemParamsIncludedDataRelationships GetCatalogItemParamsIncludedData = "relationships"
	GetCatalogItemParamsIncludedDataSalesRanks    GetCatalogItemParamsIncludedData = "salesRanks"
	GetCatalogItemParamsIncludedDataSummaries     GetCatalogItemParamsIncludedData = "summaries"
	GetCatalogItemParamsIncludedDataVendorDetails GetCatalogItemParamsIncludedData = "vendorDetails"
)

Defines values for GetCatalogItemParamsIncludedData.

type GetCatalogItemResp

type GetCatalogItemResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Item
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseGetCatalogItemResp

func ParseGetCatalogItemResp(rsp *http.Response) (*GetCatalogItemResp, error)

ParseGetCatalogItemResp parses an HTTP response from a GetCatalogItemWithResponse call

func (GetCatalogItemResp) Status

func (r GetCatalogItemResp) Status() string

Status returns HTTPResponse.Status

func (GetCatalogItemResp) StatusCode

func (r GetCatalogItemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Item

type Item struct {
	// Asin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog.
	Asin ItemAsin `json:"asin"`

	// Attributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions.
	Attributes *ItemAttributes `json:"attributes,omitempty"`

	// Dimensions Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace.
	Dimensions *ItemDimensions `json:"dimensions,omitempty"`

	// Identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.
	Identifiers *ItemIdentifiers `json:"identifiers,omitempty"`

	// Images Images for an item in the Amazon catalog.
	Images *ItemImages `json:"images,omitempty"`

	// ProductTypes Product types associated with the Amazon catalog item.
	ProductTypes *ItemProductTypes `json:"productTypes,omitempty"`

	// Relationships Relationships by marketplace for an Amazon catalog item (for example, variations).
	Relationships *ItemRelationships `json:"relationships,omitempty"`

	// SalesRanks Sales ranks of an Amazon catalog item.
	SalesRanks *ItemSalesRanks `json:"salesRanks,omitempty"`

	// Summaries Summary details of an Amazon catalog item.
	Summaries *ItemSummaries `json:"summaries,omitempty"`

	// VendorDetails Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only.
	VendorDetails *ItemVendorDetails `json:"vendorDetails,omitempty"`
}

Item An item in the Amazon catalog.

type ItemAsin

type ItemAsin = string

ItemAsin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog.

type ItemAttributes

type ItemAttributes map[string]interface{}

ItemAttributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions.

type ItemBrowseClassification

type ItemBrowseClassification struct {
	// ClassificationId Identifier of the classification (browse node identifier).
	ClassificationId string `json:"classificationId"`

	// DisplayName Display name for the classification.
	DisplayName string `json:"displayName"`
}

ItemBrowseClassification Classification (browse node) associated with an Amazon catalog item.

type ItemClassificationSalesRank

type ItemClassificationSalesRank struct {
	// ClassificationId Identifier of the classification associated with the sales rank.
	ClassificationId string `json:"classificationId"`

	// Link Corresponding Amazon retail website link, or URL, for the sales rank.
	Link *string `json:"link,omitempty"`

	// Rank Sales rank value.
	Rank int `json:"rank"`

	// Title Title, or name, of the sales rank.
	Title string `json:"title"`
}

ItemClassificationSalesRank Sales rank of an Amazon catalog item by classification.

type ItemContributor

type ItemContributor struct {
	// Role Role of an individual contributor in the creation of an item, such as author or actor.
	Role ItemContributorRole `json:"role"`

	// Value Name of the contributor, such as Jane Austen.
	Value string `json:"value"`
}

ItemContributor Individual contributor to the creation of an item, such as an author or actor.

type ItemContributorRole

type ItemContributorRole struct {
	// DisplayName Display name of the role in the requested locale, such as Author or Actor.
	DisplayName *string `json:"displayName,omitempty"`

	// Value Role value for the Amazon catalog item, such as author or actor.
	Value string `json:"value"`
}

ItemContributorRole Role of an individual contributor in the creation of an item, such as author or actor.

type ItemDimensions

type ItemDimensions = []ItemDimensionsByMarketplace

ItemDimensions Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace.

type ItemDimensionsByMarketplace

type ItemDimensionsByMarketplace struct {
	// Item Dimensions of an Amazon catalog item or item in its packaging.
	Item *Dimensions `json:"item,omitempty"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`

	// Package Dimensions of an Amazon catalog item or item in its packaging.
	Package *Dimensions `json:"package,omitempty"`
}

ItemDimensionsByMarketplace Dimensions associated with the item in the Amazon catalog for the indicated Amazon marketplace.

type ItemDisplayGroupSalesRank

type ItemDisplayGroupSalesRank struct {
	// Link Corresponding Amazon retail website link, or URL, for the sales rank.
	Link *string `json:"link,omitempty"`

	// Rank Sales rank value.
	Rank int `json:"rank"`

	// Title Title, or name, of the sales rank.
	Title string `json:"title"`

	// WebsiteDisplayGroup Name of the website display group associated with the sales rank
	WebsiteDisplayGroup string `json:"websiteDisplayGroup"`
}

ItemDisplayGroupSalesRank Sales rank of an Amazon catalog item by website display group.

type ItemIdentifier

type ItemIdentifier struct {
	// Identifier Identifier.
	Identifier string `json:"identifier"`

	// IdentifierType Type of identifier, such as UPC, EAN, or ISBN.
	IdentifierType string `json:"identifierType"`
}

ItemIdentifier Identifier associated with the item in the Amazon catalog, such as a UPC or EAN identifier.

type ItemIdentifiers

type ItemIdentifiers = []ItemIdentifiersByMarketplace

ItemIdentifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.

type ItemIdentifiersByMarketplace

type ItemIdentifiersByMarketplace struct {
	// Identifiers Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace.
	Identifiers []ItemIdentifier `json:"identifiers"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`
}

ItemIdentifiersByMarketplace Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace.

type ItemImage

type ItemImage struct {
	// Height Height of the image in pixels.
	Height int `json:"height"`

	// Link Link, or URL, for the image.
	Link string `json:"link"`

	// Variant Variant of the image, such as `MAIN` or `PT01`.
	Variant ItemImageVariant `json:"variant"`

	// Width Width of the image in pixels.
	Width int `json:"width"`
}

ItemImage Image for an item in the Amazon catalog.

type ItemImageVariant

type ItemImageVariant string

ItemImageVariant Variant of the image, such as `MAIN` or `PT01`.

const (
	MAIN ItemImageVariant = "MAIN"
	PT01 ItemImageVariant = "PT01"
	PT02 ItemImageVariant = "PT02"
	PT03 ItemImageVariant = "PT03"
	PT04 ItemImageVariant = "PT04"
	PT05 ItemImageVariant = "PT05"
	PT06 ItemImageVariant = "PT06"
	PT07 ItemImageVariant = "PT07"
	PT08 ItemImageVariant = "PT08"
	SWCH ItemImageVariant = "SWCH"
)

Defines values for ItemImageVariant.

type ItemImages

type ItemImages = []ItemImagesByMarketplace

ItemImages Images for an item in the Amazon catalog.

type ItemImagesByMarketplace

type ItemImagesByMarketplace struct {
	// Images Images for an item in the Amazon catalog for the indicated Amazon marketplace.
	Images []ItemImage `json:"images"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`
}

ItemImagesByMarketplace Images for an item in the Amazon catalog for the indicated Amazon marketplace.

type ItemProductTypeByMarketplace

type ItemProductTypeByMarketplace struct {
	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId *string `json:"marketplaceId,omitempty"`

	// ProductType Name of the product type associated with the Amazon catalog item.
	ProductType *string `json:"productType,omitempty"`
}

ItemProductTypeByMarketplace Product type associated with the Amazon catalog item for the indicated Amazon marketplace.

type ItemProductTypes

type ItemProductTypes = []ItemProductTypeByMarketplace

ItemProductTypes Product types associated with the Amazon catalog item.

type ItemRelationship

type ItemRelationship struct {
	// ChildAsins Identifiers (ASINs) of the related items that are children of this item.
	ChildAsins *[]string `json:"childAsins,omitempty"`

	// ParentAsins Identifiers (ASINs) of the related items that are parents of this item.
	ParentAsins *[]string `json:"parentAsins,omitempty"`

	// Type Type of relationship.
	Type ItemRelationshipType `json:"type"`

	// VariationTheme Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.
	VariationTheme *ItemVariationTheme `json:"variationTheme,omitempty"`
}

ItemRelationship Relationship details for an Amazon catalog item.

type ItemRelationshipType

type ItemRelationshipType string

ItemRelationshipType Type of relationship.

const (
	PACKAGEHIERARCHY ItemRelationshipType = "PACKAGE_HIERARCHY"
	VARIATION        ItemRelationshipType = "VARIATION"
)

Defines values for ItemRelationshipType.

type ItemRelationships

type ItemRelationships = []ItemRelationshipsByMarketplace

ItemRelationships Relationships by marketplace for an Amazon catalog item (for example, variations).

type ItemRelationshipsByMarketplace

type ItemRelationshipsByMarketplace struct {
	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`

	// Relationships Relationships for the item.
	Relationships []ItemRelationship `json:"relationships"`
}

ItemRelationshipsByMarketplace Relationship details for the Amazon catalog item for the indicated Amazon marketplace.

type ItemSalesRanks

type ItemSalesRanks = []ItemSalesRanksByMarketplace

ItemSalesRanks Sales ranks of an Amazon catalog item.

type ItemSalesRanksByMarketplace

type ItemSalesRanksByMarketplace struct {
	// ClassificationRanks Sales ranks of an Amazon catalog item for an Amazon marketplace by classification.
	ClassificationRanks *[]ItemClassificationSalesRank `json:"classificationRanks,omitempty"`

	// DisplayGroupRanks Sales ranks of an Amazon catalog item for an Amazon marketplace by website display group.
	DisplayGroupRanks *[]ItemDisplayGroupSalesRank `json:"displayGroupRanks,omitempty"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`
}

ItemSalesRanksByMarketplace Sales ranks of an Amazon catalog item for the indicated Amazon marketplace.

type ItemSearchResults

type ItemSearchResults struct {
	// Items A list of items from the Amazon catalog.
	Items []Item `json:"items"`

	// NumberOfResults For `identifiers`-based searches, the total number of Amazon catalog items found. For `keywords`-based searches, the estimated total number of Amazon catalog items matched by the search query (only results up to the page count limit will be returned per request regardless of the number found).
	//
	// Note: The maximum number of items (ASINs) that can be returned and paged through is 1000.
	NumberOfResults int `json:"numberOfResults"`

	// Pagination When a request produces a response that exceeds the `pageSize`, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. When you receive the last page, there will be no `nextToken` key in the pagination object.
	Pagination Pagination `json:"pagination"`

	// Refinements Search refinements.
	Refinements Refinements `json:"refinements"`
}

ItemSearchResults Items in the Amazon catalog and search related metadata.

type ItemSummaries

type ItemSummaries = []ItemSummaryByMarketplace

ItemSummaries Summary details of an Amazon catalog item.

type ItemSummaryByMarketplace

type ItemSummaryByMarketplace struct {
	// AdultProduct Identifies an Amazon catalog item is intended for an adult audience or is sexual in nature.
	AdultProduct *bool `json:"adultProduct,omitempty"`

	// Autographed Identifies an Amazon catalog item is autographed by a player or celebrity.
	Autographed *bool `json:"autographed,omitempty"`

	// Brand Name of the brand associated with an Amazon catalog item.
	Brand *string `json:"brand,omitempty"`

	// BrowseClassification Classification (browse node) associated with an Amazon catalog item.
	BrowseClassification *ItemBrowseClassification `json:"browseClassification,omitempty"`

	// Color Name of the color associated with an Amazon catalog item.
	Color *string `json:"color,omitempty"`

	// Contributors Individual contributors to the creation of an item, such as the authors or actors.
	Contributors *[]ItemContributor `json:"contributors,omitempty"`

	// ItemClassification Classification type associated with the Amazon catalog item.
	ItemClassification *ItemSummaryByMarketplaceItemClassification `json:"itemClassification,omitempty"`

	// ItemName Name, or title, associated with an Amazon catalog item.
	ItemName *string `json:"itemName,omitempty"`

	// Manufacturer Name of the manufacturer associated with an Amazon catalog item.
	Manufacturer *string `json:"manufacturer,omitempty"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`

	// Memorabilia Identifies an Amazon catalog item is memorabilia valued for its connection with historical events, culture, or entertainment.
	Memorabilia *bool `json:"memorabilia,omitempty"`

	// ModelNumber Model number associated with an Amazon catalog item.
	ModelNumber *string `json:"modelNumber,omitempty"`

	// PackageQuantity Quantity of an Amazon catalog item in one package.
	PackageQuantity *int `json:"packageQuantity,omitempty"`

	// PartNumber Part number associated with an Amazon catalog item.
	PartNumber *string `json:"partNumber,omitempty"`

	// ReleaseDate First date on which an Amazon catalog item is shippable to customers.
	ReleaseDate *openapi_types.Date `json:"releaseDate,omitempty"`

	// Size Name of the size associated with an Amazon catalog item.
	Size *string `json:"size,omitempty"`

	// Style Name of the style associated with an Amazon catalog item.
	Style *string `json:"style,omitempty"`

	// TradeInEligible Identifies an Amazon catalog item is eligible for trade-in.
	TradeInEligible *bool `json:"tradeInEligible,omitempty"`

	// WebsiteDisplayGroup Identifier of the website display group associated with an Amazon catalog item.
	WebsiteDisplayGroup *string `json:"websiteDisplayGroup,omitempty"`

	// WebsiteDisplayGroupName Display name of the website display group associated with an Amazon catalog item.
	WebsiteDisplayGroupName *string `json:"websiteDisplayGroupName,omitempty"`
}

ItemSummaryByMarketplace Summary details of an Amazon catalog item for the indicated Amazon marketplace.

type ItemSummaryByMarketplaceItemClassification

type ItemSummaryByMarketplaceItemClassification string

ItemSummaryByMarketplaceItemClassification Classification type associated with the Amazon catalog item.

const (
	BASEPRODUCT     ItemSummaryByMarketplaceItemClassification = "BASE_PRODUCT"
	OTHER           ItemSummaryByMarketplaceItemClassification = "OTHER"
	PRODUCTBUNDLE   ItemSummaryByMarketplaceItemClassification = "PRODUCT_BUNDLE"
	VARIATIONPARENT ItemSummaryByMarketplaceItemClassification = "VARIATION_PARENT"
)

Defines values for ItemSummaryByMarketplaceItemClassification.

type ItemVariationTheme

type ItemVariationTheme struct {
	// Attributes Names of the Amazon catalog item attributes associated with the variation theme.
	Attributes *[]string `json:"attributes,omitempty"`

	// Theme Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.
	Theme *string `json:"theme,omitempty"`
}

ItemVariationTheme Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.

type ItemVendorDetails

type ItemVendorDetails = []ItemVendorDetailsByMarketplace

ItemVendorDetails Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only.

type ItemVendorDetailsByMarketplace

type ItemVendorDetailsByMarketplace struct {
	// BrandCode Brand code associated with an Amazon catalog item.
	BrandCode *string `json:"brandCode,omitempty"`

	// ManufacturerCode Manufacturer code associated with an Amazon catalog item.
	ManufacturerCode *string `json:"manufacturerCode,omitempty"`

	// ManufacturerCodeParent Parent vendor code of the manufacturer code.
	ManufacturerCodeParent *string `json:"manufacturerCodeParent,omitempty"`

	// MarketplaceId Amazon marketplace identifier.
	MarketplaceId string `json:"marketplaceId"`

	// ProductCategory Product category or subcategory associated with an Amazon catalog item.
	ProductCategory *ItemVendorDetailsCategory `json:"productCategory,omitempty"`

	// ProductGroup Product group associated with an Amazon catalog item.
	ProductGroup *string `json:"productGroup,omitempty"`

	// ProductSubcategory Product category or subcategory associated with an Amazon catalog item.
	ProductSubcategory *ItemVendorDetailsCategory `json:"productSubcategory,omitempty"`

	// ReplenishmentCategory Replenishment category associated with an Amazon catalog item.
	ReplenishmentCategory *ItemVendorDetailsByMarketplaceReplenishmentCategory `json:"replenishmentCategory,omitempty"`
}

ItemVendorDetailsByMarketplace Vendor details associated with an Amazon catalog item for the indicated Amazon marketplace.

type ItemVendorDetailsByMarketplaceReplenishmentCategory

type ItemVendorDetailsByMarketplaceReplenishmentCategory string

ItemVendorDetailsByMarketplaceReplenishmentCategory Replenishment category associated with an Amazon catalog item.

const (
	ALLOCATED              ItemVendorDetailsByMarketplaceReplenishmentCategory = "ALLOCATED"
	BASICREPLENISHMENT     ItemVendorDetailsByMarketplaceReplenishmentCategory = "BASIC_REPLENISHMENT"
	INSEASON               ItemVendorDetailsByMarketplaceReplenishmentCategory = "IN_SEASON"
	LIMITEDREPLENISHMENT   ItemVendorDetailsByMarketplaceReplenishmentCategory = "LIMITED_REPLENISHMENT"
	MANUFACTUREROUTOFSTOCK ItemVendorDetailsByMarketplaceReplenishmentCategory = "MANUFACTURER_OUT_OF_STOCK"
	NEWPRODUCT             ItemVendorDetailsByMarketplaceReplenishmentCategory = "NEW_PRODUCT"
	NONREPLENISHABLE       ItemVendorDetailsByMarketplaceReplenishmentCategory = "NON_REPLENISHABLE"
	NONSTOCKUPABLE         ItemVendorDetailsByMarketplaceReplenishmentCategory = "NON_STOCKUPABLE"
	OBSOLETE               ItemVendorDetailsByMarketplaceReplenishmentCategory = "OBSOLETE"
	PLANNEDREPLENISHMENT   ItemVendorDetailsByMarketplaceReplenishmentCategory = "PLANNED_REPLENISHMENT"
)

Defines values for ItemVendorDetailsByMarketplaceReplenishmentCategory.

type ItemVendorDetailsCategory

type ItemVendorDetailsCategory struct {
	// DisplayName Display name of the product category or subcategory
	DisplayName *string `json:"displayName,omitempty"`

	// Value Value (code) of the product category or subcategory.
	Value *string `json:"value,omitempty"`
}

ItemVendorDetailsCategory Product category or subcategory associated with an Amazon catalog item.

type Pagination

type Pagination struct {
	// NextToken A token that can be used to fetch the next page.
	NextToken *string `json:"nextToken,omitempty"`

	// PreviousToken A token that can be used to fetch the previous page.
	PreviousToken *string `json:"previousToken,omitempty"`
}

Pagination When a request produces a response that exceeds the `pageSize`, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. When you receive the last page, there will be no `nextToken` key in the pagination object.

type Refinements

type Refinements struct {
	// Brands Brand search refinements.
	Brands []BrandRefinement `json:"brands"`

	// Classifications Classification search refinements.
	Classifications []ClassificationRefinement `json:"classifications"`
}

Refinements Search refinements.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseEditorFn

type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error

ResponseEditorFn is the function signature for the ResponseEditor callback function

type SearchCatalogItemsParams

type SearchCatalogItemsParams struct {
	// Identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`.
	Identifiers *[]string `form:"identifiers,omitempty" json:"identifiers,omitempty"`

	// IdentifiersType Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided.
	IdentifiersType *SearchCatalogItemsParamsIdentifiersType `form:"identifiersType,omitempty" json:"identifiersType,omitempty"`

	// MarketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`

	// IncludedData A comma-delimited list of data sets to include in the response. Default: `summaries`.
	IncludedData *[]SearchCatalogItemsParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.
	Locale *string `form:"locale,omitempty" json:"locale,omitempty"`

	// SellerId A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`.
	SellerId *string `form:"sellerId,omitempty" json:"sellerId,omitempty"`

	// Keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`.
	Keywords *[]string `form:"keywords,omitempty" json:"keywords,omitempty"`

	// BrandNames A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.
	BrandNames *[]string `form:"brandNames,omitempty" json:"brandNames,omitempty"`

	// ClassificationIds A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.
	ClassificationIds *[]string `form:"classificationIds,omitempty" json:"classificationIds,omitempty"`

	// PageSize Number of results to be returned per page.
	PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`

	// PageToken A token to fetch a certain page when there are multiple pages worth of results.
	PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`

	// KeywordsLocale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.
	KeywordsLocale *string `form:"keywordsLocale,omitempty" json:"keywordsLocale,omitempty"`
}

SearchCatalogItemsParams defines parameters for SearchCatalogItems.

type SearchCatalogItemsParamsIdentifiersType

type SearchCatalogItemsParamsIdentifiersType string

SearchCatalogItemsParamsIdentifiersType defines parameters for SearchCatalogItems.

type SearchCatalogItemsParamsIncludedData

type SearchCatalogItemsParamsIncludedData string

SearchCatalogItemsParamsIncludedData defines parameters for SearchCatalogItems.

const (
	SearchCatalogItemsParamsIncludedDataAttributes    SearchCatalogItemsParamsIncludedData = "attributes"
	SearchCatalogItemsParamsIncludedDataDimensions    SearchCatalogItemsParamsIncludedData = "dimensions"
	SearchCatalogItemsParamsIncludedDataIdentifiers   SearchCatalogItemsParamsIncludedData = "identifiers"
	SearchCatalogItemsParamsIncludedDataImages        SearchCatalogItemsParamsIncludedData = "images"
	SearchCatalogItemsParamsIncludedDataProductTypes  SearchCatalogItemsParamsIncludedData = "productTypes"
	SearchCatalogItemsParamsIncludedDataRelationships SearchCatalogItemsParamsIncludedData = "relationships"
	SearchCatalogItemsParamsIncludedDataSalesRanks    SearchCatalogItemsParamsIncludedData = "salesRanks"
	SearchCatalogItemsParamsIncludedDataSummaries     SearchCatalogItemsParamsIncludedData = "summaries"
	SearchCatalogItemsParamsIncludedDataVendorDetails SearchCatalogItemsParamsIncludedData = "vendorDetails"
)

Defines values for SearchCatalogItemsParamsIncludedData.

type SearchCatalogItemsResp

type SearchCatalogItemsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemSearchResults
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseSearchCatalogItemsResp

func ParseSearchCatalogItemsResp(rsp *http.Response) (*SearchCatalogItemsResp, error)

ParseSearchCatalogItemsResp parses an HTTP response from a SearchCatalogItemsWithResponse call

func (SearchCatalogItemsResp) Status

func (r SearchCatalogItemsResp) Status() string

Status returns HTTPResponse.Status

func (SearchCatalogItemsResp) StatusCode

func (r SearchCatalogItemsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL