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

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"

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V2.Model.OrderLegacyPromotion{
  benefits: [GoogleApi.Content.V2.Model.OrderLegacyPromotionBenefit.t()] | nil,
  effectiveDates: String.t() | nil,
  genericRedemptionCode: String.t() | nil,
  id: String.t() | nil,
  longTitle: String.t() | nil,
  productApplicability: String.t() | nil,
  redemptionChannel: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.