orders_v0_models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AddressAddressTypeResidential captures enum value "Residential"
	AddressAddressTypeResidential string = "Residential"

	// AddressAddressTypeCommercial captures enum value "Commercial"
	AddressAddressTypeCommercial string = "Commercial"
)
View Source
const (

	// BusinessHoursDayOfWeekSUN captures enum value "SUN"
	BusinessHoursDayOfWeekSUN string = "SUN"

	// BusinessHoursDayOfWeekMON captures enum value "MON"
	BusinessHoursDayOfWeekMON string = "MON"

	// BusinessHoursDayOfWeekTUE captures enum value "TUE"
	BusinessHoursDayOfWeekTUE string = "TUE"

	// BusinessHoursDayOfWeekWED captures enum value "WED"
	BusinessHoursDayOfWeekWED string = "WED"

	// BusinessHoursDayOfWeekTHU captures enum value "THU"
	BusinessHoursDayOfWeekTHU string = "THU"

	// BusinessHoursDayOfWeekFRI captures enum value "FRI"
	BusinessHoursDayOfWeekFRI string = "FRI"

	// BusinessHoursDayOfWeekSAT captures enum value "SAT"
	BusinessHoursDayOfWeekSAT string = "SAT"
)
View Source
const (

	// MeasurementUnitOUNCES captures enum value "OUNCES"
	MeasurementUnitOUNCES string = "OUNCES"

	// MeasurementUnitPOUNDS captures enum value "POUNDS"
	MeasurementUnitPOUNDS string = "POUNDS"

	// MeasurementUnitKILOGRAMS captures enum value "KILOGRAMS"
	MeasurementUnitKILOGRAMS string = "KILOGRAMS"

	// MeasurementUnitGRAMS captures enum value "GRAMS"
	MeasurementUnitGRAMS string = "GRAMS"

	// MeasurementUnitMILLIGRAMS captures enum value "MILLIGRAMS"
	MeasurementUnitMILLIGRAMS string = "MILLIGRAMS"

	// MeasurementUnitINCHES captures enum value "INCHES"
	MeasurementUnitINCHES string = "INCHES"

	// MeasurementUnitFEET captures enum value "FEET"
	MeasurementUnitFEET string = "FEET"

	// MeasurementUnitMETERS captures enum value "METERS"
	MeasurementUnitMETERS string = "METERS"

	// MeasurementUnitCENTIMETERS captures enum value "CENTIMETERS"
	MeasurementUnitCENTIMETERS string = "CENTIMETERS"

	// MeasurementUnitMILLIMETERS captures enum value "MILLIMETERS"
	MeasurementUnitMILLIMETERS string = "MILLIMETERS"

	// MeasurementUnitSQUAREMETERS captures enum value "SQUARE_METERS"
	MeasurementUnitSQUAREMETERS string = "SQUARE_METERS"

	// MeasurementUnitSQUARECENTIMETERS captures enum value "SQUARE_CENTIMETERS"
	MeasurementUnitSQUARECENTIMETERS string = "SQUARE_CENTIMETERS"

	// MeasurementUnitSQUAREFEET captures enum value "SQUARE_FEET"
	MeasurementUnitSQUAREFEET string = "SQUARE_FEET"

	// MeasurementUnitSQUAREINCHES captures enum value "SQUARE_INCHES"
	MeasurementUnitSQUAREINCHES string = "SQUARE_INCHES"

	// MeasurementUnitGALLONS captures enum value "GALLONS"
	MeasurementUnitGALLONS string = "GALLONS"

	// MeasurementUnitPINTS captures enum value "PINTS"
	MeasurementUnitPINTS string = "PINTS"

	// MeasurementUnitQUARTS captures enum value "QUARTS"
	MeasurementUnitQUARTS string = "QUARTS"

	// MeasurementUnitFLUIDOUNCES captures enum value "FLUID_OUNCES"
	MeasurementUnitFLUIDOUNCES string = "FLUID_OUNCES"

	// MeasurementUnitLITERS captures enum value "LITERS"
	MeasurementUnitLITERS string = "LITERS"

	// MeasurementUnitCUBICMETERS captures enum value "CUBIC_METERS"
	MeasurementUnitCUBICMETERS string = "CUBIC_METERS"

	// MeasurementUnitCUBICFEET captures enum value "CUBIC_FEET"
	MeasurementUnitCUBICFEET string = "CUBIC_FEET"

	// MeasurementUnitCUBICINCHES captures enum value "CUBIC_INCHES"
	MeasurementUnitCUBICINCHES string = "CUBIC_INCHES"

	// MeasurementUnitCUBICCENTIMETERS captures enum value "CUBIC_CENTIMETERS"
	MeasurementUnitCUBICCENTIMETERS string = "CUBIC_CENTIMETERS"

	// MeasurementUnitCOUNT captures enum value "COUNT"
	MeasurementUnitCOUNT string = "COUNT"
)
View Source
const (

	// OrderBuyerInvoicePreferenceINDIVIDUAL captures enum value "INDIVIDUAL"
	OrderBuyerInvoicePreferenceINDIVIDUAL string = "INDIVIDUAL"

	// OrderBuyerInvoicePreferenceBUSINESS captures enum value "BUSINESS"
	OrderBuyerInvoicePreferenceBUSINESS string = "BUSINESS"
)
View Source
const (

	// OrderFulfillmentChannelMFN captures enum value "MFN"
	OrderFulfillmentChannelMFN string = "MFN"

	// OrderFulfillmentChannelAFN captures enum value "AFN"
	OrderFulfillmentChannelAFN string = "AFN"
)
View Source
const (

	// OrderOrderStatusPending captures enum value "Pending"
	OrderOrderStatusPending string = "Pending"

	// OrderOrderStatusUnshipped captures enum value "Unshipped"
	OrderOrderStatusUnshipped string = "Unshipped"

	// OrderOrderStatusPartiallyShipped captures enum value "PartiallyShipped"
	OrderOrderStatusPartiallyShipped string = "PartiallyShipped"

	// OrderOrderStatusShipped captures enum value "Shipped"
	OrderOrderStatusShipped string = "Shipped"

	// OrderOrderStatusCanceled captures enum value "Canceled"
	OrderOrderStatusCanceled string = "Canceled"

	// OrderOrderStatusUnfulfillable captures enum value "Unfulfillable"
	OrderOrderStatusUnfulfillable string = "Unfulfillable"

	// OrderOrderStatusInvoiceUnconfirmed captures enum value "InvoiceUnconfirmed"
	OrderOrderStatusInvoiceUnconfirmed string = "InvoiceUnconfirmed"

	// OrderOrderStatusPendingAvailability captures enum value "PendingAvailability"
	OrderOrderStatusPendingAvailability string = "PendingAvailability"
)
View Source
const (

	// OrderOrderTypeStandardOrder captures enum value "StandardOrder"
	OrderOrderTypeStandardOrder string = "StandardOrder"

	// OrderOrderTypeLongLeadTimeOrder captures enum value "LongLeadTimeOrder"
	OrderOrderTypeLongLeadTimeOrder string = "LongLeadTimeOrder"

	// OrderOrderTypePreorder captures enum value "Preorder"
	OrderOrderTypePreorder string = "Preorder"

	// OrderOrderTypeBackOrder captures enum value "BackOrder"
	OrderOrderTypeBackOrder string = "BackOrder"

	// OrderOrderTypeSourcingOnDemandOrder captures enum value "SourcingOnDemandOrder"
	OrderOrderTypeSourcingOnDemandOrder string = "SourcingOnDemandOrder"
)
View Source
const (

	// OrderPaymentMethodCOD captures enum value "COD"
	OrderPaymentMethodCOD string = "COD"

	// OrderPaymentMethodCVS captures enum value "CVS"
	OrderPaymentMethodCVS string = "CVS"

	// OrderPaymentMethodOther captures enum value "Other"
	OrderPaymentMethodOther string = "Other"
)
View Source
const (

	// OrderItemDeemedResellerCategoryIOSS captures enum value "IOSS"
	OrderItemDeemedResellerCategoryIOSS string = "IOSS"

	// OrderItemDeemedResellerCategoryUOSS captures enum value "UOSS"
	OrderItemDeemedResellerCategoryUOSS string = "UOSS"
)
View Source
const (

	// RegulatedInformationFieldFieldTypeText captures enum value "Text"
	RegulatedInformationFieldFieldTypeText string = "Text"

	// RegulatedInformationFieldFieldTypeFileAttachment captures enum value "FileAttachment"
	RegulatedInformationFieldFieldTypeFileAttachment string = "FileAttachment"
)
View Source
const (

	// SubstitutionPreferencesSubstitutionTypeCUSTOMERPREFERENCE captures enum value "CUSTOMER_PREFERENCE"
	SubstitutionPreferencesSubstitutionTypeCUSTOMERPREFERENCE string = "CUSTOMER_PREFERENCE"

	// SubstitutionPreferencesSubstitutionTypeAMAZONRECOMMENDED captures enum value "AMAZON_RECOMMENDED"
	SubstitutionPreferencesSubstitutionTypeAMAZONRECOMMENDED string = "AMAZON_RECOMMENDED"

	// SubstitutionPreferencesSubstitutionTypeDONOTSUBSTITUTE captures enum value "DO_NOT_SUBSTITUTE"
	SubstitutionPreferencesSubstitutionTypeDONOTSUBSTITUTE string = "DO_NOT_SUBSTITUTE"
)
View Source
const (

	// ConfirmShipmentRequestCodCollectionMethodDirectPayment captures enum value "DirectPayment"
	ConfirmShipmentRequestCodCollectionMethodDirectPayment string = "DirectPayment"
)
View Source
const (

	// TaxCollectionModelMarketplaceFacilitator captures enum value "MarketplaceFacilitator"
	TaxCollectionModelMarketplaceFacilitator string = "MarketplaceFacilitator"
)
View Source
const (

	// TaxCollectionResponsiblePartyAmazonServicesIncDot captures enum value "Amazon Services, Inc."
	TaxCollectionResponsiblePartyAmazonServicesIncDot string = "Amazon Services, Inc."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {

	// The street address.
	AddressLine1 string `json:"AddressLine1,omitempty"`

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

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

	// The address type of the shipping address.
	// Enum: [Residential Commercial]
	AddressType string `json:"AddressType,omitempty"`

	// The city
	City string `json:"City,omitempty"`

	// The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
	CountryCode string `json:"CountryCode,omitempty"`

	// The county.
	County string `json:"County,omitempty"`

	// The district.
	District string `json:"District,omitempty"`

	// The municipality.
	Municipality string `json:"Municipality,omitempty"`

	// The name.
	// Required: true
	Name *string `json:"Name"`

	// The phone number. Not returned for Fulfillment by Amazon (FBA) orders.
	Phone string `json:"Phone,omitempty"`

	// The postal code.
	PostalCode string `json:"PostalCode,omitempty"`

	// The state or region.
	StateOrRegion string `json:"StateOrRegion,omitempty"`
}

Address The shipping address for the order.

swagger:model Address

func (*Address) ContextValidate

func (m *Address) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this address based on context it is used

func (*Address) MarshalBinary

func (m *Address) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Address) UnmarshalBinary

