Class: ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb

Defined Under Namespace

Modules: BalanceType

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(amount: , balance_type: , vendor_code: , vendor_code_type: ) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance for more details.

Parameters:

  • amount (Integer) (defaults to: )

    The balance amount.

  • balance_type (Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType) (defaults to: )

    The specific type of balance reported. One of ‘opening_ledger`, `closing_ledger`

  • vendor_code (String) (defaults to: )

    The code used by the bank when reporting this specific balance.

  • vendor_code_type (String, nil) (defaults to: )

    The type of ‘vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk



# File 'lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb', line 99


Instance Attribute Details

#amountInteger

The balance amount.

Returns:

  • (Integer)


72
# File 'lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb', line 72

required :amount, Integer

#balance_typeSymbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType

The specific type of balance reported. One of ‘opening_ledger`, `closing_ledger`, `current_ledger`, `opening_available`, `opening_available_next_business_day`, `closing_available`, `current_available`, ’previously_closed_book’, or ‘other`.



81
82
# File 'lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb', line 81

required :balance_type,
enum: -> { ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType }

#vendor_codeString

The code used by the bank when reporting this specific balance.

Returns:

  • (String)


88
# File 'lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb', line 88

required :vendor_code, String

#vendor_code_typeString?

The type of ‘vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`, `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`, `swift`, or `us_bank`.

Returns:

  • (String, nil)


97
# File 'lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb', line 97

required :vendor_code_type, String, nil?: true