vendorOrdersv1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package vendorOrdersv1 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 NewGetPurchaseOrderRequest

func NewGetPurchaseOrderRequest(server string, purchaseOrderNumber string) (*http.Request, error)

NewGetPurchaseOrderRequest generates requests for GetPurchaseOrder

func NewGetPurchaseOrdersRequest

func NewGetPurchaseOrdersRequest(server string, params *GetPurchaseOrdersParams) (*http.Request, error)

NewGetPurchaseOrdersRequest generates requests for GetPurchaseOrders

func NewGetPurchaseOrdersStatusRequest

func NewGetPurchaseOrdersStatusRequest(server string, params *GetPurchaseOrdersStatusParams) (*http.Request, error)

NewGetPurchaseOrdersStatusRequest generates requests for GetPurchaseOrdersStatus

func NewSubmitAcknowledgementRequest

func NewSubmitAcknowledgementRequest(server string, body SubmitAcknowledgementJSONRequestBody) (*http.Request, error)

NewSubmitAcknowledgementRequest calls the generic SubmitAcknowledgement builder with application/json body

func NewSubmitAcknowledgementRequestWithBody

func NewSubmitAcknowledgementRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSubmitAcknowledgementRequestWithBody generates requests for SubmitAcknowledgement with any type of body

Types

type AcknowledgementStatusDetails

type AcknowledgementStatusDetails struct {
	// AcceptedQuantity Details of quantity ordered.
	AcceptedQuantity *ItemQuantity `json:"acceptedQuantity,omitempty"`

	// AcknowledgementDate The date when the line item was confirmed by vendor. Must be in ISO-8601 date/time format.
	AcknowledgementDate *time.Time `json:"acknowledgementDate,omitempty"`

	// RejectedQuantity Details of quantity ordered.
	RejectedQuantity *ItemQuantity `json:"rejectedQuantity,omitempty"`
}

AcknowledgementStatusDetails Details of item quantity ordered

type Address

type Address struct {
	// AddressLine1 First line of the address.
	AddressLine1 string `json:"addressLine1"`

	// AddressLine2 Additional address information, if required.
	AddressLine2 *string `json:"addressLine2,omitempty"`

	// AddressLine3 Additional address information, if required.
	AddressLine3 *string `json:"addressLine3,omitempty"`

	// City The city where the person, business or institution is located.
	City *string `json:"city,omitempty"`

	// CountryCode The two digit country code. In ISO 3166-1 alpha-2 format.
	CountryCode string `json:"countryCode"`

	// County The county where person, business or institution is located.
	County *string `json:"county,omitempty"`

	// District The district where person, business or institution is located.
	District *string `json:"district,omitempty"`

	// Name The name of the person, business or institution at that address.
	Name string `json:"name"`

	// Phone The phone number of the person, business or institution located at that address.
	Phone *string `json:"phone,omitempty"`

	// PostalCode The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
	PostalCode *string `json:"postalCode,omitempty"`

	// StateOrRegion The state or region where person, business or institution is located.
	StateOrRegion *string `json:"stateOrRegion,omitempty"`
}

Address Address of the party.

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

func (c *Client) GetPurchaseOrder(ctx context.Context, purchaseOrderNumber string) (*http.Response, error)

func (*Client) GetPurchaseOrders

func (c *Client) GetPurchaseOrders(ctx context.Context, params *GetPurchaseOrdersParams) (*http.Response, error)

func (*Client) GetPurchaseOrdersStatus

func (c *Client) GetPurchaseOrdersStatus(ctx context.Context, params *GetPurchaseOrdersStatusParams) (*http.Response, error)

func (*Client) SubmitAcknowledgement

func (c *Client) SubmitAcknowledgement(ctx context.Context, body SubmitAcknowledgementJSONRequestBody) (*http.Response, error)

func (*Client) SubmitAcknowledgementWithBody

func (c *Client) SubmitAcknowledgementWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// SubmitAcknowledgementWithBody request with any body
	SubmitAcknowledgementWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

	SubmitAcknowledgement(ctx context.Context, body SubmitAcknowledgementJSONRequestBody) (*http.Response, error)

	// GetPurchaseOrders request
	GetPurchaseOrders(ctx context.Context, params *GetPurchaseOrdersParams) (*http.Response, error)

	// GetPurchaseOrder request
	GetPurchaseOrder(ctx context.Context, purchaseOrderNumber string) (*http.Response, error)

	// GetPurchaseOrdersStatus request
	GetPurchaseOrdersStatus(ctx context.Context, params *GetPurchaseOrdersStatusParams) (*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) GetPurchaseOrderWithResponse

func (c *ClientWithResponses) GetPurchaseOrderWithResponse(ctx context.Context, purchaseOrderNumber string) (*GetPurchaseOrderResp, error)

GetPurchaseOrderWithResponse request returning *GetPurchaseOrderResp

func (*ClientWithResponses) GetPurchaseOrdersStatusWithResponse

func (c *ClientWithResponses) GetPurchaseOrdersStatusWithResponse(ctx context.Context, params *GetPurchaseOrdersStatusParams) (*GetPurchaseOrdersStatusResp, error)

GetPurchaseOrdersStatusWithResponse request returning *GetPurchaseOrdersStatusResp

func (*ClientWithResponses) GetPurchaseOrdersWithResponse

