Class: Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data
- Defined in:
- lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb
Overview
Defined Under Namespace
Modules: GrantExpirationPeriod, ThresholdType
Instance Attribute Summary collapse
-
#created_at ⇒ Time?
Timestamp of when the record was created.
-
#currency_id ⇒ String
The currency ID for this configuration.
-
#customer_id ⇒ String
The customer ID this configuration belongs to.
-
#grant_expiration_period ⇒ Symbol, Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::GrantExpirationPeriod
Expiration period for auto-recharge grants (1_MONTH or 1_YEAR).
-
#id ⇒ String?
The unique configuration ID.
-
#is_enabled ⇒ Boolean
Whether automatic recharge is enabled.
-
#max_spend_limit ⇒ Float?
Maximum monthly spend limit for automatic recharges.
-
#target_balance ⇒ Float
The target credit balance to recharge to.
-
#threshold_type ⇒ Symbol, Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::ThresholdType
The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT).
-
#threshold_value ⇒ Float
The threshold value that triggers a recharge.
-
#updated_at ⇒ Time?
Timestamp of when the record was last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, currency_id:, customer_id:, grant_expiration_period:, is_enabled:, max_spend_limit:, target_balance:, threshold_type:, threshold_value:, updated_at:) ⇒ Object
constructor
Automatic recharge configuration for a customer and currency.
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:, currency_id:, customer_id:, grant_expiration_period:, is_enabled:, max_spend_limit:, target_balance:, threshold_type:, threshold_value:, updated_at:) ⇒ Object
Automatic recharge configuration for a customer and currency
|
|
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 92
|
Instance Attribute Details
#created_at ⇒ Time?
Timestamp of when the record was created
32 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 32 required :created_at, Time, api_name: :createdAt, nil?: true |
#currency_id ⇒ String
The currency ID for this configuration
38 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 38 required :currency_id, String, api_name: :currencyId |
#customer_id ⇒ String
The customer ID this configuration belongs to
44 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 44 required :customer_id, String, api_name: :customerId |
#grant_expiration_period ⇒ Symbol, Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::GrantExpirationPeriod
Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
50 51 52 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 50 required :grant_expiration_period, enum: -> { Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::GrantExpirationPeriod }, api_name: :grantExpirationPeriod |
#id ⇒ String?
The unique configuration ID
26 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 26 required :id, String, nil?: true |
#is_enabled ⇒ Boolean
Whether automatic recharge is enabled
58 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 58 required :is_enabled, Stigg::Internal::Type::Boolean, api_name: :isEnabled |
#max_spend_limit ⇒ Float?
Maximum monthly spend limit for automatic recharges
64 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 64 required :max_spend_limit, Float, api_name: :maxSpendLimit, nil?: true |
#target_balance ⇒ Float
The target credit balance to recharge to
70 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 70 required :target_balance, Float, api_name: :targetBalance |
#threshold_type ⇒ Symbol, Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::ThresholdType
The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
76 77 78 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 76 required :threshold_type, enum: -> { Stigg::Models::V1::Events::CreditGetAutoRechargeResponse::Data::ThresholdType }, api_name: :thresholdType |
#threshold_value ⇒ Float
The threshold value that triggers a recharge
84 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 84 required :threshold_value, Float, api_name: :thresholdValue |
#updated_at ⇒ Time?
Timestamp of when the record was last updated
90 |
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 90 required :updated_at, Time, api_name: :updatedAt, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/events/credit_get_auto_recharge_response.rb', line 126
|