Class: Google::Apis::WalletobjectsV1::RotatingBarcode
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::RotatingBarcode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#alternate_text ⇒ String
An optional text that will override the default text that shows under the barcode.
-
#initial_rotating_barcode_values ⇒ Google::Apis::WalletobjectsV1::RotatingBarcodeValues
A payload containing many barcode values and start date/time.
-
#render_encoding ⇒ String
The render encoding for the barcode.
-
#show_code_text ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Optional text that will be shown when the barcode is hidden behind a click action.
-
#totp_details ⇒ Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetails
Configuration for the time-based OTP substitutions.
-
#type ⇒ String
The type of this barcode.
-
#value_pattern ⇒ String
String encoded barcode value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RotatingBarcode
constructor
A new instance of RotatingBarcode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RotatingBarcode
7332 7333 7334 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7332 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_text ⇒ String
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.
Corresponds to the JSON property alternateText
7292 7293 7294 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7292 def alternate_text @alternate_text end |
#initial_rotating_barcode_values ⇒ Google::Apis::WalletobjectsV1::RotatingBarcodeValues
A payload containing many barcode values and start date/time.
Corresponds to the JSON property initialRotatingBarcodeValues
7297 7298 7299 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7297 def end |
#render_encoding ⇒ String
The render encoding for the barcode. When specified, barcode is rendered in
the given encoding. Otherwise best known encoding is chosen by Google.
Corresponds to the JSON property renderEncoding
7303 7304 7305 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7303 def render_encoding @render_encoding end |
#show_code_text ⇒ Google::Apis::WalletobjectsV1::LocalizedString
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.
Corresponds to the JSON property showCodeText
7310 7311 7312 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7310 def show_code_text @show_code_text end |
#totp_details ⇒ Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetails
Configuration for the time-based OTP substitutions. See https://tools.ietf.org/
html/rfc6238
Corresponds to the JSON property totpDetails
7316 7317 7318 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7316 def totp_details @totp_details end |
#type ⇒ String
The type of this barcode.
Corresponds to the JSON property type
7321 7322 7323 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7321 def type @type end |
#value_pattern ⇒ String
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. Corresponds to the JSON propertyvaluePattern
7330 7331 7332 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7330 def value_pattern @value_pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7337 7338 7339 7340 7341 7342 7343 7344 7345 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7337 def update!(**args) @alternate_text = args[:alternate_text] if args.key?(:alternate_text) = args[:initial_rotating_barcode_values] if args.key?(:initial_rotating_barcode_values) @render_encoding = args[:render_encoding] if args.key?(:render_encoding) @show_code_text = args[:show_code_text] if args.key?(:show_code_text) @totp_details = args[:totp_details] if args.key?(:totp_details) @type = args[:type] if args.key?(:type) @value_pattern = args[:value_pattern] if args.key?(:value_pattern) end |