messaging

package
v0.0.0-...-192e0a4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package messaging provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Package messaging provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfirmCustomizationDetailsRequest

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

NewConfirmCustomizationDetailsRequest calls the generic ConfirmCustomizationDetails builder with application/json body

func NewConfirmCustomizationDetailsRequestWithBody

func NewConfirmCustomizationDetailsRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateAmazonMotorsParams, body CreateAmazonMotorsJSONRequestBody) (*http.Request, error)

NewCreateAmazonMotorsRequest calls the generic CreateAmazonMotors builder with application/json body

func NewCreateAmazonMotorsRequestWithBody

func NewCreateAmazonMotorsRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateConfirmDeliveryDetailsParams, body CreateConfirmDeliveryDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmDeliveryDetailsRequest calls the generic CreateConfirmDeliveryDetails builder with application/json body

func NewCreateConfirmDeliveryDetailsRequestWithBody

func NewCreateConfirmDeliveryDetailsRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateConfirmOrderDetailsParams, body CreateConfirmOrderDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmOrderDetailsRequest calls the generic CreateConfirmOrderDetails builder with application/json body

func NewCreateConfirmOrderDetailsRequestWithBody

func NewCreateConfirmOrderDetailsRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateConfirmServiceDetailsParams, body CreateConfirmServiceDetailsJSONRequestBody) (*http.Request, error)

NewCreateConfirmServiceDetailsRequest calls the generic CreateConfirmServiceDetails builder with application/json body

func NewCreateConfirmServiceDetailsRequestWithBody

func NewCreateConfirmServiceDetailsRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateDigitalAccessKeyParams, body CreateDigitalAccessKeyJSONRequestBody) (*http.Request, error)

NewCreateDigitalAccessKeyRequest calls the generic CreateDigitalAccessKey builder with application/json body

func NewCreateDigitalAccessKeyRequestWithBody

func NewCreateDigitalAccessKeyRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateLegalDisclosureParams, body CreateLegalDisclosureJSONRequestBody) (*http.Request, error)

NewCreateLegalDisclosureRequest calls the generic CreateLegalDisclosure builder with application/json body

func NewCreateLegalDisclosureRequestWithBody

func NewCreateLegalDisclosureRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateNegativeFeedbackRemovalParams) (*http.Request, error)

NewCreateNegativeFeedbackRemovalRequest generates requests for CreateNegativeFeedbackRemoval

func NewCreateUnexpectedProblemRequest

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

NewCreateUnexpectedProblemRequest calls the generic CreateUnexpectedProblem builder with application/json body

func NewCreateUnexpectedProblemRequestWithBody

func NewCreateUnexpectedProblemRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *CreateWarrantyParams, body CreateWarrantyJSONRequestBody) (*http.Request, error)

NewCreateWarrantyRequest calls the generic CreateWarranty builder with application/json body

func NewCreateWarrantyRequestWithBody

func NewCreateWarrantyRequestWithBody(endpoint 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(endpoint string, amazonOrderId string, params *GetAttributesParams) (*http.Request, error)

NewGetAttributesRequest generates requests for GetAttributes

func NewGetMessagingActionsForOrderRequest

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

NewGetMessagingActionsForOrderRequest generates requests for GetMessagingActionsForOrder

Types

type Attachment

type Attachment struct {

	// 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"`

	// The identifier of the upload destination. Get this value by calling the createUploadDestination operation of the Uploads API.
	UploadDestinationId string `json:"uploadDestinationId"`
}

Attachment defines model for Attachment.

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

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)

	// CreateAmazonMotors 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)

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

	// CreateConfirmDeliveryDetails 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)

	// CreateConfirmOrderDetails 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)

	// CreateConfirmServiceDetails 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)

	// CreateDigitalAccessKey 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)

	// CreateLegalDisclosure 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)

	// CreateUnexpectedProblem 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)

	// CreateWarranty 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 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) 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 *ConfirmCustomizationDetailsResponse

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 *CreateAmazonMotorsResponse

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 *CreateConfirmDeliveryDetailsResponse

func (*ClientWithResponses) CreateConfirmDeliveryDetailsWithResponse

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 *CreateConfirmOrderDetailsResponse

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 *CreateConfirmServiceDetailsResponse

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 *CreateDigitalAccessKeyResponse

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 *CreateLegalDisclosureResponse

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 *CreateNegativeFeedbackRemovalResponse

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 *CreateUnexpectedProblemResponse

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 *CreateWarrantyResponse

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 *GetAttributesResponse

func (*ClientWithResponses) GetMessagingActionsForOrderWithResponse

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

