Class: Peddler::APIs::ProductPricing20220501::PromotionSavings

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

#discountPeddler::APIs::ProductPricing20220501::PromotionDiscount? (readonly)

Returns the value of attribute discount.



629
630
631
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 629

def discount
  @discount
end

#discounted_pricePeddler::Money? (readonly)

Returns the value of attribute discounted_price.

Returns:



630
631
632
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 630

def discounted_price
  @discounted_price
end

Class Method Details

.[](discount:, discounted_price:) ⇒ Peddler::APIs::ProductPricing20220501::PromotionSavings .[](arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::PromotionSavings



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

def self.[]: (?discount: Peddler::APIs::ProductPricing20220501::PromotionDiscount?, ?discounted_price: Peddler::Money?) -> Peddler::APIs::ProductPricing20220501::PromotionSavings
| (Peddler::APIs::ProductPricing20220501::PromotionDiscount?, Peddler::Money?) -> Peddler::APIs::ProductPricing20220501::PromotionSavings

.members[ :discount, :discounted_price ]

Returns:

  • ([ :discount, :discounted_price ])


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

def self.members: () -> [ :discount, :discounted_price ]

.new(discount:, discounted_price:) ⇒ Peddler::APIs::ProductPricing20220501::PromotionSavings .new(arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::PromotionSavings



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

def self.new: (?discount: Peddler::APIs::ProductPricing20220501::PromotionDiscount?, ?discounted_price: Peddler::Money?) -> Peddler::APIs::ProductPricing20220501::PromotionSavings
| (Peddler::APIs::ProductPricing20220501::PromotionDiscount?, Peddler::Money?) -> Peddler::APIs::ProductPricing20220501::PromotionSavings

.parsePeddler::APIs::ProductPricing20220501::PromotionSavings

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :discount, :discounted_price ]

Returns:

  • ([ :discount, :discounted_price ])


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

def members: () -> [ :discount, :discounted_price ]

#to_h{ discount: Peddler::APIs::ProductPricing20220501::PromotionDiscount?, discounted_price: Peddler::Money? }

Returns:



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

def to_h: () -> { discount: Peddler::APIs::ProductPricing20220501::PromotionDiscount?, discounted_price: Peddler::Money? }