Class: Zavudev::Models::SubAccountGetBalanceResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::SubAccountGetBalanceResponse
- Defined in:
- lib/zavudev/models/sub_account_get_balance_response.rb
Overview
Instance Attribute Summary collapse
-
#balance ⇒ Integer
Team balance in cents.
-
#credit_limit ⇒ Integer?
Spending cap in cents (only for sub-accounts).
- #currency ⇒ String
-
#is_sub_account ⇒ Boolean?
Whether this API key belongs to a sub-account.
-
#total_spent ⇒ Integer?
Total amount spent by this sub-account in cents (only for sub-accounts).
Instance Method Summary collapse
- #initialize(balance:, currency:, credit_limit: nil, is_sub_account: nil, total_spent: nil) ⇒ Object constructor
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
|
|
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 36
|
Instance Attribute Details
#balance ⇒ Integer
Team balance in cents. All charges are billed to the parent team.
11 |
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 11 required :balance, Integer |
#credit_limit ⇒ Integer?
Spending cap in cents (only for sub-accounts).
22 |
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 22 optional :credit_limit, Integer, api_name: :creditLimit, nil?: true |
#currency ⇒ String
16 |
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 16 required :currency, String |
#is_sub_account ⇒ Boolean?
Whether this API key belongs to a sub-account.
28 |
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 28 optional :is_sub_account, Zavudev::Internal::Type::Boolean, api_name: :isSubAccount |
#total_spent ⇒ Integer?
Total amount spent by this sub-account in cents (only for sub-accounts).
34 |
# File 'lib/zavudev/models/sub_account_get_balance_response.rb', line 34 optional :total_spent, Integer, api_name: :totalSpent, nil?: true |