Exception: Worldline::Connect::SDK::V1::DeclinedPaymentException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- Worldline::Connect::SDK::V1::DeclinedPaymentException
- Defined in:
- lib/worldline/connect/sdk/v1/declined_payment_exception.rb
Overview
Represents an error response from a create payment 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) ⇒ DeclinedPaymentException
constructor
Create a new DeclinedPaymentException.
-
#payment_result ⇒ Worldline::Connect::SDK::V1::Domain::CreatePaymentResult?
The result of creating a payment.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, response) ⇒ DeclinedPaymentException
Create a new DeclinedPaymentException.
16 17 18 19 |
# File 'lib/worldline/connect/sdk/v1/declined_payment_exception.rb', line 16 def initialize(status_code, response_body, response) super(status_code, response_body, response&.error_id, response&.errors, (response)) @response = response end |
Instance Method Details
#payment_result ⇒ Worldline::Connect::SDK::V1::Domain::CreatePaymentResult?
The result of creating a payment
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/declined_payment_exception.rb', line 23 def payment_result @response&.payment_result end |