Class: Inttegro::Order::ErrorResponse
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::ErrorResponse
- Defined in:
- lib/inttegro/order/error_response.rb
Overview
Order operation error. The latest Order snapshot is included when available.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#error ⇒ Inttegro::Shared::ErrorPayload
readonly
Standard error response structure returned by all API endpoints.
-
#order ⇒ Inttegro::Order?
readonly
Complete order record with line items, customer details, payment state, and fulfillment information.
Instance Attribute Details
#error ⇒ Inttegro::Shared::ErrorPayload (readonly)
Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution.
Required in the API payload. Wire name: error.
33 34 35 36 |
# File 'lib/inttegro/order/error_response.rb', line 33 class ErrorResponse < T::Struct const :error, Inttegro::Shared::ErrorPayload const :order, T.nilable(Inttegro::Order), default: nil end |
#order ⇒ Inttegro::Order? (readonly)
Complete order record with line items, customer details, payment state, and fulfillment information
Optional in the API payload; omitted values default to nil. Wire name: order.
33 34 35 36 |
# File 'lib/inttegro/order/error_response.rb', line 33 class ErrorResponse < T::Struct const :error, Inttegro::Shared::ErrorPayload const :order, T.nilable(Inttegro::Order), default: nil end |