class Google::Apis::ContentV2::Promotion
Attributes
promotion_amount[RW]
- required
-
Amount
of the promotion. The values here are the promotion applied
to the unit price pretax and to the total of the tax amounts. Corresponds to the JSON property `promotionAmount` @return [Google::Apis::ContentV2::Amount]
promotion_id[RW]
- required
-
ID of the promotion.
Corresponds to the JSON property `promotionId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 10243 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 10248 def update!(**args) @promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount) @promotion_id = args[:promotion_id] if args.key?(:promotion_id) end