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

Attributes

  • promotionAmount (type: GoogleApi.Content.V2.Model.Amount.t, default: nil) - [required] Amount of the promotion. The values here are the promotion applied to the unit price pretax and to the total of the tax amounts.
  • promotionId (type: String.t, default: nil) - [required] ID of the promotion.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V2.Model.Promotion{
  promotionAmount: GoogleApi.Content.V2.Model.Amount.t() | nil,
  promotionId: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.