Class: Telnyx::Models::BalanceRetrieveResponse::Data

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

Overview

See Also:

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, pending: 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.

  • pending (String) (defaults to: nil)

    The account’s pending amount.

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

    Identifies the type of the resource.



# File 'lib/telnyx/models/balance_retrieve_response.rb', line 53

Instance Attribute Details

#available_creditString?

Available amount to spend (balance + credit limit)

Returns:

  • (String, nil)


21
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 21

optional :available_credit, String

#balanceString?

The account’s current balance.

Returns:

  • (String, nil)


27
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 27

optional :balance, String

#credit_limitString?

The account’s credit limit.

Returns:

  • (String, nil)


33
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 33

optional :credit_limit, String

#currencyString?

The ISO 4217 currency identifier.

Returns:

  • (String, nil)


39
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 39

optional :currency, String

#pendingString?

The account’s pending amount.

Returns:

  • (String, nil)


45
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 45

optional :pending, String

#record_typeSymbol, ...

Identifies the type of the resource.



51
# File 'lib/telnyx/models/balance_retrieve_response.rb', line 51

optional :record_type, enum: -> { Telnyx::Models::BalanceRetrieveResponse::Data::RecordType }