recurly 0.4.0 → 0.4.1
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/patches/rails2/active_resource/connection.rb +10 -0
- data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
- data/lib/recurly.rb +7 -2
- data/lib/recurly/transparent.rb +4 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transaction_spec.rb +5 -2
- data/spec/unit/transparent_spec.rb +59 -1
- data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
- data/spec/vcr/account/close/1297746103.yml +23 -30
- data/spec/vcr/account/create-blank/1297746103.yml +5 -7
- data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
- data/spec/vcr/account/create-min/1297746103.yml +8 -11
- data/spec/vcr/account/create/1297746103.yml +8 -11
- data/spec/vcr/account/find/1297746103.yml +22 -29
- data/spec/vcr/account/list/1297746103.yml +150 -196
- data/spec/vcr/account/update/1297746103.yml +37 -46
- data/spec/vcr/billing/create/1298594128.yml +24 -31
- data/spec/vcr/billing/destroy/1298594128.yml +35 -46
- data/spec/vcr/billing/find/1298594128.yml +32 -41
- data/spec/vcr/billing/update/1298594128.yml +32 -41
- data/spec/vcr/charge/create/1297746103.yml +36 -45
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
- data/spec/vcr/charge/list-all/1297746103.yml +51 -62
- data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
- data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
- data/spec/vcr/charge/lookup/1297746103.yml +28 -35
- data/spec/vcr/coupon/create/1299714521.yml +23 -30
- data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
- data/spec/vcr/credit/create/1299714599.yml +28 -35
- data/spec/vcr/credit/delete/1299714599.yml +41 -52
- data/spec/vcr/credit/list/1299714599.yml +51 -62
- data/spec/vcr/credit/lookup/1299714599.yml +28 -35
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
- data/spec/vcr/invoice/create/1297746103.yml +50 -61
- data/spec/vcr/invoice/list/1297746103.yml +73 -88
- data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
- data/spec/vcr/plan/all.yml +18 -24
- data/spec/vcr/plan/find.yml +18 -24
- data/spec/vcr/plan/update.yml +18 -24
- data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
- data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
- data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
- data/spec/vcr/subscription/change1/1297746103.yml +55 -68
- data/spec/vcr/subscription/change2/1297746103.yml +55 -68
- data/spec/vcr/subscription/create/1297746103.yml +25 -32
- data/spec/vcr/subscription/find/1297746103.yml +35 -44
- data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
- data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
- data/spec/vcr/transaction/all/1300473500.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
- data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
- data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
- data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
- data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
- data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
- data/spec/vcr/transaction/void/1300473500.yml +620 -0
- metadata +21 -20
- data/spec/vcr/transaction/all/1297746103.yml +0 -389
- data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
- data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
- data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/credit-lookup-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "322"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:50:15 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=22fc64347c71e2bec443c619237dd2d9; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=497f3ef2dde85dcb02fd91337441235f; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>8950a5c700854bcc9423ffb80b4ab6be</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:50:40Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -96,42 +93,40 @@
|
|
96
93
|
response: !ruby/struct:VCR::Response
|
97
94
|
status: !ruby/struct:VCR::ResponseStatus
|
98
95
|
code: 201
|
99
|
-
message:
|
96
|
+
message: Created
|
100
97
|
headers:
|
101
98
|
cache-control:
|
102
99
|
- no-cache
|
103
100
|
x-runtime:
|
104
|
-
- "
|
101
|
+
- "293"
|
105
102
|
content-type:
|
106
103
|
- application/xml; charset=utf-8
|
107
104
|
content-length:
|
108
105
|
- "516"
|
109
|
-
|
110
|
-
-
|
111
|
-
date:
|
112
|
-
- Fri, 11 Mar 2011 18:50:17 GMT
|
106
|
+
set-cookie:
|
107
|
+
- _recurly_session=911b82e19cb1b91ad6885d2e56b77622; domain=.recurly.local; path=/; HttpOnly
|
113
108
|
connection:
|
114
109
|
- close
|
115
|
-
|
116
|
-
-
|
110
|
+
server:
|
111
|
+
- thin 1.2.7 codename No Hup
|
117
112
|
body: |
|
118
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
119
114
|
<credit type="credit">
|
120
|
-
<id>
|
115
|
+
<id>aec44045895745198e8822110625ea08</id>
|
121
116
|
<account_code>credit-lookup-1299714599</account_code>
|
122
117
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
123
|
-
<start_date type="datetime">2011-03-
|
118
|
+
<start_date type="datetime">2011-03-18T18:50:42Z</start_date>
|
124
119
|
<end_date nil="true" type="datetime"></end_date>
|
125
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
126
121
|
<description>free moniez 4 u</description>
|
127
|
-
<created_at type="datetime">2011-03-
|
122
|
+
<created_at type="datetime">2011-03-18T18:50:43Z</created_at>
|
128
123
|
</credit>
|
129
124
|
|
130
125
|
http_version: "1.1"
|
131
126
|
- !ruby/struct:VCR::HTTPInteraction
|
132
127
|
request: !ruby/struct:VCR::Request
|
133
128
|
method: :get
|
134
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/
|
129
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/aec44045895745198e8822110625ea08.xml
|
135
130
|
body:
|
136
131
|
headers:
|
137
132
|
authorization:
|
@@ -147,37 +142,35 @@
|
|
147
142
|
response: !ruby/struct:VCR::Response
|
148
143
|
status: !ruby/struct:VCR::ResponseStatus
|
149
144
|
code: 200
|
150
|
-
message:
|
145
|
+
message: OK
|
151
146
|
headers:
|
152
147
|
x-runtime:
|
153
|
-
- "
|
148
|
+
- "288"
|
154
149
|
content-type:
|
155
150
|
- application/xml; charset=utf-8
|
156
151
|
etag:
|
157
|
-
- "\"
|
152
|
+
- "\"04962d41905b5eb4549f2e34a1c585ef\""
|
158
153
|
cache-control:
|
159
154
|
- private, max-age=0, must-revalidate
|
160
155
|
content-length:
|
161
156
|
- "516"
|
162
|
-
|
163
|
-
-
|
164
|
-
date:
|
165
|
-
- Fri, 11 Mar 2011 18:50:19 GMT
|
157
|
+
set-cookie:
|
158
|
+
- _recurly_session=04c5dbda94209f026d6ef79ef14ad91e; domain=.recurly.local; path=/; HttpOnly
|
166
159
|
connection:
|
167
160
|
- close
|
168
|
-
|
169
|
-
-
|
161
|
+
server:
|
162
|
+
- thin 1.2.7 codename No Hup
|
170
163
|
body: |
|
171
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
172
165
|
<credit type="credit">
|
173
|
-
<id>
|
166
|
+
<id>aec44045895745198e8822110625ea08</id>
|
174
167
|
<account_code>credit-lookup-1299714599</account_code>
|
175
168
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
176
|
-
<start_date type="datetime">2011-03-
|
169
|
+
<start_date type="datetime">2011-03-18T18:50:42Z</start_date>
|
177
170
|
<end_date nil="true" type="datetime"></end_date>
|
178
171
|
<invoice_number nil="true" type="integer"></invoice_number>
|
179
172
|
<description>free moniez 4 u</description>
|
180
|
-
<created_at type="datetime">2011-03-
|
173
|
+
<created_at type="datetime">2011-03-18T18:50:43Z</created_at>
|
181
174
|
</credit>
|
182
175
|
|
183
176
|
http_version: "1.1"
|
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "324"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "605"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:50:47 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=0b777dbe5f59ec7ab7619de4cb0ff990; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=9a5660c2955d7897cc0b9f81a6ff8849; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>7cc09470fe55483b821ac25fee3b7f53</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:51:14Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -108,26 +105,24 @@
|
|
108
105
|
response: !ruby/struct:VCR::Response
|
109
106
|
status: !ruby/struct:VCR::ResponseStatus
|
110
107
|
code: 200
|
111
|
-
message:
|
108
|
+
message: OK
|
112
109
|
headers:
|
113
110
|
x-runtime:
|
114
|
-
- "
|
111
|
+
- "6450"
|
115
112
|
content-type:
|
116
113
|
- application/xml; charset=utf-8
|
117
114
|
etag:
|
118
|
-
- "\"
|
115
|
+
- "\"03543697f9184c5c45fbdfcf48bd1258\""
|
119
116
|
cache-control:
|
120
117
|
- private, max-age=0, must-revalidate
|
121
118
|
content-length:
|
122
119
|
- "651"
|
123
|
-
|
124
|
-
-
|
125
|
-
date:
|
126
|
-
- Fri, 11 Mar 2011 18:50:51 GMT
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=d03e29a90592c322a256cd1ecfd5a9da; domain=.recurly.local; path=/; HttpOnly
|
127
122
|
connection:
|
128
123
|
- close
|
129
|
-
|
130
|
-
-
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
131
126
|
body: |
|
132
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
128
|
<billing_info>
|
@@ -149,7 +144,7 @@
|
|
149
144
|
<month type="integer">3</month>
|
150
145
|
<year type="integer">2012</year>
|
151
146
|
</credit_card>
|
152
|
-
<updated_at type="datetime">2011-03-
|
147
|
+
<updated_at type="datetime">2011-03-18T18:51:22Z</updated_at>
|
153
148
|
</billing_info>
|
154
149
|
|
155
150
|
http_version: "1.1"
|
@@ -181,19 +176,17 @@
|
|
181
176
|
cache-control:
|
182
177
|
- no-cache
|
183
178
|
x-runtime:
|
184
|
-
- "
|
179
|
+
- "272"
|
185
180
|
content-type:
|
186
181
|
- application/xml; charset=utf-8
|
187
182
|
content-length:
|
188
183
|
- "98"
|
189
|
-
|
190
|
-
-
|
191
|
-
date:
|
192
|
-
- Fri, 11 Mar 2011 18:50:54 GMT
|
184
|
+
set-cookie:
|
185
|
+
- _recurly_session=d3fec01238073251b25bdd8ce9dede50; domain=.recurly.local; path=/; HttpOnly
|
193
186
|
connection:
|
194
187
|
- close
|
195
|
-
|
196
|
-
-
|
188
|
+
server:
|
189
|
+
- thin 1.2.7 codename No Hup
|
197
190
|
body: |
|
198
191
|
<?xml version="1.0" encoding="UTF-8"?>
|
199
192
|
<errors>
|
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-create-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "325"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:50:33 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=37812aa5268edd52234264f58a591e69; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=e273ac85c9a0c59f6dfb7625c4c318a6; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>fa1994ef78bf417f8ac0b7fbf2a91fd6</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:50:57Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -108,26 +105,24 @@
|
|
108
105
|
response: !ruby/struct:VCR::Response
|
109
106
|
status: !ruby/struct:VCR::ResponseStatus
|
110
107
|
code: 200
|
111
|
-
message:
|
108
|
+
message: OK
|
112
109
|
headers:
|
113
110
|
x-runtime:
|
114
|
-
- "
|
111
|
+
- "6393"
|
115
112
|
content-type:
|
116
113
|
- application/xml; charset=utf-8
|
117
114
|
etag:
|
118
|
-
- "\"
|
115
|
+
- "\"277bcb23eb7ddba09645aabffc4f08dd\""
|
119
116
|
cache-control:
|
120
117
|
- private, max-age=0, must-revalidate
|
121
118
|
content-length:
|
122
119
|
- "640"
|
123
|
-
|
124
|
-
-
|
125
|
-
date:
|
126
|
-
- Fri, 11 Mar 2011 18:50:37 GMT
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=42f7a09c58f6f917c068f1b500a0a03c; domain=.recurly.local; path=/; HttpOnly
|
127
122
|
connection:
|
128
123
|
- close
|
129
|
-
|
130
|
-
-
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
131
126
|
body: |
|
132
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
128
|
<billing_info>
|
@@ -149,7 +144,7 @@
|
|
149
144
|
<month type="integer">3</month>
|
150
145
|
<year type="integer">2012</year>
|
151
146
|
</credit_card>
|
152
|
-
<updated_at type="datetime">2011-03-
|
147
|
+
<updated_at type="datetime">2011-03-18T18:51:05Z</updated_at>
|
153
148
|
</billing_info>
|
154
149
|
|
155
150
|
http_version: "1.1"
|
@@ -178,35 +173,33 @@
|
|
178
173
|
response: !ruby/struct:VCR::Response
|
179
174
|
status: !ruby/struct:VCR::ResponseStatus
|
180
175
|
code: 201
|
181
|
-
message:
|
176
|
+
message: Created
|
182
177
|
headers:
|
183
178
|
cache-control:
|
184
179
|
- no-cache
|
185
180
|
x-runtime:
|
186
|
-
- "
|
181
|
+
- "300"
|
187
182
|
content-type:
|
188
183
|
- application/xml; charset=utf-8
|
189
184
|
content-length:
|
190
185
|
- "519"
|
191
|
-
|
192
|
-
-
|
193
|
-
date:
|
194
|
-
- Fri, 11 Mar 2011 18:50:39 GMT
|
186
|
+
set-cookie:
|
187
|
+
- _recurly_session=3c2efc7357e3fbd29104838c09d8edac; domain=.recurly.local; path=/; HttpOnly
|
195
188
|
connection:
|
196
189
|
- close
|
197
|
-
|
198
|
-
-
|
190
|
+
server:
|
191
|
+
- thin 1.2.7 codename No Hup
|
199
192
|
body: |
|
200
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
201
194
|
<charge type="charge">
|
202
|
-
<id>
|
195
|
+
<id>e125eff8c4214e45b221296329e9f2ba</id>
|
203
196
|
<account_code>invoice-create-1297746103</account_code>
|
204
197
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
205
|
-
<start_date type="datetime">2011-03-
|
198
|
+
<start_date type="datetime">2011-03-18T18:51:07Z</start_date>
|
206
199
|
<end_date nil="true" type="datetime"></end_date>
|
207
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
208
201
|
<description>charge description</description>
|
209
|
-
<created_at type="datetime">2011-03-
|
202
|
+
<created_at type="datetime">2011-03-18T18:51:08Z</created_at>
|
210
203
|
</charge>
|
211
204
|
|
212
205
|
http_version: "1.1"
|
@@ -235,35 +228,33 @@
|
|
235
228
|
response: !ruby/struct:VCR::Response
|
236
229
|
status: !ruby/struct:VCR::ResponseStatus
|
237
230
|
code: 201
|
238
|
-
message:
|
231
|
+
message: Created
|
239
232
|
headers:
|
240
233
|
cache-control:
|
241
234
|
- no-cache
|
242
235
|
x-runtime:
|
243
|
-
- "
|
236
|
+
- "299"
|
244
237
|
content-type:
|
245
238
|
- application/xml; charset=utf-8
|
246
239
|
content-length:
|
247
240
|
- "519"
|
248
|
-
|
249
|
-
-
|
250
|
-
date:
|
251
|
-
- Fri, 11 Mar 2011 18:50:42 GMT
|
241
|
+
set-cookie:
|
242
|
+
- _recurly_session=3464ecdd6fdc0db08921f06fd8c29c83; domain=.recurly.local; path=/; HttpOnly
|
252
243
|
connection:
|
253
244
|
- close
|
254
|
-
|
255
|
-
-
|
245
|
+
server:
|
246
|
+
- thin 1.2.7 codename No Hup
|
256
247
|
body: |
|
257
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
258
249
|
<charge type="charge">
|
259
|
-
<id>
|
250
|
+
<id>6f23f439b96741ac898cd0935a0c58db</id>
|
260
251
|
<account_code>invoice-create-1297746103</account_code>
|
261
252
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
262
|
-
<start_date type="datetime">2011-03-
|
253
|
+
<start_date type="datetime">2011-03-18T18:51:10Z</start_date>
|
263
254
|
<end_date nil="true" type="datetime"></end_date>
|
264
255
|
<invoice_number nil="true" type="integer"></invoice_number>
|
265
256
|
<description>charge description</description>
|
266
|
-
<created_at type="datetime">2011-03-
|
257
|
+
<created_at type="datetime">2011-03-18T18:51:10Z</created_at>
|
267
258
|
</charge>
|
268
259
|
|
269
260
|
http_version: "1.1"
|
@@ -290,33 +281,31 @@
|
|
290
281
|
response: !ruby/struct:VCR::Response
|
291
282
|
status: !ruby/struct:VCR::ResponseStatus
|
292
283
|
code: 201
|
293
|
-
message:
|
284
|
+
message: Created
|
294
285
|
headers:
|
295
286
|
cache-control:
|
296
287
|
- no-cache
|
297
288
|
location:
|
298
|
-
- http://app.recurly.local:3000/invoices/
|
289
|
+
- http://app.recurly.local:3000/invoices/34b973f57fb14e598235f41028742007
|
299
290
|
x-runtime:
|
300
|
-
- "
|
291
|
+
- "612"
|
301
292
|
content-type:
|
302
293
|
- application/xml; charset=utf-8
|
303
294
|
content-length:
|
304
295
|
- "1675"
|
305
|
-
|
306
|
-
-
|
307
|
-
date:
|
308
|
-
- Fri, 11 Mar 2011 18:50:45 GMT
|
296
|
+
set-cookie:
|
297
|
+
- _recurly_session=dc4c85f281dcdc66f9d214145058ccd6; domain=.recurly.local; path=/; HttpOnly
|
309
298
|
connection:
|
310
299
|
- close
|
311
|
-
|
312
|
-
-
|
300
|
+
server:
|
301
|
+
- thin 1.2.7 codename No Hup
|
313
302
|
body: |
|
314
303
|
<?xml version="1.0" encoding="UTF-8"?>
|
315
304
|
<invoice>
|
316
|
-
<id>
|
305
|
+
<id>34b973f57fb14e598235f41028742007</id>
|
317
306
|
<account_code>invoice-create-1297746103</account_code>
|
318
|
-
<date type="datetime">2011-03-
|
319
|
-
<invoice_number type="integer">
|
307
|
+
<date type="datetime">2011-03-18T18:51:12Z</date>
|
308
|
+
<invoice_number type="integer">2060</invoice_number>
|
320
309
|
<vat_number></vat_number>
|
321
310
|
<status>open</status>
|
322
311
|
<subtotal_in_cents type="integer">2500</subtotal_in_cents>
|
@@ -327,23 +316,23 @@
|
|
327
316
|
<discount_in_cents type="integer">0</discount_in_cents>
|
328
317
|
<line_items type="array">
|
329
318
|
<line_item>
|
330
|
-
<id>
|
319
|
+
<id>e125eff8c4214e45b221296329e9f2ba</id>
|
331
320
|
<type>charge</type>
|
332
321
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
333
|
-
<start_date type="datetime">2011-03-
|
322
|
+
<start_date type="datetime">2011-03-18T18:51:07Z</start_date>
|
334
323
|
<end_date nil="true" type="datetime"></end_date>
|
335
324
|
<description>charge description</description>
|
336
|
-
<created_at type="datetime">2011-03-
|
325
|
+
<created_at type="datetime">2011-03-18T18:51:08Z</created_at>
|
337
326
|
<applied_coupon_code></applied_coupon_code>
|
338
327
|
</line_item>
|
339
328
|
<line_item>
|
340
|
-
<id>
|
329
|
+
<id>6f23f439b96741ac898cd0935a0c58db</id>
|
341
330
|
<type>charge</type>
|
342
331
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
343
|
-
<start_date type="datetime">2011-03-
|
332
|
+
<start_date type="datetime">2011-03-18T18:51:10Z</start_date>
|
344
333
|
<end_date nil="true" type="datetime"></end_date>
|
345
334
|
<description>charge description</description>
|
346
|
-
<created_at type="datetime">2011-03-
|
335
|
+
<created_at type="datetime">2011-03-18T18:51:10Z</created_at>
|
347
336
|
<applied_coupon_code></applied_coupon_code>
|
348
337
|
</line_item>
|
349
338
|
</line_items>
|