Class: MerchantToMerchant
- Inherits:
-
K2CommonEvents
- Object
- Webhook
- K2CommonEvents
- MerchantToMerchant
- Defined in:
- lib/k2-connect-ruby/k2_services/payloads/webhooks/m2m_transaction.rb
Constant Summary
Constants inherited from K2CommonEvents
K2CommonEvents::REFERENCE_EXCEPTIONS
Instance Attribute Summary collapse
-
#resource_sending_merchant ⇒ Object
readonly
Returns the value of attribute resource_sending_merchant.
Attributes inherited from K2CommonEvents
#amount, #currency, #origination_time, #reference, #status
Attributes inherited from Webhook
#created_at, #event_resource, #event_type, #id, #links_resource, #links_self, #resource_id, #topic
Instance Method Summary collapse
-
#initialize(payload) ⇒ MerchantToMerchant
constructor
A new instance of MerchantToMerchant.
Constructor Details
#initialize(payload) ⇒ MerchantToMerchant
Returns a new instance of MerchantToMerchant.
4 5 6 7 |
# File 'lib/k2-connect-ruby/k2_services/payloads/webhooks/m2m_transaction.rb', line 4 def initialize(payload) super @resource_sending_merchant = payload.dig('event', 'resource', 'sending_merchant') end |
Instance Attribute Details
#resource_sending_merchant ⇒ Object (readonly)
Returns the value of attribute resource_sending_merchant.
2 3 4 |
# File 'lib/k2-connect-ruby/k2_services/payloads/webhooks/m2m_transaction.rb', line 2 def resource_sending_merchant @resource_sending_merchant end |