Exception: Pago::V2026_04::Errors::OrderNotEligibleForRetry
- Inherits:
-
UnprocessableEntityError
- Object
- StandardError
- Error
- APIError
- ClientError
- UnprocessableEntityError
- Pago::V2026_04::Errors::OrderNotEligibleForRetry
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
Order not eligible for retry or payment confirmation failed. Raised on HTTP 422.
Constant Summary collapse
- STATUS_CODE =
422
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::OrderNotEligibleForRetry
The deserialized error payload.
Methods inherited from APIError
Constructor Details
This class inherits a constructor from Pago::APIError
Class Method Details
.from_response(status_code:, body:, response:) ⇒ Models::OrderNotEligibleForRetry
Returns the deserialized error payload.
615 616 617 618 619 620 621 622 623 |
# File 'lib/pago/v2026_04/errors.rb', line 615 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - OrderNotEligibleForRetry", status_code: status_code, data: Models::OrderNotEligibleForRetry.from_json(body), body: body, response: response ) end |