sepafm 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +35 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +8 -0
  6. data/README.md +236 -0
  7. data/Rakefile +10 -0
  8. data/lib/danske_get_bank_certificate_test.rb +15 -0
  9. data/lib/sepa/application_request.rb +182 -0
  10. data/lib/sepa/application_response.rb +123 -0
  11. data/lib/sepa/client.rb +79 -0
  12. data/lib/sepa/danske_testing/keys/danske_encryption.crt +24 -0
  13. data/lib/sepa/filedescriptor.rb +7 -0
  14. data/lib/sepa/filetypeservice.rb +6 -0
  15. data/lib/sepa/nordea_testing/keys/CSR.csr +0 -0
  16. data/lib/sepa/nordea_testing/keys/nordea.crt +27 -0
  17. data/lib/sepa/nordea_testing/keys/nordea.key +19 -0
  18. data/lib/sepa/nordea_testing/response/content_053.xml +998 -0
  19. data/lib/sepa/nordea_testing/response/content_054.xml +1 -0
  20. data/lib/sepa/nordea_testing/response/download_file_response.xml +14 -0
  21. data/lib/sepa/nordea_testing/response/download_filelist_response.xml +14 -0
  22. data/lib/sepa/nordea_testing/response/get_user_info_response.xml +14 -0
  23. data/lib/sepa/nordea_testing/response/upload_file_response.xml +14 -0
  24. data/lib/sepa/response.rb +177 -0
  25. data/lib/sepa/sender_verifier.rb +15 -0
  26. data/lib/sepa/signature.rb +7 -0
  27. data/lib/sepa/soap_builder.rb +395 -0
  28. data/lib/sepa/soap_danske.rb +47 -0
  29. data/lib/sepa/soap_nordea.rb +68 -0
  30. data/lib/sepa/userfiletype.rb +16 -0
  31. data/lib/sepa/version.rb +3 -0
  32. data/lib/sepa/wsdl/wsdl_danske.xml +234 -0
  33. data/lib/sepa/wsdl/wsdl_danske_cert.xml +280 -0
  34. data/lib/sepa/wsdl/wsdl_nordea.xml +234 -0
  35. data/lib/sepa/wsdl/wsdl_nordea_cert.xml +187 -0
  36. data/lib/sepa/xml_parser.rb +291 -0
  37. data/lib/sepa/xml_schemas/application_request.xsd +135 -0
  38. data/lib/sepa/xml_schemas/application_response.xsd +311 -0
  39. data/lib/sepa/xml_schemas/cert_application_request.xsd +107 -0
  40. data/lib/sepa/xml_schemas/danske_pki.xsd +334 -0
  41. data/lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd +195 -0
  42. data/lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd +108 -0
  43. data/lib/sepa/xml_schemas/soap.xsd +126 -0
  44. data/lib/sepa/xml_schemas/wsdl.xml +310 -0
  45. data/lib/sepa/xml_schemas/xml.xsd +287 -0
  46. data/lib/sepa/xml_schemas/xmldsig-core-schema.xsd +318 -0
  47. data/lib/sepa/xml_templates/application_request/create_certificate.xml +10 -0
  48. data/lib/sepa/xml_templates/application_request/danske_get_bank_certificate.xml +10 -0
  49. data/lib/sepa/xml_templates/application_request/download_file.xml +32 -0
  50. data/lib/sepa/xml_templates/application_request/download_file_list.xml +29 -0
  51. data/lib/sepa/xml_templates/application_request/get_certificate.xml +10 -0
  52. data/lib/sepa/xml_templates/application_request/get_user_info.xml +26 -0
  53. data/lib/sepa/xml_templates/application_request/upload_file.xml +29 -0
  54. data/lib/sepa/xml_templates/soap/create_certificate.xml +15 -0
  55. data/lib/sepa/xml_templates/soap/danske_get_bank_certificate.xml +14 -0
  56. data/lib/sepa/xml_templates/soap/download_file.xml +16 -0
  57. data/lib/sepa/xml_templates/soap/download_file_list.xml +16 -0
  58. data/lib/sepa/xml_templates/soap/get_certificate.xml +13 -0
  59. data/lib/sepa/xml_templates/soap/get_user_info.xml +16 -0
  60. data/lib/sepa/xml_templates/soap/header.xml +37 -0
  61. data/lib/sepa/xml_templates/soap/upload_file.xml +16 -0
  62. data/lib/sepa.rb +21 -0
  63. data/lib/sepa_client_testing_mika.rb +32 -0
  64. data/lib/sepa_client_testing_tiere.rb +80 -0
  65. data/sepa.gemspec +29 -0
  66. data/test/sepa/application_request_test.rb +423 -0
  67. data/test/sepa/application_response_test.rb +238 -0
  68. data/test/sepa/cert_application_request_test.rb +99 -0
  69. data/test/sepa/client_test.rb +425 -0
  70. data/test/sepa/danske_test_keys/danskeroot.pem +25 -0
  71. data/test/sepa/danske_test_keys/encryption_pkcs.csr +0 -0
  72. data/test/sepa/danske_test_keys/signing_key.pem +27 -0
  73. data/test/sepa/danske_test_keys/signing_pkcs.csr +0 -0
  74. data/test/sepa/nordea_cert_request_soap_builder_test.rb +112 -0
  75. data/test/sepa/nordea_generic_soap_builder_test.rb +427 -0
  76. data/test/sepa/nordea_test_keys/nordea.crt +27 -0
  77. data/test/sepa/nordea_test_keys/nordea.key +19 -0
  78. data/test/sepa/nordea_test_keys/root_cert.cer +0 -0
  79. data/test/sepa/nordea_test_keys/testcert.csr +0 -0
  80. data/test/sepa/response_test.rb +269 -0
  81. data/test/sepa/sepa_test.rb +20 -0
  82. data/test/sepa/test_files/invalid.wsdl +1 -0
  83. data/test/sepa/test_files/test_responses/df.xml +20 -0
  84. data/test/sepa/test_files/test_responses/dfl.xml +20 -0
  85. data/test/sepa/test_files/test_responses/gui.xml +20 -0
  86. data/test/sepa/test_files/test_responses/uf.xml +20 -0
  87. data/test/sepa/user_file_type_test.rb +21 -0
  88. data/test/sepa/xml_parser_test.rb +73 -0
  89. data/test/test_helper.rb +9 -0
  90. metadata +256 -0
