messagingv1

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package messagingv1 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfirmCustomizationDetailsRequest

func NewConfirmCustomizationDetailsRequest(server string, amazonOrderId string, params *ConfirmCustomizationDetailsParams, body ConfirmCustomizationDetailsJSONRequestBody) (*http.Request, error)

NewConfirmCustomizationDetailsRequest calls the generic ConfirmCustomizationDetails builder with application/json body

func NewConfirmCustomizationDetailsRequestWithBody

func NewConfirmCustomizationDetailsRequestWithBody(server string, amazonOrderId string, params *ConfirmCustomizationDetailsParams, contentType string, body io.Reader) (*http.Request, error)

NewConfirmCustomizationDetailsRequestWithBody generates requests for ConfirmCustomizationDetails with any type of body

func NewCreateAmazonMotorsRequest

func NewCreateAmazonMotorsRequest(server string, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*http.Request, error)

NewCreateAmazonMotorsRequest calls the generic CreateAmazonMotors builder with application/json body

func NewCreateAmazonMotorsRequestWithBody

func NewCreateAmazonMotorsRequestWithBody(server string, amazonOrderId string, params *CreateAmazonMotorsParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateAmazonMotorsRequestWithBody generates requests for CreateAmazonMotors with any type of body

func NewCreateConfirmDeliveryDetailsRequest

func NewCreateConfirmDeliveryDetailsRequest(server string, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, body CreateConfirmDeliveryDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmDeliveryDetailsRequest calls the generic CreateConfirmDeliveryDetails builder with application/json body

func NewCreateConfirmDeliveryDetailsRequestWithBody

func NewCreateConfirmDeliveryDetailsRequestWithBody(server string, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateConfirmDeliveryDetailsRequestWithBody generates requests for CreateConfirmDeliveryDetails with any type of body

func NewCreateConfirmOrderDetailsRequest

func NewCreateConfirmOrderDetailsRequest(server string, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmOrderDetailsRequest calls the generic CreateConfirmOrderDetails builder with application/json body

func NewCreateConfirmOrderDetailsRequestWithBody

func NewCreateConfirmOrderDetailsRequestWithBody(server string, amazonOrderId string, params *CreateConfirmOrderDetailsParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateConfirmOrderDetailsRequestWithBody generates requests for CreateConfirmOrderDetails with any type of body

func NewCreateConfirmServiceDetailsRequest

func NewCreateConfirmServiceDetailsRequest(server string, amazonOrderId string, params *CreateConfirmServiceDetailsParams, body CreateConfirmServiceDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmServiceDetailsRequest calls the generic CreateConfirmServiceDetails builder with application/json body

func NewCreateConfirmServiceDetailsRequestWithBody

func NewCreateConfirmServiceDetailsRequestWithBody(server string, amazonOrderId string, params *CreateConfirmServiceDetailsParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateConfirmServiceDetailsRequestWithBody generates requests for CreateConfirmServiceDetails with any type of body

func NewCreateDigitalAccessKeyRequest

func NewCreateDigitalAccessKeyRequest(server string, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*http.Request, error)

NewCreateDigitalAccessKeyRequest calls the generic CreateDigitalAccessKey builder with application/json body

func NewCreateDigitalAccessKeyRequestWithBody

func NewCreateDigitalAccessKeyRequestWithBody(server string, amazonOrderId string, params *CreateDigitalAccessKeyParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateDigitalAccessKeyRequestWithBody generates requests for CreateDigitalAccessKey with any type of body

func NewCreateLegalDisclosureRequest

func NewCreateLegalDisclosureRequest(server string, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*http.Request, error)

NewCreateLegalDisclosureRequest calls the generic CreateLegalDisclosure builder with application/json body

func NewCreateLegalDisclosureRequestWithBody

func NewCreateLegalDisclosureRequestWithBody(server string, amazonOrderId string, params *CreateLegalDisclosureParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateLegalDisclosureRequestWithBody generates requests for CreateLegalDisclosure with any type of body

func NewCreateNegativeFeedbackRemovalRequest

func NewCreateNegativeFeedbackRemovalRequest(server string, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*http.Request, error)

NewCreateNegativeFeedbackRemovalRequest generates requests for CreateNegativeFeedbackRemoval

func NewCreateUnexpectedProblemRequest

func NewCreateUnexpectedProblemRequest(server string, amazonOrderId string, params *CreateUnexpectedProblemParams, body CreateUnexpectedProblemJSONRequestBody) (*http.Request, error)

NewCreateUnexpectedProblemRequest calls the generic CreateUnexpectedProblem builder with application/json body

func NewCreateUnexpectedProblemRequestWithBody

func NewCreateUnexpectedProblemRequestWithBody(server string, amazonOrderId string, params *CreateUnexpectedProblemParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateUnexpectedProblemRequestWithBody generates requests for CreateUnexpectedProblem with any type of body

func NewCreateWarrantyRequest

func NewCreateWarrantyRequest(server string, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*http.Request, error)

NewCreateWarrantyRequest calls the generic CreateWarranty builder with application/json body

func NewCreateWarrantyRequestWithBody

func NewCreateWarrantyRequestWithBody(server string, amazonOrderId string, params *CreateWarrantyParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateWarrantyRequestWithBody generates requests for CreateWarranty with any type of body

func NewGetAttributesRequest

func NewGetAttributesRequest(server string, amazonOrderId string, params *GetAttributesParams) (*http.Request, error)

NewGetAttributesRequest generates requests for GetAttributes

func NewGetMessagingActionsForOrderRequest

func NewGetMessagingActionsForOrderRequest(server string, amazonOrderId string, params *GetMessagingActionsForOrderParams) (*http.Request, error)

NewGetMessagingActionsForOrderRequest generates requests for GetMessagingActionsForOrder

func NewSendInvoiceRequest

func NewSendInvoiceRequest(server string, amazonOrderId string, params *SendInvoiceParams, body SendInvoiceJSONRequestBody) (*http.Request, error)

NewSendInvoiceRequest calls the generic SendInvoice builder with application/json body

func NewSendInvoiceRequestWithBody

func NewSendInvoiceRequestWithBody(server string, amazonOrderId string, params *SendInvoiceParams, contentType string, body io.Reader) (*http.Request, error)

NewSendInvoiceRequestWithBody generates requests for SendInvoice with any type of body

Types

type Attachment

type Attachment struct {
	// FileName The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded.
	FileName string `json:"fileName"`

	// UploadDestinationId The identifier of the upload destination. Get this value by calling the [createUploadDestinationForResource](doc:uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Uploads API.
	UploadDestinationId string `json:"uploadDestinationId"`
}

Attachment Represents a file uploaded to a destination that was created by the [createUploadDestinationForResource](doc:uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Selling Partner API for Uploads.

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

func (c *Client) ConfirmCustomizationDetails(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, body ConfirmCustomizationDetailsJSONRequestBody) (*http.Response, error)

func (*Client) ConfirmCustomizationDetailsWithBody

func (c *Client) ConfirmCustomizationDetailsWithBody(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateAmazonMotors

func (c *Client) CreateAmazonMotors(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*http.Response, error)

func (*Client) CreateAmazonMotorsWithBody

func (c *Client) CreateAmazonMotorsWithBody(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateConfirmDeliveryDetails

func (c *Client) CreateConfirmDeliveryDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, body CreateConfirmDeliveryDetailsJSONRequestBody) (*http.Response, error)

func (*Client) CreateConfirmDeliveryDetailsWithBody

func (c *Client) CreateConfirmDeliveryDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateConfirmOrderDetails

func (c *Client) CreateConfirmOrderDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*http.Response, error)

func (*Client) CreateConfirmOrderDetailsWithBody

func (c *Client) CreateConfirmOrderDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateConfirmServiceDetails

func (c *Client) CreateConfirmServiceDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, body CreateConfirmServiceDetailsJSONRequestBody) (*http.Response, error)

func (*Client) CreateConfirmServiceDetailsWithBody

func (c *Client) CreateConfirmServiceDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateDigitalAccessKey

func (c *Client) CreateDigitalAccessKey(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*http.Response, error)

func (*Client) CreateDigitalAccessKeyWithBody

func (c *Client) CreateDigitalAccessKeyWithBody(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateLegalDisclosure

func (c *Client) CreateLegalDisclosure(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*http.Response, error)

func (*Client) CreateLegalDisclosureWithBody

func (c *Client) CreateLegalDisclosureWithBody(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateNegativeFeedbackRemoval

func (c *Client) CreateNegativeFeedbackRemoval(ctx context.Context, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*http.Response, error)

func (*Client) CreateUnexpectedProblem

func (c *Client) CreateUnexpectedProblem(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, body CreateUnexpectedProblemJSONRequestBody) (*http.Response, error)

func (*Client) CreateUnexpectedProblemWithBody

func (c *Client) CreateUnexpectedProblemWithBody(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateWarranty

func (c *Client) CreateWarranty(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*http.Response, error)

func (*Client) CreateWarrantyWithBody

func (c *Client) CreateWarrantyWithBody(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, contentType string, body io.Reader) (*http.Response, error)

func (*Client) GetAttributes

func (c *Client) GetAttributes(ctx context.Context, amazonOrderId string, params *GetAttributesParams) (*http.Response, error)

func (*Client) GetMessagingActionsForOrder

func (c *Client) GetMessagingActionsForOrder(ctx context.Context, amazonOrderId string, params *GetMessagingActionsForOrderParams) (*http.Response, error)

func (*Client) SendInvoice

func (c *Client) SendInvoice(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, body SendInvoiceJSONRequestBody) (*http.Response, error)

func (*Client) SendInvoiceWithBody

func (c *Client) SendInvoiceWithBody(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, contentType string, body io.Reader) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetMessagingActionsForOrder request
	GetMessagingActionsForOrder(ctx context.Context, amazonOrderId string, params *GetMessagingActionsForOrderParams) (*http.Response, error)

	// GetAttributes request
	GetAttributes(ctx context.Context, amazonOrderId string, params *GetAttributesParams) (*http.Response, error)

	// CreateAmazonMotorsWithBody request with any body
	CreateAmazonMotorsWithBody(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, contentType string, body io.Reader) (*http.Response, error)

	CreateAmazonMotors(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*http.Response, error)

	// ConfirmCustomizationDetailsWithBody request with any body
	ConfirmCustomizationDetailsWithBody(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, contentType string, body io.Reader) (*http.Response, error)

	ConfirmCustomizationDetails(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, body ConfirmCustomizationDetailsJSONRequestBody) (*http.Response, error)

	// CreateConfirmDeliveryDetailsWithBody request with any body
	CreateConfirmDeliveryDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, contentType string, body io.Reader) (*http.Response, error)

	CreateConfirmDeliveryDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, body CreateConfirmDeliveryDetailsJSONRequestBody) (*http.Response, error)

	// CreateConfirmOrderDetailsWithBody request with any body
	CreateConfirmOrderDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, contentType string, body io.Reader) (*http.Response, error)

	CreateConfirmOrderDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*http.Response, error)

	// CreateConfirmServiceDetailsWithBody request with any body
	CreateConfirmServiceDetailsWithBody(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, contentType string, body io.Reader) (*http.Response, error)

	CreateConfirmServiceDetails(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, body CreateConfirmServiceDetailsJSONRequestBody) (*http.Response, error)

	// CreateDigitalAccessKeyWithBody request with any body
	CreateDigitalAccessKeyWithBody(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, contentType string, body io.Reader) (*http.Response, error)

	CreateDigitalAccessKey(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*http.Response, error)

	// SendInvoiceWithBody request with any body
	SendInvoiceWithBody(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, contentType string, body io.Reader) (*http.Response, error)

	SendInvoice(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, body SendInvoiceJSONRequestBody) (*http.Response, error)

	// CreateLegalDisclosureWithBody request with any body
	CreateLegalDisclosureWithBody(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, contentType string, body io.Reader) (*http.Response, error)

	CreateLegalDisclosure(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*http.Response, error)

	// CreateNegativeFeedbackRemoval request
	CreateNegativeFeedbackRemoval(ctx context.Context, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*http.Response, error)

	// CreateUnexpectedProblemWithBody request with any body
	CreateUnexpectedProblemWithBody(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, contentType string, body io.Reader) (*http.Response, error)

	CreateUnexpectedProblem(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, body CreateUnexpectedProblemJSONRequestBody) (*http.Response, error)

	// CreateWarrantyWithBody request with any body
	CreateWarrantyWithBody(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, contentType string, body io.Reader) (*http.Response, error)

	CreateWarranty(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*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) ConfirmCustomizationDetailsWithBodyWithResponse

func (c *ClientWithResponses) ConfirmCustomizationDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, contentType string, body io.Reader) (*ConfirmCustomizationDetailsResp, error)

ConfirmCustomizationDetailsWithBodyWithResponse request with arbitrary body returning *ConfirmCustomizationDetailsResp

func (*ClientWithResponses) ConfirmCustomizationDetailsWithResponse

func (*ClientWithResponses) CreateAmazonMotorsWithBodyWithResponse

func (c *ClientWithResponses) CreateAmazonMotorsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, contentType string, body io.Reader) (*CreateAmazonMotorsResp, error)

CreateAmazonMotorsWithBodyWithResponse request with arbitrary body returning *CreateAmazonMotorsResp

func (*ClientWithResponses) CreateAmazonMotorsWithResponse

func (c *ClientWithResponses) CreateAmazonMotorsWithResponse(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*CreateAmazonMotorsResp, error)

func (*ClientWithResponses) CreateConfirmDeliveryDetailsWithBodyWithResponse

func (c *ClientWithResponses) CreateConfirmDeliveryDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, contentType string, body io.Reader) (*CreateConfirmDeliveryDetailsResp, error)

CreateConfirmDeliveryDetailsWithBodyWithResponse request with arbitrary body returning *CreateConfirmDeliveryDetailsResp

func (*ClientWithResponses) CreateConfirmOrderDetailsWithBodyWithResponse

func (c *ClientWithResponses) CreateConfirmOrderDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, contentType string, body io.Reader) (*CreateConfirmOrderDetailsResp, error)

CreateConfirmOrderDetailsWithBodyWithResponse request with arbitrary body returning *CreateConfirmOrderDetailsResp

func (*ClientWithResponses) CreateConfirmOrderDetailsWithResponse

func (c *ClientWithResponses) CreateConfirmOrderDetailsWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*CreateConfirmOrderDetailsResp, error)

func (*ClientWithResponses) CreateConfirmServiceDetailsWithBodyWithResponse

func (c *ClientWithResponses) CreateConfirmServiceDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, contentType string, body io.Reader) (*CreateConfirmServiceDetailsResp, error)

CreateConfirmServiceDetailsWithBodyWithResponse request with arbitrary body returning *CreateConfirmServiceDetailsResp

func (*ClientWithResponses) CreateConfirmServiceDetailsWithResponse

func (*ClientWithResponses) CreateDigitalAccessKeyWithBodyWithResponse

func (c *ClientWithResponses) CreateDigitalAccessKeyWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, contentType string, body io.Reader) (*CreateDigitalAccessKeyResp, error)

CreateDigitalAccessKeyWithBodyWithResponse request with arbitrary body returning *CreateDigitalAccessKeyResp

func (*ClientWithResponses) CreateDigitalAccessKeyWithResponse

func (c *ClientWithResponses) CreateDigitalAccessKeyWithResponse(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*CreateDigitalAccessKeyResp, error)

func (*ClientWithResponses) CreateLegalDisclosureWithBodyWithResponse

func (c *ClientWithResponses) CreateLegalDisclosureWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, contentType string, body io.Reader) (*CreateLegalDisclosureResp, error)

CreateLegalDisclosureWithBodyWithResponse request with arbitrary body returning *CreateLegalDisclosureResp

func (*ClientWithResponses) CreateLegalDisclosureWithResponse

func (c *ClientWithResponses) CreateLegalDisclosureWithResponse(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*CreateLegalDisclosureResp, error)

func (*ClientWithResponses) CreateNegativeFeedbackRemovalWithResponse

func (c *ClientWithResponses) CreateNegativeFeedbackRemovalWithResponse(ctx context.Context, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*CreateNegativeFeedbackRemovalResp, error)

CreateNegativeFeedbackRemovalWithResponse request returning *CreateNegativeFeedbackRemovalResp

func (*ClientWithResponses) CreateUnexpectedProblemWithBodyWithResponse

func (c *ClientWithResponses) CreateUnexpectedProblemWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, contentType string, body io.Reader) (*CreateUnexpectedProblemResp, error)

CreateUnexpectedProblemWithBodyWithResponse request with arbitrary body returning *CreateUnexpectedProblemResp

func (*ClientWithResponses) CreateUnexpectedProblemWithResponse

func (c *ClientWithResponses) CreateUnexpectedProblemWithResponse(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, body CreateUnexpectedProblemJSONRequestBody) (*CreateUnexpectedProblemResp, error)

func (*ClientWithResponses) CreateWarrantyWithBodyWithResponse

func (c *ClientWithResponses) CreateWarrantyWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, contentType string, body io.Reader) (*CreateWarrantyResp, error)

