Exception: Pago::V2026_04::Errors::MissingInvoiceBillingDetails

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

Overview

Order is missing billing name or address. Raised on HTTP 422.

Constant Summary collapse

STATUS_CODE =

Returns:

  • (Integer)
422

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::MissingInvoiceBillingDetails

Returns the deserialized error payload.

Parameters:

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

Returns:



547
548
549
550
551
552
553
554
555
# File 'lib/pago/v2026_04/errors.rb', line 547

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