Class: Lithic::Models::Balance

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/balance.rb

Overview

Defined Under Namespace

Modules: FinancialAccountType

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(available_amount:, created:, currency:, financial_account_token:, financial_account_type:, last_transaction_event_token:, last_transaction_token:, pending_amount:, total_amount:, updated:) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::Balance for more details.

Balance

Parameters:

  • available_amount (Integer)

    Funds available for spend in the currency’s smallest unit (e.g., cents for USD)

  • created (Time)

    Date and time for when the balance was first created.

  • currency (String)

    3-character alphabetic ISO 4217 code for the local currency of the balance.

  • financial_account_token (String)

    Globally unique identifier for the financial account that holds this balance.

  • financial_account_type (Symbol, Lithic::Models::Balance::FinancialAccountType)

    Type of financial account.

  • last_transaction_event_token (String)

    Globally unique identifier for the last financial transaction event that impacte

  • last_transaction_token (String)

    Globally unique identifier for the last financial transaction that impacted this

  • pending_amount (Integer)

    Funds not available for spend due to card authorizations or pending ACH release.

  • total_amount (Integer)

    The sum of available and pending balance in the currency’s smallest unit (e.g.,

  • updated (Time)

    Date and time for when the balance was last updated.



# File 'lib/lithic/models/balance.rb', line 71


Instance Attribute Details

#available_amountInteger

Funds available for spend in the currency’s smallest unit (e.g., cents for USD)

Returns:

  • (Integer)


11
# File 'lib/lithic/models/balance.rb', line 11

required :available_amount, Integer

#createdTime

Date and time for when the balance was first created.

Returns:

  • (Time)


17
# File 'lib/lithic/models/balance.rb', line 17

required :created, Time

#currencyString

3-character alphabetic ISO 4217 code for the local currency of the balance.

Returns:

  • (String)


23
# File 'lib/lithic/models/balance.rb', line 23

required :currency, String

#financial_account_tokenString

Globally unique identifier for the financial account that holds this balance.

Returns:

  • (String)


29
# File 'lib/lithic/models/balance.rb', line 29

required :financial_account_token, String

#financial_account_typeSymbol, Lithic::Models::Balance::FinancialAccountType

Type of financial account.



35
# File 'lib/lithic/models/balance.rb', line 35

required :financial_account_type, enum: -> { Lithic::Balance::FinancialAccountType }

#last_transaction_event_tokenString

Globally unique identifier for the last financial transaction event that impacted this balance.

Returns:

  • (String)


42
# File 'lib/lithic/models/balance.rb', line 42

required :last_transaction_event_token, String

#last_transaction_tokenString

Globally unique identifier for the last financial transaction that impacted this balance.

Returns:

  • (String)


49
# File 'lib/lithic/models/balance.rb', line 49

required :last_transaction_token, String

#pending_amountInteger

Funds not available for spend due to card authorizations or pending ACH release. Shown in the currency’s smallest unit (e.g., cents for USD).

Returns:

  • (Integer)


56
# File 'lib/lithic/models/balance.rb', line 56

required :pending_amount, Integer

#total_amountInteger

The sum of available and pending balance in the currency’s smallest unit (e.g., cents for USD).

Returns:

  • (Integer)


63
# File 'lib/lithic/models/balance.rb', line 63

required :total_amount, Integer

#updatedTime

Date and time for when the balance was last updated.

Returns:

  • (Time)


69
# File 'lib/lithic/models/balance.rb', line 69

required :updated, Time