Exception: Pago::V2026_04::Errors::AmbiguousExternalCustomerID
- Inherits:
-
ConflictError
- Object
- StandardError
- Error
- APIError
- ClientError
- ConflictError
- Pago::V2026_04::Errors::AmbiguousExternalCustomerID
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
The external customer ID matches customers in several accessible organizations. Raised on HTTP 409.
Constant Summary collapse
- STATUS_CODE =
409
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::AmbiguousExternalCustomerID
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::AmbiguousExternalCustomerID
Returns the deserialized error payload.
88 89 90 91 92 93 94 95 96 |
# File 'lib/pago/v2026_04/errors.rb', line 88 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - AmbiguousExternalCustomerID", status_code: status_code, data: Models::AmbiguousExternalCustomerID.from_json(body), body: body, response: response ) end |