Class: Stigg::Models::V1::SubscriptionPreviewParams::Addon
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::SubscriptionPreviewParams::Addon
- Defined in:
- lib/stigg/models/v1/subscription_preview_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Addon ID.
-
#quantity ⇒ Integer
Number of addon instances.
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(customer_id:, plan_id:, addons: nil, applied_coupon: nil, billable_features: nil, billing_country_code: nil, billing_cycle_anchor: nil, billing_information: nil, billing_period: nil, charges: nil, paying_customer_id: nil, resource_id: nil, schedule_strategy: nil, start_date: nil, trial_override_configuration: nil, unit_quantity: nil, request_options: {}) ⇒ Object
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 156 class Addon < Stigg::Internal::Type::BaseModel # @!attribute id # Addon ID # # @return [String] required :id, String # @!attribute quantity # Number of addon instances # # @return [Integer] required :quantity, Integer # @!method initialize(id:, quantity:) # Addon configuration # # @param id [String] Addon ID # # @param quantity [Integer] Number of addon instances end |
Instance Attribute Details
#id ⇒ String
Addon ID
161 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 161 required :id, String |
#quantity ⇒ Integer
Number of addon instances
167 |
# File 'lib/stigg/models/v1/subscription_preview_params.rb', line 167 required :quantity, Integer |