Documentation ¶
Index ¶
- Constants
- type Error
- type ErrorList
- type GenerateOrderScenarioRequest
- func (m *GenerateOrderScenarioRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenerateOrderScenarioRequest) MarshalBinary() ([]byte, error)
- func (m *GenerateOrderScenarioRequest) UnmarshalBinary(b []byte) error
- func (m *GenerateOrderScenarioRequest) Validate(formats strfmt.Registry) error
- type OrderScenarioRequest
- type Pagination
- type PartyIdentification
- type Scenario
- type TestCaseData
- type TestOrder
- type Transaction
- type TransactionReference
- type TransactionStatus
Constants ¶
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 ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validate this error list based on the context it is used
func (*ErrorList) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validate this scenario based on the context it is used
func (*Scenario) MarshalBinary ¶
MarshalBinary interface implementation
func (*Scenario) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
ContextValidate validates this test order based on context it is used
func (*TestOrder) MarshalBinary ¶
MarshalBinary interface implementation
func (*TestOrder) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
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