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/charge-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "309"
|
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:49:22 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=379a122f942f56596dd785281d78e323; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=952e2b12ba4c18a9064f67e930840b5a; 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>b4aaf82288b4477d8bae70fa4f6e1038</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:49:50Z</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
|
+
- "287"
|
105
102
|
content-type:
|
106
103
|
- application/xml; charset=utf-8
|
107
104
|
content-length:
|
108
105
|
- "517"
|
109
|
-
|
110
|
-
-
|
111
|
-
date:
|
112
|
-
- Fri, 11 Mar 2011 18:49:24 GMT
|
106
|
+
set-cookie:
|
107
|
+
- _recurly_session=9aaca1a0e31954d12e26b668a59b8103; 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
|
<charge type="charge">
|
120
|
-
<id>
|
115
|
+
<id>f4dfd129b09e4879b21f0daeb669f9d6</id>
|
121
116
|
<account_code>charge-lookup-1297746103</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:49:52Z</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>inconvenience fee</description>
|
127
|
-
<created_at type="datetime">2011-03-
|
122
|
+
<created_at type="datetime">2011-03-18T18:49:52Z</created_at>
|
128
123
|
</charge>
|
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/charge-lookup-1297746103/charges/
|
129
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/f4dfd129b09e4879b21f0daeb669f9d6.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
|
+
- "265"
|
154
149
|
content-type:
|
155
150
|
- application/xml; charset=utf-8
|
156
151
|
etag:
|
157
|
-
- "\"
|
152
|
+
- "\"67b16d0c7bd5b0868d26e68526f20169\""
|
158
153
|
cache-control:
|
159
154
|
- private, max-age=0, must-revalidate
|
160
155
|
content-length:
|
161
156
|
- "517"
|
162
|
-
|
163
|
-
-
|
164
|
-
date:
|
165
|
-
- Fri, 11 Mar 2011 18:49:26 GMT
|
157
|
+
set-cookie:
|
158
|
+
- _recurly_session=9b4b179f122df6619011b5d5fb2e3f49; 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
|
<charge type="charge">
|
173
|
-
<id>
|
166
|
+
<id>f4dfd129b09e4879b21f0daeb669f9d6</id>
|
174
167
|
<account_code>charge-lookup-1297746103</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:49:52Z</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>inconvenience fee</description>
|
180
|
-
<created_at type="datetime">2011-03-
|
173
|
+
<created_at type="datetime">2011-03-18T18:49:52Z</created_at>
|
181
174
|
</charge>
|
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/coupon-create-1299714521
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "326"
|
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:49:41 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=57d77f78fdb18c161f75f79089d94ec3; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=9353d1436b27bb983025a044b08abf4b; 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>3d932a9bb411423a8671586e63dfa971</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:50:08Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -95,24 +92,22 @@
|
|
95
92
|
response: !ruby/struct:VCR::Response
|
96
93
|
status: !ruby/struct:VCR::ResponseStatus
|
97
94
|
code: 201
|
98
|
-
message:
|
95
|
+
message: Created
|
99
96
|
headers:
|
100
97
|
cache-control:
|
101
98
|
- no-cache
|
102
99
|
x-runtime:
|
103
|
-
- "
|
100
|
+
- "322"
|
104
101
|
content-type:
|
105
102
|
- application/xml; charset=utf-8
|
106
103
|
content-length:
|
107
104
|
- "519"
|
108
|
-
|
109
|
-
-
|
110
|
-
date:
|
111
|
-
- Fri, 11 Mar 2011 18:49:44 GMT
|
105
|
+
set-cookie:
|
106
|
+
- _recurly_session=d169041a5084580f01891b95c6c91233; domain=.recurly.local; path=/; HttpOnly
|
112
107
|
connection:
|
113
108
|
- close
|
114
|
-
|
115
|
-
-
|
109
|
+
server:
|
110
|
+
- thin 1.2.7 codename No Hup
|
116
111
|
body: |
|
117
112
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
113
|
<coupon>
|
@@ -123,7 +118,7 @@
|
|
123
118
|
<discount_percent type="integer">15</discount_percent>
|
124
119
|
<redemption>
|
125
120
|
<account_code>coupon-create-1299714521</account_code>
|
126
|
-
<redeemed_at type="datetime">2011-03-
|
121
|
+
<redeemed_at type="datetime">2011-03-18T18:50:11Z</redeemed_at>
|
127
122
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
128
123
|
</redemption>
|
129
124
|
</coupon>
|
@@ -148,26 +143,24 @@
|
|
148
143
|
response: !ruby/struct:VCR::Response
|
149
144
|
status: !ruby/struct:VCR::ResponseStatus
|
150
145
|
code: 200
|
151
|
-
message:
|
146
|
+
message: OK
|
152
147
|
headers:
|
153
148
|
x-runtime:
|
154
|
-
- "
|
149
|
+
- "314"
|
155
150
|
content-type:
|
156
151
|
- application/xml; charset=utf-8
|
157
152
|
etag:
|
158
|
-
- "\"
|
153
|
+
- "\"571d6883dd534839fa3c04668884c715\""
|
159
154
|
cache-control:
|
160
155
|
- private, max-age=0, must-revalidate
|
161
156
|
content-length:
|
162
157
|
- "519"
|
163
|
-
|
164
|
-
-
|
165
|
-
date:
|
166
|
-
- Fri, 11 Mar 2011 18:49:46 GMT
|
158
|
+
set-cookie:
|
159
|
+
- _recurly_session=b19e178c9c42a99169984b339361daff; domain=.recurly.local; path=/; HttpOnly
|
167
160
|
connection:
|
168
161
|
- close
|
169
|
-
|
170
|
-
-
|
162
|
+
server:
|
163
|
+
- thin 1.2.7 codename No Hup
|
171
164
|
body: |
|
172
165
|
<?xml version="1.0" encoding="UTF-8"?>
|
173
166
|
<coupon>
|
@@ -178,7 +171,7 @@
|
|
178
171
|
<discount_percent type="integer">15</discount_percent>
|
179
172
|
<redemption>
|
180
173
|
<account_code>coupon-create-1299714521</account_code>
|
181
|
-
<redeemed_at type="datetime">2011-03-
|
174
|
+
<redeemed_at type="datetime">2011-03-18T18:50:11Z</redeemed_at>
|
182
175
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
183
176
|
</redemption>
|
184
177
|
</coupon>
|
@@ -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/coupon-destroy-1299714521
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "338"
|
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:49:48 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=aec96f1cab0d90e577a3ede2435d38b9; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=ed4c37176cdfe8020f05ebb39ae3b997; 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>50e18f0341e84987acc0b0c7398eb3d7</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:50:15Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -95,24 +92,22 @@
|
|
95
92
|
response: !ruby/struct:VCR::Response
|
96
93
|
status: !ruby/struct:VCR::ResponseStatus
|
97
94
|
code: 201
|
98
|
-
message:
|
95
|
+
message: Created
|
99
96
|
headers:
|
100
97
|
cache-control:
|
101
98
|
- no-cache
|
102
99
|
x-runtime:
|
103
|
-
- "
|
100
|
+
- "336"
|
104
101
|
content-type:
|
105
102
|
- application/xml; charset=utf-8
|
106
103
|
content-length:
|
107
104
|
- "521"
|
108
|
-
|
109
|
-
-
|
110
|
-
date:
|
111
|
-
- Fri, 11 Mar 2011 18:49:50 GMT
|
105
|
+
set-cookie:
|
106
|
+
- _recurly_session=47d10ceb97a378fac954c166e114b1eb; domain=.recurly.local; path=/; HttpOnly
|
112
107
|
connection:
|
113
108
|
- close
|
114
|
-
|
115
|
-
-
|
109
|
+
server:
|
110
|
+
- thin 1.2.7 codename No Hup
|
116
111
|
body: |
|
117
112
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
113
|
<coupon>
|
@@ -123,7 +118,7 @@
|
|
123
118
|
<discount_percent type="integer">15</discount_percent>
|
124
119
|
<redemption>
|
125
120
|
<account_code>coupon-destroy-1299714521</account_code>
|
126
|
-
<redeemed_at type="datetime">2011-03-
|
121
|
+
<redeemed_at type="datetime">2011-03-18T18:50:17Z</redeemed_at>
|
127
122
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
128
123
|
</redemption>
|
129
124
|
</coupon>
|
@@ -146,24 +141,22 @@
|
|
146
141
|
response: !ruby/struct:VCR::Response
|
147
142
|
status: !ruby/struct:VCR::ResponseStatus
|
148
143
|
code: 200
|
149
|
-
message:
|
144
|
+
message: OK
|
150
145
|
headers:
|
151
146
|
cache-control:
|
152
147
|
- no-cache
|
153
148
|
x-runtime:
|
154
|
-
- "
|
149
|
+
- "298"
|
155
150
|
content-type:
|
156
151
|
- application/xml; charset=utf-8
|
157
152
|
content-length:
|
158
153
|
- "1"
|
159
|
-
|
160
|
-
-
|
161
|
-
date:
|
162
|
-
- Fri, 11 Mar 2011 18:49:53 GMT
|
154
|
+
set-cookie:
|
155
|
+
- _recurly_session=e1cbce85c47d6916d9dbbe52f36a4827; domain=.recurly.local; path=/; HttpOnly
|
163
156
|
connection:
|
164
157
|
- close
|
165
|
-
|
166
|
-
-
|
158
|
+
server:
|
159
|
+
- thin 1.2.7 codename No Hup
|
167
160
|
body: " "
|
168
161
|
http_version: "1.1"
|
169
162
|
- !ruby/struct:VCR::HTTPInteraction
|
@@ -185,7 +178,7 @@
|
|
185
178
|
response: !ruby/struct:VCR::Response
|
186
179
|
status: !ruby/struct:VCR::ResponseStatus
|
187
180
|
code: 404
|
188
|
-
message:
|
181
|
+
message: Not Found
|
189
182
|
headers:
|
190
183
|
cache-control:
|
191
184
|
- no-cache
|
@@ -193,14 +186,12 @@
|
|
193
186
|
- application/xml; charset=utf-8
|
194
187
|
content-length:
|
195
188
|
- "92"
|
196
|
-
|
197
|
-
-
|
198
|
-
date:
|
199
|
-
- Fri, 11 Mar 2011 18:49:55 GMT
|
189
|
+
set-cookie:
|
190
|
+
- _recurly_session=241162d8d2273c6837e6871f108d2867; domain=.recurly.local; path=/; HttpOnly
|
200
191
|
connection:
|
201
192
|
- close
|
202
|
-
|
203
|
-
-
|
193
|
+
server:
|
194
|
+
- thin 1.2.7 codename No Hup
|
204
195
|
body: |
|
205
196
|
<?xml version="1.0" encoding="UTF-8"?>
|
206
197
|
<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/credit-create-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "320"
|
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:49:57 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=0a562c399b84d54f0d06115cfdd3642d; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=c334af861198953880be06c2bcd7a8d1; 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>4ff8530c3885461cb5ccc521d29e89d8</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:50:24Z</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
|
+
- "287"
|
105
102
|
content-type:
|
106
103
|
- application/xml; charset=utf-8
|
107
104
|
content-length:
|
108
105
|
- "512"
|
109
|
-
|
110
|
-
-
|
111
|
-
date:
|
112
|
-
- Fri, 11 Mar 2011 18:49:59 GMT
|
106
|
+
set-cookie:
|
107
|
+
- _recurly_session=b75ef790496714bacb6d9541067ca75f; 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>f144a5d3e1a64c06a4e13f984bd42857</id>
|
121
116
|
<account_code>credit-create-1299714599</account_code>
|
122
117
|
<amount_in_cents type="integer">-1005</amount_in_cents>
|
123
|
-
<start_date type="datetime">2011-03-
|
118
|
+
<start_date type="datetime">2011-03-18T18:50:26Z</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</description>
|
127
|
-
<created_at type="datetime">2011-03-
|
122
|
+
<created_at type="datetime">2011-03-18T18:50:26Z</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-create-1299714599/credits/
|
129
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-create-1299714599/credits/f144a5d3e1a64c06a4e13f984bd42857.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
|
+
- "81"
|
154
149
|
content-type:
|
155
150
|
- application/xml; charset=utf-8
|
156
151
|
etag:
|
157
|
-
- "\"
|
152
|
+
- "\"6e0f33da8513f3111cdb4f266b9ce788\""
|
158
153
|
cache-control:
|
159
154
|
- private, max-age=0, must-revalidate
|
160
155
|
content-length:
|
161
156
|
- "512"
|
162
|
-
|
163
|
-
-
|
164
|
-
date:
|
165
|
-
- Fri, 11 Mar 2011 18:50:01 GMT
|
157
|
+
set-cookie:
|
158
|
+
- _recurly_session=c0daee0b01ca0ed3cb009d7eb1a6462e; 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>f144a5d3e1a64c06a4e13f984bd42857</id>
|
174
167
|
<account_code>credit-create-1299714599</account_code>
|
175
168
|
<amount_in_cents type="integer">-1005</amount_in_cents>
|
176
|
-
<start_date type="datetime">2011-03-
|
169
|
+
<start_date type="datetime">2011-03-18T18:50:26Z</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</description>
|
180
|
-
<created_at type="datetime">2011-03-
|
173
|
+
<created_at type="datetime">2011-03-18T18:50:26Z</created_at>
|
181
174
|
</credit>
|
182
175
|
|
183
176
|
http_version: "1.1"
|