catalog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogAPI

type CatalogAPI struct {
	// contains filtered or unexported fields
}

CatalogAPI represents the Catalog API client

func NewCatalogAPI

func NewCatalogAPI(config *client.Configuration) *CatalogAPI

NewCatalogAPI creates a new Catalog API client

func (*CatalogAPI) GetAPIClient added in v1.2.0

func (c *CatalogAPI) GetAPIClient() *client.APIClient

GetAPIClient returns the underlying API client

func (*CatalogAPI) GetCatalogItem

func (c *CatalogAPI) GetCatalogItem(ctx context.Context, request *GetCatalogItemRequest) (*GetCatalogItemResponse, error)

GetCatalogItem retrieves a catalog item by ASIN

func (*CatalogAPI) GetCatalogItemSimple

func (c *CatalogAPI) GetCatalogItemSimple(ctx context.Context, asin string, marketplaceIds []string) (*GetCatalogItemResponse, error)

GetCatalogItemSimple is a simplified version of GetCatalogItem for common use cases

func (*CatalogAPI) SearchCatalogItems

func (c *CatalogAPI) SearchCatalogItems(ctx context.Context, request *SearchCatalogItemsRequest) (*SearchCatalogItemsResponse, error)

SearchCatalogItems searches for catalog items

func (*CatalogAPI) SearchCatalogItemsSimple

func (c *CatalogAPI) SearchCatalogItemsSimple(ctx context.Context, marketplaceIds []string, keywords []string) (*SearchCatalogItemsResponse, error)

SearchCatalogItemsSimple is a simplified version of SearchCatalogItems for common use cases

type CatalogItem

type CatalogItem struct {
	ASIN            string               `json:"asin"`
	Summaries       []ItemSummary        `json:"summaries,omitempty"`
	Attributes      []ItemAttribute      `json:"attributes,omitempty"`
	Images          []ItemImage          `json:"images,omitempty"`
	Classifications []ItemClassification `json:"classifications,omitempty"`
	Dimensions      []ItemDimension      `json:"dimensions,omitempty"`
	Identifiers     []ItemIdentifier     `json:"identifiers,omitempty"`
	ProductTypes    []ItemProductType    `json:"productTypes,omitempty"`
	Relationships   []ItemRelationship   `json:"relationships,omitempty"`
	SalesRanks      []ItemSalesRank      `json:"salesRanks,omitempty"`
	VendorDetails   *ItemVendorDetails   `json:"vendorDetails,omitempty"`
}

CatalogItem represents a catalog item

type Classification

type Classification struct {
	ProductType           string                 `json:"productType"`
	ProductTypeId         string                 `json:"productTypeId,omitempty"`
	ProductTypeName       string                 `json:"productTypeName,omitempty"`
	ProductTypeVersion    string                 `json:"productTypeVersion,omitempty"`
	ProductTypeAttributes map[string]interface{} `json:"productTypeAttributes,omitempty"`
}

Classification represents a classification

type GetCatalogItemRequest

type GetCatalogItemRequest struct {
	ASIN           string   `json:"asin"`
	MarketplaceIds []string `json:"marketplaceIds"`
	IncludedData   []string `json:"includedData,omitempty"`
	Locale         string   `json:"locale,omitempty"`
}

GetCatalogItemRequest represents the request parameters for getCatalogItem

type GetCatalogItemResponse

type GetCatalogItemResponse struct {
	ASIN            string               `json:"asin"`
	Summaries       []ItemSummary        `json:"summaries,omitempty"`
	Attributes      []ItemAttribute      `json:"attributes,omitempty"`
	Images          []ItemImage          `json:"images,omitempty"`
	Classifications []ItemClassification `json:"classifications,omitempty"`
	Dimensions      []ItemDimension      `json:"dimensions,omitempty"`
	Identifiers     []ItemIdentifier     `json:"identifiers,omitempty"`
	ProductTypes    []ItemProductType    `json:"productTypes,omitempty"`
	Relationships   []ItemRelationship   `json:"relationships,omitempty"`
	SalesRanks      []ItemSalesRank      `json:"salesRanks,omitempty"`
	VendorDetails   *ItemVendorDetails   `json:"vendorDetails,omitempty"`
}

GetCatalogItemResponse represents the response from getCatalogItem

type ItemAttribute

type ItemAttribute struct {
	MarketplaceId string                 `json:"marketplaceId"`
	ASIN          string                 `json:"asin"`
	ProductType   string                 `json:"productType"`
	Attributes    map[string]interface{} `json:"attributes,omitempty"`
}

ItemAttribute represents an item attribute

type ItemClassification

type ItemClassification struct {
	MarketplaceId   string           `json:"marketplaceId"`
	ASIN            string           `json:"asin"`
	ProductType     string           `json:"productType"`
	Classifications []Classification `json:"classifications,omitempty"`
}

