productPricing

package
v0.0.0-...-192e0a4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package productPricing provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Package productPricing provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCompetitivePricingRequest

func NewGetCompetitivePricingRequest(endpoint string, params *GetCompetitivePricingParams) (*http.Request, error)

NewGetCompetitivePricingRequest generates requests for GetCompetitivePricing

func NewGetItemOffersRequest

func NewGetItemOffersRequest(endpoint string, asin string, params *GetItemOffersParams) (*http.Request, error)

NewGetItemOffersRequest generates requests for GetItemOffers

func NewGetListingOffersRequest

func NewGetListingOffersRequest(endpoint string, sellerSKU string, params *GetListingOffersParams) (*http.Request, error)

NewGetListingOffersRequest generates requests for GetListingOffers

func NewGetPricingRequest

func NewGetPricingRequest(endpoint string, params *GetPricingParams) (*http.Request, error)

NewGetPricingRequest generates requests for GetPricing

Types

type ASINIdentifier

type ASINIdentifier struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN string `json:"ASIN"`

	// A marketplace identifier.
	MarketplaceId string `json:"MarketplaceId"`
}

ASINIdentifier defines model for ASINIdentifier.

type AttributeSetList

type AttributeSetList []map[string]interface{}

AttributeSetList defines model for AttributeSetList.

type BuyBoxEligibleOffers

type BuyBoxEligibleOffers []OfferCountType

BuyBoxEligibleOffers defines model for BuyBoxEligibleOffers.

type BuyBoxPriceType

type BuyBoxPriceType struct {
	LandedPrice  MoneyType `json:"LandedPrice"`
	ListingPrice MoneyType `json:"ListingPrice"`
	Points       *Points   `json:"Points,omitempty"`
	Shipping     MoneyType `json:"Shipping"`

	// Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
	Condition string `json:"condition"`
}

BuyBoxPriceType defines model for BuyBoxPriceType.

type BuyBoxPrices

type BuyBoxPrices []BuyBoxPriceType

BuyBoxPrices defines model for BuyBoxPrices.

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.
	Endpoint string

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

	// A callback for modifying requests which are generated before sending over
	// the network.
	RequestBefore RequestBeforeFn

	// A callback for modifying response which are generated before sending over
	// the network.
	ResponseAfter ResponseAfterFn

	// 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(endpoint string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetCompetitivePricing

func (c *Client) GetCompetitivePricing(ctx context.Context, params *GetCompetitivePricingParams) (*http.Response, error)

func (*Client) GetItemOffers

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

func (*Client) GetListingOffers

func (c *Client) GetListingOffers(ctx context.Context, sellerSKU string, params *GetListingOffersParams) (*http.Response, error)

func (*Client) GetPricing

func (c *Client) GetPricing(ctx context.Context, params *GetPricingParams) (*http.Response, error)

type ClientInterface

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

	// GetItemOffers request
	GetItemOffers(ctx context.Context, asin string, params *GetItemOffersParams) (*http.Response, error)

	// GetListingOffers request
	GetListingOffers(ctx context.Context, sellerSKU string, params *GetListingOffersParams) (*http.Response, error)

	// GetPricing request
	GetPricing(ctx context.Context, params *GetPricingParams) (*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 WithRequestBefore

func WithRequestBefore(fn RequestBeforeFn) ClientOption

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

func WithResponseAfter

func WithResponseAfter(fn ResponseAfterFn) ClientOption

WithResponseAfter allows setting up a callback function, which will be called right after get response the request. This can be used to log.

func WithUserAgent

func WithUserAgent(userAgent string) ClientOption

WithUserAgent set up useragent add user agent to every request automatically

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) GetCompetitivePricingWithResponse

func (c *ClientWithResponses) GetCompetitivePricingWithResponse(ctx context.Context, params *GetCompetitivePricingParams) (*GetCompetitivePricingResp, error)

GetCompetitivePricingWithResponse request returning *GetCompetitivePricingResponse

func (*ClientWithResponses) GetItemOffersWithResponse

func (c *ClientWithResponses) GetItemOffersWithResponse(ctx context.Context, asin string, params *GetItemOffersParams) (*GetItemOffersResp, error)

GetItemOffersWithResponse request returning *GetItemOffersResponse

func (*ClientWithResponses) GetListingOffersWithResponse

func (c *ClientWithResponses) GetListingOffersWithResponse(ctx context.Context, sellerSKU string, params *GetListingOffersParams) (*GetListingOffersResp, error)

