Class: Google::Apis::WalletobjectsV1::ExpiryNotification

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

Indicates that the issuer would like Google Wallet to send expiry notifications 2 days prior to the card expiration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExpiryNotification

Returns a new instance of ExpiryNotification.



2198
2199
2200
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2198

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_notificationBoolean Also known as: enable_notification?

Indicates if the object needs to have expiry notification enabled. Corresponds to the JSON property enableNotification

Returns:

  • (Boolean)


2195
2196
2197
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2195

def enable_notification
  @enable_notification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2203
2204
2205
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2203

def update!(**args)
  @enable_notification = args[:enable_notification] if args.key?(:enable_notification)
end