Class: Ingenico::Connect::SDK::Domain::Token::Creditor
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Token::Creditor
- Defined in:
- lib/ingenico/connect/sdk/domain/token/creditor.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.
-
#house_number ⇒ String
The current value of house_number.
-
#iban ⇒ String
The current value of iban.
-
#id ⇒ String
The current value of id.
-
#name ⇒ String
The current value of name.
-
#reference_party ⇒ String
The current value of reference_party.
-
#reference_party_id ⇒ String
The current value of reference_party_id.
-
#street ⇒ String
The current value of street.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#additional_address_info ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def additional_address_info @additional_address_info end |
#city ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def city @city end |
#country_code ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def country_code @country_code end |
#house_number ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def house_number @house_number end |
#iban ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def iban @iban end |
#id ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def id @id end |
#name ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def name @name end |
#reference_party ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def reference_party @reference_party end |
#reference_party_id ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def reference_party_id @reference_party_id end |
#street ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def street @street end |
#zip ⇒ String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 23 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
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/ingenico/connect/sdk/domain/token/creditor.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? 'houseNumber' @house_number = hash['houseNumber'] end if hash.has_key? 'iban' @iban = hash['iban'] end if hash.has_key? 'id' @id = hash['id'] end if hash.has_key? 'name' @name = hash['name'] end if hash.has_key? 'referenceParty' @reference_party = hash['referenceParty'] end if hash.has_key? 'referencePartyId' @reference_party_id = hash['referencePartyId'] end if hash.has_key? 'street' @street = hash['street'] 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/ingenico/connect/sdk/domain/token/creditor.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['houseNumber'] = @house_number unless @house_number.nil? hash['iban'] = @iban unless @iban.nil? hash['id'] = @id unless @id.nil? hash['name'] = @name unless @name.nil? hash['referenceParty'] = @reference_party unless @reference_party.nil? hash['referencePartyId'] = @reference_party_id unless @reference_party_id.nil? hash['street'] = @street unless @street.nil? hash['zip'] = @zip unless @zip.nil? hash end |