Documentation
¶
Overview ¶
Package smallAndLight provides primitives to interact the openapi HTTP API.
Code generated by go-sdk-codegen DO NOT EDIT.
Package smallAndLight provides primitives to interact the openapi HTTP API.
Code generated by go-sdk-codegen DO NOT EDIT.
Index ¶
- func NewDeleteSmallAndLightEnrollmentBySellerSKURequest(endpoint string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightEligibilityBySellerSKURequest(endpoint string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightEnrollmentBySellerSKURequest(endpoint string, sellerSKU string, ...) (*http.Request, error)
- func NewGetSmallAndLightFeePreviewRequest(endpoint string, body GetSmallAndLightFeePreviewJSONRequestBody) (*http.Request, error)
- func NewGetSmallAndLightFeePreviewRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutSmallAndLightEnrollmentBySellerSKURequest(endpoint 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 FeePreview
- type GetSmallAndLightEligibilityBySellerSKUParams
- type GetSmallAndLightEligibilityBySellerSKUResp
- type GetSmallAndLightEnrollmentBySellerSKUParams
- type GetSmallAndLightEnrollmentBySellerSKUResp
- type GetSmallAndLightFeePreviewJSONBody
- type GetSmallAndLightFeePreviewJSONRequestBody
- type GetSmallAndLightFeePreviewResp
- type HttpRequestDoer
- type Item
- type MarketplaceId
- type MoneyType
- type PutSmallAndLightEnrollmentBySellerSKUParams
- type PutSmallAndLightEnrollmentBySellerSKUResp
- type RequestBeforeFn
- type ResponseAfterFn
- 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(endpoint string, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*http.Request, error)
NewDeleteSmallAndLightEnrollmentBySellerSKURequest generates requests for DeleteSmallAndLightEnrollmentBySellerSKU
func NewGetSmallAndLightEligibilityBySellerSKURequest ¶
func NewGetSmallAndLightEligibilityBySellerSKURequest(endpoint string, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*http.Request, error)
NewGetSmallAndLightEligibilityBySellerSKURequest generates requests for GetSmallAndLightEligibilityBySellerSKU
func NewGetSmallAndLightEnrollmentBySellerSKURequest ¶
func NewGetSmallAndLightEnrollmentBySellerSKURequest(endpoint string, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*http.Request, error)
NewGetSmallAndLightEnrollmentBySellerSKURequest generates requests for GetSmallAndLightEnrollmentBySellerSKU
func NewGetSmallAndLightFeePreviewRequest ¶
func NewGetSmallAndLightFeePreviewRequest(endpoint string, body GetSmallAndLightFeePreviewJSONRequestBody) (*http.Request, error)
NewGetSmallAndLightFeePreviewRequest calls the generic GetSmallAndLightFeePreview builder with application/json body
func NewGetSmallAndLightFeePreviewRequestWithBody ¶
func NewGetSmallAndLightFeePreviewRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
NewGetSmallAndLightFeePreviewRequestWithBody generates requests for GetSmallAndLightFeePreview with any type of body
func NewPutSmallAndLightEnrollmentBySellerSKURequest ¶
func NewPutSmallAndLightEnrollmentBySellerSKURequest(endpoint 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. Endpoint string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A callback for modifying requests which are generated before sending over // the network. RequestBefore RequestBeforeFn // A callback for modifying response which are generated before sending over // the network. ResponseAfter ResponseAfterFn // The user agent header identifies your application, its version number, and the platform and programming language you are using. // You must include a user agent header in each request submitted to the sales partner API. UserAgent string }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(endpoint string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) 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) // GetSmallAndLightFeePreview 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 WithRequestBefore ¶
func WithRequestBefore(fn RequestBeforeFn) ClientOption
WithRequestBefore allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
func WithResponseAfter ¶
func WithResponseAfter(fn ResponseAfterFn) ClientOption
WithResponseAfter allows setting up a callback function, which will be called right after get response the request. This can be used to log.
func WithUserAgent ¶
func WithUserAgent(userAgent string) ClientOption
WithUserAgent set up useragent add user agent to every request automatically
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(endpoint string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteSmallAndLightEnrollmentBySellerSKUWithResponse ¶
func (c *ClientWithResponses) DeleteSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error)
DeleteSmallAndLightEnrollmentBySellerSKUWithResponse request returning *DeleteSmallAndLightEnrollmentBySellerSKUResponse
func (*ClientWithResponses) GetSmallAndLightEligibilityBySellerSKUWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightEligibilityBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*GetSmallAndLightEligibilityBySellerSKUResp, error)
GetSmallAndLightEligibilityBySellerSKUWithResponse request returning *GetSmallAndLightEligibilityBySellerSKUResponse
func (*ClientWithResponses) GetSmallAndLightEnrollmentBySellerSKUWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*GetSmallAndLightEnrollmentBySellerSKUResp, error)
GetSmallAndLightEnrollmentBySellerSKUWithResponse request returning *GetSmallAndLightEnrollmentBySellerSKUResponse
func (*ClientWithResponses) GetSmallAndLightFeePreviewWithBodyWithResponse ¶
func (c *ClientWithResponses) GetSmallAndLightFeePreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetSmallAndLightFeePreviewResp, error)
GetSmallAndLightFeePreviewWithBodyWithResponse request with arbitrary body returning *GetSmallAndLightFeePreviewResponse
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 *PutSmallAndLightEnrollmentBySellerSKUResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetSmallAndLightEligibilityBySellerSKU request GetSmallAndLightEligibilityBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEligibilityBySellerSKUParams) (*GetSmallAndLightEligibilityBySellerSKUResp, error) // DeleteSmallAndLightEnrollmentBySellerSKU request DeleteSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *DeleteSmallAndLightEnrollmentBySellerSKUParams) (*DeleteSmallAndLightEnrollmentBySellerSKUResp, error) // GetSmallAndLightEnrollmentBySellerSKU request GetSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *GetSmallAndLightEnrollmentBySellerSKUParams) (*GetSmallAndLightEnrollmentBySellerSKUResp, error) // PutSmallAndLightEnrollmentBySellerSKU request PutSmallAndLightEnrollmentBySellerSKUWithResponse(ctx context.Context, sellerSKU string, params *PutSmallAndLightEnrollmentBySellerSKUParams) (*PutSmallAndLightEnrollmentBySellerSKUResp, error) // GetSmallAndLightFeePreview 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 { // The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. MarketplaceIds []string `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 { // An error code that identifies the type of error that occurred. Code string `json:"code"` // Additional information that can help the caller understand or fix the issue. Details *string `json:"details,omitempty"` // A message that describes the error condition in a human-readable form. Message string `json:"message"` }
Error defines model for Error.
type ErrorList ¶
type ErrorList struct {
Errors *[]Error `json:"errors,omitempty"`
}
ErrorList defines model for ErrorList.
type FeeLineItem ¶
type FeeLineItem struct { FeeCharge MoneyType `json:"feeCharge"` // The type of fee charged to the seller. FeeType string `json:"feeType"` }
FeeLineItem defines model for FeeLineItem.
type FeePreview ¶
type FeePreview struct { // The Amazon Standard Identification Number (ASIN) value used to identify the item. Asin *string `json:"asin,omitempty"` // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // 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 defines model for FeePreview.
type GetSmallAndLightEligibilityBySellerSKUParams ¶
type GetSmallAndLightEligibilityBySellerSKUParams struct { // The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. MarketplaceIds []string `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 { // The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. MarketplaceIds []string `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 GetSmallAndLightFeePreviewJSONBody ¶
type GetSmallAndLightFeePreviewJSONBody SmallAndLightFeePreviewRequest
GetSmallAndLightFeePreviewJSONBody defines parameters for GetSmallAndLightFeePreview.
type GetSmallAndLightFeePreviewJSONRequestBody ¶
type GetSmallAndLightFeePreviewJSONRequestBody GetSmallAndLightFeePreviewJSONBody
GetSmallAndLightFeePreviewRequestBody 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 { // The Amazon Standard Identification Number (ASIN) value used to identify the item. Asin string `json:"asin"` Price MoneyType `json:"price"` }
Item defines model for Item.
type MoneyType ¶
type MoneyType struct { // The monetary value. Amount *float32 `json:"amount,omitempty"` // The currency code in ISO 4217 format. CurrencyCode *string `json:"currencyCode,omitempty"` }
MoneyType defines model for MoneyType.
type PutSmallAndLightEnrollmentBySellerSKUParams ¶
type PutSmallAndLightEnrollmentBySellerSKUParams struct { // The marketplace in which to enroll the item. Note: Accepts a single marketplace only. MarketplaceIds []string `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 RequestBeforeFn ¶
RequestBeforeFn is the function signature for the RequestBefore callback function
type ResponseAfterFn ¶
ResponseAfterFn is the function signature for the ResponseAfter callback function
type SmallAndLightEligibility ¶
type SmallAndLightEligibility struct { // A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` // 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"` // The Small and Light eligibility status of the item. Status SmallAndLightEligibilityStatus `json:"status"` }
SmallAndLightEligibility defines model for SmallAndLightEligibility.
type SmallAndLightEligibilityStatus ¶
type SmallAndLightEligibilityStatus string
SmallAndLightEligibilityStatus defines model for SmallAndLightEligibilityStatus.
const ( SmallAndLightEligibilityStatus_ELIGIBLE SmallAndLightEligibilityStatus = "ELIGIBLE" SmallAndLightEligibilityStatus_NOT_ELIGIBLE SmallAndLightEligibilityStatus = "NOT_ELIGIBLE" )
List of SmallAndLightEligibilityStatus
type SmallAndLightEnrollment ¶
type SmallAndLightEnrollment struct { // A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` // 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"` // The Small and Light enrollment status of the item. Status SmallAndLightEnrollmentStatus `json:"status"` }
SmallAndLightEnrollment defines model for SmallAndLightEnrollment.
type SmallAndLightEnrollmentStatus ¶
type SmallAndLightEnrollmentStatus string
SmallAndLightEnrollmentStatus defines model for SmallAndLightEnrollmentStatus.
const ( SmallAndLightEnrollmentStatus_ENROLLED SmallAndLightEnrollmentStatus = "ENROLLED" SmallAndLightEnrollmentStatus_NOT_ENROLLED SmallAndLightEnrollmentStatus = "NOT_ENROLLED" )
List of SmallAndLightEnrollmentStatus
type SmallAndLightFeePreviewRequest ¶
type SmallAndLightFeePreviewRequest struct { // A list of items for which to retrieve fee estimates (limit: 25). Items []Item `json:"items"` // A marketplace identifier. MarketplaceId MarketplaceId `json:"marketplaceId"` }
SmallAndLightFeePreviewRequest defines model for SmallAndLightFeePreviewRequest.
type SmallAndLightFeePreviews ¶
type SmallAndLightFeePreviews struct { // 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.