Class: Inttegro::Checkout::CustomerData
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::CustomerData
- Defined in:
- lib/inttegro/checkout/customer_data.rb
Overview
Typed representation of the customer data 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
-
#email_address ⇒ String?
readonly
Value of the
email_addressfield in the Inttegro API payload. -
#name ⇒ String
readonly
Customer name recorded on the Order created from the Purchase Intent.
-
#phone_number ⇒ String?
readonly
Value of the
phone_numberfield in the Inttegro API payload.
Instance Attribute Details
#email_address ⇒ String? (readonly)
Value of the email_address field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: email_address.
35 36 37 38 39 |
# File 'lib/inttegro/checkout/customer_data.rb', line 35 class CustomerData < T::Struct const :name, String const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil end |
#name ⇒ String (readonly)
Customer name recorded on the Order created from the Purchase Intent.
Required in the API payload. Wire name: name.
35 36 37 38 39 |
# File 'lib/inttegro/checkout/customer_data.rb', line 35 class CustomerData < T::Struct const :name, String const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil end |
#phone_number ⇒ String? (readonly)
Value of the phone_number field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: phone_number.
35 36 37 38 39 |
# File 'lib/inttegro/checkout/customer_data.rb', line 35 class CustomerData < T::Struct const :name, String const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil end |