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

View Source

Attributes

  • alternateText (type: String.t, default: nil) - An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned.
  • initialRotatingBarcodeValues (type: GoogleApi.WalletObjects.V1.Model.RotatingBarcodeValues.t, default: nil) - Input only. NOTE: This feature is only available for the transit vertical. Optional set of initial rotating barcode values. This allows a small subset of barcodes to be included with the object. Further rotating barcode values must be uploaded with the UploadRotatingBarcodeValues endpoint.
  • renderEncoding (type: String.t, default: nil) - The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google.
  • showCodeText (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google.
  • totpDetails (type: GoogleApi.WalletObjects.V1.Model.RotatingBarcodeTotpDetails.t, default: nil) - Details used to evaluate the {totp_value_n} substitutions.
  • type (type: String.t, default: nil) - The type of this barcode.
  • valuePattern (type: String.t, default: nil) - String encoded barcode value. This string supports the following substitutions: {totp_value_n}: Replaced with the TOTP value (see TotpDetails.parameters). {totp_timestamp_millis}: Replaced with the timestamp (millis since epoch) at which the barcode was generated. * {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch) at which the barcode was generated.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.RotatingBarcode{
  alternateText: String.t() | nil,
  initialRotatingBarcodeValues:
    GoogleApi.WalletObjects.V1.Model.RotatingBarcodeValues.t() | nil,
  renderEncoding: String.t() | nil,
  showCodeText: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  totpDetails:
    GoogleApi.WalletObjects.V1.Model.RotatingBarcodeTotpDetails.t() | nil,
  type: String.t() | nil,
  valuePattern: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.