Class: Inttegro::Checkout::AmountSelection

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (Time, nil)


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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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