Class: Google::Apis::WalletobjectsV1::DiscoverableProgram
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::DiscoverableProgram
- 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
-
#merchant_signin_info ⇒ Google::Apis::WalletobjectsV1::DiscoverableProgramMerchantSigninInfo
Information about the merchant hosted signin flow for a program.
-
#merchant_signup_info ⇒ Google::Apis::WalletobjectsV1::DiscoverableProgramMerchantSignupInfo
Information about the merchant hosted signup flow for a program.
-
#state ⇒ String
Visibility state of the discoverable program.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiscoverableProgram
constructor
A new instance of DiscoverableProgram.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiscoverableProgram
Returns a new instance of DiscoverableProgram.
1167 1168 1169 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#merchant_signin_info ⇒ Google::Apis::WalletobjectsV1::DiscoverableProgramMerchantSigninInfo
Information about the merchant hosted signin flow for a program.
Corresponds to the JSON property merchantSigninInfo
1155 1156 1157 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1155 def merchant_signin_info @merchant_signin_info end |
#merchant_signup_info ⇒ Google::Apis::WalletobjectsV1::DiscoverableProgramMerchantSignupInfo
Information about the merchant hosted signup flow for a program.
Corresponds to the JSON property merchantSignupInfo
1160 1161 1162 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1160 def merchant_signup_info @merchant_signup_info end |
#state ⇒ String
Visibility state of the discoverable program.
Corresponds to the JSON property state
1165 1166 1167 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1165 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1172 1173 1174 1175 1176 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1172 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 |