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