View Source GoogleApi.Content.V2.Model.ProductTax (google_api_content v0.65.0)

Attributes

  • country (type: String.t, default: nil) - The country within which the item is taxed, specified as a CLDR territory code.
  • locationId (type: String.t, default: nil) - The numeric ID of a location that the tax rate applies to as defined in the AdWords API.
  • postalCode (type: String.t, default: nil) - The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94, 94002-95460, 94-95.
  • rate (type: float(), default: nil) - The percentage of tax rate that applies to the item price.
  • region (type: String.t, default: nil) - The geographic region to which the tax rate applies.
  • taxShip (type: boolean(), default: nil) - Should be set to true if tax is charged on shipping.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V2.Model.ProductTax{
  country: String.t() | nil,
  locationId: String.t() | nil,
  postalCode: String.t() | nil,
  rate: float() | nil,
  region: String.t() | nil,
  taxShip: boolean() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.