Class: Dodopayments::Models::SubscriptionUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/subscription_update_params.rb

Overview

Defined Under Namespace

Modules: CancelReason Classes: CreditEntitlementCart, DisableOnDemand

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(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

Parameters:

  • credit_entitlement_id (String)
  • credits_amount (String, nil) (defaults to: nil)
  • expires_after_days (Integer, nil) (defaults to: nil)
  • low_balance_threshold_percent (Integer, nil) (defaults to: nil)
  • max_rollover_count (Integer, nil) (defaults to: nil)
  • overage_enabled (Boolean, nil) (defaults to: nil)
  • overage_limit (String, nil) (defaults to: nil)
  • rollover_enabled (Boolean, nil) (defaults to: nil)
  • rollover_percentage (Integer, nil) (defaults to: nil)
  • rollover_timeframe_count (Integer, nil) (defaults to: nil)
  • rollover_timeframe_interval (Symbol, Dodopayments::Models::TimeInterval, nil) (defaults to: nil)


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

Instance Attribute Details

#billingDodopayments::Models::BillingAddress?



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

optional :billing, -> { Dodopayments::BillingAddress }, nil?: true

#cancel_at_next_billing_dateBoolean?

When set, the subscription will remain active until the end of billing period

Returns:

  • (Boolean, nil)


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

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

#cancel_reasonSymbol, ...



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

optional :cancel_reason, enum: -> { Dodopayments::SubscriptionUpdateParams::CancelReason }, nil?: true

#credit_entitlement_cartArray<Dodopayments::Models::SubscriptionUpdateParams::CreditEntitlementCart>?

Update credit entitlement cart settings



35
36
37
38
39
# File 'lib/dodopayments/models/subscription_update_params.rb', line 35

optional :credit_entitlement_cart,
-> {
  Dodopayments::Internal::Type::ArrayOf[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]
},
nil?: true

#customer_nameString?

Returns:

  • (String, nil)


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

optional :customer_name, String, nil?: true

#disable_on_demandDodopayments::Models::SubscriptionUpdateParams::DisableOnDemand?



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

optional :disable_on_demand, -> { Dodopayments::SubscriptionUpdateParams::DisableOnDemand }, nil?: true

#metadataHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


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

optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true

#next_billing_dateTime?

Returns:

  • (Time, nil)


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

optional :next_billing_date, Time, nil?: true

#statusSymbol, ...



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

optional :status, enum: -> { Dodopayments::SubscriptionStatus }, nil?: true

#subscription_idString

Returns:

  • (String)


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

required :subscription_id, String

#tax_idString?

Returns:

  • (String, nil)


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

optional :tax_id, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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