Exception: Pago::V2026_04::Errors::CustomerNotReady

Inherits:
BadRequestError show all
Defined in:
lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs

Overview

Customer is not ready to confirm a payment method. Raised on HTTP 400.

Constant Summary collapse

STATUS_CODE =

Returns:

  • (Integer)
400

Instance Attribute Summary

Attributes inherited from APIError

#body, #data, #response, #status_code

Class Method Summary collapse

Methods inherited from APIError

#initialize

Constructor Details

This class inherits a constructor from Pago::APIError

Class Method Details

.from_response(status_code:, body:, response:) ⇒ Models::CustomerNotReady

Returns the deserialized error payload.

Parameters:

  • status_code: (Integer)
  • body: (Object)
  • response: (Object)

Returns:



275
276
277
278
279
280
281
282
283
# File 'lib/pago/v2026_04/errors.rb', line 275

def self.from_response(status_code:, body:, response:)
  new(
    "Pago API returned an error: #{status_code} - CustomerNotReady",
    status_code: status_code,
    data: Models::CustomerNotReady.from_json(body),
    body: body,
    response: response
  )
end