Class: Peddler::APIs::Promotions20251201::PromotionBenefit

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/promotions_2025_12_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#additional_tiersArray[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_quantityInteger? (readonly)

Returns the value of attribute benefit_quantity.

Returns:

  • (Integer, nil)


412
413
414
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 412

def benefit_quantity
  @benefit_quantity
end

#discountPeddler::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_usesInteger? (readonly)

Returns the value of attribute per_customer_uses.

Returns:

  • (Integer, nil)


414
415
416
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 414

def per_customer_uses
  @per_customer_uses
end

#stackingString? (readonly)

Returns the value of attribute stacking.

Returns:

  • (String, nil)


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

Overloads:



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 ]

Returns:

  • ([ :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

Overloads:



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

.parsePeddler::APIs::Promotions20251201::PromotionBenefit

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



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 ]

Returns:

  • ([ :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? }

Returns:



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? }