GoogleApi.WalletObjects.V1.Model.TicketRestrictions (google_api_wallet_objects v0.12.0)

View Source

Attributes

  • otherRestrictions (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Extra restrictions that don't fall under the "route" or "time" categories.
  • routeRestrictions (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Restrictions about routes that may be taken. For example, this may be the string "Reserved CrossCountry trains only".
  • routeRestrictionsDetails (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - More details about the above routeRestrictions.
  • timeRestrictions (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Restrictions about times this ticket may be used.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.TicketRestrictions{
  otherRestrictions: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  routeRestrictions: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  routeRestrictionsDetails:
    GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  timeRestrictions: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.