Class: Inttegro::PaymentMethod::OwnerAddress
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod::OwnerAddress
- Defined in:
- lib/inttegro/payment_method/owner_address.rb
Overview
Postal address for the owner when available
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
City or locality.
-
#country ⇒ String
readonly
Two-letter ISO country code.
-
#line_1 ⇒ String?
readonly
First line of the street address.
-
#line_2 ⇒ String?
readonly
Second line of the street address.
-
#name ⇒ String?
readonly
Recipient name at this address, if different from owner name.
-
#phone_number ⇒ String?
readonly
Phone number for this address.
-
#post_code ⇒ String?
readonly
Postal or ZIP code.
-
#region ⇒ String?
readonly
Region, state, or province.
Instance Attribute Details
#city ⇒ String? (readonly)
City or locality
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/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#country ⇒ String (readonly)
Two-letter ISO country code
Required in the API payload. Wire name: country.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#line_1 ⇒ String? (readonly)
First line of the street address
Optional in the API payload; omitted values default to nil. Wire name: line_1.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#line_2 ⇒ String? (readonly)
Second line of the street address
Optional in the API payload; omitted values default to nil. Wire name: line_2.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inttegro/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#name ⇒ String? (readonly)
Recipient name at this address, if different from owner name
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/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#phone_number ⇒ String? (readonly)
Phone number for this address
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/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#post_code ⇒ String? (readonly)
Postal or ZIP code
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/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |
#region ⇒ String? (readonly)
Region, state, or province
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/payment_method/owner_address.rb', line 65 class OwnerAddress < T::Struct const :city, T.nilable(String), default: nil const :country, String const :line_1, T.nilable(String), default: nil const :line_2, T.nilable(String), default: nil const :name, T.nilable(String), default: nil const :phone_number, T.nilable(String), default: nil const :post_code, T.nilable(String), default: nil const :region, T.nilable(String), default: nil end |