Class: Inttegro::PurchaseIntent::SingleUseUsage
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::SingleUseUsage
- Defined in:
- lib/inttegro/purchase_intent/single_use_usage.rb
Overview
Typed representation of the single use usage 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
-
#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
#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.
30 31 32 33 |
# File 'lib/inttegro/purchase_intent/single_use_usage.rb', line 30 class SingleUseUsage < T::Struct const :order, T.nilable(Inttegro::PurchaseIntent::UsageOrder), default: nil const :single_use, T::Boolean end |
#single_use ⇒ Boolean (readonly)
Value of the single_use field in the Inttegro API payload.
Required in the API payload. Wire name: single_use.
30 31 32 33 |
# File 'lib/inttegro/purchase_intent/single_use_usage.rb', line 30 class SingleUseUsage < T::Struct const :order, T.nilable(Inttegro::PurchaseIntent::UsageOrder), default: nil const :single_use, T::Boolean end |