Class: K2ConnectRuby::K2Services::Payloads::Webhooks::CardTransactionReversed
- Inherits:
-
K2CommonEvents
- Object
- K2Webhooks
- K2CommonEvents
- K2ConnectRuby::K2Services::Payloads::Webhooks::CardTransactionReversed
- Defined in:
- lib/k2-connect-ruby/k2_services/payloads/webhooks/card_transaction_reversed.rb
Constant Summary
Constants inherited from K2CommonEvents
K2CommonEvents::REFERENCE_EXCEPTIONS
Instance Attribute Summary collapse
-
#customer_cc_number ⇒ Object
readonly
Returns the value of attribute customer_cc_number.
-
#till_number ⇒ Object
readonly
Returns the value of attribute till_number.
Attributes inherited from K2CommonEvents
#amount, #currency, #origination_time, #reference, #status
Attributes inherited from K2Webhooks
#created_at, #event_resource, #event_type, #id, #links_resource, #links_self, #resource_id, #topic
Instance Method Summary collapse
-
#initialize(payload) ⇒ CardTransactionReversed
constructor
A new instance of CardTransactionReversed.
Constructor Details
#initialize(payload) ⇒ CardTransactionReversed
Returns a new instance of CardTransactionReversed.
8 9 10 11 12 |
# File 'lib/k2-connect-ruby/k2_services/payloads/webhooks/card_transaction_reversed.rb', line 8 def initialize(payload) super @customer_cc_number = payload.dig("event", "resource", "customer_cc_number") @till_number = payload.dig("event", "resource", "till_number") end |
Instance Attribute Details
#customer_cc_number ⇒ Object (readonly)
Returns the value of attribute customer_cc_number.
6 7 8 |
# File 'lib/k2-connect-ruby/k2_services/payloads/webhooks/card_transaction_reversed.rb', line 6 def customer_cc_number @customer_cc_number end |
#till_number ⇒ Object (readonly)
Returns the value of attribute till_number.
6 7 8 |
# File 'lib/k2-connect-ruby/k2_services/payloads/webhooks/card_transaction_reversed.rb', line 6 def till_number @till_number end |