Class: Inttegro::PurchaseIntent::CreateRequestPrice
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::CreateRequestPrice
- Defined in:
- lib/inttegro/purchase_intent/create_request_price.rb
Overview
Price selection for the Buy link. Send exactly one of id or nominal and at most one of original or original_id.
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
-
#id ⇒ String?
readonly
Active, unarchived app-owned price ID that belongs to the selected product.
-
#nominal ⇒ Inttegro::Price::PriceParams?
readonly
Inline offer amount when no price ID is provided.
-
#original ⇒ Inttegro::PurchaseIntent::CreateRequestPriceOriginal?
readonly
Optional original price used for comparison display.
-
#original_id ⇒ String?
readonly
App-owned comparison price ID when not using original.id.
Instance Attribute Details
#id ⇒ String? (readonly)
Active, unarchived app-owned price ID that belongs to the selected product
Optional in the API payload; omitted values default to nil. Wire name: id.
44 45 46 47 48 49 |
# File 'lib/inttegro/purchase_intent/create_request_price.rb', line 44 class CreateRequestPrice < T::Struct const :id, T.nilable(String), default: nil const :nominal, T.nilable(Inttegro::Price::PriceParams), default: nil const :original, T.nilable(Inttegro::PurchaseIntent::CreateRequestPriceOriginal), default: nil const :original_id, T.nilable(String), default: nil end |
#nominal ⇒ Inttegro::Price::PriceParams? (readonly)
Inline offer amount when no price ID is provided
Optional in the API payload; omitted values default to nil. Wire name: nominal.
44 45 46 47 48 49 |
# File 'lib/inttegro/purchase_intent/create_request_price.rb', line 44 class CreateRequestPrice < T::Struct const :id, T.nilable(String), default: nil const :nominal, T.nilable(Inttegro::Price::PriceParams), default: nil const :original, T.nilable(Inttegro::PurchaseIntent::CreateRequestPriceOriginal), default: nil const :original_id, T.nilable(String), default: nil end |
#original ⇒ Inttegro::PurchaseIntent::CreateRequestPriceOriginal? (readonly)
Optional original price used for comparison display
Optional in the API payload; omitted values default to nil. Wire name: original.
44 45 46 47 48 49 |
# File 'lib/inttegro/purchase_intent/create_request_price.rb', line 44 class CreateRequestPrice < T::Struct const :id, T.nilable(String), default: nil const :nominal, T.nilable(Inttegro::Price::PriceParams), default: nil const :original, T.nilable(Inttegro::PurchaseIntent::CreateRequestPriceOriginal), default: nil const :original_id, T.nilable(String), default: nil end |
#original_id ⇒ String? (readonly)
App-owned comparison price ID when not using original.id
Optional in the API payload; omitted values default to nil. Wire name: original_id.
44 45 46 47 48 49 |
# File 'lib/inttegro/purchase_intent/create_request_price.rb', line 44 class CreateRequestPrice < T::Struct const :id, T.nilable(String), default: nil const :nominal, T.nilable(Inttegro::Price::PriceParams), default: nil const :original, T.nilable(Inttegro::PurchaseIntent::CreateRequestPriceOriginal), default: nil const :original_id, T.nilable(String), default: nil end |