recurly 0.3.2 → 0.3.3
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/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>invoice-list-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/invoice-list-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "626"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "444"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:58 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "579"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:20:12 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=524dbf37d7a21679f7e9d4ad27d0b9ce181205fcecd7865062eca081aa2d96a2ab0f1ed63109b091ae2e3d56e7d94df9ed4793ba6c04b4b61ddc6fc54f787a30%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=60b45d00477f83e5e427cb3f2cf716fb; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>invoice-list-
|
55
|
-
<account_code>invoice-list-
|
56
|
+
<id>invoice-list-1296674173</id>
|
57
|
+
<account_code>invoice-list-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>0f1c909f94c04a01a3c9ce2edbe18dec</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:20:12Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,64 +71,64 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
|
-
<account-code>invoice-list-1287167121</account-code>
|
80
82
|
<country>US</country>
|
81
83
|
<credit-card>
|
82
|
-
<number>
|
83
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
84
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
85
87
|
<verification-value>123</verification-value>
|
86
88
|
</credit-card>
|
87
|
-
<
|
89
|
+
<account-code>invoice-list-1296674173</account-code>
|
88
90
|
<first-name>Verena</first-name>
|
89
|
-
<
|
91
|
+
<last-name>Test</last-name>
|
90
92
|
</billing-info>
|
91
93
|
|
92
94
|
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
+
content-type:
|
98
|
+
- application/xml
|
93
99
|
accept:
|
94
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
95
103
|
connection:
|
96
104
|
- close
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
authorization:
|
100
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
101
105
|
response: !ruby/struct:VCR::Response
|
102
106
|
status: !ruby/struct:VCR::ResponseStatus
|
103
107
|
code: 200
|
104
|
-
message: OK
|
108
|
+
message: "OK "
|
105
109
|
headers:
|
106
|
-
x-
|
107
|
-
-
|
108
|
-
etag:
|
109
|
-
- "\"f54fef8a3dcb558455678315c0e9d05b\""
|
110
|
-
connection:
|
111
|
-
- close
|
110
|
+
x-runtime:
|
111
|
+
- "1560"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
|
-
|
115
|
-
- "
|
116
|
-
date:
|
117
|
-
- Sat, 08 Jan 2011 08:04:59 GMT
|
118
|
-
server:
|
119
|
-
- nginx/0.8.53
|
120
|
-
content-length:
|
121
|
-
- "636"
|
122
|
-
set-cookie:
|
123
|
-
- _recurly_session=2761de9f24d0751bb4b1f66be734add0; domain=.recurly.com; path=/; secure; HttpOnly
|
114
|
+
etag:
|
115
|
+
- "\"d8eed4f110865c67bc8a74ccdb3594e0\""
|
124
116
|
cache-control:
|
125
117
|
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "638"
|
120
|
+
server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
|
+
date:
|
123
|
+
- Thu, 03 Feb 2011 22:20:16 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
set-cookie:
|
127
|
+
- _recurly_session=9657c43a9744bcf3c488d61d7264f6ec; domain=.recurly.local; path=/; HttpOnly
|
126
128
|
body: |
|
127
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
130
|
<billing_info>
|
129
|
-
<account_code>invoice-list-
|
131
|
+
<account_code>invoice-list-1296674173</account_code>
|
130
132
|
<first_name>Verena</first_name>
|
131
133
|
<last_name>Test</last_name>
|
132
134
|
<address1>123 Test St</address1>
|
@@ -139,19 +141,19 @@
|
|
139
141
|
<vat_number></vat_number>
|
140
142
|
<ip_address></ip_address>
|
141
143
|
<credit_card>
|
142
|
-
<type>
|
143
|
-
<last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<type>visa</type>
|
145
|
+
<last_four>1111</last_four>
|
146
|
+
<month type="integer">2</month>
|
145
147
|
<year type="integer">2012</year>
|
146
148
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:20:16Z</updated_at>
|
148
150
|
</billing_info>
|
149
151
|
|
150
152
|
http_version: "1.1"
|
151
153
|
- !ruby/struct:VCR::HTTPInteraction
|
152
154
|
request: !ruby/struct:VCR::Request
|
153
155
|
method: :post
|
154
|
-
uri:
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/charges.xml
|
155
157
|
body: |
|
156
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
159
|
<charge>
|
@@ -160,97 +162,101 @@
|
|
160
162
|
</charge>
|
161
163
|
|
162
164
|
headers:
|
165
|
+
authorization:
|
166
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
167
|
+
content-type:
|
168
|
+
- application/xml
|
163
169
|
accept:
|
164
170
|
- "*/*"
|
171
|
+
user-agent:
|
172
|
+
- Ruby
|
165
173
|
connection:
|
166
174
|
- close
|
167
|
-
content-type:
|
168
|
-
- application/xml
|
169
|
-
authorization:
|
170
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
171
175
|
response: !ruby/struct:VCR::Response
|
172
176
|
status: !ruby/struct:VCR::ResponseStatus
|
173
177
|
code: 201
|
174
|
-
message: Created
|
178
|
+
message: "Created "
|
175
179
|
headers:
|
176
|
-
|
177
|
-
-
|
180
|
+
cache-control:
|
181
|
+
- no-cache
|
182
|
+
x-runtime:
|
183
|
+
- "434"
|
178
184
|
content-type:
|
179
185
|
- application/xml; charset=utf-8
|
180
|
-
x-runtime:
|
181
|
-
- "48"
|
182
|
-
date:
|
183
|
-
- Sat, 08 Jan 2011 08:05:00 GMT
|
184
|
-
server:
|
185
|
-
- nginx/0.8.53
|
186
186
|
content-length:
|
187
187
|
- "516"
|
188
|
+
server:
|
189
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
190
|
+
date:
|
191
|
+
- Thu, 03 Feb 2011 22:20:18 GMT
|
192
|
+
connection:
|
193
|
+
- close
|
188
194
|
set-cookie:
|
189
|
-
- _recurly_session=
|
190
|
-
cache-control:
|
191
|
-
- no-cache
|
195
|
+
- _recurly_session=1ac581dd18ec152154017c1ea1aacc6a; domain=.recurly.local; path=/; HttpOnly
|
192
196
|
body: |
|
193
197
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
198
|
<charge type="charge">
|
195
|
-
<id>
|
196
|
-
<account_code>invoice-list-
|
199
|
+
<id>6adc381d8c7944a688abb7edf5e4b2af</id>
|
200
|
+
<account_code>invoice-list-1296674173</account_code>
|
197
201
|
<amount_in_cents type="integer">100</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-
|
202
|
+
<start_date type="datetime">2011-02-03T22:20:18Z</start_date>
|
199
203
|
<end_date nil="true" type="datetime"></end_date>
|
200
204
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
205
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-
|
206
|
+
<created_at type="datetime">2011-02-03T22:20:18Z</created_at>
|
203
207
|
</charge>
|
204
208
|
|
205
209
|
http_version: "1.1"
|
206
210
|
- !ruby/struct:VCR::HTTPInteraction
|
207
211
|
request: !ruby/struct:VCR::Request
|
208
212
|
method: :post
|
209
|
-
uri:
|
213
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
|
210
214
|
body: |
|
211
215
|
<?xml version="1.0" encoding="UTF-8"?>
|
212
216
|
<invoice>
|
213
217
|
</invoice>
|
214
218
|
|
215
219
|
headers:
|
220
|
+
authorization:
|
221
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
222
|
+
content-type:
|
223
|
+
- application/xml
|
216
224
|
accept:
|
217
225
|
- "*/*"
|
226
|
+
user-agent:
|
227
|
+
- Ruby
|
218
228
|
connection:
|
219
229
|
- close
|
220
|
-
content-type:
|
221
|
-
- application/xml
|
222
|
-
authorization:
|
223
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
224
230
|
response: !ruby/struct:VCR::Response
|
225
231
|
status: !ruby/struct:VCR::ResponseStatus
|
226
232
|
code: 201
|
227
|
-
message: Created
|
233
|
+
message: "Created "
|
228
234
|
headers:
|
235
|
+
cache-control:
|
236
|
+
- no-cache
|
229
237
|
location:
|
230
|
-
-
|
231
|
-
|
232
|
-
-
|
238
|
+
- http://litle-test.recurly.local:3000/invoices/ea18bb3d1e1241968104da9c4ed1bdbf
|
239
|
+
x-runtime:
|
240
|
+
- "656"
|
233
241
|
content-type:
|
234
242
|
- application/xml; charset=utf-8
|
235
|
-
x-runtime:
|
236
|
-
- "72"
|
237
|
-
date:
|
238
|
-
- Sat, 08 Jan 2011 08:05:01 GMT
|
239
|
-
server:
|
240
|
-
- nginx/0.8.53
|
241
243
|
content-length:
|
242
|
-
- "
|
244
|
+
- "1208"
|
245
|
+
server:
|
246
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
247
|
+
date:
|
248
|
+
- Thu, 03 Feb 2011 22:20:20 GMT
|
249
|
+
connection:
|
250
|
+
- close
|
243
251
|
set-cookie:
|
244
|
-
- _recurly_session=
|
245
|
-
cache-control:
|
246
|
-
- no-cache
|
252
|
+
- _recurly_session=79a3ae12d0952dd9be8a113ee49c684d; domain=.recurly.local; path=/; HttpOnly
|
247
253
|
body: |
|
248
254
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
255
|
<invoice>
|
250
|
-
<id>
|
251
|
-
<account_code>invoice-list-
|
252
|
-
<date type="datetime">2011-
|
253
|
-
<invoice_number type="integer">
|
256
|
+
<id>ea18bb3d1e1241968104da9c4ed1bdbf</id>
|
257
|
+
<account_code>invoice-list-1296674173</account_code>
|
258
|
+
<date type="datetime">2011-02-03T22:20:20Z</date>
|
259
|
+
<invoice_number type="integer">1236</invoice_number>
|
254
260
|
<vat_number></vat_number>
|
255
261
|
<status>open</status>
|
256
262
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
@@ -258,15 +264,17 @@
|
|
258
264
|
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
259
265
|
<paid_in_cents type="integer">0</paid_in_cents>
|
260
266
|
<total_due_in_cents type="integer">100</total_due_in_cents>
|
267
|
+
<discount_in_cents type="integer">0</discount_in_cents>
|
261
268
|
<line_items type="array">
|
262
269
|
<line_item>
|
263
|
-
<id>
|
270
|
+
<id>6adc381d8c7944a688abb7edf5e4b2af</id>
|
264
271
|
<type>charge</type>
|
265
272
|
<amount_in_cents type="integer">100</amount_in_cents>
|
266
|
-
<start_date type="datetime">2011-
|
273
|
+
<start_date type="datetime">2011-02-03T22:20:18Z</start_date>
|
267
274
|
<end_date nil="true" type="datetime"></end_date>
|
268
275
|
<description>charge description</description>
|
269
|
-
<created_at type="datetime">2011-
|
276
|
+
<created_at type="datetime">2011-02-03T22:20:18Z</created_at>
|
277
|
+
<applied_coupon_code></applied_coupon_code>
|
270
278
|
</line_item>
|
271
279
|
</line_items>
|
272
280
|
<payments type="array">
|
@@ -277,7 +285,7 @@
|
|
277
285
|
- !ruby/struct:VCR::HTTPInteraction
|
278
286
|
request: !ruby/struct:VCR::Request
|
279
287
|
method: :post
|
280
|
-
uri:
|
288
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/charges.xml
|
281
289
|
body: |
|
282
290
|
<?xml version="1.0" encoding="UTF-8"?>
|
283
291
|
<charge>
|
@@ -286,97 +294,101 @@
|
|
286
294
|
</charge>
|
287
295
|
|
288
296
|
headers:
|
297
|
+
authorization:
|
298
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
299
|
+
content-type:
|
300
|
+
- application/xml
|
289
301
|
accept:
|
290
302
|
- "*/*"
|
303
|
+
user-agent:
|
304
|
+
- Ruby
|
291
305
|
connection:
|
292
306
|
- close
|
293
|
-
content-type:
|
294
|
-
- application/xml
|
295
|
-
authorization:
|
296
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
297
307
|
response: !ruby/struct:VCR::Response
|
298
308
|
status: !ruby/struct:VCR::ResponseStatus
|
299
309
|
code: 201
|
300
|
-
message: Created
|
310
|
+
message: "Created "
|
301
311
|
headers:
|
302
|
-
|
303
|
-
-
|
312
|
+
cache-control:
|
313
|
+
- no-cache
|
314
|
+
x-runtime:
|
315
|
+
- "442"
|
304
316
|
content-type:
|
305
317
|
- application/xml; charset=utf-8
|
306
|
-
x-runtime:
|
307
|
-
- "136"
|
308
|
-
date:
|
309
|
-
- Sat, 08 Jan 2011 08:05:02 GMT
|
310
|
-
server:
|
311
|
-
- nginx/0.8.53
|
312
318
|
content-length:
|
313
319
|
- "516"
|
320
|
+
server:
|
321
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
322
|
+
date:
|
323
|
+
- Thu, 03 Feb 2011 22:20:23 GMT
|
324
|
+
connection:
|
325
|
+
- close
|
314
326
|
set-cookie:
|
315
|
-
- _recurly_session=
|
316
|
-
cache-control:
|
317
|
-
- no-cache
|
327
|
+
- _recurly_session=ab97d5621a9ba264ee6f563ac52cb918; domain=.recurly.local; path=/; HttpOnly
|
318
328
|
body: |
|
319
329
|
<?xml version="1.0" encoding="UTF-8"?>
|
320
330
|
<charge type="charge">
|
321
|
-
<id>
|
322
|
-
<account_code>invoice-list-
|
331
|
+
<id>8381a84d9767432894206a5450ee3eab</id>
|
332
|
+
<account_code>invoice-list-1296674173</account_code>
|
323
333
|
<amount_in_cents type="integer">300</amount_in_cents>
|
324
|
-
<start_date type="datetime">2011-
|
334
|
+
<start_date type="datetime">2011-02-03T22:20:22Z</start_date>
|
325
335
|
<end_date nil="true" type="datetime"></end_date>
|
326
336
|
<invoice_number nil="true" type="integer"></invoice_number>
|
327
337
|
<description>charge description</description>
|
328
|
-
<created_at type="datetime">2011-
|
338
|
+
<created_at type="datetime">2011-02-03T22:20:22Z</created_at>
|
329
339
|
</charge>
|
330
340
|
|
331
341
|
http_version: "1.1"
|
332
342
|
- !ruby/struct:VCR::HTTPInteraction
|
333
343
|
request: !ruby/struct:VCR::Request
|
334
344
|
method: :post
|
335
|
-
uri:
|
345
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
|
336
346
|
body: |
|
337
347
|
<?xml version="1.0" encoding="UTF-8"?>
|
338
348
|
<invoice>
|
339
349
|
</invoice>
|
340
350
|
|
341
351
|
headers:
|
352
|
+
authorization:
|
353
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
354
|
+
content-type:
|
355
|
+
- application/xml
|
342
356
|
accept:
|
343
357
|
- "*/*"
|
358
|
+
user-agent:
|
359
|
+
- Ruby
|
344
360
|
connection:
|
345
361
|
- close
|
346
|
-
content-type:
|
347
|
-
- application/xml
|
348
|
-
authorization:
|
349
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
350
362
|
response: !ruby/struct:VCR::Response
|
351
363
|
status: !ruby/struct:VCR::ResponseStatus
|
352
364
|
code: 201
|
353
|
-
message: Created
|
365
|
+
message: "Created "
|
354
366
|
headers:
|
367
|
+
cache-control:
|
368
|
+
- no-cache
|
355
369
|
location:
|
356
|
-
-
|
357
|
-
|
358
|
-
-
|
370
|
+
- http://litle-test.recurly.local:3000/invoices/b7635a7c7ce4494999d1ba0c80be897f
|
371
|
+
x-runtime:
|
372
|
+
- "454"
|
359
373
|
content-type:
|
360
374
|
- application/xml; charset=utf-8
|
361
|
-
x-runtime:
|
362
|
-
- "55"
|
363
|
-
date:
|
364
|
-
- Sat, 08 Jan 2011 08:05:03 GMT
|
365
|
-
server:
|
366
|
-
- nginx/0.8.53
|
367
375
|
content-length:
|
368
|
-
- "
|
376
|
+
- "1208"
|
377
|
+
server:
|
378
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
379
|
+
date:
|
380
|
+
- Thu, 03 Feb 2011 22:20:25 GMT
|
381
|
+
connection:
|
382
|
+
- close
|
369
383
|
set-cookie:
|
370
|
-
- _recurly_session=
|
371
|
-
cache-control:
|
372
|
-
- no-cache
|
384
|
+
- _recurly_session=5ce0ca6bf324aefcce399234aa6d1ce3; domain=.recurly.local; path=/; HttpOnly
|
373
385
|
body: |
|
374
386
|
<?xml version="1.0" encoding="UTF-8"?>
|
375
387
|
<invoice>
|
376
|
-
<id>
|
377
|
-
<account_code>invoice-list-
|
378
|
-
<date type="datetime">2011-
|
379
|
-
<invoice_number type="integer">
|
388
|
+
<id>b7635a7c7ce4494999d1ba0c80be897f</id>
|
389
|
+
<account_code>invoice-list-1296674173</account_code>
|
390
|
+
<date type="datetime">2011-02-03T22:20:25Z</date>
|
391
|
+
<invoice_number type="integer">1237</invoice_number>
|
380
392
|
<vat_number></vat_number>
|
381
393
|
<status>open</status>
|
382
394
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
@@ -384,15 +396,17 @@
|
|
384
396
|
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
385
397
|
<paid_in_cents type="integer">0</paid_in_cents>
|
386
398
|
<total_due_in_cents type="integer">300</total_due_in_cents>
|
399
|
+
<discount_in_cents type="integer">0</discount_in_cents>
|
387
400
|
<line_items type="array">
|
388
401
|
<line_item>
|
389
|
-
<id>
|
402
|
+
<id>8381a84d9767432894206a5450ee3eab</id>
|
390
403
|
<type>charge</type>
|
391
404
|
<amount_in_cents type="integer">300</amount_in_cents>
|
392
|
-
<start_date type="datetime">2011-
|
405
|
+
<start_date type="datetime">2011-02-03T22:20:22Z</start_date>
|
393
406
|
<end_date nil="true" type="datetime"></end_date>
|
394
407
|
<description>charge description</description>
|
395
|
-
<created_at type="datetime">2011-
|
408
|
+
<created_at type="datetime">2011-02-03T22:20:22Z</created_at>
|
409
|
+
<applied_coupon_code></applied_coupon_code>
|
396
410
|
</line_item>
|
397
411
|
</line_items>
|
398
412
|
<payments type="array">
|
@@ -403,56 +417,58 @@
|
|
403
417
|
- !ruby/struct:VCR::HTTPInteraction
|
404
418
|
request: !ruby/struct:VCR::Request
|
405
419
|
method: :get
|
406
|
-
uri:
|
420
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
|
407
421
|
body:
|
408
422
|
headers:
|
423
|
+
authorization:
|
424
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
409
425
|
accept:
|
410
426
|
- application/xml
|
427
|
+
accept-encoding:
|
428
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
429
|
+
user-agent:
|
430
|
+
- Ruby
|
411
431
|
connection:
|
412
432
|
- close
|
413
|
-
authorization:
|
414
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
415
433
|
response: !ruby/struct:VCR::Response
|
416
434
|
status: !ruby/struct:VCR::ResponseStatus
|
417
435
|
code: 200
|
418
|
-
message: OK
|
436
|
+
message: "OK "
|
419
437
|
headers:
|
420
|
-
x-
|
421
|
-
-
|
422
|
-
etag:
|
423
|
-
- "\"20b88ee7b43079d24b567bb635c8ef58\""
|
424
|
-
connection:
|
425
|
-
- close
|
438
|
+
x-runtime:
|
439
|
+
- "208"
|
426
440
|
content-type:
|
427
441
|
- application/xml; charset=utf-8
|
428
|
-
|
429
|
-
- "
|
430
|
-
|
431
|
-
-
|
432
|
-
server:
|
433
|
-
- nginx/0.8.53
|
442
|
+
etag:
|
443
|
+
- "\"977c6fdc2299bd4f77cfb9cdbeaa9ee5\""
|
444
|
+
cache-control:
|
445
|
+
- private, max-age=0, must-revalidate
|
434
446
|
content-length:
|
435
447
|
- "789"
|
448
|
+
server:
|
449
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
450
|
+
date:
|
451
|
+
- Thu, 03 Feb 2011 22:20:27 GMT
|
452
|
+
connection:
|
453
|
+
- close
|
436
454
|
set-cookie:
|
437
|
-
- _recurly_session=
|
438
|
-
cache-control:
|
439
|
-
- private, max-age=0, must-revalidate
|
455
|
+
- _recurly_session=0cdf208431238478880593313d31b15f; domain=.recurly.local; path=/; HttpOnly
|
440
456
|
body: |
|
441
457
|
<?xml version="1.0" encoding="UTF-8"?>
|
442
458
|
<invoices type="array">
|
443
459
|
<invoice>
|
444
|
-
<id>
|
445
|
-
<account_code>invoice-list-
|
446
|
-
<date type="datetime">2011-
|
447
|
-
<invoice_number type="integer">
|
460
|
+
<id>b7635a7c7ce4494999d1ba0c80be897f</id>
|
461
|
+
<account_code>invoice-list-1296674173</account_code>
|
462
|
+
<date type="datetime">2011-02-03T22:20:25Z</date>
|
463
|
+
<invoice_number type="integer">1237</invoice_number>
|
448
464
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
449
465
|
<total_in_cents type="integer">300</total_in_cents>
|
450
466
|
</invoice>
|
451
467
|
<invoice>
|
452
|
-
<id>
|
453
|
-
<account_code>invoice-list-
|
454
|
-
<date type="datetime">2011-
|
455
|
-
<invoice_number type="integer">
|
468
|
+
<id>ea18bb3d1e1241968104da9c4ed1bdbf</id>
|
469
|
+
<account_code>invoice-list-1296674173</account_code>
|
470
|
+
<date type="datetime">2011-02-03T22:20:20Z</date>
|
471
|
+
<invoice_number type="integer">1236</invoice_number>
|
456
472
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
457
473
|
<total_in_cents type="integer">100</total_in_cents>
|
458
474
|
</invoice>
|