Class: Inttegro::Checkout::OrderCheckoutSettings

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/order_checkout_settings.rb

Overview

Typed representation of the order checkout settings 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

#cancel_url ⇒ String? (readonly)

Value of the cancel_url field in the Inttegro API payload.

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

Returns:

  • (String, nil)


29
30
31
32
# File 'lib/inttegro/checkout/order_checkout_settings.rb', line 29

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

#redirect_url ⇒ String? (readonly)

Value of the redirect_url field in the Inttegro API payload.

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

Returns:

  • (String, nil)


29
30
31
32
# File 'lib/inttegro/checkout/order_checkout_settings.rb', line 29

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