Class: Peddler::APIs::ProductPricing20220501::Promotion

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

#promotion_savingsPeddler::APIs::ProductPricing20220501::PromotionSavings (readonly)

Returns the value of attribute promotion_savings.



593
594
595
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 593

def promotion_savings
  @promotion_savings
end

#promotion_typeString (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String)


594
595
596
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 594

def promotion_type
  @promotion_type
end

#purchase_requirementsPeddler::APIs::ProductPricing20220501::PurchaseRequirements? (readonly)

Returns the value of attribute purchase_requirements.



595
596
597
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 595

def purchase_requirements
  @purchase_requirements
end

Class Method Details

.[](promotion_savings:, promotion_type:, purchase_requirements:) ⇒ Peddler::APIs::ProductPricing20220501::Promotion .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ProductPricing20220501::Promotion



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

def self.[]: (promotion_savings: Peddler::APIs::ProductPricing20220501::PromotionSavings, promotion_type: String, ?purchase_requirements: Peddler::APIs::ProductPricing20220501::PurchaseRequirements?) -> Peddler::APIs::ProductPricing20220501::Promotion
| (Peddler::APIs::ProductPricing20220501::PromotionSavings, String, Peddler::APIs::ProductPricing20220501::PurchaseRequirements?) -> Peddler::APIs::ProductPricing20220501::Promotion

.members[ :promotion_savings, :promotion_type, :purchase_requirements ]

Returns:

  • ([ :promotion_savings, :promotion_type, :purchase_requirements ])


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

def self.members: () -> [ :promotion_savings, :promotion_type, :purchase_requirements ]

.new(promotion_savings:, promotion_type:, purchase_requirements:) ⇒ Peddler::APIs::ProductPricing20220501::Promotion .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ProductPricing20220501::Promotion



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

def self.new: (promotion_savings: Peddler::APIs::ProductPricing20220501::PromotionSavings, promotion_type: String, ?purchase_requirements: Peddler::APIs::ProductPricing20220501::PurchaseRequirements?) -> Peddler::APIs::ProductPricing20220501::Promotion
| (Peddler::APIs::ProductPricing20220501::PromotionSavings, String, Peddler::APIs::ProductPricing20220501::PurchaseRequirements?) -> Peddler::APIs::ProductPricing20220501::Promotion

.parsePeddler::APIs::ProductPricing20220501::Promotion

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :promotion_savings, :promotion_type, :purchase_requirements ]

Returns:

  • ([ :promotion_savings, :promotion_type, :purchase_requirements ])


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

def members: () -> [ :promotion_savings, :promotion_type, :purchase_requirements ]

#to_h{ promotion_savings: Peddler::APIs::ProductPricing20220501::PromotionSavings, promotion_type: String, purchase_requirements: Peddler::APIs::ProductPricing20220501::PurchaseRequirements? }

Returns:



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

def to_h: () -> { promotion_savings: Peddler::APIs::ProductPricing20220501::PromotionSavings, promotion_type: String, purchase_requirements: Peddler::APIs::ProductPricing20220501::PurchaseRequirements? }