Class: Inttegro::Order::CreateNewCustomerCheckoutSettings

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/create_new_customer_checkout_settings.rb

Overview

Checkout and payment flow configuration. Strongly recommended to provide both redirect_url and cancel_url for a delightful customer experience.

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

#cancel_url ⇒ String? (readonly)

URL to redirect customer if they cancel payment

Optional in the API payload; omitted values default to nil. Wire name: cancel_url.

Returns:

  • (String, nil)


30
31
32
33
# File 'lib/inttegro/order/create_new_customer_checkout_settings.rb', line 30

class CreateNewCustomerCheckoutSettings < T::Struct
  const :redirect_url, T.nilable(String), default: nil
  const :cancel_url, T.nilable(String), default: nil
end

#redirect_url ⇒ String? (readonly)

URL to redirect customer after payment completion

Optional in the API payload; omitted values default to nil. Wire name: redirect_url.

Returns:

  • (String, nil)


30
31
32
33
# File 'lib/inttegro/order/create_new_customer_checkout_settings.rb', line 30

class CreateNewCustomerCheckoutSettings < T::Struct
  const :redirect_url, T.nilable(String), default: nil
  const :cancel_url, T.nilable(String), default: nil
end