Class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Overview
Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands.
Instance Attribute Summary collapse
-
#brand_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
-
#item_group_id_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
-
#matcher_option ⇒ String
Determines whether to use the custom matchers or the product feed attribute " repricing_rule_id" to specify offer-rule mapping.
-
#offer_id_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
-
#skip_when_on_promotion ⇒ Boolean
(also: #skip_when_on_promotion?)
When true, the rule won't be applied to offers with active promotions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleEligibleOfferMatcher
constructor
A new instance of RepricingRuleEligibleOfferMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleEligibleOfferMatcher
Returns a new instance of RepricingRuleEligibleOfferMatcher.
11233 11234 11235 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
Corresponds to the JSON property brandMatcher
11209 11210 11211 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11209 def brand_matcher @brand_matcher end |
#item_group_id_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
Corresponds to the JSON property itemGroupIdMatcher
11214 11215 11216 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11214 def item_group_id_matcher @item_group_id_matcher end |
#matcher_option ⇒ String
Determines whether to use the custom matchers or the product feed attribute "
repricing_rule_id" to specify offer-rule mapping.
Corresponds to the JSON property matcherOption
11220 11221 11222 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11220 def matcher_option @matcher_option end |
#offer_id_matcher ⇒ Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
Matcher by string attributes.
Corresponds to the JSON property offerIdMatcher
11225 11226 11227 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11225 def offer_id_matcher @offer_id_matcher end |
#skip_when_on_promotion ⇒ Boolean Also known as: skip_when_on_promotion?
When true, the rule won't be applied to offers with active promotions.
Corresponds to the JSON property skipWhenOnPromotion
11230 11231 11232 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11230 def skip_when_on_promotion @skip_when_on_promotion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11238 11239 11240 11241 11242 11243 11244 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11238 def update!(**args) @brand_matcher = args[:brand_matcher] if args.key?(:brand_matcher) @item_group_id_matcher = args[:item_group_id_matcher] if args.key?(:item_group_id_matcher) @matcher_option = args[:matcher_option] if args.key?(:matcher_option) @offer_id_matcher = args[:offer_id_matcher] if args.key?(:offer_id_matcher) @skip_when_on_promotion = args[:skip_when_on_promotion] if args.key?(:skip_when_on_promotion) end |