google_api_content v0.11.0 GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit 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.
  • 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).

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
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

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.