Class: Peddler::APIs::ProductPricing20220501::PromotionDiscount
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ProductPricing20220501::PromotionDiscount
- Defined in:
- sig/peddler/apis/product_pricing_2022_05_01.rbs
Instance Attribute Summary collapse
-
#amount_off ⇒ Peddler::Money?
readonly
Returns the value of attribute amount_off.
-
#percent_off ⇒ Float?
readonly
Returns the value of attribute percent_off.
-
#type ⇒ String?
readonly
Returns the value of attribute type.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :amount_off, :percent_off, :type ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount
Instance Method Summary collapse
-
#members ⇒ [ :amount_off, :percent_off, :type ]
-
#to_h ⇒ { amount_off: Peddler::Money?, percent_off: Float?, type: String? }
Instance Attribute Details
#amount_off ⇒ Peddler::Money? (readonly)
Returns the value of attribute amount_off.
611 612 613 |
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 611 def amount_off @amount_off end |
#percent_off ⇒ Float? (readonly)
Returns the value of attribute percent_off.
612 613 614 |
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 612 def percent_off @percent_off end |
#type ⇒ String? (readonly)
Returns the value of attribute type.
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
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 ]
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
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
|
.parse ⇒ Peddler::APIs::ProductPricing20220501::PromotionDiscount
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 ]
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? }
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? }
|