Class: Inttegro::Checkout::LookupResponse

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/lookup_response.rb

Overview

A Purchase Intent lookup returns amount_selection. An Order lookup returns order and also returns amount_selection while that Order's amount can still be changed.

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

#amount_selection ⇒ Inttegro::Checkout::AmountSelection? (readonly)

Value of the amount_selection field in the Inttegro API payload.

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



41
42
43
44
45
# File 'lib/inttegro/checkout/lookup_response.rb', line 41

class LookupResponse < T::Struct
  const :order, T.nilable(Inttegro::Checkout::Order), default: nil
  const :amount_selection, T.nilable(Inttegro::Checkout::AmountSelection), 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.



41
42
43
44
45
# File 'lib/inttegro/checkout/lookup_response.rb', line 41

class LookupResponse < T::Struct
  const :order, T.nilable(Inttegro::Checkout::Order), default: nil
  const :amount_selection, T.nilable(Inttegro::Checkout::AmountSelection), 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.

Returns:



41
42
43
44
45
# File 'lib/inttegro/checkout/lookup_response.rb', line 41

class LookupResponse < T::Struct
  const :order, T.nilable(Inttegro::Checkout::Order), default: nil
  const :amount_selection, T.nilable(Inttegro::Checkout::AmountSelection), default: nil
  const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil
end