Class: Peddler::APIs::ProductPricing20220501::PurchaseCondition

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

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

Returns the value of attribute amount_threshold.



650
651
652
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 650

def amount_threshold
  @amount_threshold
end

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

Returns the value of attribute quantity_threshold.



651
652
653
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 651

def quantity_threshold
  @quantity_threshold
end

Class Method Details

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



643
644
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 643

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

.members[ :amount_threshold, :quantity_threshold ]

Returns:

  • ([ :amount_threshold, :quantity_threshold ])


646
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 646

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

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



641
642
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 641

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

.parsePeddler::APIs::ProductPricing20220501::PurchaseCondition

Parameters:

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

Returns:



648
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 648

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

Instance Method Details

#members[ :amount_threshold, :quantity_threshold ]

Returns:

  • ([ :amount_threshold, :quantity_threshold ])


653
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 653

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

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



654
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 654

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