recurly 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/recurly/subscription.rb +2 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +0 -2
- data/spec/integration/invoice_spec.rb +0 -1
- data/spec/integration/subscription_spec.rb +49 -10
- data/spec/integration/transaction_spec.rb +3 -2
- data/spec/support/factory.rb +2 -2
- data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
- data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
- data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
- data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
- data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
- data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +24 -24
- data/spec/vcr/billing/find/1286682213.yml +20 -20
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +25 -25
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/list/1286681343.yml +37 -37
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
- data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
- data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
- data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
- data/spec/vcr/plan/all.yml +8 -8
- data/spec/vcr/plan/delete/1286677585.yml +15 -15
- data/spec/vcr/plan/find.yml +8 -8
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
- data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
- data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
- data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
- data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
- data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
- data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
- data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
- data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
- data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
- data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
- data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
- data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
- data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
- data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
- data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
- data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
- data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
- data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
- data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
- data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
- data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
- data/spec/vcr/transaction/refund/1287186411.yml +282 -0
- data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
- metadata +92 -86
- data/spec/vcr/subscription/change2/1287037152.yml +0 -283
- data/spec/vcr/subscription/change2/1287037325.yml +0 -283
- data/spec/vcr/subscription/create/1287036910.yml +0 -224
- data/spec/vcr/subscription/find/1287037363.yml +0 -283
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
x-ua-compatible:
|
|
20
20
|
- IE=Edge
|
|
21
21
|
etag:
|
|
22
|
-
- "\"
|
|
22
|
+
- "\"cf0cde64f1513787571a71fdac0cf159\""
|
|
23
23
|
connection:
|
|
24
24
|
- close
|
|
25
25
|
content-type:
|
|
26
26
|
- application/xml; charset=utf-8
|
|
27
27
|
x-runtime:
|
|
28
|
-
- "
|
|
28
|
+
- "88"
|
|
29
29
|
date:
|
|
30
|
-
-
|
|
30
|
+
- Mon, 18 Oct 2010 22:06:58 GMT
|
|
31
31
|
server:
|
|
32
32
|
- nginx/0.7.65
|
|
33
33
|
content-length:
|
|
34
|
-
- "
|
|
34
|
+
- "15348"
|
|
35
35
|
set-cookie:
|
|
36
|
-
- _recurly_session=
|
|
36
|
+
- _recurly_session=5dce28013e0ec92fcfa3cd94266035d3; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
37
37
|
cache-control:
|
|
38
38
|
- private, max-age=0, must-revalidate
|
|
39
39
|
body: |
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
<transactions type="collection">
|
|
42
42
|
<current_page type="integer">1</current_page>
|
|
43
43
|
<per_page type="integer">20</per_page>
|
|
44
|
-
<total_entries type="integer">
|
|
44
|
+
<total_entries type="integer">28</total_entries>
|
|
45
45
|
<transaction type="Payment">
|
|
46
|
-
<id>
|
|
47
|
-
<account_code>transaction-create-with-account-
|
|
46
|
+
<id>a27026a7ae884d83b81ddff90a72a379</id>
|
|
47
|
+
<account_code>transaction-create-with-account-1287186411</account_code>
|
|
48
48
|
<action>purchase</action>
|
|
49
|
-
<date type="datetime">2010-10-
|
|
49
|
+
<date type="datetime">2010-10-18T22:06:57Z</date>
|
|
50
50
|
<amount_in_cents type="integer">700</amount_in_cents>
|
|
51
51
|
<status>success</status>
|
|
52
52
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
<refundable type="boolean">true</refundable>
|
|
61
61
|
</transaction>
|
|
62
62
|
<transaction type="Payment">
|
|
63
|
-
<id>
|
|
64
|
-
<account_code>transaction-create-with-account-
|
|
63
|
+
<id>b9ff94cc51444e41aee287c64c6b6bdc</id>
|
|
64
|
+
<account_code>transaction-create-with-account-1287186411</account_code>
|
|
65
65
|
<action>authorization</action>
|
|
66
|
-
<date type="datetime">2010-10-
|
|
66
|
+
<date type="datetime">2010-10-18T22:06:56Z</date>
|
|
67
67
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
68
68
|
<status>void</status>
|
|
69
69
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
<refundable type="boolean">false</refundable>
|
|
78
78
|
</transaction>
|
|
79
79
|
<transaction type="Payment">
|
|
80
|
-
<id>
|
|
81
|
-
<account_code>transaction-create-with-accout-
|
|
80
|
+
<id>45669f9bb0c74cbab374cc1a1ffaddd2</id>
|
|
81
|
+
<account_code>transaction-create-with-accout-1287186411</account_code>
|
|
82
82
|
<action>purchase</action>
|
|
83
|
-
<date type="datetime">2010-10-
|
|
83
|
+
<date type="datetime">2010-10-18T22:06:53Z</date>
|
|
84
84
|
<amount_in_cents type="integer">700</amount_in_cents>
|
|
85
85
|
<status>success</status>
|
|
86
86
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
<refundable type="boolean">true</refundable>
|
|
95
95
|
</transaction>
|
|
96
96
|
<transaction type="Refund">
|
|
97
|
-
<id>
|
|
98
|
-
<account_code>subscription-refund-
|
|
97
|
+
<id>520a44e5c6f14a51a0196fac81e9269f</id>
|
|
98
|
+
<account_code>subscription-refund-none-1287439446</account_code>
|
|
99
99
|
<action>credit</action>
|
|
100
|
-
<date type="datetime">2010-10-
|
|
100
|
+
<date type="datetime">2010-10-18T22:06:51Z</date>
|
|
101
101
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
102
102
|
<status>success</status>
|
|
103
103
|
<message>Bogus Gateway: Forced success</message>
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
<refundable type="boolean">false</refundable>
|
|
112
112
|
</transaction>
|
|
113
113
|
<transaction type="Payment">
|
|
114
|
-
<id>
|
|
115
|
-
<account_code>subscription-refund-
|
|
114
|
+
<id>9d5e9319302c4c2593f75eca5e49cbc0</id>
|
|
115
|
+
<account_code>subscription-refund-none-1287439446</account_code>
|
|
116
116
|
<action>purchase</action>
|
|
117
|
-
<date type="datetime">2010-10-
|
|
117
|
+
<date type="datetime">2010-10-18T22:06:50Z</date>
|
|
118
118
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
119
119
|
<status>success</status>
|
|
120
120
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -127,28 +127,28 @@
|
|
|
127
127
|
<voidable type="boolean">false</voidable>
|
|
128
128
|
<refundable type="boolean">false</refundable>
|
|
129
129
|
</transaction>
|
|
130
|
-
<transaction type="
|
|
131
|
-
<id>
|
|
132
|
-
<account_code>subscription-
|
|
133
|
-
<action>
|
|
134
|
-
<date type="datetime">2010-10-
|
|
130
|
+
<transaction type="Refund">
|
|
131
|
+
<id>5f9567899a074ad2ad97b876ea87ceae</id>
|
|
132
|
+
<account_code>subscription-refund-partial-1287439446</account_code>
|
|
133
|
+
<action>credit</action>
|
|
134
|
+
<date type="datetime">2010-10-18T22:06:47Z</date>
|
|
135
135
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
136
136
|
<status>success</status>
|
|
137
|
-
<message>
|
|
137
|
+
<message>Bogus Gateway: Forced success</message>
|
|
138
138
|
<reference></reference>
|
|
139
|
-
<cvv_result code="
|
|
140
|
-
<avs_result code="
|
|
139
|
+
<cvv_result code=""></cvv_result>
|
|
140
|
+
<avs_result code=""></avs_result>
|
|
141
141
|
<avs_result_street></avs_result_street>
|
|
142
142
|
<avs_result_postal></avs_result_postal>
|
|
143
143
|
<test type="boolean">true</test>
|
|
144
144
|
<voidable type="boolean">true</voidable>
|
|
145
|
-
<refundable type="boolean">
|
|
145
|
+
<refundable type="boolean">false</refundable>
|
|
146
146
|
</transaction>
|
|
147
147
|
<transaction type="Payment">
|
|
148
|
-
<id>
|
|
149
|
-
<account_code>
|
|
148
|
+
<id>3ada59c56d2c4e20916866e77f11deed</id>
|
|
149
|
+
<account_code>subscription-refund-partial-1287439446</account_code>
|
|
150
150
|
<action>purchase</action>
|
|
151
|
-
<date type="datetime">2010-10-
|
|
151
|
+
<date type="datetime">2010-10-18T22:06:45Z</date>
|
|
152
152
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
153
153
|
<status>success</status>
|
|
154
154
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -158,14 +158,31 @@
|
|
|
158
158
|
<avs_result_street></avs_result_street>
|
|
159
159
|
<avs_result_postal></avs_result_postal>
|
|
160
160
|
<test type="boolean">true</test>
|
|
161
|
+
<voidable type="boolean">false</voidable>
|
|
162
|
+
<refundable type="boolean">false</refundable>
|
|
163
|
+
</transaction>
|
|
164
|
+
<transaction type="Refund">
|
|
165
|
+
<id>8cadfebd1c6f48e7a47292a13cff9994</id>
|
|
166
|
+
<account_code>subscription-refund-full-1287439446</account_code>
|
|
167
|
+
<action>credit</action>
|
|
168
|
+
<date type="datetime">2010-10-18T22:06:42Z</date>
|
|
169
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
170
|
+
<status>success</status>
|
|
171
|
+
<message>Bogus Gateway: Forced success</message>
|
|
172
|
+
<reference></reference>
|
|
173
|
+
<cvv_result code=""></cvv_result>
|
|
174
|
+
<avs_result code=""></avs_result>
|
|
175
|
+
<avs_result_street></avs_result_street>
|
|
176
|
+
<avs_result_postal></avs_result_postal>
|
|
177
|
+
<test type="boolean">true</test>
|
|
161
178
|
<voidable type="boolean">true</voidable>
|
|
162
|
-
<refundable type="boolean">
|
|
179
|
+
<refundable type="boolean">false</refundable>
|
|
163
180
|
</transaction>
|
|
164
181
|
<transaction type="Payment">
|
|
165
|
-
<id>
|
|
166
|
-
<account_code>subscription-
|
|
182
|
+
<id>6886a9e570e246dda60f75d602736f08</id>
|
|
183
|
+
<account_code>subscription-refund-full-1287439446</account_code>
|
|
167
184
|
<action>purchase</action>
|
|
168
|
-
<date type="datetime">2010-10-
|
|
185
|
+
<date type="datetime">2010-10-18T22:06:41Z</date>
|
|
169
186
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
170
187
|
<status>success</status>
|
|
171
188
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -175,14 +192,14 @@
|
|
|
175
192
|
<avs_result_street></avs_result_street>
|
|
176
193
|
<avs_result_postal></avs_result_postal>
|
|
177
194
|
<test type="boolean">true</test>
|
|
178
|
-
<voidable type="boolean">
|
|
179
|
-
<refundable type="boolean">
|
|
195
|
+
<voidable type="boolean">false</voidable>
|
|
196
|
+
<refundable type="boolean">false</refundable>
|
|
180
197
|
</transaction>
|
|
181
198
|
<transaction type="Payment">
|
|
182
|
-
<id>
|
|
183
|
-
<account_code>subscription-
|
|
199
|
+
<id>3ca27725b9af4fff8e65dabbb6e32999</id>
|
|
200
|
+
<account_code>subscription-cancel-1287439446</account_code>
|
|
184
201
|
<action>purchase</action>
|
|
185
|
-
<date type="datetime">2010-10-
|
|
202
|
+
<date type="datetime">2010-10-18T22:06:36Z</date>
|
|
186
203
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
187
204
|
<status>success</status>
|
|
188
205
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -196,10 +213,10 @@
|
|
|
196
213
|
<refundable type="boolean">true</refundable>
|
|
197
214
|
</transaction>
|
|
198
215
|
<transaction type="Payment">
|
|
199
|
-
<id>
|
|
200
|
-
<account_code>
|
|
216
|
+
<id>346b6105194a453f8d20bff6903f287a</id>
|
|
217
|
+
<account_code>1287439446</account_code>
|
|
201
218
|
<action>purchase</action>
|
|
202
|
-
<date type="datetime">2010-10-
|
|
219
|
+
<date type="datetime">2010-10-18T22:06:30Z</date>
|
|
203
220
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
204
221
|
<status>success</status>
|
|
205
222
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -213,12 +230,12 @@
|
|
|
213
230
|
<refundable type="boolean">true</refundable>
|
|
214
231
|
</transaction>
|
|
215
232
|
<transaction type="Payment">
|
|
216
|
-
<id>
|
|
217
|
-
<account_code>
|
|
218
|
-
<action>
|
|
219
|
-
<date type="datetime">2010-10-
|
|
220
|
-
<amount_in_cents type="integer">
|
|
221
|
-
<status>
|
|
233
|
+
<id>ff05b8d3cddc4322b9709b63c7e804d3</id>
|
|
234
|
+
<account_code>subscription-change1-1287439446</account_code>
|
|
235
|
+
<action>purchase</action>
|
|
236
|
+
<date type="datetime">2010-10-18T22:06:24Z</date>
|
|
237
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
238
|
+
<status>success</status>
|
|
222
239
|
<message>Test Gateway: Successful test transaction</message>
|
|
223
240
|
<reference></reference>
|
|
224
241
|
<cvv_result code="M">Match</cvv_result>
|
|
@@ -226,16 +243,16 @@
|
|
|
226
243
|
<avs_result_street></avs_result_street>
|
|
227
244
|
<avs_result_postal></avs_result_postal>
|
|
228
245
|
<test type="boolean">true</test>
|
|
229
|
-
<voidable type="boolean">
|
|
230
|
-
<refundable type="boolean">
|
|
246
|
+
<voidable type="boolean">true</voidable>
|
|
247
|
+
<refundable type="boolean">true</refundable>
|
|
231
248
|
</transaction>
|
|
232
249
|
<transaction type="Payment">
|
|
233
|
-
<id>
|
|
234
|
-
<account_code>
|
|
235
|
-
<action>
|
|
236
|
-
<date type="datetime">2010-10-
|
|
237
|
-
<amount_in_cents type="integer">
|
|
238
|
-
<status>
|
|
250
|
+
<id>bae53f0454a649fe8012bc5c595b342a</id>
|
|
251
|
+
<account_code>subscription-create-1287439446</account_code>
|
|
252
|
+
<action>purchase</action>
|
|
253
|
+
<date type="datetime">2010-10-18T22:06:21Z</date>
|
|
254
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
255
|
+
<status>success</status>
|
|
239
256
|
<message>Test Gateway: Successful test transaction</message>
|
|
240
257
|
<reference></reference>
|
|
241
258
|
<cvv_result code="M">Match</cvv_result>
|
|
@@ -243,16 +260,16 @@
|
|
|
243
260
|
<avs_result_street></avs_result_street>
|
|
244
261
|
<avs_result_postal></avs_result_postal>
|
|
245
262
|
<test type="boolean">true</test>
|
|
246
|
-
<voidable type="boolean">
|
|
247
|
-
<refundable type="boolean">
|
|
263
|
+
<voidable type="boolean">true</voidable>
|
|
264
|
+
<refundable type="boolean">true</refundable>
|
|
248
265
|
</transaction>
|
|
249
266
|
<transaction type="Payment">
|
|
250
|
-
<id>
|
|
251
|
-
<account_code>
|
|
252
|
-
<action>
|
|
253
|
-
<date type="datetime">2010-10-
|
|
254
|
-
<amount_in_cents type="integer">
|
|
255
|
-
<status>
|
|
267
|
+
<id>4fa32d21152441e49f3fb76be35b6bce</id>
|
|
268
|
+
<account_code>subscription-find-1287439446</account_code>
|
|
269
|
+
<action>purchase</action>
|
|
270
|
+
<date type="datetime">2010-10-18T22:06:18Z</date>
|
|
271
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
272
|
+
<status>success</status>
|
|
256
273
|
<message>Test Gateway: Successful test transaction</message>
|
|
257
274
|
<reference></reference>
|
|
258
275
|
<cvv_result code="M">Match</cvv_result>
|
|
@@ -260,14 +277,14 @@
|
|
|
260
277
|
<avs_result_street></avs_result_street>
|
|
261
278
|
<avs_result_postal></avs_result_postal>
|
|
262
279
|
<test type="boolean">true</test>
|
|
263
|
-
<voidable type="boolean">
|
|
264
|
-
<refundable type="boolean">
|
|
280
|
+
<voidable type="boolean">true</voidable>
|
|
281
|
+
<refundable type="boolean">true</refundable>
|
|
265
282
|
</transaction>
|
|
266
283
|
<transaction type="Payment">
|
|
267
|
-
<id>
|
|
268
|
-
<account_code>
|
|
284
|
+
<id>cc034af2ec514eadb595ad12dac8875b</id>
|
|
285
|
+
<account_code>invoice-lookup-1287167121</account_code>
|
|
269
286
|
<action>authorization</action>
|
|
270
|
-
<date type="datetime">2010-10-
|
|
287
|
+
<date type="datetime">2010-10-18T22:06:05Z</date>
|
|
271
288
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
272
289
|
<status>void</status>
|
|
273
290
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -281,10 +298,10 @@
|
|
|
281
298
|
<refundable type="boolean">false</refundable>
|
|
282
299
|
</transaction>
|
|
283
300
|
<transaction type="Payment">
|
|
284
|
-
<id>
|
|
285
|
-
<account_code>
|
|
301
|
+
<id>7db974ee951b4c2d8855f393078b7447</id>
|
|
302
|
+
<account_code>invoice-list-1287167121</account_code>
|
|
286
303
|
<action>authorization</action>
|
|
287
|
-
<date type="datetime">2010-10-
|
|
304
|
+
<date type="datetime">2010-10-18T22:06:00Z</date>
|
|
288
305
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
289
306
|
<status>void</status>
|
|
290
307
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -298,10 +315,10 @@
|
|
|
298
315
|
<refundable type="boolean">false</refundable>
|
|
299
316
|
</transaction>
|
|
300
317
|
<transaction type="Payment">
|
|
301
|
-
<id>
|
|
302
|
-
<account_code>
|
|
318
|
+
<id>7ccc8d2b45c44a4085f33da3ce736ab0</id>
|
|
319
|
+
<account_code>invoice-create-no-charges-1287167121</account_code>
|
|
303
320
|
<action>authorization</action>
|
|
304
|
-
<date type="datetime">2010-10-
|
|
321
|
+
<date type="datetime">2010-10-18T22:05:58Z</date>
|
|
305
322
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
306
323
|
<status>void</status>
|
|
307
324
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -315,10 +332,10 @@
|
|
|
315
332
|
<refundable type="boolean">false</refundable>
|
|
316
333
|
</transaction>
|
|
317
334
|
<transaction type="Payment">
|
|
318
|
-
<id>
|
|
319
|
-
<account_code>
|
|
335
|
+
<id>fd6e2b3a615845df983e9bb1ff9575ef</id>
|
|
336
|
+
<account_code>invoice-create-1287167121</account_code>
|
|
320
337
|
<action>authorization</action>
|
|
321
|
-
<date type="datetime">2010-10-
|
|
338
|
+
<date type="datetime">2010-10-18T22:05:54Z</date>
|
|
322
339
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
323
340
|
<status>void</status>
|
|
324
341
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -332,10 +349,10 @@
|
|
|
332
349
|
<refundable type="boolean">false</refundable>
|
|
333
350
|
</transaction>
|
|
334
351
|
<transaction type="Payment">
|
|
335
|
-
<id>
|
|
336
|
-
<account_code>
|
|
352
|
+
<id>40f66fd6995044fa92db57958310b207</id>
|
|
353
|
+
<account_code>charge-create-1286681273</account_code>
|
|
337
354
|
<action>authorization</action>
|
|
338
|
-
<date type="datetime">2010-10-
|
|
355
|
+
<date type="datetime">2010-10-18T22:05:37Z</date>
|
|
339
356
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
340
357
|
<status>void</status>
|
|
341
358
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -349,10 +366,10 @@
|
|
|
349
366
|
<refundable type="boolean">false</refundable>
|
|
350
367
|
</transaction>
|
|
351
368
|
<transaction type="Payment">
|
|
352
|
-
<id>
|
|
353
|
-
<account_code>billing-
|
|
369
|
+
<id>4d699d36034246b98e629b80351eb6fa</id>
|
|
370
|
+
<account_code>billing-destroy-1286682213</account_code>
|
|
354
371
|
<action>authorization</action>
|
|
355
|
-
<date type="datetime">2010-10-
|
|
372
|
+
<date type="datetime">2010-10-18T22:05:18Z</date>
|
|
356
373
|
<amount_in_cents type="integer">100</amount_in_cents>
|
|
357
374
|
<status>void</status>
|
|
358
375
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -365,23 +382,6 @@
|
|
|
365
382
|
<voidable type="boolean">false</voidable>
|
|
366
383
|
<refundable type="boolean">false</refundable>
|
|
367
384
|
</transaction>
|
|
368
|
-
<transaction type="Payment">
|
|
369
|
-
<id>a11ccb535e6542a0878d917f659f7d05</id>
|
|
370
|
-
<account_code>account-list-num-3-1286666929</account_code>
|
|
371
|
-
<action>purchase</action>
|
|
372
|
-
<date type="datetime">2010-10-14T06:15:38Z</date>
|
|
373
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
|
374
|
-
<status>success</status>
|
|
375
|
-
<message>Test Gateway: Successful test transaction</message>
|
|
376
|
-
<reference></reference>
|
|
377
|
-
<cvv_result code="M">Match</cvv_result>
|
|
378
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
|
379
|
-
<avs_result_street></avs_result_street>
|
|
380
|
-
<avs_result_postal></avs_result_postal>
|
|
381
|
-
<test type="boolean">true</test>
|
|
382
|
-
<voidable type="boolean">true</voidable>
|
|
383
|
-
<refundable type="boolean">true</refundable>
|
|
384
|
-
</transaction>
|
|
385
385
|
</transactions>
|
|
386
386
|
|
|
387
387
|
http_version: "1.1"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<transaction>
|
|
9
9
|
<account>
|
|
10
10
|
<company-name>Recurly Ruby Gem</company-name>
|
|
11
|
-
<account-code>transaction-create-with-accout-
|
|
11
|
+
<account-code>transaction-create-with-accout-1287186411</account-code>
|
|
12
12
|
<last-name>Test</last-name>
|
|
13
13
|
<billing-info>
|
|
14
14
|
<city>San Francisco</city>
|
|
@@ -45,32 +45,32 @@
|
|
|
45
45
|
message: Created
|
|
46
46
|
headers:
|
|
47
47
|
location:
|
|
48
|
-
- https://recurlytest3-test.recurly.com/transactions/
|
|
48
|
+
- https://recurlytest3-test.recurly.com/transactions/45669f9bb0c74cbab374cc1a1ffaddd2
|
|
49
49
|
connection:
|
|
50
50
|
- close
|
|
51
51
|
content-type:
|
|
52
52
|
- application/xml; charset=utf-8
|
|
53
53
|
x-runtime:
|
|
54
|
-
- "
|
|
54
|
+
- "1120"
|
|
55
55
|
date:
|
|
56
|
-
-
|
|
56
|
+
- Mon, 18 Oct 2010 22:06:54 GMT
|
|
57
57
|
server:
|
|
58
58
|
- nginx/0.7.65
|
|
59
59
|
content-length:
|
|
60
|
-
- "
|
|
60
|
+
- "862"
|
|
61
61
|
set-cookie:
|
|
62
|
-
- account_credentials=
|
|
62
|
+
- account_credentials=802bdf24062dc3063d60b80f86e5deecbfa70dea38b7384cb10b81a674061c97d743583f2677d391c9ebfac8820ade65440a3cd55f29e72a137f6b1bcc3fc78a%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
63
63
|
- ""
|
|
64
|
-
- _recurly_session=
|
|
64
|
+
- _recurly_session=911ba6b7d7f311505e2912799d67dfb2; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
65
65
|
cache-control:
|
|
66
66
|
- no-cache
|
|
67
67
|
body: |
|
|
68
68
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
69
69
|
<transaction type="Payment">
|
|
70
|
-
<id>
|
|
71
|
-
<account_code>transaction-create-with-accout-
|
|
70
|
+
<id>45669f9bb0c74cbab374cc1a1ffaddd2</id>
|
|
71
|
+
<account_code>transaction-create-with-accout-1287186411</account_code>
|
|
72
72
|
<action>purchase</action>
|
|
73
|
-
<date type="datetime">2010-10-
|
|
73
|
+
<date type="datetime">2010-10-18T22:06:53Z</date>
|
|
74
74
|
<amount_in_cents type="integer">700</amount_in_cents>
|
|
75
75
|
<status>success</status>
|
|
76
76
|
<message>Test Gateway: Successful test transaction</message>
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<voidable type="boolean">true</voidable>
|
|
84
84
|
<refundable type="boolean">true</refundable>
|
|
85
85
|
<credit_card>
|
|
86
|
-
<type>
|
|
86
|
+
<type>bogus</type>
|
|
87
87
|
<last_four>1</last_four>
|
|
88
88
|
</credit_card>
|
|
89
89
|
</transaction>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
8
|
<account>
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
|
10
|
-
<account-code>transaction-create-with-account-
|
|
10
|
+
<account-code>transaction-create-with-account-1287186411</account-code>
|
|
11
11
|
<last-name>Test</last-name>
|
|
12
12
|
<email>verena@test.com</email>
|
|
13
13
|
<first-name>Verena</first-name>
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
message: Created
|
|
29
29
|
headers:
|
|
30
30
|
location:
|
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/transaction-create-with-account-
|
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/transaction-create-with-account-1287186411
|
|
32
32
|
connection:
|
|
33
33
|
- close
|
|
34
34
|
content-type:
|
|
35
35
|
- application/xml; charset=utf-8
|
|
36
36
|
x-runtime:
|
|
37
|
-
- "
|
|
37
|
+
- "817"
|
|
38
38
|
date:
|
|
39
|
-
-
|
|
39
|
+
- Mon, 18 Oct 2010 22:06:56 GMT
|
|
40
40
|
server:
|
|
41
41
|
- nginx/0.7.65
|
|
42
42
|
content-length:
|
|
43
43
|
- "617"
|
|
44
44
|
set-cookie:
|
|
45
|
-
- account_credentials=
|
|
45
|
+
- account_credentials=b10238a5effd561f551d265148b1f839b460c11a8344168e9f5aa5bcae36e3a5a9b75cf800f22c416ac01c20d35d48a5bcf244960a882bc9e12d57d4951d00d6%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
46
46
|
- ""
|
|
47
|
-
- _recurly_session=
|
|
47
|
+
- _recurly_session=5a93e50b2cc5234404e4f300681bd288; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
48
48
|
cache-control:
|
|
49
49
|
- no-cache
|
|
50
50
|
body: |
|
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
52
52
|
<account>
|
|
53
|
-
<id>transaction-create-with-account-
|
|
54
|
-
<account_code>transaction-create-with-account-
|
|
53
|
+
<id>transaction-create-with-account-1287186411</id>
|
|
54
|
+
<account_code>transaction-create-with-account-1287186411</account_code>
|
|
55
55
|
<username></username>
|
|
56
56
|
<email>verena@test.com</email>
|
|
57
57
|
<first_name>Verena</first_name>
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
|
61
61
|
<closed type="boolean">false</closed>
|
|
62
|
-
<hosted_login_token>
|
|
63
|
-
<created_at type="datetime">2010-10-
|
|
62
|
+
<hosted_login_token>62bab62ab1f34a2586461480958b1704</hosted_login_token>
|
|
63
|
+
<created_at type="datetime">2010-10-18T22:06:55Z</created_at>
|
|
64
64
|
<state>active</state>
|
|
65
65
|
</account>
|
|
66
66
|
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
- !ruby/struct:VCR::HTTPInteraction
|
|
69
69
|
request: !ruby/struct:VCR::Request
|
|
70
70
|
method: :put
|
|
71
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-create-with-account-
|
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-create-with-account-1287186411/billing_info.xml
|
|
72
72
|
body: |
|
|
73
73
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
74
74
|
<billing-info>
|
|
75
75
|
<city>San Francisco</city>
|
|
76
76
|
<address1>123 Test St</address1>
|
|
77
77
|
<zip>94115</zip>
|
|
78
|
-
<account-code>transaction-create-with-account-
|
|
78
|
+
<account-code>transaction-create-with-account-1287186411</account-code>
|
|
79
79
|
<country>US</country>
|
|
80
80
|
<credit-card>
|
|
81
81
|
<number>1</number>
|
|
@@ -105,27 +105,27 @@
|
|
|
105
105
|
x-ua-compatible:
|
|
106
106
|
- IE=Edge
|
|
107
107
|
etag:
|
|
108
|
-
- "\"
|
|
108
|
+
- "\"75e8c3498ee27bfbb4bfe8a91d26820a\""
|
|
109
109
|
connection:
|
|
110
110
|
- close
|
|
111
111
|
content-type:
|
|
112
112
|
- application/xml; charset=utf-8
|
|
113
113
|
x-runtime:
|
|
114
|
-
- "
|
|
114
|
+
- "65"
|
|
115
115
|
date:
|
|
116
|
-
-
|
|
116
|
+
- Mon, 18 Oct 2010 22:06:56 GMT
|
|
117
117
|
server:
|
|
118
118
|
- nginx/0.7.65
|
|
119
119
|
content-length:
|
|
120
120
|
- "656"
|
|
121
121
|
set-cookie:
|
|
122
|
-
- _recurly_session=
|
|
122
|
+
- _recurly_session=a121bb6552a74813cb21bf3651553cd0; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
123
123
|
cache-control:
|
|
124
124
|
- private, max-age=0, must-revalidate
|
|
125
125
|
body: |
|
|
126
126
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
127
127
|
<billing_info>
|
|
128
|
-
<account_code>transaction-create-with-account-
|
|
128
|
+
<account_code>transaction-create-with-account-1287186411</account_code>
|
|
129
129
|
<first_name>Verena</first_name>
|
|
130
130
|
<last_name>Test</last_name>
|
|
131
131
|
<address1>123 Test St</address1>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<month type="integer">10</month>
|
|
144
144
|
<year type="integer">2011</year>
|
|
145
145
|
</credit_card>
|
|
146
|
-
<updated_at type="datetime">2010-10-
|
|
146
|
+
<updated_at type="datetime">2010-10-18T22:06:56Z</updated_at>
|
|
147
147
|
</billing_info>
|
|
148
148
|
|
|
149
149
|
http_version: "1.1"
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
156
156
|
<transaction>
|
|
157
157
|
<account>
|
|
158
|
-
<account-code>transaction-create-with-account-
|
|
158
|
+
<account-code>transaction-create-with-account-1287186411</account-code>
|
|
159
159
|
</account>
|
|
160
160
|
<amount-in-cents type="integer">700</amount-in-cents>
|
|
161
161
|
<description>test transaction for $7</description>
|
|
@@ -176,30 +176,30 @@
|
|
|
176
176
|
message: Created
|
|
177
177
|
headers:
|
|
178
178
|
location:
|
|
179
|
-
- https://recurlytest3-test.recurly.com/transactions/
|
|
179
|
+
- https://recurlytest3-test.recurly.com/transactions/a27026a7ae884d83b81ddff90a72a379
|
|
180
180
|
connection:
|
|
181
181
|
- close
|
|
182
182
|
content-type:
|
|
183
183
|
- application/xml; charset=utf-8
|
|
184
184
|
x-runtime:
|
|
185
|
-
- "
|
|
185
|
+
- "643"
|
|
186
186
|
date:
|
|
187
|
-
-
|
|
187
|
+
- Mon, 18 Oct 2010 22:06:58 GMT
|
|
188
188
|
server:
|
|
189
189
|
- nginx/0.7.65
|
|
190
190
|
content-length:
|
|
191
191
|
- "863"
|
|
192
192
|
set-cookie:
|
|
193
|
-
- _recurly_session=
|
|
193
|
+
- _recurly_session=70e005f1b2efa7c6e9c12f8cb91adc51; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
194
194
|
cache-control:
|
|
195
195
|
- no-cache
|
|
196
196
|
body: |
|
|
197
197
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
198
198
|
<transaction type="Payment">
|
|
199
|
-
<id>
|
|
200
|
-
<account_code>transaction-create-with-account-
|
|
199
|
+
<id>a27026a7ae884d83b81ddff90a72a379</id>
|
|
200
|
+
<account_code>transaction-create-with-account-1287186411</account_code>
|
|
201
201
|
<action>purchase</action>
|
|
202
|
-
<date type="datetime">2010-10-
|
|
202
|
+
<date type="datetime">2010-10-18T22:06:57Z</date>
|
|
203
203
|
<amount_in_cents type="integer">700</amount_in_cents>
|
|
204
204
|
<status>success</status>
|
|
205
205
|
<message>Test Gateway: Successful test transaction</message>
|