listingsitemsv20210801

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteListingsItemRequest

func NewDeleteListingsItemRequest(server string, sellerId string, sku string, params *DeleteListingsItemParams) (*http.Request, error)

NewDeleteListingsItemRequest generates requests for DeleteListingsItem

func NewGetListingsItemRequest

func NewGetListingsItemRequest(server string, sellerId string, sku string, params *GetListingsItemParams) (*http.Request, error)

NewGetListingsItemRequest generates requests for GetListingsItem

func NewPatchListingsItemRequest

func NewPatchListingsItemRequest(server string, sellerId string, sku string, params *PatchListingsItemParams, body PatchListingsItemJSONRequestBody) (*http.Request, error)

NewPatchListingsItemRequest calls the generic PatchListingsItem builder with application/json body

func NewPatchListingsItemRequestWithBody

func NewPatchListingsItemRequestWithBody(server string, sellerId string, sku string, params *PatchListingsItemParams, contentType string, body io.Reader) (*http.Request, error)

NewPatchListingsItemRequestWithBody generates requests for PatchListingsItem with any type of body

func NewPutListingsItemRequest

func NewPutListingsItemRequest(server string, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*http.Request, error)

NewPutListingsItemRequest calls the generic PutListingsItem builder with application/json body

func NewPutListingsItemRequestWithBody

func NewPutListingsItemRequestWithBody(server string, sellerId string, sku string, params *PutListingsItemParams, contentType string, body io.Reader) (*http.Request, error)

NewPutListingsItemRequestWithBody generates requests for PutListingsItem with any type of body

Types

type Audience added in v1.0.9

type Audience struct {
	// DisplayName Localized display name for the audience.
	DisplayName *string `json:"displayName,omitempty"`

	// Value Name of the audience an offer is applicable to.
	//
	// Common values:
	//
	// * 'ALL' - Standard offer audience for buyers on Amazon retail websites.
	//
	// * 'B2B' - Offer audience for Amazon Business website buyers.
	Value *string `json:"value,omitempty"`
}

Audience Buyer segment or program this offer is applicable to.

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) DeleteListingsItem

func (c *Client) DeleteListingsItem(ctx context.Context, sellerId string, sku string, params *DeleteListingsItemParams) (*http.Response, error)

func (*Client) GetListingsItem

func (c *Client) GetListingsItem(ctx context.Context, sellerId string, sku string, params *GetListingsItemParams) (*http.Response, error)

func (*Client) PatchListingsItem

func (c *Client) PatchListingsItem(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, body PatchListingsItemJSONRequestBody) (*http.Response, error)

func (*Client) PatchListingsItemWithBody

func (c *Client) PatchListingsItemWithBody(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) PutListingsItem

func (c *Client) PutListingsItem(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*http.Response, error)

func (*Client) PutListingsItemWithBody

func (c *Client) PutListingsItemWithBody(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, contentType string, body io.Reader) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// DeleteListingsItem request
	DeleteListingsItem(ctx context.Context, sellerId string, sku string, params *DeleteListingsItemParams) (*http.Response, error)

	// GetListingsItem request
	GetListingsItem(ctx context.Context, sellerId string, sku string, params *GetListingsItemParams) (*http.Response, error)

	// PatchListingsItemWithBody request with any body
	PatchListingsItemWithBody(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, contentType string, body io.Reader) (*http.Response, error)

	PatchListingsItem(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, body PatchListingsItemJSONRequestBody) (*http.Response, error)

	// PutListingsItemWithBody request with any body
	PutListingsItemWithBody(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, contentType string, body io.Reader) (*http.Response, error)

	PutListingsItem(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*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) DeleteListingsItemWithResponse

func (c *ClientWithResponses) DeleteListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *DeleteListingsItemParams) (*DeleteListingsItemResp, error)

DeleteListingsItemWithResponse request returning *DeleteListingsItemResp

func (*ClientWithResponses) GetListingsItemWithResponse