GetListingOffersWithResponse request returning *GetListingOffersResponse

func (*ClientWithResponses) GetPricingWithResponse

func (c *ClientWithResponses) GetPricingWithResponse(ctx context.Context, params *GetPricingParams) (*GetPricingResp, error)

GetPricingWithResponse request returning *GetPricingResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetCompetitivePricing request
	GetCompetitivePricingWithResponse(ctx context.Context, params *GetCompetitivePricingParams) (*GetCompetitivePricingResp, error)

	// GetItemOffers request
	GetItemOffersWithResponse(ctx context.Context, asin string, params *GetItemOffersParams) (*GetItemOffersResp, error)

	// GetListingOffers request
	GetListingOffersWithResponse(ctx context.Context, sellerSKU string, params *GetListingOffersParams) (*GetListingOffersResp, error)

	// GetPricing request
	GetPricingWithResponse(ctx context.Context, params *GetPricingParams) (*GetPricingResp, error)
}

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

type CompetitivePriceList

type CompetitivePriceList []CompetitivePriceType

CompetitivePriceList defines model for CompetitivePriceList.

type CompetitivePriceType

type CompetitivePriceType struct {

	// The pricing model for each price that is returned.
	//
	// Possible values:
	//
	// * 1 - New Buy Box Price.
	// * 2 - Used Buy Box Price.
	CompetitivePriceId string    `json:"CompetitivePriceId"`
	Price              PriceType `json:"Price"`

	//  Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false.
	BelongsToRequester *bool `json:"belongsToRequester,omitempty"`

	// Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club.
	Condition *string `json:"condition,omitempty"`

	// Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
	Subcondition *string `json:"subcondition,omitempty"`
}

CompetitivePriceType defines model for CompetitivePriceType.

type CompetitivePricingType

type CompetitivePricingType struct {

	// A list of competitive pricing information.
	CompetitivePrices CompetitivePriceList `json:"CompetitivePrices"`

	// The number of active offer listings for the item that was submitted. The listing count is returned by condition, one for each listing condition value that is returned.
	NumberOfOfferListings NumberOfOfferListingsList `json:"NumberOfOfferListings"`
	TradeInValue          *MoneyType                `json:"TradeInValue,omitempty"`
}

CompetitivePricingType defines model for CompetitivePricingType.

type ConditionType

type ConditionType string

ConditionType defines model for ConditionType.

const (
	ConditionType_Club        ConditionType = "Club"
	ConditionType_Collectible ConditionType = "Collectible"
	ConditionType_New         ConditionType = "New"
	ConditionType_Refurbished ConditionType = "Refurbished"
	ConditionType_Used        ConditionType = "Used"
)

List of ConditionType

type DetailedShippingTimeType

type DetailedShippingTimeType struct {

	// Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE.
	AvailabilityType *string `json:"availabilityType,omitempty"`

	// The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping.
	AvailableDate *string `json:"availableDate,omitempty"`

	// The maximum time, in hours, that the item will likely be shipped after the order has been placed.
	MaximumHours *int64 `json:"maximumHours,omitempty"`

	// The minimum time, in hours, that the item will likely be shipped after the order has been placed.
	MinimumHours *int64 `json:"minimumHours,omitempty"`
}

DetailedShippingTimeType defines model for DetailedShippingTimeType.

type Error

type Error struct {

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

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

	// A message that describes the error condition in a human-readable form.
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorList

type ErrorList []Error

ErrorList defines model for ErrorList.

type FulfillmentChannelType

type FulfillmentChannelType string

FulfillmentChannelType defines model for FulfillmentChannelType.

const (
	FulfillmentChannelType_Amazon   FulfillmentChannelType = "Amazon"
	FulfillmentChannelType_Merchant FulfillmentChannelType = "Merchant"
)

List of FulfillmentChannelType

type GetCompetitivePricingParams

type GetCompetitivePricingParams struct {

	// A marketplace identifier. Specifies the marketplace for which prices are returned.
	MarketplaceId string `json:"MarketplaceId"`

	// A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.
	Asins *[]string `json:"Asins,omitempty"`

	// A list of up to twenty seller SKU values used to identify items in the given marketplace.
	Skus *[]string `json:"Skus,omitempty"`

	// Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku.
	ItemType string `json:"ItemType"`
}

GetCompetitivePricingParams defines parameters for GetCompetitivePricing.

type GetCompetitivePricingResp

type GetCompetitivePricingResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetPricingResponse
}

