Class: Inttegro::Checkout::LookupResponse

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

Overview

Returns exactly one resource matching the supplied checkout reference. Purchase Intent responses use the same public resource shape as Purchase Intent lookup.

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

#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:



33
34
35
36
# File 'lib/inttegro/checkout/lookup_response.rb', line 33

class LookupResponse < T::Struct
  const :order, T.nilable(Inttegro::Checkout::Order), default: nil
  const :purchase_intent, T.nilable(Inttegro::PurchaseIntent), default: nil
end

#purchase_intent ⇒ Inttegro::PurchaseIntent? (readonly)

Value of the purchase_intent field in the Inttegro API payload.

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

Returns:



33
34
35
36
# File 'lib/inttegro/checkout/lookup_response.rb', line 33

class LookupResponse < T::Struct
  const :order, T.nilable(Inttegro::Checkout::Order), default: nil
  const :purchase_intent, T.nilable(Inttegro::PurchaseIntent), default: nil
end