Class: Orb::Models::TrialDiscount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::TrialDiscount
- Defined in:
- lib/orb/models/trial_discount.rb
Defined Under Namespace
Modules: DiscountType
Instance Attribute Summary collapse
-
#applies_to_price_ids ⇒ Array<String>?
List of price_ids that this discount applies to.
- #discount_type ⇒ Symbol, Orb::Models::TrialDiscount::DiscountType
-
#filters ⇒ Array<Orb::Models::TransformPriceFilter>?
The filters that determine which prices to apply this discount to.
- #reason ⇒ String?
-
#trial_amount_discount ⇒ String?
Only available if discount_type is ‘trial`.
-
#trial_percentage_discount ⇒ Float?
Only available if discount_type is ‘trial`.
Instance Method Summary collapse
-
#initialize(discount_type: , applies_to_price_ids: nil, filters: nil, reason: nil, trial_amount_discount: nil, trial_percentage_discount: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TrialDiscount for more details.
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(discount_type: , applies_to_price_ids: nil, filters: nil, reason: nil, trial_amount_discount: nil, trial_percentage_discount: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::TrialDiscount for more details.
|
|
# File 'lib/orb/models/trial_discount.rb', line 41
|
Instance Attribute Details
#applies_to_price_ids ⇒ Array<String>?
List of price_ids that this discount applies to. For plan/plan phase discounts, this can be a subset of prices.
16 |
# File 'lib/orb/models/trial_discount.rb', line 16 optional :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String], nil?: true |
#discount_type ⇒ Symbol, Orb::Models::TrialDiscount::DiscountType
9 |
# File 'lib/orb/models/trial_discount.rb', line 9 required :discount_type, enum: -> { Orb::TrialDiscount::DiscountType } |
#filters ⇒ Array<Orb::Models::TransformPriceFilter>?
The filters that determine which prices to apply this discount to.
22 |
# File 'lib/orb/models/trial_discount.rb', line 22 optional :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, nil?: true |
#reason ⇒ String?
27 |
# File 'lib/orb/models/trial_discount.rb', line 27 optional :reason, String, nil?: true |
#trial_amount_discount ⇒ String?
Only available if discount_type is ‘trial`
33 |
# File 'lib/orb/models/trial_discount.rb', line 33 optional :trial_amount_discount, String, nil?: true |
#trial_percentage_discount ⇒ Float?
Only available if discount_type is ‘trial`
39 |
# File 'lib/orb/models/trial_discount.rb', line 39 optional :trial_percentage_discount, Float, nil?: true |