GetMessagingActionsForOrderWithResponse request returning *GetMessagingActionsForOrderResponse

type ClientWithResponsesInterface

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

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

	// CreateAmazonMotors 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)

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

	// CreateConfirmDeliveryDetails 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)

	// CreateConfirmOrderDetails 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)

	// CreateConfirmServiceDetails 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)

	// CreateDigitalAccessKey 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)

	// CreateLegalDisclosure 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)

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

	// CreateUnexpectedProblem 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)

	// CreateWarranty 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 ConfirmCustomizationDetailsJSONBody

type ConfirmCustomizationDetailsJSONBody CreateConfirmCustomizationDetailsRequest

ConfirmCustomizationDetailsJSONBody defines parameters for ConfirmCustomizationDetails.

type ConfirmCustomizationDetailsJSONRequestBody

type ConfirmCustomizationDetailsJSONRequestBody ConfirmCustomizationDetailsJSONBody

ConfirmCustomizationDetailsRequestBody defines body for ConfirmCustomizationDetails for application/json ContentType.

type ConfirmCustomizationDetailsParams

type ConfirmCustomizationDetailsParams struct {

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

ConfirmCustomizationDetailsParams defines parameters for ConfirmCustomizationDetails.

type ConfirmCustomizationDetailsResp

type ConfirmCustomizationDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateConfirmCustomizationDetailsResponse
}

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 CreateAmazonMotorsJSONBody

type CreateAmazonMotorsJSONBody CreateAmazonMotorsRequest

CreateAmazonMotorsJSONBody defines parameters for CreateAmazonMotors.

type CreateAmazonMotorsJSONRequestBody

type CreateAmazonMotorsJSONRequestBody CreateAmazonMotorsJSONBody

CreateAmazonMotorsRequestBody defines body for CreateAmazonMotors for application/json ContentType.

type CreateAmazonMotorsParams

