Class: Google::Apis::WalletobjectsV1::ExpiryNotification
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ExpiryNotification
- 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
Indicates that the issuer would like Google Wallet to send expiry notifications 2 days prior to the card expiration.
Instance Attribute Summary collapse
-
#enable_notification ⇒ Boolean
(also: #enable_notification?)
Indicates if the object needs to have expiry notification enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExpiryNotification
constructor
A new instance of ExpiryNotification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExpiryNotification
Returns a new instance of ExpiryNotification.
2265 2266 2267 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_notification ⇒ Boolean Also known as: enable_notification?
Indicates if the object needs to have expiry notification enabled.
Corresponds to the JSON property enableNotification
2262 2263 2264 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2262 def enable_notification @enable_notification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2270 2271 2272 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2270 def update!(**args) @enable_notification = args[:enable_notification] if args.key?(:enable_notification) end |