Class: Google::Apis::WalletobjectsV1::UpcomingNotification
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::UpcomingNotification
- 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 an upcoming card validity notification 1 day before card becomes valid/usable.
Instance Attribute Summary collapse
-
#enable_notification ⇒ Boolean
(also: #enable_notification?)
Indicates if the object needs to have upcoming notification enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpcomingNotification
constructor
A new instance of UpcomingNotification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpcomingNotification
Returns a new instance of UpcomingNotification.
8716 8717 8718 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8716 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_notification ⇒ Boolean Also known as: enable_notification?
Indicates if the object needs to have upcoming notification enabled.
Corresponds to the JSON property enableNotification
8713 8714 8715 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8713 def enable_notification @enable_notification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8721 8722 8723 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8721 def update!(**args) @enable_notification = args[:enable_notification] if args.key?(:enable_notification) end |