type CreateAmazonMotorsParams struct {

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

CreateAmazonMotorsParams defines parameters for CreateAmazonMotors.

type CreateAmazonMotorsRequest

type CreateAmazonMotorsRequest struct {

	// 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 defines model for CreateAmazonMotorsRequest.

type CreateAmazonMotorsResp

type CreateAmazonMotorsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateAmazonMotorsResponse
}

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 {

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

CreateAmazonMotorsResponse defines model for CreateAmazonMotorsResponse.

type CreateConfirmCustomizationDetailsRequest

type CreateConfirmCustomizationDetailsRequest struct {

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

	// 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 defines model for CreateConfirmCustomizationDetailsRequest.

type CreateConfirmCustomizationDetailsResponse

type CreateConfirmCustomizationDetailsResponse struct {

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

CreateConfirmCustomizationDetailsResponse defines model for CreateConfirmCustomizationDetailsResponse.

type CreateConfirmDeliveryDetailsJSONBody

type CreateConfirmDeliveryDetailsJSONBody CreateConfirmDeliveryDetailsRequest

CreateConfirmDeliveryDetailsJSONBody defines parameters for CreateConfirmDeliveryDetails.

type CreateConfirmDeliveryDetailsJSONRequestBody

type CreateConfirmDeliveryDetailsJSONRequestBody CreateConfirmDeliveryDetailsJSONBody

CreateConfirmDeliveryDetailsRequestBody defines body for CreateConfirmDeliveryDetails for application/json ContentType.

type CreateConfirmDeliveryDetailsParams

type CreateConfirmDeliveryDetailsParams struct {

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

CreateConfirmDeliveryDetailsParams defines parameters for CreateConfirmDeliveryDetails.

type CreateConfirmDeliveryDetailsRequest

type CreateConfirmDeliveryDetailsRequest struct {

	// 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 defines model for CreateConfirmDeliveryDetailsRequest.

type CreateConfirmDeliveryDetailsResp

type CreateConfirmDeliveryDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateConfirmDeliveryDetailsResponse
}

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 {

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

CreateConfirmDeliveryDetailsResponse defines model for CreateConfirmDeliveryDetailsResponse.

type CreateConfirmOrderDetailsJSONBody

type CreateConfirmOrderDetailsJSONBody CreateConfirmOrderDetailsRequest

CreateConfirmOrderDetailsJSONBody defines parameters for CreateConfirmOrderDetails.

type CreateConfirmOrderDetailsJSONRequestBody

type CreateConfirmOrderDetailsJSONRequestBody CreateConfirmOrderDetailsJSONBody

CreateConfirmOrderDetailsRequestBody defines body for CreateConfirmOrderDetails for application/json ContentType.

type CreateConfirmOrderDetailsParams

type CreateConfirmOrderDetailsParams struct {

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

CreateConfirmOrderDetailsParams defines parameters for CreateConfirmOrderDetails.

type CreateConfirmOrderDetailsRequest

type CreateConfirmOrderDetailsRequest struct {

	// 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 defines model for CreateConfirmOrderDetailsRequest.

type CreateConfirmOrderDetailsResp

type CreateConfirmOrderDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateConfirmOrderDetailsResponse
}

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 {

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

CreateConfirmOrderDetailsResponse defines model for CreateConfirmOrderDetailsResponse.

type CreateConfirmServiceDetailsJSONBody

type CreateConfirmServiceDetailsJSONBody CreateConfirmServiceDetailsRequest

CreateConfirmServiceDetailsJSONBody defines parameters for CreateConfirmServiceDetails.

type CreateConfirmServiceDetailsJSONRequestBody

type CreateConfirmServiceDetailsJSONRequestBody CreateConfirmServiceDetailsJSONBody

CreateConfirmServiceDetailsRequestBody defines body for CreateConfirmServiceDetails for application/json ContentType.

type CreateConfirmServiceDetailsParams

type CreateConfirmServiceDetailsParams struct {

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

CreateConfirmServiceDetailsParams defines parameters for CreateConfirmServiceDetails.

type CreateConfirmServiceDetailsRequest

type CreateConfirmServiceDetailsRequest struct {

	// 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 defines model for CreateConfirmServiceDetailsRequest.

type CreateConfirmServiceDetailsResp

type CreateConfirmServiceDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateConfirmServiceDetailsResponse
}

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 {

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

CreateConfirmServiceDetailsResponse defines model for CreateConfirmServiceDetailsResponse.

type CreateDigitalAccessKeyJSONBody

type CreateDigitalAccessKeyJSONBody CreateDigitalAccessKeyRequest

CreateDigitalAccessKeyJSONBody defines parameters for CreateDigitalAccessKey.

type CreateDigitalAccessKeyJSONRequestBody

type CreateDigitalAccessKeyJSONRequestBody CreateDigitalAccessKeyJSONBody

CreateDigitalAccessKeyRequestBody defines body for CreateDigitalAccessKey for application/json ContentType.

type CreateDigitalAccessKeyParams

type CreateDigitalAccessKeyParams struct {

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

CreateDigitalAccessKeyParams defines parameters for CreateDigitalAccessKey.

type CreateDigitalAccessKeyRequest

type CreateDigitalAccessKeyRequest struct {

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

	// 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 defines model for CreateDigitalAccessKeyRequest.

type CreateDigitalAccessKeyResp

type CreateDigitalAccessKeyResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateDigitalAccessKeyResponse
}

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 {

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

CreateDigitalAccessKeyResponse defines model for CreateDigitalAccessKeyResponse.

type CreateLegalDisclosureJSONBody

type CreateLegalDisclosureJSONBody CreateLegalDisclosureRequest

CreateLegalDisclosureJSONBody defines parameters for CreateLegalDisclosure.

type CreateLegalDisclosureJSONRequestBody

type CreateLegalDisclosureJSONRequestBody CreateLegalDisclosureJSONBody

CreateLegalDisclosureRequestBody defines body for CreateLegalDisclosure for application/json ContentType.

type CreateLegalDisclosureParams

type CreateLegalDisclosureParams struct {

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

CreateLegalDisclosureParams defines parameters for CreateLegalDisclosure.

type CreateLegalDisclosureRequest

type CreateLegalDisclosureRequest struct {

	// 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 defines model for CreateLegalDisclosureRequest.

type CreateLegalDisclosureResp

type CreateLegalDisclosureResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateLegalDisclosureResponse
}

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 {

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

CreateLegalDisclosureResponse defines model for CreateLegalDisclosureResponse.

type CreateNegativeFeedbackRemovalParams

type CreateNegativeFeedbackRemovalParams struct {

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

CreateNegativeFeedbackRemovalParams defines parameters for CreateNegativeFeedbackRemoval.

type CreateNegativeFeedbackRemovalResp

type CreateNegativeFeedbackRemovalResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateNegativeFeedbackRemovalResponse
}

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 {

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

CreateNegativeFeedbackRemovalResponse defines model for CreateNegativeFeedbackRemovalResponse.

type CreateUnexpectedProblemJSONBody

type CreateUnexpectedProblemJSONBody CreateUnexpectedProblemRequest

CreateUnexpectedProblemJSONBody defines parameters for CreateUnexpectedProblem.

type CreateUnexpectedProblemJSONRequestBody

type CreateUnexpectedProblemJSONRequestBody CreateUnexpectedProblemJSONBody

CreateUnexpectedProblemRequestBody defines body for CreateUnexpectedProblem for application/json ContentType.

type CreateUnexpectedProblemParams

type CreateUnexpectedProblemParams struct {

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

CreateUnexpectedProblemParams defines parameters for CreateUnexpectedProblem.

type CreateUnexpectedProblemRequest

type CreateUnexpectedProblemRequest struct {

	// 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 defines model for CreateUnexpectedProblemRequest.

type CreateUnexpectedProblemResp

type CreateUnexpectedProblemResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateUnexpectedProblemResponse
}

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 {

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

CreateUnexpectedProblemResponse defines model for CreateUnexpectedProblemResponse.

type CreateWarrantyJSONBody

type CreateWarrantyJSONBody CreateWarrantyRequest

CreateWarrantyJSONBody defines parameters for CreateWarranty.

type CreateWarrantyJSONRequestBody

type CreateWarrantyJSONRequestBody CreateWarrantyJSONBody

CreateWarrantyRequestBody defines body for CreateWarranty for application/json ContentType.

type CreateWarrantyParams

type CreateWarrantyParams struct {

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

CreateWarrantyParams defines parameters for CreateWarranty.

type CreateWarrantyRequest

type CreateWarrantyRequest struct {

	// 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"`

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

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

CreateWarrantyRequest defines model for CreateWarrantyRequest.

type CreateWarrantyResp

type CreateWarrantyResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *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 {

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

CreateWarrantyResponse defines model for CreateWarrantyResponse.

type Error

type Error struct {

	// An error code that identifies the type of error that occurred.
	Code string `json:"code"`

	// Additional details that can help the caller understand or fix the issue.
	Details *string `json:"details,omitempty"`

	// A message that describes the error condition.
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorList

type ErrorList []Error

ErrorList defines model for ErrorList.

type GetAttributesParams

type GetAttributesParams struct {

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

GetAttributesParams defines parameters for GetAttributes.

type GetAttributesResp

type GetAttributesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *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 {

	// The list of attributes related to the buyer.
	Buyer *struct {

		// 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"`

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

GetAttributesResponse defines model for GetAttributesResponse.

type GetMessagingActionResponse

type GetMessagingActionResponse struct {
	Embedded *struct {
		Schema *GetSchemaResponse `json:"schema,omitempty"`
	} `json:"_embedded,omitempty"`
	Links *struct {

		// A Link object.
		Schema LinkObject `json:"schema"`

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

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

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

GetMessagingActionResponse defines model for GetMessagingActionResponse.

type GetMessagingActionsForOrderParams

type GetMessagingActionsForOrderParams struct {

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

GetMessagingActionsForOrderParams defines parameters for GetMessagingActionsForOrder.

type GetMessagingActionsForOrderResp

type GetMessagingActionsForOrderResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetMessagingActionsForOrderResponse
}

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 {

		// Eligible actions for the specified amazonOrderId.
		Actions []LinkObject `json:"actions"`

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

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

GetMessagingActionsForOrderResponse defines model for GetMessagingActionsForOrderResponse.

type GetSchemaResponse

type GetSchemaResponse struct {
	Links *struct {

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

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

	// 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 LinkObject

type LinkObject struct {

	// A URI for this object.
	Href string `json:"href"`

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

LinkObject defines model for LinkObject.

type MessagingAction

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

MessagingAction defines model for MessagingAction.

type RequestBeforeFn

type RequestBeforeFn func(ctx context.Context, req *http.Request) error

RequestBeforeFn is the function signature for the RequestBefore callback function

type ResponseAfterFn

type ResponseAfterFn func(ctx context.Context, rsp *http.Response) error

ResponseAfterFn is the function signature for the ResponseAfter callback function

type Schema

type Schema struct {
	AdditionalProperties map[string]interface{} `json:"-"`
}

Schema defines model for Schema.

func (Schema) Get

func (a Schema) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Schema. Returns the specified element and whether it was found

func (Schema) MarshalJSON

func (a Schema) MarshalJSON() ([]byte, error)

Override default JSON handling for Schema to handle AdditionalProperties

func (*Schema) Set

func (a *Schema) Set(fieldName string, value interface{})

Setter for additional properties for Schema

func (*Schema) UnmarshalJSON

func (a *Schema) UnmarshalJSON(b []byte) error

Override default JSON handling for Schema to handle AdditionalProperties

Jump to

Keyboard shortcuts

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