google_api_content v0.30.0 GoogleApi.Content.V21.Model.Headers View Source

A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or location must be set.

Attributes

  • locations (type: list(GoogleApi.Content.V21.Model.LocationIdSet.t), default: nil) - A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
  • numberOfItems (type: list(String.t), default: nil) - A list of inclusive number of items upper bounds. The last value can be "infinity". For example ["10", "50", "infinity"] represents the headers "<= 10 items", " 50 items". Must be non-empty. Can only be set if all other fields are not set.
  • postalCodeGroupNames (type: list(String.t), default: nil) - A list of postal group names. The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
  • prices (type: list(GoogleApi.Content.V21.Model.Price.t), default: nil) - A list of inclusive order price upper bounds. The last price's value can be "infinity". For example [{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}] represents the headers "<= $10", " $500". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
  • weights (type: list(GoogleApi.Content.V21.Model.Weight.t), default: nil) - A list of inclusive order weight upper bounds. The last weight's value can be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers "<= 10kg", " 50kg". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Content.V21.Model.Headers{
  locations: [GoogleApi.Content.V21.Model.LocationIdSet.t()],
  numberOfItems: [String.t()],
  postalCodeGroupNames: [String.t()],
  prices: [GoogleApi.Content.V21.Model.Price.t()],
  weights: [GoogleApi.Content.V21.Model.Weight.t()]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.