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,221 @@
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>delete-uninvoiced-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/delete-uninvoiced-1287461340
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "610"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:09:17 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "589"
44
+ set-cookie:
45
+ - account_credentials=7abf468ba98a9014901a3a27318d6fc97febc7582eafb50d2e64ba51c873f54daf263d9b1361ef1037f15d43c933a379f2df42a35db3044bff3e4868cec08bc1%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=3208ea0a1eb7bca55d68740388e5139a; 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>delete-uninvoiced-1287461340</id>
54
+ <account_code>delete-uninvoiced-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>316eb231724241c9bfe2431c688b8e76</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:09:17Z</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/delete-uninvoiced-1287461340/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
+ - "46"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:09:17 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "458"
105
+ set-cookie:
106
+ - _recurly_session=34277acdd440dec82566ed62296dedd1; 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>c1c4f0966ef74945a72410cdd02dc59f</id>
113
+ <account_code>delete-uninvoiced-1287461340</account_code>
114
+ <amount_in_cents type="integer">-1315</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:09:17Z</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:09:17Z</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/delete-uninvoiced-1287461340/credits/c1c4f0966ef74945a72410cdd02dc59f.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
+ - "\"a9a8c9065a60e6c7c55e3fdf3a7c5ec6\""
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/xml; charset=utf-8
147
+ x-runtime:
148
+ - "15"
149
+ date:
150
+ - Tue, 19 Oct 2010 04:09:18 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "458"
155
+ set-cookie:
156
+ - _recurly_session=aa51c0dbb90c664c6080903cbcc82a80; 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>c1c4f0966ef74945a72410cdd02dc59f</id>
163
+ <account_code>delete-uninvoiced-1287461340</account_code>
164
+ <amount_in_cents type="integer">-1315</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:09:17Z</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:09:17Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"
172
+ - !ruby/struct:VCR::HTTPInteraction
173
+ request: !ruby/struct:VCR::Request
174
+ method: :get
175
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461340/credits/c1c4f0966ef74945a72410cdd02dc59f.xml
176
+ body:
177
+ headers:
178
+ accept:
179
+ - application/xml
180
+ connection:
181
+ - close
182
+ authorization:
183
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
184
+ response: !ruby/struct:VCR::Response
185
+ status: !ruby/struct:VCR::ResponseStatus
186
+ code: 200
187
+ message: OK
188
+ headers:
189
+ x-ua-compatible:
190
+ - IE=Edge
191
+ etag:
192
+ - "\"a9a8c9065a60e6c7c55e3fdf3a7c5ec6\""
193
+ connection:
194
+ - close
195
+ content-type:
196
+ - application/xml; charset=utf-8
197
+ x-runtime:
198
+ - "22"
199
+ date:
200
+ - Tue, 19 Oct 2010 04:09:18 GMT
201
+ server:
202
+ - nginx/0.7.65
203
+ content-length:
204
+ - "458"
205
+ set-cookie:
206
+ - _recurly_session=67f0f434d76d6068a6e4ee65e3e76d77; domain=.recurly.com; path=/; Secure; HttpOnly
207
+ cache-control:
208
+ - private, max-age=0, must-revalidate
209
+ body: |
210
+ <?xml version="1.0" encoding="UTF-8"?>
211
+ <credit type="credit">
212
+ <id>c1c4f0966ef74945a72410cdd02dc59f</id>
213
+ <account_code>delete-uninvoiced-1287461340</account_code>
214
+ <amount_in_cents type="integer">-1315</amount_in_cents>
215
+ <start_date type="datetime">2010-10-19T04:09:17Z</start_date>
216
+ <end_date nil="true" type="datetime"></end_date>
217
+ <description>free moniez 4 u</description>
218
+ <created_at type="datetime">2010-10-19T04:09:17Z</created_at>
219
+ </credit>
220
+
221
+ http_version: "1.1"
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "608"
37
+ - "585"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:46 GMT
39
+ - Tue, 19 Oct 2010 03:19:40 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "577"
44
44
  set-cookie:
45
- - account_credentials=f6f035cd5aca0df879ff9886bf09371bb3d938fd73e139dd513de2a723324571efd236945d343ce132a7ff47acf4d71fe696af4f2251fbbd66a1df0e2432b0a8%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=a2d043afd2e140747631e37d49b81bfd196034f87886e22d897ff03839da0ee3c16eb9d0a0ae21f9387c31a633d4d944deda7518d505fa24b07b12aeb85761e1%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=4d7c29c741ef5b384d5906b986e105fa; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=c7287fdcc4287beb22cd18cc9b4565ad; 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>8ce835fd04654b36914f365b094e9e4f</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:46Z</created_at>
62
+ <hosted_login_token>871f4ad62ffd42e5bb11e641c028620b</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:39Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -95,27 +95,27 @@
95
95
  content-type:
