recurly 0.2.1 → 0.2.2
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.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +3 -2
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/transaction.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/subscription_spec.rb +29 -8
- data/spec/vcr/account/close/1286666929.yml +159 -0
- data/spec/vcr/account/create-blank/1286666929.yml +49 -0
- data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
- data/spec/vcr/account/create-min/1286666929.yml +63 -0
- data/spec/vcr/account/create/1286666929.yml +67 -0
- data/spec/vcr/account/find/1286666929.yml +122 -0
- data/spec/vcr/account/list/1286666929.yml +1565 -0
- data/spec/vcr/account/update/1286666929.yml +250 -0
- data/spec/vcr/billing/create/1286682213.yml +210 -0
- data/spec/vcr/billing/destroy/1286682213.yml +309 -0
- data/spec/vcr/billing/find/1286682213.yml +273 -0
- data/spec/vcr/billing/update/1286682213.yml +292 -0
- data/spec/vcr/charge/create/1286681273.yml +253 -0
- data/spec/vcr/charge/list-all/1286681273.yml +302 -0
- data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
- data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
- data/spec/vcr/charge/lookup/1286681273.yml +171 -0
- data/spec/vcr/credit/create/1286681343.yml +171 -0
- data/spec/vcr/credit/list/1286681343.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +171 -0
- data/spec/vcr/invoice/create/1286679184.yml +337 -0
- data/spec/vcr/invoice/list/1286679184.yml +458 -0
- data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
- data/spec/vcr/plan/all.yml +306 -0
- data/spec/vcr/plan/delete/1286677585.yml +217 -0
- data/spec/vcr/plan/find.yml +196 -0
- data/spec/vcr/plan/update.yml +197 -0
- data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
- data/spec/vcr/subscription/change1/1287036910.yml +409 -0
- data/spec/vcr/subscription/change1/1287037152.yml +409 -0
- data/spec/vcr/subscription/change1/1287037325.yml +409 -0
- data/spec/vcr/subscription/change1/1287037363.yml +409 -0
- data/spec/vcr/subscription/change2/1287036910.yml +409 -0
- data/spec/vcr/subscription/change2/1287037152.yml +283 -0
- data/spec/vcr/subscription/change2/1287037325.yml +283 -0
- data/spec/vcr/subscription/change2/1287037363.yml +409 -0
- data/spec/vcr/subscription/create/1287036910.yml +224 -0
- data/spec/vcr/subscription/create/1287037152.yml +224 -0
- data/spec/vcr/subscription/create/1287037325.yml +224 -0
- data/spec/vcr/subscription/create/1287037363.yml +224 -0
- data/spec/vcr/subscription/find/1287036910.yml +283 -0
- data/spec/vcr/subscription/find/1287037152.yml +283 -0
- data/spec/vcr/subscription/find/1287037325.yml +283 -0
- data/spec/vcr/subscription/find/1287037363.yml +283 -0
- data/spec/vcr/subscription/refund/1287036910.yml +382 -0
- data/spec/vcr/subscription/refund/1287037325.yml +382 -0
- data/spec/vcr/subscription/refund/1287037363.yml +382 -0
- data/spec/vcr/transaction/all/1286674805.yml +387 -0
- data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
- data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
- data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
- data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
- data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
- data/spec/vcr/transaction/refund/1286674805.yml +220 -0
- data/spec/vcr/transaction/void/1286674805.yml +668 -0
- metadata +118 -4
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
---
|
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
+
request: !ruby/struct:VCR::Request
|
|
4
|
+
method: :post
|
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
|
6
|
+
body: |
|
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
|
+
<account>
|
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
|
10
|
+
<account-code>invoice-list-1286679184</account-code>
|
|
11
|
+
<last-name>Test</last-name>
|
|
12
|
+
<email>verena@test.com</email>
|
|
13
|
+
<first-name>Verena</first-name>
|
|
14
|
+
</account>
|
|
15
|
+
|
|
16
|
+
headers:
|
|
17
|
+
accept:
|
|
18
|
+
- "*/*"
|
|
19
|
+
connection:
|
|
20
|
+
- close
|
|
21
|
+
content-type:
|
|
22
|
+
- application/xml
|
|
23
|
+
authorization:
|
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
25
|
+
response: !ruby/struct:VCR::Response
|
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
27
|
+
code: 201
|
|
28
|
+
message: Created
|
|
29
|
+
headers:
|
|
30
|
+
location:
|
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/invoice-list-1286679184
|
|
32
|
+
connection:
|
|
33
|
+
- close
|
|
34
|
+
content-type:
|
|
35
|
+
- application/xml; charset=utf-8
|
|
36
|
+
x-runtime:
|
|
37
|
+
- "606"
|
|
38
|
+
date:
|
|
39
|
+
- Thu, 14 Oct 2010 06:16:41 GMT
|
|
40
|
+
server:
|
|
41
|
+
- nginx/0.7.65
|
|
42
|
+
content-length:
|
|
43
|
+
- "579"
|
|
44
|
+
set-cookie:
|
|
45
|
+
- account_credentials=499ee68fed3caa29188061c86939df6464e12ce4a267e0ef974d862c7afafff2672201f8bc411bccc043238618320e80d2fb69fd110183ed49d9788605d3407b%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
46
|
+
- ""
|
|
47
|
+
- _recurly_session=a9f00aa8158429cce208de622a79eb88; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
48
|
+
cache-control:
|
|
49
|
+
- no-cache
|
|
50
|
+
body: |
|
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
52
|
+
<account>
|
|
53
|
+
<id>invoice-list-1286679184</id>
|
|
54
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
55
|
+
<username></username>
|
|
56
|
+
<email>verena@test.com</email>
|
|
57
|
+
<first_name>Verena</first_name>
|
|
58
|
+
<last_name>Test</last_name>
|
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
|
61
|
+
<closed type="boolean">false</closed>
|
|
62
|
+
<hosted_login_token>ad781b3c851049eaad405f17dec919fe</hosted_login_token>
|
|
63
|
+
<created_at type="datetime">2010-10-14T06:16:41Z</created_at>
|
|
64
|
+
<state>active</state>
|
|
65
|
+
</account>
|
|
66
|
+
|
|
67
|
+
http_version: "1.1"
|
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
69
|
+
request: !ruby/struct:VCR::Request
|
|
70
|
+
method: :put
|
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/billing_info.xml
|
|
72
|
+
body: |
|
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
74
|
+
<billing-info>
|
|
75
|
+
<city>San Francisco</city>
|
|
76
|
+
<address1>123 Test St</address1>
|
|
77
|
+
<zip>94115</zip>
|
|
78
|
+
<account-code>invoice-list-1286679184</account-code>
|
|
79
|
+
<country>US</country>
|
|
80
|
+
<credit-card>
|
|
81
|
+
<number>1</number>
|
|
82
|
+
<month type="integer">10</month>
|
|
83
|
+
<year type="integer">2011</year>
|
|
84
|
+
<verification-value>123</verification-value>
|
|
85
|
+
</credit-card>
|
|
86
|
+
<last-name>Test</last-name>
|
|
87
|
+
<first-name>Verena</first-name>
|
|
88
|
+
<state>CA</state>
|
|
89
|
+
</billing-info>
|
|
90
|
+
|
|
91
|
+
headers:
|
|
92
|
+
accept:
|
|
93
|
+
- "*/*"
|
|
94
|
+
connection:
|
|
95
|
+
- close
|
|
96
|
+
content-type:
|
|
97
|
+
- application/xml
|
|
98
|
+
authorization:
|
|
99
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
100
|
+
response: !ruby/struct:VCR::Response
|
|
101
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
102
|
+
code: 200
|
|
103
|
+
message: OK
|
|
104
|
+
headers:
|
|
105
|
+
x-ua-compatible:
|
|
106
|
+
- IE=Edge
|
|
107
|
+
etag:
|
|
108
|
+
- "\"8504b88940620a222dd11402fd8c91c0\""
|
|
109
|
+
connection:
|
|
110
|
+
- close
|
|
111
|
+
content-type:
|
|
112
|
+
- application/xml; charset=utf-8
|
|
113
|
+
x-runtime:
|
|
114
|
+
- "61"
|
|
115
|
+
date:
|
|
116
|
+
- Thu, 14 Oct 2010 06:16:42 GMT
|
|
117
|
+
server:
|
|
118
|
+
- nginx/0.7.65
|
|
119
|
+
content-length:
|
|
120
|
+
- "637"
|
|
121
|
+
set-cookie:
|
|
122
|
+
- _recurly_session=e7177df0b11394766846584b15eb96a5; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
123
|
+
cache-control:
|
|
124
|
+
- private, max-age=0, must-revalidate
|
|
125
|
+
body: |
|
|
126
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
127
|
+
<billing_info>
|
|
128
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
129
|
+
<first_name>Verena</first_name>
|
|
130
|
+
<last_name>Test</last_name>
|
|
131
|
+
<address1>123 Test St</address1>
|
|
132
|
+
<address2></address2>
|
|
133
|
+
<city>San Francisco</city>
|
|
134
|
+
<state>CA</state>
|
|
135
|
+
<country>US</country>
|
|
136
|
+
<zip>94115</zip>
|
|
137
|
+
<phone></phone>
|
|
138
|
+
<vat_number></vat_number>
|
|
139
|
+
<ip_address></ip_address>
|
|
140
|
+
<credit_card>
|
|
141
|
+
<type>bogus</type>
|
|
142
|
+
<last_four>1</last_four>
|
|
143
|
+
<month type="integer">10</month>
|
|
144
|
+
<year type="integer">2011</year>
|
|
145
|
+
</credit_card>
|
|
146
|
+
<updated_at type="datetime">2010-10-14T06:16:42Z</updated_at>
|
|
147
|
+
</billing_info>
|
|
148
|
+
|
|
149
|
+
http_version: "1.1"
|
|
150
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
151
|
+
request: !ruby/struct:VCR::Request
|
|
152
|
+
method: :post
|
|
153
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/charges.xml
|
|
154
|
+
body: |
|
|
155
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
156
|
+
<charge>
|
|
157
|
+
<amount type="float">1.0</amount>
|
|
158
|
+
<description>charge description</description>
|
|
159
|
+
</charge>
|
|
160
|
+
|
|
161
|
+
headers:
|
|
162
|
+
accept:
|
|
163
|
+
- "*/*"
|
|
164
|
+
connection:
|
|
165
|
+
- close
|
|
166
|
+
content-type:
|
|
167
|
+
- application/xml
|
|
168
|
+
authorization:
|
|
169
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
170
|
+
response: !ruby/struct:VCR::Response
|
|
171
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
172
|
+
code: 201
|
|
173
|
+
message: Created
|
|
174
|
+
headers:
|
|
175
|
+
connection:
|
|
176
|
+
- close
|
|
177
|
+
content-type:
|
|
178
|
+
- application/xml; charset=utf-8
|
|
179
|
+
x-runtime:
|
|
180
|
+
- "43"
|
|
181
|
+
date:
|
|
182
|
+
- Thu, 14 Oct 2010 06:16:42 GMT
|
|
183
|
+
server:
|
|
184
|
+
- nginx/0.7.65
|
|
185
|
+
content-length:
|
|
186
|
+
- "454"
|
|
187
|
+
set-cookie:
|
|
188
|
+
- _recurly_session=91622e5eab4dffdb1ece871a7675595d; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
189
|
+
cache-control:
|
|
190
|
+
- no-cache
|
|
191
|
+
body: |
|
|
192
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
193
|
+
<charge type="charge">
|
|
194
|
+
<id>7701e0912971439199d85351edd10a72</id>
|
|
195
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
196
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
|
197
|
+
<start_date type="datetime">2010-10-14T06:16:42Z</start_date>
|
|
198
|
+
<end_date nil="true" type="datetime"></end_date>
|
|
199
|
+
<description>charge description</description>
|
|
200
|
+
<created_at type="datetime">2010-10-14T06:16:42Z</created_at>
|
|
201
|
+
</charge>
|
|
202
|
+
|
|
203
|
+
http_version: "1.1"
|
|
204
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
205
|
+
request: !ruby/struct:VCR::Request
|
|
206
|
+
method: :post
|
|
207
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/invoices.xml
|
|
208
|
+
body: |
|
|
209
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
210
|
+
<invoice>
|
|
211
|
+
</invoice>
|
|
212
|
+
|
|
213
|
+
headers:
|
|
214
|
+
accept:
|
|
215
|
+
- "*/*"
|
|
216
|
+
connection:
|
|
217
|
+
- close
|
|
218
|
+
content-type:
|
|
219
|
+
- application/xml
|
|
220
|
+
authorization:
|
|
221
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
222
|
+
response: !ruby/struct:VCR::Response
|
|
223
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
224
|
+
code: 201
|
|
225
|
+
message: Created
|
|
226
|
+
headers:
|
|
227
|
+
location:
|
|
228
|
+
- https://recurlytest3-test.recurly.com/invoices/b82d1b3ae9c74c1bb9413628edc7a6a3
|
|
229
|
+
connection:
|
|
230
|
+
- close
|
|
231
|
+
content-type:
|
|
232
|
+
- application/xml; charset=utf-8
|
|
233
|
+
x-runtime:
|
|
234
|
+
- "94"
|
|
235
|
+
date:
|
|
236
|
+
- Thu, 14 Oct 2010 06:16:43 GMT
|
|
237
|
+
server:
|
|
238
|
+
- nginx/0.7.65
|
|
239
|
+
content-length:
|
|
240
|
+
- "1100"
|
|
241
|
+
set-cookie:
|
|
242
|
+
- _recurly_session=effde105ab8cffb581dc31f828e98ae5; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
243
|
+
cache-control:
|
|
244
|
+
- no-cache
|
|
245
|
+
body: |
|
|
246
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
247
|
+
<invoice>
|
|
248
|
+
<id>b82d1b3ae9c74c1bb9413628edc7a6a3</id>
|
|
249
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
250
|
+
<date type="datetime">2010-10-14T06:16:43Z</date>
|
|
251
|
+
<invoice_number type="integer">1735</invoice_number>
|
|
252
|
+
<vat_number></vat_number>
|
|
253
|
+
<status>open</status>
|
|
254
|
+
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
|
255
|
+
<total_in_cents type="integer">100</total_in_cents>
|
|
256
|
+
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
|
257
|
+
<paid_in_cents type="integer">0</paid_in_cents>
|
|
258
|
+
<total_due_in_cents type="integer">100</total_due_in_cents>
|
|
259
|
+
<line_items type="array">
|
|
260
|
+
<line_item>
|
|
261
|
+
<id>7701e0912971439199d85351edd10a72</id>
|
|
262
|
+
<type>charge</type>
|
|
263
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
|
264
|
+
<start_date type="datetime">2010-10-14T06:16:42Z</start_date>
|
|
265
|
+
<end_date nil="true" type="datetime"></end_date>
|
|
266
|
+
<description>charge description</description>
|
|
267
|
+
<created_at type="datetime">2010-10-14T06:16:42Z</created_at>
|
|
268
|
+
</line_item>
|
|
269
|
+
</line_items>
|
|
270
|
+
<payments type="array">
|
|
271
|
+
</payments>
|
|
272
|
+
</invoice>
|
|
273
|
+
|
|
274
|
+
http_version: "1.1"
|
|
275
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
276
|
+
request: !ruby/struct:VCR::Request
|
|
277
|
+
method: :post
|
|
278
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/charges.xml
|
|
279
|
+
body: |
|
|
280
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
281
|
+
<charge>
|
|
282
|
+
<amount type="float">3.0</amount>
|
|
283
|
+
<description>charge description</description>
|
|
284
|
+
</charge>
|
|
285
|
+
|
|
286
|
+
headers:
|
|
287
|
+
accept:
|
|
288
|
+
- "*/*"
|
|
289
|
+
connection:
|
|
290
|
+
- close
|
|
291
|
+
content-type:
|
|
292
|
+
- application/xml
|
|
293
|
+
authorization:
|
|
294
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
295
|
+
response: !ruby/struct:VCR::Response
|
|
296
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
297
|
+
code: 201
|
|
298
|
+
message: Created
|
|
299
|
+
headers:
|
|
300
|
+
connection:
|
|
301
|
+
- close
|
|
302
|
+
content-type:
|
|
303
|
+
- application/xml; charset=utf-8
|
|
304
|
+
x-runtime:
|
|
305
|
+
- "44"
|
|
306
|
+
date:
|
|
307
|
+
- Thu, 14 Oct 2010 06:16:44 GMT
|
|
308
|
+
server:
|
|
309
|
+
- nginx/0.7.65
|
|
310
|
+
content-length:
|
|
311
|
+
- "454"
|
|
312
|
+
set-cookie:
|
|
313
|
+
- _recurly_session=10013fcc2c07b40dcff4652deabce1d8; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
314
|
+
cache-control:
|
|
315
|
+
- no-cache
|
|
316
|
+
body: |
|
|
317
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
318
|
+
<charge type="charge">
|
|
319
|
+
<id>59fc5356c6b04de2995b29c1b3eab592</id>
|
|
320
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
321
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
|
322
|
+
<start_date type="datetime">2010-10-14T06:16:44Z</start_date>
|
|
323
|
+
<end_date nil="true" type="datetime"></end_date>
|
|
324
|
+
<description>charge description</description>
|
|
325
|
+
<created_at type="datetime">2010-10-14T06:16:44Z</created_at>
|
|
326
|
+
</charge>
|
|
327
|
+
|
|
328
|
+
http_version: "1.1"
|
|
329
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
330
|
+
request: !ruby/struct:VCR::Request
|
|
331
|
+
method: :post
|
|
332
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/invoices.xml
|
|
333
|
+
body: |
|
|
334
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
335
|
+
<invoice>
|
|
336
|
+
</invoice>
|
|
337
|
+
|
|
338
|
+
headers:
|
|
339
|
+
accept:
|
|
340
|
+
- "*/*"
|
|
341
|
+
connection:
|
|
342
|
+
- close
|
|
343
|
+
content-type:
|
|
344
|
+
- application/xml
|
|
345
|
+
authorization:
|
|
346
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
347
|
+
response: !ruby/struct:VCR::Response
|
|
348
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
349
|
+
code: 201
|
|
350
|
+
message: Created
|
|
351
|
+
headers:
|
|
352
|
+
location:
|
|
353
|
+
- https://recurlytest3-test.recurly.com/invoices/aa5acaabce1c4ebd84ef7390ba63e528
|
|
354
|
+
connection:
|
|
355
|
+
- close
|
|
356
|
+
content-type:
|
|
357
|
+
- application/xml; charset=utf-8
|
|
358
|
+
x-runtime:
|
|
359
|
+
- "60"
|
|
360
|
+
date:
|
|
361
|
+
- Thu, 14 Oct 2010 06:16:45 GMT
|
|
362
|
+
server:
|
|
363
|
+
- nginx/0.7.65
|
|
364
|
+
content-length:
|
|
365
|
+
- "1100"
|
|
366
|
+
set-cookie:
|
|
367
|
+
- _recurly_session=a242820bee01dd490729bf2b4f9dc841; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
368
|
+
cache-control:
|
|
369
|
+
- no-cache
|
|
370
|
+
body: |
|
|
371
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
372
|
+
<invoice>
|
|
373
|
+
<id>aa5acaabce1c4ebd84ef7390ba63e528</id>
|
|
374
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
375
|
+
<date type="datetime">2010-10-14T06:16:45Z</date>
|
|
376
|
+
<invoice_number type="integer">1736</invoice_number>
|
|
377
|
+
<vat_number></vat_number>
|
|
378
|
+
<status>open</status>
|
|
379
|
+
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
|
380
|
+
<total_in_cents type="integer">300</total_in_cents>
|
|
381
|
+
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
|
382
|
+
<paid_in_cents type="integer">0</paid_in_cents>
|
|
383
|
+
<total_due_in_cents type="integer">300</total_due_in_cents>
|
|
384
|
+
<line_items type="array">
|
|
385
|
+
<line_item>
|
|
386
|
+
<id>59fc5356c6b04de2995b29c1b3eab592</id>
|
|
387
|
+
<type>charge</type>
|
|
388
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
|
389
|
+
<start_date type="datetime">2010-10-14T06:16:44Z</start_date>
|
|
390
|
+
<end_date nil="true" type="datetime"></end_date>
|
|
391
|
+
<description>charge description</description>
|
|
392
|
+
<created_at type="datetime">2010-10-14T06:16:44Z</created_at>
|
|
393
|
+
</line_item>
|
|
394
|
+
</line_items>
|
|
395
|
+
<payments type="array">
|
|
396
|
+
</payments>
|
|
397
|
+
</invoice>
|
|
398
|
+
|
|
399
|
+
http_version: "1.1"
|
|
400
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
401
|
+
request: !ruby/struct:VCR::Request
|
|
402
|
+
method: :get
|
|
403
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-list-1286679184/invoices.xml
|
|
404
|
+
body:
|
|
405
|
+
headers:
|
|
406
|
+
accept:
|
|
407
|
+
- application/xml
|
|
408
|
+
connection:
|
|
409
|
+
- close
|
|
410
|
+
authorization:
|
|
411
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
|
412
|
+
response: !ruby/struct:VCR::Response
|
|
413
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
414
|
+
code: 200
|
|
415
|
+
message: OK
|
|
416
|
+
headers:
|
|
417
|
+
x-ua-compatible:
|
|
418
|
+
- IE=Edge
|
|
419
|
+
etag:
|
|
420
|
+
- "\"4e7eeabdec1ac2182a77bd6b455edbab\""
|
|
421
|
+
connection:
|
|
422
|
+
- close
|
|
423
|
+
content-type:
|
|
424
|
+
- application/xml; charset=utf-8
|
|
425
|
+
x-runtime:
|
|
426
|
+
- "28"
|
|
427
|
+
date:
|
|
428
|
+
- Thu, 14 Oct 2010 06:16:45 GMT
|
|
429
|
+
server:
|
|
430
|
+
- nginx/0.7.65
|
|
431
|
+
content-length:
|
|
432
|
+
- "789"
|
|
433
|
+
set-cookie:
|
|
434
|
+
- _recurly_session=8be31b715ab1fc0b48ba1807a8acc849; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
435
|
+
cache-control:
|
|
436
|
+
- private, max-age=0, must-revalidate
|
|
437
|
+
body: |
|
|
438
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
439
|
+
<invoices type="array">
|
|
440
|
+
<invoice>
|
|
441
|
+
<id>aa5acaabce1c4ebd84ef7390ba63e528</id>
|
|
442
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
443
|
+
<date type="datetime">2010-10-14T06:16:45Z</date>
|
|
444
|
+
<invoice_number type="integer">1736</invoice_number>
|
|
445
|
+
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
|
446
|
+
<total_in_cents type="integer">300</total_in_cents>
|
|
447
|
+
</invoice>
|
|
448
|
+
<invoice>
|
|
449
|
+
<id>b82d1b3ae9c74c1bb9413628edc7a6a3</id>
|
|
450
|
+
<account_code>invoice-list-1286679184</account_code>
|
|
451
|
+
<date type="datetime">2010-10-14T06:16:43Z</date>
|
|
452
|
+
<invoice_number type="integer">1735</invoice_number>
|
|
453
|
+
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
|
454
|
+
<total_in_cents type="integer">100</total_in_cents>
|
|
455
|
+
</invoice>
|
|
456
|
+
</invoices>
|
|
457
|
+
|
|
458
|
+
http_version: "1.1"
|