func (c *ClientWithResponses) GetPurchaseOrdersWithResponse(ctx context.Context, params *GetPurchaseOrdersParams) (*GetPurchaseOrdersResp, error)

GetPurchaseOrdersWithResponse request returning *GetPurchaseOrdersResp

func (*ClientWithResponses) SubmitAcknowledgementWithBodyWithResponse

func (c *ClientWithResponses) SubmitAcknowledgementWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SubmitAcknowledgementResp, error)

SubmitAcknowledgementWithBodyWithResponse request with arbitrary body returning *SubmitAcknowledgementResp

func (*ClientWithResponses) SubmitAcknowledgementWithResponse

func (c *ClientWithResponses) SubmitAcknowledgementWithResponse(ctx context.Context, body SubmitAcknowledgementJSONRequestBody) (*SubmitAcknowledgementResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SubmitAcknowledgementWithBodyWithResponse request with any body
	SubmitAcknowledgementWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SubmitAcknowledgementResp, error)

	SubmitAcknowledgementWithResponse(ctx context.Context, body SubmitAcknowledgementJSONRequestBody) (*SubmitAcknowledgementResp, error)

	// GetPurchaseOrdersWithResponse request
	GetPurchaseOrdersWithResponse(ctx context.Context, params *GetPurchaseOrdersParams) (*GetPurchaseOrdersResp, error)

	// GetPurchaseOrderWithResponse request
	GetPurchaseOrderWithResponse(ctx context.Context, purchaseOrderNumber string) (*GetPurchaseOrderResp, error)

	// GetPurchaseOrdersStatusWithResponse request
	GetPurchaseOrdersStatusWithResponse(ctx context.Context, params *GetPurchaseOrdersStatusParams) (*GetPurchaseOrdersStatusResp, error)
}

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

type DateTimeInterval

type DateTimeInterval = string

DateTimeInterval Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).

type Decimal

type Decimal = string

Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.

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 GetPurchaseOrderResp

func ParseGetPurchaseOrderResp

func ParseGetPurchaseOrderResp(rsp *http.Response) (*GetPurchaseOrderResp, error)

ParseGetPurchaseOrderResp parses an HTTP response from a GetPurchaseOrderWithResponse call

func (GetPurchaseOrderResp) Status

func (r GetPurchaseOrderResp) Status() string

Status returns HTTPResponse.Status

func (GetPurchaseOrderResp) StatusCode

