GoogleApi.Content.V2.Model.OrderLegacyPromotion (google_api_content v0.51.0) View Source

Attributes

  • benefits (type: list(GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit.t), default: nil) -
  • effectiveDates (type: String.t, default: nil) - The date and time frame when the promotion is active and ready for validation review. Note that the promotion live time may be delayed for a few hours due to the validation review. Start date and end date are separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end date is in the same format.
  • genericRedemptionCode (type: String.t, default: nil) - Optional. The text code that corresponds to the promotion when applied on the retailer?s website.
  • id (type: String.t, default: nil) - The unique ID of the promotion.
  • longTitle (type: String.t, default: nil) - The full title of the promotion.
  • productApplicability (type: String.t, default: nil) - Whether the promotion is applicable to all products or only specific products. Acceptable values are: - "allProducts" - "specificProducts"
  • redemptionChannel (type: String.t, default: nil) - Indicates that the promotion is valid online. Acceptable values are: - "online"

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.OrderLegacyPromotion{
  benefits: [GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit.t()],
  effectiveDates: String.t(),
  genericRedemptionCode: String.t(),
  id: String.t(),
  longTitle: String.t(),
  productApplicability: String.t(),
  redemptionChannel: String.t()
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.