View Source GoogleApi.Content.V21.Model.LoyaltyProgram (google_api_content v0.70.0)

Allows the setting up of loyalty program benefits (for example price or points). https://support.google.com/merchants/answer/12922446

Attributes

  • cashbackForFutureUse (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - Optional. The cashback that can be used for future purchases.
  • loyaltyPoints (type: String.t, default: nil) - Optional. The amount of loyalty points earned on a purchase.
  • memberPriceEffectiveDate (type: String.t, default: nil) - Optional. A date range during which the item is eligible for member price. If not specified, the member price is always applicable. The date range is represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
  • price (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - Optional. The price for members of the given tier (instant discount price). Must be smaller or equal to the regular price.
  • programLabel (type: String.t, default: nil) - Required. The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. It must be provided so that system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.
  • tierLabel (type: String.t, default: nil) - Required. The label of the tier within the loyalty program. Must match one of the labels within the program.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.LoyaltyProgram{
  cashbackForFutureUse: GoogleApi.Content.V21.Model.Price.t() | nil,
  loyaltyPoints: String.t() | nil,
  memberPriceEffectiveDate: String.t() | nil,
  price: GoogleApi.Content.V21.Model.Price.t() | nil,
  programLabel: String.t() | nil,
  tierLabel: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.