# frozen_string_literal: true

# This file is generated. Do not edit.

require "structure"

module Peddler
  module Types
    module SellerWallet20240301
      # Details of the bank account involved in the transaction.
      TransactionAccount = Structure.new do
        # @return [String] The currency code in ISO 4217 format
        attribute(:bank_account_currency, String, from: "bankAccountCurrency")

        # @return [String] Bank account format
        attribute(:bank_account_number_format, String, from: "bankAccountNumberFormat")

        # @return [String] The name of the bank
        attribute(:bank_name, String, from: "bankName")

        # @return [String] The unique identifier provided by Amazon to identify the account
        attribute?(:account_id, String, from: "accountId")

        # @return [String] The two digit country code, in ISO 3166 format. This field is OPTIONAL for
        # transactionSourceAccount object but is MANDATORY field for transactionDestinationAccount
        attribute?(:bank_account_country_code, String, from: "bankAccountCountryCode")

        # @return [String] BankAccount holder's name
        attribute?(:bank_account_holder_name, String, from: "bankAccountHolderName")

        # @return [String] Last 3 digit of the bank account number
        attribute?(:bank_account_number_tail, String, from: "bankAccountNumberTail")
      end
    end
  end
end