func (m *Address) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Address) Validate

func (m *Address) Validate(formats strfmt.Registry) error

Validate validates this address

type AssociatedItem added in v0.3.0

type AssociatedItem struct {

	// association type
	AssociationType AssociationType `json:"AssociationType,omitempty"`

	// The order item's order identifier, in 3-7-7 format.
	OrderID string `json:"OrderId,omitempty"`

	// An Amazon-defined item identifier for the associated item.
	OrderItemID string `json:"OrderItemId,omitempty"`
}

AssociatedItem An item associated with an order item. For example, a tire installation service purchased with tires.

swagger:model AssociatedItem

func (*AssociatedItem) ContextValidate added in v0.3.0

func (m *AssociatedItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this associated item based on the context it is used

func (*AssociatedItem) MarshalBinary added in v0.3.0

func (m *AssociatedItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssociatedItem) UnmarshalBinary added in v0.3.0

func (m *AssociatedItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssociatedItem) Validate added in v0.3.0

func (m *AssociatedItem) Validate(formats strfmt.Registry) error

Validate validates this associated item

type AssociationType added in v0.3.0

type AssociationType string

AssociationType The type of association an item has with an order item.

swagger:model AssociationType

const (

	// AssociationTypeVALUEADDSERVICE captures enum value "VALUE_ADD_SERVICE"
	AssociationTypeVALUEADDSERVICE AssociationType = "VALUE_ADD_SERVICE"
)

func NewAssociationType added in v0.3.0

func NewAssociationType(value AssociationType) *AssociationType

func (AssociationType) ContextValidate added in v0.3.0

func (m AssociationType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this association type based on context it is used

func (AssociationType) Pointer added in v0.3.0

func (m AssociationType) Pointer() *AssociationType

Pointer returns a pointer to a freshly-allocated AssociationType.

func (AssociationType) Validate added in v0.3.0

func (m AssociationType) Validate(formats strfmt.Registry) error

Validate validates this association type

type AutomatedShippingSettings

type AutomatedShippingSettings struct {

	// Auto-generated carrier for SSA orders.
	AutomatedCarrier string `json:"AutomatedCarrier,omitempty"`

	// Auto-generated ship method for SSA orders.
	AutomatedShipMethod string `json:"AutomatedShipMethod,omitempty"`

	// When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order.
	HasAutomatedShippingSettings bool `json:"HasAutomatedShippingSettings,omitempty"`
}

AutomatedShippingSettings Contains information regarding the Shipping Settings Automation program, such as whether the order's shipping settings were generated automatically, and what those settings are.

swagger:model AutomatedShippingSettings

func (*AutomatedShippingSettings) ContextValidate

func (m *AutomatedShippingSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this automated shipping settings based on context it is used

func (*AutomatedShippingSettings) MarshalBinary

func (m *AutomatedShippingSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AutomatedShippingSettings) UnmarshalBinary

func (m *AutomatedShippingSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AutomatedShippingSettings) Validate

func (m *AutomatedShippingSettings) Validate(formats strfmt.Registry) error

Validate validates this automated shipping settings

type BusinessHours

type BusinessHours struct {

	// Day of the week.
	// Enum: [SUN MON TUE WED THU FRI SAT]
	DayOfWeek string `json:"DayOfWeek,omitempty"`

	// Time window during the day when the business is open.
	OpenIntervals []*OpenInterval `json:"OpenIntervals"`
}

BusinessHours Business days and hours when the destination is open for deliveries.

swagger:model BusinessHours

func (*BusinessHours) ContextValidate

func (m *BusinessHours) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this business hours based on the context it is used

func (*BusinessHours) MarshalBinary

func (m *BusinessHours) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BusinessHours) UnmarshalBinary

func (m *BusinessHours) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BusinessHours) Validate

func (m *BusinessHours) Validate(formats strfmt.Registry) error

Validate validates this business hours

type BuyerCustomizedInfoDetail

type BuyerCustomizedInfoDetail struct {

	// The location of a zip file containing Amazon Custom data.
	CustomizedURL string `json:"CustomizedURL,omitempty"`
}

BuyerCustomizedInfoDetail Buyer information for custom orders from the Amazon Custom program.

swagger:model BuyerCustomizedInfoDetail

func (*BuyerCustomizedInfoDetail) ContextValidate

func (m *BuyerCustomizedInfoDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this buyer customized info detail based on context it is used

func (*BuyerCustomizedInfoDetail) MarshalBinary

func (m *BuyerCustomizedInfoDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuyerCustomizedInfoDetail) UnmarshalBinary

func (m *BuyerCustomizedInfoDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuyerCustomizedInfoDetail) Validate

func (m *BuyerCustomizedInfoDetail) Validate(formats strfmt.Registry) error

Validate validates this buyer customized info detail

type BuyerInfo

type BuyerInfo struct {

	// The county of the buyer.
	BuyerCounty string `json:"BuyerCounty,omitempty"`

	// The anonymized email address of the buyer.
	BuyerEmail string `json:"BuyerEmail,omitempty"`

	// The buyer name or the recipient name.
	BuyerName string `json:"BuyerName,omitempty"`

	// Tax information about the buyer.
	BuyerTaxInfo *BuyerTaxInfo `json:"BuyerTaxInfo,omitempty"`

	// The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout.
	PurchaseOrderNumber string `json:"PurchaseOrderNumber,omitempty"`
}

BuyerInfo Buyer information.

swagger:model BuyerInfo

func (*BuyerInfo) ContextValidate

func (m *BuyerInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this buyer info based on the context it is used

func (*BuyerInfo) MarshalBinary

func (m *BuyerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuyerInfo) UnmarshalBinary

func (m *BuyerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuyerInfo) Validate

func (m *BuyerInfo) Validate(formats strfmt.Registry) error

Validate validates this buyer info

type BuyerRequestedCancel

type BuyerRequestedCancel struct {

	// The reason that the buyer requested cancellation.
	BuyerCancelReason string `json:"BuyerCancelReason,omitempty"`

	// When true, the buyer has requested cancellation.
	IsBuyerRequestedCancel bool `json:"IsBuyerRequestedCancel,omitempty"`
}

BuyerRequestedCancel Information about whether or not a buyer requested cancellation.

swagger:model BuyerRequestedCancel

func (*BuyerRequestedCancel) ContextValidate

func (m *BuyerRequestedCancel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this buyer requested cancel based on context it is used

func (*BuyerRequestedCancel) MarshalBinary

func (m *BuyerRequestedCancel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuyerRequestedCancel) UnmarshalBinary

func (m *BuyerRequestedCancel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuyerRequestedCancel) Validate

func (m *BuyerRequestedCancel) Validate(formats strfmt.Registry) error

Validate validates this buyer requested cancel

type BuyerTaxInfo

type BuyerTaxInfo struct {

	// The legal name of the company.
	CompanyLegalName string `json:"CompanyLegalName,omitempty"`

	// A list of tax classifications that apply to the order.
	TaxClassifications []*TaxClassification `json:"TaxClassifications"`

	// The country or region imposing the tax.
	TaxingRegion string `json:"TaxingRegion,omitempty"`
}

BuyerTaxInfo Tax information about the buyer.

swagger:model BuyerTaxInfo

func (*BuyerTaxInfo) ContextValidate

func (m *BuyerTaxInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this buyer tax info based on the context it is used

func (*BuyerTaxInfo) MarshalBinary

func (m *BuyerTaxInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuyerTaxInfo) UnmarshalBinary

func (m *BuyerTaxInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuyerTaxInfo) Validate

func (m *BuyerTaxInfo) Validate(formats strfmt.Registry) error

Validate validates this buyer tax info

type BuyerTaxInformation

type BuyerTaxInformation struct {

	// Business buyer's address.
	BuyerBusinessAddress string `json:"BuyerBusinessAddress,omitempty"`

	// Business buyer's company legal name.
	BuyerLegalCompanyName string `json:"BuyerLegalCompanyName,omitempty"`

	// Business buyer's tax office.
	BuyerTaxOffice string `json:"BuyerTaxOffice,omitempty"`

	// Business buyer's tax registration ID.
	BuyerTaxRegistrationID string `json:"BuyerTaxRegistrationId,omitempty"`
}

BuyerTaxInformation Contains the business invoice tax information. Available only in the TR marketplace.

swagger:model BuyerTaxInformation

func (*BuyerTaxInformation) ContextValidate

func (m *BuyerTaxInformation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this buyer tax information based on context it is used

func (*BuyerTaxInformation) MarshalBinary

func (m *BuyerTaxInformation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuyerTaxInformation) UnmarshalBinary

func (m *BuyerTaxInformation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuyerTaxInformation) Validate

func (m *BuyerTaxInformation) Validate(formats strfmt.Registry) error

Validate validates this buyer tax information

type ConfirmShipmentErrorResponse

type ConfirmShipmentErrorResponse struct {

	// One or more unexpected errors occurred during the confirmShipment operation.
	Errors ErrorList `json:"errors,omitempty"`
}

ConfirmShipmentErrorResponse The error response schema for an shipment confirmation.

swagger:model ConfirmShipmentErrorResponse

func (*ConfirmShipmentErrorResponse) ContextValidate

func (m *ConfirmShipmentErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this confirm shipment error response based on the context it is used

func (*ConfirmShipmentErrorResponse) MarshalBinary

func (m *ConfirmShipmentErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfirmShipmentErrorResponse) UnmarshalBinary

func (m *ConfirmShipmentErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfirmShipmentErrorResponse) Validate

func (m *ConfirmShipmentErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this confirm shipment error response

type ConfirmShipmentOrderItem

type ConfirmShipmentOrderItem struct {

	// The unique identifier of the order item.
	// Required: true
	OrderItemID *string `json:"orderItemId"`

	// The quantity of the item.
	// Required: true
	Quantity *int64 `json:"quantity"`

	// The list of transparency codes.
	TransparencyCodes TransparencyCodeList `json:"transparencyCodes,omitempty"`
}

ConfirmShipmentOrderItem A single order item.

swagger:model ConfirmShipmentOrderItem

func (*ConfirmShipmentOrderItem) ContextValidate

func (m *ConfirmShipmentOrderItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this confirm shipment order item based on the context it is used

func (*ConfirmShipmentOrderItem) MarshalBinary

func (m *ConfirmShipmentOrderItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfirmShipmentOrderItem) UnmarshalBinary

func (m *ConfirmShipmentOrderItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfirmShipmentOrderItem) Validate

func (m *ConfirmShipmentOrderItem) Validate(formats strfmt.Registry) error

Validate validates this confirm shipment order item

type ConfirmShipmentOrderItemsList

type ConfirmShipmentOrderItemsList []*ConfirmShipmentOrderItem

ConfirmShipmentOrderItemsList A list of order items.

swagger:model ConfirmShipmentOrderItemsList

func (ConfirmShipmentOrderItemsList) ContextValidate

func (m ConfirmShipmentOrderItemsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this confirm shipment order items list based on the context it is used

func (ConfirmShipmentOrderItemsList) Validate

func (m ConfirmShipmentOrderItemsList) Validate(formats strfmt.Registry) error

Validate validates this confirm shipment order items list

type ConfirmShipmentRequest

type ConfirmShipmentRequest struct {

	// The cod collection method, support in JP only.
	// Enum: [DirectPayment]
	CodCollectionMethod string `json:"codCollectionMethod,omitempty"`

	// marketplace Id
	// Required: true
	MarketplaceID *MarketplaceID `json:"marketplaceId"`

	// package detail
	// Required: true
	PackageDetail *PackageDetail `json:"packageDetail"`
}

ConfirmShipmentRequest The request schema for an shipment confirmation.

swagger:model ConfirmShipmentRequest

func (*ConfirmShipmentRequest) ContextValidate

func (m *ConfirmShipmentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this confirm shipment request based on the context it is used

func (*ConfirmShipmentRequest) MarshalBinary

func (m *ConfirmShipmentRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfirmShipmentRequest) UnmarshalBinary

func (m *ConfirmShipmentRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfirmShipmentRequest) Validate

func (m *ConfirmShipmentRequest) Validate(formats strfmt.Registry) error

Validate validates this confirm shipment request

type DeliveryPreferences

type DeliveryPreferences struct {

	// Building instructions, nearby landmark or navigation instructions.
	AddressInstructions string `json:"AddressInstructions,omitempty"`

	// Drop-off location selected by the customer.
	DropOffLocation string `json:"DropOffLocation,omitempty"`

	// Enumerated list of miscellaneous delivery attributes associated with the shipping address.
	OtherAttributes []OtherDeliveryAttributes `json:"OtherAttributes"`

	// Business hours and days when the delivery is preferred.
	PreferredDeliveryTime *PreferredDeliveryTime `json:"PreferredDeliveryTime,omitempty"`
}

DeliveryPreferences Contains all of the delivery instructions provided by the customer for the shipping address.

swagger:model DeliveryPreferences

func (*DeliveryPreferences) ContextValidate

func (m *DeliveryPreferences) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this delivery preferences based on the context it is used

func (*DeliveryPreferences) MarshalBinary

func (m *DeliveryPreferences) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeliveryPreferences) UnmarshalBinary

func (m *DeliveryPreferences) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeliveryPreferences) Validate

func (m *DeliveryPreferences) Validate(formats strfmt.Registry) error

Validate validates this delivery preferences

type EasyShipShipmentStatus

type EasyShipShipmentStatus string

EasyShipShipmentStatus The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders.

swagger:model EasyShipShipmentStatus

const (

	// EasyShipShipmentStatusPendingSchedule captures enum value "PendingSchedule"
	EasyShipShipmentStatusPendingSchedule EasyShipShipmentStatus = "PendingSchedule"

	// EasyShipShipmentStatusPendingPickUp captures enum value "PendingPickUp"
	EasyShipShipmentStatusPendingPickUp EasyShipShipmentStatus = "PendingPickUp"

	// EasyShipShipmentStatusPendingDropOff captures enum value "PendingDropOff"
	EasyShipShipmentStatusPendingDropOff EasyShipShipmentStatus = "PendingDropOff"

	// EasyShipShipmentStatusLabelCanceled captures enum value "LabelCanceled"
	EasyShipShipmentStatusLabelCanceled EasyShipShipmentStatus = "LabelCanceled"

	// EasyShipShipmentStatusPickedUp captures enum value "PickedUp"
	EasyShipShipmentStatusPickedUp EasyShipShipmentStatus = "PickedUp"

	// EasyShipShipmentStatusDroppedOff captures enum value "DroppedOff"
	EasyShipShipmentStatusDroppedOff EasyShipShipmentStatus = "DroppedOff"

	// EasyShipShipmentStatusAtOriginFC captures enum value "AtOriginFC"
	EasyShipShipmentStatusAtOriginFC EasyShipShipmentStatus = "AtOriginFC"

	// EasyShipShipmentStatusAtDestinationFC captures enum value "AtDestinationFC"
	EasyShipShipmentStatusAtDestinationFC EasyShipShipmentStatus = "AtDestinationFC"

	// EasyShipShipmentStatusDelivered captures enum value "Delivered"
	EasyShipShipmentStatusDelivered EasyShipShipmentStatus = "Delivered"

	// EasyShipShipmentStatusRejectedByBuyer captures enum value "RejectedByBuyer"
	EasyShipShipmentStatusRejectedByBuyer EasyShipShipmentStatus = "RejectedByBuyer"

	// EasyShipShipmentStatusUndeliverable captures enum value "Undeliverable"
	EasyShipShipmentStatusUndeliverable EasyShipShipmentStatus = "Undeliverable"

	// EasyShipShipmentStatusReturningToSeller captures enum value "ReturningToSeller"
	EasyShipShipmentStatusReturningToSeller EasyShipShipmentStatus = "ReturningToSeller"

	// EasyShipShipmentStatusReturnedToSeller captures enum value "ReturnedToSeller"
	EasyShipShipmentStatusReturnedToSeller EasyShipShipmentStatus = "ReturnedToSeller"

	// EasyShipShipmentStatusLost captures enum value "Lost"
	EasyShipShipmentStatusLost EasyShipShipmentStatus = "Lost"

	// EasyShipShipmentStatusOutForDelivery captures enum value "OutForDelivery"
	EasyShipShipmentStatusOutForDelivery EasyShipShipmentStatus = "OutForDelivery"

	// EasyShipShipmentStatusDamaged captures enum value "Damaged"
	EasyShipShipmentStatusDamaged EasyShipShipmentStatus = "Damaged"
)

func NewEasyShipShipmentStatus

func NewEasyShipShipmentStatus(value EasyShipShipmentStatus) *EasyShipShipmentStatus

func (EasyShipShipmentStatus) ContextValidate

func (m EasyShipShipmentStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this easy ship shipment status based on context it is used

func (EasyShipShipmentStatus) Pointer

Pointer returns a pointer to a freshly-allocated EasyShipShipmentStatus.

func (EasyShipShipmentStatus) Validate

func (m EasyShipShipmentStatus) Validate(formats strfmt.Registry) error

Validate validates this easy ship shipment status

type ElectronicInvoiceStatus

type ElectronicInvoiceStatus string

ElectronicInvoiceStatus The status of the electronic invoice.

swagger:model ElectronicInvoiceStatus

const (

	// ElectronicInvoiceStatusNotRequired captures enum value "NotRequired"
	ElectronicInvoiceStatusNotRequired ElectronicInvoiceStatus = "NotRequired"

	// ElectronicInvoiceStatusNotFound captures enum value "NotFound"
	ElectronicInvoiceStatusNotFound ElectronicInvoiceStatus = "NotFound"

	// ElectronicInvoiceStatusProcessing captures enum value "Processing"
	ElectronicInvoiceStatusProcessing ElectronicInvoiceStatus = "Processing"

	// ElectronicInvoiceStatusErrored captures enum value "Errored"
	ElectronicInvoiceStatusErrored ElectronicInvoiceStatus = "Errored"

	// ElectronicInvoiceStatusAccepted captures enum value "Accepted"
	ElectronicInvoiceStatusAccepted ElectronicInvoiceStatus = "Accepted"
)

func NewElectronicInvoiceStatus

func NewElectronicInvoiceStatus(value ElectronicInvoiceStatus) *ElectronicInvoiceStatus

func (ElectronicInvoiceStatus) ContextValidate

func (m ElectronicInvoiceStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this electronic invoice status based on context it is used

func (ElectronicInvoiceStatus) Pointer

Pointer returns a pointer to a freshly-allocated ElectronicInvoiceStatus.

func (ElectronicInvoiceStatus) Validate

func (m ElectronicInvoiceStatus) Validate(formats strfmt.Registry) error

Validate validates this electronic invoice status

type Error

type Error struct {

	// An error code that identifies the type of error that occurred.
	// Required: true
	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.
	// Required: true
	Message *string `json:"message"`
}

Error Error response returned when the request is unsuccessful.

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorList

type ErrorList []*Error

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

swagger:model ErrorList

func (ErrorList) ContextValidate

func (m ErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error list based on the context it is used

func (ErrorList) Validate

func (m ErrorList) Validate(formats strfmt.Registry) error

Validate validates this error list

type ExceptionDates

type ExceptionDates struct {

	// Date when the business is closed, in ISO-8601 date format.
	ExceptionDate string `json:"ExceptionDate,omitempty"`

	// Boolean indicating if the business is closed or open on that date.
	IsOpen bool `json:"IsOpen,omitempty"`

	// Time window during the day when the business is open.
	OpenIntervals []*OpenInterval `json:"OpenIntervals"`
}

ExceptionDates Dates when the business is closed or open with a different time window.

swagger:model ExceptionDates

func (*ExceptionDates) ContextValidate

func (m *ExceptionDates) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this exception dates based on the context it is used

func (*ExceptionDates) MarshalBinary

func (m *ExceptionDates) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExceptionDates) UnmarshalBinary

func (m *ExceptionDates) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExceptionDates) Validate

func (m *ExceptionDates) Validate(formats strfmt.Registry) error

Validate validates this exception dates

type FulfillmentInstruction

type FulfillmentInstruction struct {

	// Denotes the recommended sourceId where the order should be fulfilled from.
	FulfillmentSupplySourceID string `json:"FulfillmentSupplySourceId,omitempty"`
}

FulfillmentInstruction Contains the instructions about the fulfillment like where should it be fulfilled from.

swagger:model FulfillmentInstruction

func (*FulfillmentInstruction) ContextValidate

func (m *FulfillmentInstruction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this fulfillment instruction based on context it is used

func (*FulfillmentInstruction) MarshalBinary

func (m *FulfillmentInstruction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FulfillmentInstruction) UnmarshalBinary

func (m *FulfillmentInstruction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FulfillmentInstruction) Validate

func (m *FulfillmentInstruction) Validate(formats strfmt.Registry) error

Validate validates this fulfillment instruction

type GetOrderAddressResponse

type GetOrderAddressResponse struct {

	// One or more unexpected errors occurred during the getOrderAddress operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrderAddress operations.
	Payload *OrderAddress `json:"payload,omitempty"`
}

GetOrderAddressResponse The response schema for the getOrderAddress operation.

swagger:model GetOrderAddressResponse

func (*GetOrderAddressResponse) ContextValidate

func (m *GetOrderAddressResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order address response based on the context it is used

func (*GetOrderAddressResponse) MarshalBinary

func (m *GetOrderAddressResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderAddressResponse) UnmarshalBinary

func (m *GetOrderAddressResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderAddressResponse) Validate

func (m *GetOrderAddressResponse) Validate(formats strfmt.Registry) error

Validate validates this get order address response

type GetOrderBuyerInfoResponse

type GetOrderBuyerInfoResponse struct {

	// One or more unexpected errors occurred during the getOrderBuyerInfo operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrderBuyerInfo operation.
	Payload *OrderBuyerInfo `json:"payload,omitempty"`
}

GetOrderBuyerInfoResponse The response schema for the getOrderBuyerInfo operation.

swagger:model GetOrderBuyerInfoResponse

func (*GetOrderBuyerInfoResponse) ContextValidate

func (m *GetOrderBuyerInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order buyer info response based on the context it is used

func (*GetOrderBuyerInfoResponse) MarshalBinary

func (m *GetOrderBuyerInfoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderBuyerInfoResponse) UnmarshalBinary

func (m *GetOrderBuyerInfoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderBuyerInfoResponse) Validate

func (m *GetOrderBuyerInfoResponse) Validate(formats strfmt.Registry) error

Validate validates this get order buyer info response

type GetOrderItemsBuyerInfoResponse

type GetOrderItemsBuyerInfoResponse struct {

	// One or more unexpected errors occurred during the getOrderItemsBuyerInfo operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrderItemsBuyerInfo operation.
	Payload *OrderItemsBuyerInfoList `json:"payload,omitempty"`
}

GetOrderItemsBuyerInfoResponse The response schema for the getOrderItemsBuyerInfo operation.

swagger:model GetOrderItemsBuyerInfoResponse

func (*GetOrderItemsBuyerInfoResponse) ContextValidate

func (m *GetOrderItemsBuyerInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order items buyer info response based on the context it is used

func (*GetOrderItemsBuyerInfoResponse) MarshalBinary

func (m *GetOrderItemsBuyerInfoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderItemsBuyerInfoResponse) UnmarshalBinary

func (m *GetOrderItemsBuyerInfoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderItemsBuyerInfoResponse) Validate

func (m *GetOrderItemsBuyerInfoResponse) Validate(formats strfmt.Registry) error

Validate validates this get order items buyer info response

type GetOrderItemsResponse

type GetOrderItemsResponse struct {

	// One or more unexpected errors occurred during the getOrderItems operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrderItems operation.
	Payload *OrderItemsList `json:"payload,omitempty"`
}

GetOrderItemsResponse The response schema for the getOrderItems operation.

swagger:model GetOrderItemsResponse

func (*GetOrderItemsResponse) ContextValidate

func (m *GetOrderItemsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order items response based on the context it is used

func (*GetOrderItemsResponse) MarshalBinary

func (m *GetOrderItemsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderItemsResponse) UnmarshalBinary

func (m *GetOrderItemsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderItemsResponse) Validate

func (m *GetOrderItemsResponse) Validate(formats strfmt.Registry) error

Validate validates this get order items response

type GetOrderRegulatedInfoResponse

type GetOrderRegulatedInfoResponse struct {

	// One or more unexpected errors occurred during the getOrderRegulatedInfo operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrderRegulatedInfo operation.
	Payload *OrderRegulatedInfo `json:"payload,omitempty"`
}

GetOrderRegulatedInfoResponse The response schema for the getOrderRegulatedInfo operation.

swagger:model GetOrderRegulatedInfoResponse

func (*GetOrderRegulatedInfoResponse) ContextValidate

func (m *GetOrderRegulatedInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order regulated info response based on the context it is used

func (*GetOrderRegulatedInfoResponse) MarshalBinary

func (m *GetOrderRegulatedInfoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderRegulatedInfoResponse) UnmarshalBinary

func (m *GetOrderRegulatedInfoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderRegulatedInfoResponse) Validate

func (m *GetOrderRegulatedInfoResponse) Validate(formats strfmt.Registry) error

Validate validates this get order regulated info response

type GetOrderResponse

type GetOrderResponse struct {

	// One or more unexpected errors occurred during the getOrder operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrder operation.
	Payload *Order `json:"payload,omitempty"`
}

GetOrderResponse The response schema for the getOrder operation.

swagger:model GetOrderResponse

func (*GetOrderResponse) ContextValidate

func (m *GetOrderResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get order response based on the context it is used

func (*GetOrderResponse) MarshalBinary

func (m *GetOrderResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrderResponse) UnmarshalBinary

func (m *GetOrderResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrderResponse) Validate

func (m *GetOrderResponse) Validate(formats strfmt.Registry) error

Validate validates this get order response

type GetOrdersResponse

type GetOrdersResponse struct {

	// One or more unexpected errors occurred during the getOrders operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getOrders operation.
	Payload *OrdersList `json:"payload,omitempty"`
}

GetOrdersResponse The response schema for the getOrders operation.

swagger:model GetOrdersResponse

func (*GetOrdersResponse) ContextValidate

func (m *GetOrdersResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get orders response based on the context it is used

func (*GetOrdersResponse) MarshalBinary

func (m *GetOrdersResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrdersResponse) UnmarshalBinary

func (m *GetOrdersResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrdersResponse) Validate

func (m *GetOrdersResponse) Validate(formats strfmt.Registry) error

Validate validates this get orders response

type ItemBuyerInfo

type ItemBuyerInfo struct {

	// Buyer information for custom orders from the Amazon Custom program.
	BuyerCustomizedInfo *BuyerCustomizedInfoDetail `json:"BuyerCustomizedInfo,omitempty"`

	// A gift message provided by the buyer.
	GiftMessageText string `json:"GiftMessageText,omitempty"`

	// The gift wrap level specified by the buyer.
	GiftWrapLevel string `json:"GiftWrapLevel,omitempty"`

	// The gift wrap price of the item.
	GiftWrapPrice *Money `json:"GiftWrapPrice,omitempty"`

	// The tax on the gift wrap price.
	GiftWrapTax *Money `json:"GiftWrapTax,omitempty"`
}

ItemBuyerInfo A single item's buyer information.

swagger:model ItemBuyerInfo

func (*ItemBuyerInfo) ContextValidate

func (m *ItemBuyerInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this item buyer info based on the context it is used

func (*ItemBuyerInfo) MarshalBinary

func (m *ItemBuyerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ItemBuyerInfo) UnmarshalBinary

func (m *ItemBuyerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ItemBuyerInfo) Validate

func (m *ItemBuyerInfo) Validate(formats strfmt.Registry) error

Validate validates this item buyer info

type MarketplaceID

type MarketplaceID string

MarketplaceID The unobfuscated marketplace identifier.

swagger:model MarketplaceId

func (MarketplaceID) ContextValidate

func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this marketplace Id based on context it is used

func (MarketplaceID) Validate

func (m MarketplaceID) Validate(formats strfmt.Registry) error

Validate validates this marketplace Id

type MarketplaceTaxInfo

type MarketplaceTaxInfo struct {

	// A list of tax classifications that apply to the order.
	TaxClassifications []*TaxClassification `json:"TaxClassifications"`
}

MarketplaceTaxInfo Tax information about the marketplace.

swagger:model MarketplaceTaxInfo

func (*MarketplaceTaxInfo) ContextValidate

func (m *MarketplaceTaxInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this marketplace tax info based on the context it is used

func (*MarketplaceTaxInfo) MarshalBinary

func (m *MarketplaceTaxInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MarketplaceTaxInfo) UnmarshalBinary

func (m *MarketplaceTaxInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MarketplaceTaxInfo) Validate

func (m *MarketplaceTaxInfo) Validate(formats strfmt.Registry) error

Validate validates this marketplace tax info

type Measurement added in v0.3.0

type Measurement struct {

	// The unit of measure for this measurement.
	// Required: true
	// Enum: [OUNCES POUNDS KILOGRAMS GRAMS MILLIGRAMS INCHES FEET METERS CENTIMETERS MILLIMETERS SQUARE_METERS SQUARE_CENTIMETERS SQUARE_FEET SQUARE_INCHES GALLONS PINTS QUARTS FLUID_OUNCES LITERS CUBIC_METERS CUBIC_FEET CUBIC_INCHES CUBIC_CENTIMETERS COUNT]
	Unit *string `json:"Unit"`

	// The value of the measurement.
	// Required: true
	Value *float64 `json:"Value"`
}

Measurement measurement

swagger:model Measurement

func (*Measurement) ContextValidate added in v0.3.0

func (m *Measurement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this measurement based on context it is used

func (*Measurement) MarshalBinary added in v0.3.0

func (m *Measurement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Measurement) UnmarshalBinary added in v0.3.0

func (m *Measurement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Measurement) Validate added in v0.3.0

func (m *Measurement) Validate(formats strfmt.Registry) error

Validate validates this measurement

type Money

type Money struct {

	// The currency amount.
	Amount string `json:"Amount,omitempty"`

	// The three-digit currency code. In ISO 4217 format.
	CurrencyCode string `json:"CurrencyCode,omitempty"`
}

Money The monetary value of the order.

swagger:model Money

func (*Money) ContextValidate

func (m *Money) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this money based on context it is used

func (*Money) MarshalBinary

func (m *Money) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Money) UnmarshalBinary

func (m *Money) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Money) Validate

func (m *Money) Validate(formats strfmt.Registry) error

Validate validates this money

type OpenInterval

type OpenInterval struct {

	// The time when the business closes.
	EndTime *OpenTimeInterval `json:"EndTime,omitempty"`

	// The time when the business opens.
	StartTime *OpenTimeInterval `json:"StartTime,omitempty"`
}

OpenInterval The time interval for which the business is open.

swagger:model OpenInterval

func (*OpenInterval) ContextValidate

func (m *OpenInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this open interval based on the context it is used

func (*OpenInterval) MarshalBinary

func (m *OpenInterval) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenInterval) UnmarshalBinary

func (m *OpenInterval) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenInterval) Validate

func (m *OpenInterval) Validate(formats strfmt.Registry) error

Validate validates this open interval

type OpenTimeInterval

type OpenTimeInterval struct {

	// The hour when the business opens or closes.
	Hour int64 `json:"Hour,omitempty"`

	// The minute when the business opens or closes.
	Minute int64 `json:"Minute,omitempty"`
}

OpenTimeInterval The time when the business opens or closes.

swagger:model OpenTimeInterval

func (*OpenTimeInterval) ContextValidate

func (m *OpenTimeInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this open time interval based on context it is used

func (*OpenTimeInterval) MarshalBinary

func (m *OpenTimeInterval) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenTimeInterval) UnmarshalBinary

func (m *OpenTimeInterval) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenTimeInterval) Validate

func (m *OpenTimeInterval) Validate(formats strfmt.Registry) error

Validate validates this open time interval

type Order

type Order struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// Contains information regarding the Shipping Settings Automaton program, such as whether the order's shipping settings were generated automatically, and what those settings are.
	AutomatedShippingSettings *AutomatedShippingSettings `json:"AutomatedShippingSettings,omitempty"`

	// buyer info
	BuyerInfo *BuyerInfo `json:"BuyerInfo,omitempty"`

	// The buyer's invoicing preference. Available only in the TR marketplace.
	// Enum: [INDIVIDUAL BUSINESS]
	BuyerInvoicePreference string `json:"BuyerInvoicePreference,omitempty"`

	// Contains the business invoice tax information.
	BuyerTaxInformation *BuyerTaxInformation `json:"BuyerTaxInformation,omitempty"`

	// Custom ship label for Checkout by Amazon (CBA).
	CbaDisplayableShippingLabel string `json:"CbaDisplayableShippingLabel,omitempty"`

	// The recommended location for the seller to ship the items from. It is calculated at checkout. The seller may or may not choose to ship from this location.
	DefaultShipFromLocationAddress *Address `json:"DefaultShipFromLocationAddress,omitempty"`

	// The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.
	EarliestDeliveryDate string `json:"EarliestDeliveryDate,omitempty"`

	// The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.
	//
	// __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013.
	EarliestShipDate string `json:"EarliestShipDate,omitempty"`

	// The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders.
	EasyShipShipmentStatus EasyShipShipmentStatus `json:"EasyShipShipmentStatus,omitempty"`

	// The status of the electronic invoice.
	ElectronicInvoiceStatus ElectronicInvoiceStatus `json:"ElectronicInvoiceStatus,omitempty"`

	// Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN).
	// Enum: [MFN AFN]
	FulfillmentChannel string `json:"FulfillmentChannel,omitempty"`

	// Contains the instructions about the fulfillment like where should it be fulfilled from.
	FulfillmentInstruction *FulfillmentInstruction `json:"FulfillmentInstruction,omitempty"`

	// Whether the order contains regulated items which may require additional approval steps before being fulfilled.
	HasRegulatedItems bool `json:"HasRegulatedItems,omitempty"`

	// When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers.
	IsAccessPointOrder bool `json:"IsAccessPointOrder,omitempty"`

	// When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer.
	IsBusinessOrder bool `json:"IsBusinessOrder,omitempty"`

	// When true, the estimated ship date is set for the order. Returned only for Sourcing on Demand orders.
	IsEstimatedShipDateSet bool `json:"IsEstimatedShipDateSet,omitempty"`

	// When true, the order is a GlobalExpress order.
	IsGlobalExpressEnabled bool `json:"IsGlobalExpressEnabled,omitempty"`

	// When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.
	IsIBA bool `json:"IsIBA,omitempty"`

	// When true, this order is marked to be picked up from a store rather than delivered.
	IsISPU bool `json:"IsISPU,omitempty"`

	// When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, see "Premium Shipping Options" in the Seller Central Help for your marketplace.
	IsPremiumOrder bool `json:"IsPremiumOrder,omitempty"`

	// When true, the order is a seller-fulfilled Amazon Prime order.
	IsPrime bool `json:"IsPrime,omitempty"`

	// When true, this is a replacement order.
	IsReplacementOrder bool `json:"IsReplacementOrder,omitempty"`

	// When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.
	IsSoldByAB bool `json:"IsSoldByAB,omitempty"`

	// The date when the order was last updated.
	//
	// __Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01.
	// Required: true
	LastUpdateDate *string `json:"LastUpdateDate"`

	// The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status.
	LatestDeliveryDate string `json:"LatestDeliveryDate,omitempty"`

	// The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.
	//
	// __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013.
	LatestShipDate string `json:"LatestShipDate,omitempty"`

	// The identifier for the marketplace where the order was placed.
	MarketplaceID string `json:"MarketplaceId,omitempty"`

	// Tax information about the marketplace.
	MarketplaceTaxInfo *MarketplaceTaxInfo `json:"MarketplaceTaxInfo,omitempty"`

	// The number of items shipped.
	NumberOfItemsShipped int64 `json:"NumberOfItemsShipped,omitempty"`

	// The number of items unshipped.
	NumberOfItemsUnshipped int64 `json:"NumberOfItemsUnshipped,omitempty"`

	// The order channel of the first item in the order.
	OrderChannel string `json:"OrderChannel,omitempty"`

	// The current order status.
	// Required: true
	// Enum: [Pending Unshipped PartiallyShipped Shipped Canceled Unfulfillable InvoiceUnconfirmed PendingAvailability]
	OrderStatus *string `json:"OrderStatus"`

	// The total charge for this order.
	OrderTotal *Money `json:"OrderTotal,omitempty"`

	// The type of the order.
	// Enum: [StandardOrder LongLeadTimeOrder Preorder BackOrder SourcingOnDemandOrder]
	OrderType string `json:"OrderType,omitempty"`

	// Information about sub-payment methods for a Cash On Delivery (COD) order.
	//
	// __Note__: For a COD order that is paid for using one sub-payment method, one PaymentExecutionDetailItem object is returned, with PaymentExecutionDetailItem/PaymentMethod = COD. For a COD order that is paid for using multiple sub-payment methods, two or more PaymentExecutionDetailItem objects are returned.
	PaymentExecutionDetail PaymentExecutionDetailItemList `json:"PaymentExecutionDetail,omitempty"`

	// The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information.
	// Enum: [COD CVS Other]
	PaymentMethod string `json:"PaymentMethod,omitempty"`

	// A list of payment methods for the order.
	PaymentMethodDetails PaymentMethodDetailItemList `json:"PaymentMethodDetails,omitempty"`

	// Indicates the date by which the seller must respond to the buyer with an estimated ship date. Returned only for Sourcing on Demand orders.
	PromiseResponseDueDate string `json:"PromiseResponseDueDate,omitempty"`

	// The date when the order was created.
	// Required: true
	PurchaseDate *string `json:"PurchaseDate"`

	// The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true.
	ReplacedOrderID string `json:"ReplacedOrderId,omitempty"`

	// The sales channel of the first item in the order.
	SalesChannel string `json:"SalesChannel,omitempty"`

	// The seller’s friendly name registered in the marketplace.
	SellerDisplayName string `json:"SellerDisplayName,omitempty"`

	// A seller-defined order identifier.
	SellerOrderID string `json:"SellerOrderId,omitempty"`

	// The shipment service level of the order.
	ShipServiceLevel string `json:"ShipServiceLevel,omitempty"`

	// The shipment service level category of the order.
	//
	// Possible values: Expedited, FreeEconomy, NextDay, Priority, SameDay, SecondDay, Scheduled, Standard.
	ShipmentServiceLevelCategory string `json:"ShipmentServiceLevelCategory,omitempty"`

	// shipping address
	ShippingAddress *Address `json:"ShippingAddress,omitempty"`
}

Order Order information.

swagger:model Order

func (*Order) ContextValidate

func (m *Order) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order based on the context it is used

func (*Order) MarshalBinary

func (m *Order) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Order) UnmarshalBinary

func (m *Order) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Order) Validate

func (m *Order) Validate(formats strfmt.Registry) error

Validate validates this order

type OrderAddress

type OrderAddress struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// Company Name of the Buyer.
	BuyerCompanyName string `json:"BuyerCompanyName,omitempty"`

	// delivery preferences
	DeliveryPreferences *DeliveryPreferences `json:"DeliveryPreferences,omitempty"`

	// shipping address
	ShippingAddress *Address `json:"ShippingAddress,omitempty"`
}

OrderAddress The shipping address for the order.

swagger:model OrderAddress

func (*OrderAddress) ContextValidate

func (m *OrderAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order address based on the context it is used

func (*OrderAddress) MarshalBinary

func (m *OrderAddress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderAddress) UnmarshalBinary

func (m *OrderAddress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderAddress) Validate

func (m *OrderAddress) Validate(formats strfmt.Registry) error

Validate validates this order address

type OrderBuyerInfo

type OrderBuyerInfo struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// The county of the buyer.
	BuyerCounty string `json:"BuyerCounty,omitempty"`

	// The anonymized email address of the buyer.
	BuyerEmail string `json:"BuyerEmail,omitempty"`

	// The buyer name or the recipient name.
	BuyerName string `json:"BuyerName,omitempty"`

	// Tax information about the buyer.
	BuyerTaxInfo *BuyerTaxInfo `json:"BuyerTaxInfo,omitempty"`

	// The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout.
	PurchaseOrderNumber string `json:"PurchaseOrderNumber,omitempty"`
}

OrderBuyerInfo Buyer information for an order.

swagger:model OrderBuyerInfo

func (*OrderBuyerInfo) ContextValidate

func (m *OrderBuyerInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order buyer info based on the context it is used

func (*OrderBuyerInfo) MarshalBinary

func (m *OrderBuyerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderBuyerInfo) UnmarshalBinary

func (m *OrderBuyerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderBuyerInfo) Validate

func (m *OrderBuyerInfo) Validate(formats strfmt.Registry) error

Validate validates this order buyer info

type OrderItem

type OrderItem struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	// Required: true
	ASIN *string `json:"ASIN"`

	// A list of associated items that a customer has purchased with a product. For example, a tire installation service purchased with tires.
	AssociatedItems []*AssociatedItem `json:"AssociatedItems"`

	// buyer info
	BuyerInfo *ItemBuyerInfo `json:"BuyerInfo,omitempty"`

	// Information about whether or not a buyer requested cancellation.
	BuyerRequestedCancel *BuyerRequestedCancel `json:"BuyerRequestedCancel,omitempty"`

	// The fee charged for COD service.
	CODFee *Money `json:"CODFee,omitempty"`

	// The discount on the COD fee.
	CODFeeDiscount *Money `json:"CODFeeDiscount,omitempty"`

	// The condition of the item.
	//
	// Possible values: New, Used, Collectible, Refurbished, Preorder, Club.
	ConditionID string `json:"ConditionId,omitempty"`

	// The condition of the item as described by the seller.
	ConditionNote string `json:"ConditionNote,omitempty"`

	// The subcondition of the item.
	//
	// Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other.
	ConditionSubtypeID string `json:"ConditionSubtypeId,omitempty"`

	// The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK.
	// Enum: [IOSS UOSS]
	DeemedResellerCategory string `json:"DeemedResellerCategory,omitempty"`

	// The IOSS number for the marketplace. Sellers shipping to the European Union (EU) from outside of the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale.
	IossNumber string `json:"IossNumber,omitempty"`

	// When true, the item is a gift.
	IsGift bool `json:"IsGift,omitempty"`

	// When true, the ASIN is enrolled in Transparency and the Transparency serial number that needs to be submitted can be determined by the following:
	//
	// **1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN).
	// **2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number will be applied to the same side of the packaging as the GTIN (UPC/EAN/ISBN) barcode.
	// **QR code SN:** Submit the URL that the QR code generates.
	IsTransparency bool `json:"IsTransparency,omitempty"`

	// The selling price of the order item. Note that an order item is an item and a quantity. This means that the value of ItemPrice is equal to the selling price of the item multiplied by the quantity ordered. Note that ItemPrice excludes ShippingPrice and GiftWrapPrice.
	ItemPrice *Money `json:"ItemPrice,omitempty"`

	// The tax on the item price.
	ItemTax *Money `json:"ItemTax,omitempty"`

	// Measurement information for the order item.
	Measurement *Measurement `json:"Measurement,omitempty"`

	// An Amazon-defined order item identifier.
	// Required: true
	OrderItemID *string `json:"OrderItemId"`

	// The number and value of Amazon Points granted with the purchase of an item.
	PointsGranted *PointsGrantedDetail `json:"PointsGranted,omitempty"`

	// Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business).
	//
	// Possible values: BusinessPrice - A special price that is available only for Amazon Business orders.
	PriceDesignation string `json:"PriceDesignation,omitempty"`

	// Product information for the item.
	ProductInfo *ProductInfoDetail `json:"ProductInfo,omitempty"`

	// The total of all promotional discounts in the offer.
	PromotionDiscount *Money `json:"PromotionDiscount,omitempty"`

	// The tax on the total of all promotional discounts in the offer.
	PromotionDiscountTax *Money `json:"PromotionDiscountTax,omitempty"`

	// promotion ids
	PromotionIds PromotionIDList `json:"PromotionIds,omitempty"`

	// The number of items in the order.
	// Required: true
	QuantityOrdered *int64 `json:"QuantityOrdered"`

	// The number of items shipped.
	QuantityShipped int64 `json:"QuantityShipped,omitempty"`

	// The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format.
	ScheduledDeliveryEndDate string `json:"ScheduledDeliveryEndDate,omitempty"`

	// The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format.
	ScheduledDeliveryStartDate string `json:"ScheduledDeliveryStartDate,omitempty"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU string `json:"SellerSKU,omitempty"`

	// When true, the product type for this item has a serial number.
	//
	// Returned only for Amazon Easy Ship orders.
	SerialNumberRequired bool `json:"SerialNumberRequired,omitempty"`

	// A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only.
	SerialNumbers []string `json:"SerialNumbers"`

	// The discount on the shipping price.
	ShippingDiscount *Money `json:"ShippingDiscount,omitempty"`

	// The tax on the discount on the shipping price.
	ShippingDiscountTax *Money `json:"ShippingDiscountTax,omitempty"`

	// The shipping price of the item.
	ShippingPrice *Money `json:"ShippingPrice,omitempty"`

	// The tax on the shipping price.
	ShippingTax *Money `json:"ShippingTax,omitempty"`

	// The store chain store identifier. Linked to a specific store in a store chain.
	StoreChainStoreID string `json:"StoreChainStoreId,omitempty"`

	// Substitution preferences for the order item. This is an optional field and will only be present if seller supports substitutions like in case of some grocery sellers.
	SubstitutionPreferences *SubstitutionPreferences `json:"SubstitutionPreferences,omitempty"`

	// Information about withheld taxes.
	TaxCollection *TaxCollection `json:"TaxCollection,omitempty"`

	// The name of the item.
	Title string `json:"Title,omitempty"`
}

OrderItem A single order item.

swagger:model OrderItem

func (*OrderItem) ContextValidate

func (m *OrderItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order item based on the context it is used

func (*OrderItem) MarshalBinary

func (m *OrderItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItem) UnmarshalBinary

func (m *OrderItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItem) Validate

func (m *OrderItem) Validate(formats strfmt.Registry) error

Validate validates this order item

type OrderItemBuyerInfo

type OrderItemBuyerInfo struct {

	// Buyer information for custom orders from the Amazon Custom program.
	BuyerCustomizedInfo *BuyerCustomizedInfoDetail `json:"BuyerCustomizedInfo,omitempty"`

	// A gift message provided by the buyer.
	GiftMessageText string `json:"GiftMessageText,omitempty"`

	// The gift wrap level specified by the buyer.
	GiftWrapLevel string `json:"GiftWrapLevel,omitempty"`

	// The gift wrap price of the item.
	GiftWrapPrice *Money `json:"GiftWrapPrice,omitempty"`

	// The tax on the gift wrap price.
	GiftWrapTax *Money `json:"GiftWrapTax,omitempty"`

	// An Amazon-defined order item identifier.
	// Required: true
	OrderItemID *string `json:"OrderItemId"`
}

OrderItemBuyerInfo A single order item's buyer information.

swagger:model OrderItemBuyerInfo

func (*OrderItemBuyerInfo) ContextValidate

func (m *OrderItemBuyerInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order item buyer info based on the context it is used

func (*OrderItemBuyerInfo) MarshalBinary

func (m *OrderItemBuyerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItemBuyerInfo) UnmarshalBinary

func (m *OrderItemBuyerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItemBuyerInfo) Validate

func (m *OrderItemBuyerInfo) Validate(formats strfmt.Registry) error

Validate validates this order item buyer info

type OrderItemBuyerInfoList

type OrderItemBuyerInfoList []*OrderItemBuyerInfo

OrderItemBuyerInfoList A single order item's buyer information list.

swagger:model OrderItemBuyerInfoList

func (OrderItemBuyerInfoList) ContextValidate

func (m OrderItemBuyerInfoList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order item buyer info list based on the context it is used

func (OrderItemBuyerInfoList) Validate

func (m OrderItemBuyerInfoList) Validate(formats strfmt.Registry) error

Validate validates this order item buyer info list

type OrderItemList

type OrderItemList []*OrderItem

OrderItemList A list of order items.

swagger:model OrderItemList

func (OrderItemList) ContextValidate

func (m OrderItemList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order item list based on the context it is used

func (OrderItemList) Validate

func (m OrderItemList) Validate(formats strfmt.Registry) error

Validate validates this order item list

type OrderItems

type OrderItems []*OrderItemsItems0

OrderItems For partial shipment status updates, the list of order items and quantities to be updated.

swagger:model OrderItems

func (OrderItems) ContextValidate

func (m OrderItems) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order items based on the context it is used

func (OrderItems) Validate

func (m OrderItems) Validate(formats strfmt.Registry) error

Validate validates this order items

type OrderItemsBuyerInfoList

type OrderItemsBuyerInfoList struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// When present and not empty, pass this string token in the next request to return the next response page.
	NextToken string `json:"NextToken,omitempty"`

	// order items
	// Required: true
	OrderItems OrderItemBuyerInfoList `json:"OrderItems"`
}

OrderItemsBuyerInfoList A single order item's buyer information list with the order ID.

swagger:model OrderItemsBuyerInfoList

func (*OrderItemsBuyerInfoList) ContextValidate

func (m *OrderItemsBuyerInfoList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order items buyer info list based on the context it is used

func (*OrderItemsBuyerInfoList) MarshalBinary

func (m *OrderItemsBuyerInfoList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItemsBuyerInfoList) UnmarshalBinary

func (m *OrderItemsBuyerInfoList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItemsBuyerInfoList) Validate

func (m *OrderItemsBuyerInfoList) Validate(formats strfmt.Registry) error

Validate validates this order items buyer info list

type OrderItemsItems0

type OrderItemsItems0 struct {

	// The unique identifier of the order item.
	OrderItemID string `json:"orderItemId,omitempty"`

	// The quantity for which to update the shipment status.
	Quantity int64 `json:"quantity,omitempty"`
}

OrderItemsItems0 order items items0

swagger:model OrderItemsItems0

func (*OrderItemsItems0) ContextValidate

func (m *OrderItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this order items items0 based on context it is used

func (*OrderItemsItems0) MarshalBinary

func (m *OrderItemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItemsItems0) UnmarshalBinary

func (m *OrderItemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItemsItems0) Validate

func (m *OrderItemsItems0) Validate(formats strfmt.Registry) error

Validate validates this order items items0

type OrderItemsList

type OrderItemsList struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// When present and not empty, pass this string token in the next request to return the next response page.
	NextToken string `json:"NextToken,omitempty"`

	// order items
	// Required: true
	OrderItems OrderItemList `json:"OrderItems"`
}

OrderItemsList The order items list along with the order ID.

swagger:model OrderItemsList

func (*OrderItemsList) ContextValidate

func (m *OrderItemsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order items list based on the context it is used

func (*OrderItemsList) MarshalBinary

func (m *OrderItemsList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItemsList) UnmarshalBinary

func (m *OrderItemsList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItemsList) Validate

func (m *OrderItemsList) Validate(formats strfmt.Registry) error

Validate validates this order items list

type OrderList

type OrderList []*Order

OrderList A list of orders.

swagger:model OrderList

func (OrderList) ContextValidate

func (m OrderList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order list based on the context it is used

func (OrderList) Validate

func (m OrderList) Validate(formats strfmt.Registry) error

Validate validates this order list

type OrderRegulatedInfo

type OrderRegulatedInfo struct {

	// An Amazon-defined order identifier, in 3-7-7 format.
	// Required: true
	AmazonOrderID *string `json:"AmazonOrderId"`

	// The regulated information collected during purchase and used to verify the order.
	// Required: true
	RegulatedInformation *RegulatedInformation `json:"RegulatedInformation"`

	// The order's verification status.
	// Required: true
	RegulatedOrderVerificationStatus *RegulatedOrderVerificationStatus `json:"RegulatedOrderVerificationStatus"`

	// When true, the order requires attaching a dosage information label when shipped.
	// Required: true
	RequiresDosageLabel *bool `json:"RequiresDosageLabel"`
}

OrderRegulatedInfo The order's regulated information along with its verification status.

swagger:model OrderRegulatedInfo

func (*OrderRegulatedInfo) ContextValidate

func (m *OrderRegulatedInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this order regulated info based on the context it is used

func (*OrderRegulatedInfo) MarshalBinary

func (m *OrderRegulatedInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderRegulatedInfo) UnmarshalBinary

func (m *OrderRegulatedInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderRegulatedInfo) Validate

func (m *OrderRegulatedInfo) Validate(formats strfmt.Registry) error

Validate validates this order regulated info

type OrdersList

type OrdersList struct {

	// A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format.
	CreatedBefore string `json:"CreatedBefore,omitempty"`

	// A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. All dates must be in ISO 8601 format.
	LastUpdatedBefore string `json:"LastUpdatedBefore,omitempty"`

	// When present and not empty, pass this string token in the next request to return the next response page.
	NextToken string `json:"NextToken,omitempty"`

	// orders
	// Required: true
	Orders OrderList `json:"Orders"`
}

OrdersList A list of orders along with additional information to make subsequent API calls.

swagger:model OrdersList

func (*OrdersList) ContextValidate

func (m *OrdersList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this orders list based on the context it is used

func (*OrdersList) MarshalBinary

func (m *OrdersList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrdersList) UnmarshalBinary

func (m *OrdersList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrdersList) Validate

func (m *OrdersList) Validate(formats strfmt.Registry) error

Validate validates this orders list

type OtherDeliveryAttributes

type OtherDeliveryAttributes string

OtherDeliveryAttributes Miscellaneous delivery attributes associated with the shipping address.

swagger:model OtherDeliveryAttributes

const (

	// OtherDeliveryAttributesHASACCESSPOINT captures enum value "HAS_ACCESS_POINT"
	OtherDeliveryAttributesHASACCESSPOINT OtherDeliveryAttributes = "HAS_ACCESS_POINT"

	// OtherDeliveryAttributesPALLETENABLED captures enum value "PALLET_ENABLED"
	OtherDeliveryAttributesPALLETENABLED OtherDeliveryAttributes = "PALLET_ENABLED"

	// OtherDeliveryAttributesPALLETDISABLED captures enum value "PALLET_DISABLED"
	OtherDeliveryAttributesPALLETDISABLED OtherDeliveryAttributes = "PALLET_DISABLED"
)

func NewOtherDeliveryAttributes

func NewOtherDeliveryAttributes(value OtherDeliveryAttributes) *OtherDeliveryAttributes

func (OtherDeliveryAttributes) ContextValidate

func (m OtherDeliveryAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this other delivery attributes based on context it is used

func (OtherDeliveryAttributes) Pointer

Pointer returns a pointer to a freshly-allocated OtherDeliveryAttributes.

func (OtherDeliveryAttributes) Validate

func (m OtherDeliveryAttributes) Validate(formats strfmt.Registry) error

Validate validates this other delivery attributes

type PackageDetail

type PackageDetail struct {

	// Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces).
	// Required: true
	CarrierCode *string `json:"carrierCode"`

	// Carrier Name that will deliver the package. Required when carrierCode is "Others"
	CarrierName string `json:"carrierName,omitempty"`

	// The list of order items and quantities to be updated.
	// Required: true
	OrderItems ConfirmShipmentOrderItemsList `json:"orderItems"`

	// package reference Id
	// Required: true
	PackageReferenceID *PackageReferenceID `json:"packageReferenceId"`

	// The shipping date for the package. Must be in ISO-8601 date/time format.
	// Required: true
	// Format: date-time
	ShipDate *strfmt.DateTime `json:"shipDate"`

	// The unique identifier of the supply source.
	ShipFromSupplySourceID string `json:"shipFromSupplySourceId,omitempty"`

	// Ship method to be used for shipping the order.
	ShippingMethod string `json:"shippingMethod,omitempty"`

	// The tracking number used to obtain tracking and delivery information.
	// Required: true
	TrackingNumber *string `json:"trackingNumber"`
}

PackageDetail Properties of packages

swagger:model PackageDetail

func (*PackageDetail) ContextValidate

func (m *PackageDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this package detail based on the context it is used

func (*PackageDetail) MarshalBinary

func (m *PackageDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageDetail) UnmarshalBinary

func (m *PackageDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageDetail) Validate

func (m *PackageDetail) Validate(formats strfmt.Registry) error

Validate validates this package detail

type PackageReferenceID

type PackageReferenceID string

PackageReferenceID A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported.

swagger:model PackageReferenceId

func (PackageReferenceID) ContextValidate

func (m PackageReferenceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package reference Id based on context it is used

func (PackageReferenceID) Validate

func (m PackageReferenceID) Validate(formats strfmt.Registry) error

Validate validates this package reference Id

type PaymentExecutionDetailItem

type PaymentExecutionDetailItem struct {

	// payment
	// Required: true
	Payment *Money `json:"Payment"`

	// A sub-payment method for a COD order.
	//
	// Possible values:
	// * `COD`: Cash On Delivery.
	// * `GC`: Gift Card.
	// * `PointsAccount`: Amazon Points.
	// * `Invoice`: Invoice.
	// Required: true
	PaymentMethod *string `json:"PaymentMethod"`
}

PaymentExecutionDetailItem Information about a sub-payment method used to pay for a COD order.

swagger:model PaymentExecutionDetailItem

func (*PaymentExecutionDetailItem) ContextValidate

func (m *PaymentExecutionDetailItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payment execution detail item based on the context it is used

func (*PaymentExecutionDetailItem) MarshalBinary

func (m *PaymentExecutionDetailItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaymentExecutionDetailItem) UnmarshalBinary

func (m *PaymentExecutionDetailItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaymentExecutionDetailItem) Validate

func (m *PaymentExecutionDetailItem) Validate(formats strfmt.Registry) error

Validate validates this payment execution detail item

type PaymentExecutionDetailItemList

type PaymentExecutionDetailItemList []*PaymentExecutionDetailItem

PaymentExecutionDetailItemList A list of payment execution detail items.

swagger:model PaymentExecutionDetailItemList

func (PaymentExecutionDetailItemList) ContextValidate

func (m PaymentExecutionDetailItemList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payment execution detail item list based on the context it is used

func (PaymentExecutionDetailItemList) Validate

Validate validates this payment execution detail item list

type PaymentMethodDetailItemList

type PaymentMethodDetailItemList []string

PaymentMethodDetailItemList A list of payment method detail items.

swagger:model PaymentMethodDetailItemList

func (PaymentMethodDetailItemList) ContextValidate

func (m PaymentMethodDetailItemList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this payment method detail item list based on context it is used

func (PaymentMethodDetailItemList) Validate

func (m PaymentMethodDetailItemList) Validate(formats strfmt.Registry) error

Validate validates this payment method detail item list

type PointsGrantedDetail

type PointsGrantedDetail struct {

	// The monetary value of the Amazon Points granted.
	PointsMonetaryValue *Money `json:"PointsMonetaryValue,omitempty"`

	// The number of Amazon Points granted with the purchase of an item.
	PointsNumber int64 `json:"PointsNumber,omitempty"`
}

PointsGrantedDetail The number of Amazon Points offered with the purchase of an item, and their monetary value.

swagger:model PointsGrantedDetail

func (*PointsGrantedDetail) ContextValidate

func (m *PointsGrantedDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this points granted detail based on the context it is used

func (*PointsGrantedDetail) MarshalBinary

func (m *PointsGrantedDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PointsGrantedDetail) UnmarshalBinary

func (m *PointsGrantedDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PointsGrantedDetail) Validate

func (m *PointsGrantedDetail) Validate(formats strfmt.Registry) error

Validate validates this points granted detail

type PreferredDeliveryTime

type PreferredDeliveryTime struct {

	// Business hours when the business is open for deliveries.
	BusinessHours []*BusinessHours `json:"BusinessHours"`

	// Dates when the business is closed in the next 30 days.
	ExceptionDates []*ExceptionDates `json:"ExceptionDates"`
}

PreferredDeliveryTime The time window when the delivery is preferred.

swagger:model PreferredDeliveryTime

func (*PreferredDeliveryTime) ContextValidate

func (m *PreferredDeliveryTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preferred delivery time based on the context it is used

func (*PreferredDeliveryTime) MarshalBinary

func (m *PreferredDeliveryTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreferredDeliveryTime) UnmarshalBinary

func (m *PreferredDeliveryTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreferredDeliveryTime) Validate

func (m *PreferredDeliveryTime) Validate(formats strfmt.Registry) error

Validate validates this preferred delivery time

type ProductInfoDetail

type ProductInfoDetail struct {

	// The total number of items that are included in the ASIN.
	NumberOfItems int64 `json:"NumberOfItems,omitempty"`
}

ProductInfoDetail Product information on the number of items.

swagger:model ProductInfoDetail

func (*ProductInfoDetail) ContextValidate

func (m *ProductInfoDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this product info detail based on context it is used

func (*ProductInfoDetail) MarshalBinary

func (m *ProductInfoDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProductInfoDetail) UnmarshalBinary

func (m *ProductInfoDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProductInfoDetail) Validate

func (m *ProductInfoDetail) Validate(formats strfmt.Registry) error

Validate validates this product info detail

type PromotionIDList

type PromotionIDList []string

PromotionIDList A list of promotion identifiers provided by the seller when the promotions were created.

swagger:model PromotionIdList

func (PromotionIDList) ContextValidate

func (m PromotionIDList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this promotion Id list based on context it is used

func (PromotionIDList) Validate

func (m PromotionIDList) Validate(formats strfmt.Registry) error

Validate validates this promotion Id list

type RegulatedInformation

type RegulatedInformation struct {

	// A list of regulated information fields as collected from the regulatory form.
	// Required: true
	Fields []*RegulatedInformationField `json:"Fields"`
}

RegulatedInformation The regulated information collected during purchase and used to verify the order.

swagger:model RegulatedInformation

func (*RegulatedInformation) ContextValidate

func (m *RegulatedInformation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this regulated information based on the context it is used

func (*RegulatedInformation) MarshalBinary

func (m *RegulatedInformation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegulatedInformation) UnmarshalBinary

func (m *RegulatedInformation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegulatedInformation) Validate

func (m *RegulatedInformation) Validate(formats strfmt.Registry) error

Validate validates this regulated information

type RegulatedInformationField

type RegulatedInformationField struct {

	// The unique identifier for the field.
	// Required: true
	FieldID *string `json:"FieldId"`

	// The name for the field.
	// Required: true
	FieldLabel *string `json:"FieldLabel"`

	// The type of field.
	// Required: true
	// Enum: [Text FileAttachment]
	FieldType *string `json:"FieldType"`

	// The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here.
	// Required: true
	FieldValue *string `json:"FieldValue"`
}

RegulatedInformationField A field collected from the regulatory form.

swagger:model RegulatedInformationField

func (*RegulatedInformationField) ContextValidate

func (m *RegulatedInformationField) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this regulated information field based on context it is used

func (*RegulatedInformationField) MarshalBinary

func (m *RegulatedInformationField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegulatedInformationField) UnmarshalBinary

func (m *RegulatedInformationField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegulatedInformationField) Validate

func (m *RegulatedInformationField) Validate(formats strfmt.Registry) error

Validate validates this regulated information field

type RegulatedOrderVerificationStatus

type RegulatedOrderVerificationStatus struct {

	// The identifier for the order's regulated information reviewer.
	ExternalReviewerID string `json:"ExternalReviewerId,omitempty"`

	// The reason for rejecting the order's regulated information. Not present if the order isn't rejected.
	RejectionReason *RejectionReason `json:"RejectionReason,omitempty"`

	// When true, the regulated information provided in the order requires a review by the merchant.
	// Required: true
	RequiresMerchantAction *bool `json:"RequiresMerchantAction"`

	// The date the order was reviewed. In ISO 8601 date time format.
	ReviewDate string `json:"ReviewDate,omitempty"`

	// The verification status of the order.
	// Required: true
	Status *VerificationStatus `json:"Status"`

	// A list of valid rejection reasons that may be used to reject the order's regulated information.
	// Required: true
	ValidRejectionReasons []*RejectionReason `json:"ValidRejectionReasons"`
}

RegulatedOrderVerificationStatus The verification status of the order along with associated approval or rejection metadata.

swagger:model RegulatedOrderVerificationStatus

func (*RegulatedOrderVerificationStatus) ContextValidate

func (m *RegulatedOrderVerificationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this regulated order verification status based on the context it is used

func (*RegulatedOrderVerificationStatus) MarshalBinary

func (m *RegulatedOrderVerificationStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegulatedOrderVerificationStatus) UnmarshalBinary

func (m *RegulatedOrderVerificationStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegulatedOrderVerificationStatus) Validate

Validate validates this regulated order verification status

type RejectionReason

type RejectionReason struct {

	// The description of this rejection reason.
	// Required: true
	RejectionReasonDescription *string `json:"RejectionReasonDescription"`

	// The unique identifier for the rejection reason.
	// Required: true
	RejectionReasonID *string `json:"RejectionReasonId"`
}

RejectionReason The reason for rejecting the order's regulated information. Not present if the order isn't rejected.

swagger:model RejectionReason

func (*RejectionReason) ContextValidate

func (m *RejectionReason) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rejection reason based on context it is used

func (*RejectionReason) MarshalBinary

func (m *RejectionReason) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RejectionReason) UnmarshalBinary

func (m *RejectionReason) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RejectionReason) Validate

func (m *RejectionReason) Validate(formats strfmt.Registry) error

Validate validates this rejection reason

type ShipmentStatus

type ShipmentStatus string

ShipmentStatus The shipment status to apply.

swagger:model ShipmentStatus

const (

	// ShipmentStatusReadyForPickup captures enum value "ReadyForPickup"
	ShipmentStatusReadyForPickup ShipmentStatus = "ReadyForPickup"

	// ShipmentStatusPickedUp captures enum value "PickedUp"
	ShipmentStatusPickedUp ShipmentStatus = "PickedUp"

	// ShipmentStatusRefusedPickup captures enum value "RefusedPickup"
	ShipmentStatusRefusedPickup ShipmentStatus = "RefusedPickup"
)

func NewShipmentStatus

func NewShipmentStatus(value ShipmentStatus) *ShipmentStatus

func (ShipmentStatus) ContextValidate

func (m ShipmentStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this shipment status based on context it is used

func (ShipmentStatus) Pointer

func (m ShipmentStatus) Pointer() *ShipmentStatus

Pointer returns a pointer to a freshly-allocated ShipmentStatus.

func (ShipmentStatus) Validate

func (m ShipmentStatus) Validate(formats strfmt.Registry) error

Validate validates this shipment status

type SubstitutionOption added in v0.3.0

type SubstitutionOption struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN string `json:"ASIN,omitempty"`

	// Measurement information for the substitution option.
	Measurement *Measurement `json:"Measurement,omitempty"`

	// The number of items to be picked for this substitution option.
	QuantityOrdered int64 `json:"QuantityOrdered,omitempty"`

	// The seller stock keeping unit (SKU) of the item.
	SellerSKU string `json:"SellerSKU,omitempty"`

	// The title of the item.
	Title string `json:"Title,omitempty"`
}

SubstitutionOption substitution option

swagger:model SubstitutionOption

func (*SubstitutionOption) ContextValidate added in v0.3.0

func (m *SubstitutionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this substitution option based on the context it is used

func (*SubstitutionOption) MarshalBinary added in v0.3.0

func (m *SubstitutionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubstitutionOption) UnmarshalBinary added in v0.3.0

func (m *SubstitutionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubstitutionOption) Validate added in v0.3.0

func (m *SubstitutionOption) Validate(formats strfmt.Registry) error

Validate validates this substitution option

type SubstitutionOptionList added in v0.3.0

type SubstitutionOptionList []*SubstitutionOption

SubstitutionOptionList A collection of substitution options.

swagger:model SubstitutionOptionList

func (SubstitutionOptionList) ContextValidate added in v0.3.0

func (m SubstitutionOptionList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this substitution option list based on the context it is used

func (SubstitutionOptionList) Validate added in v0.3.0

func (m SubstitutionOptionList) Validate(formats strfmt.Registry) error

Validate validates this substitution option list

type SubstitutionPreferences added in v0.3.0

type SubstitutionPreferences struct {

	// Substitution options for the order item.
	SubstitutionOptions SubstitutionOptionList `json:"SubstitutionOptions,omitempty"`

	// The type of substitution that these preferences represent.
	// Required: true
	// Enum: [CUSTOMER_PREFERENCE AMAZON_RECOMMENDED DO_NOT_SUBSTITUTE]
	SubstitutionType *string `json:"SubstitutionType"`
}

SubstitutionPreferences substitution preferences

swagger:model SubstitutionPreferences

func (*SubstitutionPreferences) ContextValidate added in v0.3.0

func (m *SubstitutionPreferences) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this substitution preferences based on the context it is used

func (*SubstitutionPreferences) MarshalBinary added in v0.3.0

func (m *SubstitutionPreferences) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubstitutionPreferences) UnmarshalBinary added in v0.3.0

func (m *SubstitutionPreferences) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubstitutionPreferences) Validate added in v0.3.0

func (m *SubstitutionPreferences) Validate(formats strfmt.Registry) error

Validate validates this substitution preferences

type TaxClassification

type TaxClassification struct {

	// The type of tax.
	Name string `json:"Name,omitempty"`

	// The buyer's tax identifier.
	Value string `json:"Value,omitempty"`
}

TaxClassification The tax classification for the order.

swagger:model TaxClassification

func (*TaxClassification) ContextValidate

func (m *TaxClassification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tax classification based on context it is used

func (*TaxClassification) MarshalBinary

func (m *TaxClassification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaxClassification) UnmarshalBinary

func (m *TaxClassification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaxClassification) Validate

func (m *TaxClassification) Validate(formats strfmt.Registry) error

Validate validates this tax classification

type TaxCollection

type TaxCollection struct {

	// The tax collection model applied to the item.
	// Enum: [MarketplaceFacilitator]
	Model string `json:"Model,omitempty"`

	// The party responsible for withholding the taxes and remitting them to the taxing authority.
	// Enum: [Amazon Services, Inc.]
	ResponsibleParty string `json:"ResponsibleParty,omitempty"`
}

TaxCollection Information about withheld taxes.

swagger:model TaxCollection

func (*TaxCollection) ContextValidate

func (m *TaxCollection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tax collection based on context it is used

func (*TaxCollection) MarshalBinary

func (m *TaxCollection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaxCollection) UnmarshalBinary

func (m *TaxCollection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaxCollection) Validate

func (m *TaxCollection) Validate(formats strfmt.Registry) error

Validate validates this tax collection

type TransparencyCode

type TransparencyCode string

TransparencyCode The Transparency code associated with the item.

swagger:model TransparencyCode

func (TransparencyCode) ContextValidate

func (m TransparencyCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this transparency code based on context it is used

func (TransparencyCode) Validate

func (m TransparencyCode) Validate(formats strfmt.Registry) error

Validate validates this transparency code

type TransparencyCodeList

type TransparencyCodeList []TransparencyCode

TransparencyCodeList A list of order items.

swagger:model TransparencyCodeList

func (TransparencyCodeList) ContextValidate

func (m TransparencyCodeList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this transparency code list based on the context it is used

func (TransparencyCodeList) Validate

func (m TransparencyCodeList) Validate(formats strfmt.Registry) error

Validate validates this transparency code list

type UpdateShipmentStatusErrorResponse

type UpdateShipmentStatusErrorResponse struct {

	// One or more unexpected errors occurred during the UpdateShipmentStatus operation.
	Errors ErrorList `json:"errors,omitempty"`
}

UpdateShipmentStatusErrorResponse The error response schema for the UpdateShipmentStatus operation.

swagger:model UpdateShipmentStatusErrorResponse

func (*UpdateShipmentStatusErrorResponse) ContextValidate

func (m *UpdateShipmentStatusErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update shipment status error response based on the context it is used

func (*UpdateShipmentStatusErrorResponse) MarshalBinary

func (m *UpdateShipmentStatusErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateShipmentStatusErrorResponse) UnmarshalBinary

func (m *UpdateShipmentStatusErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateShipmentStatusErrorResponse) Validate

Validate validates this update shipment status error response

type UpdateShipmentStatusRequest

type UpdateShipmentStatusRequest struct {

	// marketplace Id
	// Required: true
	MarketplaceID *MarketplaceID `json:"marketplaceId"`

	// order items
	OrderItems OrderItems `json:"orderItems,omitempty"`

	// shipment status
	// Required: true
	ShipmentStatus *ShipmentStatus `json:"shipmentStatus"`
}

UpdateShipmentStatusRequest The request body for the updateShipmentStatus operation.

swagger:model UpdateShipmentStatusRequest

func (*UpdateShipmentStatusRequest) ContextValidate

func (m *UpdateShipmentStatusRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update shipment status request based on the context it is used

func (*UpdateShipmentStatusRequest) MarshalBinary

func (m *UpdateShipmentStatusRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateShipmentStatusRequest) UnmarshalBinary

func (m *UpdateShipmentStatusRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateShipmentStatusRequest) Validate

func (m *UpdateShipmentStatusRequest) Validate(formats strfmt.Registry) error

Validate validates this update shipment status request

type UpdateVerificationStatusErrorResponse

type UpdateVerificationStatusErrorResponse struct {

	// One or more unexpected errors occurred during the UpdateVerificationStatus operation.
	Errors ErrorList `json:"errors,omitempty"`
}

UpdateVerificationStatusErrorResponse The error response schema for the UpdateVerificationStatus operation.

swagger:model UpdateVerificationStatusErrorResponse

func (*UpdateVerificationStatusErrorResponse) ContextValidate

func (m *UpdateVerificationStatusErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update verification status error response based on the context it is used

func (*UpdateVerificationStatusErrorResponse) MarshalBinary

func (m *UpdateVerificationStatusErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVerificationStatusErrorResponse) UnmarshalBinary

func (m *UpdateVerificationStatusErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVerificationStatusErrorResponse) Validate

Validate validates this update verification status error response

type UpdateVerificationStatusRequest

type UpdateVerificationStatusRequest struct {

	// The updated values of the VerificationStatus field.
	// Required: true
	RegulatedOrderVerificationStatus *UpdateVerificationStatusRequestBody `json:"regulatedOrderVerificationStatus"`
}

UpdateVerificationStatusRequest The request body for the updateVerificationStatus operation.

swagger:model UpdateVerificationStatusRequest

func (*UpdateVerificationStatusRequest) ContextValidate

func (m *UpdateVerificationStatusRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update verification status request based on the context it is used

func (*UpdateVerificationStatusRequest) MarshalBinary

func (m *UpdateVerificationStatusRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVerificationStatusRequest) UnmarshalBinary

func (m *UpdateVerificationStatusRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVerificationStatusRequest) Validate

Validate validates this update verification status request

type UpdateVerificationStatusRequestBody

type UpdateVerificationStatusRequestBody struct {

	// The identifier for the order's regulated information reviewer.
	// Required: true
	ExternalReviewerID *string `json:"externalReviewerId"`

	// The unique identifier for the rejection reason used for rejecting the order's regulated information. Only required if the new status is rejected.
	RejectionReasonID string `json:"rejectionReasonId,omitempty"`

	// The new verification status of the order.
	// Required: true
	Status *VerificationStatus `json:"status"`
}

UpdateVerificationStatusRequestBody The updated values of the VerificationStatus field.

swagger:model UpdateVerificationStatusRequestBody

func (*UpdateVerificationStatusRequestBody) ContextValidate

func (m *UpdateVerificationStatusRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update verification status request body based on the context it is used

func (*UpdateVerificationStatusRequestBody) MarshalBinary

func (m *UpdateVerificationStatusRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVerificationStatusRequestBody) UnmarshalBinary

func (m *UpdateVerificationStatusRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVerificationStatusRequestBody) Validate

Validate validates this update verification status request body

type VerificationStatus

type VerificationStatus string

VerificationStatus The verification status of the order.

swagger:model VerificationStatus

const (

	// VerificationStatusPending captures enum value "Pending"
	VerificationStatusPending VerificationStatus = "Pending"

	// VerificationStatusApproved captures enum value "Approved"
	VerificationStatusApproved VerificationStatus = "Approved"

	// VerificationStatusRejected captures enum value "Rejected"
	VerificationStatusRejected VerificationStatus = "Rejected"

	// VerificationStatusExpired captures enum value "Expired"
	VerificationStatusExpired VerificationStatus = "Expired"

	// VerificationStatusCancelled captures enum value "Cancelled"
	VerificationStatusCancelled VerificationStatus = "Cancelled"
)

func NewVerificationStatus

func NewVerificationStatus(value VerificationStatus) *VerificationStatus

func (VerificationStatus) ContextValidate

func (m VerificationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this verification status based on context it is used

func (VerificationStatus) Pointer

Pointer returns a pointer to a freshly-allocated VerificationStatus.

func (VerificationStatus) Validate

func (m VerificationStatus) Validate(formats strfmt.Registry) error

Validate validates this verification status

Source Files

Jump to

Keyboard shortcuts

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