Class: Dodopayments::Models::SubscriptionUpdateParams
Overview
Defined Under Namespace
Modules: CancelReason
Classes: CreditEntitlementCart, DisableOnDemand
Instance Attribute Summary collapse
#request_options
Class Method Summary
collapse
Instance Method Summary
collapse
-
#initialize(credit_entitlement_id:, credits_amount: nil, expires_after_days: nil, low_balance_threshold_percent: nil, max_rollover_count: nil, overage_enabled: nil, overage_limit: nil, rollover_enabled: nil, rollover_percentage: nil, rollover_timeframe_count: nil, rollover_timeframe_interval: nil) ⇒ Object
constructor
dump_request
included
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(credit_entitlement_id:, credits_amount: nil, expires_after_days: nil, low_balance_threshold_percent: nil, max_rollover_count: nil, overage_enabled: nil, overage_limit: nil, rollover_enabled: nil, rollover_percentage: nil, rollover_timeframe_count: nil, rollover_timeframe_interval: nil) ⇒ Object
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 185
|
Instance Attribute Details
18
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 18
optional :billing, -> { Dodopayments::BillingAddress }, nil?: true
|
#cancel_at_next_billing_date ⇒ Boolean?
When set, the subscription will remain active until the end of billing period
24
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 24
optional :cancel_at_next_billing_date, Dodopayments::Internal::Type::Boolean, nil?: true
|
#cancel_reason ⇒ Symbol, ...
Free-text cancellation comment (only valid when cancelling or scheduling cancellation).
36
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 36
optional :cancellation_comment, String, nil?: true
|
#cancellation_feedback ⇒ Symbol, ...
Customer-supplied churn reason (only valid when cancelling or scheduling cancellation).
43
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 43
optional :cancellation_feedback, enum: -> { Dodopayments::CancellationFeedback }, nil?: true
|
Update credit entitlement cart settings
#customer_name ⇒ String?
58
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 58
optional :customer_name, String, nil?: true
|
68
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 68
optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true
|
#next_billing_date ⇒ Time?
73
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 73
optional :next_billing_date, Time, nil?: true
|
#status ⇒ Symbol, ...
78
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 78
optional :status, enum: -> { Dodopayments::SubscriptionStatus }, nil?: true
|
#subscription_id ⇒ String
13
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 13
required :subscription_id, String
|
#tax_id ⇒ String?
83
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 83
optional :tax_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/dodopayments/models/subscription_update_params.rb', line 125
|