func ParseGetCompetitivePricingResp

func ParseGetCompetitivePricingResp(rsp *http.Response) (*GetCompetitivePricingResp, error)

ParseGetCompetitivePricingResp parses an HTTP response from a GetCompetitivePricingWithResponse call

func (GetCompetitivePricingResp) Status

func (r GetCompetitivePricingResp) Status() string

Status returns HTTPResponse.Status

func (GetCompetitivePricingResp) StatusCode

func (r GetCompetitivePricingResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetItemOffersParams

type GetItemOffersParams struct {

	// A marketplace identifier. Specifies the marketplace for which prices are returned.
	MarketplaceId string `json:"MarketplaceId"`

	// Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
	ItemCondition string `json:"ItemCondition"`
}

GetItemOffersParams defines parameters for GetItemOffers.

type GetItemOffersResp

type GetItemOffersResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetOffersResponse
}

func ParseGetItemOffersResp

func ParseGetItemOffersResp(rsp *http.Response) (*GetItemOffersResp, error)

ParseGetItemOffersResp parses an HTTP response from a GetItemOffersWithResponse call

func (GetItemOffersResp) Status

func (r GetItemOffersResp) Status() string

Status returns HTTPResponse.Status

func (GetItemOffersResp) StatusCode

func (r GetItemOffersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetListingOffersParams

type GetListingOffersParams struct {

	// A marketplace identifier. Specifies the marketplace for which prices are returned.
	MarketplaceId string `json:"MarketplaceId"`

	// Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
	ItemCondition string `json:"ItemCondition"`
}

GetListingOffersParams defines parameters for GetListingOffers.

type GetListingOffersResp

type GetListingOffersResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetOffersResponse
}

func ParseGetListingOffersResp

func ParseGetListingOffersResp(rsp *http.Response) (*GetListingOffersResp, error)

ParseGetListingOffersResp parses an HTTP response from a GetListingOffersWithResponse call

func (GetListingOffersResp) Status

func (r GetListingOffersResp) Status() string

Status returns HTTPResponse.Status

func (GetListingOffersResp) StatusCode

func (r GetListingOffersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOffersResponse

type GetOffersResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList       `json:"errors,omitempty"`
	Payload *GetOffersResult `json:"payload,omitempty"`
}

GetOffersResponse defines model for GetOffersResponse.

type GetOffersResult

type GetOffersResult struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// Information that identifies an item.
	Identifier ItemIdentifier `json:"Identifier"`

	// Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club.
	ItemCondition ConditionType `json:"ItemCondition"`

	// A marketplace identifier.
	MarketplaceID string          `json:"MarketplaceID"`
	Offers        OfferDetailList `json:"Offers"`

	// The stock keeping unit (SKU) of the item.
	SKU *string `json:"SKU,omitempty"`

	// Contains price information about the product, including the LowestPrices and BuyBoxPrices, the ListPrice, the SuggestedLowerPricePlusShipping, and NumberOfOffers and NumberOfBuyBoxEligibleOffers.
	Summary Summary `json:"Summary"`

	// The status of the operation.
	Status string `json:"status"`
}

GetOffersResult defines model for GetOffersResult.

type GetPricingParams

type GetPricingParams struct {

	// A marketplace identifier. Specifies the marketplace for which prices are returned.
	MarketplaceId string `json:"MarketplaceId"`

	// A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.
	Asins *[]string `json:"Asins,omitempty"`

	// A list of up to twenty seller SKU values used to identify items in the given marketplace.
	Skus *[]string `json:"Skus,omitempty"`

	// Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter.
	ItemType string `json:"ItemType"`

	// Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
	ItemCondition *string `json:"ItemCondition,omitempty"`
}

GetPricingParams defines parameters for GetPricing.

type GetPricingResp

type GetPricingResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetPricingResponse
}

func ParseGetPricingResp

func ParseGetPricingResp(rsp *http.Response) (*GetPricingResp, error)

ParseGetPricingResp parses an HTTP response from a GetPricingWithResponse call

func (GetPricingResp) Status

func (r GetPricingResp) Status() string

Status returns HTTPResponse.Status

func (GetPricingResp) StatusCode

func (r GetPricingResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingResponse

type GetPricingResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList `json:"errors,omitempty"`
	Payload *PriceList `json:"payload,omitempty"`
}

GetPricingResponse defines model for GetPricingResponse.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IdentifierType

