Documentation ¶
Index ¶
- type Error
- type ErrorList
- type InventoryUpdate
- type ItemDetails
- type ItemQuantity
- type PartyIdentification
- type SubmitInventoryUpdateRequest
- func (m *SubmitInventoryUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SubmitInventoryUpdateRequest) MarshalBinary() ([]byte, error)
- func (m *SubmitInventoryUpdateRequest) UnmarshalBinary(b []byte) error
- func (m *SubmitInventoryUpdateRequest) Validate(formats strfmt.Registry) error
- type SubmitInventoryUpdateResponse
- func (m *SubmitInventoryUpdateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SubmitInventoryUpdateResponse) MarshalBinary() ([]byte, error)
- func (m *SubmitInventoryUpdateResponse) UnmarshalBinary(b []byte) error
- func (m *SubmitInventoryUpdateResponse) Validate(formats strfmt.Registry) error
- type TransactionReference
Constants ¶
This section is empty.
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 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 ¶
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 []*Error
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
type InventoryUpdate ¶
type InventoryUpdate struct { // When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged. // Required: true IsFullUpdate *bool `json:"isFullUpdate"` // A list of inventory items with updated details, including quantity available. // Required: true Items []*ItemDetails `json:"items"` // ID of the selling party or vendor. // Required: true SellingParty *PartyIdentification `json:"sellingParty"` }
InventoryUpdate inventory update
swagger:model InventoryUpdate
func (*InventoryUpdate) ContextValidate ¶
ContextValidate validate this inventory update based on the context it is used
func (*InventoryUpdate) MarshalBinary ¶
func (m *InventoryUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InventoryUpdate) UnmarshalBinary ¶
func (m *InventoryUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemDetails ¶
type ItemDetails struct { // Total item quantity available in the warehouse. // Required: true AvailableQuantity *ItemQuantity `json:"availableQuantity"` // The buyer selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. BuyerProductIdentifier string `json:"buyerProductIdentifier,omitempty"` // When true, the item is permanently unavailable. IsObsolete bool `json:"isObsolete,omitempty"` // The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. VendorProductIdentifier string `json:"vendorProductIdentifier,omitempty"` }
ItemDetails Updated inventory details for an item.
swagger:model ItemDetails
func (*ItemDetails) ContextValidate ¶
ContextValidate validate this item details based on the context it is used
func (*ItemDetails) MarshalBinary ¶
func (m *ItemDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ItemDetails) UnmarshalBinary ¶
func (m *ItemDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemQuantity ¶
type ItemQuantity struct { // Quantity of units available for a specific item. Amount int64 `json:"amount,omitempty"` // Unit of measure for the available quantity. // Required: true UnitOfMeasure *string `json:"unitOfMeasure"` }
ItemQuantity Details of item quantity.
swagger:model ItemQuantity
func (*ItemQuantity) ContextValidate ¶
ContextValidate validates this item quantity based on context it is used
func (*ItemQuantity) MarshalBinary ¶
func (m *ItemQuantity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ItemQuantity) UnmarshalBinary ¶
func (m *ItemQuantity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PartyIdentification ¶
type PartyIdentification struct { // Assigned identification for the party. // Required: true PartyID *string `json:"partyId"` }
PartyIdentification party identification
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 SubmitInventoryUpdateRequest ¶
type SubmitInventoryUpdateRequest struct { // Inventory details required to update some or all items for the requested warehouse. Inventory *InventoryUpdate `json:"inventory,omitempty"` }
SubmitInventoryUpdateRequest The request body for the submitInventoryUpdate operation.
swagger:model SubmitInventoryUpdateRequest
func (*SubmitInventoryUpdateRequest) ContextValidate ¶
func (m *SubmitInventoryUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this submit inventory update request based on the context it is used
func (*SubmitInventoryUpdateRequest) MarshalBinary ¶
func (m *SubmitInventoryUpdateRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubmitInventoryUpdateRequest) UnmarshalBinary ¶
func (m *SubmitInventoryUpdateRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubmitInventoryUpdateResponse ¶
type SubmitInventoryUpdateResponse struct { // errors Errors ErrorList `json:"errors,omitempty"` // The response payload for the submitInventoryUpdate operation. Payload *TransactionReference `json:"payload,omitempty"` }
SubmitInventoryUpdateResponse The response schema for the submitInventoryUpdate operation.
swagger:model SubmitInventoryUpdateResponse
func (*SubmitInventoryUpdateResponse) ContextValidate ¶
func (m *SubmitInventoryUpdateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this submit inventory update response based on the context it is used
func (*SubmitInventoryUpdateResponse) MarshalBinary ¶
func (m *SubmitInventoryUpdateResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubmitInventoryUpdateResponse) UnmarshalBinary ¶
func (m *SubmitInventoryUpdateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionReference ¶
type TransactionReference struct { // GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. TransactionID string `json:"transactionId,omitempty"` }
TransactionReference transaction reference
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