Documentation
¶
Overview ¶
Package listingsItems20210801 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 ¶
- func NewDeleteListingsItemRequest(server string, sellerId string, sku string, params *DeleteListingsItemParams) (*http.Request, error)
- func NewGetListingsItemRequest(server string, sellerId string, sku string, params *GetListingsItemParams) (*http.Request, error)
- func NewPatchListingsItemRequest(server string, sellerId string, sku string, params *PatchListingsItemParams, ...) (*http.Request, error)
- func NewPatchListingsItemRequestWithBody(server string, sellerId string, sku string, params *PatchListingsItemParams, ...) (*http.Request, error)
- func NewPutListingsItemRequest(server string, sellerId string, sku string, params *PutListingsItemParams, ...) (*http.Request, error)
- func NewPutListingsItemRequestWithBody(server string, sellerId string, sku string, params *PutListingsItemParams, ...) (*http.Request, error)
- type Client
- func (c *Client) DeleteListingsItem(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- func (c *Client) GetListingsItem(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- func (c *Client) PatchListingsItem(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- func (c *Client) PatchListingsItemWithBody(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- func (c *Client) PutListingsItem(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- func (c *Client) PutListingsItemWithBody(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteListingsItemWithResponse(ctx context.Context, sellerId string, sku string, ...) (*DeleteListingsItemResp, error)
- func (c *ClientWithResponses) GetListingsItemWithResponse(ctx context.Context, sellerId string, sku string, ...) (*GetListingsItemResp, error)
- func (c *ClientWithResponses) PatchListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, ...) (*PatchListingsItemResp, error)
- func (c *ClientWithResponses) PatchListingsItemWithResponse(ctx context.Context, sellerId string, sku string, ...) (*PatchListingsItemResp, error)
- func (c *ClientWithResponses) PutListingsItemWithBodyWithResponse(ctx context.Context, sellerId string, sku string, ...) (*PutListingsItemResp, error)
- func (c *ClientWithResponses) PutListingsItemWithResponse(ctx context.Context, sellerId string, sku string, ...) (*PutListingsItemResp, error)
- type ClientWithResponsesInterface
- type Decimal
- type DeleteListingsItemParams
- type DeleteListingsItemResp
- type Error
- type ErrorList
- type FulfillmentAvailability
- type GetListingsItemParams
- type GetListingsItemParamsIncludedData
- type GetListingsItemResp
- type HttpRequestDoer
- type Issue
- type IssueSeverity
- type Item
- type ItemAttributes
- type ItemImage
- type ItemIssues
- type ItemOfferByMarketplace
- type ItemOfferByMarketplaceOfferType
- type ItemOffers
- type ItemProcurement
- type ItemSummaries
- type ItemSummaryByMarketplace
- type ItemSummaryByMarketplaceConditionType
- type ItemSummaryByMarketplaceStatus
- type ListingsItemPatchRequest
- type ListingsItemPutRequest
- type ListingsItemPutRequestRequirements
- type ListingsItemSubmissionResponse
- type ListingsItemSubmissionResponseStatus
- type Money
- type PatchListingsItemJSONRequestBody
- type PatchListingsItemParams
- type PatchListingsItemResp
- type PatchOperation
- type PatchOperationOp
- type Points
- type PutListingsItemJSONRequestBody
- type PutListingsItemParams
- type PutListingsItemResp
- type RequestEditorFn
- type ResponseEditorFn
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 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 (*Client) GetListingsItem ¶
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 (*Client) PutListingsItem ¶
func (c *Client) PutListingsItem(ctx context.Context, sellerId string, sku string, params *PutListingsItemParams, body PutListingsItemJSONRequestBody) (*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 ¶
ClientOption allows setting custom parameters during construction
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 Designates which fulfillment network 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 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 ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Issue ¶
type Issue struct { // AttributeNames Names of the attributes associated with the issue, if applicable. AttributeNames *[]string `json:"attributeNames,omitempty"` // Code An issue code that identifies the type of issue. Code string `json:"code"` // 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 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 JSON object containing structured listings item attribute data keyed by attribute name. Attributes *ItemAttributes `json:"attributes,omitempty"` // FulfillmentAvailability Fulfillment availability for the listings item. FulfillmentAvailability *[]FulfillmentAvailability `json:"fulfillmentAvailability,omitempty"` // Issues Issues associated with the listings item. Issues *ItemIssues `json:"issues,omitempty"` // Offers Offer details for the listings item. Offers *ItemOffers `json:"offers,omitempty"` // Procurement 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 JSON object containing structured listings item attribute data keyed by attribute name.
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"` // Width Width of the image in pixels. Width int `json:"width"` }
ItemImage Image for the listings item.
type ItemOfferByMarketplace ¶
type ItemOfferByMarketplace struct { // MarketplaceId 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 the 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.
const ( B2B ItemOfferByMarketplaceOfferType = "B2B" B2C ItemOfferByMarketplaceOfferType = "B2C" )
Defines values for ItemOfferByMarketplaceOfferType.
type ItemOffers ¶
type ItemOffers = []ItemOfferByMarketplace
ItemOffers Offer details for the listings item.
type ItemProcurement ¶
type ItemProcurement = []interface{}
ItemProcurement 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 Date the listings item was created, in ISO 8601 format. CreatedDate time.Time `json:"createdDate"` // FnSku Fulfillment network stock keeping unit is an identifier used by Amazon fulfillment centers to identify each unique item. FnSku *string `json:"fnSku,omitempty"` // ItemName Name, or title, associated with an Amazon catalog item. ItemName string `json:"itemName"` // LastUpdatedDate Date the listings item was last updated, in ISO 8601 format. LastUpdatedDate time.Time `json:"lastUpdatedDate"` // MainImage 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 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 { // 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" )
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 the 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"` // 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 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. See <https://tools.ietf.org/html/rfc6902>. Op PatchOperationOp `json:"op"` // Path JSON Pointer path of the element to patch. See <https://tools.ietf.org/html/rfc6902>. 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. See <https://tools.ietf.org/html/rfc6902>.
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"` // 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 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 ¶
RequestEditorFn is the function signature for the RequestEditor callback function