Module: Peddler::Types::VendorDirectFulfillmentTransactionsV1

Defined in:
lib/peddler/types/vendor_direct_fulfillment_transactions_v1/error.rb,
lib/peddler/types/vendor_direct_fulfillment_transactions_v1/transaction.rb,
lib/peddler/types/vendor_direct_fulfillment_transactions_v1/transaction_status.rb,
lib/peddler/types/vendor_direct_fulfillment_transactions_v1/get_transaction_response.rb

Constant Summary collapse

Error =

Error response returned when the request is unsuccessful.

Structure.new do
  # @return [String] An error code that identifies the type of error that occurred.
  attribute(:code, String)

  # @return [String] A message that describes the error condition.
  attribute(:message, String)

  # @return [String] Additional details that can help the caller understand or fix the issue.
  attribute(:details, String)
end
Transaction =

The transaction status details.

Structure.new do
  # @return [String] The unique identifier sent in the 'transactionId' field in response to the post request of a
  # specific transaction.
  attribute(:transaction_id, String, from: "transactionId")

  # @return [String] Current processing status of the transaction.
  attribute(:status, String)

  # @return [Array<Error>] Error code and message for the failed transaction. Only available when transaction
  # status is 'Failure'.
  attribute(:errors, [Error])
end
TransactionStatus =

The payload for the getTransactionStatus operation.

Structure.new do
  # @return [Transaction]
  attribute(:transaction_status, Transaction, from: "transactionStatus")
end
GetTransactionResponse =

The response schema for the getTransactionStatus operation.

Structure.new do
  # @return [TransactionStatus]
  attribute(:payload, TransactionStatus)

  # @return [Array<Error>]
  attribute(:errors, [Error])
end