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.



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

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



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

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



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

def 
  @merchant_signup_info
end

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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