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

A range of postal codes that defines the delivery area. Only set firstPostalCode when specifying a single postal code.

Attributes

  • firstPostalCode (type: String.t, default: nil) - Required. A postal code or a pattern of the form prefix denoting the inclusive lower bound of the range defining the area. Examples values: "94108", `"9410","9*"`.
  • lastPostalCode (type: String.t, default: nil) - A postal code or a pattern of the form prefix denoting the inclusive upper bound of the range defining the area (for example [070 - 078*] results in the range [07000 - 07899]). It must have the same length as firstPostalCode: if firstPostalCode is a postal code then lastPostalCode must be a postal code too; if firstPostalCode is a pattern then lastPostalCode must be a pattern with the same prefix length. Ignored if not set, then the area is defined as being all the postal codes matching firstPostalCode.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.DeliveryAreaPostalCodeRange{
  firstPostalCode: String.t() | nil,
  lastPostalCode: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.