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

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/subscription_list_response.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



303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/dodopayments/models/subscription_list_response.rb', line 303

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)


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

required :addon_id, String

#nameString

Name of the addon

Returns:

  • (String)


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

required :name, String

#quantityInteger

Quantity of the addon

Returns:

  • (Integer)


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

required :quantity, Integer