96
96
  - application/xml; charset=utf-8
97
97
  x-runtime:
98
- - "49"
98
+ - "211"
99
99
  date:
100
- - Mon, 18 Oct 2010 22:05:47 GMT
100
+ - Tue, 19 Oct 2010 03:19:40 GMT
101
101
  server:
102
102
  - nginx/0.7.65
103
103
  content-length:
104
104
  - "439"
105
105
  set-cookie:
106
- - _recurly_session=c73f5d3efa89ff7e5e1978e3a0f4d32b; domain=.recurly.com; path=/; Secure; HttpOnly
106
+ - _recurly_session=183f9d490bb9ae6529f8261709b0ac25; 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>c615deeee3e049bd91177d87b2b5a0fc</id>
112
+ <id>14b63c6353354f979456380bd2432e48</id>
113
113
  <account_code>credit-list-1286681343</account_code>
114
114
  <amount_in_cents type="integer">-100</amount_in_cents>
115
- <start_date type="datetime">2010-10-18T22:05:47Z</start_date>
115
+ <start_date type="datetime">2010-10-19T03:19:40Z</start_date>
116
116
  <end_date nil="true" type="datetime"></end_date>
117
117
  <description>one</description>
118
- <created_at type="datetime">2010-10-18T22:05:47Z</created_at>
118
+ <created_at type="datetime">2010-10-19T03:19:40Z</created_at>
119
119
  </credit>
120
120
 
121
121
  http_version: "1.1"
@@ -149,27 +149,27 @@
149
149
  content-type:
150
150
  - application/xml; charset=utf-8
151
151
  x-runtime:
152
- - "45"
152
+ - "65"
153
153
  date:
154
- - Mon, 18 Oct 2010 22:05:48 GMT
154
+ - Tue, 19 Oct 2010 03:19:41 GMT
155
155
  server:
156
156
  - nginx/0.7.65
157
157
  content-length:
158
158
  - "439"
159
159
  set-cookie:
160
- - _recurly_session=055da9784d48c59a07e807dfbd591ee9; domain=.recurly.com; path=/; Secure; HttpOnly
160
+ - _recurly_session=88a391c9ceee97782cdb06a89830005e; domain=.recurly.com; path=/; Secure; HttpOnly
161
161
  cache-control:
162
162
  - no-cache
163
163
  body: |
164
164
  <?xml version="1.0" encoding="UTF-8"?>
165
165
  <credit type="credit">
166
- <id>19bc46dc534942528390c1583654b846</id>
166
+ <id>1258d569dfd94b3aa88b456c40cadfbd</id>
167
167
  <account_code>credit-list-1286681343</account_code>
168
168
  <amount_in_cents type="integer">-200</amount_in_cents>
169
- <start_date type="datetime">2010-10-18T22:05:47Z</start_date>
169
+ <start_date type="datetime">2010-10-19T03:19:41Z</start_date>
170
170
  <end_date nil="true" type="datetime"></end_date>
171
171
  <description>two</description>
172
- <created_at type="datetime">2010-10-18T22:05:47Z</created_at>
172
+ <created_at type="datetime">2010-10-19T03:19:41Z</created_at>
173
173
  </credit>
174
174
 
175
175
  http_version: "1.1"
@@ -203,27 +203,27 @@
203
203
  content-type:
204
204
  - application/xml; charset=utf-8
205
205
  x-runtime:
206
- - "96"
206
+ - "46"
207
207
  date:
208
- - Mon, 18 Oct 2010 22:05:48 GMT
208
+ - Tue, 19 Oct 2010 03:19:42 GMT
209
209
  server:
210
210
  - nginx/0.7.65
211
211
  content-length:
212
212
  - "441"
213
213
  set-cookie:
214
- - _recurly_session=adbc7854612e508a681dca1987e784d6; domain=.recurly.com; path=/; Secure; HttpOnly
214
+ - _recurly_session=ddfd4d7f7e9c8cea5e1150e5646ac2e9; domain=.recurly.com; path=/; Secure; HttpOnly
215
215
  cache-control:
216
216
  - no-cache
217
217
  body: |
218
218
  <?xml version="1.0" encoding="UTF-8"?>
219
219
  <credit type="credit">
220
- <id>255c41da111440f4b6373d1da9357ad8</id>
220
+ <id>691c857802f54baa806e836bef4b68f0</id>
221
221
  <account_code>credit-list-1286681343</account_code>
