Class: Peddler::APIs::Promotions20251201::PromotionBenefit
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::Promotions20251201::PromotionBenefit
- Defined in:
- sig/peddler/apis/promotions_2025_12_01.rbs
Instance Attribute Summary collapse
-
#additional_tiers ⇒ Array[Peddler::APIs::Promotions20251201::BenefitTier]?
readonly
Returns the value of attribute additional_tiers.
-
#benefit_quantity ⇒ Integer?
readonly
Returns the value of attribute benefit_quantity.
-
#discount ⇒ Peddler::APIs::Promotions20251201::Discount?
readonly
Returns the value of attribute discount.
-
#per_customer_uses ⇒ Integer?
readonly
Returns the value of attribute per_customer_uses.
-
#stacking ⇒ String?
readonly
Returns the value of attribute stacking.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit
Instance Method Summary collapse
-
#members ⇒ [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
-
#to_h ⇒ { additional_tiers: Array[Peddler::APIs::Promotions20251201::BenefitTier]?, benefit_quantity: Integer?, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, stacking: String? }
Instance Attribute Details
#additional_tiers ⇒ Array[Peddler::APIs::Promotions20251201::BenefitTier]? (readonly)
Returns the value of attribute additional_tiers.
411 412 413 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 411 def additional_tiers @additional_tiers end |
#benefit_quantity ⇒ Integer? (readonly)
Returns the value of attribute benefit_quantity.
412 413 414 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 412 def benefit_quantity @benefit_quantity end |
#discount ⇒ Peddler::APIs::Promotions20251201::Discount? (readonly)
Returns the value of attribute discount.
413 414 415 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 413 def discount @discount end |
#per_customer_uses ⇒ Integer? (readonly)
Returns the value of attribute per_customer_uses.
414 415 416 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 414 def per_customer_uses @per_customer_uses end |
#stacking ⇒ String? (readonly)
Returns the value of attribute stacking.
415 416 417 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 415 def stacking @stacking end |
Class Method Details
.[](additional_tiers:, benefit_quantity:, discount:, per_customer_uses:, stacking:) ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit .[](arg0, arg1, arg2, arg3, arg4) ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit
404 405 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 404
def self.[]: (?additional_tiers: Array[Peddler::APIs::Promotions20251201::BenefitTier]?, ?benefit_quantity: Integer?, ?discount: Peddler::APIs::Promotions20251201::Discount?, ?per_customer_uses: Integer?, ?stacking: String?) -> Peddler::APIs::Promotions20251201::PromotionBenefit
| (Array[Peddler::APIs::Promotions20251201::BenefitTier]?, Integer?, Peddler::APIs::Promotions20251201::Discount?, Integer?, String?) -> Peddler::APIs::Promotions20251201::PromotionBenefit
|
.members ⇒ [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
407 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 407
def self.members: () -> [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
|
.new(additional_tiers:, benefit_quantity:, discount:, per_customer_uses:, stacking:) ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit .new(arg0, arg1, arg2, arg3, arg4) ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit
402 403 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 402
def self.new: (?additional_tiers: Array[Peddler::APIs::Promotions20251201::BenefitTier]?, ?benefit_quantity: Integer?, ?discount: Peddler::APIs::Promotions20251201::Discount?, ?per_customer_uses: Integer?, ?stacking: String?) -> Peddler::APIs::Promotions20251201::PromotionBenefit
| (Array[Peddler::APIs::Promotions20251201::BenefitTier]?, Integer?, Peddler::APIs::Promotions20251201::Discount?, Integer?, String?) -> Peddler::APIs::Promotions20251201::PromotionBenefit
|
.parse ⇒ Peddler::APIs::Promotions20251201::PromotionBenefit
409 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 409
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::PromotionBenefit
|
Instance Method Details
#members ⇒ [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
417 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 417
def members: () -> [ :additional_tiers, :benefit_quantity, :discount, :per_customer_uses, :stacking ]
|
#to_h ⇒ { additional_tiers: Array[Peddler::APIs::Promotions20251201::BenefitTier]?, benefit_quantity: Integer?, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, stacking: String? }
418 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 418
def to_h: () -> { additional_tiers: Array[Peddler::APIs::Promotions20251201::BenefitTier]?, benefit_quantity: Integer?, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, stacking: String? }
|