func (r GetPurchaseOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPurchaseOrderResponse

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

GetPurchaseOrderResponse The response schema for the getPurchaseOrder operation.

type GetPurchaseOrdersParams

type GetPurchaseOrdersParams struct {
	// Limit The limit to the number of records returned. Default value is 100 records.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// CreatedAfter Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format.
	CreatedAfter *time.Time `form:"createdAfter,omitempty" json:"createdAfter,omitempty"`

	// CreatedBefore Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format.
	CreatedBefore *time.Time `form:"createdBefore,omitempty" json:"createdBefore,omitempty"`

	// SortOrder Sort in ascending or descending order by purchase order creation date.
	SortOrder *GetPurchaseOrdersParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`

	// NextToken Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call
	NextToken *string `form:"nextToken,omitempty" json:"nextToken,omitempty"`

	// IncludeDetails When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.
	IncludeDetails *string `form:"includeDetails,omitempty" json:"includeDetails,omitempty"`

	// ChangedAfter Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	ChangedAfter *time.Time `form:"changedAfter,omitempty" json:"changedAfter,omitempty"`

	// ChangedBefore Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	ChangedBefore *time.Time `form:"changedBefore,omitempty" json:"changedBefore,omitempty"`

	// PoItemState Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.
	PoItemState *GetPurchaseOrdersParamsPoItemState `form:"poItemState,omitempty" json:"poItemState,omitempty"`

	// IsPOChanged When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.
	IsPOChanged *string `form:"isPOChanged,omitempty" json:"isPOChanged,omitempty"`

	// PurchaseOrderState Filters purchase orders based on the purchase order state.
	PurchaseOrderState *GetPurchaseOrdersParamsPurchaseOrderState `form:"purchaseOrderState,omitempty" json:"purchaseOrderState,omitempty"`

	// OrderingVendorCode Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.
	OrderingVendorCode *string `form:"orderingVendorCode,omitempty" json:"orderingVendorCode,omitempty"`
}

GetPurchaseOrdersParams defines parameters for GetPurchaseOrders.

type GetPurchaseOrdersParamsPoItemState

type GetPurchaseOrdersParamsPoItemState string

GetPurchaseOrdersParamsPoItemState defines parameters for GetPurchaseOrders.

const (
	Cancelled GetPurchaseOrdersParamsPoItemState = "Cancelled"
)

Defines values for GetPurchaseOrdersParamsPoItemState.

type GetPurchaseOrdersParamsPurchaseOrderState

type GetPurchaseOrdersParamsPurchaseOrderState string

GetPurchaseOrdersParamsPurchaseOrderState defines parameters for GetPurchaseOrders.

const (
	GetPurchaseOrdersParamsPurchaseOrderStateAcknowledged GetPurchaseOrdersParamsPurchaseOrderState = "Acknowledged"
	GetPurchaseOrdersParamsPurchaseOrderStateClosed       GetPurchaseOrdersParamsPurchaseOrderState = "Closed"
	GetPurchaseOrdersParamsPurchaseOrderStateNew          GetPurchaseOrdersParamsPurchaseOrderState = "New"
)

Defines values for GetPurchaseOrdersParamsPurchaseOrderState.

type GetPurchaseOrdersParamsSortOrder

type GetPurchaseOrdersParamsSortOrder string

GetPurchaseOrdersParamsSortOrder defines parameters for GetPurchaseOrders.

const (
	GetPurchaseOrdersParamsSortOrderASC  GetPurchaseOrdersParamsSortOrder = "ASC"
	GetPurchaseOrdersParamsSortOrderDESC GetPurchaseOrdersParamsSortOrder = "DESC"
)

Defines values for GetPurchaseOrdersParamsSortOrder.

type GetPurchaseOrdersResp

func ParseGetPurchaseOrdersResp

func ParseGetPurchaseOrdersResp(rsp *http.Response) (*GetPurchaseOrdersResp, error)

ParseGetPurchaseOrdersResp parses an HTTP response from a GetPurchaseOrdersWithResponse call

func (GetPurchaseOrdersResp) Status

func (r GetPurchaseOrdersResp) Status() string

Status returns HTTPResponse.Status

func (GetPurchaseOrdersResp) StatusCode

func (r GetPurchaseOrdersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPurchaseOrdersResponse

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

GetPurchaseOrdersResponse The response schema for the getPurchaseOrders operation.

type GetPurchaseOrdersStatusParams

type GetPurchaseOrdersStatusParams struct {
	// Limit The limit to the number of records returned. Default value is 100 records.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// SortOrder Sort in ascending or descending order by purchase order creation date.
	SortOrder *GetPurchaseOrdersStatusParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`

	// NextToken Used for pagination when there are more purchase orders than the specified result size limit.
	NextToken *string `form:"nextToken,omitempty" json:"nextToken,omitempty"`

	// CreatedAfter Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	CreatedAfter *time.Time `form:"createdAfter,omitempty" json:"createdAfter,omitempty"`

	// CreatedBefore Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	CreatedBefore *time.Time `form:"createdBefore,omitempty" json:"createdBefore,omitempty"`

	// UpdatedAfter Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	UpdatedAfter *time.Time `form:"updatedAfter,omitempty" json:"updatedAfter,omitempty"`

	// UpdatedBefore Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
	UpdatedBefore *time.Time `form:"updatedBefore,omitempty" json:"updatedBefore,omitempty"`

	// PurchaseOrderNumber Provides purchase order status for the specified purchase order number.
	PurchaseOrderNumber *string `form:"purchaseOrderNumber,omitempty" json:"purchaseOrderNumber,omitempty"`

	// PurchaseOrderStatus Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses.
	PurchaseOrderStatus *GetPurchaseOrdersStatusParamsPurchaseOrderStatus `form:"purchaseOrderStatus,omitempty" json:"purchaseOrderStatus,omitempty"`

	// ItemConfirmationStatus Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included.
	ItemConfirmationStatus *GetPurchaseOrdersStatusParamsItemConfirmationStatus `form:"itemConfirmationStatus,omitempty" json:"itemConfirmationStatus,omitempty"`

	// ItemReceiveStatus Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included.
	ItemReceiveStatus *GetPurchaseOrdersStatusParamsItemReceiveStatus `form:"itemReceiveStatus,omitempty" json:"itemReceiveStatus,omitempty"`

	// OrderingVendorCode Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.
	OrderingVendorCode *string `form:"orderingVendorCode,omitempty" json:"orderingVendorCode,omitempty"`

	// ShipToPartyId Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders.
	ShipToPartyId *string `form:"shipToPartyId,omitempty" json:"shipToPartyId,omitempty"`
}

GetPurchaseOrdersStatusParams defines parameters for GetPurchaseOrdersStatus.

type GetPurchaseOrdersStatusParamsItemConfirmationStatus

type GetPurchaseOrdersStatusParamsItemConfirmationStatus string

GetPurchaseOrdersStatusParamsItemConfirmationStatus defines parameters for GetPurchaseOrdersStatus.

const (
	GetPurchaseOrdersStatusParamsItemConfirmationStatusACCEPTED          GetPurchaseOrdersStatusParamsItemConfirmationStatus = "ACCEPTED"
	GetPurchaseOrdersStatusParamsItemConfirmationStatusPARTIALLYACCEPTED GetPurchaseOrdersStatusParamsItemConfirmationStatus = "PARTIALLY_ACCEPTED"
	GetPurchaseOrdersStatusParamsItemConfirmationStatusREJECTED          GetPurchaseOrdersStatusParamsItemConfirmationStatus = "REJECTED"
	GetPurchaseOrdersStatusParamsItemConfirmationStatusUNCONFIRMED       GetPurchaseOrdersStatusParamsItemConfirmationStatus = "UNCONFIRMED"
)

Defines values for GetPurchaseOrdersStatusParamsItemConfirmationStatus.

type GetPurchaseOrdersStatusParamsItemReceiveStatus

type GetPurchaseOrdersStatusParamsItemReceiveStatus string

GetPurchaseOrdersStatusParamsItemReceiveStatus defines parameters for GetPurchaseOrdersStatus.

const (
	GetPurchaseOrdersStatusParamsItemReceiveStatusNOTRECEIVED       GetPurchaseOrdersStatusParamsItemReceiveStatus = "NOT_RECEIVED"
	GetPurchaseOrdersStatusParamsItemReceiveStatusPARTIALLYRECEIVED GetPurchaseOrdersStatusParamsItemReceiveStatus = "PARTIALLY_RECEIVED"
	GetPurchaseOrdersStatusParamsItemReceiveStatusRECEIVED          GetPurchaseOrdersStatusParamsItemReceiveStatus = "RECEIVED"
)

Defines values for GetPurchaseOrdersStatusParamsItemReceiveStatus.

type GetPurchaseOrdersStatusParamsPurchaseOrderStatus

type GetPurchaseOrdersStatusParamsPurchaseOrderStatus string

GetPurchaseOrdersStatusParamsPurchaseOrderStatus defines parameters for GetPurchaseOrdersStatus.

const (
	GetPurchaseOrdersStatusParamsPurchaseOrderStatusCLOSED GetPurchaseOrdersStatusParamsPurchaseOrderStatus = "CLOSED"
	GetPurchaseOrdersStatusParamsPurchaseOrderStatusOPEN   GetPurchaseOrdersStatusParamsPurchaseOrderStatus = "OPEN"
)

Defines values for GetPurchaseOrdersStatusParamsPurchaseOrderStatus.

type GetPurchaseOrdersStatusParamsSortOrder

type GetPurchaseOrdersStatusParamsSortOrder string

GetPurchaseOrdersStatusParamsSortOrder defines parameters for GetPurchaseOrdersStatus.

const (
	GetPurchaseOrdersStatusParamsSortOrderASC  GetPurchaseOrdersStatusParamsSortOrder = "ASC"
	GetPurchaseOrdersStatusParamsSortOrderDESC GetPurchaseOrdersStatusParamsSortOrder = "DESC"
)

Defines values for GetPurchaseOrdersStatusParamsSortOrder.

type GetPurchaseOrdersStatusResp

func ParseGetPurchaseOrdersStatusResp

func ParseGetPurchaseOrdersStatusResp(rsp *http.Response) (*GetPurchaseOrdersStatusResp, error)

ParseGetPurchaseOrdersStatusResp parses an HTTP response from a GetPurchaseOrdersStatusWithResponse call

func (GetPurchaseOrdersStatusResp) Status

Status returns HTTPResponse.Status

func (GetPurchaseOrdersStatusResp) StatusCode

func (r GetPurchaseOrdersStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPurchaseOrdersStatusResponse

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

GetPurchaseOrdersStatusResponse The response schema for the getPurchaseOrdersStatus operation.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ImportDetails

type ImportDetails struct {
	// ImportContainers Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if the shipment has multiple containers. HC signifies a high-capacity container. Free-text field, limited to 64 characters. The format will be a comma-delimited list containing values of the type: $NUMBER_OF_CONTAINERS_OF_THIS_TYPE-$CONTAINER_TYPE. The list of values for the container type is: 40'(40-foot container), 40'HC (40-foot high-capacity container), 45', 45'HC, 30', 30'HC, 20', 20'HC.
	ImportContainers *string `json:"importContainers,omitempty"`

	// InternationalCommercialTerms Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only.
	InternationalCommercialTerms *ImportDetailsInternationalCommercialTerms `json:"internationalCommercialTerms,omitempty"`

	// MethodOfPayment If the recipient requests, contains the shipment method of payment. This is for import PO's only.
	MethodOfPayment *ImportDetailsMethodOfPayment `json:"methodOfPayment,omitempty"`

	// PortOfDelivery The port where goods on an import purchase order must be delivered by the vendor. This should only be specified when the internationalCommercialTerms is FOB.
	PortOfDelivery *string `json:"portOfDelivery,omitempty"`

	// ShippingInstructions Special instructions regarding the shipment. This field is for import purchase orders.
	ShippingInstructions *string `json:"shippingInstructions,omitempty"`
}

ImportDetails Import details for an import order.

type ImportDetailsInternationalCommercialTerms

type ImportDetailsInternationalCommercialTerms string

ImportDetailsInternationalCommercialTerms Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only.

const (
	CarriageAndInsurancePaidTo ImportDetailsInternationalCommercialTerms = "CarriageAndInsurancePaidTo"
	CarriagePaidTo             ImportDetailsInternationalCommercialTerms = "CarriagePaidTo"
	CostAndFreight             ImportDetailsInternationalCommercialTerms = "CostAndFreight"
	CostInsuranceAndFreight    ImportDetailsInternationalCommercialTerms = "CostInsuranceAndFreight"
	DeliverDutyPaid            ImportDetailsInternationalCommercialTerms = "DeliverDutyPaid"
	DeliveredAtPlace           ImportDetailsInternationalCommercialTerms = "DeliveredAtPlace"
	DeliveredAtTerminal        ImportDetailsInternationalCommercialTerms = "DeliveredAtTerminal"
	ExWorks                    ImportDetailsInternationalCommercialTerms = "ExWorks"
	FreeAlongSideShip          ImportDetailsInternationalCommercialTerms = "FreeAlongSideShip"
	FreeCarrier                ImportDetailsInternationalCommercialTerms = "FreeCarrier"
	FreeOnBoard                ImportDetailsInternationalCommercialTerms = "FreeOnBoard"
)

Defines values for ImportDetailsInternationalCommercialTerms.

type ImportDetailsMethodOfPayment

type ImportDetailsMethodOfPayment string

ImportDetailsMethodOfPayment If the recipient requests, contains the shipment method of payment. This is for import PO's only.

const (
	CollectOnDelivery       ImportDetailsMethodOfPayment = "CollectOnDelivery"
	DefinedByBuyerAndSeller ImportDetailsMethodOfPayment = "DefinedByBuyerAndSeller"
	FOBPortOfCall           ImportDetailsMethodOfPayment = "FOBPortOfCall"
	PaidByBuyer             ImportDetailsMethodOfPayment = "PaidByBuyer"
	PaidBySeller            ImportDetailsMethodOfPayment = "PaidBySeller"
	PrepaidBySeller         ImportDetailsMethodOfPayment = "PrepaidBySeller"
)

Defines values for ImportDetailsMethodOfPayment.

type ItemQuantity

type ItemQuantity struct {
	// Amount Acknowledged quantity. This value should not be zero.
	Amount *int `json:"amount,omitempty"`

	// UnitOfMeasure Unit of measure for the acknowledged quantity.
	UnitOfMeasure *ItemQuantityUnitOfMeasure `json:"unitOfMeasure,omitempty"`

	// UnitSize The case size, in the event that we ordered using cases.
	UnitSize *int `json:"unitSize,omitempty"`
}

ItemQuantity Details of quantity ordered.

type ItemQuantityUnitOfMeasure

type ItemQuantityUnitOfMeasure string

ItemQuantityUnitOfMeasure Unit of measure for the acknowledged quantity.

const (
	Cases  ItemQuantityUnitOfMeasure = "Cases"
	Eaches ItemQuantityUnitOfMeasure = "Eaches"
)

Defines values for ItemQuantityUnitOfMeasure.

type ItemStatus

type ItemStatus = []OrderItemStatus

ItemStatus Detailed description of items order status.

type Money

type Money struct {
	// Amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
	Amount *Decimal `json:"amount,omitempty"`

	// CurrencyCode Three digit currency code in ISO 4217 format. String of length 3.
	CurrencyCode *string `json:"currencyCode,omitempty"`
}

Money An amount of money, including units in the form of currency.

type Order

type Order struct {
	// OrderDetails Details of an order.
	OrderDetails *OrderDetails `json:"orderDetails,omitempty"`

	// PurchaseOrderNumber The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code.
	PurchaseOrderNumber string `json:"purchaseOrderNumber"`

	// PurchaseOrderState This field will contain the current state of the purchase order.
	PurchaseOrderState OrderPurchaseOrderState `json:"purchaseOrderState"`
}

Order defines model for Order.

type OrderAcknowledgement

type OrderAcknowledgement struct {
	// AcknowledgementDate The date and time when the purchase order is acknowledged, in ISO-8601 date/time format.
	AcknowledgementDate time.Time `json:"acknowledgementDate"`

	// Items A list of the items being acknowledged with associated details.
	Items []OrderAcknowledgementItem `json:"items"`

	// PurchaseOrderNumber The purchase order number. Formatting Notes: 8-character alpha-numeric code.
	PurchaseOrderNumber string              `json:"purchaseOrderNumber"`
	SellingParty        PartyIdentification `json:"sellingParty"`
}

OrderAcknowledgement defines model for OrderAcknowledgement.

type OrderAcknowledgementItem

type OrderAcknowledgementItem struct {
	// AmazonProductIdentifier Amazon Standard Identification Number (ASIN) of an item.
	AmazonProductIdentifier *string `json:"amazonProductIdentifier,omitempty"`

	// DiscountMultiplier The discount multiplier that should be applied to the price if a vendor sells books with a list price. This is a multiplier factor to arrive at a final discounted price. A multiplier of .90 would be the factor if a 10% discount is given.
	DiscountMultiplier *string `json:"discountMultiplier,omitempty"`

	// ItemAcknowledgements This is used to indicate acknowledged quantity.
	ItemAcknowledgements []OrderItemAcknowledgement `json:"itemAcknowledgements"`

	// ItemSequenceNumber Line item sequence number for the item.
	ItemSequenceNumber *string `json:"itemSequenceNumber,omitempty"`

	// ListPrice An amount of money, including units in the form of currency.
	ListPrice *Money `json:"listPrice,omitempty"`

	// NetCost An amount of money, including units in the form of currency.
	NetCost *Money `json:"netCost,omitempty"`

	// OrderedQuantity Details of quantity ordered.
	OrderedQuantity ItemQuantity `json:"orderedQuantity"`

	// VendorProductIdentifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order.
	VendorProductIdentifier *string `json:"vendorProductIdentifier,omitempty"`
}

OrderAcknowledgementItem Details of the item being acknowledged.

type OrderDetails

type OrderDetails struct {
	BillToParty *PartyIdentification `json:"billToParty,omitempty"`
	BuyingParty *PartyIdentification `json:"buyingParty,omitempty"`

	// DealCode If requested by the recipient, this field will contain a promotional/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order.
	DealCode *string `json:"dealCode,omitempty"`

	// DeliveryWindow Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).
	DeliveryWindow *DateTimeInterval `json:"deliveryWindow,omitempty"`

	// ImportDetails Import details for an import order.
	ImportDetails *ImportDetails `json:"importDetails,omitempty"`

	// Items A list of items in this purchase order.
	Items []OrderItem `json:"items"`

	// PaymentMethod Payment method used.
	PaymentMethod *OrderDetailsPaymentMethod `json:"paymentMethod,omitempty"`

	// PurchaseOrderChangedDate The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than 'purchaseOrderDate'. This means the PO data was changed on that date and vendors are required to fulfill the  updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date/time format.
	PurchaseOrderChangedDate *time.Time `json:"purchaseOrderChangedDate,omitempty"`

	// PurchaseOrderDate The date the purchase order was placed. Must be in ISO-8601 date/time format.
	PurchaseOrderDate time.Time `json:"purchaseOrderDate"`

	// PurchaseOrderStateChangedDate The date when current purchase order state was changed. Current purchase order state is available in the field 'purchaseOrderState'. Must be in ISO-8601 date/time format.
	PurchaseOrderStateChangedDate time.Time `json:"purchaseOrderStateChangedDate"`

	// PurchaseOrderType Type of purchase order.
	PurchaseOrderType *OrderDetailsPurchaseOrderType `json:"purchaseOrderType,omitempty"`
	SellingParty      *PartyIdentification           `json:"sellingParty,omitempty"`
	ShipToParty       *PartyIdentification           `json:"shipToParty,omitempty"`

	// ShipWindow Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).
	ShipWindow *DateTimeInterval `json:"shipWindow,omitempty"`
}

OrderDetails Details of an order.

type OrderDetailsPaymentMethod

type OrderDetailsPaymentMethod string

OrderDetailsPaymentMethod Payment method used.

const (
	Consignment OrderDetailsPaymentMethod = "Consignment"
	CreditCard  OrderDetailsPaymentMethod = "CreditCard"
	Invoice     OrderDetailsPaymentMethod = "Invoice"
	Prepaid     OrderDetailsPaymentMethod = "Prepaid"
)

Defines values for OrderDetailsPaymentMethod.

type OrderDetailsPurchaseOrderType

type OrderDetailsPurchaseOrderType string

OrderDetailsPurchaseOrderType Type of purchase order.

const (
	ConsignedOrder         OrderDetailsPurchaseOrderType = "ConsignedOrder"
	NewProductIntroduction OrderDetailsPurchaseOrderType = "NewProductIntroduction"
	RegularOrder           OrderDetailsPurchaseOrderType = "RegularOrder"
	RushOrder              OrderDetailsPurchaseOrderType = "RushOrder"
)

Defines values for OrderDetailsPurchaseOrderType.

type OrderItem

type OrderItem struct {
	// AmazonProductIdentifier Amazon Standard Identification Number (ASIN) of an item.
	AmazonProductIdentifier *string `json:"amazonProductIdentifier,omitempty"`

	// IsBackOrderAllowed When true, we will accept backorder confirmations for this item.
	IsBackOrderAllowed bool `json:"isBackOrderAllowed"`

	// ItemSequenceNumber Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on.
	ItemSequenceNumber string `json:"itemSequenceNumber"`

	// ListPrice An amount of money, including units in the form of currency.
	ListPrice *Money `json:"listPrice,omitempty"`

	// NetCost An amount of money, including units in the form of currency.
	NetCost *Money `json:"netCost,omitempty"`

	// OrderedQuantity Details of quantity ordered.
	OrderedQuantity ItemQuantity `json:"orderedQuantity"`

	// VendorProductIdentifier The vendor selected product identification of the item.
	VendorProductIdentifier *string `json:"vendorProductIdentifier,omitempty"`
}

OrderItem defines model for OrderItem.

type OrderItemAcknowledgement

type OrderItemAcknowledgement struct {
	// AcknowledgedQuantity Details of quantity ordered.
	AcknowledgedQuantity ItemQuantity `json:"acknowledgedQuantity"`

	// AcknowledgementCode This indicates the acknowledgement code.
	AcknowledgementCode OrderItemAcknowledgementAcknowledgementCode `json:"acknowledgementCode"`

	// RejectionReason Indicates the reason for rejection.
	RejectionReason *OrderItemAcknowledgementRejectionReason `json:"rejectionReason,omitempty"`

	// ScheduledDeliveryDate Estimated delivery date per line item. Must be in ISO-8601 date/time format.
	ScheduledDeliveryDate *time.Time `json:"scheduledDeliveryDate,omitempty"`

	// ScheduledShipDate Estimated ship date per line item. Must be in ISO-8601 date/time format.
	ScheduledShipDate *time.Time `json:"scheduledShipDate,omitempty"`
}

OrderItemAcknowledgement defines model for OrderItemAcknowledgement.

type OrderItemAcknowledgementAcknowledgementCode

type OrderItemAcknowledgementAcknowledgementCode string

OrderItemAcknowledgementAcknowledgementCode This indicates the acknowledgement code.

const (
	Accepted    OrderItemAcknowledgementAcknowledgementCode = "Accepted"
	Backordered OrderItemAcknowledgementAcknowledgementCode = "Backordered"
	Rejected    OrderItemAcknowledgementAcknowledgementCode = "Rejected"
)

Defines values for OrderItemAcknowledgementAcknowledgementCode.

type OrderItemAcknowledgementRejectionReason

type OrderItemAcknowledgementRejectionReason string

OrderItemAcknowledgementRejectionReason Indicates the reason for rejection.

const (
	InvalidProductIdentifier OrderItemAcknowledgementRejectionReason = "InvalidProductIdentifier"
	ObsoleteProduct          OrderItemAcknowledgementRejectionReason = "ObsoleteProduct"
	TemporarilyUnavailable   OrderItemAcknowledgementRejectionReason = "TemporarilyUnavailable"
)

Defines values for OrderItemAcknowledgementRejectionReason.

type OrderItemStatus

type OrderItemStatus struct {
	// AcknowledgementStatus Acknowledgement status information.
	AcknowledgementStatus *struct {
		// AcceptedQuantity Details of quantity ordered.
		AcceptedQuantity *ItemQuantity `json:"acceptedQuantity,omitempty"`

		// AcknowledgementStatusDetails Details of item quantity confirmed.
		AcknowledgementStatusDetails *[]AcknowledgementStatusDetails `json:"acknowledgementStatusDetails,omitempty"`

		// ConfirmationStatus Confirmation status of line item.
		ConfirmationStatus *OrderItemStatusAcknowledgementStatusConfirmationStatus `json:"confirmationStatus,omitempty"`

		// RejectedQuantity Details of quantity ordered.
		RejectedQuantity *ItemQuantity `json:"rejectedQuantity,omitempty"`
	} `json:"acknowledgementStatus,omitempty"`

	// BuyerProductIdentifier Buyer's Standard Identification Number (ASIN) of an item.
	BuyerProductIdentifier *string `json:"buyerProductIdentifier,omitempty"`

	// ItemSequenceNumber Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on.
	ItemSequenceNumber string `json:"itemSequenceNumber"`

	// ListPrice An amount of money, including units in the form of currency.
	ListPrice *Money `json:"listPrice,omitempty"`

	// NetCost An amount of money, including units in the form of currency.
	NetCost *Money `json:"netCost,omitempty"`

	// OrderedQuantity Ordered quantity information.
	OrderedQuantity *struct {
		// OrderedQuantity Details of quantity ordered.
		OrderedQuantity *ItemQuantity `json:"orderedQuantity,omitempty"`

		// OrderedQuantityDetails Details of item quantity ordered.
		OrderedQuantityDetails *[]OrderedQuantityDetails `json:"orderedQuantityDetails,omitempty"`
	} `json:"orderedQuantity,omitempty"`

	// ReceivingStatus Item receive status at the buyer's warehouse.
	ReceivingStatus *struct {
		// LastReceiveDate The date when the most recent item was received at the buyer's warehouse. Must be in ISO-8601 date/time format.
		LastReceiveDate *time.Time `json:"lastReceiveDate,omitempty"`

		// ReceiveStatus Receive status of the line item.
		ReceiveStatus *OrderItemStatusReceivingStatusReceiveStatus `json:"receiveStatus,omitempty"`

		// ReceivedQuantity Details of quantity ordered.
		ReceivedQuantity *ItemQuantity `json:"receivedQuantity,omitempty"`
	} `json:"receivingStatus,omitempty"`

	// VendorProductIdentifier The vendor selected product identification of the item.
	VendorProductIdentifier *string `json:"vendorProductIdentifier,omitempty"`
}

OrderItemStatus defines model for OrderItemStatus.

type OrderItemStatusAcknowledgementStatusConfirmationStatus

type OrderItemStatusAcknowledgementStatusConfirmationStatus string

OrderItemStatusAcknowledgementStatusConfirmationStatus Confirmation status of line item.

const (
	OrderItemStatusAcknowledgementStatusConfirmationStatusACCEPTED          OrderItemStatusAcknowledgementStatusConfirmationStatus = "ACCEPTED"
	OrderItemStatusAcknowledgementStatusConfirmationStatusPARTIALLYACCEPTED OrderItemStatusAcknowledgementStatusConfirmationStatus = "PARTIALLY_ACCEPTED"
	OrderItemStatusAcknowledgementStatusConfirmationStatusREJECTED          OrderItemStatusAcknowledgementStatusConfirmationStatus = "REJECTED"
	OrderItemStatusAcknowledgementStatusConfirmationStatusUNCONFIRMED       OrderItemStatusAcknowledgementStatusConfirmationStatus = "UNCONFIRMED"
)

Defines values for OrderItemStatusAcknowledgementStatusConfirmationStatus.

type OrderItemStatusReceivingStatusReceiveStatus

type OrderItemStatusReceivingStatusReceiveStatus string

OrderItemStatusReceivingStatusReceiveStatus Receive status of the line item.

const (
	OrderItemStatusReceivingStatusReceiveStatusNOTRECEIVED       OrderItemStatusReceivingStatusReceiveStatus = "NOT_RECEIVED"
	OrderItemStatusReceivingStatusReceiveStatusPARTIALLYRECEIVED OrderItemStatusReceivingStatusReceiveStatus = "PARTIALLY_RECEIVED"
	OrderItemStatusReceivingStatusReceiveStatusRECEIVED          OrderItemStatusReceivingStatusReceiveStatus = "RECEIVED"
)

Defines values for OrderItemStatusReceivingStatusReceiveStatus.

type OrderList

type OrderList struct {
	Orders     *[]Order    `json:"orders,omitempty"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

OrderList defines model for OrderList.

type OrderListStatus

type OrderListStatus struct {
	OrdersStatus *[]OrderStatus `json:"ordersStatus,omitempty"`
	Pagination   *Pagination    `json:"pagination,omitempty"`
}

OrderListStatus defines model for OrderListStatus.

type OrderPurchaseOrderState

type OrderPurchaseOrderState string

OrderPurchaseOrderState This field will contain the current state of the purchase order.

const (
	OrderPurchaseOrderStateAcknowledged OrderPurchaseOrderState = "Acknowledged"
	OrderPurchaseOrderStateClosed       OrderPurchaseOrderState = "Closed"
	OrderPurchaseOrderStateNew          OrderPurchaseOrderState = "New"
)

Defines values for OrderPurchaseOrderState.

type OrderStatus

type OrderStatus struct {
	// ItemStatus Detailed description of items order status.
	ItemStatus ItemStatus `json:"itemStatus"`

	// LastUpdatedDate The date when the purchase order was last updated. Must be in ISO-8601 date/time format.
	LastUpdatedDate *time.Time `json:"lastUpdatedDate,omitempty"`

	// PurchaseOrderDate The date the purchase order was placed. Must be in ISO-8601 date/time format.
	PurchaseOrderDate time.Time `json:"purchaseOrderDate"`

	// PurchaseOrderNumber The buyer's purchase order number for this order. Formatting Notes: 8-character alpha-numeric code.
	PurchaseOrderNumber string `json:"purchaseOrderNumber"`

	// PurchaseOrderStatus The status of the buyer's purchase order for this order.
	PurchaseOrderStatus OrderStatusPurchaseOrderStatus `json:"purchaseOrderStatus"`
	SellingParty        PartyIdentification            `json:"sellingParty"`
	ShipToParty         PartyIdentification            `json:"shipToParty"`
}

OrderStatus Current status of a purchase order.

type OrderStatusPurchaseOrderStatus

type OrderStatusPurchaseOrderStatus string

OrderStatusPurchaseOrderStatus The status of the buyer's purchase order for this order.

const (
	OrderStatusPurchaseOrderStatusCLOSED OrderStatusPurchaseOrderStatus = "CLOSED"
	OrderStatusPurchaseOrderStatusOPEN   OrderStatusPurchaseOrderStatus = "OPEN"
)

Defines values for OrderStatusPurchaseOrderStatus.

type OrderedQuantityDetails

type OrderedQuantityDetails struct {
	// CancelledQuantity Details of quantity ordered.
	CancelledQuantity *ItemQuantity `json:"cancelledQuantity,omitempty"`

	// OrderedQuantity Details of quantity ordered.
	OrderedQuantity *ItemQuantity `json:"orderedQuantity,omitempty"`

	// UpdatedDate The date when the line item quantity was updated by buyer. Must be in ISO-8601 date/time format.
	UpdatedDate *time.Time `json:"updatedDate,omitempty"`
}

OrderedQuantityDetails Details of item quantity ordered

type Pagination

type Pagination struct {
	// NextToken A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more purchase order items to return.
	NextToken *string `json:"nextToken,omitempty"`
}

Pagination defines model for Pagination.

type PartyIdentification

type PartyIdentification struct {
	// Address Address of the party.
	Address *Address `json:"address,omitempty"`

	// PartyId Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details.
	PartyId string `json:"partyId"`

	// TaxInfo Tax registration details of the entity.
	TaxInfo *TaxRegistrationDetails `json:"taxInfo,omitempty"`
}

PartyIdentification defines model for PartyIdentification.

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 SubmitAcknowledgementJSONRequestBody

type SubmitAcknowledgementJSONRequestBody = SubmitAcknowledgementRequest

SubmitAcknowledgementJSONRequestBody defines body for SubmitAcknowledgement for application/json ContentType.

type SubmitAcknowledgementRequest

type SubmitAcknowledgementRequest struct {
	Acknowledgements *[]OrderAcknowledgement `json:"acknowledgements,omitempty"`
}

SubmitAcknowledgementRequest The request schema for the submitAcknowledgment operation.

type SubmitAcknowledgementResp

func ParseSubmitAcknowledgementResp

func ParseSubmitAcknowledgementResp(rsp *http.Response) (*SubmitAcknowledgementResp, error)

ParseSubmitAcknowledgementResp parses an HTTP response from a SubmitAcknowledgementWithResponse call

func (SubmitAcknowledgementResp) Status

func (r SubmitAcknowledgementResp) Status() string

Status returns HTTPResponse.Status

func (SubmitAcknowledgementResp) StatusCode

func (r SubmitAcknowledgementResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitAcknowledgementResponse

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

SubmitAcknowledgementResponse The response schema for the submitAcknowledgement operation

type TaxRegistrationDetails

type TaxRegistrationDetails struct {
	// TaxRegistrationNumber Tax registration number for the entity. For example, VAT ID.
	TaxRegistrationNumber string `json:"taxRegistrationNumber"`

	// TaxRegistrationType Tax registration type for the entity.
	TaxRegistrationType TaxRegistrationDetailsTaxRegistrationType `json:"taxRegistrationType"`
}

TaxRegistrationDetails Tax registration details of the entity.

type TaxRegistrationDetailsTaxRegistrationType

type TaxRegistrationDetailsTaxRegistrationType string

TaxRegistrationDetailsTaxRegistrationType Tax registration type for the entity.

Defines values for TaxRegistrationDetailsTaxRegistrationType.

type TransactionId

type TransactionId struct {
	// TransactionId GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
	TransactionId *string `json:"transactionId,omitempty"`
}

TransactionId defines model for TransactionId.

Jump to

Keyboard shortcuts

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