CreateWarrantyWithBodyWithResponse request with arbitrary body returning *CreateWarrantyResp

func (*ClientWithResponses) CreateWarrantyWithResponse

func (c *ClientWithResponses) CreateWarrantyWithResponse(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*CreateWarrantyResp, error)

func (*ClientWithResponses) GetAttributesWithResponse

func (c *ClientWithResponses) GetAttributesWithResponse(ctx context.Context, amazonOrderId string, params *GetAttributesParams) (*GetAttributesResp, error)

GetAttributesWithResponse request returning *GetAttributesResp

func (*ClientWithResponses) GetMessagingActionsForOrderWithResponse

func (c *ClientWithResponses) GetMessagingActionsForOrderWithResponse(ctx context.Context, amazonOrderId string, params *GetMessagingActionsForOrderParams) (*GetMessagingActionsForOrderResp, error)

GetMessagingActionsForOrderWithResponse request returning *GetMessagingActionsForOrderResp

func (*ClientWithResponses) SendInvoiceWithBodyWithResponse

func (c *ClientWithResponses) SendInvoiceWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, contentType string, body io.Reader) (*SendInvoiceResp, error)

SendInvoiceWithBodyWithResponse request with arbitrary body returning *SendInvoiceResp

func (*ClientWithResponses) SendInvoiceWithResponse

