Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 858 Bytes

UpdatePromotionUpdateRuleParamsPromotionPromotionRulesAttributesInner.md

File metadata and controls

22 lines (16 loc) · 858 Bytes

SpreeClient::UpdatePromotionUpdateRuleParamsPromotionPromotionRulesAttributesInner

Properties

Name Type Description Notes
id String To update an existing Promotion Rule, you are required to pass the ID of the rule you are updating. [optional]
type String Set the Promotion Rule type. [optional]
preferred_country_id Integer Each rule type has its own preferred attributes. In this example we are changing the ID of the Country this rule applies to. To learn more about Spree preferences visit TODO: [LINK]. [optional]

Example

require 'spree_client'

instance = SpreeClient::UpdatePromotionUpdateRuleParamsPromotionPromotionRulesAttributesInner.new(
  id: 22,
  type: Spree::Promotion::Rules::Country,
  preferred_country_id: 143
)