func (c *ClientWithResponses) GetListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *GetListingsItemParams) (*GetListingsItemResp, error)

GetListingsItemWithResponse request returning *GetListingsItemResp

func (*ClientWithResponses) PatchListingsItemWithBodyWithResponse

func (c *ClientWithResponses) PatchListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, contentType string, body io.Reader) (*PatchListingsItemResp, error)

PatchListingsItemWithBodyWithResponse request with arbitrary body returning *PatchListingsItemResp

func (*ClientWithResponses) PatchListingsItemWithResponse

func (c *ClientWithResponses) PatchListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, body PatchListingsItemJSONRequestBody) (*PatchListingsItemResp, error)

func (*ClientWithResponses) PutListingsItemWithBodyWithResponse

func (c *ClientWithResponses) PutListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, contentType string, body io.Reader) (*PutListingsItemResp, error)

PutListingsItemWithBodyWithResponse request with arbitrary body returning *PutListingsItemResp

func (*ClientWithResponses) PutListingsItemWithResponse

func (c *ClientWithResponses) PutListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*PutListingsItemResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DeleteListingsItemWithResponse request
	DeleteListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *DeleteListingsItemParams) (*DeleteListingsItemResp, error)

	// GetListingsItemWithResponse request
	GetListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *GetListingsItemParams) (*GetListingsItemResp, error)

	// PatchListingsItemWithBodyWithResponse request with any body
	PatchListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, contentType string, body io.Reader) (*PatchListingsItemResp, error)

	PatchListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *PatchListingsItemParams, body PatchListingsItemJSONRequestBody) (*PatchListingsItemResp, error)

	// PutListingsItemWithBodyWithResponse request with any body
	PutListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, contentType string, body io.Reader) (*PutListingsItemResp, error)

	PutListingsItemWithResponse(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*PutListingsItemResp, error)
}

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

type Decimal

type Decimal = string

Decimal A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation.

type DeleteListingsItemParams

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

	// IssueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
	IssueLocale *string `form:"issueLocale,omitempty" json:"issueLocale,omitempty"`
}

DeleteListingsItemParams defines parameters for DeleteListingsItem.

type DeleteListingsItemResp

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

func ParseDeleteListingsItemResp

func ParseDeleteListingsItemResp(rsp *http.Response) (*DeleteListingsItemResp, error)

ParseDeleteListingsItemResp parses an HTTP response from a DeleteListingsItemWithResponse call

func (DeleteListingsItemResp) Status

func (r DeleteListingsItemResp) Status() string

Status returns HTTPResponse.Status

func (DeleteListingsItemResp) StatusCode