func (c *ClientWithResponses) SendInvoiceWithResponse(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, body SendInvoiceJSONRequestBody) (*SendInvoiceResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetMessagingActionsForOrderWithResponse request
	GetMessagingActionsForOrderWithResponse(ctx context.Context, amazonOrderId string, params *GetMessagingActionsForOrderParams) (*GetMessagingActionsForOrderResp, error)

	// GetAttributesWithResponse request
	GetAttributesWithResponse(ctx context.Context, amazonOrderId string, params *GetAttributesParams) (*GetAttributesResp, error)

	// CreateAmazonMotorsWithBodyWithResponse request with any body
	CreateAmazonMotorsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, contentType string, body io.Reader) (*CreateAmazonMotorsResp, error)

	CreateAmazonMotorsWithResponse(ctx context.Context, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*CreateAmazonMotorsResp, error)

	// ConfirmCustomizationDetailsWithBodyWithResponse request with any body
	ConfirmCustomizationDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, contentType string, body io.Reader) (*ConfirmCustomizationDetailsResp, error)

	ConfirmCustomizationDetailsWithResponse(ctx context.Context, amazonOrderId string, params *ConfirmCustomizationDetailsParams, body ConfirmCustomizationDetailsJSONRequestBody) (*ConfirmCustomizationDetailsResp, error)

	// CreateConfirmDeliveryDetailsWithBodyWithResponse request with any body
	CreateConfirmDeliveryDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, contentType string, body io.Reader) (*CreateConfirmDeliveryDetailsResp, error)

	CreateConfirmDeliveryDetailsWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, body CreateConfirmDeliveryDetailsJSONRequestBody) (*CreateConfirmDeliveryDetailsResp, error)

	// CreateConfirmOrderDetailsWithBodyWithResponse request with any body
	CreateConfirmOrderDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, contentType string, body io.Reader) (*CreateConfirmOrderDetailsResp, error)

	CreateConfirmOrderDetailsWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*CreateConfirmOrderDetailsResp, error)

	// CreateConfirmServiceDetailsWithBodyWithResponse request with any body
	CreateConfirmServiceDetailsWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, contentType string, body io.Reader) (*CreateConfirmServiceDetailsResp, error)

	CreateConfirmServiceDetailsWithResponse(ctx context.Context, amazonOrderId string, params *CreateConfirmServiceDetailsParams, body CreateConfirmServiceDetailsJSONRequestBody) (*CreateConfirmServiceDetailsResp, error)

	// CreateDigitalAccessKeyWithBodyWithResponse request with any body
	CreateDigitalAccessKeyWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, contentType string, body io.Reader) (*CreateDigitalAccessKeyResp, error)

	CreateDigitalAccessKeyWithResponse(ctx context.Context, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*CreateDigitalAccessKeyResp, error)

	// SendInvoiceWithBodyWithResponse request with any body
	SendInvoiceWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, contentType string, body io.Reader) (*SendInvoiceResp, error)

	SendInvoiceWithResponse(ctx context.Context, amazonOrderId string, params *SendInvoiceParams, body SendInvoiceJSONRequestBody) (*SendInvoiceResp, error)

	// CreateLegalDisclosureWithBodyWithResponse request with any body
	CreateLegalDisclosureWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, contentType string, body io.Reader) (*CreateLegalDisclosureResp, error)

	CreateLegalDisclosureWithResponse(ctx context.Context, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*CreateLegalDisclosureResp, error)

	// CreateNegativeFeedbackRemovalWithResponse request
	CreateNegativeFeedbackRemovalWithResponse(ctx context.Context, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*CreateNegativeFeedbackRemovalResp, error)

	// CreateUnexpectedProblemWithBodyWithResponse request with any body
	CreateUnexpectedProblemWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, contentType string, body io.Reader) (*CreateUnexpectedProblemResp, error)

	CreateUnexpectedProblemWithResponse(ctx context.Context, amazonOrderId string, params *CreateUnexpectedProblemParams, body CreateUnexpectedProblemJSONRequestBody) (*CreateUnexpectedProblemResp, error)

	// CreateWarrantyWithBodyWithResponse request with any body
	CreateWarrantyWithBodyWithResponse(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, contentType string, body io.Reader) (*CreateWarrantyResp, error)

	CreateWarrantyWithResponse(ctx context.Context, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*CreateWarrantyResp, error)
}

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

