Class: Ingenico::Connect::SDK::Domain::Services::Swift
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Services::Swift
- Defined in:
- lib/ingenico/connect/sdk/domain/services/swift.rb
Instance Attribute Summary collapse
-
#bic ⇒ Object
String.
-
#category ⇒ Object
String.
-
#chips_uid ⇒ Object
String.
-
#extra_info ⇒ Object
String.
-
#po_box_country ⇒ Object
String.
-
#po_box_location ⇒ Object
String.
-
#po_box_number ⇒ Object
String.
-
#po_box_zip ⇒ Object
String.
-
#routing_bic ⇒ Object
String.
-
#services ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#bic ⇒ Object
String
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 14 def bic @bic end |
#category ⇒ Object
String
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 17 def category @category end |
#chips_uid ⇒ Object
String
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 20 def chips_uid @chips_uid end |
#extra_info ⇒ Object
String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 23 def extra_info @extra_info end |
#po_box_country ⇒ Object
String
26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 26 def po_box_country @po_box_country end |
#po_box_location ⇒ Object
String
29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 29 def po_box_location @po_box_location end |
#po_box_number ⇒ Object
String
32 33 34 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 32 def po_box_number @po_box_number end |
#po_box_zip ⇒ Object
String
35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 35 def po_box_zip @po_box_zip end |
#routing_bic ⇒ Object
String
38 39 40 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 38 def routing_bic @routing_bic end |
#services ⇒ Object
String
41 42 43 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 41 def services @services end |
Instance Method Details
#from_hash(hash) ⇒ Object
58 59 60 61 62 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 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 58 def from_hash(hash) super if hash.has_key?('bic') @bic = hash['bic'] end if hash.has_key?('category') @category = hash['category'] end if hash.has_key?('chipsUID') @chips_uid = hash['chipsUID'] end if hash.has_key?('extraInfo') @extra_info = hash['extraInfo'] end if hash.has_key?('poBoxCountry') @po_box_country = hash['poBoxCountry'] end if hash.has_key?('poBoxLocation') @po_box_location = hash['poBoxLocation'] end if hash.has_key?('poBoxNumber') @po_box_number = hash['poBoxNumber'] end if hash.has_key?('poBoxZip') @po_box_zip = hash['poBoxZip'] end if hash.has_key?('routingBic') @routing_bic = hash['routingBic'] end if hash.has_key?('services') @services = hash['services'] end end |
#to_h ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ingenico/connect/sdk/domain/services/swift.rb', line 43 def to_h hash = super add_to_hash(hash, 'bic', @bic) add_to_hash(hash, 'category', @category) add_to_hash(hash, 'chipsUID', @chips_uid) add_to_hash(hash, 'extraInfo', @extra_info) add_to_hash(hash, 'poBoxCountry', @po_box_country) add_to_hash(hash, 'poBoxLocation', @po_box_location) add_to_hash(hash, 'poBoxNumber', @po_box_number) add_to_hash(hash, 'poBoxZip', @po_box_zip) add_to_hash(hash, 'routingBic', @routing_bic) add_to_hash(hash, 'services', @services) hash end |