func (r DeleteListingsItemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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 FulfillmentAvailability

type FulfillmentAvailability struct {
	// FulfillmentChannelCode The code of the fulfillment network that will be used.
	FulfillmentChannelCode string `json:"fulfillmentChannelCode"`

	// Quantity The quantity of the item you are making available for sale.
	Quantity *int `json:"quantity,omitempty"`
}

FulfillmentAvailability The fulfillment availability details for the listings item.

type GetListingsItemParams

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

	// IssueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
	IssueLocale *string `form:"issueLocale,omitempty" json:"issueLocale,omitempty"`

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

GetListingsItemParams defines parameters for GetListingsItem.

type GetListingsItemParamsIncludedData

type GetListingsItemParamsIncludedData string

GetListingsItemParamsIncludedData defines parameters for GetListingsItem.

const (
	GetListingsItemParamsIncludedDataAttributes              GetListingsItemParamsIncludedData = "attributes"
	GetListingsItemParamsIncludedDataFulfillmentAvailability GetListingsItemParamsIncludedData = "fulfillmentAvailability"
	GetListingsItemParamsIncludedDataIssues                  GetListingsItemParamsIncludedData = "issues"
	GetListingsItemParamsIncludedDataOffers                  GetListingsItemParamsIncludedData = "offers"
	GetListingsItemParamsIncludedDataProcurement             GetListingsItemParamsIncludedData = "procurement"
	GetListingsItemParamsIncludedDataSummaries               GetListingsItemParamsIncludedData = "summaries"
)

Defines values for GetListingsItemParamsIncludedData.

type GetListingsItemResp

type GetListingsItemResp 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 ParseGetListingsItemResp

func ParseGetListingsItemResp(rsp *http.Response) (*GetListingsItemResp, error)

ParseGetListingsItemResp parses an HTTP response from a GetListingsItemWithResponse call

func (GetListingsItemResp) Status

func (r GetListingsItemResp) Status() string

Status returns HTTPResponse.Status

func (GetListingsItemResp) StatusCode

func (r GetListingsItemResp) 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 Issue

type Issue struct {
	// AttributeNames The names of the attributes associated with the issue, if applicable.
	AttributeNames *[]string `json:"attributeNames,omitempty"`

	// Categories List of issue categories.
	//
	// Possible vales:
	//
	// * `INVALID_ATTRIBUTE` - Indicating an invalid attribute in the listing.
	//
	// * `MISSING_ATTRIBUTE` - Highlighting a missing attribute in the listing.
	//
	// * `INVALID_IMAGE` - Signifying an invalid image in the listing.
	//
	// * `MISSING_IMAGE` - Noting the absence of an image in the listing.
	//
	// * `INVALID_PRICE` - Pertaining to issues with the listing's price-related attributes.
	//
	// * `MISSING_PRICE` - Pointing out the absence of a price attribute in the listing.
	//
	// * `DUPLICATE` - Identifying listings with potential duplicate problems, such as this ASIN potentially being a duplicate of another ASIN.
	//
	// * `QUALIFICATION_REQUIRED` - Indicating that the listing requires qualification-related approval.
	Categories []string `json:"categories"`

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

	// Enforcements This field provides information about the enforcement actions taken by Amazon that affect the publishing or status of a listing. It also includes details about any associated exemptions.
	Enforcements *IssueEnforcements `json:"enforcements,omitempty"`

	// Message A message that describes the issue.
	Message string `json:"message"`

	// Severity The severity of the issue.
	Severity IssueSeverity `json:"severity"`
}

Issue An issue with a listings item.

type IssueEnforcementAction

type IssueEnforcementAction struct {
	// Action The enforcement action name.
	//
	// Possible values:
	//
	// * `LISTING_SUPPRESSED` - This enforcement takes down the current listing item's buyability.
	//
	// * `ATTRIBUTE_SUPPRESSED` - An attribute's value on the listing item is invalid, which causes it to be rejected by Amazon.
	//
	// * `CATALOG_ITEM_REMOVED` - This catalog item is inactive on Amazon, and all offers against it in the applicable marketplace are non-buyable.
	//
	// * `SEARCH_SUPPRESSED` - This value indicates that the catalog item is hidden from search results.
	Action string `json:"action"`
}

IssueEnforcementAction The enforcement action taken by Amazon that affect the publishing or status of a listing

type IssueEnforcements

type IssueEnforcements struct {
	// Actions List of enforcement actions taken by Amazon that affect the publishing or status of a listing.
	Actions []IssueEnforcementAction `json:"actions"`

	// Exemption Conveying the status of the listed enforcement actions and, if applicable, provides information about the exemption's expiry date.
	Exemption IssueExemption `json:"exemption"`
}

IssueEnforcements This field provides information about the enforcement actions taken by Amazon that affect the publishing or status of a listing. It also includes details about any associated exemptions.

type IssueExemption

type IssueExemption struct {
	// ExpiryDate This field represents the timestamp, following the ISO 8601 format, which specifies the date when temporary exemptions, if applicable, will expire, and Amazon will begin enforcing the listed actions.
	ExpiryDate *time.Time `json:"expiryDate,omitempty"`

	// Status This field indicates the current exemption status for the listed enforcement actions. It can take values such as `EXEMPT`, signifying permanent exemption, `EXEMPT_UNTIL_EXPIRY_DATE` indicating temporary exemption until a specified date, or `NOT_EXEMPT` signifying no exemptions, and enforcement actions were already applied.
	Status IssueExemptionStatus `json:"status"`
}

IssueExemption Conveying the status of the listed enforcement actions and, if applicable, provides information about the exemption's expiry date.

type IssueExemptionStatus

type IssueExemptionStatus string

IssueExemptionStatus This field indicates the current exemption status for the listed enforcement actions. It can take values such as `EXEMPT`, signifying permanent exemption, `EXEMPT_UNTIL_EXPIRY_DATE` indicating temporary exemption until a specified date, or `NOT_EXEMPT` signifying no exemptions, and enforcement actions were already applied.

const (
	EXEMPT                IssueExemptionStatus = "EXEMPT"
	EXEMPTUNTILEXPIRYDATE IssueExemptionStatus = "EXEMPT_UNTIL_EXPIRY_DATE"
	NOTEXEMPT             IssueExemptionStatus = "NOT_EXEMPT"
)

Defines values for IssueExemptionStatus.

type IssueSeverity

type IssueSeverity string

IssueSeverity The severity of the issue.

const (
	ERROR   IssueSeverity = "ERROR"
	INFO    IssueSeverity = "INFO"
	WARNING IssueSeverity = "WARNING"
)

Defines values for IssueSeverity.

type Item

type Item struct {
	// Attributes A JSON object containing structured listings item attribute data keyed by attribute name.
	Attributes *ItemAttributes `json:"attributes,omitempty"`

	// FulfillmentAvailability The fulfillment availability for the listings item.
	FulfillmentAvailability *[]FulfillmentAvailability `json:"fulfillmentAvailability,omitempty"`

	// Issues The issues associated with the listings item.
	Issues *ItemIssues `json:"issues,omitempty"`

	// Offers Offer details for the listings item.
	Offers *ItemOffers `json:"offers,omitempty"`

	// Procurement The vendor procurement information for the listings item.
	Procurement *[]ItemProcurement `json:"procurement,omitempty"`

	// Sku A selling partner provided identifier for an Amazon listing.
	Sku string `json:"sku"`

	// Summaries Summary details of a listings item.
	Summaries *ItemSummaries `json:"summaries,omitempty"`
}

Item A listings item.

type ItemAttributes

type ItemAttributes map[string]interface{}

ItemAttributes A JSON object containing structured listings item attribute data keyed by attribute name.

type ItemIdentifiers

type ItemIdentifiers = []ItemIdentifiersByMarketplace

ItemIdentifiers Identity attributes associated with the item in the Amazon catalog, such as the ASIN.

type ItemIdentifiersByMarketplace

type ItemIdentifiersByMarketplace struct {
	// Asin Amazon Standard Identification Number (ASIN) of the listings item.
	Asin *string `json:"asin,omitempty"`

	// MarketplaceId A marketplace identifier. Identifies the Amazon marketplace for the listings item.
	MarketplaceId *string `json:"marketplaceId,omitempty"`
}

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

type ItemImage

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

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

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

ItemImage The image for the listings item.

type ItemIssues

type ItemIssues = []Issue

ItemIssues The issues associated with the listings item.

type ItemOfferByMarketplace

type ItemOfferByMarketplace struct {
	// Audience Buyer segment or program this offer is applicable to.
	Audience *Audience `json:"audience,omitempty"`

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

	// OfferType Type of offer for the listings item.
	OfferType ItemOfferByMarketplaceOfferType `json:"offerType"`

	// Points The number of Amazon Points offered with the purchase of an item, and their monetary value. Note that the `Points` element is only returned in Japan (JP).
	Points *Points `json:"points,omitempty"`

	// Price The currency type and amount.
	Price Money `json:"price"`
}

ItemOfferByMarketplace Offer details of a listings item for an Amazon marketplace.

type ItemOfferByMarketplaceOfferType

type ItemOfferByMarketplaceOfferType string

ItemOfferByMarketplaceOfferType Type of offer for the listings item.

Defines values for ItemOfferByMarketplaceOfferType.

type ItemOffers

type ItemOffers = []ItemOfferByMarketplace

ItemOffers Offer details for the listings item.

type ItemProcurement

type ItemProcurement struct {
	// CostPrice The currency type and amount.
	CostPrice Money `json:"costPrice"`
}

ItemProcurement The vendor procurement information for the listings item.

type ItemSummaries

type ItemSummaries = []ItemSummaryByMarketplace

ItemSummaries Summary details of a listings item.

type ItemSummaryByMarketplace

type ItemSummaryByMarketplace struct {
	// Asin Amazon Standard Identification Number (ASIN) of the listings item.
	Asin string `json:"asin"`

	// ConditionType Identifies the condition of the listings item.
	ConditionType *ItemSummaryByMarketplaceConditionType `json:"conditionType,omitempty"`

	// CreatedDate The date the listings item was created in ISO 8601 format.
	CreatedDate time.Time `json:"createdDate"`

	// FnSku The fulfillment network stock keeping unit is an identifier used by Amazon fulfillment centers to identify each unique item.
	FnSku *string `json:"fnSku,omitempty"`

	// ItemName The name or title associated with an Amazon catalog item.
	ItemName string `json:"itemName"`

	// LastUpdatedDate The date the listings item was last updated in ISO 8601 format.
	LastUpdatedDate time.Time `json:"lastUpdatedDate"`

	// MainImage The image for the listings item.
	MainImage *ItemImage `json:"mainImage,omitempty"`

	// MarketplaceId A marketplace identifier. Identifies the Amazon marketplace for the listings item.
	MarketplaceId string `json:"marketplaceId"`

	// ProductType The Amazon product type of the listings item.
	ProductType string `json:"productType"`

	// Status Statuses that apply to the listings item.
	Status []ItemSummaryByMarketplaceStatus `json:"status"`
}

ItemSummaryByMarketplace Summary details of a listings item for an Amazon marketplace.

type ItemSummaryByMarketplaceConditionType

type ItemSummaryByMarketplaceConditionType string

ItemSummaryByMarketplaceConditionType Identifies the condition of the listings item.

const (
	ClubClub               ItemSummaryByMarketplaceConditionType = "club_club"
	CollectibleAcceptable  ItemSummaryByMarketplaceConditionType = "collectible_acceptable"
	CollectibleGood        ItemSummaryByMarketplaceConditionType = "collectible_good"
	CollectibleLikeNew     ItemSummaryByMarketplaceConditionType = "collectible_like_new"
	CollectibleVeryGood    ItemSummaryByMarketplaceConditionType = "collectible_very_good"
	NewNew                 ItemSummaryByMarketplaceConditionType = "new_new"
	NewOem                 ItemSummaryByMarketplaceConditionType = "new_oem"
	NewOpenBox             ItemSummaryByMarketplaceConditionType = "new_open_box"
	RefurbishedRefurbished ItemSummaryByMarketplaceConditionType = "refurbished_refurbished"
	UsedAcceptable         ItemSummaryByMarketplaceConditionType = "used_acceptable"
	UsedGood               ItemSummaryByMarketplaceConditionType = "used_good"
	UsedLikeNew            ItemSummaryByMarketplaceConditionType = "used_like_new"
	UsedVeryGood           ItemSummaryByMarketplaceConditionType = "used_very_good"
)

Defines values for ItemSummaryByMarketplaceConditionType.

type ItemSummaryByMarketplaceStatus

type ItemSummaryByMarketplaceStatus string

ItemSummaryByMarketplaceStatus defines model for ItemSummaryByMarketplace.Status.

const (
	BUYABLE      ItemSummaryByMarketplaceStatus = "BUYABLE"
	DISCOVERABLE ItemSummaryByMarketplaceStatus = "DISCOVERABLE"
)

Defines values for ItemSummaryByMarketplaceStatus.

type ListingsItemPatchRequest

type ListingsItemPatchRequest struct {
	// Patches One or more JSON Patch operations to perform on the listings item.
	Patches []PatchOperation `json:"patches"`

	// ProductType The Amazon product type of the listings item.
	ProductType string `json:"productType"`
}

ListingsItemPatchRequest The request body schema for the `patchListingsItem` operation.

type ListingsItemPutRequest

type ListingsItemPutRequest struct {
	// Attributes A JSON object containing structured listings item attribute data keyed by attribute name.
	Attributes map[string]interface{} `json:"attributes"`

	// ProductType The Amazon product type of the listings item.
	ProductType string `json:"productType"`

	// Requirements The name of the requirements set for the provided data.
	Requirements *ListingsItemPutRequestRequirements `json:"requirements,omitempty"`
}

ListingsItemPutRequest The request body schema for the `putListingsItem` operation.

type ListingsItemPutRequestRequirements

type ListingsItemPutRequestRequirements string

ListingsItemPutRequestRequirements The name of the requirements set for the provided data.

const (
	LISTING            ListingsItemPutRequestRequirements = "LISTING"
	LISTINGOFFERONLY   ListingsItemPutRequestRequirements = "LISTING_OFFER_ONLY"
	LISTINGPRODUCTONLY ListingsItemPutRequestRequirements = "LISTING_PRODUCT_ONLY"
)

Defines values for ListingsItemPutRequestRequirements.

type ListingsItemSubmissionResponse

type ListingsItemSubmissionResponse struct {
	// Identifiers Identity attributes associated with the item in the Amazon catalog, such as the ASIN.
	Identifiers *ItemIdentifiers `json:"identifiers,omitempty"`

	// Issues Listings item issues related to the listings item submission.
	Issues *[]Issue `json:"issues,omitempty"`

	// Sku A selling partner provided identifier for an Amazon listing.
	Sku string `json:"sku"`

	// Status The status of the listings item submission.
	Status ListingsItemSubmissionResponseStatus `json:"status"`

	// SubmissionId The unique identifier of the listings item submission.
	SubmissionId string `json:"submissionId"`
}

ListingsItemSubmissionResponse Response containing the results of a submission to the Selling Partner API for Listings Items.

type ListingsItemSubmissionResponseStatus

type ListingsItemSubmissionResponseStatus string

ListingsItemSubmissionResponseStatus The status of the listings item submission.

const (
	ACCEPTED ListingsItemSubmissionResponseStatus = "ACCEPTED"
	INVALID  ListingsItemSubmissionResponseStatus = "INVALID"
	VALID    ListingsItemSubmissionResponseStatus = "VALID"
)

Defines values for ListingsItemSubmissionResponseStatus.

type Money

type Money struct {
	// Amount A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation.
	Amount Decimal `json:"amount"`

	// CurrencyCode Three-digit currency code in ISO 4217 format.
	CurrencyCode string `json:"currencyCode"`
}

Money The currency type and amount.

type PatchListingsItemJSONRequestBody

type PatchListingsItemJSONRequestBody = ListingsItemPatchRequest

PatchListingsItemJSONRequestBody defines body for PatchListingsItem for application/json ContentType.

type PatchListingsItemParams

type PatchListingsItemParams struct {
	// 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: `issues`.
	IncludedData *[]PatchListingsItemParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Mode The mode of operation for the request.
	Mode *PatchListingsItemParamsMode `form:"mode,omitempty" json:"mode,omitempty"`

	// IssueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
	IssueLocale *string `form:"issueLocale,omitempty" json:"issueLocale,omitempty"`
}

PatchListingsItemParams defines parameters for PatchListingsItem.

type PatchListingsItemParamsIncludedData

type PatchListingsItemParamsIncludedData string

PatchListingsItemParamsIncludedData defines parameters for PatchListingsItem.

const (
	PatchListingsItemParamsIncludedDataIdentifiers PatchListingsItemParamsIncludedData = "identifiers"
	PatchListingsItemParamsIncludedDataIssues      PatchListingsItemParamsIncludedData = "issues"
)

Defines values for PatchListingsItemParamsIncludedData.

type PatchListingsItemParamsMode

type PatchListingsItemParamsMode string

PatchListingsItemParamsMode defines parameters for PatchListingsItem.

const (
	PatchListingsItemParamsModeVALIDATIONPREVIEW PatchListingsItemParamsMode = "VALIDATION_PREVIEW"
)

Defines values for PatchListingsItemParamsMode.

type PatchListingsItemResp

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

func ParsePatchListingsItemResp

func ParsePatchListingsItemResp(rsp *http.Response) (*PatchListingsItemResp, error)

ParsePatchListingsItemResp parses an HTTP response from a PatchListingsItemWithResponse call

func (PatchListingsItemResp) Status

func (r PatchListingsItemResp) Status() string

Status returns HTTPResponse.Status

func (PatchListingsItemResp) StatusCode

func (r PatchListingsItemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchOperation

type PatchOperation struct {
	// Op Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. Refer to [JavaScript Object Notation (JSON) Patch](https://tools.ietf.org/html/rfc6902) for more information.
	Op PatchOperationOp `json:"op"`

	// Path JSON Pointer path of the element to patch. Refer to [JavaScript Object Notation (JSON) Patch](https://tools.ietf.org/html/rfc6902) for more information.
	Path string `json:"path"`

	// Value JSON value to add, replace, or delete.
	Value *[]map[string]interface{} `json:"value,omitempty"`
}

PatchOperation Individual JSON Patch operation for an HTTP PATCH request.

type PatchOperationOp

type PatchOperationOp string

PatchOperationOp Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. Refer to [JavaScript Object Notation (JSON) Patch](https://tools.ietf.org/html/rfc6902) for more information.

const (
	Add     PatchOperationOp = "add"
	Delete  PatchOperationOp = "delete"
	Replace PatchOperationOp = "replace"
)

Defines values for PatchOperationOp.

type Points

type Points struct {
	PointsNumber int `json:"pointsNumber"`
}

Points The number of Amazon Points offered with the purchase of an item, and their monetary value. Note that the `Points` element is only returned in Japan (JP).

type PutListingsItemJSONRequestBody

type PutListingsItemJSONRequestBody = ListingsItemPutRequest

PutListingsItemJSONRequestBody defines body for PutListingsItem for application/json ContentType.

type PutListingsItemParams

type PutListingsItemParams struct {
	// 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: `issues`.
	IncludedData *[]PutListingsItemParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Mode The mode of operation for the request.
	Mode *PutListingsItemParamsMode `form:"mode,omitempty" json:"mode,omitempty"`

	// IssueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
	IssueLocale *string `form:"issueLocale,omitempty" json:"issueLocale,omitempty"`
}

PutListingsItemParams defines parameters for PutListingsItem.

type PutListingsItemParamsIncludedData

type PutListingsItemParamsIncludedData string

PutListingsItemParamsIncludedData defines parameters for PutListingsItem.

const (
	Identifiers PutListingsItemParamsIncludedData = "identifiers"
	Issues      PutListingsItemParamsIncludedData = "issues"
)

Defines values for PutListingsItemParamsIncludedData.

type PutListingsItemParamsMode

type PutListingsItemParamsMode string

PutListingsItemParamsMode defines parameters for PutListingsItem.

const (
	PutListingsItemParamsModeVALIDATIONPREVIEW PutListingsItemParamsMode = "VALIDATION_PREVIEW"
)

Defines values for PutListingsItemParamsMode.

type PutListingsItemResp

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

func ParsePutListingsItemResp

func ParsePutListingsItemResp(rsp *http.Response) (*PutListingsItemResp, error)

ParsePutListingsItemResp parses an HTTP response from a PutListingsItemWithResponse call

func (PutListingsItemResp) Status

func (r PutListingsItemResp) Status() string

Status returns HTTPResponse.Status

func (PutListingsItemResp) StatusCode

func (r PutListingsItemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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

Jump to

Keyboard shortcuts

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