Exception: Worldline::Connect::SDK::V1::DeclinedRefundException

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

Overview

Represents an error response from a refund call.

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, response) ⇒ DeclinedRefundException

Create a new DeclinedRefundException.



16
17
18
19
# File 'lib/worldline/connect/sdk/v1/declined_refund_exception.rb', line 16

def initialize(status_code, response_body, response)
  super(status_code, response_body, response&.error_id, response&.errors, build_message(response))
  @response = response
end

Instance Method Details

#refund_resultWorldline::Connect::SDK::V1::Domain::RefundResult?

The result of creating a refund



23
24
25
# File 'lib/worldline/connect/sdk/v1/declined_refund_exception.rb', line 23

def refund_result
  @response&.refund_result
end