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 Google Wallet 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.



1186
1187
1188
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1186

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



1174
1175
1176
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1174

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



1179
1180
1181
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1179

def 
  @merchant_signup_info
end

#stateString

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

Returns:

  • (String)


1184
1185
1186
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1184

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1191
1192
1193
1194
1195
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1191

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