Class: Inttegro::Product::Response

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/product/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

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.



32
33
34
35
# File 'lib/inttegro/product/response.rb', line 32

class Response < T::Struct
  const :product, T.nilable(Inttegro::Product), default: nil
  const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil
end

#product ⇒ Inttegro::Product? (readonly)

Value of the product field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: product.

Returns:



32
33
34
35
# File 'lib/inttegro/product/response.rb', line 32

class Response < T::Struct
  const :product, T.nilable(Inttegro::Product), default: nil
  const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil
end