Documentation ¶
Overview ¶
Package fbaSmallAndLightv1 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 NewDeleteSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightEligibilityBySellerSKURequest(server string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightFeePreviewRequest(server string, body GetSmallAndLightFeePreviewJSONRequestBody) (*http.Request, error)
- func NewGetSmallAndLightFeePreviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, ...) (*http.Request, error)
- type Client
- func (c *Client) DeleteSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, ...) (*http.Response, error)
- func (c *Client) GetSmallAndLightEligibilityBySellerSKU(ctx context.Context, sellerSKU string, ...) (*http.Response, error)
- func (c *Client) GetSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, ...) (*http.Response, error)
- func (c *Client) GetSmallAndLightFeePreview(ctx context.Context, body GetSmallAndLightFeePreviewJSONRequestBody) (*http.Response, error)
- func (c *Client) GetSmallAndLightFeePreviewWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) PutSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, ...) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error)
- func (c *ClientWithResponses) GetSmallAndLightEligibilityBySellerSKUWithResponse(ctx context.Context, sellerSKU string, ...) (*GetSmallAndLightEligibilityBySellerSKUResp, error)
- func (c *ClientWithResponses) GetSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, ...) (*GetSmallAndLightEnrollmentBySellerSKUResp, error)
- func (c *ClientWithResponses) GetSmallAndLightFeePreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetSmallAndLightFeePreviewResp, error)
- func (c *ClientWithResponses) GetSmallAndLightFeePreviewWithResponse(ctx context.Context, body GetSmallAndLightFeePreviewJSONRequestBody) (*GetSmallAndLightFeePreviewResp, error)
- func (c *ClientWithResponses) PutSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, ...) (*PutSmallAndLightEnrollmentBySellerSKUResp, error)
- type ClientWithResponsesInterface
- type DeleteSmallAndLightEnrollmentBySellerSKUParams
- type DeleteSmallAndLightEnrollmentBySellerSKUResp
- type Error
- type ErrorList
- type FeeLineItem
- type FeeLineItemFeeType
- type FeePreview
- type GetSmallAndLightEligibilityBySellerSKUParams
- type GetSmallAndLightEligibilityBySellerSKUResp
- type GetSmallAndLightEnrollmentBySellerSKUParams
- type GetSmallAndLightEnrollmentBySellerSKUResp
- type GetSmallAndLightFeePreviewJSONRequestBody
- type GetSmallAndLightFeePreviewResp
- type HttpRequestDoer
- type Item
- type MarketplaceId
- type MoneyType
- type PutSmallAndLightEnrollmentBySellerSKUParams
- type PutSmallAndLightEnrollmentBySellerSKUResp
- type RequestEditorFn
- type ResponseEditorFn
- type SellerSKU
- type SmallAndLightEligibility
- type SmallAndLightEligibilityStatus
- type SmallAndLightEnrollment
- type SmallAndLightEnrollmentStatus
- type SmallAndLightFeePreviewRequest
- type SmallAndLightFeePreviews
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteSmallAndLightEnrollmentBySellerSKURequest ¶
func NewDeleteSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*http.Request, error)
NewDeleteSmallAndLightEnrollmentBySellerSKURequest generates requests for DeleteSmallAndLightEnrollmentBySellerSKU
func NewGetSmallAndLightEligibilityBySellerSKURequest ¶
func NewGetSmallAndLightEligibilityBySellerSKURequest(server string, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*http.Request, error)
NewGetSmallAndLightEligibilityBySellerSKURequest generates requests for GetSmallAndLightEligibilityBySellerSKU
func NewGetSmallAndLightEnrollmentBySellerSKURequest ¶
func NewGetSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*http.Request, error)
NewGetSmallAndLightEnrollmentBySellerSKURequest generates requests for GetSmallAndLightEnrollmentBySellerSKU
func NewGetSmallAndLightFeePreviewRequest ¶
func NewGetSmallAndLightFeePreviewRequest(server string, body GetSmallAndLightFeePreviewJSONRequestBody) (*http.Request, error)
NewGetSmallAndLightFeePreviewRequest calls the generic GetSmallAndLightFeePreview builder with application/json body
func NewGetSmallAndLightFeePreviewRequestWithBody ¶
func NewGetSmallAndLightFeePreviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetSmallAndLightFeePreviewRequestWithBody generates requests for GetSmallAndLightFeePreview with any type of body
func NewPutSmallAndLightEnrollmentBySellerSKURequest ¶
func NewPutSmallAndLightEnrollmentBySellerSKURequest(server string, sellerSKU string, params *PutSmallAndLightEnrollmentBySellerSKUParams) (*http.Request, error)
NewPutSmallAndLightEnrollmentBySellerSKURequest generates requests for PutSmallAndLightEnrollmentBySellerSKU
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) DeleteSmallAndLightEnrollmentBySellerSKU ¶
func (*Client) GetSmallAndLightEligibilityBySellerSKU ¶
func (*Client) GetSmallAndLightEnrollmentBySellerSKU ¶
func (*Client) GetSmallAndLightFeePreview ¶
func (*Client) GetSmallAndLightFeePreviewWithBody ¶
func (*Client) PutSmallAndLightEnrollmentBySellerSKU ¶
type ClientInterface ¶
type ClientInterface interface { // GetSmallAndLightEligibilityBySellerSKU request GetSmallAndLightEligibilityBySellerSKU(ctx context.Context, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*http.Response, error) // DeleteSmallAndLightEnrollmentBySellerSKU request DeleteSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*http.Response, error) // GetSmallAndLightEnrollmentBySellerSKU request GetSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*http.Response, error) // PutSmallAndLightEnrollmentBySellerSKU request PutSmallAndLightEnrollmentBySellerSKU(ctx context.Context, sellerSKU string, params *PutSmallAndLightEnrollmentBySellerSKUParams) (*http.Response, error) // GetSmallAndLightFeePreviewWithBody request with any body GetSmallAndLightFeePreviewWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) GetSmallAndLightFeePreview(ctx context.Context, body GetSmallAndLightFeePreviewJSONRequestBody) (*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) DeleteSmallAndLightEnrollmentBySellerSKUWithResponse ¶
func (c *ClientWithResponses) DeleteSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error)
DeleteSmallAndLightEnrollmentBySellerSKUWithResponse request returning *DeleteSmallAndLightEnrollmentBySellerSKUResp
func (*ClientWithResponses) GetSmallAndLightEligibilityBySellerSKUWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightEligibilityBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*GetSmallAndLightEligibilityBySellerSKUResp, error)
GetSmallAndLightEligibilityBySellerSKUWithResponse request returning *GetSmallAndLightEligibilityBySellerSKUResp
func (*ClientWithResponses) GetSmallAndLightEnrollmentBySellerSKUWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*GetSmallAndLightEnrollmentBySellerSKUResp, error)
GetSmallAndLightEnrollmentBySellerSKUWithResponse request returning *GetSmallAndLightEnrollmentBySellerSKUResp
func (*ClientWithResponses) GetSmallAndLightFeePreviewWithBodyWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightFeePreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetSmallAndLightFeePreviewResp, error)
GetSmallAndLightFeePreviewWithBodyWithResponse request with arbitrary body returning *GetSmallAndLightFeePreviewResp
func (*ClientWithResponses) GetSmallAndLightFeePreviewWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightFeePreviewWithResponse(ctx context.Context, body GetSmallAndLightFeePreviewJSONRequestBody) (*GetSmallAndLightFeePreviewResp, error)
func (*ClientWithResponses) PutSmallAndLightEnrollmentBySellerSKUWithResponse ¶
func (c *ClientWithResponses) PutSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *PutSmallAndLightEnrollmentBySellerSKUParams) (*PutSmallAndLightEnrollmentBySellerSKUResp, error)
PutSmallAndLightEnrollmentBySellerSKUWithResponse request returning *PutSmallAndLightEnrollmentBySellerSKUResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetSmallAndLightEligibilityBySellerSKUWithResponse request GetSmallAndLightEligibilityBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*GetSmallAndLightEligibilityBySellerSKUResp, error) // DeleteSmallAndLightEnrollmentBySellerSKUWithResponse request DeleteSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error) // GetSmallAndLightEnrollmentBySellerSKUWithResponse request GetSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*GetSmallAndLightEnrollmentBySellerSKUResp, error) // PutSmallAndLightEnrollmentBySellerSKUWithResponse request PutSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *PutSmallAndLightEnrollmentBySellerSKUParams) (*PutSmallAndLightEnrollmentBySellerSKUResp, error) // GetSmallAndLightFeePreviewWithBodyWithResponse request with any body GetSmallAndLightFeePreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetSmallAndLightFeePreviewResp, error) GetSmallAndLightFeePreviewWithResponse(ctx context.Context, body GetSmallAndLightFeePreviewJSONRequestBody) (*GetSmallAndLightFeePreviewResp, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteSmallAndLightEnrollmentBySellerSKUParams ¶
type DeleteSmallAndLightEnrollmentBySellerSKUParams struct { // MarketplaceIds The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
DeleteSmallAndLightEnrollmentBySellerSKUParams defines parameters for DeleteSmallAndLightEnrollmentBySellerSKU.
type DeleteSmallAndLightEnrollmentBySellerSKUResp ¶
type DeleteSmallAndLightEnrollmentBySellerSKUResp struct { Body []byte HTTPResponse *http.Response JSON400 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON413 *ErrorList JSON415 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseDeleteSmallAndLightEnrollmentBySellerSKUResp ¶
func ParseDeleteSmallAndLightEnrollmentBySellerSKUResp(rsp *http.Response) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error)
ParseDeleteSmallAndLightEnrollmentBySellerSKUResp parses an HTTP response from a DeleteSmallAndLightEnrollmentBySellerSKUWithResponse call
func (DeleteSmallAndLightEnrollmentBySellerSKUResp) Status ¶
func (r DeleteSmallAndLightEnrollmentBySellerSKUResp) Status() string
Status returns HTTPResponse.Status
func (DeleteSmallAndLightEnrollmentBySellerSKUResp) StatusCode ¶
func (r DeleteSmallAndLightEnrollmentBySellerSKUResp) 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 information that can help the caller understand or fix the issue. Details *string `json:"details,omitempty"` // Message A message that describes the error condition in a human-readable form. Message string `json:"message"` }
Error Error response returned when the request is unsuccessful.
type ErrorList ¶
type ErrorList struct {
Errors *[]Error `json:"errors,omitempty"`
}
ErrorList A list of error responses returned when a request is unsuccessful.
type FeeLineItem ¶
type FeeLineItem struct { FeeCharge MoneyType `json:"feeCharge"` // FeeType The type of fee charged to the seller. FeeType FeeLineItemFeeType `json:"feeType"` }
FeeLineItem Fee details for a specific fee.
type FeeLineItemFeeType ¶
type FeeLineItemFeeType string
FeeLineItemFeeType The type of fee charged to the seller.
const ( Commission FeeLineItemFeeType = "Commission" FBAPerOrderFulfillmentFee FeeLineItemFeeType = "FBAPerOrderFulfillmentFee" FBAPerUnitFulfillmentFee FeeLineItemFeeType = "FBAPerUnitFulfillmentFee" FBAWeightBasedFee FeeLineItemFeeType = "FBAWeightBasedFee" )
Defines values for FeeLineItemFeeType.
type FeePreview ¶
type FeePreview struct { // Asin The Amazon Standard Identification Number (ASIN) value used to identify the item. Asin *string `json:"asin,omitempty"` // Errors One or more unexpected errors occurred during the getSmallAndLightFeePreview operation. Errors *[]Error `json:"errors,omitempty"` // FeeBreakdown A list of the Small and Light fees for the item. FeeBreakdown *[]FeeLineItem `json:"feeBreakdown,omitempty"` Price *MoneyType `json:"price,omitempty"` TotalFees *MoneyType `json:"totalFees,omitempty"` }
FeePreview The fee estimate for a specific item.
type GetSmallAndLightEligibilityBySellerSKUParams ¶
type GetSmallAndLightEligibilityBySellerSKUParams struct { // MarketplaceIds The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
GetSmallAndLightEligibilityBySellerSKUParams defines parameters for GetSmallAndLightEligibilityBySellerSKU.
type GetSmallAndLightEligibilityBySellerSKUResp ¶
type GetSmallAndLightEligibilityBySellerSKUResp struct { Body []byte HTTPResponse *http.Response JSON200 *SmallAndLightEligibility JSON400 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON413 *ErrorList JSON415 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseGetSmallAndLightEligibilityBySellerSKUResp ¶
func ParseGetSmallAndLightEligibilityBySellerSKUResp(rsp *http.Response) (*GetSmallAndLightEligibilityBySellerSKUResp, error)
ParseGetSmallAndLightEligibilityBySellerSKUResp parses an HTTP response from a GetSmallAndLightEligibilityBySellerSKUWithResponse call
func (GetSmallAndLightEligibilityBySellerSKUResp) Status ¶
func (r GetSmallAndLightEligibilityBySellerSKUResp) Status() string
Status returns HTTPResponse.Status
func (GetSmallAndLightEligibilityBySellerSKUResp) StatusCode ¶
func (r GetSmallAndLightEligibilityBySellerSKUResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSmallAndLightEnrollmentBySellerSKUParams ¶
type GetSmallAndLightEnrollmentBySellerSKUParams struct { // MarketplaceIds The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
GetSmallAndLightEnrollmentBySellerSKUParams defines parameters for GetSmallAndLightEnrollmentBySellerSKU.
type GetSmallAndLightEnrollmentBySellerSKUResp ¶
type GetSmallAndLightEnrollmentBySellerSKUResp struct { Body []byte HTTPResponse *http.Response JSON200 *SmallAndLightEnrollment JSON400 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON413 *ErrorList JSON415 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseGetSmallAndLightEnrollmentBySellerSKUResp ¶
func ParseGetSmallAndLightEnrollmentBySellerSKUResp(rsp *http.Response) (*GetSmallAndLightEnrollmentBySellerSKUResp, error)
ParseGetSmallAndLightEnrollmentBySellerSKUResp parses an HTTP response from a GetSmallAndLightEnrollmentBySellerSKUWithResponse call
func (GetSmallAndLightEnrollmentBySellerSKUResp) Status ¶
func (r GetSmallAndLightEnrollmentBySellerSKUResp) Status() string
Status returns HTTPResponse.Status
func (GetSmallAndLightEnrollmentBySellerSKUResp) StatusCode ¶
func (r GetSmallAndLightEnrollmentBySellerSKUResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSmallAndLightFeePreviewJSONRequestBody ¶
type GetSmallAndLightFeePreviewJSONRequestBody = SmallAndLightFeePreviewRequest
GetSmallAndLightFeePreviewJSONRequestBody defines body for GetSmallAndLightFeePreview for application/json ContentType.
type GetSmallAndLightFeePreviewResp ¶
type GetSmallAndLightFeePreviewResp struct { Body []byte HTTPResponse *http.Response JSON200 *SmallAndLightFeePreviews JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseGetSmallAndLightFeePreviewResp ¶
func ParseGetSmallAndLightFeePreviewResp(rsp *http.Response) (*GetSmallAndLightFeePreviewResp, error)
ParseGetSmallAndLightFeePreviewResp parses an HTTP response from a GetSmallAndLightFeePreviewWithResponse call
func (GetSmallAndLightFeePreviewResp) Status ¶
func (r GetSmallAndLightFeePreviewResp) Status() string
Status returns HTTPResponse.Status
func (GetSmallAndLightFeePreviewResp) StatusCode ¶
func (r GetSmallAndLightFeePreviewResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Item ¶
type Item struct { // Asin The Amazon Standard Identification Number (ASIN) value used to identify the item. Asin string `json:"asin"` Price MoneyType `json:"price"` }
Item An item to be sold.
type MoneyType ¶
type MoneyType struct { // Amount The monetary value. Amount *float32 `json:"amount,omitempty"` // CurrencyCode The currency code in ISO 4217 format. CurrencyCode *string `json:"currencyCode,omitempty"` }
MoneyType defines model for MoneyType.
type PutSmallAndLightEnrollmentBySellerSKUParams ¶
type PutSmallAndLightEnrollmentBySellerSKUParams struct { // MarketplaceIds The marketplace in which to enroll the item. Note: Accepts a single marketplace only. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
PutSmallAndLightEnrollmentBySellerSKUParams defines parameters for PutSmallAndLightEnrollmentBySellerSKU.
type PutSmallAndLightEnrollmentBySellerSKUResp ¶
type PutSmallAndLightEnrollmentBySellerSKUResp struct { Body []byte HTTPResponse *http.Response JSON200 *SmallAndLightEnrollment JSON400 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON413 *ErrorList JSON415 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParsePutSmallAndLightEnrollmentBySellerSKUResp ¶
func ParsePutSmallAndLightEnrollmentBySellerSKUResp(rsp *http.Response) (*PutSmallAndLightEnrollmentBySellerSKUResp, error)
ParsePutSmallAndLightEnrollmentBySellerSKUResp parses an HTTP response from a PutSmallAndLightEnrollmentBySellerSKUWithResponse call
func (PutSmallAndLightEnrollmentBySellerSKUResp) Status ¶
func (r PutSmallAndLightEnrollmentBySellerSKUResp) Status() string
Status returns HTTPResponse.Status
func (PutSmallAndLightEnrollmentBySellerSKUResp) StatusCode ¶
func (r PutSmallAndLightEnrollmentBySellerSKUResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseEditorFn ¶
ResponseEditorFn is the function signature for the ResponseEditor callback function
type SellerSKU ¶
type SellerSKU = string
SellerSKU Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.
type SmallAndLightEligibility ¶
type SmallAndLightEligibility struct { // MarketplaceId A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` // SellerSKU Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. SellerSKU SellerSKU `json:"sellerSKU"` // Status The Small and Light eligibility status of the item. Status SmallAndLightEligibilityStatus `json:"status"` }
SmallAndLightEligibility The Small and Light eligibility status of the item indicated by the specified seller SKU.
type SmallAndLightEligibilityStatus ¶
type SmallAndLightEligibilityStatus string
SmallAndLightEligibilityStatus The Small and Light eligibility status of the item.
const ( ELIGIBLE SmallAndLightEligibilityStatus = "ELIGIBLE" NOTELIGIBLE SmallAndLightEligibilityStatus = "NOT_ELIGIBLE" )
Defines values for SmallAndLightEligibilityStatus.
type SmallAndLightEnrollment ¶
type SmallAndLightEnrollment struct { // MarketplaceId A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` // SellerSKU Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. SellerSKU SellerSKU `json:"sellerSKU"` // Status The Small and Light enrollment status of the item. Status SmallAndLightEnrollmentStatus `json:"status"` }
SmallAndLightEnrollment The Small and Light enrollment status of the item indicated by the specified seller SKU.
type SmallAndLightEnrollmentStatus ¶
type SmallAndLightEnrollmentStatus string
SmallAndLightEnrollmentStatus The Small and Light enrollment status of the item.
const ( ENROLLED SmallAndLightEnrollmentStatus = "ENROLLED" NOTENROLLED SmallAndLightEnrollmentStatus = "NOT_ENROLLED" )
Defines values for SmallAndLightEnrollmentStatus.
type SmallAndLightFeePreviewRequest ¶
type SmallAndLightFeePreviewRequest struct { // Items A list of items for which to retrieve fee estimates (limit: 25). Items []Item `json:"items"` // MarketplaceId A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` }
SmallAndLightFeePreviewRequest Request schema for submitting items for which to retrieve fee estimates.
type SmallAndLightFeePreviews ¶
type SmallAndLightFeePreviews struct { // Data A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed. Data *[]FeePreview `json:"data,omitempty"` }
SmallAndLightFeePreviews defines model for SmallAndLightFeePreviews.