Class: Google::Apis::WalletobjectsV1::DiscoverableProgram

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

Information about how a class may be discovered and instantiated from within the Android Pay app. This is done by searching for a loyalty or gift card program and scanning or manually entering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiscoverableProgram

Returns a new instance of DiscoverableProgram.



1171
1172
1173
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1171

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#merchant_signin_infoGoogle::Apis::WalletobjectsV1::DiscoverableProgramMerchantSigninInfo

Information about the merchant hosted signin flow for a program. Corresponds to the JSON property merchantSigninInfo



1159
1160
1161
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1159

def 
  @merchant_signin_info
end

#merchant_signup_infoGoogle::Apis::WalletobjectsV1::DiscoverableProgramMerchantSignupInfo

Information about the merchant hosted signup flow for a program. Corresponds to the JSON property merchantSignupInfo



1164
1165
1166
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1164

def 
  @merchant_signup_info
end

#stateString

Visibility state of the discoverable program. Corresponds to the JSON property state

Returns:

  • (String)


1169
1170
1171
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1169

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1176
1177
1178
1179
1180
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1176

def update!(**args)
  @merchant_signin_info = args[:merchant_signin_info] if args.key?(:merchant_signin_info)
  @merchant_signup_info = args[:merchant_signup_info] if args.key?(:merchant_signup_info)
  @state = args[:state] if args.key?(:state)
end