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/change_status/should_cancelled_card.yml
ADDED
@@ -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>99a9ff60-eaae-012f-80fc-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:52:33 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>99a9ff60-eaae-012f-80fc-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>06ED691F0A0681401377C1C559FEA435</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>06ED693F0A0681401377C1C5F2BF9CB9</card-id>\n <card-number>5274569793964687</card-number>\n
|
49
|
+
\ <expiration-month>10</expiration-month>\n <expiration-year>2013</expiration-year>\n
|
50
|
+
\ <card-security-code>262</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:52:41 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>9e8ec280-eaae-012f-80fc-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <change-card-status>\n
|
66
|
+
\ <status-code>cancelled</status-code>\n <card-data>\n <card-id>06ED693F0A0681401377C1C5F2BF9CB9</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
|
+
- '422'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Thu, 27 Sep 2012 08:52:41 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>9e8ec280-eaae-012f-80fc-70def1d6b112</request-id>\n
|
98
|
+
\ <response-id>06ED893A0A0681401377C1C54601E5CD</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>cancellation-pending</status-code>\n
|
101
|
+
\ <status-message>Cancellation of the card is in process</status-message>\n
|
102
|
+
\ </card-status>\n </change-card-status>\n</issuer-response>\n"
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 27 Sep 2012 08:52:47 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>a280e070-eaae-012f-80fc-70def1d6b112</request-id>\n
|
112
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
113
|
+
\ <card-data>\n <card-id>06ED693F0A0681401377C1C5F2BF9CB9</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, 27 Sep 2012 08:52:47 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>a280e070-eaae-012f-80fc-70def1d6b112</request-id>\n
|
145
|
+
\ <response-id>06EDA31F0A0681411A741064E9A4DCD2</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>cancellation-pending</status-code>\n
|
153
|
+
\ <status-message>Cancellation of the card is in process</status-message>\n
|
154
|
+
\ </card-status>\n <card-data>\n <card-id>06ED693F0A0681401377C1C5F2BF9CB9</card-id>\n
|
155
|
+
\ <card-number>5274569793964687</card-number>\n <expiration-month>10</expiration-month>\n
|
156
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>262</card-security-code>\n
|
157
|
+
\ <card-level>P</card-level>\n <statement-data
|
158
|
+
processing-date=\"2012-09-27\" currency=\"EUR\">\n <balance>0</balance>\n
|
159
|
+
\ </statement-data>\n <issuing-date>2012-09-27</issuing-date>\n
|
160
|
+
\ </card-data>\n <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, 27 Sep 2012 08:52:52 GMT
|
167
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,171 @@
|
|
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>6c3c3d00-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:26 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>6c3c3d00-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>06F2CF080A06814119EE6E44B57A5654</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>06F2CF1F0A06814119EE6E44E504E405</card-id>\n <card-number>5274569793030729</card-number>\n
|
49
|
+
\ <expiration-month>10</expiration-month>\n <expiration-year>2013</expiration-year>\n
|
50
|
+
\ <card-security-code>241</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:35 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>71999ad0-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>06F2CF1F0A06814119EE6E44E504E405</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:35 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>71999ad0-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
99
|
+
\ <response-id>06F2F1980A06814012013E19092E341A</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>06F2F1D90A06814012013E190C4C2848</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:37 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>72f13f30-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>06F2CF1F0A06814119EE6E44E504E405</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:37 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>72f13f30-eaaf-012f-80ff-70def1d6b112</request-id>\n
|
149
|
+
\ <response-id>06F2F9B10A0681401377C1C5FDDF4CC0</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>06F2CF1F0A06814119EE6E44E504E405</card-id>\n
|
159
|
+
\ <card-number>5274569793030729</card-number>\n <expiration-month>10</expiration-month>\n
|
160
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>241</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:40 GMT
|
171
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,120 @@
|
|
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>285692d0-eaae-012f-80f7-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:49:22 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>285692d0-eaae-012f-80f7-70def1d6b112</request-id>\n
|
43
|
+
\ <response-id>06EA82320A06814012013E199467876A</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>06EA82460A06814012013E19CB7C1B09</card-id>\n <card-number>5274569796675066</card-number>\n
|
49
|
+
\ <expiration-month>10</expiration-month>\n <expiration-year>2013</expiration-year>\n
|
50
|
+
\ <card-security-code>972</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:49:34 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>2f291420-eaae-012f-80f7-70def1d6b112</request-id>\n
|
65
|
+
\ <entity-id>000000315ED21F74</entity-id>\n </application>\n <get-card-info>\n
|
66
|
+
\ <card-data>\n <card-id>06EA82460A06814012013E19CB7C1B09</card-id>\n
|
67
|
+
\ </card-data>\n <card-activity>no</card-activity>\n </get-card-info>\n</issuer-request>\n"
|
68
|
+
headers:
|
69
|
+
Accept:
|
70
|
+
- ! '*/*'
|
71
|
+
User-Agent:
|
72
|
+
- Ruby
|
73
|
+
Content-Type:
|
74
|
+
- text/xml
|
75
|
+
Content-Length:
|
76
|
+
- '409'
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Thu, 27 Sep 2012 08:49:34 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>2f291420-eaae-012f-80f7-70def1d6b112</request-id>\n
|
98
|
+
\ <response-id>06EAB0C50A0681411A741064A00B1685</response-id>\n </application>\n
|
99
|
+
\ <get-card-info>\n <return-code>0</return-code>\n <return-message>Successful
|
100
|
+
system entry.</return-message>\n <consumer-data>\n <consumer-id>1302eff60a0a0c6f00e53108045ed118</consumer-id>\n
|
101
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
102
|
+
SCP Test</last-name>\n <email>wirecardscpbusiness@wirecard.de</email>\n
|
103
|
+
\ <consumer-type>B</consumer-type>\n <salutation>0</salutation>\n
|
104
|
+
\ <marital-status>0</marital-status>\n </consumer-data>\n
|
105
|
+
\ <account-card-data>\n <card-status>\n <status-code>activated</status-code>\n
|
106
|
+
\ <status-message>Active card</status-message>\n </card-status>\n
|
107
|
+
\ <card-data>\n <card-id>06EA82460A06814012013E19CB7C1B09</card-id>\n
|
108
|
+
\ <card-number>5274569796675066</card-number>\n <expiration-month>10</expiration-month>\n
|
109
|
+
\ <expiration-year>2013</expiration-year>\n <card-security-code>972</card-security-code>\n
|
110
|
+
\ <card-level>P</card-level>\n <statement-data
|
111
|
+
processing-date=\"2012-09-27\" currency=\"EUR\">\n <balance>0</balance>\n
|
112
|
+
\ </statement-data>\n <issuing-date>2012-09-27</issuing-date>\n
|
113
|
+
\ </card-data>\n <account-data>\n <bank-code>51230800</bank-code>\n
|
114
|
+
\ <account-number>2345</account-number>\n <currency>EUR</currency>\n
|
115
|
+
\ <first-name>WD SCP Test</first-name>\n <last-name>WD
|
116
|
+
SCP Test</last-name>\n <issuer-consumer-id>2345</issuer-consumer-id>\n
|
117
|
+
\ </account-data>\n </account-card-data>\n </get-card-info>\n</issuer-response>\n"
|
118
|
+
http_version:
|
119
|
+
recorded_at: Thu, 27 Sep 2012 08:49:37 GMT
|
120
|
+
recorded_with: VCR 2.2.4
|