GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit (google_api_content v0.52.0) View Source

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"

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit{
  discount: GoogleApi.Content.V2.Model.Price.t(),
  offerIds: [String.t()],
  subType: String.t(),
  taxImpact: GoogleApi.Content.V2.Model.Price.t(),
  type: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.