vendor_direct_fulfillment_transactions_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: 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 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 GetTransactionResponse

type GetTransactionResponse struct {

	// errors
	Errors ErrorList `json:"errors,omitempty"`

	// payload
	Payload *TransactionStatus `json:"payload,omitempty"`
}

GetTransactionResponse The response schema for the getTransactionStatus operation.

swagger:model GetTransactionResponse

func (*GetTransactionResponse) ContextValidate

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

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

func (*GetTransactionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTransactionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTransactionResponse) Validate

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

Validate validates this get transaction response

type Transaction

type Transaction struct {

	// Error code and message for the failed transaction. Only available when transaction status is 'Failure'.
	Errors ErrorList `json:"errors,omitempty"`

	// Current processing status of the transaction.
	// Required: true
	// Enum: [Failure Processing Success]
	Status *string `json:"status"`

	// The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction.
	// Required: true
	TransactionID *string `json:"transactionId"`
}

Transaction The transaction status details.

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 TransactionStatus

type TransactionStatus struct {

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

TransactionStatus The payload for the getTransactionStatus 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