Class: Dodopayments::Models::Subscription::ScheduledChange::Addon

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

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

#initialize(addon_id:, name:, quantity:) ⇒ Object

Parameters:

  • addon_id (String)

    The addon ID

  • name (String)

    Name of the addon

  • quantity (Integer)

    Quantity of the addon



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_idString

The addon ID

Returns:

  • (String)


350
# File 'lib/dodopayments/models/subscription.rb', line 350

required :addon_id, String

#nameString

Name of the addon

Returns:

  • (String)


356
# File 'lib/dodopayments/models/subscription.rb', line 356

required :name, String

#quantityInteger

Quantity of the addon

Returns:

  • (Integer)


362
# File 'lib/dodopayments/models/subscription.rb', line 362

required :quantity, Integer