recurly 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly.rb +8 -0
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/rails3/railtie.rb +9 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +29 -1
- data/spec/integration/add_on_spec.rb +84 -0
- data/spec/vcr/account/accept-language-account/1294473653.yml +68 -0
- data/spec/vcr/account/accept-language-account/1294473761.yml +68 -0
- data/spec/vcr/account/accept-language/1294473117.yml +167 -0
- data/spec/vcr/account/close/{1288381765.yml → 1294473761.yml} +26 -25
- data/spec/vcr/account/create-blank/{1288381765.yml → 1294473761.yml} +5 -4
- data/spec/vcr/account/create-duplicate/{1288381765.yml → 1294473761.yml} +13 -11
- data/spec/vcr/account/create-min/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/create/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/find/{1288381765.yml → 1294473761.yml} +25 -24
- data/spec/vcr/account/list/{1288381765.yml → 1294473761.yml} +328 -287
- data/spec/vcr/account/update/{1288381765.yml → 1294473761.yml} +47 -45
- data/spec/vcr/billing/create/1286682213.yml +28 -27
- data/spec/vcr/billing/destroy/1286682213.yml +42 -41
- data/spec/vcr/billing/find/1286682213.yml +38 -37
- data/spec/vcr/billing/update/1286682213.yml +40 -39
- data/spec/vcr/charge/create/1287465632.yml +36 -35
- data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +36 -35
- data/spec/vcr/charge/list-all/1287465632.yml +43 -42
- data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -69
- data/spec/vcr/charge/list-pending/1287465632.yml +43 -42
- data/spec/vcr/charge/lookup/1287465632.yml +22 -21
- data/spec/vcr/credit/create/1287461400.yml +23 -22
- data/spec/vcr/credit/delete/1287461400.yml +33 -32
- data/spec/vcr/credit/list/1287461400.yml +43 -42
- data/spec/vcr/credit/lookup/1287461400.yml +24 -23
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +23 -22
- data/spec/vcr/invoice/create/1287167121.yml +48 -47
- data/spec/vcr/invoice/list/1287167121.yml +67 -66
- data/spec/vcr/invoice/lookup/1287167121.yml +50 -49
- data/spec/vcr/plan/all.yml +29 -17
- data/spec/vcr/plan/delete/1286677585.yml +21 -21
- data/spec/vcr/plan/find.yml +42 -18
- data/spec/vcr/plan/update.yml +17 -17
- data/spec/vcr/subscription/addons/add/1292420980.yml +479 -0
- data/spec/vcr/subscription/addons/create/1292420980.yml +318 -0
- data/spec/vcr/subscription/addons/remove/1292420980.yml +448 -0
- data/spec/vcr/subscription/cancel-with-code/1287455769.yml +93 -69
- data/spec/vcr/subscription/cancel/1287455769.yml +80 -58
- data/spec/vcr/subscription/change1/1287455769.yml +77 -55
- data/spec/vcr/subscription/change2/1287455769.yml +77 -55
- data/spec/vcr/subscription/create/1287455769.yml +43 -27
- data/spec/vcr/subscription/find/1287455769.yml +54 -36
- data/spec/vcr/subscription/reactivate/1287455769.yml +83 -61
- data/spec/vcr/subscription/refund-full/1287455769.yml +69 -51
- data/spec/vcr/subscription/refund-none/1287455769.yml +70 -52
- data/spec/vcr/subscription/refund-partial/1287455769.yml +70 -52
- data/spec/vcr/transaction/all/1289558212.yml +46 -46
- data/spec/vcr/transaction/create-no-account/1289558212.yml +11 -11
- data/spec/vcr/transaction/create-with-account/1289558212.yml +27 -26
- data/spec/vcr/transaction/list-filled/1289558212.yml +54 -53
- data/spec/vcr/transaction/list-initial/1289558212.yml +27 -26
- data/spec/vcr/transaction/lookup/1289558212.yml +64 -63
- data/spec/vcr/transaction/refund/1289558212.yml +35 -34
- data/spec/vcr/transaction/void/1289558212.yml +71 -70
- metadata +34 -20
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>delete-uninvoiced-1287461400</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "344"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:04:46 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "589"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=9bf1d45dbd536d359ced28ad8f33973fed08b4ab6b4123be9794af295b9070262c8a7a5e1b85f185530dce28758b7714bfc02d6f29fe7b015f9f5a50a0c13642%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=9109c0e57c790cc1f40300b06077101d; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>fecac0565df54be480040f05c2d64e2a</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:04:46Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -95,35 +96,35 @@
|
|
95
96
|
content-type:
|
96
97
|
- application/xml; charset=utf-8
|
97
98
|
x-runtime:
|
98
|
-
- "
|
99
|
+
- "55"
|
99
100
|
date:
|
100
|
-
-
|
101
|
+
- Sat, 08 Jan 2011 08:04:47 GMT
|
101
102
|
server:
|
102
|
-
- nginx/0.
|
103
|
+
- nginx/0.8.53
|
103
104
|
content-length:
|
104
105
|
- "520"
|
105
106
|
set-cookie:
|
106
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=3129b892daa88a2d6946f17492d0d71e; domain=.recurly.com; path=/; secure; HttpOnly
|
107
108
|
cache-control:
|
108
109
|
- no-cache
|
109
110
|
body: |
|
110
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
111
112
|
<credit type="credit">
|
112
|
-
<id>
|
113
|
+
<id>3c24941a62494e509d4b7e30c704cde4</id>
|
113
114
|
<account_code>delete-uninvoiced-1287461400</account_code>
|
114
115
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
115
|
-
<start_date type="datetime">
|
116
|
+
<start_date type="datetime">2011-01-08T08:04:46Z</start_date>
|
116
117
|
<end_date nil="true" type="datetime"></end_date>
|
117
118
|
<invoice_number nil="true" type="integer"></invoice_number>
|
118
119
|
<description>free moniez 4 u</description>
|
119
|
-
<created_at type="datetime">
|
120
|
+
<created_at type="datetime">2011-01-08T08:04:47Z</created_at>
|
120
121
|
</credit>
|
121
122
|
|
122
123
|
http_version: "1.1"
|
123
124
|
- !ruby/struct:VCR::HTTPInteraction
|
124
125
|
request: !ruby/struct:VCR::Request
|
125
126
|
method: :get
|
126
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/
|
127
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
127
128
|
body:
|
128
129
|
headers:
|
129
130
|
accept:
|
@@ -140,41 +141,41 @@
|
|
140
141
|
x-ua-compatible:
|
141
142
|
- IE=Edge
|
142
143
|
etag:
|
143
|
-
- "\"
|
144
|
+
- "\"29d8fc3265522ae3bccb586aabef7e1a\""
|
144
145
|
connection:
|
145
146
|
- close
|
146
147
|
content-type:
|
147
148
|
- application/xml; charset=utf-8
|
148
149
|
x-runtime:
|
149
|
-
- "
|
150
|
+
- "16"
|
150
151
|
date:
|
151
|
-
-
|
152
|
+
- Sat, 08 Jan 2011 08:04:47 GMT
|
152
153
|
server:
|
153
|
-
- nginx/0.
|
154
|
+
- nginx/0.8.53
|
154
155
|
content-length:
|
155
156
|
- "520"
|
156
157
|
set-cookie:
|
157
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=3a6bdbea93af386430eb614a4b297f4f; domain=.recurly.com; path=/; secure; HttpOnly
|
158
159
|
cache-control:
|
159
160
|
- private, max-age=0, must-revalidate
|
160
161
|
body: |
|
161
162
|
<?xml version="1.0" encoding="UTF-8"?>
|
162
163
|
<credit type="credit">
|
163
|
-
<id>
|
164
|
+
<id>3c24941a62494e509d4b7e30c704cde4</id>
|
164
165
|
<account_code>delete-uninvoiced-1287461400</account_code>
|
165
166
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
166
|
-
<start_date type="datetime">
|
167
|
+
<start_date type="datetime">2011-01-08T08:04:46Z</start_date>
|
167
168
|
<end_date nil="true" type="datetime"></end_date>
|
168
169
|
<invoice_number nil="true" type="integer"></invoice_number>
|
169
170
|
<description>free moniez 4 u</description>
|
170
|
-
<created_at type="datetime">
|
171
|
+
<created_at type="datetime">2011-01-08T08:04:47Z</created_at>
|
171
172
|
</credit>
|
172
173
|
|
173
174
|
http_version: "1.1"
|
174
175
|
- !ruby/struct:VCR::HTTPInteraction
|
175
176
|
request: !ruby/struct:VCR::Request
|
176
177
|
method: :delete
|
177
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/
|
178
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
178
179
|
body:
|
179
180
|
headers:
|
180
181
|
accept:
|
@@ -195,15 +196,15 @@
|
|
195
196
|
content-type:
|
196
197
|
- application/xml; charset=utf-8
|
197
198
|
x-runtime:
|
198
|
-
- "
|
199
|
+
- "44"
|
199
200
|
date:
|
200
|
-
-
|
201
|
+
- Sat, 08 Jan 2011 08:04:48 GMT
|
201
202
|
server:
|
202
|
-
- nginx/0.
|
203
|
+
- nginx/0.8.53
|
203
204
|
content-length:
|
204
205
|
- "1"
|
205
206
|
set-cookie:
|
206
|
-
- _recurly_session=
|
207
|
+
- _recurly_session=55a412e6a5d97e76edfde22109a9fe90; domain=.recurly.com; path=/; secure; HttpOnly
|
207
208
|
cache-control:
|
208
209
|
- no-cache
|
209
210
|
body: " "
|
@@ -211,7 +212,7 @@
|
|
211
212
|
- !ruby/struct:VCR::HTTPInteraction
|
212
213
|
request: !ruby/struct:VCR::Request
|
213
214
|
method: :get
|
214
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/
|
215
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
215
216
|
body:
|
216
217
|
headers:
|
217
218
|
accept:
|
@@ -230,13 +231,13 @@
|
|
230
231
|
content-type:
|
231
232
|
- application/xml; charset=utf-8
|
232
233
|
date:
|
233
|
-
-
|
234
|
+
- Sat, 08 Jan 2011 08:04:49 GMT
|
234
235
|
server:
|
235
|
-
- nginx/0.
|
236
|
+
- nginx/0.8.53
|
236
237
|
content-length:
|
237
238
|
- "92"
|
238
239
|
set-cookie:
|
239
|
-
- _recurly_session=
|
240
|
+
- _recurly_session=351fce6a28803deb6485808dfd1ee3f2; domain=.recurly.com; path=/; secure; HttpOnly
|
240
241
|
cache-control:
|
241
242
|
- no-cache
|
242
243
|
body: |
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>credit-list-1287461400</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "342"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:04:35 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "577"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=1f89f3b71a0f7007eae5f2c36d3e091f00213270fdba9c6b6ff1cc41ace6308f5c9c8db5fbe768d23443af670512df217db5ea8c53a08ecf5ac15993d12845f7%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=8a120288be8360aaa878c62b1f0e28f1; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>d8f03f07b8f04d0f993ec7360830e4c8</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -95,28 +96,28 @@
|
|
95
96
|
content-type:
|
96
97
|
- application/xml; charset=utf-8
|
97
98
|
x-runtime:
|
98
|
-
- "
|
99
|
+
- "44"
|
99
100
|
date:
|
100
|
-
-
|
101
|
+
- Sat, 08 Jan 2011 08:04:35 GMT
|
101
102
|
server:
|
102
|
-
- nginx/0.
|
103
|
+
- nginx/0.8.53
|
103
104
|
content-length:
|
104
105
|
- "501"
|
105
106
|
set-cookie:
|
106
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=6e2ead2a30100826fc963de9efafd387; domain=.recurly.com; path=/; secure; HttpOnly
|
107
108
|
cache-control:
|
108
109
|
- no-cache
|
109
110
|
body: |
|
110
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
111
112
|
<credit type="credit">
|
112
|
-
<id>
|
113
|
+
<id>7e87e2076ab84e4cbb7e0aebb52a59c8</id>
|
113
114
|
<account_code>credit-list-1287461400</account_code>
|
114
115
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
115
|
-
<start_date type="datetime">
|
116
|
+
<start_date type="datetime">2011-01-08T08:04:35Z</start_date>
|
116
117
|
<end_date nil="true" type="datetime"></end_date>
|
117
118
|
<invoice_number nil="true" type="integer"></invoice_number>
|
118
119
|
<description>one</description>
|
119
|
-
<created_at type="datetime">
|
120
|
+
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
120
121
|
</credit>
|
121
122
|
|
122
123
|
http_version: "1.1"
|
@@ -150,28 +151,28 @@
|
|
150
151
|
content-type:
|
151
152
|
- application/xml; charset=utf-8
|
152
153
|
x-runtime:
|
153
|
-
- "
|
154
|
+
- "129"
|
154
155
|
date:
|
155
|
-
-
|
156
|
+
- Sat, 08 Jan 2011 08:04:37 GMT
|
156
157
|
server:
|
157
|
-
- nginx/0.
|
158
|
+
- nginx/0.8.53
|
158
159
|
content-length:
|
159
160
|
- "501"
|
160
161
|
set-cookie:
|
161
|
-
- _recurly_session=
|
162
|
+
- _recurly_session=0516d09a6a1c08527209a20f6c558334; domain=.recurly.com; path=/; secure; HttpOnly
|
162
163
|
cache-control:
|
163
164
|
- no-cache
|
164
165
|
body: |
|
165
166
|
<?xml version="1.0" encoding="UTF-8"?>
|
166
167
|
<credit type="credit">
|
167
|
-
<id>
|
168
|
+
<id>1a3838eab8674681bc9fb6f67358aae9</id>
|
168
169
|
<account_code>credit-list-1287461400</account_code>
|
169
170
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
170
|
-
<start_date type="datetime">
|
171
|
+
<start_date type="datetime">2011-01-08T08:04:37Z</start_date>
|
171
172
|
<end_date nil="true" type="datetime"></end_date>
|
172
173
|
<invoice_number nil="true" type="integer"></invoice_number>
|
173
174
|
<description>two</description>
|
174
|
-
<created_at type="datetime">
|
175
|
+
<created_at type="datetime">2011-01-08T08:04:37Z</created_at>
|
175
176
|
</credit>
|
176
177
|
|
177
178
|
http_version: "1.1"
|
@@ -205,28 +206,28 @@
|
|
205
206
|
content-type:
|
206
207
|
- application/xml; charset=utf-8
|
207
208
|
x-runtime:
|
208
|
-
- "
|
209
|
+
- "44"
|
209
210
|
date:
|
210
|
-
-
|
211
|
+
- Sat, 08 Jan 2011 08:04:38 GMT
|
211
212
|
server:
|
212
|
-
- nginx/0.
|
213
|
+
- nginx/0.8.53
|
213
214
|
content-length:
|
214
215
|
- "503"
|
215
216
|
set-cookie:
|
216
|
-
- _recurly_session=
|
217
|
+
- _recurly_session=b25393640c77870ed295bae16e35d167; domain=.recurly.com; path=/; secure; HttpOnly
|
217
218
|
cache-control:
|
218
219
|
- no-cache
|
219
220
|
body: |
|
220
221
|
<?xml version="1.0" encoding="UTF-8"?>
|
221
222
|
<credit type="credit">
|
222
|
-
<id>
|
223
|
+
<id>e2534f5aeb1249b6bbc96543ab1b3d70</id>
|
223
224
|
<account_code>credit-list-1287461400</account_code>
|
224
225
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
225
|
-
<start_date type="datetime">
|
226
|
+
<start_date type="datetime">2011-01-08T08:04:38Z</start_date>
|
226
227
|
<end_date nil="true" type="datetime"></end_date>
|
227
228
|
<invoice_number nil="true" type="integer"></invoice_number>
|
228
229
|
<description>three</description>
|
229
|
-
<created_at type="datetime">
|
230
|
+
<created_at type="datetime">2011-01-08T08:04:38Z</created_at>
|
230
231
|
</credit>
|
231
232
|
|
232
233
|
http_version: "1.1"
|
@@ -250,55 +251,55 @@
|
|
250
251
|
x-ua-compatible:
|
251
252
|
- IE=Edge
|
252
253
|
etag:
|
253
|
-
- "\"
|
254
|
+
- "\"bf5514131dbf0895296edfcceb6f5aef\""
|
254
255
|
connection:
|
255
256
|
- close
|
256
257
|
content-type:
|
257
258
|
- application/xml; charset=utf-8
|
258
259
|
x-runtime:
|
259
|
-
- "
|
260
|
+
- "25"
|
260
261
|
date:
|
261
|
-
-
|
262
|
+
- Sat, 08 Jan 2011 08:04:39 GMT
|
262
263
|
server:
|
263
|
-
- nginx/0.
|
264
|
+
- nginx/0.8.53
|
264
265
|
content-length:
|
265
266
|
- "1521"
|
266
267
|
set-cookie:
|
267
|
-
- _recurly_session=
|
268
|
+
- _recurly_session=e799e645e5939da4ff9dd9a1c7e4ca1a; domain=.recurly.com; path=/; secure; HttpOnly
|
268
269
|
cache-control:
|
269
270
|
- private, max-age=0, must-revalidate
|
270
271
|
body: |
|
271
272
|
<?xml version="1.0" encoding="UTF-8"?>
|
272
273
|
<credits type="array">
|
273
274
|
<credit type="credit">
|
274
|
-
<id>
|
275
|
+
<id>e2534f5aeb1249b6bbc96543ab1b3d70</id>
|
275
276
|
<account_code>credit-list-1287461400</account_code>
|
276
277
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
277
|
-
<start_date type="datetime">
|
278
|
+
<start_date type="datetime">2011-01-08T08:04:38Z</start_date>
|
278
279
|
<end_date nil="true" type="datetime"></end_date>
|
279
280
|
<invoice_number nil="true" type="integer"></invoice_number>
|
280
281
|
<description>three</description>
|
281
|
-
<created_at type="datetime">
|
282
|
+
<created_at type="datetime">2011-01-08T08:04:38Z</created_at>
|
282
283
|
</credit>
|
283
284
|
<credit type="credit">
|
284
|
-
<id>
|
285
|
+
<id>1a3838eab8674681bc9fb6f67358aae9</id>
|
285
286
|
<account_code>credit-list-1287461400</account_code>
|
286
287
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
287
|
-
<start_date type="datetime">
|
288
|
+
<start_date type="datetime">2011-01-08T08:04:37Z</start_date>
|
288
289
|
<end_date nil="true" type="datetime"></end_date>
|
289
290
|
<invoice_number nil="true" type="integer"></invoice_number>
|
290
291
|
<description>two</description>
|
291
|
-
<created_at type="datetime">
|
292
|
+
<created_at type="datetime">2011-01-08T08:04:37Z</created_at>
|
292
293
|
</credit>
|
293
294
|
<credit type="credit">
|
294
|
-
<id>
|
295
|
+
<id>7e87e2076ab84e4cbb7e0aebb52a59c8</id>
|
295
296
|
<account_code>credit-list-1287461400</account_code>
|
296
297
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
297
|
-
<start_date type="datetime">
|
298
|
+
<start_date type="datetime">2011-01-08T08:04:35Z</start_date>
|
298
299
|
<end_date nil="true" type="datetime"></end_date>
|
299
300
|
<invoice_number nil="true" type="integer"></invoice_number>
|
300
301
|
<description>one</description>
|
301
|
-
<created_at type="datetime">
|
302
|
+
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
302
303
|
</credit>
|
303
304
|
</credits>
|
304
305
|
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>credit-lookup-1287461400</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "346"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:04:42 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "581"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=985a77c321c49306db3204ee22558e0c741d90793b253384021c784b3bc32961a40cc0b7411df85a671502bfe2b97a89ae983b34da9641de558fb44789d15675%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=cbebc809fe658f9495c462237e895921; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>288979ee8e7c4fbd8f002913a95bb5c6</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:04:42Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -95,35 +96,35 @@
|
|
95
96
|
content-type:
|
96
97
|
- application/xml; charset=utf-8
|
97
98
|
x-runtime:
|
98
|
-
- "
|
99
|
+
- "48"
|
99
100
|
date:
|
100
|
-
-
|
101
|
+
- Sat, 08 Jan 2011 08:04:43 GMT
|
101
102
|
server:
|
102
|
-
- nginx/0.
|
103
|
+
- nginx/0.8.53
|
103
104
|
content-length:
|
104
105
|
- "516"
|
105
106
|
set-cookie:
|
106
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=a17d951527ccb464f1d248a4b55f4ef5; domain=.recurly.com; path=/; secure; HttpOnly
|
107
108
|
cache-control:
|
108
109
|
- no-cache
|
109
110
|
body: |
|
110
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
111
112
|
<credit type="credit">
|
112
|
-
<id>
|
113
|
+
<id>e0af61d919a94fbb81e064fb24225a5c</id>
|
113
114
|
<account_code>credit-lookup-1287461400</account_code>
|
114
115
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
115
|
-
<start_date type="datetime">
|
116
|
+
<start_date type="datetime">2011-01-08T08:04:43Z</start_date>
|
116
117
|
<end_date nil="true" type="datetime"></end_date>
|
117
118
|
<invoice_number nil="true" type="integer"></invoice_number>
|
118
119
|
<description>free moniez 4 u</description>
|
119
|
-
<created_at type="datetime">
|
120
|
+
<created_at type="datetime">2011-01-08T08:04:43Z</created_at>
|
120
121
|
</credit>
|
121
122
|
|
122
123
|
http_version: "1.1"
|
123
124
|
- !ruby/struct:VCR::HTTPInteraction
|
124
125
|
request: !ruby/struct:VCR::Request
|
125
126
|
method: :get
|
126
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits/
|
127
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits/e0af61d919a94fbb81e064fb24225a5c.xml
|
127
128
|
body:
|
128
129
|
headers:
|
129
130
|
accept:
|
@@ -140,34 +141,34 @@
|
|
140
141
|
x-ua-compatible:
|
141
142
|
- IE=Edge
|
142
143
|
etag:
|
143
|
-
- "\"
|
144
|
+
- "\"a76e99a7713b0e11b1cb8024d09ff64e\""
|
144
145
|
connection:
|
145
146
|
- close
|
146
147
|
content-type:
|
147
148
|
- application/xml; charset=utf-8
|
148
149
|
x-runtime:
|
149
|
-
- "
|
150
|
+
- "14"
|
150
151
|
date:
|
151
|
-
-
|
152
|
+
- Sat, 08 Jan 2011 08:04:44 GMT
|
152
153
|
server:
|
153
|
-
- nginx/0.
|
154
|
+
- nginx/0.8.53
|
154
155
|
content-length:
|
155
156
|
- "516"
|
156
157
|
set-cookie:
|
157
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=e33f3d3a3a0b9f41cf875e88010c7b4c; domain=.recurly.com; path=/; secure; HttpOnly
|
158
159
|
cache-control:
|
159
160
|
- private, max-age=0, must-revalidate
|
160
161
|
body: |
|
161
162
|
<?xml version="1.0" encoding="UTF-8"?>
|
162
163
|
<credit type="credit">
|
163
|
-
<id>
|
164
|
+
<id>e0af61d919a94fbb81e064fb24225a5c</id>
|
164
165
|
<account_code>credit-lookup-1287461400</account_code>
|
165
166
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
166
|
-
<start_date type="datetime">
|
167
|
+
<start_date type="datetime">2011-01-08T08:04:43Z</start_date>
|
167
168
|
<end_date nil="true" type="datetime"></end_date>
|
168
169
|
<invoice_number nil="true" type="integer"></invoice_number>
|
169
170
|
<description>free moniez 4 u</description>
|
170
|
-
<created_at type="datetime">
|
171
|
+
<created_at type="datetime">2011-01-08T08:04:43Z</created_at>
|
171
172
|
</credit>
|
172
173
|
|
173
174
|
http_version: "1.1"
|