GoogleApi.WalletObjects.V1.Model.Barcode (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.
  • kind (type: String.t, default: nil) - Identifies what kind of resource this is. Value: the fixed string "walletobjects#barcode".
  • 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.
  • type (type: String.t, default: nil) - The type of barcode.
  • value (type: String.t, default: nil) - The value encoded in the barcode.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.Barcode{
  alternateText: String.t() | nil,
  kind: String.t() | nil,
  renderEncoding: String.t() | nil,
  showCodeText: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  type: String.t() | nil,
  value: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.