recurly 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/recurly/subscription.rb +2 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +0 -2
- data/spec/integration/invoice_spec.rb +0 -1
- data/spec/integration/subscription_spec.rb +49 -10
- data/spec/integration/transaction_spec.rb +3 -2
- data/spec/support/factory.rb +2 -2
- data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
- data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
- data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
- data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
- data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
- data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +24 -24
- data/spec/vcr/billing/find/1286682213.yml +20 -20
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +25 -25
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/list/1286681343.yml +37 -37
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
- data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
- data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
- data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
- data/spec/vcr/plan/all.yml +8 -8
- data/spec/vcr/plan/delete/1286677585.yml +15 -15
- data/spec/vcr/plan/find.yml +8 -8
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
- data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
- data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
- data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
- data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
- data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
- data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
- data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
- data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
- data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
- data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
- data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
- data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
- data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
- data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
- data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
- data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
- data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
- data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
- data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
- data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
- data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
- data/spec/vcr/transaction/refund/1287186411.yml +282 -0
- data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
- metadata +92 -86
- data/spec/vcr/subscription/change2/1287037152.yml +0 -283
- data/spec/vcr/subscription/change2/1287037325.yml +0 -283
- data/spec/vcr/subscription/create/1287036910.yml +0 -224
- data/spec/vcr/subscription/find/1287037363.yml +0 -283
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
body: |
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
8
|
<account>
|
|
9
|
-
<account-code>subscription-create-1287037363</account-code>
|
|
10
9
|
<company-name>Recurly Ruby Gem</company-name>
|
|
10
|
+
<account-code>subscription-create-1287439446</account-code>
|
|
11
11
|
<last-name>Test</last-name>
|
|
12
|
-
<first-name>Verena</first-name>
|
|
13
12
|
<email>verena@test.com</email>
|
|
13
|
+
<first-name>Verena</first-name>
|
|
14
14
|
</account>
|
|
15
15
|
|
|
16
16
|
headers:
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
message: Created
|
|
29
29
|
headers:
|
|
30
30
|
location:
|
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/subscription-create-
|
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-create-1287439446
|
|
32
32
|
connection:
|
|
33
33
|
- close
|
|
34
34
|
content-type:
|
|
35
35
|
- application/xml; charset=utf-8
|
|
36
36
|
x-runtime:
|
|
37
|
-
- "
|
|
37
|
+
- "770"
|
|
38
38
|
date:
|
|
39
|
-
-
|
|
39
|
+
- Mon, 18 Oct 2010 22:06:20 GMT
|
|
40
40
|
server:
|
|
41
41
|
- nginx/0.7.65
|
|
42
42
|
content-length:
|
|
43
43
|
- "593"
|
|
44
44
|
set-cookie:
|
|
45
|
-
- account_credentials=
|
|
45
|
+
- account_credentials=8630b929a3b84300a3cc458526f77612b64b9cef58aded15a17d633feb4d1b5aa47062c1e3dd08d2e86eda736f9ba8c9cb7772754b0de5083d5ea56dc722c115%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
46
46
|
- ""
|
|
47
|
-
- _recurly_session=
|
|
47
|
+
- _recurly_session=9feefad76c6b4553b981ddbc4894f1a4; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
48
48
|
cache-control:
|
|
49
49
|
- no-cache
|
|
50
50
|
body: |
|
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
52
52
|
<account>
|
|
53
|
-
<id>subscription-create-
|
|
54
|
-
<account_code>subscription-create-
|
|
53
|
+
<id>subscription-create-1287439446</id>
|
|
54
|
+
<account_code>subscription-create-1287439446</account_code>
|
|
55
55
|
<username></username>
|
|
56
56
|
<email>verena@test.com</email>
|
|
57
57
|
<first_name>Verena</first_name>
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
|
61
61
|
<closed type="boolean">false</closed>
|
|
62
|
-
<hosted_login_token>
|
|
63
|
-
<created_at type="datetime">2010-10-
|
|
62
|
+
<hosted_login_token>652557ef820d4067a42bea50ffff13d1</hosted_login_token>
|
|
63
|
+
<created_at type="datetime">2010-10-18T22:06:20Z</created_at>
|
|
64
64
|
<state>active</state>
|
|
65
65
|
</account>
|
|
66
66
|
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
x-runtime:
|
|
94
94
|
- "13"
|
|
95
95
|
date:
|
|
96
|
-
-
|
|
96
|
+
- Mon, 18 Oct 2010 22:06:20 GMT
|
|
97
97
|
server:
|
|
98
98
|
- nginx/0.7.65
|
|
99
99
|
content-length:
|
|
100
100
|
- "1150"
|
|
101
101
|
set-cookie:
|
|
102
|
-
- _recurly_session=
|
|
102
|
+
- _recurly_session=734dfa24389ccaa8f6eeee1bd556bb58; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
103
103
|
cache-control:
|
|
104
104
|
- private, max-age=0, must-revalidate
|
|
105
105
|
body: |
|
|
@@ -133,20 +133,20 @@
|
|
|
133
133
|
- !ruby/struct:VCR::HTTPInteraction
|
|
134
134
|
request: !ruby/struct:VCR::Request
|
|
135
135
|
method: :post
|
|
136
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-
|
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-1287439446/subscription.xml
|
|
137
137
|
body: |
|
|
138
138
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
139
139
|
<subscription>
|
|
140
140
|
<quantity type="integer">1</quantity>
|
|
141
141
|
<plan-code>paid</plan-code>
|
|
142
142
|
<account>
|
|
143
|
-
<created-at type="datetime">2010-10-
|
|
144
|
-
<hosted-login-token>
|
|
145
|
-
<account-code>subscription-create-1287037363</account-code>
|
|
143
|
+
<created-at type="datetime">2010-10-18T22:06:20Z</created-at>
|
|
144
|
+
<hosted-login-token>652557ef820d4067a42bea50ffff13d1</hosted-login-token>
|
|
146
145
|
<company-name>Recurly Ruby Gem</company-name>
|
|
146
|
+
<account-code>subscription-create-1287439446</account-code>
|
|
147
147
|
<closed type="boolean">false</closed>
|
|
148
148
|
<username type="yaml" nil="true"></username>
|
|
149
|
-
<id>subscription-create-
|
|
149
|
+
<id>subscription-create-1287439446</id>
|
|
150
150
|
<last-name>Test</last-name>
|
|
151
151
|
<billing-info>
|
|
152
152
|
<city>San Francisco</city>
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
</billing-info>
|
|
166
166
|
<balance-in-cents type="integer">0</balance-in-cents>
|
|
167
167
|
<state>active</state>
|
|
168
|
-
<first-name>Verena</first-name>
|
|
169
168
|
<email>verena@test.com</email>
|
|
169
|
+
<first-name>Verena</first-name>
|
|
170
170
|
</account>
|
|
171
171
|
</subscription>
|
|
172
172
|
|
|
@@ -189,22 +189,22 @@
|
|
|
189
189
|
content-type:
|
|
190
190
|
- application/xml; charset=utf-8
|
|
191
191
|
x-runtime:
|
|
192
|
-
- "
|
|
192
|
+
- "573"
|
|
193
193
|
date:
|
|
194
|
-
-
|
|
194
|
+
- Mon, 18 Oct 2010 22:06:22 GMT
|
|
195
195
|
server:
|
|
196
196
|
- nginx/0.7.65
|
|
197
197
|
content-length:
|
|
198
198
|
- "870"
|
|
199
199
|
set-cookie:
|
|
200
|
-
- _recurly_session=
|
|
200
|
+
- _recurly_session=e11846021de1790b0b7fbedf6bb7da4e; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
201
201
|
cache-control:
|
|
202
202
|
- no-cache
|
|
203
203
|
body: |
|
|
204
204
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
205
205
|
<subscription>
|
|
206
|
-
<id>subscription-create-
|
|
207
|
-
<account_code>subscription-create-
|
|
206
|
+
<id>subscription-create-1287439446</id>
|
|
207
|
+
<account_code>subscription-create-1287439446</account_code>
|
|
208
208
|
<plan>
|
|
209
209
|
<plan_code>paid</plan_code>
|
|
210
210
|
<name>Paid</name>
|
|
@@ -212,11 +212,11 @@
|
|
|
212
212
|
<state>active</state>
|
|
213
213
|
<quantity type="integer">1</quantity>
|
|
214
214
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
|
215
|
-
<activated_at type="datetime">2010-10-
|
|
215
|
+
<activated_at type="datetime">2010-10-18T22:06:21Z</activated_at>
|
|
216
216
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
|
217
217
|
<expires_at nil="true" type="datetime"></expires_at>
|
|
218
|
-
<current_period_started_at type="datetime">2010-10-
|
|
219
|
-
<current_period_ends_at type="datetime">2010-11-
|
|
218
|
+
<current_period_started_at type="datetime">2010-10-18T22:06:21Z</current_period_started_at>
|
|
219
|
+
<current_period_ends_at type="datetime">2010-11-18T22:06:21Z</current_period_ends_at>
|
|
220
220
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
221
221
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
222
222
|
</subscription>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
body: |
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
8
|
<account>
|
|
9
|
-
<account-code>subscription-create-1287037325</account-code>
|
|
10
9
|
<company-name>Recurly Ruby Gem</company-name>
|
|
10
|
+
<account-code>subscription-create-1287442108</account-code>
|
|
11
11
|
<last-name>Test</last-name>
|
|
12
|
-
<first-name>Verena</first-name>
|
|
13
12
|
<email>verena@test.com</email>
|
|
13
|
+
<first-name>Verena</first-name>
|
|
14
14
|
</account>
|
|
15
15
|
|
|
16
16
|
headers:
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
message: Created
|
|
29
29
|
headers:
|
|
30
30
|
location:
|
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/subscription-create-
|
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-create-1287442108
|
|
32
32
|
connection:
|
|
33
33
|
- close
|
|
34
34
|
content-type:
|
|
35
35
|
- application/xml; charset=utf-8
|
|
36
36
|
x-runtime:
|
|
37
|
-
- "
|
|
37
|
+
- "609"
|
|
38
38
|
date:
|
|
39
|
-
-
|
|
39
|
+
- Mon, 18 Oct 2010 22:48:43 GMT
|
|
40
40
|
server:
|
|
41
41
|
- nginx/0.7.65
|
|
42
42
|
content-length:
|
|
43
43
|
- "593"
|
|
44
44
|
set-cookie:
|
|
45
|
-
- account_credentials=
|
|
45
|
+
- account_credentials=bed9cf8fd8cec79c37b5702ff7bc0d13c70c3d9631a5bb8d513a9c11b97caa002efe445b2eec404353af67d829cd1f583e273603925955564603054ceb243b4a%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
46
46
|
- ""
|
|
47
|
-
- _recurly_session=
|
|
47
|
+
- _recurly_session=4a6585e0de75c953e089793de2510804; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
48
48
|
cache-control:
|
|
49
49
|
- no-cache
|
|
50
50
|
body: |
|
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
52
52
|
<account>
|
|
53
|
-
<id>subscription-create-
|
|
54
|
-
<account_code>subscription-create-
|
|
53
|
+
<id>subscription-create-1287442108</id>
|
|
54
|
+
<account_code>subscription-create-1287442108</account_code>
|
|
55
55
|
<username></username>
|
|
56
56
|
<email>verena@test.com</email>
|
|
57
57
|
<first_name>Verena</first_name>
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
|
61
61
|
<closed type="boolean">false</closed>
|
|
62
|
-
<hosted_login_token>
|
|
63
|
-
<created_at type="datetime">2010-10-
|
|
62
|
+
<hosted_login_token>0dc2435e2def45b28e3569ae0ed39085</hosted_login_token>
|
|
63
|
+
<created_at type="datetime">2010-10-18T22:48:42Z</created_at>
|
|
64
64
|
<state>active</state>
|
|
65
65
|
</account>
|
|
66
66
|
|
|
@@ -91,15 +91,15 @@
|
|
|
91
91
|
content-type:
|
|
92
92
|
- application/xml; charset=utf-8
|
|
93
93
|
x-runtime:
|
|
94
|
-
- "
|
|
94
|
+
- "14"
|
|
95
95
|
date:
|
|
96
|
-
-
|
|
96
|
+
- Mon, 18 Oct 2010 22:48:43 GMT
|
|
97
97
|
server:
|
|
98
98
|
- nginx/0.7.65
|
|
99
99
|
content-length:
|
|
100
100
|
- "1150"
|
|
101
101
|
set-cookie:
|
|
102
|
-
- _recurly_session=
|
|
102
|
+
- _recurly_session=ea3e6e3da7082a07007038f513ed8c89; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
103
103
|
cache-control:
|
|
104
104
|
- private, max-age=0, must-revalidate
|
|
105
105
|
body: |
|
|
@@ -133,20 +133,20 @@
|
|
|
133
133
|
- !ruby/struct:VCR::HTTPInteraction
|
|
134
134
|
request: !ruby/struct:VCR::Request
|
|
135
135
|
method: :post
|
|
136
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-
|
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-1287442108/subscription.xml
|
|
137
137
|
body: |
|
|
138
138
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
139
139
|
<subscription>
|
|
140
140
|
<quantity type="integer">1</quantity>
|
|
141
141
|
<plan-code>paid</plan-code>
|
|
142
142
|
<account>
|
|
143
|
-
<created-at type="datetime">2010-10-
|
|
144
|
-
<hosted-login-token>
|
|
145
|
-
<account-code>subscription-create-1287037325</account-code>
|
|
143
|
+
<created-at type="datetime">2010-10-18T22:48:42Z</created-at>
|
|
144
|
+
<hosted-login-token>0dc2435e2def45b28e3569ae0ed39085</hosted-login-token>
|
|
146
145
|
<company-name>Recurly Ruby Gem</company-name>
|
|
146
|
+
<account-code>subscription-create-1287442108</account-code>
|
|
147
147
|
<closed type="boolean">false</closed>
|
|
148
148
|
<username type="yaml" nil="true"></username>
|
|
149
|
-
<id>subscription-create-
|
|
149
|
+
<id>subscription-create-1287442108</id>
|
|
150
150
|
<last-name>Test</last-name>
|
|
151
151
|
<billing-info>
|
|
152
152
|
<city>San Francisco</city>
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
</billing-info>
|
|
166
166
|
<balance-in-cents type="integer">0</balance-in-cents>
|
|
167
167
|
<state>active</state>
|
|
168
|
-
<first-name>Verena</first-name>
|
|
169
168
|
<email>verena@test.com</email>
|
|
169
|
+
<first-name>Verena</first-name>
|
|
170
170
|
</account>
|
|
171
171
|
</subscription>
|
|
172
172
|
|
|
@@ -189,22 +189,22 @@
|
|
|
189
189
|
content-type:
|
|
190
190
|
- application/xml; charset=utf-8
|
|
191
191
|
x-runtime:
|
|
192
|
-
- "
|
|
192
|
+
- "575"
|
|
193
193
|
date:
|
|
194
|
-
-
|
|
194
|
+
- Mon, 18 Oct 2010 22:48:44 GMT
|
|
195
195
|
server:
|
|
196
196
|
- nginx/0.7.65
|
|
197
197
|
content-length:
|
|
198
198
|
- "870"
|
|
199
199
|
set-cookie:
|
|
200
|
-
- _recurly_session=
|
|
200
|
+
- _recurly_session=b0ca1343ec40ea2af3bbe0a3135df401; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
201
201
|
cache-control:
|
|
202
202
|
- no-cache
|
|
203
203
|
body: |
|
|
204
204
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
205
205
|
<subscription>
|
|
206
|
-
<id>subscription-create-
|
|
207
|
-
<account_code>subscription-create-
|
|
206
|
+
<id>subscription-create-1287442108</id>
|
|
207
|
+
<account_code>subscription-create-1287442108</account_code>
|
|
208
208
|
<plan>
|
|
209
209
|
<plan_code>paid</plan_code>
|
|
210
210
|
<name>Paid</name>
|
|
@@ -212,11 +212,11 @@
|
|
|
212
212
|
<state>active</state>
|
|
213
213
|
<quantity type="integer">1</quantity>
|
|
214
214
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
|
215
|
-
<activated_at type="datetime">2010-10-
|
|
215
|
+
<activated_at type="datetime">2010-10-18T22:48:44Z</activated_at>
|
|
216
216
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
|
217
217
|
<expires_at nil="true" type="datetime"></expires_at>
|
|
218
|
-
<current_period_started_at type="datetime">2010-10-
|
|
219
|
-
<current_period_ends_at type="datetime">2010-11-
|
|
218
|
+
<current_period_started_at type="datetime">2010-10-18T22:48:44Z</current_period_started_at>
|
|
219
|
+
<current_period_ends_at type="datetime">2010-11-18T22:48:44Z</current_period_ends_at>
|
|
220
220
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
221
221
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
222
222
|
</subscription>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
body: |
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
8
|
<account>
|
|
9
|
-
<account-code>subscription-create-1287037152</account-code>
|
|
10
9
|
<company-name>Recurly Ruby Gem</company-name>
|
|
10
|
+
<account-code>subscription-create-1287442352</account-code>
|
|
11
11
|
<last-name>Test</last-name>
|
|
12
|
-
<first-name>Verena</first-name>
|
|
13
12
|
<email>verena@test.com</email>
|
|
13
|
+
<first-name>Verena</first-name>
|
|
14
14
|
</account>
|
|
15
15
|
|
|
16
16
|
headers:
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
message: Created
|
|
29
29
|
headers:
|
|
30
30
|
location:
|
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/subscription-create-
|
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-create-1287442352
|
|
32
32
|
connection:
|
|
33
33
|
- close
|
|
34
34
|
content-type:
|
|
35
35
|
- application/xml; charset=utf-8
|
|
36
36
|
x-runtime:
|
|
37
|
-
- "
|
|
37
|
+
- "609"
|
|
38
38
|
date:
|
|
39
|
-
-
|
|
39
|
+
- Mon, 18 Oct 2010 22:52:47 GMT
|
|
40
40
|
server:
|
|
41
41
|
- nginx/0.7.65
|
|
42
42
|
content-length:
|
|
43
43
|
- "593"
|
|
44
44
|
set-cookie:
|
|
45
|
-
- account_credentials=
|
|
45
|
+
- account_credentials=ce80f41e3f42839319645cc0e94b782f3bc2aa2c4581c415594f5648c11cf7f3434042594d94fcfa6258bfe39f1b60f9a36a1b2dcb012bd2667c468ed4929dab%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
|
46
46
|
- ""
|
|
47
|
-
- _recurly_session=
|
|
47
|
+
- _recurly_session=18ba1d8e191f8e8ea6f98c3c58810bd2; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
48
48
|
cache-control:
|
|
49
49
|
- no-cache
|
|
50
50
|
body: |
|
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
52
52
|
<account>
|
|
53
|
-
<id>subscription-create-
|
|
54
|
-
<account_code>subscription-create-
|
|
53
|
+
<id>subscription-create-1287442352</id>
|
|
54
|
+
<account_code>subscription-create-1287442352</account_code>
|
|
55
55
|
<username></username>
|
|
56
56
|
<email>verena@test.com</email>
|
|
57
57
|
<first_name>Verena</first_name>
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
|
61
61
|
<closed type="boolean">false</closed>
|
|
62
|
-
<hosted_login_token>
|
|
63
|
-
<created_at type="datetime">2010-10-
|
|
62
|
+
<hosted_login_token>f9d440e8ed4d4f8797ed8e050eff55a0</hosted_login_token>
|
|
63
|
+
<created_at type="datetime">2010-10-18T22:52:47Z</created_at>
|
|
64
64
|
<state>active</state>
|
|
65
65
|
</account>
|
|
66
66
|
|
|
@@ -91,15 +91,15 @@
|
|
|
91
91
|
content-type:
|
|
92
92
|
- application/xml; charset=utf-8
|
|
93
93
|
x-runtime:
|
|
94
|
-
- "
|
|
94
|
+
- "13"
|
|
95
95
|
date:
|
|
96
|
-
-
|
|
96
|
+
- Mon, 18 Oct 2010 22:52:47 GMT
|
|
97
97
|
server:
|
|
98
98
|
- nginx/0.7.65
|
|
99
99
|
content-length:
|
|
100
100
|
- "1150"
|
|
101
101
|
set-cookie:
|
|
102
|
-
- _recurly_session=
|
|
102
|
+
- _recurly_session=e5ab9de3647c767a10fbe36068ded4d7; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
103
103
|
cache-control:
|
|
104
104
|
- private, max-age=0, must-revalidate
|
|
105
105
|
body: |
|
|
@@ -133,20 +133,20 @@
|
|
|
133
133
|
- !ruby/struct:VCR::HTTPInteraction
|
|
134
134
|
request: !ruby/struct:VCR::Request
|
|
135
135
|
method: :post
|
|
136
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-
|
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-create-1287442352/subscription.xml
|
|
137
137
|
body: |
|
|
138
138
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
139
139
|
<subscription>
|
|
140
140
|
<quantity type="integer">1</quantity>
|
|
141
141
|
<plan-code>paid</plan-code>
|
|
142
142
|
<account>
|
|
143
|
-
<created-at type="datetime">2010-10-
|
|
144
|
-
<hosted-login-token>
|
|
145
|
-
<account-code>subscription-create-1287037152</account-code>
|
|
143
|
+
<created-at type="datetime">2010-10-18T22:52:47Z</created-at>
|
|
144
|
+
<hosted-login-token>f9d440e8ed4d4f8797ed8e050eff55a0</hosted-login-token>
|
|
146
145
|
<company-name>Recurly Ruby Gem</company-name>
|
|
146
|
+
<account-code>subscription-create-1287442352</account-code>
|
|
147
147
|
<closed type="boolean">false</closed>
|
|
148
148
|
<username type="yaml" nil="true"></username>
|
|
149
|
-
<id>subscription-create-
|
|
149
|
+
<id>subscription-create-1287442352</id>
|
|
150
150
|
<last-name>Test</last-name>
|
|
151
151
|
<billing-info>
|
|
152
152
|
<city>San Francisco</city>
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
</billing-info>
|
|
166
166
|
<balance-in-cents type="integer">0</balance-in-cents>
|
|
167
167
|
<state>active</state>
|
|
168
|
-
<first-name>Verena</first-name>
|
|
169
168
|
<email>verena@test.com</email>
|
|
169
|
+
<first-name>Verena</first-name>
|
|
170
170
|
</account>
|
|
171
171
|
</subscription>
|
|
172
172
|
|
|
@@ -189,22 +189,22 @@
|
|
|
189
189
|
content-type:
|
|
190
190
|
- application/xml; charset=utf-8
|
|
191
191
|
x-runtime:
|
|
192
|
-
- "
|
|
192
|
+
- "561"
|
|
193
193
|
date:
|
|
194
|
-
-
|
|
194
|
+
- Mon, 18 Oct 2010 22:52:49 GMT
|
|
195
195
|
server:
|
|
196
196
|
- nginx/0.7.65
|
|
197
197
|
content-length:
|
|
198
198
|
- "870"
|
|
199
199
|
set-cookie:
|
|
200
|
-
- _recurly_session=
|
|
200
|
+
- _recurly_session=fdeff7ddd1932fb37475890ac0494c92; domain=.recurly.com; path=/; Secure; HttpOnly
|
|
201
201
|
cache-control:
|
|
202
202
|
- no-cache
|
|
203
203
|
body: |
|
|
204
204
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
205
205
|
<subscription>
|
|
206
|
-
<id>subscription-create-
|
|
207
|
-
<account_code>subscription-create-
|
|
206
|
+
<id>subscription-create-1287442352</id>
|
|
207
|
+
<account_code>subscription-create-1287442352</account_code>
|
|
208
208
|
<plan>
|
|
209
209
|
<plan_code>paid</plan_code>
|
|
210
210
|
<name>Paid</name>
|
|
@@ -212,11 +212,11 @@
|
|
|
212
212
|
<state>active</state>
|
|
213
213
|
<quantity type="integer">1</quantity>
|
|
214
214
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
|
215
|
-
<activated_at type="datetime">2010-10-
|
|
215
|
+
<activated_at type="datetime">2010-10-18T22:52:48Z</activated_at>
|
|
216
216
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
|
217
217
|
<expires_at nil="true" type="datetime"></expires_at>
|
|
218
|
-
<current_period_started_at type="datetime">2010-10-
|
|
219
|
-
<current_period_ends_at type="datetime">2010-11-
|
|
218
|
+
<current_period_started_at type="datetime">2010-10-18T22:52:48Z</current_period_started_at>
|
|
219
|
+
<current_period_ends_at type="datetime">2010-11-18T22:52:48Z</current_period_ends_at>
|
|
220
220
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
221
221
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
222
222
|
</subscription>
|