Class: Peddler::APIs::ProductPricing20220501::PromotionDiscount

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_offPeddler::Money? (readonly)

Returns the value of attribute amount_off.

Returns:



611
612
613
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 611

def amount_off
  @amount_off
end

#percent_offFloat? (readonly)

Returns the value of attribute percent_off.

Returns:

  • (Float, nil)


612
613
614
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 612

def percent_off
  @percent_off
end

#typeString? (readonly)

Returns the value of attribute type.

Returns:

  • (String, nil)


613
614
615
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 613

def type
  @type
end

Class Method Details

.[](amount_off:, percent_off:, type:) ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount

Overloads:



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

def self.[]: (?amount_off: Peddler::Money?, ?percent_off: Float?, ?type: String?) -> Peddler::APIs::ProductPricing20220501::PromotionDiscount
| (Peddler::Money?, Float?, String?) -> Peddler::APIs::ProductPricing20220501::PromotionDiscount

.members[ :amount_off, :percent_off, :type ]

Returns:

  • ([ :amount_off, :percent_off, :type ])


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

def self.members: () -> [ :amount_off, :percent_off, :type ]

.new(amount_off:, percent_off:, type:) ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount

Overloads:



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

def self.new: (?amount_off: Peddler::Money?, ?percent_off: Float?, ?type: String?) -> Peddler::APIs::ProductPricing20220501::PromotionDiscount
| (Peddler::Money?, Float?, String?) -> Peddler::APIs::ProductPricing20220501::PromotionDiscount

.parsePeddler::APIs::ProductPricing20220501::PromotionDiscount

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :amount_off, :percent_off, :type ]

Returns:

  • ([ :amount_off, :percent_off, :type ])


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

def members: () -> [ :amount_off, :percent_off, :type ]

#to_h{ amount_off: Peddler::Money?, percent_off: Float?, type: String? }

Returns:

  • ({ amount_off: Peddler::Money?, percent_off: Float?, type: String? })


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

def to_h: () -> { amount_off: Peddler::Money?, percent_off: Float?, type: String? }