recurly 0.4.7 → 0.4.8
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/README.md +6 -0
- data/lib/recurly/base.rb +15 -14
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -10
- data/spec/integration/transparent_spec.rb +72 -0
- data/spec/unit/transparent_spec.rb +6 -6
- data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
- data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
- data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
- data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
- data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
- data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
- data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
- data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
- data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
- data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
- data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
- data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
- 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/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
- data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
- data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
- data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
- data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
- data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
- data/spec/vcr/plan/all.yml +117 -98
- data/spec/vcr/plan/delete/1296674173.yml +225 -0
- data/spec/vcr/plan/find.yml +66 -36
- data/spec/vcr/plan/update.yml +64 -144
- data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
- data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
- data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
- data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
- data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
- data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
- data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
- data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
- data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
- data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
- data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
- data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
- data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
- data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
- data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
- data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
- data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
- data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
- metadata +97 -155
- data/spec/vcr/account/list/1301979678.yml +0 -1588
- data/spec/vcr/credit/create/1299714599.yml +0 -186
- data/spec/vcr/credit/delete/1299714599.yml +0 -265
- data/spec/vcr/credit/list/1299714599.yml +0 -330
- data/spec/vcr/credit/lookup/1299714599.yml +0 -186
- data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
- data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
- data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>coupon-destroy-1296774903</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
+
</account>
|
16
|
+
|
17
|
+
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
response: !ruby/struct:VCR::Response
|
29
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
|
+
code: 201
|
31
|
+
message: "Created "
|
32
|
+
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
35
|
+
location:
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903
|
37
|
+
x-runtime:
|
38
|
+
- "925"
|
39
|
+
content-type:
|
40
|
+
- application/xml; charset=utf-8
|
41
|
+
content-length:
|
42
|
+
- "583"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 23:15:27 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
49
|
+
set-cookie:
|
50
|
+
- account_credentials=85662c6a7ee37b0ab16b927abbd2b56041be3db582595db0815a61e5f02cd2b8688be849c2b0fa1029276a78e11f2eebc369fcd5ea569390cfe1e9f625b07758%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=ffce808874a170851e20be6b8e077773; domain=.recurly.local; path=/; HttpOnly
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>coupon-destroy-1296774903</id>
|
57
|
+
<account_code>coupon-destroy-1296774903</account_code>
|
58
|
+
<username></username>
|
59
|
+
<email>verena@test.com</email>
|
60
|
+
<first_name>Verena</first_name>
|
61
|
+
<last_name>Test</last_name>
|
62
|
+
<company_name>Recurly Ruby Gem</company_name>
|
63
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
+
<closed type="boolean">false</closed>
|
65
|
+
<hosted_login_token>c2dea2ac6bb0466095ca4e574f414ed9</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T23:15:27Z</created_at>
|
67
|
+
<state>active</state>
|
68
|
+
</account>
|
69
|
+
|
70
|
+
http_version: "1.1"
|
71
|
+
- !ruby/struct:VCR::HTTPInteraction
|
72
|
+
request: !ruby/struct:VCR::Request
|
73
|
+
method: :post
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
|
75
|
+
body: |
|
76
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
+
<coupon>
|
78
|
+
<coupon-code>coupon</coupon-code>
|
79
|
+
</coupon>
|
80
|
+
|
81
|
+
headers:
|
82
|
+
authorization:
|
83
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
84
|
+
content-type:
|
85
|
+
- application/xml
|
86
|
+
accept:
|
87
|
+
- "*/*"
|
88
|
+
user-agent:
|
89
|
+
- Ruby
|
90
|
+
connection:
|
91
|
+
- close
|
92
|
+
response: !ruby/struct:VCR::Response
|
93
|
+
status: !ruby/struct:VCR::ResponseStatus
|
94
|
+
code: 201
|
95
|
+
message: "Created "
|
96
|
+
headers:
|
97
|
+
cache-control:
|
98
|
+
- no-cache
|
99
|
+
x-runtime:
|
100
|
+
- "318"
|
101
|
+
content-type:
|
102
|
+
- application/xml; charset=utf-8
|
103
|
+
content-length:
|
104
|
+
- "524"
|
105
|
+
server:
|
106
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
107
|
+
date:
|
108
|
+
- Thu, 03 Feb 2011 23:15:30 GMT
|
109
|
+
connection:
|
110
|
+
- close
|
111
|
+
set-cookie:
|
112
|
+
- _recurly_session=7e97cfd07b03224b897ed8141fbf48cd; domain=.recurly.local; path=/; HttpOnly
|
113
|
+
body: |
|
114
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
115
|
+
<coupon>
|
116
|
+
<account_code>coupon-destroy-1296774903</account_code>
|
117
|
+
<coupon_code>coupon</coupon_code>
|
118
|
+
<name>coupon</name>
|
119
|
+
<discount_in_cents type="integer"></discount_in_cents>
|
120
|
+
<discount_percent type="integer">15</discount_percent>
|
121
|
+
<redemption>
|
122
|
+
<account_code>coupon-destroy-1296774903</account_code>
|
123
|
+
<redeemed_at type="datetime">2011-02-03 23:15:30 UTC</redeemed_at>
|
124
|
+
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
125
|
+
</redemption>
|
126
|
+
</coupon>
|
127
|
+
|
128
|
+
http_version: "1.1"
|
129
|
+
- !ruby/struct:VCR::HTTPInteraction
|
130
|
+
request: !ruby/struct:VCR::Request
|
131
|
+
method: :delete
|
132
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
|
133
|
+
body:
|
134
|
+
headers:
|
135
|
+
authorization:
|
136
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
137
|
+
accept:
|
138
|
+
- application/xml
|
139
|
+
user-agent:
|
140
|
+
- Ruby
|
141
|
+
connection:
|
142
|
+
- close
|
143
|
+
response: !ruby/struct:VCR::Response
|
144
|
+
status: !ruby/struct:VCR::ResponseStatus
|
145
|
+
code: 200
|
146
|
+
message: "OK "
|
147
|
+
headers:
|
148
|
+
cache-control:
|
149
|
+
- no-cache
|
150
|
+
x-runtime:
|
151
|
+
- "272"
|
152
|
+
content-type:
|
153
|
+
- application/xml; charset=utf-8
|
154
|
+
content-length:
|
155
|
+
- "1"
|
156
|
+
server:
|
157
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
158
|
+
date:
|
159
|
+
- Thu, 03 Feb 2011 23:15:32 GMT
|
160
|
+
connection:
|
161
|
+
- close
|
162
|
+
set-cookie:
|
163
|
+
- _recurly_session=e583922bcad25a08351177000d17b9fd; domain=.recurly.local; path=/; HttpOnly
|
164
|
+
body: " "
|
165
|
+
http_version: "1.1"
|
166
|
+
- !ruby/struct:VCR::HTTPInteraction
|
167
|
+
request: !ruby/struct:VCR::Request
|
168
|
+
method: :get
|
169
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
|
170
|
+
body:
|
171
|
+
headers:
|
172
|
+
authorization:
|
173
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
174
|
+
accept:
|
175
|
+
- application/xml
|
176
|
+
accept-encoding:
|
177
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
|
+
user-agent:
|
179
|
+
- Ruby
|
180
|
+
connection:
|
181
|
+
- close
|
182
|
+
response: !ruby/struct:VCR::Response
|
183
|
+
status: !ruby/struct:VCR::ResponseStatus
|
184
|
+
code: 404
|
185
|
+
message: "Not Found "
|
186
|
+
headers:
|
187
|
+
cache-control:
|
188
|
+
- no-cache
|
189
|
+
content-type:
|
190
|
+
- application/xml; charset=utf-8
|
191
|
+
content-length:
|
192
|
+
- "92"
|
193
|
+
server:
|
194
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
195
|
+
date:
|
196
|
+
- Thu, 03 Feb 2011 23:15:35 GMT
|
197
|
+
connection:
|
198
|
+
- close
|
199
|
+
set-cookie:
|
200
|
+
- _recurly_session=fdf33942d2134add0dafe4b48a6f77e1; domain=.recurly.local; path=/; HttpOnly
|
201
|
+
body: |
|
202
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
203
|
+
<errors>
|
204
|
+
<error>Coupon not found</error>
|
205
|
+
</errors>
|
206
|
+
|
207
|
+
http_version: "1.1"
|
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
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
|
-
<account-code>
|
9
|
+
<account-code>credit-create-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/credit-create-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "649"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "581"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:19:35 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=42afaf7f17fb318a77c329f313304bec39e92324b07b32ca27f6395e9ea2604afcb1028c435a94e0592fc12242aaeb3132711eb49fbe65c3eeabfa8c54dee428%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=d7dcb3335f4368cd2f11491575805c26; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>
|
59
|
-
<account_code>
|
56
|
+
<id>credit-create-1296674173</id>
|
57
|
+
<account_code>credit-create-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>da1bc25358ad458f8bbb6d21bea375c4</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:35Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,47 +71,51 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :post
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/credit-create-1296674173/credits.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
-
<
|
80
|
-
<
|
81
|
-
|
77
|
+
<credit>
|
78
|
+
<amount type="float">10.05</amount>
|
79
|
+
<description>free moniez</description>
|
80
|
+
</credit>
|
82
81
|
|
83
82
|
headers:
|
84
83
|
authorization:
|
85
|
-
- Basic
|
86
|
-
user-agent:
|
87
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
88
85
|
content-type:
|
89
86
|
- application/xml
|
90
87
|
accept:
|
91
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
92
91
|
connection:
|
93
92
|
- close
|
94
93
|
response: !ruby/struct:VCR::Response
|
95
94
|
status: !ruby/struct:VCR::ResponseStatus
|
96
|
-
code:
|
97
|
-
message: "
|
95
|
+
code: 422
|
96
|
+
message: ""
|
98
97
|
headers:
|
99
98
|
cache-control:
|
100
99
|
- no-cache
|
100
|
+
x-runtime:
|
101
|
+
- "283"
|
101
102
|
content-type:
|
102
103
|
- application/xml; charset=utf-8
|
103
104
|
content-length:
|
104
|
-
- "
|
105
|
+
- "223"
|
105
106
|
server:
|
106
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
107
108
|
date:
|
108
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:19:37 GMT
|
109
110
|
connection:
|
110
111
|
- close
|
111
112
|
set-cookie:
|
112
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=36eb7972ce88bf513f9a8d31d18388f7; domain=.recurly.local; path=/; HttpOnly
|
113
114
|
body: |
|
114
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
115
116
|
<errors>
|
116
|
-
<error>
|
117
|
+
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
+
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
117
119
|
</errors>
|
118
120
|
|
119
121
|
http_version: "1.1"
|
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
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
|
-
<account-code>
|
9
|
+
<account-code>delete-uninvoiced-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/delete-uninvoiced-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "620"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
|
-
- "
|
42
|
+
- "589"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:19:48 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=4ffec5e69c8f03eae0d91ee9c2ec0189d703987a9b945e406ca24376c1fa345a5c8a5e5ad7a4f5b8b7ea44816433ce6808a6b7f1dcb7152441300b737df247ed%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=493c254cbf5b70e89d623cb833ea3e8d; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>
|
59
|
-
<account_code>
|
56
|
+
<id>delete-uninvoiced-1296674173</id>
|
57
|
+
<account_code>delete-uninvoiced-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,40 +62,32 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>d2fa050e00dd412b999e3a0ba65da1f3</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:48Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
72
70
|
http_version: "1.1"
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
|
-
method: :
|
76
|
-
uri: http://
|
73
|
+
method: :post
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/delete-uninvoiced-1296674173/credits.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
-
<
|
80
|
-
<
|
81
|
-
<
|
82
|
-
|
83
|
-
<city>San Francisco</city>
|
84
|
-
<state>CA</state>
|
85
|
-
<zip>94115</zip>
|
86
|
-
<country>US</country>
|
87
|
-
<credit-card>
|
88
|
-
<number></number>
|
89
|
-
</credit-card>
|
90
|
-
</billing-info>
|
77
|
+
<credit>
|
78
|
+
<amount type="float">13.15</amount>
|
79
|
+
<description>free moniez 4 u</description>
|
80
|
+
</credit>
|
91
81
|
|
92
82
|
headers:
|
93
83
|
authorization:
|
94
|
-
- Basic
|
95
|
-
user-agent:
|
96
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
85
|
content-type:
|
98
86
|
- application/xml
|
99
87
|
accept:
|
100
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
101
91
|
connection:
|
102
92
|
- close
|
103
93
|
response: !ruby/struct:VCR::Response
|
@@ -108,23 +98,24 @@
|
|
108
98
|
cache-control:
|
109
99
|
- no-cache
|
110
100
|
x-runtime:
|
111
|
-
- "
|
101
|
+
- "327"
|
112
102
|
content-type:
|
113
103
|
- application/xml; charset=utf-8
|
114
104
|
content-length:
|
115
|
-
- "
|
105
|
+
- "223"
|
116
106
|
server:
|
117
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
118
108
|
date:
|
119
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:19:50 GMT
|
120
110
|
connection:
|
121
111
|
- close
|
122
112
|
set-cookie:
|
123
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=6a1450b93756b12e72e8c0f19ec0f6dc; domain=.recurly.local; path=/; HttpOnly
|
124
114
|
body: |
|
125
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
126
116
|
<errors>
|
127
|
-
<error
|
117
|
+
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
+
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
128
119
|
</errors>
|
129
120
|
|
130
121
|
http_version: "1.1"
|