Exception: Pago::V2026_04::Errors::RefundedAlready
- Inherits:
-
PermissionDeniedError
- Object
- StandardError
- Error
- APIError
- ClientError
- PermissionDeniedError
- Pago::V2026_04::Errors::RefundedAlready
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
Order is already fully refunded. Raised on HTTP 403.
Constant Summary collapse
- STATUS_CODE =
403
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::RefundedAlready
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::RefundedAlready
Returns the deserialized error payload.
717 718 719 720 721 722 723 724 725 |
# File 'lib/pago/v2026_04/errors.rb', line 717 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - RefundedAlready", status_code: status_code, data: Models::RefundedAlready.from_json(body), body: body, response: response ) end |