View Source GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit (google_api_content v0.71.0)
Attributes
-
discount(type:GoogleApi.Content.V2.Model.Price.t, default:nil) - The discount in the order price when the promotion is applied. -
offerIds(type:list(String.t), default:nil) - The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion. -
subType(type:String.t, default:nil) - Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types. Acceptable values are: - "buyMGetMoneyOff" - "buyMGetNMoneyOff" - "buyMGetNPercentOff" - "buyMGetPercentOff" - "freeGift" - "freeGiftWithItemId" - "freeGiftWithValue" - "freeOvernightShipping" - "freeShipping" - "freeTwoDayShipping" - "moneyOff" - "percentageOff" - "rewardPoints" - "salePrice" -
taxImpact(type:GoogleApi.Content.V2.Model.Price.t, default:nil) - The impact on tax when the promotion is applied. -
type(type:String.t, default:nil) - Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping). Acceptable values are: - "product" - "shipping"
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit{ discount: GoogleApi.Content.V2.Model.Price.t() | nil, offerIds: [String.t()] | nil, subType: String.t() | nil, taxImpact: GoogleApi.Content.V2.Model.Price.t() | nil, type: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.