type IdentifierType struct {
	MarketplaceASIN ASINIdentifier       `json:"MarketplaceASIN"`
	SKUIdentifier   *SellerSKUIdentifier `json:"SKUIdentifier,omitempty"`
}

IdentifierType defines model for IdentifierType.

type ItemIdentifier

type ItemIdentifier struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club.
	ItemCondition ConditionType `json:"ItemCondition"`

	// A marketplace identifier. Specifies the marketplace from which prices are returned.
	MarketplaceId string `json:"MarketplaceId"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU *string `json:"SellerSKU,omitempty"`
}

ItemIdentifier defines model for ItemIdentifier.

type LowestPriceType

type LowestPriceType struct {
	LandedPrice  MoneyType `json:"LandedPrice"`
	ListingPrice MoneyType `json:"ListingPrice"`
	Points       *Points   `json:"Points,omitempty"`
	Shipping     MoneyType `json:"Shipping"`

	// Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
	Condition string `json:"condition"`

	// Indicates whether the item is fulfilled by Amazon or by the seller.
	FulfillmentChannel string `json:"fulfillmentChannel"`
}

LowestPriceType defines model for LowestPriceType.

type LowestPrices

type LowestPrices []LowestPriceType

LowestPrices defines model for LowestPrices.

type MoneyType

type MoneyType struct {

	// The monetary value.
	Amount *float32 `json:"Amount,omitempty"`

	// The currency code in ISO 4217 format.
	CurrencyCode *string `json:"CurrencyCode,omitempty"`
}

MoneyType defines model for MoneyType.

type NumberOfOfferListingsList

type NumberOfOfferListingsList []OfferListingCountType

NumberOfOfferListingsList defines model for NumberOfOfferListingsList.

type NumberOfOffers

type NumberOfOffers []OfferCountType

NumberOfOffers defines model for NumberOfOffers.

type OfferCountType

type OfferCountType struct {

	// The number of offers in a fulfillment channel that meet a specific condition.
	OfferCount *int32 `json:"OfferCount,omitempty"`

	// Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
	Condition *string `json:"condition,omitempty"`

	// Indicates whether the item is fulfilled by Amazon or by the seller (merchant).
	FulfillmentChannel *FulfillmentChannelType `json:"fulfillmentChannel,omitempty"`
}

OfferCountType defines model for OfferCountType.

type OfferDetail

type OfferDetail struct {

	// When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime.
	IsBuyBoxWinner *bool `json:"IsBuyBoxWinner,omitempty"`

	// When true, the seller of the item is eligible to win the Buy Box.
	IsFeaturedMerchant *bool `json:"IsFeaturedMerchant,omitempty"`

	// When true, the offer is fulfilled by Amazon.
	IsFulfilledByAmazon bool      `json:"IsFulfilledByAmazon"`
	ListingPrice        MoneyType `json:"ListingPrice"`

	// When true, this is the seller's offer.
	MyOffer *bool   `json:"MyOffer,omitempty"`
	Points  *Points `json:"Points,omitempty"`

	// Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received.
	SellerFeedbackRating *SellerFeedbackType `json:"SellerFeedbackRating,omitempty"`
	Shipping             MoneyType           `json:"Shipping"`

	// The time range in which an item will likely be shipped once an order has been placed.
	ShippingTime DetailedShippingTimeType `json:"ShippingTime"`

	// The state and country from where the item is shipped.
	ShipsFrom *ShipsFromType `json:"ShipsFrom,omitempty"`

	// The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
	SubCondition string `json:"SubCondition"`
}

OfferDetail defines model for OfferDetail.

type OfferDetailList

type OfferDetailList []OfferDetail

OfferDetailList defines model for OfferDetailList.

type OfferListingCountType

type OfferListingCountType struct {

	// The number of offer listings.
	Count int32 `json:"Count"`

	// The condition of the item.
	Condition string `json:"condition"`
}

OfferListingCountType defines model for OfferListingCountType.

type OfferType

type OfferType struct {
	BuyingPrice PriceType `json:"BuyingPrice"`

	// The fulfillment channel for the offer listing. Possible values:
	//
	// * Amazon - Fulfilled by Amazon.
	// * Merchant - Fulfilled by the seller.
	FulfillmentChannel string `json:"FulfillmentChannel"`

	// The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club.
	ItemCondition string `json:"ItemCondition"`

	// The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
	ItemSubCondition string    `json:"ItemSubCondition"`
	RegularPrice     MoneyType `json:"RegularPrice"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU string `json:"SellerSKU"`
}

OfferType defines model for OfferType.

