Class: Tikkie::Notifications::RefundNotification
- Inherits:
-
Object
- Object
- Tikkie::Notifications::RefundNotification
- Defined in:
- lib/tikkie/notifications/refund_notification.rb
Overview
Refund notification.
Constant Summary collapse
- NOTIFICATION_TYPE =
"REFUND"
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ RefundNotification
constructor
A new instance of RefundNotification.
- #notification_type ⇒ Object
- #payment_request_token ⇒ Object
- #payment_token ⇒ Object
- #refund_token ⇒ Object
- #subscription_id ⇒ Object
Constructor Details
#initialize(body) ⇒ RefundNotification
Returns a new instance of RefundNotification.
11 12 13 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 11 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 9 def body @body end |
Instance Method Details
#notification_type ⇒ Object
19 20 21 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 19 def notification_type body[:notificationType] end |
#payment_request_token ⇒ Object
23 24 25 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 23 def payment_request_token body[:paymentRequestToken] end |
#payment_token ⇒ Object
27 28 29 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 27 def payment_token body[:paymentToken] end |
#refund_token ⇒ Object
31 32 33 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 31 def refund_token body[:refundToken] end |
#subscription_id ⇒ Object
15 16 17 |
# File 'lib/tikkie/notifications/refund_notification.rb', line 15 def subscription_id body[:subscriptionId] end |