recurly 0.4.2 → 0.4.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/lib/recurly.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/charge-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "363"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=3e93cb1c57e9cbb2a361e5a49b4e4080; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>2c9f7314cc27450a8851e75da4b8b049</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:20:38Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :post
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<charge>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
|
82
82
|
headers:
|
83
83
|
authorization:
|
84
|
-
- Basic
|
84
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
85
85
|
content-type:
|
86
86
|
- application/xml
|
87
87
|
accept:
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "321"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "517"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=3a37bc95bd286dc640fd1c7aaeee9c52; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -112,25 +112,25 @@
|
|
112
112
|
body: |
|
113
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
114
|
<charge type="charge">
|
115
|
-
<id>
|
115
|
+
<id>b6ce4ae67e744fa9987fec95311ec457</id>
|
116
116
|
<account_code>charge-lookup-1297746103</account_code>
|
117
117
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-
|
118
|
+
<start_date type="datetime">2011-04-04T02:20:40Z</start_date>
|
119
119
|
<end_date nil="true" type="datetime"></end_date>
|
120
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
121
|
<description>inconvenience fee</description>
|
122
|
-
<created_at type="datetime">2011-
|
122
|
+
<created_at type="datetime">2011-04-04T02:20:40Z</created_at>
|
123
123
|
</charge>
|
124
124
|
|
125
125
|
http_version: "1.1"
|
126
126
|
- !ruby/struct:VCR::HTTPInteraction
|
127
127
|
request: !ruby/struct:VCR::Request
|
128
128
|
method: :get
|
129
|
-
uri: http://api-test-
|
129
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/b6ce4ae67e744fa9987fec95311ec457.xml
|
130
130
|
body:
|
131
131
|
headers:
|
132
132
|
authorization:
|
133
|
-
- Basic
|
133
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
134
134
|
accept:
|
135
135
|
- application/xml
|
136
136
|
accept-encoding:
|
@@ -145,17 +145,17 @@
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
x-runtime:
|
148
|
-
- "
|
148
|
+
- "299"
|
149
149
|
content-type:
|
150
150
|
- application/xml; charset=utf-8
|
151
151
|
etag:
|
152
|
-
- "\"
|
152
|
+
- "\"999881159d4fa28d92679d55732f0ada\""
|
153
153
|
cache-control:
|
154
154
|
- private, max-age=0, must-revalidate
|
155
155
|
content-length:
|
156
156
|
- "517"
|
157
157
|
set-cookie:
|
158
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=08f0103930908207fc8cb2450682a4d4; domain=.recurly.local; path=/; HttpOnly
|
159
159
|
connection:
|
160
160
|
- close
|
161
161
|
server:
|
@@ -163,14 +163,14 @@
|
|
163
163
|
body: |
|
164
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
165
|
<charge type="charge">
|
166
|
-
<id>
|
166
|
+
<id>b6ce4ae67e744fa9987fec95311ec457</id>
|
167
167
|
<account_code>charge-lookup-1297746103</account_code>
|
168
168
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
169
|
-
<start_date type="datetime">2011-
|
169
|
+
<start_date type="datetime">2011-04-04T02:20:40Z</start_date>
|
170
170
|
<end_date nil="true" type="datetime"></end_date>
|
171
171
|
<invoice_number nil="true" type="integer"></invoice_number>
|
172
172
|
<description>inconvenience fee</description>
|
173
|
-
<created_at type="datetime">2011-
|
173
|
+
<created_at type="datetime">2011-04-04T02:20:40Z</created_at>
|
174
174
|
</charge>
|
175
175
|
|
176
176
|
http_version: "1.1"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/coupon-create-1299714521
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "388"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=a0837cf7e5d861222f39e13f74442653; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>8b526d99434f4d16853906f014e68565</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:20:59Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :post
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-create-1299714521/coupon.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<coupon>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
headers:
|
82
82
|
authorization:
|
83
|
-
- Basic
|
83
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
84
84
|
content-type:
|
85
85
|
- application/xml
|
86
86
|
accept:
|
@@ -97,13 +97,13 @@
|
|
97
97
|
cache-control:
|
98
98
|
- no-cache
|
99
99
|
x-runtime:
|
100
|
-
- "
|
100
|
+
- "422"
|
101
101
|
content-type:
|
102
102
|
- application/xml; charset=utf-8
|
103
103
|
content-length:
|
104
|
-
- "
|
104
|
+
- "520"
|
105
105
|
set-cookie:
|
106
|
-
- _recurly_session=
|
106
|
+
- _recurly_session=9521093e7f06a4327d54f82c59510a00; domain=.recurly.local; path=/; HttpOnly
|
107
107
|
connection:
|
108
108
|
- close
|
109
109
|
server:
|
@@ -113,12 +113,12 @@
|
|
113
113
|
<coupon>
|
114
114
|
<account_code>coupon-create-1299714521</account_code>
|
115
115
|
<coupon_code>coupon</coupon_code>
|
116
|
-
<name>
|
117
|
-
<discount_in_cents type="integer"
|
118
|
-
<discount_percent type="integer"
|
116
|
+
<name>Coupon</name>
|
117
|
+
<discount_in_cents type="integer">500</discount_in_cents>
|
118
|
+
<discount_percent type="integer"></discount_percent>
|
119
119
|
<redemption>
|
120
120
|
<account_code>coupon-create-1299714521</account_code>
|
121
|
-
<redeemed_at type="datetime">2011-
|
121
|
+
<redeemed_at type="datetime">2011-04-04T02:21:02Z</redeemed_at>
|
122
122
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
123
123
|
</redemption>
|
124
124
|
</coupon>
|
@@ -127,11 +127,11 @@
|
|
127
127
|
- !ruby/struct:VCR::HTTPInteraction
|
128
128
|
request: !ruby/struct:VCR::Request
|
129
129
|
method: :get
|
130
|
-
uri: http://api-test-
|
130
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-create-1299714521/coupon.xml
|
131
131
|
body:
|
132
132
|
headers:
|
133
133
|
authorization:
|
134
|
-
- Basic
|
134
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
135
135
|
accept:
|
136
136
|
- application/xml
|
137
137
|
accept-encoding:
|
@@ -146,17 +146,17 @@
|
|
146
146
|
message: OK
|
147
147
|
headers:
|
148
148
|
x-runtime:
|
149
|
-
- "
|
149
|
+
- "383"
|
150
150
|
content-type:
|
151
151
|
- application/xml; charset=utf-8
|
152
152
|
etag:
|
153
|
-
- "\"
|
153
|
+
- "\"9991975cebb5761d29ce9aaf0b608ccf\""
|
154
154
|
cache-control:
|
155
155
|
- private, max-age=0, must-revalidate
|
156
156
|
content-length:
|
157
|
-
- "
|
157
|
+
- "520"
|
158
158
|
set-cookie:
|
159
|
-
- _recurly_session=
|
159
|
+
- _recurly_session=f74dc71f1468cf2daa1945f793046ca6; domain=.recurly.local; path=/; HttpOnly
|
160
160
|
connection:
|
161
161
|
- close
|
162
162
|
server:
|
@@ -166,12 +166,12 @@
|
|
166
166
|
<coupon>
|
167
167
|
<account_code>coupon-create-1299714521</account_code>
|
168
168
|
<coupon_code>coupon</coupon_code>
|
169
|
-
<name>
|
170
|
-
<discount_in_cents type="integer"
|
171
|
-
<discount_percent type="integer"
|
169
|
+
<name>Coupon</name>
|
170
|
+
<discount_in_cents type="integer">500</discount_in_cents>
|
171
|
+
<discount_percent type="integer"></discount_percent>
|
172
172
|
<redemption>
|
173
173
|
<account_code>coupon-create-1299714521</account_code>
|
174
|
-
<redeemed_at type="datetime">2011-
|
174
|
+
<redeemed_at type="datetime">2011-04-04T02:21:02Z</redeemed_at>
|
175
175
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
176
176
|
</redemption>
|
177
177
|
</coupon>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/coupon-destroy-1299714521
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "463"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=8c3b015a6ef4e33736eff3dcca1228d4; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>0ec1441a4c1b4c35ae2c586ec35539a6</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:21:07Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :post
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<coupon>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
headers:
|
82
82
|
authorization:
|
83
|
-
- Basic
|
83
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
84
84
|
content-type:
|
85
85
|
- application/xml
|
86
86
|
accept:
|
@@ -97,13 +97,13 @@
|
|
97
97
|
cache-control:
|
98
98
|
- no-cache
|
99
99
|
x-runtime:
|
100
|
-
- "
|
100
|
+
- "524"
|
101
101
|
content-type:
|
102
102
|
- application/xml; charset=utf-8
|
103
103
|
content-length:
|
104
|
-
- "
|
104
|
+
- "522"
|
105
105
|
set-cookie:
|
106
|
-
- _recurly_session=
|
106
|
+
- _recurly_session=d100496c059f4c4074138b78bc4308d2; domain=.recurly.local; path=/; HttpOnly
|
107
107
|
connection:
|
108
108
|
- close
|
109
109
|
server:
|
@@ -113,12 +113,12 @@
|
|
113
113
|
<coupon>
|
114
114
|
<account_code>coupon-destroy-1299714521</account_code>
|
115
115
|
<coupon_code>coupon</coupon_code>
|
116
|
-
<name>
|
117
|
-
<discount_in_cents type="integer"
|
118
|
-
<discount_percent type="integer"
|
116
|
+
<name>Coupon</name>
|
117
|
+
<discount_in_cents type="integer">500</discount_in_cents>
|
118
|
+
<discount_percent type="integer"></discount_percent>
|
119
119
|
<redemption>
|
120
120
|
<account_code>coupon-destroy-1299714521</account_code>
|
121
|
-
<redeemed_at type="datetime">2011-
|
121
|
+
<redeemed_at type="datetime">2011-04-04T02:21:10Z</redeemed_at>
|
122
122
|
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
123
123
|
</redemption>
|
124
124
|
</coupon>
|
@@ -127,11 +127,11 @@
|
|
127
127
|
- !ruby/struct:VCR::HTTPInteraction
|
128
128
|
request: !ruby/struct:VCR::Request
|
129
129
|
method: :delete
|
130
|
-
uri: http://api-test-
|
130
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
|
131
131
|
body:
|
132
132
|
headers:
|
133
133
|
authorization:
|
134
|
-
- Basic
|
134
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
135
135
|
accept:
|
136
136
|
- application/xml
|
137
137
|
user-agent:
|
@@ -146,13 +146,13 @@
|
|
146
146
|
cache-control:
|
147
147
|
- no-cache
|
148
148
|
x-runtime:
|
149
|
-
- "
|
149
|
+
- "361"
|
150
150
|
content-type:
|
151
151
|
- application/xml; charset=utf-8
|
152
152
|
content-length:
|
153
153
|
- "1"
|
154
154
|
set-cookie:
|
155
|
-
- _recurly_session=
|
155
|
+
- _recurly_session=6aa60cc2abf5fb72278fb6122418c9ed; domain=.recurly.local; path=/; HttpOnly
|
156
156
|
connection:
|
157
157
|
- close
|
158
158
|
server:
|
@@ -162,11 +162,11 @@
|
|
162
162
|
- !ruby/struct:VCR::HTTPInteraction
|
163
163
|
request: !ruby/struct:VCR::Request
|
164
164
|
method: :get
|
165
|
-
uri: http://api-test-
|
165
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
|
166
166
|
body:
|
167
167
|
headers:
|
168
168
|
authorization:
|
169
|
-
- Basic
|
169
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
170
170
|
accept:
|
171
171
|
- application/xml
|
172
172
|
accept-encoding:
|
@@ -187,7 +187,7 @@
|
|
187
187
|
content-length:
|
188
188
|
- "92"
|
189
189
|
set-cookie:
|
190
|
-
- _recurly_session=
|
190
|
+
- _recurly_session=79d9165fbbffc699424d0fc53b0c2257; domain=.recurly.local; path=/; HttpOnly
|
191
191
|
connection:
|
192
192
|
- close
|
193
193
|
server:
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/credit-create-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "460"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=0abe2d11a9801700d3861756643e911c; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>389430349d47481a8c193ed655640440</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:21:17Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :post
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-create-1299714599/credits.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<credit>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
|
82
82
|
headers:
|
83
83
|
authorization:
|
84
|
-
- Basic
|
84
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
85
85
|
content-type:
|
86
86
|
- application/xml
|
87
87
|
accept:
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "380"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "512"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=152d57d5ecfc11b9ce08ef7e890ea65e; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -112,25 +112,25 @@
|
|
112
112
|
body: |
|
113
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
114
|
<credit type="credit">
|
115
|
-
<id>
|
115
|
+
<id>9da38f9ee4b34fd8b652268271fcb3e0</id>
|
116
116
|
<account_code>credit-create-1299714599</account_code>
|
117
117
|
<amount_in_cents type="integer">-1005</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-
|
118
|
+
<start_date type="datetime">2011-04-04T02:21:20Z</start_date>
|
119
119
|
<end_date nil="true" type="datetime"></end_date>
|
120
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
121
|
<description>free moniez</description>
|
122
|
-
<created_at type="datetime">2011-
|
122
|
+
<created_at type="datetime">2011-04-04T02:21:20Z</created_at>
|
123
123
|
</credit>
|
124
124
|
|
125
125
|
http_version: "1.1"
|
126
126
|
- !ruby/struct:VCR::HTTPInteraction
|
127
127
|
request: !ruby/struct:VCR::Request
|
128
128
|
method: :get
|
129
|
-
uri: http://api-test-
|
129
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-create-1299714599/credits/9da38f9ee4b34fd8b652268271fcb3e0.xml
|
130
130
|
body:
|
131
131
|
headers:
|
132
132
|
authorization:
|
133
|
-
- Basic
|
133
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
134
134
|
accept:
|
135
135
|
- application/xml
|
136
136
|
accept-encoding:
|
@@ -145,17 +145,17 @@
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
x-runtime:
|
148
|
-
- "
|
148
|
+
- "199"
|
149
149
|
content-type:
|
150
150
|
- application/xml; charset=utf-8
|
151
151
|
etag:
|
152
|
-
- "\"
|
152
|
+
- "\"f2cc56abb03bc2d36e480b0f06fff200\""
|
153
153
|
cache-control:
|
154
154
|
- private, max-age=0, must-revalidate
|
155
155
|
content-length:
|
156
156
|
- "512"
|
157
157
|
set-cookie:
|
158
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=3122c99d2e1135fd218dda5a84e2a316; domain=.recurly.local; path=/; HttpOnly
|
159
159
|
connection:
|
160
160
|
- close
|
161
161
|
server:
|
@@ -163,14 +163,14 @@
|
|
163
163
|
body: |
|
164
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
165
|
<credit type="credit">
|
166
|
-
<id>
|
166
|
+
<id>9da38f9ee4b34fd8b652268271fcb3e0</id>
|
167
167
|
<account_code>credit-create-1299714599</account_code>
|
168
168
|
<amount_in_cents type="integer">-1005</amount_in_cents>
|
169
|
-
<start_date type="datetime">2011-
|
169
|
+
<start_date type="datetime">2011-04-04T02:21:20Z</start_date>
|
170
170
|
<end_date nil="true" type="datetime"></end_date>
|
171
171
|
<invoice_number nil="true" type="integer"></invoice_number>
|
172
172
|
<description>free moniez</description>
|
173
|
-
<created_at type="datetime">2011-
|
173
|
+
<created_at type="datetime">2011-04-04T02:21:20Z</created_at>
|
174
174
|
</credit>
|
175
175
|
|
176
176
|
http_version: "1.1"
|