Class: Orb::Models::AmountDiscount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::AmountDiscount
- Defined in:
- lib/orb/models/amount_discount.rb
Defined Under Namespace
Modules: DiscountType
Instance Attribute Summary collapse
-
#amount_discount ⇒ String
Only available if discount_type is ‘amount`.
-
#applies_to_price_ids ⇒ Array<String>?
List of price_ids that this discount applies to.
- #discount_type ⇒ Symbol, Orb::Models::AmountDiscount::DiscountType
-
#filters ⇒ Array<Orb::Models::TransformPriceFilter>?
The filters that determine which prices to apply this discount to.
- #reason ⇒ String?
Instance Method Summary collapse
-
#initialize(amount_discount: , discount_type: , applies_to_price_ids: nil, filters: nil, reason: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AmountDiscount 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(amount_discount: , discount_type: , applies_to_price_ids: nil, filters: nil, reason: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::AmountDiscount for more details.
|
|
# File 'lib/orb/models/amount_discount.rb', line 35
|
Instance Attribute Details
#amount_discount ⇒ String
Only available if discount_type is ‘amount`.
10 |
# File 'lib/orb/models/amount_discount.rb', line 10 required :amount_discount, String |
#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.
22 |
# File 'lib/orb/models/amount_discount.rb', line 22 optional :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String], nil?: true |
#discount_type ⇒ Symbol, Orb::Models::AmountDiscount::DiscountType
15 |
# File 'lib/orb/models/amount_discount.rb', line 15 required :discount_type, enum: -> { Orb::AmountDiscount::DiscountType } |
#filters ⇒ Array<Orb::Models::TransformPriceFilter>?
The filters that determine which prices to apply this discount to.
28 |
# File 'lib/orb/models/amount_discount.rb', line 28 optional :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, nil?: true |
#reason ⇒ String?
33 |
# File 'lib/orb/models/amount_discount.rb', line 33 optional :reason, String, nil?: true |