Class: Dodopayments::Models::Subscription::ScheduledChange::Addon
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Subscription::ScheduledChange::Addon
- Defined in:
- lib/dodopayments/models/subscription.rb
Instance Attribute Summary collapse
-
#addon_id ⇒ String
The addon ID.
-
#name ⇒ String
Name of the addon.
-
#quantity ⇒ Integer
Quantity of the addon.
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
#initialize(addon_id:, name:, quantity:) ⇒ Object
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/dodopayments/models/subscription.rb', line 345 class Addon < Dodopayments::Internal::Type::BaseModel # @!attribute addon_id # The addon ID # # @return [String] required :addon_id, String # @!attribute name # Name of the addon # # @return [String] required :name, String # @!attribute quantity # Quantity of the addon # # @return [Integer] required :quantity, Integer # @!method initialize(addon_id:, name:, quantity:) # @param addon_id [String] The addon ID # # @param name [String] Name of the addon # # @param quantity [Integer] Quantity of the addon end |
Instance Attribute Details
#addon_id ⇒ String
The addon ID
350 |
# File 'lib/dodopayments/models/subscription.rb', line 350 required :addon_id, String |
#name ⇒ String
Name of the addon
356 |
# File 'lib/dodopayments/models/subscription.rb', line 356 required :name, String |
#quantity ⇒ Integer
Quantity of the addon
362 |
# File 'lib/dodopayments/models/subscription.rb', line 362 required :quantity, Integer |