type OffersList

type OffersList []OfferType

OffersList defines model for OffersList.

type Points

type Points struct {
	PointsMonetaryValue *MoneyType `json:"PointsMonetaryValue,omitempty"`

	// The number of points.
	PointsNumber *int32 `json:"PointsNumber,omitempty"`
}

Points defines model for Points.

type Price

type Price struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// An item.
	Product *Product `json:"Product,omitempty"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU *string `json:"SellerSKU,omitempty"`

	// The status of the operation.
	Status string `json:"status"`
}

Price defines model for Price.

type PriceList

type PriceList []Price

PriceList defines model for PriceList.

type PriceType

type PriceType struct {
	LandedPrice  *MoneyType `json:"LandedPrice,omitempty"`
	ListingPrice MoneyType  `json:"ListingPrice"`
	Points       *Points    `json:"Points,omitempty"`
	Shipping     *MoneyType `json:"Shipping,omitempty"`
}

PriceType defines model for PriceType.

type Product

type Product struct {

	// A list of product attributes if they are applicable to the product that is returned.
	AttributeSets *AttributeSetList `json:"AttributeSets,omitempty"`

	// Competitive pricing information for the item.
	CompetitivePricing *CompetitivePricingType `json:"CompetitivePricing,omitempty"`

	// Specifies the identifiers used to uniquely identify an item.
	Identifiers IdentifierType `json:"Identifiers"`

	// A list of offers.
	Offers *OffersList `json:"Offers,omitempty"`

	// A list that contains product variation information, if applicable.
	Relationships *RelationshipList `json:"Relationships,omitempty"`

	// A list of sales rank information for the item, by category.
	SalesRankings *SalesRankList `json:"SalesRankings,omitempty"`
}

Product defines model for Product.

type RelationshipList

type RelationshipList []map[string]interface{}

RelationshipList defines model for RelationshipList.

type RequestBeforeFn

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

RequestBeforeFn is the function signature for the RequestBefore callback function

type ResponseAfterFn

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

ResponseAfterFn is the function signature for the ResponseAfter callback function

type SalesRankList

type SalesRankList []SalesRankType

SalesRankList defines model for SalesRankList.

type SalesRankType

type SalesRankType struct {

	//  Identifies the item category from which the sales rank is taken.
	ProductCategoryId string `json:"ProductCategoryId"`

	// The sales rank of the item within the item category.
	Rank int32 `json:"Rank"`
}

SalesRankType defines model for SalesRankType.

type SellerFeedbackType

type SellerFeedbackType struct {

	// The number of ratings received about the seller.
	FeedbackCount int64 `json:"FeedbackCount"`

	// The percentage of positive feedback for the seller in the past 365 days.
	SellerPositiveFeedbackRating *float64 `json:"SellerPositiveFeedbackRating,omitempty"`
}

SellerFeedbackType defines model for SellerFeedbackType.

type SellerSKUIdentifier

type SellerSKUIdentifier struct {

	// A marketplace identifier.
	MarketplaceId string `json:"MarketplaceId"`

	// The seller identifier submitted for the operation.
	SellerId string `json:"SellerId"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU string `json:"SellerSKU"`
}

SellerSKUIdentifier defines model for SellerSKUIdentifier.

type ShipsFromType

type ShipsFromType struct {

	// The country from where the item is shipped.
	Country *string `json:"Country,omitempty"`

	// The state from where the item is shipped.
	State *string `json:"State,omitempty"`
}

ShipsFromType defines model for ShipsFromType.

type Summary

type Summary struct {
	BuyBoxEligibleOffers *BuyBoxEligibleOffers `json:"BuyBoxEligibleOffers,omitempty"`
	BuyBoxPrices         *BuyBoxPrices         `json:"BuyBoxPrices,omitempty"`
	ListPrice            *MoneyType            `json:"ListPrice,omitempty"`
	LowestPrices         *LowestPrices         `json:"LowestPrices,omitempty"`
	NumberOfOffers       *NumberOfOffers       `json:"NumberOfOffers,omitempty"`

	// When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing.
	OffersAvailableTime             *time.Time `json:"OffersAvailableTime,omitempty"`
	SuggestedLowerPricePlusShipping *MoneyType `json:"SuggestedLowerPricePlusShipping,omitempty"`

	// The number of unique offers contained in NumberOfOffers.
	TotalOfferCount int32 `json:"TotalOfferCount"`
}

Summary defines model for Summary.

Jump to

Keyboard shortcuts

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