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

	// TransactionStatusFAILURE captures enum value "FAILURE"
	TransactionStatusFAILURE string = "FAILURE"

	// TransactionStatusPROCESSING captures enum value "PROCESSING"
	TransactionStatusPROCESSING string = "PROCESSING"

	// TransactionStatusSUCCESS captures enum value "SUCCESS"
	TransactionStatusSUCCESS string = "SUCCESS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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.
	// 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 struct {

	// errors
	// Required: true
	Errors []*Error `json:"errors"`
}

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

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

MarshalBinary interface implementation

func (*ErrorList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorList) Validate

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

Validate validates this error list

type GenerateOrderScenarioRequest

type GenerateOrderScenarioRequest struct {

	// The list of test orders requested as indicated by party identifiers.
	Orders []*OrderScenarioRequest `json:"orders"`
}

GenerateOrderScenarioRequest The request body for the generateOrderScenarios operation.

swagger:model GenerateOrderScenarioRequest

func (*GenerateOrderScenarioRequest) ContextValidate

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

ContextValidate validate this generate order scenario request based on the context it is used

func (*GenerateOrderScenarioRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*GenerateOrderScenarioRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenerateOrderScenarioRequest) Validate

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

Validate validates this generate order scenario request

type OrderScenarioRequest

type OrderScenarioRequest struct {

	// The identifier of the selling party or vendor.
	// Required: true
	SellingParty *PartyIdentification `json:"sellingParty"`

	// The warehouse code of the vendor.
	// Required: true
	ShipFromParty *PartyIdentification `json:"shipFromParty"`
}

OrderScenarioRequest The party identifiers required to generate the test data.

swagger:model OrderScenarioRequest

func (*OrderScenarioRequest) ContextValidate

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

ContextValidate validate this order scenario request based on the context it is used

func (*OrderScenarioRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderScenarioRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderScenarioRequest) Validate

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

Validate validates this order scenario request

type Pagination

type Pagination struct {

	// next token
	NextToken string `json:"nextToken,omitempty"`
}

Pagination A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return.

swagger:model Pagination

func (*Pagination) ContextValidate

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

ContextValidate validates this pagination based on context it is used

func (*Pagination) MarshalBinary

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

MarshalBinary interface implementation

func (*Pagination) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Pagination) Validate

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

Validate validates this pagination

type PartyIdentification

type PartyIdentification struct {

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

PartyIdentification The identification object for the party information. For example, warehouse code or vendor code. Please refer to specific party for more details.

swagger:model PartyIdentification

func (*PartyIdentification) ContextValidate

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

ContextValidate validates this party identification based on context it is used

func (*PartyIdentification) MarshalBinary

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

MarshalBinary interface implementation

func (*PartyIdentification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PartyIdentification) Validate

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

Validate validates this party identification

type Scenario

type Scenario struct {

	// A list of orders that can be used by the caller to test each life cycle or scenario.
	// Required: true
	Orders []*TestOrder `json:"orders"`

	// An identifier that identifies the type of scenario that user can use for testing.
	// Required: true
	ScenarioID *string `json:"scenarioId"`
}

Scenario A scenario test case response returned when the request is successful.

swagger:model Scenario

func (*Scenario) ContextValidate

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

ContextValidate validate this scenario based on the context it is used

func (*Scenario) MarshalBinary

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

MarshalBinary interface implementation

func (*Scenario) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Scenario) Validate

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

Validate validates this scenario

type TestCaseData

type TestCaseData struct {

	// Set of use cases that describes the possible test scenarios.
	Scenarios []*Scenario `json:"scenarios"`
}

TestCaseData The set of test case data returned in response to the test data request.

swagger:model TestCaseData

func (*TestCaseData) ContextValidate

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

ContextValidate validate this test case data based on the context it is used

func (*TestCaseData) MarshalBinary

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

MarshalBinary interface implementation

func (*TestCaseData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TestCaseData) Validate

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

Validate validates this test case data

type TestOrder

type TestOrder struct {

	// An error code that identifies the type of error that occurred.
	// Required: true
	OrderID *string `json:"orderId"`
}

TestOrder Error response returned when the request is unsuccessful.

swagger:model TestOrder

func (*TestOrder) ContextValidate

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

ContextValidate validates this test order based on context it is used

func (*TestOrder) MarshalBinary

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

MarshalBinary interface implementation

func (*TestOrder) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TestOrder) Validate

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

Validate validates this test order

type Transaction

type Transaction struct {

	// The current processing status of the transaction.
	// Required: true
	// Enum: [FAILURE PROCESSING SUCCESS]
	Status *string `json:"status"`

	// Test case data for the transaction. Only available when the transaction status is SUCCESS.
	TestCaseData *TestCaseData `json:"testCaseData,omitempty"`

	// The unique identifier returned in the response to the generateOrderScenarios request.
	// Required: true
	TransactionID *string `json:"transactionId"`
}

Transaction The transaction details including the status. If the transaction was successful, also includes the requested test order data.

swagger:model Transaction

func (*Transaction) ContextValidate

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

ContextValidate validate this transaction based on the context it is used

func (*Transaction) MarshalBinary

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

MarshalBinary interface implementation

func (*Transaction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Transaction) Validate

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

Validate validates this transaction

type TransactionReference

type TransactionReference struct {

	// transaction Id
	TransactionID string `json:"transactionId,omitempty"`
}

TransactionReference A GUID assigned by Amazon to identify this transaction.

swagger:model TransactionReference

func (*TransactionReference) ContextValidate

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

ContextValidate validates this transaction reference based on context it is used

func (*TransactionReference) MarshalBinary

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

MarshalBinary interface implementation

func (*TransactionReference) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransactionReference) Validate

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

Validate validates this transaction reference

type TransactionStatus

type TransactionStatus struct {

	// transaction status
	TransactionStatus *Transaction `json:"transactionStatus,omitempty"`
}

TransactionStatus The payload for the getOrderScenarios operation.

swagger:model TransactionStatus

func (*TransactionStatus) ContextValidate

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

ContextValidate validate this transaction status based on the context it is used

func (*TransactionStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*TransactionStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransactionStatus) Validate

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

Validate validates this transaction status

Jump to

Keyboard shortcuts

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