Class: Zavudev::Models::BalanceRetrieveResponse

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

Overview

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(balance:, currency:, credit_limit: nil, is_sub_account: nil, total_spent: nil) ⇒ Object

Parameters:

  • balance (Integer)

    Team balance in cents. All charges are billed to the parent team.

  • currency (String)
  • credit_limit (Integer, nil) (defaults to: nil)

    Spending cap in cents (only for sub-accounts).

  • is_sub_account (Boolean) (defaults to: nil)

    Whether this API key belongs to a sub-account.

  • total_spent (Integer, nil) (defaults to: nil)

    Total amount spent by this sub-account in cents (only for sub-accounts).



# File 'lib/zavudev/models/balance_retrieve_response.rb', line 36

Instance Attribute Details

#balanceInteger

Team balance in cents. All charges are billed to the parent team.

Returns:

  • (Integer)


11
# File 'lib/zavudev/models/balance_retrieve_response.rb', line 11

required :balance, Integer

#credit_limitInteger?

Spending cap in cents (only for sub-accounts).

Returns:

  • (Integer, nil)


22
# File 'lib/zavudev/models/balance_retrieve_response.rb', line 22

optional :credit_limit, Integer, api_name: :creditLimit, nil?: true

#currencyString

Returns:

  • (String)


16
# File 'lib/zavudev/models/balance_retrieve_response.rb', line 16

required :currency, String

#is_sub_accountBoolean?

Whether this API key belongs to a sub-account.

Returns:

  • (Boolean, nil)


28
# File 'lib/zavudev/models/balance_retrieve_response.rb', line 28

optional :is_sub_account, Zavudev::Internal::Type::Boolean, api_name: :isSubAccount

#total_spentInteger?

Total amount spent by this sub-account in cents (only for sub-accounts).

Returns:

  • (Integer, nil)


34
# File 'lib/zavudev/models/balance_retrieve_response.rb', line 34

optional :total_spent, Integer, api_name: :totalSpent, nil?: true