Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPromotion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

Promotion information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaPromotion

Returns a new instance of GoogleCloudRetailV2alphaPromotion.



3215
3216
3217
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3215

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#promotion_idString

ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: a-zA-Z*. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property promotion. Corresponds to the JSON property promotionId

Returns:

  • (String)


3213
3214
3215
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3213

def promotion_id
  @promotion_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3220
3221
3222
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3220

def update!(**args)
  @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
end