222
222
  <amount_in_cents type="integer">-300</amount_in_cents>
223
- <start_date type="datetime">2010-10-18T22:05:48Z</start_date>
223
+ <start_date type="datetime">2010-10-19T03:19:42Z</start_date>
224
224
  <end_date nil="true" type="datetime"></end_date>
225
225
  <description>three</description>
226
- <created_at type="datetime">2010-10-18T22:05:48Z</created_at>
226
+ <created_at type="datetime">2010-10-19T03:19:42Z</created_at>
227
227
  </credit>
228
228
 
229
229
  http_version: "1.1"
@@ -247,7 +247,7 @@
247
247
  x-ua-compatible:
248
248
  - IE=Edge
249
249
  etag:
250
- - "\"87bf2f6081266b2f4d33dfb4dd6bbc5e\""
250
+ - "\"d9ae445cce0291a66a79004263bb5cdd\""
251
251
  connection:
252
252
  - close
253
253
  content-type:
@@ -255,44 +255,44 @@
255
255
  x-runtime:
256
256
  - "19"
257
257
  date:
258
- - Mon, 18 Oct 2010 22:05:49 GMT
258
+ - Tue, 19 Oct 2010 03:19:42 GMT
259
259
  server:
260
260
  - nginx/0.7.65
261
261
  content-length:
262
262
  - "1329"
263
263
  set-cookie:
264
- - _recurly_session=d8ab502e86659ea6a0990ca60c10b78e; domain=.recurly.com; path=/; Secure; HttpOnly
264
+ - _recurly_session=84bafcd782e39cd95954bd0281f26313; domain=.recurly.com; path=/; Secure; HttpOnly
265
265
  cache-control:
266
266
  - private, max-age=0, must-revalidate
267
267
  body: |
268
268
  <?xml version="1.0" encoding="UTF-8"?>
269
269
  <credits type="array">
270
270
  <credit type="credit">
271
- <id>255c41da111440f4b6373d1da9357ad8</id>
271
+ <id>691c857802f54baa806e836bef4b68f0</id>
272
272
  <account_code>credit-list-1286681343</account_code>
273
273
  <amount_in_cents type="integer">-300</amount_in_cents>
274
- <start_date type="datetime">2010-10-18T22:05:48Z</start_date>
274
+ <start_date type="datetime">2010-10-19T03:19:42Z</start_date>
275
275
  <end_date nil="true" type="datetime"></end_date>
276
276
  <description>three</description>
277
- <created_at type="datetime">2010-10-18T22:05:48Z</created_at>
277
+ <created_at type="datetime">2010-10-19T03:19:42Z</created_at>
278
278
  </credit>
279
279
  <credit type="credit">
280
- <id>19bc46dc534942528390c1583654b846</id>
280
+ <id>1258d569dfd94b3aa88b456c40cadfbd</id>
281
281
  <account_code>credit-list-1286681343</account_code>
282
282
  <amount_in_cents type="integer">-200</amount_in_cents>
283
- <start_date type="datetime">2010-10-18T22:05:47Z</start_date>
283
+ <start_date type="datetime">2010-10-19T03:19:41Z</start_date>
284
284
  <end_date nil="true" type="datetime"></end_date>
285
285
  <description>two</description>
286
- <created_at type="datetime">2010-10-18T22:05:47Z</created_at>
286
+ <created_at type="datetime">2010-10-19T03:19:41Z</created_at>
287
287
  </credit>
288
288
  <credit type="credit">
289
- <id>c615deeee3e049bd91177d87b2b5a0fc</id>
289
+ <id>14b63c6353354f979456380bd2432e48</id>
290
290
  <account_code>credit-list-1286681343</account_code>
291
291
  <amount_in_cents type="integer">-100</amount_in_cents>
292
- <start_date type="datetime">2010-10-18T22:05:47Z</start_date>
292
+ <start_date type="datetime">2010-10-19T03:19:40Z</start_date>
293
293
  <end_date nil="true" type="datetime"></end_date>
294
294
  <description>one</description>
295
- <created_at type="datetime">2010-10-18T22:05:47Z</created_at>
295
+ <created_at type="datetime">2010-10-19T03:19:40Z</created_at>
296
296
  </credit>
297
297
  </credits>
298
298
 
