Exception: OnlinePayments::SDK::DeclinedRefundException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- OnlinePayments::SDK::DeclinedRefundException
- Defined in:
- lib/onlinepayments/sdk/declined_refund_exception.rb
Overview
Represents an error response from a refund call.
Instance Attribute Summary
Attributes inherited from ApiException
#error_id, #errors, #response_body, #status_code
Instance Method Summary collapse
-
#initialize(status_code, response_body, response) ⇒ DeclinedRefundException
constructor
Create a new DeclinedRefundException.
-
#refund_result ⇒ OnlinePayments::SDK::Domain::RefundResponse?
The result of creating a refund.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, response) ⇒ DeclinedRefundException
Create a new DeclinedRefundException.
13 14 15 16 |
# File 'lib/onlinepayments/sdk/declined_refund_exception.rb', line 13 def initialize(status_code, response_body, response) super(status_code, response_body, response&.error_id, response&.errors, (response)) @response = response end |
Instance Method Details
#refund_result ⇒ OnlinePayments::SDK::Domain::RefundResponse?
The result of creating a refund
20 21 22 |
# File 'lib/onlinepayments/sdk/declined_refund_exception.rb', line 20 def refund_result @response&.refund_result end |