Exception: Ingenico::Direct::SDK::DeclinedPayoutException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- Ingenico::Direct::SDK::DeclinedPayoutException
- Defined in:
- lib/ingenico/direct/sdk/declined_payout_exception.rb
Overview
Indicates that a payout is declined by the Ingenico ePayments 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) ⇒ DeclinedPayoutException
constructor
Create a new DeclinedPayoutException.
-
#payout_result ⇒ Ingenico::Direct::SDK::Domain::PayoutResult?
The declined payout result as returned by the Ingenico ePayments platform.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, errors) ⇒ DeclinedPayoutException
Create a new DeclinedPayoutException
10 11 12 13 |
# File 'lib/ingenico/direct/sdk/declined_payout_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
#payout_result ⇒ Ingenico::Direct::SDK::Domain::PayoutResult?
The declined payout result as returned by the Ingenico ePayments platform.
17 18 19 |
# File 'lib/ingenico/direct/sdk/declined_payout_exception.rb', line 17 def payout_result @errors&.payout_result end |