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.

Files changed (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -1,330 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>credit-list-1299714599</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
26
- content-type:
27
- - application/xml
28
- accept:
29
- - "*/*"
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/credit-list-1299714599
41
- x-runtime:
42
- - "473"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "577"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
- date:
50
- - Thu, 21 Apr 2011 18:01:03 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - _recurly_session=8812892ee16933df27bd8792166e02c1; domain=.recurly.local; path=/; HttpOnly
55
- body: |
56
- <?xml version="1.0" encoding="UTF-8"?>
57
- <account>
58
- <id>credit-list-1299714599</id>
59
- <account_code>credit-list-1299714599</account_code>
60
- <username></username>
61
- <email>verena@test.com</email>
62
- <first_name>Verena</first_name>
63
- <last_name>Test</last_name>
64
- <company_name>Recurly Ruby Gem</company_name>
65
- <balance_in_cents type="integer">0</balance_in_cents>
66
- <closed type="boolean">false</closed>
67
- <hosted_login_token>c98eef7c68004a86859d14941fb8aec1</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:01:02Z</created_at>
69
- <state>active</state>
70
- </account>
71
-
72
- http_version: "1.1"
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :post
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
77
- body: |
78
- <?xml version="1.0" encoding="UTF-8"?>
79
- <credit>
80
- <amount-in-cents type="integer">100</amount-in-cents>
81
- <description>one</description>
82
- </credit>
83
-
84
- headers:
85
- authorization:
86
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
- user-agent:
88
- - Recurly Ruby Client v0.4.6
89
- content-type:
90
- - application/xml
91
- accept:
92
- - "*/*"
93
- connection:
94
- - close
95
- response: !ruby/struct:VCR::Response
96
- status: !ruby/struct:VCR::ResponseStatus
97
- code: 201
98
- message: "Created "
99
- headers:
100
- cache-control:
101
- - no-cache
102
- x-runtime:
103
- - "258"
104
- content-type:
105
- - application/xml; charset=utf-8
106
- content-length:
107
- - "608"
108
- server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
- date:
111
- - Thu, 21 Apr 2011 18:01:05 GMT
112
- connection:
113
- - close
114
- set-cookie:
115
- - _recurly_session=5a5accd6f72f2e26ff51bd53204f776b; domain=.recurly.local; path=/; HttpOnly
116
- body: |
117
- <?xml version="1.0" encoding="UTF-8"?>
118
- <credit type="credit">
119
- <id>3a3aa653c16e4873a7425b51ab8d300b</id>
120
- <account_code>credit-list-1299714599</account_code>
121
- <quantity type="integer">1</quantity>
122
- <unit_amount_in_cents type="integer">-100</unit_amount_in_cents>
123
- <amount_in_cents type="integer">-100</amount_in_cents>
124
- <start_date type="datetime">2011-04-21T18:01:05Z</start_date>
125
- <end_date nil="true" type="datetime"></end_date>
126
- <invoice_number nil="true" type="integer"></invoice_number>
127
- <description>one</description>
128
- <created_at type="datetime">2011-04-21T18:01:05Z</created_at>
129
- </credit>
130
-
131
- http_version: "1.1"
132
- - !ruby/struct:VCR::HTTPInteraction
133
- request: !ruby/struct:VCR::Request
134
- method: :post
135
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
136
- body: |
137
- <?xml version="1.0" encoding="UTF-8"?>
138
- <credit>
139
- <amount-in-cents type="integer">200</amount-in-cents>
140
- <description>two</description>
141
- </credit>
142
-
143
- headers:
144
- authorization:
145
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
146
- user-agent:
147
- - Recurly Ruby Client v0.4.6
148
- content-type:
149
- - application/xml
150
- accept:
151
- - "*/*"
152
- connection:
153
- - close
154
- response: !ruby/struct:VCR::Response
155
- status: !ruby/struct:VCR::ResponseStatus
156
- code: 201
157
- message: "Created "
158
- headers:
159
- cache-control:
160
- - no-cache
161
- x-runtime:
162
- - "226"
163
- content-type:
164
- - application/xml; charset=utf-8
165
- content-length:
166
- - "608"
167
- server:
168
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
169
- date:
170
- - Thu, 21 Apr 2011 18:01:07 GMT
171
- connection:
172
- - close
173
- set-cookie:
174
- - _recurly_session=bdcb258b4e4d85742803bb05c7a474d7; domain=.recurly.local; path=/; HttpOnly
175
- body: |
176
- <?xml version="1.0" encoding="UTF-8"?>
177
- <credit type="credit">
178
- <id>ffa50dbd157745aca811140b1955d426</id>
179
- <account_code>credit-list-1299714599</account_code>
180
- <quantity type="integer">1</quantity>
181
- <unit_amount_in_cents type="integer">-200</unit_amount_in_cents>
182
- <amount_in_cents type="integer">-200</amount_in_cents>
183
- <start_date type="datetime">2011-04-21T18:01:06Z</start_date>
184
- <end_date nil="true" type="datetime"></end_date>
185
- <invoice_number nil="true" type="integer"></invoice_number>
186
- <description>two</description>
187
- <created_at type="datetime">2011-04-21T18:01:07Z</created_at>
188
- </credit>
189
-
190
- http_version: "1.1"
191
- - !ruby/struct:VCR::HTTPInteraction
192
- request: !ruby/struct:VCR::Request
193
- method: :post
194
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
195
- body: |
196
- <?xml version="1.0" encoding="UTF-8"?>
197
- <credit>
198
- <amount-in-cents type="integer">300</amount-in-cents>
199
- <description>three</description>
200
- </credit>
201
-
202
- headers:
203
- authorization:
204
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
205
- user-agent:
206
- - Recurly Ruby Client v0.4.6
207
- content-type:
208
- - application/xml
209
- accept:
210
- - "*/*"
211
- connection:
212
- - close
213
- response: !ruby/struct:VCR::Response
214
- status: !ruby/struct:VCR::ResponseStatus
215
- code: 201
216
- message: "Created "
217
- headers:
218
- cache-control:
219
- - no-cache
220
- x-runtime:
221
- - "221"
222
- content-type:
223
- - application/xml; charset=utf-8
224
- content-length:
225
- - "610"
226
- server:
227
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
228
- date:
229
- - Thu, 21 Apr 2011 18:01:08 GMT
230
- connection:
231
- - close
232
- set-cookie:
233
- - _recurly_session=4cfce4d2c4d33454b65971fdd93cf17b; domain=.recurly.local; path=/; HttpOnly
234
- body: |
235
- <?xml version="1.0" encoding="UTF-8"?>
236
- <credit type="credit">
237
- <id>15c8ad925f6d410cb631f68f038ae018</id>
238
- <account_code>credit-list-1299714599</account_code>
239
- <quantity type="integer">1</quantity>
240
- <unit_amount_in_cents type="integer">-300</unit_amount_in_cents>
241
- <amount_in_cents type="integer">-300</amount_in_cents>
242
- <start_date type="datetime">2011-04-21T18:01:08Z</start_date>
243
- <end_date nil="true" type="datetime"></end_date>
244
- <invoice_number nil="true" type="integer"></invoice_number>
245
- <description>three</description>
246
- <created_at type="datetime">2011-04-21T18:01:08Z</created_at>
247
- </credit>
248
-
249
- http_version: "1.1"
250
- - !ruby/struct:VCR::HTTPInteraction
251
- request: !ruby/struct:VCR::Request
252
- method: :get
253
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
254
- body:
255
- headers:
256
- authorization:
257
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
258
- user-agent:
259
- - Recurly Ruby Client v0.4.6
260
- accept:
261
- - application/xml
262
- accept-encoding:
263
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
264
- connection:
265
- - close
266
- response: !ruby/struct:VCR::Response
267
- status: !ruby/struct:VCR::ResponseStatus
268
- code: 200
269
- message: "OK "
270
- headers:
271
- x-runtime:
272
- - "70"
273
- content-type:
274
- - application/xml; charset=utf-8
275
- etag:
276
- - "\"c1c2b4957054fef68872b748ae50b13c\""
277
- cache-control:
278
- - private, max-age=0, must-revalidate
279
- content-length:
280
- - "1854"
281
- server:
282
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
283
- date:
284
- - Thu, 21 Apr 2011 18:01:10 GMT
285
- connection:
286
- - close
287
- set-cookie:
288
- - _recurly_session=379ef53f4ff566780be620bb8791a914; domain=.recurly.local; path=/; HttpOnly
289
- body: |
290
- <?xml version="1.0" encoding="UTF-8"?>
291
- <credits type="array">
292
- <credit type="credit">
293
- <id>15c8ad925f6d410cb631f68f038ae018</id>
294
- <account_code>credit-list-1299714599</account_code>
295
- <quantity type="integer">1</quantity>
296
- <unit_amount_in_cents type="integer">-300</unit_amount_in_cents>
297
- <amount_in_cents type="integer">-300</amount_in_cents>
298
- <start_date type="datetime">2011-04-21T18:01:08Z</start_date>
299
- <end_date nil="true" type="datetime"></end_date>
300
- <invoice_number nil="true" type="integer"></invoice_number>
301
- <description>three</description>
302
- <created_at type="datetime">2011-04-21T18:01:08Z</created_at>
303
- </credit>
304
- <credit type="credit">
305
- <id>ffa50dbd157745aca811140b1955d426</id>
306
- <account_code>credit-list-1299714599</account_code>
307
- <quantity type="integer">1</quantity>
308
- <unit_amount_in_cents type="integer">-200</unit_amount_in_cents>
309
- <amount_in_cents type="integer">-200</amount_in_cents>
310
- <start_date type="datetime">2011-04-21T18:01:06Z</start_date>
311
- <end_date nil="true" type="datetime"></end_date>
312
- <invoice_number nil="true" type="integer"></invoice_number>
313
- <description>two</description>
314
- <created_at type="datetime">2011-04-21T18:01:07Z</created_at>
315
- </credit>
316
- <credit type="credit">
317
- <id>3a3aa653c16e4873a7425b51ab8d300b</id>
318
- <account_code>credit-list-1299714599</account_code>
319
- <quantity type="integer">1</quantity>
320
- <unit_amount_in_cents type="integer">-100</unit_amount_in_cents>
321
- <amount_in_cents type="integer">-100</amount_in_cents>
322
- <start_date type="datetime">2011-04-21T18:01:05Z</start_date>
323
- <end_date nil="true" type="datetime"></end_date>
324
- <invoice_number nil="true" type="integer"></invoice_number>
325
- <description>one</description>
326
- <created_at type="datetime">2011-04-21T18:01:05Z</created_at>
327
- </credit>
328
- </credits>
329
-
330
- http_version: "1.1"
@@ -1,186 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>credit-lookup-1299714599</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
26
- content-type:
27
- - application/xml
28
- accept:
29
- - "*/*"
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/credit-lookup-1299714599
41
- x-runtime:
42
- - "257"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
- date:
50
- - Thu, 21 Apr 2011 18:01:12 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - _recurly_session=3d170f89178072d95a4e94a8ef6bb430; domain=.recurly.local; path=/; HttpOnly
55
- body: |
56
- <?xml version="1.0" encoding="UTF-8"?>
57
- <account>
58
- <id>credit-lookup-1299714599</id>
59
- <account_code>credit-lookup-1299714599</account_code>
60
- <username></username>
61
- <email>verena@test.com</email>
62
- <first_name>Verena</first_name>
63
- <last_name>Test</last_name>
64
- <company_name>Recurly Ruby Gem</company_name>
65
- <balance_in_cents type="integer">0</balance_in_cents>
66
- <closed type="boolean">false</closed>
67
- <hosted_login_token>6a6ed1f2d8c34812a524e1124e995c5b</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:01:12Z</created_at>
69
- <state>active</state>
70
- </account>
71
-
72
- http_version: "1.1"
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :post
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits.xml
77
- body: |
78
- <?xml version="1.0" encoding="UTF-8"?>
79
- <credit>
80
- <amount-in-cents type="integer">1315</amount-in-cents>
81
- <description>free moniez 4 u</description>
82
- </credit>
83
-
84
- headers:
85
- authorization:
86
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
- user-agent:
88
- - Recurly Ruby Client v0.4.6
89
- content-type:
90
- - application/xml
91
- accept:
92
- - "*/*"
93
- connection:
94
- - close
95
- response: !ruby/struct:VCR::Response
96
- status: !ruby/struct:VCR::ResponseStatus
97
- code: 201
98
- message: "Created "
99
- headers:
100
- cache-control:
101
- - no-cache
102
- x-runtime:
103
- - "225"
104
- content-type:
105
- - application/xml; charset=utf-8
106
- content-length:
107
- - "624"
108
- server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
- date:
111
- - Thu, 21 Apr 2011 18:01:14 GMT
112
- connection:
113
- - close
114
- set-cookie:
115
- - _recurly_session=cb055a5573d0231a3919786ead2b800e; domain=.recurly.local; path=/; HttpOnly
116
- body: |
117
- <?xml version="1.0" encoding="UTF-8"?>
118
- <credit type="credit">
119
- <id>c69648786d4c481e92cd13acb0b14a42</id>
120
- <account_code>credit-lookup-1299714599</account_code>
121
- <quantity type="integer">1</quantity>
122
- <unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
123
- <amount_in_cents type="integer">-1315</amount_in_cents>
124
- <start_date type="datetime">2011-04-21T18:01:14Z</start_date>
125
- <end_date nil="true" type="datetime"></end_date>
126
- <invoice_number nil="true" type="integer"></invoice_number>
127
- <description>free moniez 4 u</description>
128
- <created_at type="datetime">2011-04-21T18:01:14Z</created_at>
129
- </credit>
130
-
131
- http_version: "1.1"
132
- - !ruby/struct:VCR::HTTPInteraction
133
- request: !ruby/struct:VCR::Request
134
- method: :get
135
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/c69648786d4c481e92cd13acb0b14a42.xml
136
- body:
137
- headers:
138
- authorization:
139
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
140
- user-agent:
141
- - Recurly Ruby Client v0.4.6
142
- accept:
143
- - application/xml
144
- accept-encoding:
145
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
146
- connection:
147
- - close
148
- response: !ruby/struct:VCR::Response
149
- status: !ruby/struct:VCR::ResponseStatus
150
- code: 200
151
- message: "OK "
152
- headers:
153
- x-runtime:
154
- - "238"
155
- content-type:
156
- - application/xml; charset=utf-8
157
- etag:
158
- - "\"618724c8ce709e768847bb9ba3d1b252\""
159
- cache-control:
160
- - private, max-age=0, must-revalidate
161
- content-length:
162
- - "624"
163
- server:
164
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
165
- date:
166
- - Thu, 21 Apr 2011 18:01:16 GMT
167
- connection:
168
- - close
169
- set-cookie:
170
- - _recurly_session=fa3512c3231ca4813982c91cb233724f; domain=.recurly.local; path=/; HttpOnly
171
- body: |
172
- <?xml version="1.0" encoding="UTF-8"?>
173
- <credit type="credit">
174
- <id>c69648786d4c481e92cd13acb0b14a42</id>
175
- <account_code>credit-lookup-1299714599</account_code>
176
- <quantity type="integer">1</quantity>
177
- <unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
178
- <amount_in_cents type="integer">-1315</amount_in_cents>
179
- <start_date type="datetime">2011-04-21T18:01:14Z</start_date>
180
- <end_date nil="true" type="datetime"></end_date>
181
- <invoice_number nil="true" type="integer"></invoice_number>
182
- <description>free moniez 4 u</description>
183
- <created_at type="datetime">2011-04-21T18:01:14Z</created_at>
184
- </credit>
185
-
186
- http_version: "1.1"