type ConfirmCustomizationDetailsJSONRequestBody

type ConfirmCustomizationDetailsJSONRequestBody = CreateConfirmCustomizationDetailsRequest

ConfirmCustomizationDetailsJSONRequestBody defines body for ConfirmCustomizationDetails for application/json ContentType.

type ConfirmCustomizationDetailsParams

type ConfirmCustomizationDetailsParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

ConfirmCustomizationDetailsParams defines parameters for ConfirmCustomizationDetails.

type ConfirmCustomizationDetailsResp

func ParseConfirmCustomizationDetailsResp

func ParseConfirmCustomizationDetailsResp(rsp *http.Response) (*ConfirmCustomizationDetailsResp, error)

ParseConfirmCustomizationDetailsResp parses an HTTP response from a ConfirmCustomizationDetailsWithResponse call

func (ConfirmCustomizationDetailsResp) Status

Status returns HTTPResponse.Status

func (ConfirmCustomizationDetailsResp) StatusCode

func (r ConfirmCustomizationDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateAmazonMotorsJSONRequestBody

type CreateAmazonMotorsJSONRequestBody = CreateAmazonMotorsRequest

CreateAmazonMotorsJSONRequestBody defines body for CreateAmazonMotors for application/json ContentType.

type CreateAmazonMotorsParams

type CreateAmazonMotorsParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateAmazonMotorsParams defines parameters for CreateAmazonMotors.

type CreateAmazonMotorsRequest

type CreateAmazonMotorsRequest struct {
	// Attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Attachments *[]Attachment `json:"attachments,omitempty"`
}

CreateAmazonMotorsRequest The request schema for the createAmazonMotors operation.

type CreateAmazonMotorsResp

func ParseCreateAmazonMotorsResp

func ParseCreateAmazonMotorsResp(rsp *http.Response) (*CreateAmazonMotorsResp, error)

ParseCreateAmazonMotorsResp parses an HTTP response from a CreateAmazonMotorsWithResponse call

func (CreateAmazonMotorsResp) Status

func (r CreateAmazonMotorsResp) Status() string

Status returns HTTPResponse.Status

func (CreateAmazonMotorsResp) StatusCode

func (r CreateAmazonMotorsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateAmazonMotorsResponse

type CreateAmazonMotorsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateAmazonMotorsResponse The response schema for the createAmazonMotors operation.

type CreateConfirmCustomizationDetailsRequest

type CreateConfirmCustomizationDetailsRequest struct {
	// Attachments Attachments to include in the message to the buyer.
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// Text The text to be sent to the buyer. Only links related to customization details are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateConfirmCustomizationDetailsRequest The request schema for the confirmCustomizationDetails operation.

type CreateConfirmCustomizationDetailsResponse

type CreateConfirmCustomizationDetailsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateConfirmCustomizationDetailsResponse The response schema for the confirmCustomizationDetails operation.

type CreateConfirmDeliveryDetailsJSONRequestBody

type CreateConfirmDeliveryDetailsJSONRequestBody = CreateConfirmDeliveryDetailsRequest

CreateConfirmDeliveryDetailsJSONRequestBody defines body for CreateConfirmDeliveryDetails for application/json ContentType.

type CreateConfirmDeliveryDetailsParams

type CreateConfirmDeliveryDetailsParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateConfirmDeliveryDetailsParams defines parameters for CreateConfirmDeliveryDetails.

type CreateConfirmDeliveryDetailsRequest

type CreateConfirmDeliveryDetailsRequest struct {
	// Text The text to be sent to the buyer. Only links related to order delivery are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateConfirmDeliveryDetailsRequest The request schema for the createConfirmDeliveryDetails operation.

type CreateConfirmDeliveryDetailsResp

func ParseCreateConfirmDeliveryDetailsResp

func ParseCreateConfirmDeliveryDetailsResp(rsp *http.Response) (*CreateConfirmDeliveryDetailsResp, error)

ParseCreateConfirmDeliveryDetailsResp parses an HTTP response from a CreateConfirmDeliveryDetailsWithResponse call

func (CreateConfirmDeliveryDetailsResp) Status

Status returns HTTPResponse.Status

func (CreateConfirmDeliveryDetailsResp) StatusCode

func (r CreateConfirmDeliveryDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateConfirmDeliveryDetailsResponse

type CreateConfirmDeliveryDetailsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateConfirmDeliveryDetailsResponse The response schema for the createConfirmDeliveryDetails operation.

type CreateConfirmOrderDetailsJSONRequestBody

type CreateConfirmOrderDetailsJSONRequestBody = CreateConfirmOrderDetailsRequest

CreateConfirmOrderDetailsJSONRequestBody defines body for CreateConfirmOrderDetails for application/json ContentType.

type CreateConfirmOrderDetailsParams

type CreateConfirmOrderDetailsParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateConfirmOrderDetailsParams defines parameters for CreateConfirmOrderDetails.

type CreateConfirmOrderDetailsRequest

type CreateConfirmOrderDetailsRequest struct {
	// Text The text to be sent to the buyer. Only links related to order completion are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateConfirmOrderDetailsRequest The request schema for the createConfirmOrderDetails operation.

type CreateConfirmOrderDetailsResp

func ParseCreateConfirmOrderDetailsResp

func ParseCreateConfirmOrderDetailsResp(rsp *http.Response) (*CreateConfirmOrderDetailsResp, error)

ParseCreateConfirmOrderDetailsResp parses an HTTP response from a CreateConfirmOrderDetailsWithResponse call

func (CreateConfirmOrderDetailsResp) Status

Status returns HTTPResponse.Status

func (CreateConfirmOrderDetailsResp) StatusCode

func (r CreateConfirmOrderDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateConfirmOrderDetailsResponse

type CreateConfirmOrderDetailsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateConfirmOrderDetailsResponse The response schema for the createConfirmOrderDetails operation.

type CreateConfirmServiceDetailsJSONRequestBody

type CreateConfirmServiceDetailsJSONRequestBody = CreateConfirmServiceDetailsRequest

CreateConfirmServiceDetailsJSONRequestBody defines body for CreateConfirmServiceDetails for application/json ContentType.

type CreateConfirmServiceDetailsParams

type CreateConfirmServiceDetailsParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateConfirmServiceDetailsParams defines parameters for CreateConfirmServiceDetails.

type CreateConfirmServiceDetailsRequest

type CreateConfirmServiceDetailsRequest struct {
	// Text The text to be sent to the buyer. Only links related to Home Service calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateConfirmServiceDetailsRequest The request schema for the createConfirmServiceDetails operation.

type CreateConfirmServiceDetailsResp

func ParseCreateConfirmServiceDetailsResp

func ParseCreateConfirmServiceDetailsResp(rsp *http.Response) (*CreateConfirmServiceDetailsResp, error)

ParseCreateConfirmServiceDetailsResp parses an HTTP response from a CreateConfirmServiceDetailsWithResponse call

func (CreateConfirmServiceDetailsResp) Status

Status returns HTTPResponse.Status

func (CreateConfirmServiceDetailsResp) StatusCode

func (r CreateConfirmServiceDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateConfirmServiceDetailsResponse

type CreateConfirmServiceDetailsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateConfirmServiceDetailsResponse The response schema for the createConfirmServiceDetails operation.

type CreateDigitalAccessKeyJSONRequestBody

type CreateDigitalAccessKeyJSONRequestBody = CreateDigitalAccessKeyRequest

CreateDigitalAccessKeyJSONRequestBody defines body for CreateDigitalAccessKey for application/json ContentType.

type CreateDigitalAccessKeyParams

type CreateDigitalAccessKeyParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateDigitalAccessKeyParams defines parameters for CreateDigitalAccessKey.

type CreateDigitalAccessKeyRequest

type CreateDigitalAccessKeyRequest struct {
	// Attachments Attachments to include in the message to the buyer.
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// Text The text to be sent to the buyer. Only links related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateDigitalAccessKeyRequest The request schema for the createDigitalAccessKey operation.

type CreateDigitalAccessKeyResp

func ParseCreateDigitalAccessKeyResp

func ParseCreateDigitalAccessKeyResp(rsp *http.Response) (*CreateDigitalAccessKeyResp, error)

ParseCreateDigitalAccessKeyResp parses an HTTP response from a CreateDigitalAccessKeyWithResponse call

func (CreateDigitalAccessKeyResp) Status

Status returns HTTPResponse.Status

func (CreateDigitalAccessKeyResp) StatusCode

func (r CreateDigitalAccessKeyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDigitalAccessKeyResponse

type CreateDigitalAccessKeyResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateDigitalAccessKeyResponse The response schema for the createDigitalAccessKey operation.

type CreateLegalDisclosureJSONRequestBody

type CreateLegalDisclosureJSONRequestBody = CreateLegalDisclosureRequest

CreateLegalDisclosureJSONRequestBody defines body for CreateLegalDisclosure for application/json ContentType.

type CreateLegalDisclosureParams

type CreateLegalDisclosureParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateLegalDisclosureParams defines parameters for CreateLegalDisclosure.

type CreateLegalDisclosureRequest

type CreateLegalDisclosureRequest struct {
	// Attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Attachments *[]Attachment `json:"attachments,omitempty"`
}

CreateLegalDisclosureRequest The request schema for the createLegalDisclosure operation.

type CreateLegalDisclosureResp

func ParseCreateLegalDisclosureResp

func ParseCreateLegalDisclosureResp(rsp *http.Response) (*CreateLegalDisclosureResp, error)

ParseCreateLegalDisclosureResp parses an HTTP response from a CreateLegalDisclosureWithResponse call

func (CreateLegalDisclosureResp) Status

func (r CreateLegalDisclosureResp) Status() string

Status returns HTTPResponse.Status

func (CreateLegalDisclosureResp) StatusCode

func (r CreateLegalDisclosureResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateLegalDisclosureResponse

type CreateLegalDisclosureResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateLegalDisclosureResponse The response schema for the createLegalDisclosure operation.

type CreateNegativeFeedbackRemovalParams

type CreateNegativeFeedbackRemovalParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateNegativeFeedbackRemovalParams defines parameters for CreateNegativeFeedbackRemoval.

type CreateNegativeFeedbackRemovalResp

func ParseCreateNegativeFeedbackRemovalResp

func ParseCreateNegativeFeedbackRemovalResp(rsp *http.Response) (*CreateNegativeFeedbackRemovalResp, error)

ParseCreateNegativeFeedbackRemovalResp parses an HTTP response from a CreateNegativeFeedbackRemovalWithResponse call

func (CreateNegativeFeedbackRemovalResp) Status

Status returns HTTPResponse.Status

func (CreateNegativeFeedbackRemovalResp) StatusCode

func (r CreateNegativeFeedbackRemovalResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateNegativeFeedbackRemovalResponse

type CreateNegativeFeedbackRemovalResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateNegativeFeedbackRemovalResponse The response schema for the createNegativeFeedbackRemoval operation.

type CreateUnexpectedProblemJSONRequestBody

type CreateUnexpectedProblemJSONRequestBody = CreateUnexpectedProblemRequest

CreateUnexpectedProblemJSONRequestBody defines body for CreateUnexpectedProblem for application/json ContentType.

type CreateUnexpectedProblemParams

type CreateUnexpectedProblemParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateUnexpectedProblemParams defines parameters for CreateUnexpectedProblem.

type CreateUnexpectedProblemRequest

type CreateUnexpectedProblemRequest struct {
	// Text The text to be sent to the buyer. Only links related to unexpected problem calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Text *string `json:"text,omitempty"`
}

CreateUnexpectedProblemRequest The request schema for the createUnexpectedProblem operation.

type CreateUnexpectedProblemResp

func ParseCreateUnexpectedProblemResp

func ParseCreateUnexpectedProblemResp(rsp *http.Response) (*CreateUnexpectedProblemResp, error)

ParseCreateUnexpectedProblemResp parses an HTTP response from a CreateUnexpectedProblemWithResponse call

func (CreateUnexpectedProblemResp) Status

Status returns HTTPResponse.Status

func (CreateUnexpectedProblemResp) StatusCode

func (r CreateUnexpectedProblemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUnexpectedProblemResponse

type CreateUnexpectedProblemResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateUnexpectedProblemResponse The response schema for the createUnexpectedProblem operation.

type CreateWarrantyJSONRequestBody

type CreateWarrantyJSONRequestBody = CreateWarrantyRequest

CreateWarrantyJSONRequestBody defines body for CreateWarranty for application/json ContentType.

type CreateWarrantyParams

type CreateWarrantyParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

CreateWarrantyParams defines parameters for CreateWarranty.

type CreateWarrantyRequest

type CreateWarrantyRequest struct {
	// Attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// CoverageEndDate The end date of the warranty coverage to include in the message to the buyer.
	CoverageEndDate *time.Time `json:"coverageEndDate,omitempty"`

	// CoverageStartDate The start date of the warranty coverage to include in the message to the buyer.
	CoverageStartDate *time.Time `json:"coverageStartDate,omitempty"`
}

CreateWarrantyRequest The request schema for the createWarranty operation.

type CreateWarrantyResp

type CreateWarrantyResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateWarrantyResponse
	JSON400      *CreateWarrantyResponse
	JSON403      *CreateWarrantyResponse
	JSON404      *CreateWarrantyResponse
	JSON413      *CreateWarrantyResponse
	JSON415      *CreateWarrantyResponse
	JSON429      *CreateWarrantyResponse
	JSON500      *CreateWarrantyResponse
	JSON503      *CreateWarrantyResponse
}

func ParseCreateWarrantyResp

func ParseCreateWarrantyResp(rsp *http.Response) (*CreateWarrantyResp, error)

ParseCreateWarrantyResp parses an HTTP response from a CreateWarrantyWithResponse call

func (CreateWarrantyResp) Status

func (r CreateWarrantyResp) Status() string

Status returns HTTPResponse.Status

func (CreateWarrantyResp) StatusCode

func (r CreateWarrantyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWarrantyResponse

type CreateWarrantyResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateWarrantyResponse The response schema for the createWarranty operation.

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 = []Error

ErrorList A list of error responses returned when a request is unsuccessful.

type GetAttributesParams

type GetAttributesParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

GetAttributesParams defines parameters for GetAttributes.

type GetAttributesResp

type GetAttributesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetAttributesResponse
	JSON400      *GetAttributesResponse
	JSON403      *GetAttributesResponse
	JSON404      *GetAttributesResponse
	JSON413      *GetAttributesResponse
	JSON415      *GetAttributesResponse
	JSON429      *GetAttributesResponse
	JSON500      *GetAttributesResponse
	JSON503      *GetAttributesResponse
}

func ParseGetAttributesResp

func ParseGetAttributesResp(rsp *http.Response) (*GetAttributesResp, error)

ParseGetAttributesResp parses an HTTP response from a GetAttributesWithResponse call

func (GetAttributesResp) Status

func (r GetAttributesResp) Status() string

Status returns HTTPResponse.Status

func (GetAttributesResp) StatusCode

func (r GetAttributesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAttributesResponse

type GetAttributesResponse struct {
	// Buyer The list of attributes related to the buyer.
	Buyer *struct {
		// Locale The buyer's language of preference, indicated with a locale-specific language tag. Examples: "en-US", "zh-CN", and "en-GB".
		Locale *string `json:"locale,omitempty"`
	} `json:"buyer,omitempty"`

	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

GetAttributesResponse The response schema for the GetAttributes operation.

type GetMessagingActionResponse

type GetMessagingActionResponse struct {
	Embedded *struct {
		Schema *GetSchemaResponse `json:"schema,omitempty"`
	} `json:"_embedded,omitempty"`
	Links *struct {
		// Schema A Link object.
		Schema LinkObject `json:"schema"`

		// Self A Link object.
		Self LinkObject `json:"self"`
	} `json:"_links,omitempty"`

	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload A simple object containing the name of the template.
	Payload *MessagingAction `json:"payload,omitempty"`
}

GetMessagingActionResponse Describes a messaging action that can be taken for an order. Provides a JSON Hypertext Application Language (HAL) link to the JSON schema document that describes the expected input.

type GetMessagingActionsForOrderParams

type GetMessagingActionsForOrderParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

GetMessagingActionsForOrderParams defines parameters for GetMessagingActionsForOrder.

type GetMessagingActionsForOrderResp

func ParseGetMessagingActionsForOrderResp

func ParseGetMessagingActionsForOrderResp(rsp *http.Response) (*GetMessagingActionsForOrderResp, error)

ParseGetMessagingActionsForOrderResp parses an HTTP response from a GetMessagingActionsForOrderWithResponse call

func (GetMessagingActionsForOrderResp) Status

Status returns HTTPResponse.Status

func (GetMessagingActionsForOrderResp) StatusCode

func (r GetMessagingActionsForOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMessagingActionsForOrderResponse

type GetMessagingActionsForOrderResponse struct {
	Embedded *struct {
		Actions []GetMessagingActionResponse `json:"actions"`
	} `json:"_embedded,omitempty"`
	Links *struct {
		// Actions Eligible actions for the specified amazonOrderId.
		Actions []LinkObject `json:"actions"`

		// Self A Link object.
		Self LinkObject `json:"self"`
	} `json:"_links,omitempty"`

	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

GetMessagingActionsForOrderResponse The response schema for the getMessagingActionsForOrder operation.

type GetSchemaResponse

type GetSchemaResponse struct {
	Links *struct {
		// Self A Link object.
		Self LinkObject `json:"self"`
	} `json:"_links,omitempty"`

	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload A JSON schema document describing the expected payload of the action. This object can be validated against <a href=http://json-schema.org/draft-04/schema>http://json-schema.org/draft-04/schema</a>.
	Payload *Schema `json:"payload,omitempty"`
}

GetSchemaResponse defines model for GetSchemaResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvoiceRequest

type InvoiceRequest struct {
	// Attachments Attachments to include in the message to the buyer.
	Attachments *[]Attachment `json:"attachments,omitempty"`
}

InvoiceRequest The request schema for the sendInvoice operation.

type InvoiceResponse

type InvoiceResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

InvoiceResponse The response schema for the sendInvoice operation.

type LinkObject

type LinkObject struct {
	// Href A URI for this object.
	Href string `json:"href"`

	// Name An identifier for this object.
	Name *string `json:"name,omitempty"`
}

LinkObject A Link object.

type MessagingAction

type MessagingAction struct {
	Name string `json:"name"`
}

MessagingAction A simple object containing the name of the template.

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

type Schema

type Schema map[string]interface{}

Schema A JSON schema document describing the expected payload of the action. This object can be validated against <a href=http://json-schema.org/draft-04/schema>http://json-schema.org/draft-04/schema</a>.

type SendInvoiceJSONRequestBody

type SendInvoiceJSONRequestBody = InvoiceRequest

SendInvoiceJSONRequestBody defines body for SendInvoice for application/json ContentType.

type SendInvoiceParams

type SendInvoiceParams struct {
	// MarketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`
}

SendInvoiceParams defines parameters for SendInvoice.

type SendInvoiceResp

type SendInvoiceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *InvoiceResponse
	JSON400      *InvoiceResponse
	JSON403      *InvoiceResponse
	JSON404      *InvoiceResponse
	JSON413      *InvoiceResponse
	JSON415      *InvoiceResponse
	JSON429      *InvoiceResponse
	JSON500      *InvoiceResponse
	JSON503      *InvoiceResponse
}

func ParseSendInvoiceResp

func ParseSendInvoiceResp(rsp *http.Response) (*SendInvoiceResp, error)

ParseSendInvoiceResp parses an HTTP response from a SendInvoiceWithResponse call

func (SendInvoiceResp) Status

func (r SendInvoiceResp) Status() string

Status returns HTTPResponse.Status

func (SendInvoiceResp) StatusCode

func (r SendInvoiceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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