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
@@ -0,0 +1,276 @@
|
|
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>4236d8d0-483e-0130-83cc-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, 24 Jan 2013 10:25:12 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>4236d8d0-483e-0130-83cc-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>6C1700AA0A0681401311AF8D26D2A42B</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>6C1700C10A0681401311AF8D64E858F5</card-id>\n <card-number>5274569799407160</card-number>\n
|
49
|
+
\ <expiration-month>02</expiration-month>\n <expiration-year>2014</expiration-year>\n
|
50
|
+
\ <card-security-code>525</card-security-code>\n <issuing-date>2013-01-24</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, 24 Jan 2013 10:25:18 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>46170600-483e-0130-83cc-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
66
|
+
\ <status-code>blocked</status-code>\n <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
67
|
+
\ </card-data>\n </change-card-status>\n</issuer-request>\n"
|
68
|
+
headers:
|
69
|
+
Accept:
|
70
|
+
- ! '*/*'
|
71
|
+
User-Agent:
|
72
|
+
- Ruby
|
73
|
+
Content-Type:
|
74
|
+
- text/xml
|
75
|
+
Content-Length:
|
76
|
+
- '420'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Thu, 24 Jan 2013 10:25:18 GMT
|
84
|
+
Server:
|
85
|
+
- Apache
|
86
|
+
X-Powered-By:
|
87
|
+
- Servlet/2.5 JSP/2.1
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Transfer-Encoding:
|
91
|
+
- chunked
|
92
|
+
Content-Type:
|
93
|
+
- text/xml
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
97
|
+
\ <application>\n <request-id>46170600-483e-0130-83cc-70def1d6b112</request-id>\n
|
98
|
+
\ <response-id>6C1719730A06814119F495D67AA140DA</response-id>\n </application>\n
|
99
|
+
\ <change-card-status>\n <return-code>0</return-code>\n <return-message>Successful
|
100
|
+
system entry.</return-message>\n <card-status>\n <status-code>blocked</status-code>\n
|
101
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
102
|
+
\ </change-card-status>\n</issuer-response>\n"
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 24 Jan 2013 10:25:22 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
111
|
+
version=\"1.0\">\n <application>\n <request-id>485ff640-483e-0130-83cc-70def1d6b112</request-id>\n
|
112
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
113
|
+
\ <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
114
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
115
|
+
headers:
|
116
|
+
Accept:
|
117
|
+
- ! '*/*'
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Content-Type:
|
121
|
+
- text/xml
|
122
|
+
Content-Length:
|
123
|
+
- '409'
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Date:
|
130
|
+
- Thu, 24 Jan 2013 10:25:22 GMT
|
131
|
+
Server:
|
132
|
+
- Apache
|
133
|
+
X-Powered-By:
|
134
|
+
- Servlet/2.5 JSP/2.1
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Transfer-Encoding:
|
138
|
+
- chunked
|
139
|
+
Content-Type:
|
140
|
+
- text/xml
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
144
|
+
\ <application>\n <request-id>485ff640-483e-0130-83cc-70def1d6b112</request-id>\n
|
145
|
+
\ <response-id>6C1728450A0681401595D2EB2B86F328</response-id>\n </application>\n
|
146
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
147
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
148
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
149
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
150
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
151
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
152
|
+
\ <account-card-data>\n <card-status>\n <status-code>blocked</status-code>\n
|
153
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
154
|
+
\ <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
155
|
+
\ <card-number>5274569799407160</card-number>\n <expiration-month>02</expiration-month>\n
|
156
|
+
\ <expiration-year>2014</expiration-year>\n <card-level>P</card-level>\n
|
157
|
+
\ <statement-data processing-date=\"2013-01-24\" currency=\"EUR\">\n
|
158
|
+
\ <balance>0</balance>\n </statement-data>\n
|
159
|
+
\ <issuing-date>2013-01-24</issuing-date>\n </card-data>\n
|
160
|
+
\ <account-data>\n <bank-code>51230800</bank-code>\n
|
161
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
162
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
163
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
164
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
165
|
+
http_version:
|
166
|
+
recorded_at: Thu, 24 Jan 2013 10:25:23 GMT
|
167
|
+
- request:
|
168
|
+
method: post
|
169
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
170
|
+
body:
|
171
|
+
encoding: UTF-8
|
172
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
173
|
+
version=\"1.0\">\n <application>\n <request-id>49049bd0-483e-0130-83cc-70def1d6b112</request-id>\n
|
174
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
175
|
+
\ <status-code>activated</status-code>\n <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
176
|
+
\ </card-data>\n </change-card-status>\n</issuer-request>\n"
|
177
|
+
headers:
|
178
|
+
Accept:
|
179
|
+
- ! '*/*'
|
180
|
+
User-Agent:
|
181
|
+
- Ruby
|
182
|
+
Content-Type:
|
183
|
+
- text/xml
|
184
|
+
Content-Length:
|
185
|
+
- '422'
|
186
|
+
response:
|
187
|
+
status:
|
188
|
+
code: 200
|
189
|
+
message: OK
|
190
|
+
headers:
|
191
|
+
Date:
|
192
|
+
- Thu, 24 Jan 2013 10:25:23 GMT
|
193
|
+
Server:
|
194
|
+
- Apache
|
195
|
+
X-Powered-By:
|
196
|
+
- Servlet/2.5 JSP/2.1
|
197
|
+
Connection:
|
198
|
+
- close
|
199
|
+
Transfer-Encoding:
|
200
|
+
- chunked
|
201
|
+
Content-Type:
|
202
|
+
- text/xml
|
203
|
+
body:
|
204
|
+
encoding: US-ASCII
|
205
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
206
|
+
\ <application>\n <request-id>49049bd0-483e-0130-83cc-70def1d6b112</request-id>\n
|
207
|
+
\ <response-id>6C172C6C0A0681401311AF8DCB5B4BDE</response-id>\n </application>\n
|
208
|
+
\ <change-card-status>\n <return-code>0</return-code>\n <return-message>Successful
|
209
|
+
system entry.</return-message>\n <card-status>\n <status-code>activated</status-code>\n
|
210
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
211
|
+
\ </change-card-status>\n</issuer-response>\n"
|
212
|
+
http_version:
|
213
|
+
recorded_at: Thu, 24 Jan 2013 10:25:26 GMT
|
214
|
+
- request:
|
215
|
+
method: post
|
216
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
217
|
+
body:
|
218
|
+
encoding: UTF-8
|
219
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
220
|
+
version=\"1.0\">\n <application>\n <request-id>4b3e6ec0-483e-0130-83cc-70def1d6b112</request-id>\n
|
221
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
222
|
+
\ <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
223
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
224
|
+
headers:
|
225
|
+
Accept:
|
226
|
+
- ! '*/*'
|
227
|
+
User-Agent:
|
228
|
+
- Ruby
|
229
|
+
Content-Type:
|
230
|
+
- text/xml
|
231
|
+
Content-Length:
|
232
|
+
- '409'
|
233
|
+
response:
|
234
|
+
status:
|
235
|
+
code: 200
|
236
|
+
message: OK
|
237
|
+
headers:
|
238
|
+
Date:
|
239
|
+
- Thu, 24 Jan 2013 10:25:27 GMT
|
240
|
+
Server:
|
241
|
+
- Apache
|
242
|
+
X-Powered-By:
|
243
|
+
- Servlet/2.5 JSP/2.1
|
244
|
+
Connection:
|
245
|
+
- close
|
246
|
+
Transfer-Encoding:
|
247
|
+
- chunked
|
248
|
+
Content-Type:
|
249
|
+
- text/xml
|
250
|
+
body:
|
251
|
+
encoding: US-ASCII
|
252
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
253
|
+
\ <application>\n <request-id>4b3e6ec0-483e-0130-83cc-70def1d6b112</request-id>\n
|
254
|
+
\ <response-id>6C173B730A06814119F495D6F2F73681</response-id>\n </application>\n
|
255
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
256
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
257
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
258
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
259
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
260
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
261
|
+
\ <account-card-data>\n <card-status>\n <status-code>activated</status-code>\n
|
262
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
263
|
+
\ <card-data>\n <card-id>6C1700C10A0681401311AF8D64E858F5</card-id>\n
|
264
|
+
\ <card-number>5274569799407160</card-number>\n <expiration-month>02</expiration-month>\n
|
265
|
+
\ <expiration-year>2014</expiration-year>\n <card-security-code>525</card-security-code>\n
|
266
|
+
\ <card-level>P</card-level>\n <statement-data
|
267
|
+
processing-date=\"2013-01-24\" currency=\"EUR\">\n <balance>0</balance>\n
|
268
|
+
\ </statement-data>\n <issuing-date>2013-01-24</issuing-date>\n
|
269
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
270
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
271
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
272
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
273
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
274
|
+
http_version:
|
275
|
+
recorded_at: Thu, 24 Jan 2013 10:25:28 GMT
|
276
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,167 @@
|
|
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>7e12e690-483e-0130-83d0-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, 24 Jan 2013 10:26:52 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>7e12e690-483e-0130-83d0-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>6C1888D10A0681401595D2EBF1357233</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>6C1888E90A0681401595D2EBC5C85016</card-id>\n <card-number>5274569790114690</card-number>\n
|
49
|
+
\ <expiration-month>02</expiration-month>\n <expiration-year>2014</expiration-year>\n
|
50
|
+
\ <card-security-code>620</card-security-code>\n <issuing-date>2013-01-24</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, 24 Jan 2013 10:26:58 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>81e80e60-483e-0130-83d0-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
66
|
+
\ <status-code>blocked</status-code>\n <card-data>\n <card-id>6C1888E90A0681401595D2EBC5C85016</card-id>\n
|
67
|
+
\ </card-data>\n </change-card-status>\n</issuer-request>\n"
|
68
|
+
headers:
|
69
|
+
Accept:
|
70
|
+
- ! '*/*'
|
71
|
+
User-Agent:
|
72
|
+
- Ruby
|
73
|
+
Content-Type:
|
74
|
+
- text/xml
|
75
|
+
Content-Length:
|
76
|
+
- '420'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Thu, 24 Jan 2013 10:26:58 GMT
|
84
|
+
Server:
|
85
|
+
- Apache
|
86
|
+
X-Powered-By:
|
87
|
+
- Servlet/2.5 JSP/2.1
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Transfer-Encoding:
|
91
|
+
- chunked
|
92
|
+
Content-Type:
|
93
|
+
- text/xml
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
97
|
+
\ <application>\n <request-id>81e80e60-483e-0130-83d0-70def1d6b112</request-id>\n
|
98
|
+
\ <response-id>6C18A1930A06814119F495D6C728B13E</response-id>\n </application>\n
|
99
|
+
\ <change-card-status>\n <return-code>0</return-code>\n <return-message>Successful
|
100
|
+
system entry.</return-message>\n <card-status>\n <status-code>blocked</status-code>\n
|
101
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
102
|
+
\ </change-card-status>\n</issuer-response>\n"
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 24 Jan 2013 10:27:00 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
111
|
+
version=\"1.0\">\n <application>\n <request-id>83249720-483e-0130-83d0-70def1d6b112</request-id>\n
|
112
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
113
|
+
\ <card-data>\n <card-id>6C1888E90A0681401595D2EBC5C85016</card-id>\n
|
114
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
115
|
+
headers:
|
116
|
+
Accept:
|
117
|
+
- ! '*/*'
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Content-Type:
|
121
|
+
- text/xml
|
122
|
+
Content-Length:
|
123
|
+
- '409'
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Date:
|
130
|
+
- Thu, 24 Jan 2013 10:27:00 GMT
|
131
|
+
Server:
|
132
|
+
- Apache
|
133
|
+
X-Powered-By:
|
134
|
+
- Servlet/2.5 JSP/2.1
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Transfer-Encoding:
|
138
|
+
- chunked
|
139
|
+
Content-Type:
|
140
|
+
- text/xml
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
144
|
+
\ <application>\n <request-id>83249720-483e-0130-83d0-70def1d6b112</request-id>\n
|
145
|
+
\ <response-id>6C18AAB00A0681401595D2EBB4D32C9A</response-id>\n </application>\n
|
146
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
147
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
148
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
149
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
150
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
151
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
152
|
+
\ <account-card-data>\n <card-status>\n <status-code>blocked</status-code>\n
|
153
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
154
|
+
\ <card-data>\n <card-id>6C1888E90A0681401595D2EBC5C85016</card-id>\n
|
155
|
+
\ <card-number>5274569790114690</card-number>\n <expiration-month>02</expiration-month>\n
|
156
|
+
\ <expiration-year>2014</expiration-year>\n <card-level>P</card-level>\n
|
157
|
+
\ <statement-data processing-date=\"2013-01-24\" currency=\"EUR\">\n
|
158
|
+
\ <balance>0</balance>\n </statement-data>\n
|
159
|
+
\ <issuing-date>2013-01-24</issuing-date>\n </card-data>\n
|
160
|
+
\ <account-data>\n <bank-code>51230800</bank-code>\n
|
161
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
162
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
163
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
164
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
165
|
+
http_version:
|
166
|
+
recorded_at: Thu, 24 Jan 2013 10:27:02 GMT
|
167
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,167 @@
|
|
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>c7c18740-4842-0130-83df-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, 24 Jan 2013 10:57:34 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>c7c18740-4842-0130-83df-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>6C34A1B40A0681401595D2EB610C61E2</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-number>5274569797492594</card-number>\n
|
49
|
+
\ <expiration-month>02</expiration-month>\n <expiration-year>2014</expiration-year>\n
|
50
|
+
\ <card-security-code>377</card-security-code>\n <issuing-date>2013-01-24</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, 24 Jan 2013 10:57:40 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>cb7626e0-4842-0130-83df-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
66
|
+
\ <status-code>blocked</status-code>\n <card-data>\n <card-id>6C34A1C80A0681401595D2EB58A13224</card-id>\n
|
67
|
+
\ </card-data>\n </change-card-status>\n</issuer-request>\n"
|
68
|
+
headers:
|
69
|
+
Accept:
|
70
|
+
- ! '*/*'
|
71
|
+
User-Agent:
|
72
|
+
- Ruby
|
73
|
+
Content-Type:
|
74
|
+
- text/xml
|
75
|
+
Content-Length:
|
76
|
+
- '420'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Thu, 24 Jan 2013 10:57:40 GMT
|
84
|
+
Server:
|
85
|
+
- Apache
|
86
|
+
X-Powered-By:
|
87
|
+
- Servlet/2.5 JSP/2.1
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Transfer-Encoding:
|
91
|
+
- chunked
|
92
|
+
Content-Type:
|
93
|
+
- text/xml
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
97
|
+
\ <application>\n <request-id>cb7626e0-4842-0130-83df-70def1d6b112</request-id>\n
|
98
|
+
\ <response-id>6C34BAE70A0681411A462293753BF220</response-id>\n </application>\n
|
99
|
+
\ <change-card-status>\n <return-code>0</return-code>\n <return-message>Successful
|
100
|
+
system entry.</return-message>\n <card-status>\n <status-code>blocked</status-code>\n
|
101
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
102
|
+
\ </change-card-status>\n</issuer-response>\n"
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 24 Jan 2013 10:57:44 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://000000315ED21E8A:FDJqLhoRX@localhost:8080/issuer/client
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<issuer-request mode=\"live\"
|
111
|
+
version=\"1.0\">\n <application>\n <request-id>cde21dc0-4842-0130-83df-70def1d6b112</request-id>\n
|
112
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
113
|
+
\ <card-data>\n <card-id>6C34A1C80A0681401595D2EB58A13224</card-id>\n
|
114
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
115
|
+
headers:
|
116
|
+
Accept:
|
117
|
+
- ! '*/*'
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Content-Type:
|
121
|
+
- text/xml
|
122
|
+
Content-Length:
|
123
|
+
- '409'
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Date:
|
130
|
+
- Thu, 24 Jan 2013 10:57:44 GMT
|
131
|
+
Server:
|
132
|
+
- Apache
|
133
|
+
X-Powered-By:
|
134
|
+
- Servlet/2.5 JSP/2.1
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Transfer-Encoding:
|
138
|
+
- chunked
|
139
|
+
Content-Type:
|
140
|
+
- text/xml
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<issuer-response>\n
|
144
|
+
\ <application>\n <request-id>cde21dc0-4842-0130-83df-70def1d6b112</request-id>\n
|
145
|
+
\ <response-id>6C34CA440A0681401311AF8D59CF0941</response-id>\n </application>\n
|
146
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
147
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
148
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
149
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
150
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
151
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
152
|
+
\ <account-card-data>\n <card-status>\n <status-code>blocked</status-code>\n
|
153
|
+
\ <status-message>Card is blocked</status-message>\n </card-status>\n
|
154
|
+
\ <card-data>\n <card-id></card-id>\n
|
155
|
+
\ <card-number>5274569797492594</card-number>\n <expiration-month>02</expiration-month>\n
|
156
|
+
\ <expiration-year>2014</expiration-year>\n <card-level>P</card-level>\n
|
157
|
+
\ <statement-data processing-date=\"2013-01-24\" currency=\"EUR\">\n
|
158
|
+
\ <balance>0</balance>\n </statement-data>\n
|
159
|
+
\ <issuing-date>2013-01-24</issuing-date>\n </card-data>\n
|
160
|
+
\ <account-data>\n <bank-code>51230800</bank-code>\n
|
161
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
162
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
163
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
164
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
165
|
+
http_version:
|
166
|
+
recorded_at: Thu, 24 Jan 2013 10:57:45 GMT
|
167
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,49 @@
|
|
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>902969a0-4840-0130-83d4-70def1d6b112</request-id>\n
|
10
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
11
|
+
\ <status-code>blocked</status-code>\n <card-data>\n <card-id>47ae07020a010018157db66065da6e5c</card-id>\n
|
12
|
+
\ </card-data>\n </change-card-status>\n</issuer-request>\n"
|
13
|
+
headers:
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Content-Type:
|
19
|
+
- text/xml
|
20
|
+
Content-Length:
|
21
|
+
- '420'
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 24 Jan 2013 10:41:42 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>902969a0-4840-0130-83d4-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>6C261AFF0A06814119F495D643C31F24</response-id>\n </application>\n
|
44
|
+
\ <change-card-status>\n <return-code>516</return-code>\n <return-message>Request
|
45
|
+
cannot be accepted with the current status of the card.</return-message>\n
|
46
|
+
\ </change-card-status>\n</issuer-response>\n"
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 24 Jan 2013 10:41:42 GMT
|
49
|
+
recorded_with: VCR 2.2.5
|