Exception: Ingenico::Connect::SDK::DeclinedRefundException

Inherits:
DeclinedTransactionException show all
Defined in:
lib/ingenico/connect/sdk/declined_refund_exception.rb

Overview

Indicates that a refund 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

Methods inherited from ApiException

#to_s

Constructor Details

#initialize(status_code, response_body, errors) ⇒ DeclinedRefundException

Create a new DeclinedRefundException



11
12
13
14
15
16
17
18
# File 'lib/ingenico/connect/sdk/declined_refund_exception.rb', line 11

def initialize(status_code, response_body, errors)
  if errors.nil?
    super(status_code, response_body, nil, nil, build_message(errors))
  else
    super(status_code, response_body, errors.error_id, errors.errors, build_message(errors))
  end
  @errors = errors
end

Instance Method Details

#refund_resultIngenico::Connect::SDK::Domain::Refund::RefundResult

The declined refund result as returned by the Ingenico ePayments platform.



22
23
24
25
26
27
28
# File 'lib/ingenico/connect/sdk/declined_refund_exception.rb', line 22

def refund_result
  if @errors.nil?
    nil
  else
    @errors.refund_result
  end
end