Class: Orb::Models::AmountDiscountInterval
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::AmountDiscountInterval
- Defined in:
- lib/orb/models/amount_discount_interval.rb
Defined Under Namespace
Modules: DiscountType
Instance Attribute Summary collapse
-
#amount_discount ⇒ String
Only available if discount_type is ‘amount`.
-
#applies_to_price_interval_ids ⇒ Array<String>
The price interval ids that this discount interval applies to.
- #discount_type ⇒ Symbol, Orb::Models::AmountDiscountInterval::DiscountType
-
#end_date ⇒ Time?
The end date of the discount interval.
-
#filters ⇒ Array<Orb::Models::TransformPriceFilter>
The filters that determine which prices this discount interval applies to.
-
#start_date ⇒ Time
The start date of the discount interval.
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(amount_discount: , applies_to_price_interval_ids: , discount_type: , end_date: , filters: , start_date: ) ⇒ Object
|
|
# File 'lib/orb/models/amount_discount_interval.rb', line 41
|
Instance Attribute Details
#amount_discount ⇒ String
Only available if discount_type is ‘amount`.
10 |
# File 'lib/orb/models/amount_discount_interval.rb', line 10 required :amount_discount, String |
#applies_to_price_interval_ids ⇒ Array<String>
The price interval ids that this discount interval applies to.
16 |
# File 'lib/orb/models/amount_discount_interval.rb', line 16 required :applies_to_price_interval_ids, Orb::Internal::Type::ArrayOf[String] |
#discount_type ⇒ Symbol, Orb::Models::AmountDiscountInterval::DiscountType
21 |
# File 'lib/orb/models/amount_discount_interval.rb', line 21 required :discount_type, enum: -> { Orb::AmountDiscountInterval::DiscountType } |
#end_date ⇒ Time?
The end date of the discount interval.
27 |
# File 'lib/orb/models/amount_discount_interval.rb', line 27 required :end_date, Time, nil?: true |
#filters ⇒ Array<Orb::Models::TransformPriceFilter>
The filters that determine which prices this discount interval applies to.
33 |
# File 'lib/orb/models/amount_discount_interval.rb', line 33 required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } |
#start_date ⇒ Time
The start date of the discount interval.
39 |
# File 'lib/orb/models/amount_discount_interval.rb', line 39 required :start_date, Time |