Module: Peddler::Types::Finances20240619

Defined in:
lib/peddler/types/finances_2024_06_19/item.rb,
lib/peddler/types/finances_2024_06_19/error.rb,
lib/peddler/types/finances_2024_06_19/currency.rb,
lib/peddler/types/finances_2024_06_19/breakdown.rb,
lib/peddler/types/finances_2024_06_19/error_list.rb,
lib/peddler/types/finances_2024_06_19/transaction.rb,
lib/peddler/types/finances_2024_06_19/product_context.rb,
lib/peddler/types/finances_2024_06_19/business_context.rb,
lib/peddler/types/finances_2024_06_19/deferred_context.rb,
lib/peddler/types/finances_2024_06_19/payments_context.rb,
lib/peddler/types/finances_2024_06_19/amazon_pay_context.rb,
lib/peddler/types/finances_2024_06_19/related_identifier.rb,
lib/peddler/types/finances_2024_06_19/time_range_context.rb,
lib/peddler/types/finances_2024_06_19/marketplace_details.rb,
lib/peddler/types/finances_2024_06_19/transactions_payload.rb,
lib/peddler/types/finances_2024_06_19/item_related_identifier.rb,
lib/peddler/types/finances_2024_06_19/selling_partner_metadata.rb,
lib/peddler/types/finances_2024_06_19/list_transactions_response.rb

Constant Summary collapse

Item =

Additional information about the items in Transaction.

Structure.new do
  # @return [String] Description of items in the transaction
  attribute(:description, String)

  # @return [Array<ItemRelatedIdentifier>] Related business identifiers of the item.
  attribute(:related_identifiers, [ItemRelatedIdentifier], from: "relatedIdentifiers")

  # @return [Currency] The total amount of the item.
  attribute(:total_amount, Currency, from: "totalAmount")

  # @return [Array<Breakdown>] A list of breakdowns that detail how the total amount is calculated for the
  # transaction.
  attribute(:breakdowns, [Breakdown])

  # @return [Array<Context>] Additional Information about the item.
  attribute(:contexts, Array)
end
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
Currency =

A currency type and amount.

Structure.new do
  # @return [String] The three-digit currency code in ISO 4217 format.
  attribute(:currency_code, String, from: "currencyCode")

  # @return [Float] The monetary value.
  attribute(:currency_amount, Float, from: "currencyAmount")
end
Breakdown =

Breakdown provides details regarding the money movement under the financial transaction. Breakdowns get categorized further into breakdown types, breakdown amounts, and further breakdowns into a hierarchical structure.

Structure.new do
  # @return [String] The type of charge.
  attribute(:breakdown_type, String, from: "breakdownType")

  # @return [Currency] The amount of the charge.
  attribute(:breakdown_amount, Currency, from: "breakdownAmount")

  # @return [Array<Breakdown>] A list of breakdowns that detail how the total amount is calculated for the
  # transaction.
  attribute(:breakdowns, [Breakdown])
end
ErrorList =

A list of error responses returned when a request is unsuccessful.

Structure.new do
  # @return [Array<Error>] Error response returned when the request is unsuccessful.
  attribute(:errors, [Error])
end
Transaction =

Contains all information related to the transaction.

Structure.new do
  # @return [SellingPartnerMetadata] Metadata describing the seller.
  attribute(:selling_partner_metadata, SellingPartnerMetadata, from: "sellingPartnerMetadata")

  # @return [Array<RelatedIdentifier>] Related business identifiers of the transaction.
  attribute(:related_identifiers, [RelatedIdentifier], from: "relatedIdentifiers")

  # @return [String] The type of transaction.
  #
  # Possible values:
  #
  # * Shipment
  attribute(:transaction_type, String, from: "transactionType")

  # @return [String] The unique identifier for the transaction.
  attribute(:transaction_id, String, from: "transactionId")

  # @return [String] The status of the transaction.
  #
  # **Possible values:**
  #
  # * `DEFERRED`: the transaction is currently deferred.
  # * `RELEASED`: the transaction is currently released.
  # * `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. The status of a deferred
  # transaction is updated to `DEFERRED_RELEASED` when the transaction is released.
  attribute(:transaction_status, String, from: "transactionStatus")

  # @return [String] Describes the reasons for the transaction.
  #
  # Example: 'Order Payment','Refund Order'
  attribute(:description, String)

  # @return [String] The date and time when the transaction was posted.
  attribute(:posted_date, String, from: "postedDate")

  # @return [Currency] Total amount of transaction.
  attribute(:total_amount, Currency, from: "totalAmount")

  # @return [MarketplaceDetails] Information about the marketplace where the transaction occurred.
  attribute(:marketplace_details, MarketplaceDetails, from: "marketplaceDetails")

  # @return [Array<Item>] Additional information about the items in Transaction.
  attribute(:items, [Item])

  # @return [Array<Context>] Additional Information about the transaction.
  attribute(:contexts, Array)

  # @return [Array<Breakdown>] A list of breakdowns that detail how the total amount is calculated for the
  # transaction.
  attribute(:breakdowns, [Breakdown])
