Class: Peddler::APIs::Promotions20251201::PurchaseCondition

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

#amount_thresholdPeddler::APIs::Promotions20251201::AmountThreshold? (readonly)

Returns the value of attribute amount_threshold.



531
532
533
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 531

def amount_threshold
  @amount_threshold
end

#quantity_thresholdPeddler::APIs::Promotions20251201::QuantityThreshold? (readonly)

Returns the value of attribute quantity_threshold.



532
533
534
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 532

def quantity_threshold
  @quantity_threshold
end

Class Method Details

.[](amount_threshold:, quantity_threshold:) ⇒ Peddler::APIs::Promotions20251201::PurchaseCondition .[](arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::PurchaseCondition



524
525
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 524

def self.[]: (?amount_threshold: Peddler::APIs::Promotions20251201::AmountThreshold?, ?quantity_threshold: Peddler::APIs::Promotions20251201::QuantityThreshold?) -> Peddler::APIs::Promotions20251201::PurchaseCondition
| (Peddler::APIs::Promotions20251201::AmountThreshold?, Peddler::APIs::Promotions20251201::QuantityThreshold?) -> Peddler::APIs::Promotions20251201::PurchaseCondition

.members[ :amount_threshold, :quantity_threshold ]

Returns:

  • ([ :amount_threshold, :quantity_threshold ])


527
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 527

def self.members: () -> [ :amount_threshold, :quantity_threshold ]

.new(amount_threshold:, quantity_threshold:) ⇒ Peddler::APIs::Promotions20251201::PurchaseCondition .new(arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::PurchaseCondition



522
523
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 522

def self.new: (?amount_threshold: Peddler::APIs::Promotions20251201::AmountThreshold?, ?quantity_threshold: Peddler::APIs::Promotions20251201::QuantityThreshold?) -> Peddler::APIs::Promotions20251201::PurchaseCondition
| (Peddler::APIs::Promotions20251201::AmountThreshold?, Peddler::APIs::Promotions20251201::QuantityThreshold?) -> Peddler::APIs::Promotions20251201::PurchaseCondition

.parsePeddler::APIs::Promotions20251201::PurchaseCondition

Parameters:

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

Returns:



529
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 529

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::PurchaseCondition

Instance Method Details

#members[ :amount_threshold, :quantity_threshold ]

Returns:

  • ([ :amount_threshold, :quantity_threshold ])


534
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 534

def members: () -> [ :amount_threshold, :quantity_threshold ]

#to_h{ amount_threshold: Peddler::APIs::Promotions20251201::AmountThreshold?, quantity_threshold: Peddler::APIs::Promotions20251201::QuantityThreshold? }



535
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 535

def to_h: () -> { amount_threshold: Peddler::APIs::Promotions20251201::AmountThreshold?, quantity_threshold: Peddler::APIs::Promotions20251201::QuantityThreshold? }