recurly 0.2.3 → 0.2.4

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 (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -0,0 +1,299 @@
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
+ <account-code>credit-list-1287461340</account-code>
10
+ <company-name>Recurly Ruby Gem</company-name>
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/credit-list-1287461340
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "585"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:09:09 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "577"
44
+ set-cookie:
45
+ - account_credentials=59bc7087256d293f147638590e9ff59d8d75729e2b52d88564706dc993ed609680a2f38efdae12f3350106c41624480f73ab3f6c0a2cc2bf9ad223c739f0b1f7%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=14c47062f2f00100b28468a53ca77a9a; 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>credit-list-1287461340</id>
54
+ <account_code>credit-list-1287461340</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>34afc8ce2f8c448c8252ce281487e85f</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:09:09Z</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: :post
71
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461340/credits.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <credit>
75
+ <amount type="integer">1</amount>
76
+ <description>one</description>
77
+ </credit>
78
+
79
+ headers:
80
+ accept:
81
+ - "*/*"
82
+ connection:
83
+ - close
84
+ content-type:
85
+ - application/xml
86
+ authorization:
87
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
88
+ response: !ruby/struct:VCR::Response
89
+ status: !ruby/struct:VCR::ResponseStatus
90
+ code: 201
91
+ message: Created
92
+ headers:
93
+ connection:
94
+ - close
95
+ content-type:
96
+ - application/xml; charset=utf-8
97
+ x-runtime:
98
+ - "47"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:09:10 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "439"
105
+ set-cookie:
106
+ - _recurly_session=334efd6b643fa8c4673a805f35f622c5; domain=.recurly.com; path=/; Secure; HttpOnly
107
+ cache-control:
108
+ - no-cache
109
+ body: |
110
+ <?xml version="1.0" encoding="UTF-8"?>
111
+ <credit type="credit">
112
+ <id>a4aab14be43d4ae986bf4d02b5d871a6</id>
113
+ <account_code>credit-list-1287461340</account_code>
114
+ <amount_in_cents type="integer">-100</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:09:10Z</start_date>
116
+ <end_date nil="true" type="datetime"></end_date>
117
+ <description>one</description>
118
+ <created_at type="datetime">2010-10-19T04:09:10Z</created_at>
119
+ </credit>
120
+
121
+ http_version: "1.1"
122
+ - !ruby/struct:VCR::HTTPInteraction
123
+ request: !ruby/struct:VCR::Request
124
+ method: :post
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461340/credits.xml
126
+ body: |
127
+ <?xml version="1.0" encoding="UTF-8"?>
128
+ <credit>
129
+ <amount type="integer">2</amount>
130
+ <description>two</description>
131
+ </credit>
132
+
133
+ headers:
134
+ accept:
135
+ - "*/*"
136
+ connection:
137
+ - close
138
+ content-type:
139
+ - application/xml
140
+ authorization:
141
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
142
+ response: !ruby/struct:VCR::Response
143
+ status: !ruby/struct:VCR::ResponseStatus
144
+ code: 201
145
+ message: Created
146
+ headers:
147
+ connection:
148
+ - close
149
+ content-type:
150
+ - application/xml; charset=utf-8
151
+ x-runtime:
152
+ - "66"
153
+ date:
154
+ - Tue, 19 Oct 2010 04:09:11 GMT
155
+ server:
156
+ - nginx/0.7.65
157
+ content-length:
158
+ - "439"
159
+ set-cookie:
160
+ - _recurly_session=ab40f438b04b31d5e12278be196c9f94; domain=.recurly.com; path=/; Secure; HttpOnly
161
+ cache-control:
162
+ - no-cache
163
+ body: |
164
+ <?xml version="1.0" encoding="UTF-8"?>
165
+ <credit type="credit">
166
+ <id>4a7775830817417db802893267169ed7</id>
167
+ <account_code>credit-list-1287461340</account_code>
168
+ <amount_in_cents type="integer">-200</amount_in_cents>
169
+ <start_date type="datetime">2010-10-19T04:09:11Z</start_date>
170
+ <end_date nil="true" type="datetime"></end_date>
171
+ <description>two</description>
172
+ <created_at type="datetime">2010-10-19T04:09:11Z</created_at>
173
+ </credit>
174
+
175
+ http_version: "1.1"
176
+ - !ruby/struct:VCR::HTTPInteraction
177
+ request: !ruby/struct:VCR::Request
178
+ method: :post
179
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461340/credits.xml
180
+ body: |
181
+ <?xml version="1.0" encoding="UTF-8"?>
182
+ <credit>
183
+ <amount type="integer">3</amount>
184
+ <description>three</description>
185
+ </credit>
186
+
187
+ headers:
188
+ accept:
189
+ - "*/*"
190
+ connection:
191
+ - close
192
+ content-type:
193
+ - application/xml
194
+ authorization:
195
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
196
+ response: !ruby/struct:VCR::Response
197
+ status: !ruby/struct:VCR::ResponseStatus
198
+ code: 201
199
+ message: Created
200
+ headers:
201
+ connection:
202
+ - close
203
+ content-type:
204
+ - application/xml; charset=utf-8
205
+ x-runtime:
206
+ - "44"
207
+ date:
208
+ - Tue, 19 Oct 2010 04:09:11 GMT
209
+ server:
210
+ - nginx/0.7.65
211
+ content-length:
212
+ - "441"
213
+ set-cookie:
214
+ - _recurly_session=767f43c7ace7038249709e22c346151a; domain=.recurly.com; path=/; Secure; HttpOnly
215
+ cache-control:
216
+ - no-cache
217
+ body: |
218
+ <?xml version="1.0" encoding="UTF-8"?>
219
+ <credit type="credit">
220
+ <id>0cbb9c183ae54307a9da8a242ddb23ac</id>
221
+ <account_code>credit-list-1287461340</account_code>
222
+ <amount_in_cents type="integer">-300</amount_in_cents>
223
+ <start_date type="datetime">2010-10-19T04:09:11Z</start_date>
224
+ <end_date nil="true" type="datetime"></end_date>
225
+ <description>three</description>
226
+ <created_at type="datetime">2010-10-19T04:09:11Z</created_at>
227
+ </credit>
228
+
229
+ http_version: "1.1"
230
+ - !ruby/struct:VCR::HTTPInteraction
231
+ request: !ruby/struct:VCR::Request
232
+ method: :get
233
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461340/credits.xml
234
+ body:
235
+ headers:
236
+ accept:
237
+ - application/xml
238
+ connection:
239
+ - close
240
+ authorization:
241
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
242
+ response: !ruby/struct:VCR::Response
243
+ status: !ruby/struct:VCR::ResponseStatus
244
+ code: 200
245
+ message: OK
246
+ headers:
247
+ x-ua-compatible:
248
+ - IE=Edge
249
+ etag:
250
+ - "\"e5830fd39fe35c473bc5100f7cfe6a1f\""
251
+ connection:
252
+ - close
253
+ content-type:
254
+ - application/xml; charset=utf-8
255
+ x-runtime:
256
+ - "19"
257
+ date:
258
+ - Tue, 19 Oct 2010 04:09:12 GMT
259
+ server:
260
+ - nginx/0.7.65
261
+ content-length:
262
+ - "1329"
263
+ set-cookie:
264
+ - _recurly_session=70e2df0375da0b49342308d220ee7859; domain=.recurly.com; path=/; Secure; HttpOnly
265
+ cache-control:
266
+ - private, max-age=0, must-revalidate
267
+ body: |
268
+ <?xml version="1.0" encoding="UTF-8"?>
269
+ <credits type="array">
270
+ <credit type="credit">
271
+ <id>0cbb9c183ae54307a9da8a242ddb23ac</id>
272
+ <account_code>credit-list-1287461340</account_code>
273
+ <amount_in_cents type="integer">-300</amount_in_cents>
274
+ <start_date type="datetime">2010-10-19T04:09:11Z</start_date>
275
+ <end_date nil="true" type="datetime"></end_date>
276
+ <description>three</description>
277
+ <created_at type="datetime">2010-10-19T04:09:11Z</created_at>
278
+ </credit>
279
+ <credit type="credit">
280
+ <id>4a7775830817417db802893267169ed7</id>
281
+ <account_code>credit-list-1287461340</account_code>
282
+ <amount_in_cents type="integer">-200</amount_in_cents>
283
+ <start_date type="datetime">2010-10-19T04:09:11Z</start_date>
284
+ <end_date nil="true" type="datetime"></end_date>
285
+ <description>two</description>
286
+ <created_at type="datetime">2010-10-19T04:09:11Z</created_at>
287
+ </credit>
288
+ <credit type="credit">
289
+ <id>a4aab14be43d4ae986bf4d02b5d871a6</id>
290
+ <account_code>credit-list-1287461340</account_code>
291
+ <amount_in_cents type="integer">-100</amount_in_cents>
292
+ <start_date type="datetime">2010-10-19T04:09:10Z</start_date>
293
+ <end_date nil="true" type="datetime"></end_date>
294
+ <description>one</description>
295
+ <created_at type="datetime">2010-10-19T04:09:10Z</created_at>
296
+ </credit>
297
+ </credits>
298
+
299
+ http_version: "1.1"
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "594"
37
+ - "611"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:50 GMT
39
+ - Tue, 19 Oct 2010 03:19:44 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "581"
44
44
  set-cookie:
45
- - account_credentials=82712790a7716ccdf81c4fc5f69c0682bc8e77103f9a617bbc6795d06e5e34b740f0e52f420dd1f6e5ef6e92abb16783de9248105eb5a28d9500f053bed900f3%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=41c3fa41fd3655070b02c34e4d7ceaa057d86416bdb39a341060123b8850e6fe3f5a8c4ded3c3a140cb9e60a0d56087c72bb64768933f79a7a99c44df14bf0df%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=3f916c2626d2f70485d270ae2b102039; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=3a541478a8f31fa485f28adfd3fec7b4; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -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>0f8df0f48b984834a6e6f8797133411f</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:50Z</created_at>
62
+ <hosted_login_token>d9cb9dc9961b44b88c2c3095a96cf7a3</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:44Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -95,34 +95,34 @@
95
95
  content-type:
96
96
  - application/xml; charset=utf-8
97
97
  x-runtime:
98
- - "66"
98
+ - "45"
99
99
  date:
100
- - Mon, 18 Oct 2010 22:05:51 GMT
100
+ - Tue, 19 Oct 2010 03:19:45 GMT
101
101
  server:
102
102
  - nginx/0.7.65
103
103
  content-length:
104
104
  - "454"
105
105
  set-cookie:
106
- - _recurly_session=c9324033f3922f4ddd825c3147b2bfec; domain=.recurly.com; path=/; Secure; HttpOnly
106
+ - _recurly_session=6be4ee478c21baed11959d556de3634e; domain=.recurly.com; path=/; Secure; HttpOnly
107
107
  cache-control:
108
108
  - no-cache
109
109
  body: |
110
110
  <?xml version="1.0" encoding="UTF-8"?>
111
111
  <credit type="credit">
112
- <id>4355aacaece4463dad0f8f95276186e0</id>
112
+ <id>f164c3a9a273424db12f67ed4f68ca2f</id>
113
113
  <account_code>credit-lookup-1286681343</account_code>
114
114
  <amount_in_cents type="integer">-1315</amount_in_cents>
115
- <start_date type="datetime">2010-10-18T22:05:51Z</start_date>
115
+ <start_date type="datetime">2010-10-19T03:19:44Z</start_date>
116
116
  <end_date nil="true" type="datetime"></end_date>
117
117
  <description>free moniez 4 u</description>
118
- <created_at type="datetime">2010-10-18T22:05:51Z</created_at>
118
+ <created_at type="datetime">2010-10-19T03:19:44Z</created_at>
119
119
  </credit>
120
120
 
121
121
  http_version: "1.1"
122
122
  - !ruby/struct:VCR::HTTPInteraction
123
123
  request: !ruby/struct:VCR::Request
124
124
  method: :get
125
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1286681343/credits/4355aacaece4463dad0f8f95276186e0.xml
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1286681343/credits/f164c3a9a273424db12f67ed4f68ca2f.xml
126
126
  body:
127
127
  headers:
128
128
  accept:
@@ -139,33 +139,33 @@
139
139
  x-ua-compatible:
140
140
  - IE=Edge
141
141
  etag:
142
- - "\"3a86a221f423df538182d1ac459e51ca\""
142
+ - "\"e6f5eca5cdd97fbf50c20edb8852f81f\""
143
143
  connection:
144
144
  - close
145
145
  content-type:
146
146
  - application/xml; charset=utf-8
147
147
  x-runtime:
148
- - "17"
148
+ - "16"
149
149
  date:
150
- - Mon, 18 Oct 2010 22:05:52 GMT
150
+ - Tue, 19 Oct 2010 03:19:45 GMT
151
151
  server:
152
152
  - nginx/0.7.65
153
153
  content-length:
154
154
  - "454"
155
155
  set-cookie:
156
- - _recurly_session=bd268f219a1ca8c1383ffa51d88a223f; domain=.recurly.com; path=/; Secure; HttpOnly
156
+ - _recurly_session=861caa798fbf2e3ebc4a583024005d5e; domain=.recurly.com; path=/; Secure; HttpOnly
157
157
  cache-control:
158
158
  - private, max-age=0, must-revalidate
159
159
  body: |
160
160
  <?xml version="1.0" encoding="UTF-8"?>
161
161
  <credit type="credit">
162
- <id>4355aacaece4463dad0f8f95276186e0</id>
162
+ <id>f164c3a9a273424db12f67ed4f68ca2f</id>
163
163
  <account_code>credit-lookup-1286681343</account_code>
164
164
  <amount_in_cents type="integer">-1315</amount_in_cents>
165
- <start_date type="datetime">2010-10-18T22:05:51Z</start_date>
165
+ <start_date type="datetime">2010-10-19T03:19:44Z</start_date>
166
166
  <end_date nil="true" type="datetime"></end_date>
167
167
  <description>free moniez 4 u</description>
168
- <created_at type="datetime">2010-10-18T22:05:51Z</created_at>
168
+ <created_at type="datetime">2010-10-19T03:19:44Z</created_at>
169
169
  </credit>
170
170
 
171
171
  http_version: "1.1"
@@ -0,0 +1,171 @@
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
+ <account-code>credit-lookup-1287460732</account-code>
10
+ <company-name>Recurly Ruby Gem</company-name>
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/credit-lookup-1287460732
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "584"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:07:49 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "581"
44
+ set-cookie:
45
+ - account_credentials=deaab2785a743353549509c18f6202ba2c5981f2fdba1894d51cc7d377fbf935627d619184d03f25d44261f8bbef1323997d0acdc7609403cd1042da76d219c4%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=48a11b6ae4ded6f9580c85e0449ce0be; 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>credit-lookup-1287460732</id>
54
+ <account_code>credit-lookup-1287460732</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>54c615d9e8884504b171982e41d75728</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:07:49Z</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: :post
71
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287460732/credits.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <credit>
75
+ <amount type="float">13.15</amount>
76
+ <description>free moniez 4 u</description>
77
+ </credit>
78
+
79
+ headers:
80
+ accept:
81
+ - "*/*"
82
+ connection:
83
+ - close
84
+ content-type:
85
+ - application/xml
86
+ authorization:
87
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
88
+ response: !ruby/struct:VCR::Response
89
+ status: !ruby/struct:VCR::ResponseStatus
90
+ code: 201
91
+ message: Created
92
+ headers:
93
+ connection:
94
+ - close
95
+ content-type:
96
+ - application/xml; charset=utf-8
97
+ x-runtime:
98
+ - "48"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:07:50 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "454"
105
+ set-cookie:
106
+ - _recurly_session=0110a0bd477ca8a2907543e62dec3e84; domain=.recurly.com; path=/; Secure; HttpOnly
107
+ cache-control:
108
+ - no-cache
109
+ body: |
110
+ <?xml version="1.0" encoding="UTF-8"?>
111
+ <credit type="credit">
112
+ <id>a68efb078adc4b91af0b0d7b0c743d27</id>
113
+ <account_code>credit-lookup-1287460732</account_code>
114
+ <amount_in_cents type="integer">-1315</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:07:50Z</start_date>
116
+ <end_date nil="true" type="datetime"></end_date>
117
+ <description>free moniez 4 u</description>
118
+ <created_at type="datetime">2010-10-19T04:07:50Z</created_at>
119
+ </credit>
120
+
121
+ http_version: "1.1"
122
+ - !ruby/struct:VCR::HTTPInteraction
123
+ request: !ruby/struct:VCR::Request
124
+ method: :get
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287460732/credits/a68efb078adc4b91af0b0d7b0c743d27.xml
126
+ body:
127
+ headers:
128
+ accept:
129
+ - application/xml
130
+ connection:
131
+ - close
132
+ authorization:
133
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
134
+ response: !ruby/struct:VCR::Response
135
+ status: !ruby/struct:VCR::ResponseStatus
136
+ code: 200
137
+ message: OK
138
+ headers:
139
+ x-ua-compatible:
140
+ - IE=Edge
141
+ etag:
142
+ - "\"3a22bc79e16f7d188031c5ea700fd370\""
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/xml; charset=utf-8
147
+ x-runtime:
148
+ - "23"
149
+ date:
150
+ - Tue, 19 Oct 2010 04:07:51 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "454"
155
+ set-cookie:
156
+ - _recurly_session=4db1d9d57612e3ce60b483255597056c; domain=.recurly.com; path=/; Secure; HttpOnly
157
+ cache-control:
158
+ - private, max-age=0, must-revalidate
159
+ body: |
160
+ <?xml version="1.0" encoding="UTF-8"?>
161
+ <credit type="credit">
162
+ <id>a68efb078adc4b91af0b0d7b0c743d27</id>
163
+ <account_code>credit-lookup-1287460732</account_code>
164
+ <amount_in_cents type="integer">-1315</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:07:50Z</start_date>
166
+ <end_date nil="true" type="datetime"></end_date>
167
+ <description>free moniez 4 u</description>
168
+ <created_at type="datetime">2010-10-19T04:07:50Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"