recurly 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +6 -0
- data/lib/recurly/base.rb +15 -14
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -10
- data/spec/integration/transparent_spec.rb +72 -0
- data/spec/unit/transparent_spec.rb +6 -6
- data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
- data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
- data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
- data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
- data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
- data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
- data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
- data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
- data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
- data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
- data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
- data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
- data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
- data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
- data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
- data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
- data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
- data/spec/vcr/plan/all.yml +117 -98
- data/spec/vcr/plan/delete/1296674173.yml +225 -0
- data/spec/vcr/plan/find.yml +66 -36
- data/spec/vcr/plan/update.yml +64 -144
- data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
- data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
- data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
- data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
- data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
- data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
- data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
- data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
- data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
- data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
- data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
- data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
- data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
- data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
- data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
- data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
- data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
- data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
- metadata +97 -155
- data/spec/vcr/account/list/1301979678.yml +0 -1588
- data/spec/vcr/credit/create/1299714599.yml +0 -186
- data/spec/vcr/credit/delete/1299714599.yml +0 -265
- data/spec/vcr/credit/list/1299714599.yml +0 -330
- data/spec/vcr/credit/lookup/1299714599.yml +0 -186
- data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
- data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
- data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>charge-list-invoiced-
|
9
|
+
<account-code>charge-list-invoiced-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "696"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "595"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:18:36 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=4087ddbd0325bd4c05e06c315b870a04f7737c587fbc0af0dd085593a8c94ef4310cd0e004d475d91c71864efd3fb28ad77552c310289fba1d0b78c22515cbed%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=022b045e1932d8cff1cade2495e5739e; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>charge-list-invoiced-
|
59
|
-
<account_code>charge-list-invoiced-
|
56
|
+
<id>charge-list-invoiced-1296674173</id>
|
57
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>54f6f17cf3e04e19a1af363523e5f757</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:36Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,7 +71,7 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :post
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<charge>
|
@@ -83,13 +81,13 @@
|
|
83
81
|
|
84
82
|
headers:
|
85
83
|
authorization:
|
86
|
-
- Basic
|
87
|
-
user-agent:
|
88
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
89
85
|
content-type:
|
90
86
|
- application/xml
|
91
87
|
accept:
|
92
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
93
91
|
connection:
|
94
92
|
- close
|
95
93
|
response: !ruby/struct:VCR::Response
|
@@ -100,39 +98,37 @@
|
|
100
98
|
cache-control:
|
101
99
|
- no-cache
|
102
100
|
x-runtime:
|
103
|
-
- "
|
101
|
+
- "414"
|
104
102
|
content-type:
|
105
103
|
- application/xml; charset=utf-8
|
106
104
|
content-length:
|
107
|
-
- "
|
105
|
+
- "525"
|
108
106
|
server:
|
109
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
110
108
|
date:
|
111
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:18:38 GMT
|
112
110
|
connection:
|
113
111
|
- close
|
114
112
|
set-cookie:
|
115
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=3a05c7471f94786758e92e6df2bd53a2; domain=.recurly.local; path=/; HttpOnly
|
116
114
|
body: |
|
117
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
116
|
<charge type="charge">
|
119
|
-
<id>
|
120
|
-
<account_code>charge-list-invoiced-
|
121
|
-
<quantity type="integer">1</quantity>
|
122
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
117
|
+
<id>bf3a2a356b8640158ec85161a935ac91</id>
|
118
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
123
119
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
124
|
-
<start_date type="datetime">2011-
|
120
|
+
<start_date type="datetime">2011-02-03T22:18:37Z</start_date>
|
125
121
|
<end_date nil="true" type="datetime"></end_date>
|
126
122
|
<invoice_number nil="true" type="integer"></invoice_number>
|
127
123
|
<description>charge description</description>
|
128
|
-
<created_at type="datetime">2011-
|
124
|
+
<created_at type="datetime">2011-02-03T22:18:38Z</created_at>
|
129
125
|
</charge>
|
130
126
|
|
131
127
|
http_version: "1.1"
|
132
128
|
- !ruby/struct:VCR::HTTPInteraction
|
133
129
|
request: !ruby/struct:VCR::Request
|
134
130
|
method: :post
|
135
|
-
uri: http://
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
|
136
132
|
body: |
|
137
133
|
<?xml version="1.0" encoding="UTF-8"?>
|
138
134
|
<charge>
|
@@ -142,13 +138,13 @@
|
|
142
138
|
|
143
139
|
headers:
|
144
140
|
authorization:
|
145
|
-
- Basic
|
146
|
-
user-agent:
|
147
|
-
- Recurly Ruby Client v0.4.6
|
141
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
148
142
|
content-type:
|
149
143
|
- application/xml
|
150
144
|
accept:
|
151
145
|
- "*/*"
|
146
|
+
user-agent:
|
147
|
+
- Ruby
|
152
148
|
connection:
|
153
149
|
- close
|
154
150
|
response: !ruby/struct:VCR::Response
|
@@ -159,39 +155,37 @@
|
|
159
155
|
cache-control:
|
160
156
|
- no-cache
|
161
157
|
x-runtime:
|
162
|
-
- "
|
158
|
+
- "546"
|
163
159
|
content-type:
|
164
160
|
- application/xml; charset=utf-8
|
165
161
|
content-length:
|
166
|
-
- "
|
162
|
+
- "525"
|
167
163
|
server:
|
168
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
164
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
169
165
|
date:
|
170
|
-
- Thu,
|
166
|
+
- Thu, 03 Feb 2011 22:18:40 GMT
|
171
167
|
connection:
|
172
168
|
- close
|
173
169
|
set-cookie:
|
174
|
-
- _recurly_session=
|
170
|
+
- _recurly_session=4c93a2760771e2940efbb597b2d02973; domain=.recurly.local; path=/; HttpOnly
|
175
171
|
body: |
|
176
172
|
<?xml version="1.0" encoding="UTF-8"?>
|
177
173
|
<charge type="charge">
|
178
|
-
<id>
|
179
|
-
<account_code>charge-list-invoiced-
|
180
|
-
<quantity type="integer">1</quantity>
|
181
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
174
|
+
<id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
|
175
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
182
176
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
183
|
-
<start_date type="datetime">2011-
|
177
|
+
<start_date type="datetime">2011-02-03T22:18:40Z</start_date>
|
184
178
|
<end_date nil="true" type="datetime"></end_date>
|
185
179
|
<invoice_number nil="true" type="integer"></invoice_number>
|
186
180
|
<description>charge description</description>
|
187
|
-
<created_at type="datetime">2011-
|
181
|
+
<created_at type="datetime">2011-02-03T22:18:40Z</created_at>
|
188
182
|
</charge>
|
189
183
|
|
190
184
|
http_version: "1.1"
|
191
185
|
- !ruby/struct:VCR::HTTPInteraction
|
192
186
|
request: !ruby/struct:VCR::Request
|
193
187
|
method: :post
|
194
|
-
uri: http://
|
188
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
|
195
189
|
body: |
|
196
190
|
<?xml version="1.0" encoding="UTF-8"?>
|
197
191
|
<charge>
|
@@ -201,13 +195,13 @@
|
|
201
195
|
|
202
196
|
headers:
|
203
197
|
authorization:
|
204
|
-
- Basic
|
205
|
-
user-agent:
|
206
|
-
- Recurly Ruby Client v0.4.6
|
198
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
207
199
|
content-type:
|
208
200
|
- application/xml
|
209
201
|
accept:
|
210
202
|
- "*/*"
|
203
|
+
user-agent:
|
204
|
+
- Ruby
|
211
205
|
connection:
|
212
206
|
- close
|
213
207
|
response: !ruby/struct:VCR::Response
|
@@ -218,39 +212,37 @@
|
|
218
212
|
cache-control:
|
219
213
|
- no-cache
|
220
214
|
x-runtime:
|
221
|
-
- "
|
215
|
+
- "426"
|
222
216
|
content-type:
|
223
217
|
- application/xml; charset=utf-8
|
224
218
|
content-length:
|
225
|
-
- "
|
219
|
+
- "525"
|
226
220
|
server:
|
227
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
221
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
228
222
|
date:
|
229
|
-
- Thu,
|
223
|
+
- Thu, 03 Feb 2011 22:18:42 GMT
|
230
224
|
connection:
|
231
225
|
- close
|
232
226
|
set-cookie:
|
233
|
-
- _recurly_session=
|
227
|
+
- _recurly_session=e82e3773619012bbb294b8edf5e75a91; domain=.recurly.local; path=/; HttpOnly
|
234
228
|
body: |
|
235
229
|
<?xml version="1.0" encoding="UTF-8"?>
|
236
230
|
<charge type="charge">
|
237
|
-
<id>
|
238
|
-
<account_code>charge-list-invoiced-
|
239
|
-
<quantity type="integer">1</quantity>
|
240
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
231
|
+
<id>6e3838fdbe96424785a617143a8b7c3e</id>
|
232
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
241
233
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
242
|
-
<start_date type="datetime">2011-
|
234
|
+
<start_date type="datetime">2011-02-03T22:18:42Z</start_date>
|
243
235
|
<end_date nil="true" type="datetime"></end_date>
|
244
236
|
<invoice_number nil="true" type="integer"></invoice_number>
|
245
237
|
<description>charge description</description>
|
246
|
-
<created_at type="datetime">2011-
|
238
|
+
<created_at type="datetime">2011-02-03T22:18:42Z</created_at>
|
247
239
|
</charge>
|
248
240
|
|
249
241
|
http_version: "1.1"
|
250
242
|
- !ruby/struct:VCR::HTTPInteraction
|
251
243
|
request: !ruby/struct:VCR::Request
|
252
244
|
method: :post
|
253
|
-
uri: http://
|
245
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/invoices.xml
|
254
246
|
body: |
|
255
247
|
<?xml version="1.0" encoding="UTF-8"?>
|
256
248
|
<invoice>
|
@@ -258,13 +250,13 @@
|
|
258
250
|
|
259
251
|
headers:
|
260
252
|
authorization:
|
261
|
-
- Basic
|
262
|
-
user-agent:
|
263
|
-
- Recurly Ruby Client v0.4.6
|
253
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
264
254
|
content-type:
|
265
255
|
- application/xml
|
266
256
|
accept:
|
267
257
|
- "*/*"
|
258
|
+
user-agent:
|
259
|
+
- Ruby
|
268
260
|
connection:
|
269
261
|
- close
|
270
262
|
response: !ruby/struct:VCR::Response
|
@@ -275,28 +267,28 @@
|
|
275
267
|
cache-control:
|
276
268
|
- no-cache
|
277
269
|
location:
|
278
|
-
- http://
|
270
|
+
- http://litle-test.recurly.local:3000/invoices/cc12d2655f42489fa334d2ae6d811f0f
|
279
271
|
x-runtime:
|
280
|
-
- "
|
272
|
+
- "776"
|
281
273
|
content-type:
|
282
274
|
- application/xml; charset=utf-8
|
283
275
|
content-length:
|
284
276
|
- "2142"
|
285
277
|
server:
|
286
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
278
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
287
279
|
date:
|
288
|
-
- Thu,
|
280
|
+
- Thu, 03 Feb 2011 22:18:45 GMT
|
289
281
|
connection:
|
290
282
|
- close
|
291
283
|
set-cookie:
|
292
|
-
- _recurly_session=
|
284
|
+
- _recurly_session=b1e283914c28445cadea137e64af4be2; domain=.recurly.local; path=/; HttpOnly
|
293
285
|
body: |
|
294
286
|
<?xml version="1.0" encoding="UTF-8"?>
|
295
287
|
<invoice>
|
296
|
-
<id>
|
297
|
-
<account_code>charge-list-invoiced-
|
298
|
-
<date type="datetime">2011-
|
299
|
-
<invoice_number type="integer">
|
288
|
+
<id>cc12d2655f42489fa334d2ae6d811f0f</id>
|
289
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
290
|
+
<date type="datetime">2011-02-03T22:18:45Z</date>
|
291
|
+
<invoice_number type="integer">1234</invoice_number>
|
300
292
|
<vat_number></vat_number>
|
301
293
|
<status>open</status>
|
302
294
|
<subtotal_in_cents type="integer">3000</subtotal_in_cents>
|
@@ -307,33 +299,33 @@
|
|
307
299
|
<discount_in_cents type="integer">0</discount_in_cents>
|
308
300
|
<line_items type="array">
|
309
301
|
<line_item>
|
310
|
-
<id>
|
302
|
+
<id>bf3a2a356b8640158ec85161a935ac91</id>
|
311
303
|
<type>charge</type>
|
312
304
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
313
|
-
<start_date type="datetime">2011-
|
305
|
+
<start_date type="datetime">2011-02-03T22:18:37Z</start_date>
|
314
306
|
<end_date nil="true" type="datetime"></end_date>
|
315
307
|
<description>charge description</description>
|
316
|
-
<created_at type="datetime">2011-
|
308
|
+
<created_at type="datetime">2011-02-03T22:18:38Z</created_at>
|
317
309
|
<applied_coupon_code></applied_coupon_code>
|
318
310
|
</line_item>
|
319
311
|
<line_item>
|
320
|
-
<id>
|
312
|
+
<id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
|
321
313
|
<type>charge</type>
|
322
314
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
323
|
-
<start_date type="datetime">2011-
|
315
|
+
<start_date type="datetime">2011-02-03T22:18:40Z</start_date>
|
324
316
|
<end_date nil="true" type="datetime"></end_date>
|
325
317
|
<description>charge description</description>
|
326
|
-
<created_at type="datetime">2011-
|
318
|
+
<created_at type="datetime">2011-02-03T22:18:40Z</created_at>
|
327
319
|
<applied_coupon_code></applied_coupon_code>
|
328
320
|
</line_item>
|
329
321
|
<line_item>
|
330
|
-
<id>
|
322
|
+
<id>6e3838fdbe96424785a617143a8b7c3e</id>
|
331
323
|
<type>charge</type>
|
332
324
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
333
|
-
<start_date type="datetime">2011-
|
325
|
+
<start_date type="datetime">2011-02-03T22:18:42Z</start_date>
|
334
326
|
<end_date nil="true" type="datetime"></end_date>
|
335
327
|
<description>charge description</description>
|
336
|
-
<created_at type="datetime">2011-
|
328
|
+
<created_at type="datetime">2011-02-03T22:18:42Z</created_at>
|
337
329
|
<applied_coupon_code></applied_coupon_code>
|
338
330
|
</line_item>
|
339
331
|
</line_items>
|
@@ -345,7 +337,7 @@
|
|
345
337
|
- !ruby/struct:VCR::HTTPInteraction
|
346
338
|
request: !ruby/struct:VCR::Request
|
347
339
|
method: :post
|
348
|
-
uri: http://
|
340
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
|
349
341
|
body: |
|
350
342
|
<?xml version="1.0" encoding="UTF-8"?>
|
351
343
|
<charge>
|
@@ -355,13 +347,13 @@
|
|
355
347
|
|
356
348
|
headers:
|
357
349
|
authorization:
|
358
|
-
- Basic
|
359
|
-
user-agent:
|
360
|
-
- Recurly Ruby Client v0.4.6
|
350
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
361
351
|
content-type:
|
362
352
|
- application/xml
|
363
353
|
accept:
|
364
354
|
- "*/*"
|
355
|
+
user-agent:
|
356
|
+
- Ruby
|
365
357
|
connection:
|
366
358
|
- close
|
367
359
|
response: !ruby/struct:VCR::Response
|
@@ -372,49 +364,47 @@
|
|
372
364
|
cache-control:
|
373
365
|
- no-cache
|
374
366
|
x-runtime:
|
375
|
-
- "
|
367
|
+
- "612"
|
376
368
|
content-type:
|
377
369
|
- application/xml; charset=utf-8
|
378
370
|
content-length:
|
379
|
-
- "
|
371
|
+
- "525"
|
380
372
|
server:
|
381
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
373
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
382
374
|
date:
|
383
|
-
- Thu,
|
375
|
+
- Thu, 03 Feb 2011 22:18:47 GMT
|
384
376
|
connection:
|
385
377
|
- close
|
386
378
|
set-cookie:
|
387
|
-
- _recurly_session=
|
379
|
+
- _recurly_session=95c9fe1d3e2494e3ccc938cfbc8a7356; domain=.recurly.local; path=/; HttpOnly
|
388
380
|
body: |
|
389
381
|
<?xml version="1.0" encoding="UTF-8"?>
|
390
382
|
<charge type="charge">
|
391
|
-
<id>
|
392
|
-
<account_code>charge-list-invoiced-
|
393
|
-
<quantity type="integer">1</quantity>
|
394
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
383
|
+
<id>a10fba2153044725b5ca1d9f9a44731f</id>
|
384
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
395
385
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
396
|
-
<start_date type="datetime">2011-
|
386
|
+
<start_date type="datetime">2011-02-03T22:18:47Z</start_date>
|
397
387
|
<end_date nil="true" type="datetime"></end_date>
|
398
388
|
<invoice_number nil="true" type="integer"></invoice_number>
|
399
389
|
<description>charge description</description>
|
400
|
-
<created_at type="datetime">2011-
|
390
|
+
<created_at type="datetime">2011-02-03T22:18:47Z</created_at>
|
401
391
|
</charge>
|
402
392
|
|
403
393
|
http_version: "1.1"
|
404
394
|
- !ruby/struct:VCR::HTTPInteraction
|
405
395
|
request: !ruby/struct:VCR::Request
|
406
396
|
method: :get
|
407
|
-
uri: http://
|
397
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml?show=invoiced
|
408
398
|
body:
|
409
399
|
headers:
|
410
400
|
authorization:
|
411
|
-
- Basic
|
412
|
-
user-agent:
|
413
|
-
- Recurly Ruby Client v0.4.6
|
401
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
414
402
|
accept:
|
415
403
|
- application/xml
|
416
404
|
accept-encoding:
|
417
405
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
406
|
+
user-agent:
|
407
|
+
- Ruby
|
418
408
|
connection:
|
419
409
|
- close
|
420
410
|
response: !ruby/struct:VCR::Response
|
@@ -423,61 +413,55 @@
|
|
423
413
|
message: "OK "
|
424
414
|
headers:
|
425
415
|
x-runtime:
|
426
|
-
- "
|
416
|
+
- "89"
|
427
417
|
content-type:
|
428
418
|
- application/xml; charset=utf-8
|
429
419
|
etag:
|
430
|
-
- "\"
|
420
|
+
- "\"92aaa73a344da4a7e795008f0667420f\""
|
431
421
|
cache-control:
|
432
422
|
- private, max-age=0, must-revalidate
|
433
423
|
content-length:
|
434
|
-
- "
|
424
|
+
- "1570"
|
435
425
|
server:
|
436
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
426
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
437
427
|
date:
|
438
|
-
- Thu,
|
428
|
+
- Thu, 03 Feb 2011 22:18:49 GMT
|
439
429
|
connection:
|
440
430
|
- close
|
441
431
|
set-cookie:
|
442
|
-
- _recurly_session=
|
432
|
+
- _recurly_session=fca52c32f80e982da0cf256075901000; domain=.recurly.local; path=/; HttpOnly
|
443
433
|
body: |
|
444
434
|
<?xml version="1.0" encoding="UTF-8"?>
|
445
435
|
<charges type="array">
|
446
436
|
<charge type="charge">
|
447
|
-
<id>
|
448
|
-
<account_code>charge-list-invoiced-
|
449
|
-
<quantity type="integer">1</quantity>
|
450
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
437
|
+
<id>6e3838fdbe96424785a617143a8b7c3e</id>
|
438
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
451
439
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
452
|
-
<start_date type="datetime">2011-
|
440
|
+
<start_date type="datetime">2011-02-03T22:18:42Z</start_date>
|
453
441
|
<end_date nil="true" type="datetime"></end_date>
|
454
|
-
<invoice_number type="integer">
|
442
|
+
<invoice_number type="integer">1234</invoice_number>
|
455
443
|
<description>charge description</description>
|
456
|
-
<created_at type="datetime">2011-
|
444
|
+
<created_at type="datetime">2011-02-03T22:18:42Z</created_at>
|
457
445
|
</charge>
|
458
446
|
<charge type="charge">
|
459
|
-
<id>
|
460
|
-
<account_code>charge-list-invoiced-
|
461
|
-
<quantity type="integer">1</quantity>
|
462
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
447
|
+
<id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
|
448
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
463
449
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
464
|
-
<start_date type="datetime">2011-
|
450
|
+
<start_date type="datetime">2011-02-03T22:18:40Z</start_date>
|
465
451
|
<end_date nil="true" type="datetime"></end_date>
|
466
|
-
<invoice_number type="integer">
|
452
|
+
<invoice_number type="integer">1234</invoice_number>
|
467
453
|
<description>charge description</description>
|
468
|
-
<created_at type="datetime">2011-
|
454
|
+
<created_at type="datetime">2011-02-03T22:18:40Z</created_at>
|
469
455
|
</charge>
|
470
456
|
<charge type="charge">
|
471
|
-
<id>
|
472
|
-
<account_code>charge-list-invoiced-
|
473
|
-
<quantity type="integer">1</quantity>
|
474
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
457
|
+
<id>bf3a2a356b8640158ec85161a935ac91</id>
|
458
|
+
<account_code>charge-list-invoiced-1296674173</account_code>
|
475
459
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
476
|
-
<start_date type="datetime">2011-
|
460
|
+
<start_date type="datetime">2011-02-03T22:18:37Z</start_date>
|
477
461
|
<end_date nil="true" type="datetime"></end_date>
|
478
|
-
<invoice_number type="integer">
|
462
|
+
<invoice_number type="integer">1234</invoice_number>
|
479
463
|
<description>charge description</description>
|
480
|
-
<created_at type="datetime">2011-
|
464
|
+
<created_at type="datetime">2011-02-03T22:18:38Z</created_at>
|
481
465
|
</charge>
|
482
466
|
</charges>
|
483
467
|
|