Class: Inttegro::Checkout::OrderErrorResponse
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::OrderErrorResponse
- Defined in:
- lib/inttegro/checkout/order_error_response.rb
Overview
Checkout error response. 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::Checkout::Order?
readonly
Current checkout projection.
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/checkout/order_error_response.rb', line 33 class OrderErrorResponse < T::Struct const :error, Inttegro::Shared::ErrorPayload const :order, T.nilable(Inttegro::Checkout::Order), default: nil end |
#order ⇒ Inttegro::Checkout::Order? (readonly)
Current checkout projection. Its existing fields are published unchanged for the initial mobile SDK contract and may be narrowed in a future contract revision.
Optional in the API payload; omitted values default to nil. Wire name: order.
33 34 35 36 |
# File 'lib/inttegro/checkout/order_error_response.rb', line 33 class OrderErrorResponse < T::Struct const :error, Inttegro::Shared::ErrorPayload const :order, T.nilable(Inttegro::Checkout::Order), default: nil end |