wirecardmapper 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -3
- data/lib/wirecardmapper/models/base.rb +10 -1
- data/lib/wirecardmapper/models/mongo_mapper.rb +11 -8
- data/lib/wirecardmapper/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/WirecardMapper/_change_card_status/should_set_status.yml +170 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/_change_card_status/should_switch_status.yml +279 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/_submit_payment/should_load_card.yml +173 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/_submit_payment/unload/should_unload_card.yml +223 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/should_create_card.yml +58 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/should_get_card_info.yml +123 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/should_get_payment_info.yml +106 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper/should_update_card_info.yml +105 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/_payment_info/should_get_info.yml +104 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/change_status/should_activate_card.yml +167 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/change_status/should_block_card.yml +167 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/change_status/should_cancelled_card.yml +167 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/load_amount/should_get_balance.yml +171 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/should_get_expiration_year.yml +120 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/unload_amount/should_get_balance.yml +284 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/unload_amount/should_unload_card_with_comment.yml +222 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_MongoMapper/caching/should_get_status_from_the_database.yml +276 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_MongoMapper/should_create_card.yml +167 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_MongoMapper/with_missing_card_id/should_not_create_card.yml +167 -0
- data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_MongoMapper/with_wirecard_error_response/should_not_create_card.yml +49 -0
- data/spec/functional/models/base_spec.rb +8 -2
- data/spec/functional/models/mongo_mapper_spec.rb +31 -4
- data/spec/functional/wirecardmapper_spec.rb +1 -1
- data/spec/spec_helper.rb +7 -15
- metadata +23 -3
data/spec/fixtures/vcr_cassettes/WirecardMapper_Model_Base/unload_amount/should_get_balance.yml
ADDED
@@ -0,0 +1,284 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
9
|
+
version=\"1.0\">\n <application>\n <request-id>7506eb60-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
10
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <create-card>\n
|
11
|
+
\ <product-data>\n <product-id>11</product-id>\n </product-data>\n
|
12
|
+
\ <card-data></card-data>\n </create-card>\n</issuer-request>\n"
|
13
|
+
headers:
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Content-Type:
|
19
|
+
- text/xml
|
20
|
+
Content-Length:
|
21
|
+
- '377'
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 27 Sep 2012 08:58:41 GMT
|
29
|
+
Server:
|
30
|
+
- Apache
|
31
|
+
X-Powered-By:
|
32
|
+
- Servlet/2.5 JSP/2.1
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Content-Type:
|
38
|
+
- text/xml
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
42
|
+
\ <application>\n <request-id>7506eb60-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>06F3071F0A06814119EE6E44A98ACCA1</response-id>\n </application>\n
|
44
|
+
\ <create-card>\n <return-code>0</return-code>\n <return-message>Successful
|
45
|
+
system entry.</return-message>\n <account-card-data>\n <card-status>\n
|
46
|
+
\ <status-code>activated</status-code>\n <status-message>Active
|
47
|
+
card</status-message>\n </card-status>\n <card-data>\n
|
48
|
+
\ <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n <card-number>5274569798596948</card-number>\n
|
49
|
+
\ <expiration-month>10</expiration-month>\n <expiration-year>2013</expiration-year>\n
|
50
|
+
\ <card-security-code>175</card-security-code>\n <issuing-date>2012-09-27</issuing-date>\n
|
51
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
52
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
53
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
54
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
55
|
+
\ </account-data>\n </account-card-data>\n </create-card>\n</issuer-response>\n"
|
56
|
+
http_version:
|
57
|
+
recorded_at: Thu, 27 Sep 2012 08:58:49 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
64
|
+
version=\"1.0\">\n <application>\n <request-id>79f2c620-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <submit-payment>\n
|
66
|
+
\ <payment-data>\n <amount currency=\"EUR\">2200</amount>\n <payment-comment>load</payment-comment>\n
|
67
|
+
\ </payment-data>\n <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
68
|
+
\ </card-data>\n </submit-payment>\n</issuer-request>\n"
|
69
|
+
headers:
|
70
|
+
Accept:
|
71
|
+
- ! '*/*'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Content-Type:
|
75
|
+
- text/xml
|
76
|
+
Content-Length:
|
77
|
+
- '501'
|
78
|
+
response:
|
79
|
+
status:
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
Date:
|
84
|
+
- Thu, 27 Sep 2012 08:58:50 GMT
|
85
|
+
Server:
|
86
|
+
- Apache
|
87
|
+
X-Powered-By:
|
88
|
+
- Servlet/2.5 JSP/2.1
|
89
|
+
Connection:
|
90
|
+
- close
|
91
|
+
Transfer-Encoding:
|
92
|
+
- chunked
|
93
|
+
Content-Type:
|
94
|
+
- text/xml
|
95
|
+
body:
|
96
|
+
encoding: US-ASCII
|
97
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
98
|
+
\ <application>\n <request-id>79f2c620-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
99
|
+
\ <response-id>06F329DB0A0681411A74106465DE9E6E</response-id>\n </application>\n
|
100
|
+
\ <submit-payment>\n <return-code>0</return-code>\n <return-message>Successful
|
101
|
+
system entry.</return-message>\n <payment-status>\n <status-code>successful</status-code>\n
|
102
|
+
\ <status-message>The issuer successfully accepted payment.</status-message>\n
|
103
|
+
\ </payment-status>\n <payment-data>\n <payment-id>06F32A2B0A0681411A7410649321B07F</payment-id>\n
|
104
|
+
\ <amount currency=\"EUR\">2200</amount>\n <card-currency-amount
|
105
|
+
currency=\"EUR\">2200</card-currency-amount>\n <payment-comment>load</payment-comment>\n
|
106
|
+
\ </payment-data>\n </submit-payment>\n</issuer-response>\n"
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 27 Sep 2012 08:58:51 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
115
|
+
version=\"1.0\">\n <application>\n <request-id>7b853d30-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
116
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
117
|
+
\ <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
118
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
119
|
+
headers:
|
120
|
+
Accept:
|
121
|
+
- ! '*/*'
|
122
|
+
User-Agent:
|
123
|
+
- Ruby
|
124
|
+
Content-Type:
|
125
|
+
- text/xml
|
126
|
+
Content-Length:
|
127
|
+
- '409'
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 200
|
131
|
+
message: OK
|
132
|
+
headers:
|
133
|
+
Date:
|
134
|
+
- Thu, 27 Sep 2012 08:58:52 GMT
|
135
|
+
Server:
|
136
|
+
- Apache
|
137
|
+
X-Powered-By:
|
138
|
+
- Servlet/2.5 JSP/2.1
|
139
|
+
Connection:
|
140
|
+
- close
|
141
|
+
Transfer-Encoding:
|
142
|
+
- chunked
|
143
|
+
Content-Type:
|
144
|
+
- text/xml
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
148
|
+
\ <application>\n <request-id>7b853d30-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
149
|
+
\ <response-id>06F332000A06814012013E19831A9827</response-id>\n </application>\n
|
150
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
151
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
152
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
153
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
154
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
155
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
156
|
+
\ <account-card-data>\n <card-status>\n <status-code>activated</status-code>\n
|
157
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
158
|
+
\ <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
159
|
+
\ <card-number>5274569798596948</card-number>\n <expiration-month>10</expiration-month>\n
|
160
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>175</card-security-code>\n
|
161
|
+
\ <card-level>P</card-level>\n <statement-data
|
162
|
+
processing-date=\"2012-09-27\" currency=\"EUR\">\n <balance>2200</balance>\n
|
163
|
+
\ </statement-data>\n <issuing-date>2012-09-27</issuing-date>\n
|
164
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
165
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
166
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
167
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
168
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
169
|
+
http_version:
|
170
|
+
recorded_at: Thu, 27 Sep 2012 08:58:55 GMT
|
171
|
+
- request:
|
172
|
+
method: post
|
173
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
174
|
+
body:
|
175
|
+
encoding: UTF-8
|
176
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
177
|
+
version=\"1.0\">\n <application>\n <request-id>7d800790-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
178
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <submit-payment>\n
|
179
|
+
\ <payment-data>\n <amount currency=\"EUR\">-2200</amount>\n <payment-comment>unload</payment-comment>\n
|
180
|
+
\ </payment-data>\n <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
181
|
+
\ </card-data>\n </submit-payment>\n</issuer-request>\n"
|
182
|
+
headers:
|
183
|
+
Accept:
|
184
|
+
- ! '*/*'
|
185
|
+
User-Agent:
|
186
|
+
- Ruby
|
187
|
+
Content-Type:
|
188
|
+
- text/xml
|
189
|
+
Content-Length:
|
190
|
+
- '504'
|
191
|
+
response:
|
192
|
+
status:
|
193
|
+
code: 200
|
194
|
+
message: OK
|
195
|
+
headers:
|
196
|
+
Date:
|
197
|
+
- Thu, 27 Sep 2012 08:58:55 GMT
|
198
|
+
Server:
|
199
|
+
- Apache
|
200
|
+
X-Powered-By:
|
201
|
+
- Servlet/2.5 JSP/2.1
|
202
|
+
Connection:
|
203
|
+
- close
|
204
|
+
Transfer-Encoding:
|
205
|
+
- chunked
|
206
|
+
Content-Type:
|
207
|
+
- text/xml
|
208
|
+
body:
|
209
|
+
encoding: US-ASCII
|
210
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
211
|
+
\ <application>\n <request-id>7d800790-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
212
|
+
\ <response-id>06F33E9B0A0681411A741064D59F9C68</response-id>\n </application>\n
|
213
|
+
\ <submit-payment>\n <return-code>0</return-code>\n <return-message>Successful
|
214
|
+
system entry.</return-message>\n <payment-status>\n <status-code>successful</status-code>\n
|
215
|
+
\ <status-message>The issuer successfully accepted payment.</status-message>\n
|
216
|
+
\ </payment-status>\n <payment-data>\n <payment-id>06F33EB70A0681411A74106471C60BB8</payment-id>\n
|
217
|
+
\ <amount currency=\"EUR\">-2200</amount>\n <card-currency-amount
|
218
|
+
currency=\"EUR\">-2200</card-currency-amount>\n <payment-comment>unload</payment-comment>\n
|
219
|
+
\ </payment-data>\n </submit-payment>\n</issuer-response>\n"
|
220
|
+
http_version:
|
221
|
+
recorded_at: Thu, 27 Sep 2012 08:58:56 GMT
|
222
|
+
- request:
|
223
|
+
method: post
|
224
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
225
|
+
body:
|
226
|
+
encoding: UTF-8
|
227
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
228
|
+
version=\"1.0\">\n <application>\n <request-id>7e9eed30-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
229
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
230
|
+
\ <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
231
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
232
|
+
headers:
|
233
|
+
Accept:
|
234
|
+
- ! '*/*'
|
235
|
+
User-Agent:
|
236
|
+
- Ruby
|
237
|
+
Content-Type:
|
238
|
+
- text/xml
|
239
|
+
Content-Length:
|
240
|
+
- '409'
|
241
|
+
response:
|
242
|
+
status:
|
243
|
+
code: 200
|
244
|
+
message: OK
|
245
|
+
headers:
|
246
|
+
Date:
|
247
|
+
- Thu, 27 Sep 2012 08:58:57 GMT
|
248
|
+
Server:
|
249
|
+
- Apache
|
250
|
+
X-Powered-By:
|
251
|
+
- Servlet/2.5 JSP/2.1
|
252
|
+
Connection:
|
253
|
+
- close
|
254
|
+
Transfer-Encoding:
|
255
|
+
- chunked
|
256
|
+
Content-Type:
|
257
|
+
- text/xml
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
261
|
+
\ <application>\n <request-id>7e9eed30-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
262
|
+
\ <response-id>06F3466D0A0681411A74106403908992</response-id>\n </application>\n
|
263
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
264
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
265
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
266
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
267
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
268
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
269
|
+
\ <account-card-data>\n <card-status>\n <status-code>activated</status-code>\n
|
270
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
271
|
+
\ <card-data>\n <card-id>06F307320A06814119EE6E4459D96A8F</card-id>\n
|
272
|
+
\ <card-number>5274569798596948</card-number>\n <expiration-month>10</expiration-month>\n
|
273
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>175</card-security-code>\n
|
274
|
+
\ <card-level>P</card-level>\n <statement-data
|
275
|
+
processing-date=\"2012-09-27\" currency=\"EUR\">\n <balance>0</balance>\n
|
276
|
+
\ </statement-data>\n <issuing-date>2012-09-27</issuing-date>\n
|
277
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
278
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
279
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
280
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
281
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
282
|
+
http_version:
|
283
|
+
recorded_at: Thu, 27 Sep 2012 08:59:00 GMT
|
284
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,222 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
9
|
+
version=\"1.0\">\n <application>\n <request-id>80aa6e80-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
10
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <create-card>\n
|
11
|
+
\ <product-data>\n <product-id>11</product-id>\n </product-data>\n
|
12
|
+
\ <card-data></card-data>\n </create-card>\n</issuer-request>\n"
|
13
|
+
headers:
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Content-Type:
|
19
|
+
- text/xml
|
20
|
+
Content-Length:
|
21
|
+
- '377'
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 27 Sep 2012 08:59:00 GMT
|
29
|
+
Server:
|
30
|
+
- Apache
|
31
|
+
X-Powered-By:
|
32
|
+
- Servlet/2.5 JSP/2.1
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Content-Type:
|
38
|
+
- text/xml
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
42
|
+
\ <application>\n <request-id>80aa6e80-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>06F353810A06814012013E19EE965285</response-id>\n </application>\n
|
44
|
+
\ <create-card>\n <return-code>0</return-code>\n <return-message>Successful
|
45
|
+
system entry.</return-message>\n <account-card-data>\n <card-status>\n
|
46
|
+
\ <status-code>activated</status-code>\n <status-message>Active
|
47
|
+
card</status-message>\n </card-status>\n <card-data>\n
|
48
|
+
\ <card-id>06F353990A06814012013E192ECF556F</card-id>\n <card-number>5274569799349081</card-number>\n
|
49
|
+
\ <expiration-month>10</expiration-month>\n <expiration-year>2013</expiration-year>\n
|
50
|
+
\ <card-security-code>212</card-security-code>\n <issuing-date>2012-09-27</issuing-date>\n
|
51
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
52
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
53
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
54
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
55
|
+
\ </account-data>\n </account-card-data>\n </create-card>\n</issuer-response>\n"
|
56
|
+
http_version:
|
57
|
+
recorded_at: Thu, 27 Sep 2012 08:59:08 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
64
|
+
version=\"1.0\">\n <application>\n <request-id>85931820-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <submit-payment>\n
|
66
|
+
\ <payment-data>\n <amount currency=\"EUR\">2200</amount>\n <payment-comment>load</payment-comment>\n
|
67
|
+
\ </payment-data>\n <card-data>\n <card-id>06F353990A06814012013E192ECF556F</card-id>\n
|
68
|
+
\ </card-data>\n </submit-payment>\n</issuer-request>\n"
|
69
|
+
headers:
|
70
|
+
Accept:
|
71
|
+
- ! '*/*'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Content-Type:
|
75
|
+
- text/xml
|
76
|
+
Content-Length:
|
77
|
+
- '501'
|
78
|
+
response:
|
79
|
+
status:
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
Date:
|
84
|
+
- Thu, 27 Sep 2012 08:59:08 GMT
|
85
|
+
Server:
|
86
|
+
- Apache
|
87
|
+
X-Powered-By:
|
88
|
+
- Servlet/2.5 JSP/2.1
|
89
|
+
Connection:
|
90
|
+
- close
|
91
|
+
Transfer-Encoding:
|
92
|
+
- chunked
|
93
|
+
Content-Type:
|
94
|
+
- text/xml
|
95
|
+
body:
|
96
|
+
encoding: US-ASCII
|
97
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
98
|
+
\ <application>\n <request-id>85931820-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
99
|
+
\ <response-id>06F373A20A0681401377C1C5F39D91AC</response-id>\n </application>\n
|
100
|
+
\ <submit-payment>\n <return-code>0</return-code>\n <return-message>Successful
|
101
|
+
system entry.</return-message>\n <payment-status>\n <status-code>successful</status-code>\n
|
102
|
+
\ <status-message>The issuer successfully accepted payment.</status-message>\n
|
103
|
+
\ </payment-status>\n <payment-data>\n <payment-id>06F373D00A0681401377C1C51205C92B</payment-id>\n
|
104
|
+
\ <amount currency=\"EUR\">2200</amount>\n <card-currency-amount
|
105
|
+
currency=\"EUR\">2200</card-currency-amount>\n <payment-comment>load</payment-comment>\n
|
106
|
+
\ </payment-data>\n </submit-payment>\n</issuer-response>\n"
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 27 Sep 2012 08:59:10 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
115
|
+
version=\"1.0\">\n <application>\n <request-id>86d730a0-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
116
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <submit-payment>\n
|
117
|
+
\ <payment-data>\n <amount currency=\"EUR\">-1000</amount>\n <payment-comment>unload
|
118
|
+
test Card</payment-comment>\n </payment-data>\n <card-data>\n <card-id>06F353990A06814012013E192ECF556F</card-id>\n
|
119
|
+
\ </card-data>\n </submit-payment>\n</issuer-request>\n"
|
120
|
+
headers:
|
121
|
+
Accept:
|
122
|
+
- ! '*/*'
|
123
|
+
User-Agent:
|
124
|
+
- Ruby
|
125
|
+
Content-Type:
|
126
|
+
- text/xml
|
127
|
+
Content-Length:
|
128
|
+
- '514'
|
129
|
+
response:
|
130
|
+
status:
|
131
|
+
code: 200
|
132
|
+
message: OK
|
133
|
+
headers:
|
134
|
+
Date:
|
135
|
+
- Thu, 27 Sep 2012 08:59:11 GMT
|
136
|
+
Server:
|
137
|
+
- Apache
|
138
|
+
X-Powered-By:
|
139
|
+
- Servlet/2.5 JSP/2.1
|
140
|
+
Connection:
|
141
|
+
- close
|
142
|
+
Transfer-Encoding:
|
143
|
+
- chunked
|
144
|
+
Content-Type:
|
145
|
+
- text/xml
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
149
|
+
\ <application>\n <request-id>86d730a0-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
150
|
+
\ <response-id>06F37C0C0A06814012013E190C30CDA3</response-id>\n </application>\n
|
151
|
+
\ <submit-payment>\n <return-code>0</return-code>\n <return-message>Successful
|
152
|
+
system entry.</return-message>\n <payment-status>\n <status-code>successful</status-code>\n
|
153
|
+
\ <status-message>The issuer successfully accepted payment.</status-message>\n
|
154
|
+
\ </payment-status>\n <payment-data>\n <payment-id>06F37C2D0A06814012013E197F94156E</payment-id>\n
|
155
|
+
\ <amount currency=\"EUR\">-1000</amount>\n <card-currency-amount
|
156
|
+
currency=\"EUR\">-1000</card-currency-amount>\n <payment-comment>unload
|
157
|
+
test Card</payment-comment>\n </payment-data>\n </submit-payment>\n</issuer-response>\n"
|
158
|
+
http_version:
|
159
|
+
recorded_at: Thu, 27 Sep 2012 08:59:12 GMT
|
160
|
+
- request:
|
161
|
+
method: post
|
162
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
163
|
+
body:
|
164
|
+
encoding: UTF-8
|
165
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
166
|
+
version=\"1.0\">\n <application>\n <request-id>88025fe0-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
167
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
168
|
+
\ <card-data>\n <card-id>06F353990A06814012013E192ECF556F</card-id>\n
|
169
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
170
|
+
headers:
|
171
|
+
Accept:
|
172
|
+
- ! '*/*'
|
173
|
+
User-Agent:
|
174
|
+
- Ruby
|
175
|
+
Content-Type:
|
176
|
+
- text/xml
|
177
|
+
Content-Length:
|
178
|
+
- '409'
|
179
|
+
response:
|
180
|
+
status:
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
Date:
|
185
|
+
- Thu, 27 Sep 2012 08:59:12 GMT
|
186
|
+
Server:
|
187
|
+
- Apache
|
188
|
+
X-Powered-By:
|
189
|
+
- Servlet/2.5 JSP/2.1
|
190
|
+
Connection:
|
191
|
+
- close
|
192
|
+
Transfer-Encoding:
|
193
|
+
- chunked
|
194
|
+
Content-Type:
|
195
|
+
- text/xml
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
199
|
+
\ <application>\n <request-id>88025fe0-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
200
|
+
\ <response-id>06F3836A0A06814119EE6E44485C23C9</response-id>\n </application>\n
|
201
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
202
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
203
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
204
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
205
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
206
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
207
|
+
\ <account-card-data>\n <card-status>\n <status-code>activated</status-code>\n
|
208
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
209
|
+
\ <card-data>\n <card-id>06F353990A06814012013E192ECF556F</card-id>\n
|
210
|
+
\ <card-number>5274569799349081</card-number>\n <expiration-month>10</expiration-month>\n
|
211
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>212</card-security-code>\n
|
212
|
+
\ <card-level>P</card-level>\n <statement-data
|
213
|
+
processing-date=\"2012-09-27\" currency=\"EUR\">\n <balance>1200</balance>\n
|
214
|
+
\ </statement-data>\n <issuing-date>2012-09-27</issuing-date>\n
|
215
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
216
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
217
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
218
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
219
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
220
|
+
http_version:
|
221
|
+
recorded_at: Thu, 27 Sep 2012 08:59:15 GMT
|
222
|
+
recorded_with: VCR 2.2.4
|