Class: Zavudev::Models::SubAccount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::SubAccount
- Defined in:
- lib/zavudev/models/sub_account.rb
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#api_key ⇒ String?
API key for the sub-account.
- #created_at ⇒ Time
-
#credit_limit ⇒ Integer?
Spending cap in cents.
-
#external_id ⇒ String?
External reference ID set by the parent account.
- #id ⇒ String
- #metadata ⇒ Hash{Symbol=>Object}?
- #name ⇒ String
- #status ⇒ Symbol, Zavudev::Models::SubAccount::Status
-
#total_spent ⇒ Integer
Total amount spent by this sub-account in cents.
Instance Method Summary collapse
-
#initialize(id:, created_at:, name:, status:, total_spent:, api_key: nil, credit_limit: nil, external_id: nil, metadata: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see SubAccount for more details.
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(id:, created_at:, name:, status:, total_spent:, api_key: nil, credit_limit: nil, external_id: nil, metadata: nil) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::SubAccount for more details.
|
|
# File 'lib/zavudev/models/sub_account.rb', line 57
|
Instance Attribute Details
#api_key ⇒ String?
API key for the sub-account. Only returned on creation.
37 |
# File 'lib/zavudev/models/sub_account.rb', line 37 optional :api_key, String, api_name: :apiKey |
#created_at ⇒ Time
15 |
# File 'lib/zavudev/models/sub_account.rb', line 15 required :created_at, Time, api_name: :createdAt |
#credit_limit ⇒ Integer?
Spending cap in cents. When reached, messages from this sub-account will be blocked.
44 |
# File 'lib/zavudev/models/sub_account.rb', line 44 optional :credit_limit, Integer, api_name: :creditLimit, nil?: true |
#external_id ⇒ String?
External reference ID set by the parent account.
50 |
# File 'lib/zavudev/models/sub_account.rb', line 50 optional :external_id, String, api_name: :externalId, nil?: true |
#id ⇒ String
10 |
# File 'lib/zavudev/models/sub_account.rb', line 10 required :id, String |
#metadata ⇒ Hash{Symbol=>Object}?
55 |
# File 'lib/zavudev/models/sub_account.rb', line 55 optional :metadata, Zavudev::Internal::Type::HashOf[Zavudev::Internal::Type::Unknown], nil?: true |
#name ⇒ String
20 |
# File 'lib/zavudev/models/sub_account.rb', line 20 required :name, String |
#status ⇒ Symbol, Zavudev::Models::SubAccount::Status
25 |
# File 'lib/zavudev/models/sub_account.rb', line 25 required :status, enum: -> { Zavudev::SubAccount::Status } |
#total_spent ⇒ Integer
Total amount spent by this sub-account in cents.
31 |
# File 'lib/zavudev/models/sub_account.rb', line 31 required :total_spent, Integer, api_name: :totalSpent |