Class: Telnyx::Models::ManagedAccountBalance

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/managed_account_balance.rb

Defined Under Namespace

Modules: RecordType

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_credit: nil, balance: nil, credit_limit: nil, currency: nil, record_type: nil) ⇒ Object

Parameters:

  • available_credit (String) (defaults to: nil)

    Available amount to spend (balance + credit limit)

  • balance (String) (defaults to: nil)

    The account’s current balance.

  • credit_limit (String) (defaults to: nil)

    The account’s credit limit.

  • currency (String) (defaults to: nil)

    The ISO 4217 currency identifier.

  • record_type (Symbol, Telnyx::Models::ManagedAccountBalance::RecordType) (defaults to: nil)

    Identifies the type of the resource.



# File 'lib/telnyx/models/managed_account_balance.rb', line 36

Instance Attribute Details

#available_creditString?

Available amount to spend (balance + credit limit)

Returns:

  • (String, nil)


10
# File 'lib/telnyx/models/managed_account_balance.rb', line 10

optional :available_credit, String

#balanceString?

The account’s current balance.

Returns:

  • (String, nil)


16
# File 'lib/telnyx/models/managed_account_balance.rb', line 16

optional :balance, String

#credit_limitString?

The account’s credit limit.

Returns:

  • (String, nil)


22
# File 'lib/telnyx/models/managed_account_balance.rb', line 22

optional :credit_limit, String

#currencyString?

The ISO 4217 currency identifier.

Returns:

  • (String, nil)


28
# File 'lib/telnyx/models/managed_account_balance.rb', line 28

optional :currency, String

#record_typeSymbol, ...

Identifies the type of the resource.



34
# File 'lib/telnyx/models/managed_account_balance.rb', line 34

optional :record_type, enum: -> { Telnyx::ManagedAccountBalance::RecordType }