Versions in this module Expand all Collapse all v0 v0.0.4 Jan 19, 2023 v0.0.3 Jan 19, 2023 Changes in this version + func NewDeleteListingsItemRequest(endpoint string, sellerId string, sku string, params *DeleteListingsItemParams) (*http.Request, error) + func NewPatchListingsItemRequest(endpoint string, sellerId string, sku string, params *PatchListingsItemParams, ...) (*http.Request, error) + func NewPatchListingsItemRequestWithBody(endpoint string, sellerId string, sku string, params *PatchListingsItemParams, ...) (*http.Request, error) + func NewPutListingsItemRequest(endpoint string, sellerId string, sku string, params *PutListingsItemParams, ...) (*http.Request, error) + func NewPutListingsItemRequestWithBody(endpoint string, sellerId string, sku string, params *PutListingsItemParams, ...) (*http.Request, error) + type Client struct + Client HttpRequestDoer + Endpoint string + RequestBefore RequestBeforeFn + ResponseAfter ResponseAfterFn + UserAgent string + func NewClient(endpoint string, opts ...ClientOption) (*Client, error) + func (c *Client) DeleteListingsItem(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 interface + DeleteListingsItem func(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error) + PatchListingsItem func(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error) + PatchListingsItemWithBody func(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error) + PutListingsItem func(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error) + PutListingsItemWithBody func(ctx context.Context, sellerId string, sku string, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestBefore(fn RequestBeforeFn) ClientOption + func WithResponseAfter(fn ResponseAfterFn) ClientOption + func WithUserAgent(userAgent string) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(endpoint string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) DeleteListingsItemWithResponse(ctx context.Context, sellerId string, sku string, ...) (*DeleteListingsItemResp, 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 interface + DeleteListingsItemWithResponse func(ctx context.Context, sellerId string, sku string, ...) (*DeleteListingsItemResp, error) + PatchListingsItemWithBodyWithResponse func(ctx context.Context, sellerId string, sku string, ...) (*PatchListingsItemResp, error) + PatchListingsItemWithResponse func(ctx context.Context, sellerId string, sku string, ...) (*PatchListingsItemResp, error) + PutListingsItemWithBodyWithResponse func(ctx context.Context, sellerId string, sku string, ...) (*PutListingsItemResp, error) + PutListingsItemWithResponse func(ctx context.Context, sellerId string, sku string, ...) (*PutListingsItemResp, error) + type DeleteListingsItemParams struct + IssueLocale *string + MarketplaceIds []string + 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(rsp *http.Response) (*DeleteListingsItemResp, error) + func (r DeleteListingsItemResp) Status() string + func (r DeleteListingsItemResp) StatusCode() int + type Error struct + Code string + Details *string + Message string + type ErrorList struct + Errors []Error + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Issue struct + AttributeName *string + Code string + Message string + Severity string + type ListingsItemPatchRequest struct + Patches []PatchOperation + ProductType string + type ListingsItemPutRequest struct + Attributes ListingsItemPutRequest_Attributes + ProductType string + Requirements *string + type ListingsItemPutRequest_Attributes struct + AdditionalProperties map[string]interface{} + func (a *ListingsItemPutRequest_Attributes) Set(fieldName string, value interface{}) + func (a *ListingsItemPutRequest_Attributes) UnmarshalJSON(b []byte) error + func (a ListingsItemPutRequest_Attributes) Get(fieldName string) (value interface{}, found bool) + func (a ListingsItemPutRequest_Attributes) MarshalJSON() ([]byte, error) + type ListingsItemSubmissionResponse struct + Issues *[]Issue + Sku string + Status string + SubmissionId string + type PatchListingsItemJSONBody ListingsItemPatchRequest + type PatchListingsItemJSONRequestBody PatchListingsItemJSONBody + type PatchListingsItemParams struct + IssueLocale *string + MarketplaceIds []string + 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(rsp *http.Response) (*PatchListingsItemResp, error) + func (r PatchListingsItemResp) Status() string + func (r PatchListingsItemResp) StatusCode() int + type PatchOperation struct + Op string + Path string + Value ... + type PutListingsItemJSONBody ListingsItemPutRequest + type PutListingsItemJSONRequestBody PutListingsItemJSONBody + type PutListingsItemParams struct + IssueLocale *string + MarketplaceIds []string + 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(rsp *http.Response) (*PutListingsItemResp, error) + func (r PutListingsItemResp) Status() string + func (r PutListingsItemResp) StatusCode() int + type RequestBeforeFn func(ctx context.Context, req *http.Request) error + type ResponseAfterFn func(ctx context.Context, rsp *http.Response) error