ItemClassification represents an item classification

type ItemDimension

type ItemDimension struct {
	MarketplaceId string                 `json:"marketplaceId"`
	ASIN          string                 `json:"asin"`
	ProductType   string                 `json:"productType"`
	Dimensions    map[string]interface{} `json:"dimensions,omitempty"`
}

ItemDimension represents an item dimension

type ItemIdentifier

type ItemIdentifier struct {
	MarketplaceId string                 `json:"marketplaceId"`
	ASIN          string                 `json:"asin"`
	ProductType   string                 `json:"productType"`
	Identifiers   map[string]interface{} `json:"identifiers,omitempty"`
}

ItemIdentifier represents an item identifier

type ItemImage

type ItemImage struct {
	Link   string `json:"link"`
	Height int    `json:"height,omitempty"`
	Width  int    `json:"width,omitempty"`
}

ItemImage represents an item image

type ItemProductType

type ItemProductType struct {
	MarketplaceId         string                 `json:"marketplaceId"`
	ASIN                  string                 `json:"asin"`
	ProductType           string                 `json:"productType"`
	ProductTypeAttributes map[string]interface{} `json:"productTypeAttributes,omitempty"`
}

ItemProductType represents an item product type

type ItemRelationship

type ItemRelationship struct {
	MarketplaceId string         `json:"marketplaceId"`
	ASIN          string         `json:"asin"`
	ProductType   string         `json:"productType"`
	Relationships []Relationship `json:"relationships,omitempty"`
}

ItemRelationship represents an item relationship

type ItemSalesRank

type ItemSalesRank struct {
	MarketplaceId string      `json:"marketplaceId"`
	ASIN          string      `json:"asin"`
	ProductType   string      `json:"productType"`
	SalesRanks    []SalesRank `json:"salesRanks,omitempty"`
}

ItemSalesRank represents an item sales rank

type ItemSummary

type ItemSummary struct {
	MarketplaceId string                 `json:"marketplaceId"`
	ASIN          string                 `json:"asin"`
	ProductType   string                 `json:"productType"`
	ItemName      string                 `json:"itemName,omitempty"`
	MainImage     *ItemImage             `json:"mainImage,omitempty"`
	Summaries     []ItemSummaryAttribute `json:"summaries,omitempty"`
}

ItemSummary represents an item summary

type ItemSummaryAttribute

type ItemSummaryAttribute struct {
	Language string `json:"language"`
	Value    string `json:"value"`
}

ItemSummaryAttribute represents an item summary attribute

type ItemVendorDetails

type ItemVendorDetails struct {
	MarketplaceId string                 `json:"marketplaceId"`
	ASIN          string                 `json:"asin"`
	ProductType   string                 `json:"productType"`
	VendorDetails map[string]interface{} `json:"vendorDetails,omitempty"`
}

ItemVendorDetails represents item vendor details

type Pagination

type Pagination struct {
	NextToken     string `json:"nextToken,omitempty"`
	PreviousToken string `json:"previousToken,omitempty"`
}

Pagination represents pagination information

type Relationship

type Relationship struct {
	ASIN             string `json:"asin"`
	RelationshipType string `json:"relationshipType,omitempty"`
	RelationshipName string `json:"relationshipName,omitempty"`
}

Relationship represents a relationship

type SalesRank

type SalesRank struct {
	ProductCategoryId string `json:"productCategoryId"`
	Rank              int    `json:"rank"`
	Title             string `json:"title,omitempty"`
	Link              string `json:"link,omitempty"`
}

SalesRank represents a sales rank

type SearchCatalogItemsRequest

type SearchCatalogItemsRequest struct {
	MarketplaceIds    []string `json:"marketplaceIds"`
	Identifiers       []string `json:"identifiers,omitempty"`
	IdentifiersType   string   `json:"identifiersType,omitempty"`
	IncludedData      []string `json:"includedData,omitempty"`
	Locale            string   `json:"locale,omitempty"`
	SellerId          string   `json:"sellerId,omitempty"`
	Keywords          []string `json:"keywords,omitempty"`
	BrandNames        []string `json:"brandNames,omitempty"`
	ClassificationIds []string `json:"classificationIds,omitempty"`
	PageSize          int      `json:"pageSize,omitempty"`
	PageToken         string   `json:"pageToken,omitempty"`
	KeywordsLocale    string   `json:"keywordsLocale,omitempty"`
}

SearchCatalogItemsRequest represents the request parameters for searchCatalogItems

type SearchCatalogItemsResponse

type SearchCatalogItemsResponse struct {
	Items      []CatalogItem `json:"items"`
	Pagination *Pagination   `json:"pagination,omitempty"`
}

SearchCatalogItemsResponse represents the response from searchCatalogItems

Jump to

Keyboard shortcuts

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