Class: Dodopayments::Models::ScheduledPlanChange::Addon

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



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/dodopayments/models/scheduled_plan_change.rb', line 71

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)


76
# File 'lib/dodopayments/models/scheduled_plan_change.rb', line 76

required :addon_id, String

#nameString

Name of the addon

Returns:

  • (String)


82
# File 'lib/dodopayments/models/scheduled_plan_change.rb', line 82

required :name, String

#quantityInteger

Quantity of the addon

Returns:

  • (Integer)


88
# File 'lib/dodopayments/models/scheduled_plan_change.rb', line 88

required :quantity, Integer