Class: Dodopayments::Models::SubscriptionListResponse::ScheduledChange

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/subscription_list_response.rb

Overview

See Also:

Defined Under Namespace

Classes: Addon

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Dodopayments::Internal::Type::BaseModel

Instance Attribute Details

#addonsArray<Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon>

Addons included in the scheduled change



245
246
# File 'lib/dodopayments/models/subscription_list_response.rb', line 245

required :addons,
-> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon] }

#created_atTime

When this scheduled change was created

Returns:

  • (Time)


252
# File 'lib/dodopayments/models/subscription_list_response.rb', line 252

required :created_at, Time

#effective_atTime

When the change will be applied

Returns:

  • (Time)


258
# File 'lib/dodopayments/models/subscription_list_response.rb', line 258

required :effective_at, Time

#idString

The scheduled plan change ID

Returns:

  • (String)


239
# File 'lib/dodopayments/models/subscription_list_response.rb', line 239

required :id, String

#product_descriptionString?

Description of the product being changed to

Returns:

  • (String, nil)


276
# File 'lib/dodopayments/models/subscription_list_response.rb', line 276

optional :product_description, String, nil?: true

#product_idString

The product ID the subscription will change to

Returns:

  • (String)


264
# File 'lib/dodopayments/models/subscription_list_response.rb', line 264

required :product_id, String

#product_nameString?

Name of the product being changed to

Returns:

  • (String, nil)


282
# File 'lib/dodopayments/models/subscription_list_response.rb', line 282

optional :product_name, String, nil?: true

#quantityInteger

Quantity for the new plan

Returns:

  • (Integer)


270
# File 'lib/dodopayments/models/subscription_list_response.rb', line 270

required :quantity, Integer