shipping_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 (

	// DimensionsUnitIN captures enum value "IN"
	DimensionsUnitIN string = "IN"

	// DimensionsUnitCM captures enum value "CM"
	DimensionsUnitCM string = "CM"
)
View Source
const (

	// WeightUnitG captures enum value "g"
	WeightUnitG string = "g"

	// WeightUnitKg captures enum value "kg"
	WeightUnitKg string = "kg"

	// WeightUnitOz captures enum value "oz"
	WeightUnitOz string = "oz"

	// WeightUnitLb captures enum value "lb"
	WeightUnitLb string = "lb"
)
View Source
const (

	// ContainerContainerTypePACKAGE captures enum value "PACKAGE"
	ContainerContainerTypePACKAGE string = "PACKAGE"
)
View Source
const (

	// LabelSpecificationLabelFormatPNG captures enum value "PNG"
	LabelSpecificationLabelFormatPNG string = "PNG"
)
View Source
const (

	// LabelSpecificationLabelStockSizeNr4x6 captures enum value "4x6"
	LabelSpecificationLabelStockSizeNr4x6 string = "4x6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedRate

type AcceptedRate struct {

	// The weight that was used to calculate the totalCharge.
	BilledWeight *Weight `json:"billedWeight,omitempty"`

	// promise
	Promise *ShippingPromiseSet `json:"promise,omitempty"`

	// service type
	ServiceType ServiceType `json:"serviceType,omitempty"`

	// The total charge that will be billed for the rate.
	TotalCharge *Currency `json:"totalCharge,omitempty"`
}

AcceptedRate The specific rate purchased for the shipment, or null if unpurchased.

swagger:model AcceptedRate

func (*AcceptedRate) ContextValidate

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

ContextValidate validate this accepted rate based on the context it is used

func (*AcceptedRate) MarshalBinary

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

MarshalBinary interface implementation

func (*AcceptedRate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AcceptedRate) Validate

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

Validate validates this accepted rate

type Account

type Account struct {

	// account Id
	// Required: true
	AccountID *AccountID `json:"accountId"`
}

Account The account related data.

swagger:model Account

func (*Account) ContextValidate

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

ContextValidate validate this account based on the context it is used

func (*Account) MarshalBinary

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

MarshalBinary interface implementation

func (*Account) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Account) Validate

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

Validate validates this account

type AccountID

type AccountID string

AccountID This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process.

swagger:model AccountId

func (AccountID) ContextValidate

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

ContextValidate validates this account Id based on context it is used

func (AccountID) Validate

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

Validate validates this account Id

type Address

type Address struct {

	// First line of that address.
	// Required: true
	// Max Length: 60
	// Min Length: 1
	AddressLine1 *string `json:"addressLine1"`

	// Additional address information, if required.
	// Max Length: 60
	// Min Length: 1
	AddressLine2 string `json:"addressLine2,omitempty"`

	// Additional address information, if required.
	// Max Length: 60
	// Min Length: 1
	AddressLine3 string `json:"addressLine3,omitempty"`

	// city
	// Required: true
	City *City `json:"city"`

	// The email cc addresses of the contact associated with the address.
	// Max Items: 2
	CopyEmails []string `json:"copyEmails"`

	// country code
	// Required: true
	CountryCode *CountryCode `json:"countryCode"`

	// The email address of the contact associated with the address.
	// Max Length: 64
	Email string `json:"email,omitempty"`

	// The name of the person, business or institution at that address.
	// Required: true
	// Max Length: 50
	// Min Length: 1
	Name *string `json:"name"`

	// The phone number of the person, business or institution located at that address.
	// Max Length: 20
	// Min Length: 1
	PhoneNumber string `json:"phoneNumber,omitempty"`

	// postal code
	// Required: true
	PostalCode *PostalCode `json:"postalCode"`

	// state or region
	// Required: true
	StateOrRegion *StateOrRegion `json:"stateOrRegion"`
}

Address The address.

swagger:model Address

func (*Address) ContextValidate

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

ContextValidate validate this address based on the 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 CancelShipmentResponse

type CancelShipmentResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`
}

CancelShipmentResponse The response schema for the cancelShipment operation.

swagger:model CancelShipmentResponse

func (*CancelShipmentResponse) ContextValidate

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

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

func (*CancelShipmentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CancelShipmentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CancelShipmentResponse) Validate

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

Validate validates this cancel shipment response

type City

type City string

City The city where the person, business or institution is located.

swagger:model City

func (City) ContextValidate

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

ContextValidate validates this city based on context it is used

func (City) Validate

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

Validate validates this city

type ClientReferenceID

type ClientReferenceID string

ClientReferenceID Client reference id.

swagger:model ClientReferenceId

func (ClientReferenceID) ContextValidate

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

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

func (ClientReferenceID) Validate

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

Validate validates this client reference Id

type Container

type Container struct {

	// container reference Id
	// Required: true
	ContainerReferenceID *ContainerReferenceID `json:"containerReferenceId"`

	// The type of physical container being used. (always 'PACKAGE')
	// Enum: [PACKAGE]
	ContainerType string `json:"containerType,omitempty"`

	// The length, width, height, and weight of the container.
	// Required: true
	Dimensions *Dimensions `json:"dimensions"`

	// A list of the items in the container.
	// Required: true
	Items []*ContainerItem `json:"items"`

	// The total value of all items in the container.
	// Required: true
	Value *Currency `json:"value"`

	// The weight of the container.
	// Required: true
	Weight *Weight `json:"weight"`
}

Container Container in the shipment.

swagger:model Container

func (*Container) ContextValidate

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

ContextValidate validate this container based on the context it is used

func (*Container) MarshalBinary

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

MarshalBinary interface implementation

func (*Container) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Container) Validate

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

Validate validates this container

type ContainerItem

type ContainerItem struct {

	// The quantity of the items of this type in the container.
	// Required: true
	Quantity *float64 `json:"quantity"`

	// A descriptive title of the item.
	// Required: true
	// Max Length: 30
	Title *string `json:"title"`

	// The unit price of an item of this type (the total value of this item type in the container is unitPrice * quantity).
	// Required: true
	UnitPrice *Currency `json:"unitPrice"`

	// The unit weight of an item of this type (the total weight of this item type in the container is unitWeight * quantity).
	// Required: true
	UnitWeight *Weight `json:"unitWeight"`
}

ContainerItem Item in the container.

swagger:model ContainerItem

func (*ContainerItem) ContextValidate

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

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

func (*ContainerItem) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerItem) Validate

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

Validate validates this container item

type ContainerList

type ContainerList []*Container

ContainerList A list of container.

swagger:model ContainerList

func (ContainerList) ContextValidate

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

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

func (ContainerList) Validate

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

Validate validates this container list

type ContainerReferenceID

type ContainerReferenceID string

ContainerReferenceID An identifier for the container. This must be unique within all the containers in the same shipment.

swagger:model ContainerReferenceId

func (ContainerReferenceID) ContextValidate

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

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

func (ContainerReferenceID) Validate

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

Validate validates this container reference Id

type ContainerSpecification

type ContainerSpecification struct {

	// The length, width, and height of the container.
	// Required: true
	Dimensions *Dimensions `json:"dimensions"`

	// The weight of the container.
	// Required: true
	Weight *Weight `json:"weight"`
}

ContainerSpecification Container specification for checking the service rate.

swagger:model ContainerSpecification

func (*ContainerSpecification) ContextValidate

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

ContextValidate validate this container specification based on the context it is used

func (*ContainerSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerSpecification) Validate

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

Validate validates this container specification

type ContainerSpecificationList

type ContainerSpecificationList []*ContainerSpecification

ContainerSpecificationList A list of container specifications.

swagger:model ContainerSpecificationList

func (ContainerSpecificationList) ContextValidate

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

ContextValidate validate this container specification list based on the context it is used

func (ContainerSpecificationList) Validate

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

Validate validates this container specification list

type CountryCode

type CountryCode string

CountryCode The two digit country code. In ISO 3166-1 alpha-2 format.

swagger:model CountryCode

func (CountryCode) ContextValidate

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

ContextValidate validates this country code based on context it is used

func (CountryCode) Validate

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

Validate validates this country code

type CreateShipmentRequest

type CreateShipmentRequest struct {

	// client reference Id
	// Required: true
	ClientReferenceID *ClientReferenceID `json:"clientReferenceId"`

	// containers
	// Required: true
	Containers ContainerList `json:"containers"`

	// ship from
	// Required: true
	ShipFrom *Address `json:"shipFrom"`

	// ship to
	// Required: true
	ShipTo *Address `json:"shipTo"`
}

CreateShipmentRequest The request schema for the createShipment operation.

swagger:model CreateShipmentRequest

func (*CreateShipmentRequest) ContextValidate

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

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

func (*CreateShipmentRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateShipmentRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateShipmentRequest) Validate

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

Validate validates this create shipment request

type CreateShipmentResponse

type CreateShipmentResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for createShipment operation
	Payload *CreateShipmentResult `json:"payload,omitempty"`
}

CreateShipmentResponse The response schema for the createShipment operation.

swagger:model CreateShipmentResponse

func (*CreateShipmentResponse) ContextValidate

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

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

func (*CreateShipmentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateShipmentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateShipmentResponse) Validate

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

Validate validates this create shipment response

type CreateShipmentResult

type CreateShipmentResult struct {

	// eligible rates
	// Required: true
	EligibleRates RateList `json:"eligibleRates"`

	// shipment Id
	// Required: true
	ShipmentID *ShipmentID `json:"shipmentId"`
}

CreateShipmentResult The payload schema for the createShipment operation.

swagger:model CreateShipmentResult

func (*CreateShipmentResult) ContextValidate

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

ContextValidate validate this create shipment result based on the context it is used

func (*CreateShipmentResult) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateShipmentResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateShipmentResult) Validate

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

Validate validates this create shipment result

type Currency

type Currency struct {

	// A 3-character currency code.
	// Required: true
	// Max Length: 3
	// Min Length: 3
	Unit *string `json:"unit"`

	// The amount of currency.
	// Required: true
	Value *float64 `json:"value"`
}

Currency The total value of all items in the container.

swagger:model Currency

func (*Currency) ContextValidate

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

ContextValidate validates this currency based on context it is used

func (*Currency) MarshalBinary

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

MarshalBinary interface implementation

func (*Currency) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Currency) Validate

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

Validate validates this currency

type Dimensions

type Dimensions struct {

	// The height of the container.
	// Required: true
	Height *float64 `json:"height"`

	// The length of the container.
	// Required: true
	Length *float64 `json:"length"`

	// The unit of these measurements.
	// Required: true
	// Enum: [IN CM]
	Unit *string `json:"unit"`

	// The width of the container.
	// Required: true
	Width *float64 `json:"width"`
}

Dimensions A set of measurements for a three-dimensional object.

swagger:model Dimensions

func (*Dimensions) ContextValidate

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

ContextValidate validates this dimensions based on context it is used

func (*Dimensions) MarshalBinary

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

MarshalBinary interface implementation

func (*Dimensions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Dimensions) Validate

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

Validate validates this dimensions

type Error

type Error struct {

	// An error code that identifies the type of error that occured.
	// 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 in a human-readable form.
	// 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 Event

type Event struct {

	// event code
	// Required: true
	EventCode *EventCode `json:"eventCode"`

	// The date and time of an event for a shipment.
	// Required: true
	// Format: date-time
	EventTime *strfmt.DateTime `json:"eventTime"`

	// location
	Location *Location `json:"location,omitempty"`
}

Event An event of a shipment

swagger:model Event

func (*Event) ContextValidate

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

ContextValidate validate this event based on the context it is used

func (*Event) MarshalBinary

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

MarshalBinary interface implementation

func (*Event) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Event) Validate

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

Validate validates this event

type EventCode

type EventCode string

EventCode The event code of a shipment, such as Departed, Received, and ReadyForReceive.

swagger:model EventCode

func (EventCode) ContextValidate

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

ContextValidate validates this event code based on context it is used

func (EventCode) Validate

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

Validate validates this event code

type EventList

type EventList []*Event

EventList A list of events of a shipment.

swagger:model EventList

func (EventList) ContextValidate

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

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

func (EventList) Validate

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

Validate validates this event list

type GetAccountResponse

type GetAccountResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for getAccount operation
	Payload *Account `json:"payload,omitempty"`
}

GetAccountResponse The response schema for the getAccount operation.

swagger:model GetAccountResponse

func (*GetAccountResponse) ContextValidate

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

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

func (*GetAccountResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetAccountResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetAccountResponse) Validate

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

Validate validates this get account response

type GetRatesRequest

type GetRatesRequest struct {

	// container specifications
	// Required: true
	ContainerSpecifications ContainerSpecificationList `json:"containerSpecifications"`

	// service types
	// Required: true
	ServiceTypes ServiceTypeList `json:"serviceTypes"`

	// The start date and time. This defaults to the current date and time.
	// Format: date-time
	ShipDate strfmt.DateTime `json:"shipDate,omitempty"`

	// ship from
	// Required: true
	ShipFrom *Address `json:"shipFrom"`

	// ship to
	// Required: true
	ShipTo *Address `json:"shipTo"`
}

GetRatesRequest The payload schema for the getRates operation.

swagger:model GetRatesRequest

func (*GetRatesRequest) ContextValidate

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

ContextValidate validate this get rates request based on the context it is used

func (*GetRatesRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRatesRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRatesRequest) Validate

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

Validate validates this get rates request

type GetRatesResponse

type GetRatesResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for getRates operation
	Payload *GetRatesResult `json:"payload,omitempty"`
}

GetRatesResponse The response schema for the getRates operation.

swagger:model GetRatesResponse

func (*GetRatesResponse) ContextValidate

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

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

func (*GetRatesResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRatesResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRatesResponse) Validate

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

Validate validates this get rates response

type GetRatesResult

type GetRatesResult struct {

	// service rates
	// Required: true
	ServiceRates ServiceRateList `json:"serviceRates"`
}

GetRatesResult The payload schema for the getRates operation.

swagger:model GetRatesResult

func (*GetRatesResult) ContextValidate

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

ContextValidate validate this get rates result based on the context it is used

func (*GetRatesResult) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRatesResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRatesResult) Validate

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

Validate validates this get rates result

type GetShipmentResponse

type GetShipmentResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for getShipment operation
	Payload *Shipment `json:"payload,omitempty"`
}

GetShipmentResponse The response schema for the getShipment operation.

swagger:model GetShipmentResponse

func (*GetShipmentResponse) ContextValidate

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

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

func (*GetShipmentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetShipmentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetShipmentResponse) Validate

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

Validate validates this get shipment response

type GetTrackingInformationResponse

type GetTrackingInformationResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for getTrackingInformation operation
	Payload *TrackingInformation `json:"payload,omitempty"`
}

GetTrackingInformationResponse The response schema for the getTrackingInformation operation.

swagger:model GetTrackingInformationResponse

func (*GetTrackingInformationResponse) ContextValidate

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

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

func (*GetTrackingInformationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTrackingInformationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTrackingInformationResponse) Validate

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

Validate validates this get tracking information response

type Label

type Label struct {

	// label specification
	LabelSpecification *LabelSpecification `json:"labelSpecification,omitempty"`

	// label stream
	LabelStream LabelStream `json:"labelStream,omitempty"`
}

Label The label details of the container.

swagger:model Label

func (*Label) ContextValidate

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

ContextValidate validate this label based on the context it is used

func (*Label) MarshalBinary

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

MarshalBinary interface implementation

func (*Label) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Label) Validate

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

Validate validates this label

type LabelResult

type LabelResult struct {

	// container reference Id
	ContainerReferenceID ContainerReferenceID `json:"containerReferenceId,omitempty"`

	// label
	Label *Label `json:"label,omitempty"`

	// The tracking identifier assigned to the container.
	TrackingID string `json:"trackingId,omitempty"`
}

LabelResult Label details including label stream, format, size.

swagger:model LabelResult

func (*LabelResult) ContextValidate

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

ContextValidate validate this label result based on the context it is used

func (*LabelResult) MarshalBinary

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

MarshalBinary interface implementation

func (*LabelResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LabelResult) Validate

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

Validate validates this label result

type LabelResultList

type LabelResultList []*LabelResult

LabelResultList A list of label results

swagger:model LabelResultList

func (LabelResultList) ContextValidate

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

ContextValidate validate this label result list based on the context it is used

func (LabelResultList) Validate

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

Validate validates this label result list

type LabelSpecification

type LabelSpecification struct {

	// The format of the label. Enum of PNG only for now.
	// Required: true
	// Enum: [PNG]
	LabelFormat *string `json:"labelFormat"`

	// The label stock size specification in length and height. Enum of 4x6 only for now.
	// Required: true
	// Enum: [4x6]
	LabelStockSize *string `json:"labelStockSize"`
}

LabelSpecification The label specification info.

swagger:model LabelSpecification

func (*LabelSpecification) ContextValidate

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

ContextValidate validates this label specification based on context it is used

func (*LabelSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*LabelSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LabelSpecification) Validate

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

Validate validates this label specification

type LabelStream

type LabelStream string

LabelStream Contains binary image data encoded as a base-64 string.

swagger:model LabelStream

func (LabelStream) ContextValidate

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

ContextValidate validates this label stream based on context it is used

func (LabelStream) Validate

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

Validate validates this label stream

type Location

type Location struct {

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

	// country code
	CountryCode CountryCode `json:"countryCode,omitempty"`

	// postal code
	PostalCode PostalCode `json:"postalCode,omitempty"`

	// state or region
	StateOrRegion StateOrRegion `json:"stateOrRegion,omitempty"`
}

Location The location where the person, business or institution is located.

swagger:model Location

func (*Location) ContextValidate

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

ContextValidate validate this location based on the context it is used

func (*Location) MarshalBinary

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

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Location) Validate

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

Validate validates this location

type Party

type Party struct {

	// account Id
	AccountID AccountID `json:"accountId,omitempty"`
}

Party The account related with the shipment.

swagger:model Party

func (*Party) ContextValidate

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

ContextValidate validate this party based on the context it is used

func (*Party) MarshalBinary

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

MarshalBinary interface implementation

func (*Party) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Party) Validate

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

Validate validates this party

type PostalCode

type PostalCode string

PostalCode The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation.

swagger:model PostalCode

func (PostalCode) ContextValidate

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

ContextValidate validates this postal code based on context it is used

func (PostalCode) Validate

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

Validate validates this postal code

type PromisedDeliveryDate

type PromisedDeliveryDate strfmt.DateTime

PromisedDeliveryDate The promised delivery date and time of a shipment.

swagger:model PromisedDeliveryDate

func (PromisedDeliveryDate) ContextValidate

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

ContextValidate validates this promised delivery date based on context it is used

func (*PromisedDeliveryDate) MarshalBinary

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

MarshalBinary interface implementation

func (PromisedDeliveryDate) MarshalJSON

func (m PromisedDeliveryDate) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a PromisedDeliveryDate value as JSON output

func (*PromisedDeliveryDate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PromisedDeliveryDate) UnmarshalJSON

func (m *PromisedDeliveryDate) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a PromisedDeliveryDate value from JSON input

func (PromisedDeliveryDate) Validate

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

Validate validates this promised delivery date

type PurchaseLabelsRequest

type PurchaseLabelsRequest struct {

	// label specification
	// Required: true
	LabelSpecification *LabelSpecification `json:"labelSpecification"`

	// rate Id
	// Required: true
	RateID *RateID `json:"rateId"`
}

PurchaseLabelsRequest The request schema for the purchaseLabels operation.

swagger:model PurchaseLabelsRequest

func (*PurchaseLabelsRequest) ContextValidate

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

ContextValidate validate this purchase labels request based on the context it is used

func (*PurchaseLabelsRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseLabelsRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseLabelsRequest) Validate

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

Validate validates this purchase labels request

type PurchaseLabelsResponse

type PurchaseLabelsResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for purchaseLabels operation
	Payload *PurchaseLabelsResult `json:"payload,omitempty"`
}

PurchaseLabelsResponse The response schema for the purchaseLabels operation.

swagger:model PurchaseLabelsResponse

func (*PurchaseLabelsResponse) ContextValidate

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

ContextValidate validate this purchase labels response based on the context it is used

func (*PurchaseLabelsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseLabelsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseLabelsResponse) Validate

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

Validate validates this purchase labels response

type PurchaseLabelsResult

type PurchaseLabelsResult struct {

	// accepted rate
	// Required: true
	AcceptedRate *AcceptedRate `json:"acceptedRate"`

	// client reference Id
	ClientReferenceID ClientReferenceID `json:"clientReferenceId,omitempty"`

	// label results
	// Required: true
	LabelResults LabelResultList `json:"labelResults"`

	// shipment Id
	// Required: true
	ShipmentID *ShipmentID `json:"shipmentId"`
}

PurchaseLabelsResult The payload schema for the purchaseLabels operation.

swagger:model PurchaseLabelsResult

func (*PurchaseLabelsResult) ContextValidate

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

ContextValidate validate this purchase labels result based on the context it is used

func (*PurchaseLabelsResult) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseLabelsResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseLabelsResult) Validate

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

Validate validates this purchase labels result

type PurchaseShipmentRequest

type PurchaseShipmentRequest struct {

	// client reference Id
	// Required: true
	ClientReferenceID *ClientReferenceID `json:"clientReferenceId"`

	// containers
	// Required: true
	Containers ContainerList `json:"containers"`

	// label specification
	// Required: true
	LabelSpecification *LabelSpecification `json:"labelSpecification"`

	// service type
	// Required: true
	ServiceType *ServiceType `json:"serviceType"`

	// The start date and time. This defaults to the current date and time.
	// Format: date-time
	ShipDate strfmt.DateTime `json:"shipDate,omitempty"`

	// ship from
	// Required: true
	ShipFrom *Address `json:"shipFrom"`

	// ship to
	// Required: true
	ShipTo *Address `json:"shipTo"`
}

PurchaseShipmentRequest The payload schema for the purchaseShipment operation.

swagger:model PurchaseShipmentRequest

func (*PurchaseShipmentRequest) ContextValidate

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

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

func (*PurchaseShipmentRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseShipmentRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseShipmentRequest) Validate

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

Validate validates this purchase shipment request

type PurchaseShipmentResponse

type PurchaseShipmentResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for purchaseShipment operation
	Payload *PurchaseShipmentResult `json:"payload,omitempty"`
}

PurchaseShipmentResponse The response schema for the purchaseShipment operation.

swagger:model PurchaseShipmentResponse

func (*PurchaseShipmentResponse) ContextValidate

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

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

func (*PurchaseShipmentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseShipmentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseShipmentResponse) Validate

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

Validate validates this purchase shipment response

type PurchaseShipmentResult

type PurchaseShipmentResult struct {

	// label results
	// Required: true
	LabelResults LabelResultList `json:"labelResults"`

	// service rate
	// Required: true
	ServiceRate *ServiceRate `json:"serviceRate"`

	// shipment Id
	// Required: true
	ShipmentID *ShipmentID `json:"shipmentId"`
}

PurchaseShipmentResult The payload schema for the purchaseShipment operation.

swagger:model PurchaseShipmentResult

func (*PurchaseShipmentResult) ContextValidate

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

ContextValidate validate this purchase shipment result based on the context it is used

func (*PurchaseShipmentResult) MarshalBinary

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

MarshalBinary interface implementation

func (*PurchaseShipmentResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PurchaseShipmentResult) Validate

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

Validate validates this purchase shipment result

type Rate

type Rate struct {

	// The weight that was used to calculate the totalCharge.
	BilledWeight *Weight `json:"billedWeight,omitempty"`

	// The time after which the offering will expire.
	// Format: date-time
	ExpirationTime strfmt.DateTime `json:"expirationTime,omitempty"`

	// promise
	Promise *ShippingPromiseSet `json:"promise,omitempty"`

	// An identifier for the rate.
	RateID string `json:"rateId,omitempty"`

	// service type
	ServiceType ServiceType `json:"serviceType,omitempty"`

	// The total charge that will be billed for the rate.
	TotalCharge *Currency `json:"totalCharge,omitempty"`
}

Rate The available rate that can be used to send the shipment

swagger:model Rate

func (*Rate) ContextValidate

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

ContextValidate validate this rate based on the context it is used

func (*Rate) MarshalBinary

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

MarshalBinary interface implementation

func (*Rate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rate) Validate

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

Validate validates this rate

type RateID

type RateID string

RateID An identifier for the rating.

swagger:model RateId

func (RateID) ContextValidate

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

ContextValidate validates this rate Id based on context it is used

func (RateID) Validate

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

Validate validates this rate Id

type RateList

type RateList []*Rate

RateList A list of all the available rates that can be used to send the shipment.

swagger:model RateList

func (RateList) ContextValidate

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

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

func (RateList) Validate

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

Validate validates this rate list

type RetrieveShippingLabelRequest

type RetrieveShippingLabelRequest struct {

	// label specification
	// Required: true
	LabelSpecification *LabelSpecification `json:"labelSpecification"`
}

RetrieveShippingLabelRequest The request schema for the retrieveShippingLabel operation.

swagger:model RetrieveShippingLabelRequest

func (*RetrieveShippingLabelRequest) ContextValidate

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

ContextValidate validate this retrieve shipping label request based on the context it is used

func (*RetrieveShippingLabelRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RetrieveShippingLabelRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetrieveShippingLabelRequest) Validate

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

Validate validates this retrieve shipping label request

type RetrieveShippingLabelResponse

type RetrieveShippingLabelResponse struct {

	// Encountered errors for the operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for retrieveShippingLabel operation
	Payload *RetrieveShippingLabelResult `json:"payload,omitempty"`
}

RetrieveShippingLabelResponse The response schema for the retrieveShippingLabel operation.

swagger:model RetrieveShippingLabelResponse

func (*RetrieveShippingLabelResponse) ContextValidate

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

ContextValidate validate this retrieve shipping label response based on the context it is used

func (*RetrieveShippingLabelResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*RetrieveShippingLabelResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetrieveShippingLabelResponse) Validate

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

Validate validates this retrieve shipping label response

type RetrieveShippingLabelResult

type RetrieveShippingLabelResult struct {

	// label specification
	// Required: true
	LabelSpecification *LabelSpecification `json:"labelSpecification"`

	// label stream
	// Required: true
	LabelStream *LabelStream `json:"labelStream"`
}

RetrieveShippingLabelResult The payload schema for the retrieveShippingLabel operation.

swagger:model RetrieveShippingLabelResult

func (*RetrieveShippingLabelResult) ContextValidate

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

ContextValidate validate this retrieve shipping label result based on the context it is used

func (*RetrieveShippingLabelResult) MarshalBinary

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

MarshalBinary interface implementation

func (*RetrieveShippingLabelResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetrieveShippingLabelResult) Validate

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

Validate validates this retrieve shipping label result

type ServiceRate

type ServiceRate struct {

	// The weight that was used to calculate the totalCharge.
	// Required: true
	BillableWeight *Weight `json:"billableWeight"`

	// promise
	// Required: true
	Promise *ShippingPromiseSet `json:"promise"`

	// service type
	// Required: true
	ServiceType *ServiceType `json:"serviceType"`

	// The total charge that will be billed for the rate.
	// Required: true
	TotalCharge *Currency `json:"totalCharge"`
}

ServiceRate The specific rate for a shipping service, or null if no service available.

swagger:model ServiceRate

func (*ServiceRate) ContextValidate

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

ContextValidate validate this service rate based on the context it is used

func (*ServiceRate) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceRate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceRate) Validate

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

Validate validates this service rate

type ServiceRateList

type ServiceRateList []*ServiceRate

ServiceRateList A list of service rates.

swagger:model ServiceRateList

func (ServiceRateList) ContextValidate

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

ContextValidate validate this service rate list based on the context it is used

func (ServiceRateList) Validate

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

Validate validates this service rate list

type ServiceType

type ServiceType string

ServiceType The type of shipping service that will be used for the service offering.

swagger:model ServiceType

const (

	// ServiceTypeAmazonShippingGround captures enum value "Amazon Shipping Ground"
	ServiceTypeAmazonShippingGround ServiceType = "Amazon Shipping Ground"

	// ServiceTypeAmazonShippingStandard captures enum value "Amazon Shipping Standard"
	ServiceTypeAmazonShippingStandard ServiceType = "Amazon Shipping Standard"

	// ServiceTypeAmazonShippingPremium captures enum value "Amazon Shipping Premium"
	ServiceTypeAmazonShippingPremium ServiceType = "Amazon Shipping Premium"
)

func NewServiceType

func NewServiceType(value ServiceType) *ServiceType

func (ServiceType) ContextValidate

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

ContextValidate validates this service type based on context it is used

func (ServiceType) Pointer

func (m ServiceType) Pointer() *ServiceType

Pointer returns a pointer to a freshly-allocated ServiceType.

func (ServiceType) Validate

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

Validate validates this service type

type ServiceTypeList

type ServiceTypeList []ServiceType

ServiceTypeList A list of service types that can be used to send the shipment.

swagger:model ServiceTypeList

func (ServiceTypeList) ContextValidate

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

ContextValidate validate this service type list based on the context it is used

func (ServiceTypeList) Validate

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

Validate validates this service type list

type Shipment

type Shipment struct {

	// accepted rate
	AcceptedRate *AcceptedRate `json:"acceptedRate,omitempty"`

	// client reference Id
	// Required: true
	ClientReferenceID *ClientReferenceID `json:"clientReferenceId"`

	// containers
	// Required: true
	Containers ContainerList `json:"containers"`

	// ship from
	// Required: true
	ShipFrom *Address `json:"shipFrom"`

	// ship to
	// Required: true
	ShipTo *Address `json:"shipTo"`

	// shipment Id
	// Required: true
	ShipmentID *ShipmentID `json:"shipmentId"`

	// shipper
	Shipper *Party `json:"shipper,omitempty"`
}

Shipment The shipment related data.

swagger:model Shipment

func (*Shipment) ContextValidate

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

ContextValidate validate this shipment based on the context it is used

func (*Shipment) MarshalBinary

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

MarshalBinary interface implementation

func (*Shipment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Shipment) Validate

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

Validate validates this shipment

type ShipmentID

type ShipmentID string

ShipmentID The unique shipment identifier.

swagger:model ShipmentId

func (ShipmentID) ContextValidate

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

ContextValidate validates this shipment Id based on context it is used

func (ShipmentID) Validate

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

Validate validates this shipment Id

type ShippingPromiseSet

type ShippingPromiseSet struct {

	// The time window in which the shipment will be delivered.
	DeliveryWindow *TimeRange `json:"deliveryWindow,omitempty"`

	// The time window in which Amazon Shipping will pick up the shipment.
	ReceiveWindow *TimeRange `json:"receiveWindow,omitempty"`
}

ShippingPromiseSet The promised delivery time and pickup time.

swagger:model ShippingPromiseSet

func (*ShippingPromiseSet) ContextValidate

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

ContextValidate validate this shipping promise set based on the context it is used

func (*ShippingPromiseSet) MarshalBinary

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

MarshalBinary interface implementation

func (*ShippingPromiseSet) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ShippingPromiseSet) Validate

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

Validate validates this shipping promise set

type StateOrRegion

type StateOrRegion string

StateOrRegion The state or region where the person, business or institution is located.

swagger:model StateOrRegion

func (StateOrRegion) ContextValidate

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

ContextValidate validates this state or region based on context it is used

func (StateOrRegion) Validate

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

Validate validates this state or region

type TimeRange

type TimeRange struct {

	// The end date and time. This must come after the value of start. This defaults to the next business day from the start.
	// Format: date-time
	End strfmt.DateTime `json:"end,omitempty"`

	// The start date and time. This defaults to the current date and time.
	// Format: date-time
	Start strfmt.DateTime `json:"start,omitempty"`
}

TimeRange The time range.

swagger:model TimeRange

func (*TimeRange) ContextValidate

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

ContextValidate validates this time range based on context it is used

func (*TimeRange) MarshalBinary

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

MarshalBinary interface implementation

func (*TimeRange) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TimeRange) Validate

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

Validate validates this time range

type TrackingID

type TrackingID string

TrackingID The tracking id generated to each shipment. It contains a series of letters or digits or both.

swagger:model TrackingId

func (TrackingID) ContextValidate

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

ContextValidate validates this tracking Id based on context it is used

func (TrackingID) Validate

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

Validate validates this tracking Id

type TrackingInformation

type TrackingInformation struct {

	// event history
	// Required: true
	EventHistory EventList `json:"eventHistory"`

	// promised delivery date
	// Required: true
	// Format: date-time
	PromisedDeliveryDate *PromisedDeliveryDate `json:"promisedDeliveryDate"`

	// summary
	// Required: true
	Summary *TrackingSummary `json:"summary"`

	// tracking Id
	// Required: true
	TrackingID *TrackingID `json:"trackingId"`
}

TrackingInformation The payload schema for the getTrackingInformation operation.

swagger:model TrackingInformation

func (*TrackingInformation) ContextValidate

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

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

func (*TrackingInformation) MarshalBinary

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

MarshalBinary interface implementation

func (*TrackingInformation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TrackingInformation) Validate

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

Validate validates this tracking information

type TrackingSummary

type TrackingSummary struct {

	// The derived status based on the events in the eventHistory.
	// Max Length: 60
	// Min Length: 1
	Status string `json:"status,omitempty"`
}

TrackingSummary The tracking summary.

swagger:model TrackingSummary

func (*TrackingSummary) ContextValidate

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

ContextValidate validates this tracking summary based on context it is used

func (*TrackingSummary) MarshalBinary

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

MarshalBinary interface implementation

func (*TrackingSummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TrackingSummary) Validate

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

Validate validates this tracking summary

type Weight

type Weight struct {

	// The unit of measurement.
	// Required: true
	// Enum: [g kg oz lb]
	Unit *string `json:"unit"`

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

Weight The weight.

swagger:model Weight

func (*Weight) ContextValidate

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

ContextValidate validates this weight based on context it is used

func (*Weight) MarshalBinary

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

MarshalBinary interface implementation

func (*Weight) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Weight) Validate

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

Validate validates this weight

Jump to

Keyboard shortcuts

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