Exception: OnlinePayments::SDK::DeclinedPayoutException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- OnlinePayments::SDK::DeclinedPayoutException
- Defined in:
- lib/onlinepayments/sdk/declined_payout_exception.rb
Overview
Represents an error response from a payout 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) ⇒ DeclinedPayoutException
constructor
Create a new DeclinedPayoutException.
-
#payout_result ⇒ OnlinePayments::SDK::Domain::PayoutResult?
The result of creating a payout.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, response) ⇒ DeclinedPayoutException
Create a new DeclinedPayoutException.
13 14 15 16 |
# File 'lib/onlinepayments/sdk/declined_payout_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
#payout_result ⇒ OnlinePayments::SDK::Domain::PayoutResult?
The result of creating a payout
20 21 22 |
# File 'lib/onlinepayments/sdk/declined_payout_exception.rb', line 20 def payout_result @response&.payout_result end |