Class: Google4R::Checkout::Notification
- Inherits:
-
Object
- Object
- Google4R::Checkout::Notification
- Defined in:
- lib/google4r/checkout/notifications.rb
Overview
Abstract class for all the notifications. It should not be instantiated directly.
Direct Known Subclasses
AuthorizationAmountNotification, CancelledSubscriptionNotification, ChargeAmountNotification, ChargebackAmountNotification, NewOrderNotification, OrderStateChangeNotification, RefundAmountNotification, RiskInformationNotification
Instance Attribute Summary collapse
-
#frontend ⇒ Object
The frontend this notification belongs to.
-
#google_order_number ⇒ Object
The Google order number the new order notification belongs to (String).
-
#serial_number ⇒ Object
The serial number of the new order notification (String).
-
#timestamp ⇒ Object
The timestamp of the notification.
Instance Method Summary collapse
-
#initialize(frontend) ⇒ Notification
constructor
Initializes the RiskInformationNotification instance with the given Frontend instance.
Constructor Details
#initialize(frontend) ⇒ Notification
Initializes the RiskInformationNotification instance with the given Frontend instance.
164 165 166 |
# File 'lib/google4r/checkout/notifications.rb', line 164 def initialize(frontend) @frontend = frontend end |
Instance Attribute Details
#frontend ⇒ Object
The frontend this notification belongs to.
152 153 154 |
# File 'lib/google4r/checkout/notifications.rb', line 152 def frontend @frontend end |
#google_order_number ⇒ Object
The Google order number the new order notification belongs to (String).
158 159 160 |
# File 'lib/google4r/checkout/notifications.rb', line 158 def google_order_number @google_order_number end |
#serial_number ⇒ Object
The serial number of the new order notification (String).
155 156 157 |
# File 'lib/google4r/checkout/notifications.rb', line 155 def serial_number @serial_number end |
#timestamp ⇒ Object
The timestamp of the notification. Also see #timestamp=
161 162 163 |
# File 'lib/google4r/checkout/notifications.rb', line 161 def @timestamp end |