Exception: OnlinePayments::SDK::DeclinedRefundException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- OnlinePayments::SDK::DeclinedRefundException
- Defined in:
- lib/onlinepayments/sdk/declined_refund_exception.rb
Overview
Indicates that a refund is declined by the Online Payments platform or one of its downstream partners/acquirers.
Instance Attribute Summary
Attributes inherited from ApiException
#error_id, #errors, #response_body, #status_code
Instance Method Summary collapse
-
#initialize(status_code, response_body, errors) ⇒ DeclinedRefundException
constructor
Create a new DeclinedRefundException.
-
#refund_result ⇒ OnlinePayments::SDK::Domain::RefundResult?
The declined refund result as returned by the Online Payments platform.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, errors) ⇒ DeclinedRefundException
Create a new DeclinedRefundException
10 11 12 13 |
# File 'lib/onlinepayments/sdk/declined_refund_exception.rb', line 10 def initialize(status_code, response_body, errors) super(status_code, response_body, errors&.error_id, errors&.errors, (errors)) @errors = errors end |
Instance Method Details
#refund_result ⇒ OnlinePayments::SDK::Domain::RefundResult?
The declined refund result as returned by the Online Payments platform.
17 18 19 |
# File 'lib/onlinepayments/sdk/declined_refund_exception.rb', line 17 def refund_result @errors&.refund_result end |