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
Overview
Class Creditor
Instance Attribute Summary collapse
-
#additional_address_info ⇒ Object
String.
-
#city ⇒ Object
String.
-
#country_code ⇒ Object
String.
-
#house_number ⇒ Object
String.
-
#iban ⇒ Object
String.
-
#id ⇒ Object
String.
-
#name ⇒ Object
String.
-
#reference_party ⇒ Object
String.
-
#reference_party_id ⇒ Object
String.
-
#street ⇒ Object
String.
-
#zip ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#additional_address_info ⇒ Object
String
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 15 def additional_address_info @additional_address_info end |
#city ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 18 def city @city end |
#country_code ⇒ Object
String
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 21 def country_code @country_code end |
#house_number ⇒ Object
String
24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 24 def house_number @house_number end |
#iban ⇒ Object
String
27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 27 def iban @iban end |
#id ⇒ Object
String
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 30 def id @id end |
#name ⇒ Object
String
33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 33 def name @name end |
#reference_party ⇒ Object
String
36 37 38 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 36 def reference_party @reference_party end |
#reference_party_id ⇒ Object
String
39 40 41 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 39 def reference_party_id @reference_party_id end |
#street ⇒ Object
String
42 43 44 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 42 def street @street end |
#zip ⇒ Object
String
45 46 47 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 45 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
63 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 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 63 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 ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/ingenico/connect/sdk/domain/token/creditor.rb', line 47 def to_h hash = super add_to_hash(hash, 'additionalAddressInfo', @additional_address_info) add_to_hash(hash, 'city', @city) add_to_hash(hash, 'countryCode', @country_code) add_to_hash(hash, 'houseNumber', @house_number) add_to_hash(hash, 'iban', @iban) add_to_hash(hash, 'id', @id) add_to_hash(hash, 'name', @name) add_to_hash(hash, 'referenceParty', @reference_party) add_to_hash(hash, 'referencePartyId', @reference_party_id) add_to_hash(hash, 'street', @street) add_to_hash(hash, 'zip', @zip) hash end |