Class: Worldline::Connect::SDK::V1::Domain::Debtor
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::Debtor
- Defined in:
- lib/worldline/connect/sdk/v1/domain/debtor.rb
Instance Attribute Summary collapse
-
#additional_address_info ⇒ String
The current value of additional_address_info.
-
#city ⇒ String
The current value of city.
-
#country_code ⇒ String
The current value of country_code.
-
#first_name ⇒ String
The current value of first_name.
-
#house_number ⇒ String
The current value of house_number.
-
#state ⇒ String
The current value of state.
-
#state_code ⇒ String
The current value of state_code.
-
#street ⇒ String
The current value of street.
-
#surname ⇒ String
The current value of surname.
-
#surname_prefix ⇒ String
The current value of surname_prefix.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#additional_address_info ⇒ String
Returns the current value of additional_address_info.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def additional_address_info @additional_address_info end |
#city ⇒ String
Returns the current value of city.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def city @city end |
#country_code ⇒ String
Returns the current value of country_code.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def country_code @country_code end |
#first_name ⇒ String
Returns the current value of first_name.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def first_name @first_name end |
#house_number ⇒ String
Returns the current value of house_number.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def house_number @house_number end |
#state ⇒ String
Returns the current value of state.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def state @state end |
#state_code ⇒ String
Returns the current value of state_code.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def state_code @state_code end |
#street ⇒ String
Returns the current value of street.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def street @street end |
#surname ⇒ String
Returns the current value of surname.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def surname @surname end |
#surname_prefix ⇒ String
Returns the current value of surname_prefix.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def surname_prefix @surname_prefix end |
#zip ⇒ String
Returns the current value of zip.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 23 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
[View source]
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 64 def from_hash(hash) super if hash.has_key? 'additionalAddressInfo' @additional_address_info = hash['additionalAddressInfo'] end if hash.has_key? 'city' @city = hash['city'] end if hash.has_key? 'countryCode' @country_code = hash['countryCode'] end if hash.has_key? 'firstName' @first_name = hash['firstName'] end if hash.has_key? 'houseNumber' @house_number = hash['houseNumber'] end if hash.has_key? 'state' @state = hash['state'] end if hash.has_key? 'stateCode' @state_code = hash['stateCode'] end if hash.has_key? 'street' @street = hash['street'] end if hash.has_key? 'surname' @surname = hash['surname'] end if hash.has_key? 'surnamePrefix' @surname_prefix = hash['surnamePrefix'] end if hash.has_key? 'zip' @zip = hash['zip'] end end |
#to_h ⇒ Hash
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/worldline/connect/sdk/v1/domain/debtor.rb', line 48 def to_h hash = super hash['additionalAddressInfo'] = @additional_address_info unless @additional_address_info.nil? hash['city'] = @city unless @city.nil? hash['countryCode'] = @country_code unless @country_code.nil? hash['firstName'] = @first_name unless @first_name.nil? hash['houseNumber'] = @house_number unless @house_number.nil? hash['state'] = @state unless @state.nil? hash['stateCode'] = @state_code unless @state_code.nil? hash['street'] = @street unless @street.nil? hash['surname'] = @surname unless @surname.nil? hash['surnamePrefix'] = @surname_prefix unless @surname_prefix.nil? hash['zip'] = @zip unless @zip.nil? hash end |