end
ProductContext =

Additional information related to the product.

Structure.new do
  # @return [String] Amazon Standard Identification Number (ASIN) of the item.
  attribute(:asin, String)

  # @return [String] Stock keeping unit (SKU) of the item.
  attribute(:sku, String)

  # @return [Integer] Quantity of the item shipped.
  attribute(:quantity_shipped, Integer, from: "quantityShipped")

  # @return [String] Fulfillment network of the item.
  attribute(:fulfillment_network, String, from: "fulfillmentNetwork")
end
BusinessContext =

Information about the line of business associated with a transaction.

Structure.new do
  # @return [String] The store name associated with the transaction.
  attribute(:store_name, String, from: "storeName")
end
DeferredContext =

Additional information related to Deferred transactions.

Structure.new do
  # @return [String] The deferral policy applied to the transaction.
  #
  # **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
  attribute(:deferral_reason, String, from: "deferralReason")

  # @return [String] The release date of the transaction.
  attribute(:maturity_date, String, from: "maturityDate")
end
PaymentsContext =

Additional information related to Payments related transactions.

Structure.new do
  # @return [String] Type of payment made.
  attribute(:payment_type, String, from: "paymentType")

  # @return [String] Method of payment made.
  attribute(:payment_method, String, from: "paymentMethod")

  # @return [String] Reference number of payment made.
  attribute(:payment_reference, String, from: "paymentReference")

  # @return [String] Date of payment made.
  attribute(:payment_date, String, from: "paymentDate")
end
AmazonPayContext =

Additional information related to Amazon Pay.

Structure.new do
  # @return [String] Store name related to transaction.
  attribute(:store_name, String, from: "storeName")

  # @return [String] Order type of the transaction.
  attribute(:order_type, String, from: "orderType")

  # @return [String] Channel details of related transaction.
  attribute(:channel, String)
end
RelatedIdentifier =

Related business identifier of the transaction.

Structure.new do
  # @return [String] Enumerated set of related business identifier names.
  attribute(:related_identifier_name, String, from: "relatedIdentifierName")

  # @return [String] Corresponding value of RelatedIdentifierName
  attribute(:related_identifier_value, String, from: "relatedIdentifierValue")
end
TimeRangeContext =

Additional information related to time range for transaction.

Structure.new do
  # @return [String] Start time of the transaction.
  attribute(:start_time, String, from: "startTime")

  # @return [String] End time of the transaction.
  attribute(:end_time, String, from: "endTime")
end
MarketplaceDetails =

Information about the marketplace where the transaction occurred.

Structure.new do
  # @return [String] The identifier of the marketplace where the transaction occurred. The marketplace ID is the
  # globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace
  # IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
  attribute(:marketplace_id, String, from: "marketplaceId")

  # @return [String] The name of the marketplace where the transaction occurred.
  #
  # Example: 'Amazon.com','Amazon.in'
  attribute(:marketplace_name, String, from: "marketplaceName")
end
TransactionsPayload =

The payload for the listTransactions operation.

Structure.new do
  # @return [String] When present and not empty, pass this string token in the next request to return the next
  # response page.
  attribute(:next_token, String, from: "nextToken")

  # @return [Array<Transaction>]
  attribute(:transactions, [Transaction])
end
ItemRelatedIdentifier =

Related business identifiers of the item.

Structure.new do
  # @return [String] Enumerated set of related item identifier names for the item.
  attribute(:item_related_identifier_name, String, from: "itemRelatedIdentifierName")

  # @return [String] Corresponding value of ItemRelatedIdentifierName
  attribute(:item_related_identifier_value, String, from: "itemRelatedIdentifierValue")
end
SellingPartnerMetadata =

Metadata describing the seller.

Structure.new do
  # @return [String] Unique seller identifier.
  attribute(:selling_partner_id, String, from: "sellingPartnerId")

  # @return [String] Account type of transaction.
  attribute(:account_type, String, from: "accountType")

  # @return [String] The identifier of the marketplace where the transaction occurred. The marketplace ID is the
  # globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace
  # IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
  attribute(:marketplace_id, String, from: "marketplaceId")
end
ListTransactionsResponse =

The response schema for the listTransactions operation.

Structure.new do
  # @return [TransactionsPayload] The payload for the `listTransactions` operation.
  attribute(:payload, TransactionsPayload)
end