Class: Inttegro::Checkout::BillingDetails
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::BillingDetails
- Defined in:
- lib/inttegro/checkout/billing_details.rb
Overview
Typed representation of the billing details 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
-
#address ⇒ Inttegro::Checkout::PaymentAddress
readonly
Value of the
addressfield in the Inttegro API payload. -
#name ⇒ String
readonly
Name of the payer associated with the new payment method.
-
#phone_number ⇒ String?
readonly
Phone number associated with the new payment method.
Instance Attribute Details
#address ⇒ Inttegro::Checkout::PaymentAddress (readonly)
Value of the address field in the Inttegro API payload.
Required in the API payload. Wire name: address.
36 37 38 39 40 |
# File 'lib/inttegro/checkout/billing_details.rb', line 36 class BillingDetails < T::Struct const :name, String const :phone_number, T.nilable(String), default: nil const :address, Inttegro::Checkout::PaymentAddress end |
#name ⇒ String (readonly)
Name of the payer associated with the new payment method.
Required in the API payload. Wire name: name.
36 37 38 39 40 |
# File 'lib/inttegro/checkout/billing_details.rb', line 36 class BillingDetails < T::Struct const :name, String const :phone_number, T.nilable(String), default: nil const :address, Inttegro::Checkout::PaymentAddress end |
#phone_number ⇒ String? (readonly)
Phone number associated with the new payment method.
Optional in the API payload; omitted values default to nil. Wire name: phone_number.
36 37 38 39 40 |
# File 'lib/inttegro/checkout/billing_details.rb', line 36 class BillingDetails < T::Struct const :name, String const :phone_number, T.nilable(String), default: nil const :address, Inttegro::Checkout::PaymentAddress end |