Class: Inttegro::Customer::Response
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Customer::Response
- Defined in:
- lib/inttegro/customer/response.rb
Overview
Typed representation of the response object in the Inttegro API.
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
-
#customer ⇒ Inttegro::Customer?
readonly
Value of the
customerfield in the Inttegro API payload. -
#error ⇒ Inttegro::Shared::ErrorPayload?
readonly
Standard error response structure returned by all API endpoints.
Instance Attribute Details
#customer ⇒ Inttegro::Customer? (readonly)
Value of the customer field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: customer.
32 33 34 35 |
# File 'lib/inttegro/customer/response.rb', line 32 class Response < T::Struct const :customer, T.nilable(Inttegro::Customer), default: nil const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil end |
#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.
32 33 34 35 |
# File 'lib/inttegro/customer/response.rb', line 32 class Response < T::Struct const :customer, T.nilable(Inttegro::Customer), default: nil const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil end |