Class: Dodopayments::Models::SubscriptionUpdateParams::CreditEntitlementCart

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/subscription_update_params.rb,
sig/dodopayments/models/subscription_update_params.rbs

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

#initializeObject



160
# File 'sig/dodopayments/models/subscription_update_params.rbs', line 160

def initialize: (

Instance Attribute Details

#credit_entitlement_idString

Parameters:

  • value (String)

Returns:

  • (String)


189
# File 'lib/dodopayments/models/subscription_update_params.rb', line 189

required :credit_entitlement_id, String

#credits_amountString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


194
# File 'lib/dodopayments/models/subscription_update_params.rb', line 194

optional :credits_amount, String, nil?: true

#expires_after_daysInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


199
# File 'lib/dodopayments/models/subscription_update_params.rb', line 199

optional :expires_after_days, Integer, nil?: true

#low_balance_threshold_percentInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


204
# File 'lib/dodopayments/models/subscription_update_params.rb', line 204

optional :low_balance_threshold_percent, Integer, nil?: true

#max_rollover_countInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


209
# File 'lib/dodopayments/models/subscription_update_params.rb', line 209

optional :max_rollover_count, Integer, nil?: true

#overage_enabledBoolean?

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


214
# File 'lib/dodopayments/models/subscription_update_params.rb', line 214

optional :overage_enabled, Dodopayments::Internal::Type::Boolean, nil?: true

#overage_limitString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


219
# File 'lib/dodopayments/models/subscription_update_params.rb', line 219

optional :overage_limit, String, nil?: true

#rollover_enabledBoolean?

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


224
# File 'lib/dodopayments/models/subscription_update_params.rb', line 224

optional :rollover_enabled, Dodopayments::Internal::Type::Boolean, nil?: true

#rollover_percentageInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


229
# File 'lib/dodopayments/models/subscription_update_params.rb', line 229

optional :rollover_percentage, Integer, nil?: true

#rollover_timeframe_countInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


234
# File 'lib/dodopayments/models/subscription_update_params.rb', line 234

optional :rollover_timeframe_count, Integer, nil?: true

#rollover_timeframe_intervalSymbol, ...

Unit of a duration count (e.g. license-key validity period).

Parameters:

  • value (Dodopayments::Models::time_interval, nil)

Returns:



240
# File 'lib/dodopayments/models/subscription_update_params.rb', line 240

optional :rollover_timeframe_interval, enum: -> { Dodopayments::TimeInterval }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


174
# File 'sig/dodopayments/models/subscription_update_params.rbs', line 174

def to_hash: -> {