@@ -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-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-list-1287460732
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "743"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:07:45 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "577"
44
+ set-cookie:
45
+ - account_credentials=e06fa1b6016393a5c8adb87e2722e112d75ce27c680afba8245f2ec2201ba38408e95a63893e7a75698bf0650a1ba3083e14ef4a9b7e146915f5db1e1b326610%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=53ed27f30159f8383b1cb2f4e1bdaec4; 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-1287460732</id>
54
+ <account_code>credit-list-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>016a2a9c43bd4ecdbcd5330791b191c2</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:07:45Z</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-1287460732/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
+ - "66"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:07:46 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "439"
105
+ set-cookie:
106
+ - _recurly_session=18f503d2847e366b90438af5da6c0966; 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>c19519f14c0740e194d97e5e34efb393</id>
113
+ <account_code>credit-list-1287460732</account_code>
114
+ <amount_in_cents type="integer">-100</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:07:46Z</start_date>
116
+ <end_date nil="true" type="datetime"></end_date>
117
+ <description>one</description>
118
+ <created_at type="datetime">2010-10-19T04:07:46Z</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-1287460732/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
+ - "56"
153
+ date:
154
+ - Tue, 19 Oct 2010 04:07:46 GMT
155
+ server:
156
+ - nginx/0.7.65
157
+ content-length:
158
+ - "439"
159
+ set-cookie:
160
+ - _recurly_session=d348cff41a77ea635c04f3f2ca22663f; 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>8d737f967ada4a2b8a70b23276a4f11b</id>
167
+ <account_code>credit-list-1287460732</account_code>
168
+ <amount_in_cents type="integer">-200</amount_in_cents>
169
+ <start_date type="datetime">2010-10-19T04:07:46Z</start_date>
170
+ <end_date nil="true" type="datetime"></end_date>
171
+ <description>two</description>
172
+ <created_at type="datetime">2010-10-19T04:07:46Z</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-1287460732/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
+ - "45"
207
+ date:
208
+ - Tue, 19 Oct 2010 04:07:47 GMT
209
+ server:
210
+ - nginx/0.7.65
211
+ content-length:
212
+ - "441"
213
+ set-cookie:
214
+ - _recurly_session=c05e3427651332b58f8e06e2b430160b; 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>5192e0f78c4e44f5bf16787e115ff6cb</id>
221
+ <account_code>credit-list-1287460732</account_code>
222
+ <amount_in_cents type="integer">-300</amount_in_cents>
223
+ <start_date type="datetime">2010-10-19T04:07:47Z</start_date>
224
+ <end_date nil="true" type="datetime"></end_date>
225
+ <description>three</description>
226
+ <created_at type="datetime">2010-10-19T04:07:47Z</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-1287460732/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
+ - "\"7ec4c3cae5f883d02e61c91125ed0d5f\""
251
+ connection:
252
+ - close
253
+ content-type:
254
+ - application/xml; charset=utf-8
255
+ x-runtime:
256
+ - "27"
257
+ date:
258
+ - Tue, 19 Oct 2010 04:07:48 GMT
259
+ server:
260
+ - nginx/0.7.65
261
+ content-length:
262
+ - "1329"
263
+ set-cookie:
264
+ - _recurly_session=dab1680d43ef97d4e375b34f43914a3f; 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>5192e0f78c4e44f5bf16787e115ff6cb</id>
272
+ <account_code>credit-list-1287460732</account_code>
273
+ <amount_in_cents type="integer">-300</amount_in_cents>
274
+ <start_date type="datetime">2010-10-19T04:07:47Z</start_date>
275
+ <end_date nil="true" type="datetime"></end_date>
276
+ <description>three</description>
277
+ <created_at type="datetime">2010-10-19T04:07:47Z</created_at>
278
+ </credit>
279
+ <credit type="credit">
280
+ <id>8d737f967ada4a2b8a70b23276a4f11b</id>
281
+ <account_code>credit-list-1287460732</account_code>
282
+ <amount_in_cents type="integer">-200</amount_in_cents>
283
+ <start_date type="datetime">2010-10-19T04:07:46Z</start_date>
284
+ <end_date nil="true" type="datetime"></end_date>
285
+ <description>two</description>
286
+ <created_at type="datetime">2010-10-19T04:07:46Z</created_at>
287
+ </credit>
288
+ <credit type="credit">
289
+ <id>c19519f14c0740e194d97e5e34efb393</id>
290
+ <account_code>credit-list-1287460732</account_code>
291
+ <amount_in_cents type="integer">-100</amount_in_cents>
292
+ <start_date type="datetime">2010-10-19T04:07:46Z</start_date>
293
+ <end_date nil="true" type="datetime"></end_date>
294
+ <description>one</description>
295
+ <created_at type="datetime">2010-10-19T04:07:46Z</created_at>
296
+ </credit>
297
+ </credits>
298
+
299
+ http_version: "1.1"