metadata ADDED
@@ -0,0 +1,256 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sepafm
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Joni Kanerva
8
+ - Mika Myllynen
9
+ - Tommi Järvinen
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-07-23 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: savon
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.2.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: 2.2.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: nokogiri
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 1.6.0
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: 1.6.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: bundler
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ~>
48
+ - !ruby/object:Gem::Version
49
+ version: 1.3.5
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 1.3.5
57
+ - !ruby/object:Gem::Dependency
58
+ name: rake
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: 10.1.0
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: 10.1.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: simplecov
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.7.1
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ~>
83
+ - !ruby/object:Gem::Version
84
+ version: 0.7.1
85
+ - !ruby/object:Gem::Dependency
86
+ name: minitest
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ~>
90
+ - !ruby/object:Gem::Version
91
+ version: 5.0.3
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 5.0.3
99
+ - !ruby/object:Gem::Dependency
100
+ name: json
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ~>
104
+ - !ruby/object:Gem::Version
105
+ version: 1.8.0
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: 1.8.0
113
+ description: SEPA Financial Messages using Web Services
114
+ email:
115
+ - joni@devlab.fi
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - .gitignore
121
+ - .ruby-version
122
+ - Gemfile
123
+ - LICENSE
124
+ - README.md
125
+ - Rakefile
126
+ - lib/danske_get_bank_certificate_test.rb
127
+ - lib/sepa.rb
128
+ - lib/sepa/application_request.rb
129
+ - lib/sepa/application_response.rb
130
+ - lib/sepa/client.rb
131
+ - lib/sepa/danske_testing/keys/danske_encryption.crt
132
+ - lib/sepa/filedescriptor.rb
133
+ - lib/sepa/filetypeservice.rb
134
+ - lib/sepa/nordea_testing/keys/CSR.csr
135
+ - lib/sepa/nordea_testing/keys/nordea.crt
136
+ - lib/sepa/nordea_testing/keys/nordea.key
137
+ - lib/sepa/nordea_testing/response/content_053.xml
138
+ - lib/sepa/nordea_testing/response/content_054.xml
139
+ - lib/sepa/nordea_testing/response/download_file_response.xml
140
+ - lib/sepa/nordea_testing/response/download_filelist_response.xml
141
+ - lib/sepa/nordea_testing/response/get_user_info_response.xml
142
+ - lib/sepa/nordea_testing/response/upload_file_response.xml
143
+ - lib/sepa/response.rb
144
+ - lib/sepa/sender_verifier.rb
145
+ - lib/sepa/signature.rb
146
+ - lib/sepa/soap_builder.rb
147
+ - lib/sepa/soap_danske.rb
148
+ - lib/sepa/soap_nordea.rb
149
+ - lib/sepa/userfiletype.rb
150
+ - lib/sepa/version.rb
151
+ - lib/sepa/wsdl/wsdl_danske.xml
152
+ - lib/sepa/wsdl/wsdl_danske_cert.xml
153
+ - lib/sepa/wsdl/wsdl_nordea.xml
154
+ - lib/sepa/wsdl/wsdl_nordea_cert.xml
155
+ - lib/sepa/xml_parser.rb
156
+ - lib/sepa/xml_schemas/application_request.xsd
157
+ - lib/sepa/xml_schemas/application_response.xsd
158
+ - lib/sepa/xml_schemas/cert_application_request.xsd
159
+ - lib/sepa/xml_schemas/danske_pki.xsd
160
+ - lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd
161
+ - lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd
162
+ - lib/sepa/xml_schemas/soap.xsd
163
+ - lib/sepa/xml_schemas/wsdl.xml
164
+ - lib/sepa/xml_schemas/xml.xsd
165
+ - lib/sepa/xml_schemas/xmldsig-core-schema.xsd
166
+ - lib/sepa/xml_templates/application_request/create_certificate.xml
167
+ - lib/sepa/xml_templates/application_request/danske_get_bank_certificate.xml
168
+ - lib/sepa/xml_templates/application_request/download_file.xml
169
+ - lib/sepa/xml_templates/application_request/download_file_list.xml
170
+ - lib/sepa/xml_templates/application_request/get_certificate.xml
171
+ - lib/sepa/xml_templates/application_request/get_user_info.xml
172
+ - lib/sepa/xml_templates/application_request/upload_file.xml
173
+ - lib/sepa/xml_templates/soap/create_certificate.xml
174
+ - lib/sepa/xml_templates/soap/danske_get_bank_certificate.xml
175
+ - lib/sepa/xml_templates/soap/download_file.xml
176
+ - lib/sepa/xml_templates/soap/download_file_list.xml
177
+ - lib/sepa/xml_templates/soap/get_certificate.xml
178
+ - lib/sepa/xml_templates/soap/get_user_info.xml
179
+ - lib/sepa/xml_templates/soap/header.xml
180
+ - lib/sepa/xml_templates/soap/upload_file.xml
181
+ - lib/sepa_client_testing_mika.rb
182
+ - lib/sepa_client_testing_tiere.rb
183
+ - sepa.gemspec
184
+ - test/sepa/application_request_test.rb
185
+ - test/sepa/application_response_test.rb
186
+ - test/sepa/cert_application_request_test.rb
187
+ - test/sepa/client_test.rb
188
+ - test/sepa/danske_test_keys/danskeroot.pem
189
+ - test/sepa/danske_test_keys/encryption_pkcs.csr
190
+ - test/sepa/danske_test_keys/signing_key.pem
191
+ - test/sepa/danske_test_keys/signing_pkcs.csr
192
+ - test/sepa/nordea_cert_request_soap_builder_test.rb
193
+ - test/sepa/nordea_generic_soap_builder_test.rb
194
+ - test/sepa/nordea_test_keys/nordea.crt
195
+ - test/sepa/nordea_test_keys/nordea.key
196
+ - test/sepa/nordea_test_keys/root_cert.cer
197
+ - test/sepa/nordea_test_keys/testcert.csr
198
+ - test/sepa/response_test.rb
199
+ - test/sepa/sepa_test.rb
200
+ - test/sepa/test_files/invalid.wsdl
201
+ - test/sepa/test_files/test_responses/df.xml
202
+ - test/sepa/test_files/test_responses/dfl.xml
203
+ - test/sepa/test_files/test_responses/gui.xml
204
+ - test/sepa/test_files/test_responses/uf.xml
205
+ - test/sepa/user_file_type_test.rb
206
+ - test/sepa/xml_parser_test.rb
207
+ - test/test_helper.rb
208
+ homepage: https://github.com/devlab-oy/sepa
209
+ licenses:
210
+ - MIT
211
+ metadata: {}
212
+ post_install_message:
213
+ rdoc_options: []
214
+ require_paths:
215
+ - lib
216
+ required_ruby_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ~>
219
+ - !ruby/object:Gem::Version
220
+ version: 2.0.0
221
+ required_rubygems_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - '>='
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ requirements: []
227
+ rubyforge_project:
228
+ rubygems_version: 2.0.3
229
+ signing_key:
230
+ specification_version: 4
231
+ summary: SEPA Financial Messages
232
+ test_files:
233
+ - test/sepa/application_request_test.rb
234
+ - test/sepa/application_response_test.rb
235
+ - test/sepa/cert_application_request_test.rb
236
+ - test/sepa/client_test.rb
237
+ - test/sepa/danske_test_keys/danskeroot.pem
238
+ - test/sepa/danske_test_keys/encryption_pkcs.csr
239
+ - test/sepa/danske_test_keys/signing_key.pem
240
+ - test/sepa/danske_test_keys/signing_pkcs.csr
241
+ - test/sepa/nordea_cert_request_soap_builder_test.rb
242
+ - test/sepa/nordea_generic_soap_builder_test.rb
243
+ - test/sepa/nordea_test_keys/nordea.crt
244
+ - test/sepa/nordea_test_keys/nordea.key
245
+ - test/sepa/nordea_test_keys/root_cert.cer
246
+ - test/sepa/nordea_test_keys/testcert.csr
247
+ - test/sepa/response_test.rb
248
+ - test/sepa/sepa_test.rb
249
+ - test/sepa/test_files/invalid.wsdl
250
+ - test/sepa/test_files/test_responses/df.xml
251
+ - test/sepa/test_files/test_responses/dfl.xml
252
+ - test/sepa/test_files/test_responses/gui.xml
253
+ - test/sepa/test_files/test_responses/uf.xml
254
+ - test/sepa/user_file_type_test.rb
255
+ - test/sepa/xml_parser_test.rb
256
+ - test/test_helper.rb