View Source GoogleApi.Content.V21.Model.MonetaryAmount (google_api_content v0.67.1)

Attributes

  • priceAmount (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - The pre-tax or post-tax price depends on the location of the order. - For countries (for example, "US". where price attribute excludes tax, this field corresponds to the pre-tax value. - For coutries (for example, "France") where price attribute includes tax, this field corresponds to the post-tax value .
  • taxAmount (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - Tax value, present only for countries where price attribute excludes tax (for example, "US". No tax is referenced as 0 value with the corresponding currency.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.MonetaryAmount{
  priceAmount: GoogleApi.Content.V21.Model.Price.t() | nil,
  taxAmount: GoogleApi.Content.V21.Model.Price.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.