Exception: Worldline::Connect::SDK::V1::DeclinedRefundException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- Worldline::Connect::SDK::V1::DeclinedRefundException
- Defined in:
- lib/worldline/connect/sdk/v1/declined_refund_exception.rb
Overview
Indicates that a refund is declined by the Worldline Global Collect 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 ⇒ Worldline::Connect::SDK::V1::Domain::RefundResult
The declined refund result as returned by the Worldline Global Collect platform.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, errors) ⇒ DeclinedRefundException
Create a new DeclinedRefundException.
16 17 18 19 20 21 22 23 |
# File 'lib/worldline/connect/sdk/v1/declined_refund_exception.rb', line 16 def initialize(status_code, response_body, errors) if errors.nil? super(status_code, response_body, nil, nil, (errors)) else super(status_code, response_body, errors.error_id, errors.errors, (errors)) end @errors = errors end |
Instance Method Details
#refund_result ⇒ Worldline::Connect::SDK::V1::Domain::RefundResult
The declined refund result as returned by the Worldline Global Collect platform.
27 28 29 30 31 32 33 |
# File 'lib/worldline/connect/sdk/v1/declined_refund_exception.rb', line 27 def refund_result if @errors.nil? nil else @errors.refund_result end end |