Class: Inttegro::PurchaseIntent::Usage
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::Usage
- Defined in:
- lib/inttegro/purchase_intent/usage.rb
Overview
Exactly one of multi_use or single_use is returned as true. Order is present after a single-use intent is consumed.
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
-
#multi_use ⇒ Boolean?
readonly
Value of the
multi_usefield in the Inttegro API payload. -
#order ⇒ Inttegro::PurchaseIntent::UsageOrder?
readonly
Value of the
orderfield in the Inttegro API payload. -
#single_use ⇒ Boolean?
readonly
Value of the
single_usefield in the Inttegro API payload.
Instance Attribute Details
#multi_use ⇒ Boolean? (readonly)
Value of the multi_use field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: multi_use.
37 38 39 40 41 |
# File 'lib/inttegro/purchase_intent/usage.rb', line 37 class Usage < T::Struct const :multi_use, T.nilable(T::Boolean), default: nil const :order, T.nilable(Inttegro::PurchaseIntent::UsageOrder), default: nil const :single_use, T.nilable(T::Boolean), default: nil end |
#order ⇒ Inttegro::PurchaseIntent::UsageOrder? (readonly)
Value of the order field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: order.
37 38 39 40 41 |
# File 'lib/inttegro/purchase_intent/usage.rb', line 37 class Usage < T::Struct const :multi_use, T.nilable(T::Boolean), default: nil const :order, T.nilable(Inttegro::PurchaseIntent::UsageOrder), default: nil const :single_use, T.nilable(T::Boolean), default: nil end |
#single_use ⇒ Boolean? (readonly)
Value of the single_use field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: single_use.
37 38 39 40 41 |
# File 'lib/inttegro/purchase_intent/usage.rb', line 37 class Usage < T::Struct const :multi_use, T.nilable(T::Boolean), default: nil const :order, T.nilable(Inttegro::PurchaseIntent::UsageOrder), default: nil const :single_use, T.nilable(T::Boolean), default: nil end |