Class: Google::Apis::WalletobjectsV1::ActivationOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_urlString

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

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 33

def activation_url
  @activation_url
end

#allow_reactivationBoolean 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

Returns:

  • (Boolean)


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