Versions in this module Expand all Collapse all v1 v1.0.6 Oct 23, 2023 v1.0.5 Sep 19, 2023 v1.0.4 Sep 5, 2023 v1.0.3 Sep 5, 2023 v1.0.2 Sep 2, 2023 v1.0.1 Aug 31, 2023 v1.0.0 Aug 26, 2023 Changes in this version + func NewGetCatalogItemRequest(server string, asin string, params *GetCatalogItemParams) (*http.Request, error) + func NewSearchCatalogItemsRequest(server string, params *SearchCatalogItemsParams) (*http.Request, error) + type BrandRefinement struct + BrandName string + NumberOfResults int + type ClassificationRefinement struct + ClassificationId string + DisplayName string + NumberOfResults int + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + ResponseEditors []ResponseEditorFn + Server string + UserAgent string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GetCatalogItem(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error) + func (c *Client) SearchCatalogItems(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error) + type ClientInterface interface + GetCatalogItem func(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error) + SearchCatalogItems func(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + func WithResponseEditorFn(fn ResponseEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error) + func (c *ClientWithResponses) SearchCatalogItemsWithResponse(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error) + type ClientWithResponsesInterface interface + GetCatalogItemWithResponse func(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error) + SearchCatalogItemsWithResponse func(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error) + type Dimension struct + Unit *string + Value *float32 + type Dimensions struct + Height *Dimension + Length *Dimension + Weight *Dimension + Width *Dimension + type Error struct + Code string + Details *string + Message string + type ErrorList struct + Errors []Error + type GetCatalogItemParams struct + IncludedData *[]GetCatalogItemParamsIncludedData + Locale *string + MarketplaceIds []string + type GetCatalogItemParamsIncludedData string + const GetCatalogItemParamsIncludedDataAttributes + const GetCatalogItemParamsIncludedDataDimensions + const GetCatalogItemParamsIncludedDataIdentifiers + const GetCatalogItemParamsIncludedDataImages + const GetCatalogItemParamsIncludedDataProductTypes + const GetCatalogItemParamsIncludedDataRelationships + const GetCatalogItemParamsIncludedDataSalesRanks + const GetCatalogItemParamsIncludedDataSummaries + const GetCatalogItemParamsIncludedDataVendorDetails + 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(rsp *http.Response) (*GetCatalogItemResp, error) + func (r GetCatalogItemResp) Status() string + func (r GetCatalogItemResp) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Item struct + Asin ItemAsin + Attributes *ItemAttributes + Dimensions *ItemDimensions + Identifiers *ItemIdentifiers + Images *ItemImages + ProductTypes *ItemProductTypes + Relationships *ItemRelationships + SalesRanks *ItemSalesRanks + Summaries *ItemSummaries + VendorDetails *ItemVendorDetails + type ItemAsin = string + type ItemAttributes map[string]interface + type ItemBrowseClassification struct + ClassificationId string + DisplayName string + type ItemClassificationSalesRank struct + ClassificationId string + Link *string + Rank int + Title string + type ItemContributor struct + Role ItemContributorRole + Value string + type ItemContributorRole struct + DisplayName *string + Value string + type ItemDimensions = []ItemDimensionsByMarketplace + type ItemDimensionsByMarketplace struct + Item *Dimensions + MarketplaceId string + Package *Dimensions + type ItemDisplayGroupSalesRank struct + Link *string + Rank int + Title string + WebsiteDisplayGroup string + type ItemIdentifier struct + Identifier string + IdentifierType string + type ItemIdentifiers = []ItemIdentifiersByMarketplace + type ItemIdentifiersByMarketplace struct + Identifiers []ItemIdentifier + MarketplaceId string + type ItemImage struct + Height int + Link string + Variant ItemImageVariant + Width int + type ItemImageVariant string + const MAIN + const PT01 + const PT02 + const PT03 + const PT04 + const PT05 + const PT06 + const PT07 + const PT08 + const SWCH + type ItemImages = []ItemImagesByMarketplace + type ItemImagesByMarketplace struct + Images []ItemImage + MarketplaceId string + type ItemProductTypeByMarketplace struct + MarketplaceId *string + ProductType *string + type ItemProductTypes = []ItemProductTypeByMarketplace + type ItemRelationship struct + ChildAsins *[]string + ParentAsins *[]string + Type ItemRelationshipType + VariationTheme *ItemVariationTheme + type ItemRelationshipType string + const PACKAGEHIERARCHY + const VARIATION + type ItemRelationships = []ItemRelationshipsByMarketplace + type ItemRelationshipsByMarketplace struct + MarketplaceId string + Relationships []ItemRelationship + type ItemSalesRanks = []ItemSalesRanksByMarketplace + type ItemSalesRanksByMarketplace struct + ClassificationRanks *[]ItemClassificationSalesRank + DisplayGroupRanks *[]ItemDisplayGroupSalesRank + MarketplaceId string + type ItemSearchResults struct + Items []Item + NumberOfResults int + Pagination Pagination + Refinements Refinements + type ItemSummaries = []ItemSummaryByMarketplace + type ItemSummaryByMarketplace struct + AdultProduct *bool + Autographed *bool + Brand *string + BrowseClassification *ItemBrowseClassification + Color *string + Contributors *[]ItemContributor + ItemClassification *ItemSummaryByMarketplaceItemClassification + ItemName *string + Manufacturer *string + MarketplaceId string + Memorabilia *bool + ModelNumber *string + PackageQuantity *int + PartNumber *string + ReleaseDate *openapi_types.Date + Size *string + Style *string + TradeInEligible *bool + WebsiteDisplayGroup *string + WebsiteDisplayGroupName *string + type ItemSummaryByMarketplaceItemClassification string + const BASEPRODUCT + const OTHER + const PRODUCTBUNDLE + const VARIATIONPARENT + type ItemVariationTheme struct + Attributes *[]string + Theme *string + type ItemVendorDetails = []ItemVendorDetailsByMarketplace + type ItemVendorDetailsByMarketplace struct + BrandCode *string + ManufacturerCode *string + ManufacturerCodeParent *string + MarketplaceId string + ProductCategory *ItemVendorDetailsCategory + ProductGroup *string + ProductSubcategory *ItemVendorDetailsCategory + ReplenishmentCategory *ItemVendorDetailsByMarketplaceReplenishmentCategory + type ItemVendorDetailsByMarketplaceReplenishmentCategory string + const ALLOCATED + const BASICREPLENISHMENT + const INSEASON + const LIMITEDREPLENISHMENT + const MANUFACTUREROUTOFSTOCK + const NEWPRODUCT + const NONREPLENISHABLE + const NONSTOCKUPABLE + const OBSOLETE + const PLANNEDREPLENISHMENT + type ItemVendorDetailsCategory struct + DisplayName *string + Value *string + type Pagination struct + NextToken *string + PreviousToken *string + type Refinements struct + Brands []BrandRefinement + Classifications []ClassificationRefinement + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error + type SearchCatalogItemsParams struct + BrandNames *[]string + ClassificationIds *[]string + Identifiers *[]string + IdentifiersType *SearchCatalogItemsParamsIdentifiersType + IncludedData *[]SearchCatalogItemsParamsIncludedData + Keywords *[]string + KeywordsLocale *string + Locale *string + MarketplaceIds []string + PageSize *int + PageToken *string + SellerId *string + type SearchCatalogItemsParamsIdentifiersType string + const ASIN + const EAN + const GTIN + const ISBN + const JAN + const MINSAN + const SKU + const UPC + type SearchCatalogItemsParamsIncludedData string + const SearchCatalogItemsParamsIncludedDataAttributes + const SearchCatalogItemsParamsIncludedDataDimensions + const SearchCatalogItemsParamsIncludedDataIdentifiers + const SearchCatalogItemsParamsIncludedDataImages + const SearchCatalogItemsParamsIncludedDataProductTypes + const SearchCatalogItemsParamsIncludedDataRelationships + const SearchCatalogItemsParamsIncludedDataSalesRanks + const SearchCatalogItemsParamsIncludedDataSummaries + const SearchCatalogItemsParamsIncludedDataVendorDetails + 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(rsp *http.Response) (*SearchCatalogItemsResp, error) + func (r SearchCatalogItemsResp) Status() string + func (r SearchCatalogItemsResp) StatusCode() int