Class: ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/payment_order_update_params.rb,
sig/modern_treasury/models/payment_order_update_params.rbs

Defined Under Namespace

Modules: AccountNumberType

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(account_number:, account_number_type: nil) ⇒ Object

Parameters:



701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 701

class AccountDetail < ModernTreasury::Internal::Type::BaseModel
  # @!attribute account_number
  #
  #   @return [String]
  required :account_number, String

  # @!attribute account_number_type
  #
  #   @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
  optional :account_number_type,
           enum: -> { ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType }

  # @!method initialize(account_number:, account_number_type: nil)
  #   @param account_number [String]
  #   @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType]

  # @see ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail#account_number_type
  module AccountNumberType
    extend ModernTreasury::Internal::Type::Enum

    ARBITRUM_ADDRESS = :arbitrum_address
    AU_NUMBER = :au_number
    BASE_ADDRESS = :base_address
    CARD_TOKEN = :card_token
    CLABE = :clabe
    ETHEREUM_ADDRESS = :ethereum_address
    HK_NUMBER = :hk_number
    IBAN = :iban
    ID_NUMBER = :id_number
    NZ_NUMBER = :nz_number
    OTHER = :other
    PAN = :pan
    POLYGON_ADDRESS = :polygon_address
    SG_NUMBER = :sg_number
    SOLANA_ADDRESS = :solana_address

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#account_number ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


705
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 705

required :account_number, String

#account_number_type ⇒ Symbol, ...



710
711
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 710

optional :account_number_type,
enum: -> { ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


533
# File 'sig/modern_treasury/models/payment_order_update_params.rbs', line 533

def to_hash: -> {