Class: Google::Apis::WalletobjectsV1::ActivationOptions
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ActivationOptions
- 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
Overview
ActivationOptions for the class
Instance Attribute Summary collapse
-
#activation_url ⇒ String
HTTPS URL that supports REST semantics.
-
#allow_reactivation ⇒ Boolean
(also: #allow_reactivation?)
Flag to allow users to make activation call from different device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivationOptions
constructor
A new instance of ActivationOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActivationOptions
Returns a new instance of ActivationOptions.
43 44 45 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 43 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_url ⇒ String
HTTPS URL that supports REST semantics. Would be used for requesting
activation from partners for given valuable, triggered by the users.
Corresponds to the JSON property activationUrl
33 34 35 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 33 def activation_url @activation_url end |
#allow_reactivation ⇒ Boolean Also known as: allow_reactivation?
Flag to allow users to make activation call from different device. This allows
client to render the activation button enabled even if the activationStatus is
ACTIVATED but the requested device is different than the current device.
Corresponds to the JSON property allowReactivation
40 41 42 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 40 def allow_reactivation @allow_reactivation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
48 49 50 51 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 48 def update!(**args) @activation_url = args[:activation_url] if args.key?(:activation_url) @allow_reactivation = args[:allow_reactivation] if args.key?(:allow_reactivation) end |