vendor_direct_fulfillment_inventory_v1_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: 6 Imported by: 0

Documentation

Index

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

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

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

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

func (*InventoryUpdate) Validate

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

Validate validates this inventory update

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

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

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

func (*ItemDetails) Validate

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

Validate validates this item details

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

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

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

func (*ItemQuantity) Validate

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

Validate validates this item quantity

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

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

func (*SubmitInventoryUpdateRequest) Validate

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

Validate validates this submit inventory update request

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

func (*SubmitInventoryUpdateResponse) Validate

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

Validate validates this submit inventory update response

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

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

Jump to

Keyboard shortcuts

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