Class: Inttegro::Checkout::OrderCustomer
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::OrderCustomer
- Defined in:
- lib/inttegro/checkout/order_customer.rb
Overview
Typed representation of the order customer 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
-
#billing_address ⇒ Inttegro::Checkout::OrderCustomerBillingAddress?
readonly
Value of the
billing_addressfield in the Inttegro API payload. -
#email_address ⇒ String?
readonly
Value of the
email_addressfield in the Inttegro API payload. -
#guest ⇒ Boolean?
readonly
Value of the
guestfield in the Inttegro API payload. -
#id ⇒ String?
readonly
Value of the
idfield in the Inttegro API payload. -
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload. -
#phone_number ⇒ String?
readonly
Value of the
phone_numberfield in the Inttegro API payload. -
#shipping_address ⇒ Inttegro::Checkout::OrderCustomerShippingAddress?
readonly
Value of the
shipping_addressfield in the Inttegro API payload.
Instance Attribute Details
#billing_address ⇒ Inttegro::Checkout::OrderCustomerBillingAddress? (readonly)
Value of the billing_address field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: billing_address.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |
#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.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |
#guest ⇒ Boolean? (readonly)
Value of the guest field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: guest.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |
#id ⇒ String? (readonly)
Value of the id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: id.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |
#name ⇒ String? (readonly)
Value of the name field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: name.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), 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.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |
#shipping_address ⇒ Inttegro::Checkout::OrderCustomerShippingAddress? (readonly)
Value of the shipping_address field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: shipping_address.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/checkout/order_customer.rb', line 61 class OrderCustomer < T::Struct const :id, T.nilable(String), default: nil const :guest, T.nilable(T::Boolean), default: nil const :name, T.nilable(String), default: nil const :email_address, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil end |