Class: Inttegro::Checkout::OrderResponse
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::OrderResponse
- Defined in:
- lib/inttegro/checkout/order_response.rb
Overview
Checkout response. Error responses can include the latest Order snapshot 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.
Optional in the API payload; omitted values default to nil. Wire name: error.
33 34 35 36 |
# File 'lib/inttegro/checkout/order_response.rb', line 33 class OrderResponse < T::Struct const :order, T.nilable(Inttegro::Checkout::Order), default: nil const :error, T.nilable(Inttegro::Shared::ErrorPayload), 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_response.rb', line 33 class OrderResponse < T::Struct const :order, T.nilable(Inttegro::Checkout::Order), default: nil const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil end |