Class: Inttegro::Checkout::PaymentAddress
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::PaymentAddress
- Defined in:
- lib/inttegro/checkout/payment_address.rb
Overview
Typed representation of the payment address 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
-
#city ⇒ String?
readonly
Value of the
cityfield in the Inttegro API payload. -
#country ⇒ String
readonly
ISO 3166-1 alpha-2 country code.
-
#line1 ⇒ String?
readonly
Value of the
line1field in the Inttegro API payload. -
#line2 ⇒ String?
readonly
Value of the
line2field 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. -
#post_code ⇒ String?
readonly
Value of the
post_codefield in the Inttegro API payload. -
#region ⇒ String?
readonly
Value of the
regionfield in the Inttegro API payload.
Instance Attribute Details
#city ⇒ String? (readonly)
Value of the city field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: city.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |
#country ⇒ String (readonly)
ISO 3166-1 alpha-2 country code.
Required in the API payload. Wire name: country.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |
#line1 ⇒ String? (readonly)
Value of the line1 field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: line1.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |
#line2 ⇒ String? (readonly)
Value of the line2 field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: line2.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String 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.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String 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.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |
#post_code ⇒ String? (readonly)
Value of the post_code field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: post_code.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |
#region ⇒ String? (readonly)
Value of the region field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: region.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/checkout/payment_address.rb', line 65 class PaymentAddress < T::Struct const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :line1, T.nilable(String), default: nil const :line2, T.nilable(String), default: nil const :city, T.nilable(String), default: nil const :region, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :country, String end |