Class: Inttegro::Checkout::AmountSelection
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::AmountSelection
- Defined in:
- lib/inttegro/checkout/amount_selection.rb
Overview
Typed representation of the amount selection 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
-
#customer_selected_amount ⇒ Inttegro::Price::CustomerSelectedAmount
readonly
Value of the
customer_selected_amountfield in the Inttegro API payload. -
#expires_at ⇒ Time?
readonly
Value of the
expires_atfield in the Inttegro API payload. -
#merchant_name ⇒ String
readonly
Value of the
merchant_namefield in the Inttegro API payload. -
#order_id ⇒ String?
readonly
Order reference present when selection changes an existing Order.
-
#price_id ⇒ String
readonly
Value of the
price_idfield in the Inttegro API payload. -
#product_about ⇒ String?
readonly
Value of the
product_aboutfield in the Inttegro API payload. -
#product_id ⇒ String
readonly
Value of the
product_idfield in the Inttegro API payload. -
#product_name ⇒ String
readonly
Value of the
product_namefield in the Inttegro API payload. -
#purchase_intent_id ⇒ String?
readonly
Purchase Intent reference present when selection creates an Order.
Instance Attribute Details
#customer_selected_amount ⇒ Inttegro::Price::CustomerSelectedAmount (readonly)
Value of the customer_selected_amount field in the Inttegro API payload.
Required in the API payload. Wire name: customer_selected_amount.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#expires_at ⇒ Time? (readonly)
Value of the expires_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: expires_at.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#merchant_name ⇒ String (readonly)
Value of the merchant_name field in the Inttegro API payload.
Required in the API payload. Wire name: merchant_name.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#order_id ⇒ String? (readonly)
Order reference present when selection changes an existing Order.
Optional in the API payload; omitted values default to nil. Wire name: order_id.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#price_id ⇒ String (readonly)
Value of the price_id field in the Inttegro API payload.
Required in the API payload. Wire name: price_id.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#product_about ⇒ String? (readonly)
Value of the product_about field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: product_about.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#product_id ⇒ String (readonly)
Value of the product_id field in the Inttegro API payload.
Required in the API payload. Wire name: product_id.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#product_name ⇒ String (readonly)
Value of the product_name field in the Inttegro API payload.
Required in the API payload. Wire name: product_name.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#purchase_intent_id ⇒ String? (readonly)
Purchase Intent reference present when selection creates an Order.
Optional in the API payload; omitted values default to nil. Wire name: purchase_intent_id.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/inttegro/checkout/amount_selection.rb', line 72 class AmountSelection < T::Struct const :purchase_intent_id, T.nilable(String), default: nil const :order_id, T.nilable(String), default: nil const :price_id, String const :product_id, String const :merchant_name, String const :product_name, String const :product_about, T.nilable(String), default: nil const :expires_at, T.nilable(Time), default: nil const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |