recurly 0.4.15 → 0.4.16
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/patches/rails2/active_resource/base.rb +35 -0
- data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
- data/lib/recurly.rb +14 -4
- data/lib/recurly/account.rb +6 -3
- data/lib/recurly/base.rb +1 -2
- data/lib/recurly/subscription.rb +7 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/subscription_spec.rb +2 -1
- metadata +108 -220
- data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
- data/spec/vcr/account/close/1313708721.yml +0 -132
- data/spec/vcr/account/create-blank/1313708721.yml +0 -44
- data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
- data/spec/vcr/account/create-min/1313708721.yml +0 -56
- data/spec/vcr/account/create/1313708721.yml +0 -60
- data/spec/vcr/account/find/1313708721.yml +0 -137
- data/spec/vcr/account/list/1313708721.yml +0 -1307
- data/spec/vcr/account/update/1313708721.yml +0 -216
- data/spec/vcr/billing/create/1313708721.yml +0 -181
- data/spec/vcr/billing/destroy/1313708721.yml +0 -240
- data/spec/vcr/billing/errors/1313708721.yml +0 -106
- data/spec/vcr/billing/find/1313708721.yml +0 -234
- data/spec/vcr/billing/update/1313708721.yml +0 -251
- data/spec/vcr/charge/create/1313708721.yml +0 -222
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
- data/spec/vcr/charge/list-all/1313708721.yml +0 -276
- data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
- data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
- data/spec/vcr/charge/lookup/1313708721.yml +0 -152
- data/spec/vcr/coupon/create/1296774903.yml +0 -97
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
- data/spec/vcr/credit/create/1313708090.yml +0 -152
- data/spec/vcr/credit/delete/1313708090.yml +0 -211
- data/spec/vcr/credit/list/1313708090.yml +0 -276
- data/spec/vcr/credit/lookup/1313708090.yml +0 -152
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
- data/spec/vcr/invoice/create/1296674173.yml +0 -302
- data/spec/vcr/invoice/list/1296674173.yml +0 -405
- data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
- data/spec/vcr/plan/all.yml +0 -233
- data/spec/vcr/plan/find.yml +0 -136
- data/spec/vcr/plan/update.yml +0 -152
- data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
- data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
- data/spec/vcr/subscription/change1/1296674173.yml +0 -354
- data/spec/vcr/subscription/change2/1296674173.yml +0 -354
- data/spec/vcr/subscription/create/1296674173.yml +0 -192
- data/spec/vcr/subscription/find/1296674173.yml +0 -244
- data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
- data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
- data/spec/vcr/transaction/all/1311126815.yml +0 -397
- data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
- data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
- data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
- data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
- data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
- data/spec/vcr/transaction/void/1311126815.yml +0 -321
- data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
- data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :post
|
|
5
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
|
-
<account>
|
|
9
|
-
<account-code>subscription-addons-create-1296674173</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
|
-
<billing-info>
|
|
15
|
-
<credit-card>
|
|
16
|
-
</credit-card>
|
|
17
|
-
</billing-info>
|
|
18
|
-
<accept-language nil="true"></accept-language>
|
|
19
|
-
</account>
|
|
20
|
-
|
|
21
|
-
headers:
|
|
22
|
-
user-agent:
|
|
23
|
-
- Recurly Ruby Client v0.4.13
|
|
24
|
-
content-type:
|
|
25
|
-
- application/xml
|
|
26
|
-
response: !ruby/struct:VCR::Response
|
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
28
|
-
code: 201
|
|
29
|
-
message: Created
|
|
30
|
-
headers:
|
|
31
|
-
location:
|
|
32
|
-
- http://api.lvh.me:3000/accounts/subscription-addons-create-1296674173
|
|
33
|
-
content-type:
|
|
34
|
-
- application/xml; charset=utf-8
|
|
35
|
-
cache-control:
|
|
36
|
-
- no-cache
|
|
37
|
-
x-ua-compatible:
|
|
38
|
-
- IE=Edge
|
|
39
|
-
set-cookie:
|
|
40
|
-
- _recurly_session=774a49e86054766b9f0a7e12de4ee971; domain=.lvh.me; path=/; HttpOnly
|
|
41
|
-
server:
|
|
42
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
43
|
-
body: |
|
|
44
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
45
|
-
<account>
|
|
46
|
-
<id>subscription-addons-create-1296674173</id>
|
|
47
|
-
<account_code>subscription-addons-create-1296674173</account_code>
|
|
48
|
-
<username></username>
|
|
49
|
-
<email>verena@test.com</email>
|
|
50
|
-
<first_name>Verena</first_name>
|
|
51
|
-
<last_name>Test</last_name>
|
|
52
|
-
<company_name>Recurly Ruby Gem</company_name>
|
|
53
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
|
54
|
-
<closed type="boolean">false</closed>
|
|
55
|
-
<hosted_login_token>6f943a657d904c91bc22e4d86f4d00d5</hosted_login_token>
|
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:37Z</created_at>
|
|
57
|
-
<state>active</state>
|
|
58
|
-
</account>
|
|
59
|
-
|
|
60
|
-
http_version: "1.1"
|
|
61
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
62
|
-
request: !ruby/struct:VCR::Request
|
|
63
|
-
method: :get
|
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
|
65
|
-
body:
|
|
66
|
-
headers:
|
|
67
|
-
user-agent:
|
|
68
|
-
- Recurly Ruby Client v0.4.13
|
|
69
|
-
accept:
|
|
70
|
-
- application/xml
|
|
71
|
-
accept-encoding:
|
|
72
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
73
|
-
response: !ruby/struct:VCR::Response
|
|
74
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
75
|
-
code: 200
|
|
76
|
-
message: OK
|
|
77
|
-
headers:
|
|
78
|
-
content-type:
|
|
79
|
-
- application/xml; charset=utf-8
|
|
80
|
-
etag:
|
|
81
|
-
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
|
82
|
-
cache-control:
|
|
83
|
-
- max-age=0, private, must-revalidate
|
|
84
|
-
x-ua-compatible:
|
|
85
|
-
- IE=Edge
|
|
86
|
-
server:
|
|
87
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
88
|
-
body: |
|
|
89
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
90
|
-
<plan>
|
|
91
|
-
<plan_code>paid</plan_code>
|
|
92
|
-
<name>paid</name>
|
|
93
|
-
<description></description>
|
|
94
|
-
<success_url></success_url>
|
|
95
|
-
<cancel_url></cancel_url>
|
|
96
|
-
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
|
97
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
98
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
|
99
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
|
100
|
-
<plan_interval_unit>months</plan_interval_unit>
|
|
101
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
|
102
|
-
<trial_interval_unit>days</trial_interval_unit>
|
|
103
|
-
</plan>
|
|
104
|
-
|
|
105
|
-
http_version: "1.1"
|
|
106
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
107
|
-
request: !ruby/struct:VCR::Request
|
|
108
|
-
method: :post
|
|
109
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-addons-create-1296674173/subscription.xml
|
|
110
|
-
body: |
|
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
112
|
-
<subscription>
|
|
113
|
-
<plan-code>paid</plan-code>
|
|
114
|
-
<quantity type="integer">1</quantity>
|
|
115
|
-
<account>
|
|
116
|
-
<account-code>subscription-addons-create-1296674173</account-code>
|
|
117
|
-
<first-name>Verena</first-name>
|
|
118
|
-
<last-name>Test</last-name>
|
|
119
|
-
<email>verena@test.com</email>
|
|
120
|
-
<company-name>Recurly Ruby Gem</company-name>
|
|
121
|
-
<billing-info>
|
|
122
|
-
<first-name>Verena</first-name>
|
|
123
|
-
<last-name>Test</last-name>
|
|
124
|
-
<address1>123 Test St</address1>
|
|
125
|
-
<city>San Francisco</city>
|
|
126
|
-
<state>CA</state>
|
|
127
|
-
<zip>94115</zip>
|
|
128
|
-
<country>US</country>
|
|
129
|
-
<credit-card>
|
|
130
|
-
<number>4111111111111111</number>
|
|
131
|
-
<year type="integer">2012</year>
|
|
132
|
-
<month type="integer">9</month>
|
|
133
|
-
<verification-value>123</verification-value>
|
|
134
|
-
</credit-card>
|
|
135
|
-
</billing-info>
|
|
136
|
-
<accept-language nil="true"></accept-language>
|
|
137
|
-
<id>subscription-addons-create-1296674173</id>
|
|
138
|
-
<username nil="true"></username>
|
|
139
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
|
140
|
-
<closed type="boolean">false</closed>
|
|
141
|
-
<hosted-login-token>6f943a657d904c91bc22e4d86f4d00d5</hosted-login-token>
|
|
142
|
-
<created-at type="datetime">2011-09-22T22:01:37Z</created-at>
|
|
143
|
-
<state>active</state>
|
|
144
|
-
</account>
|
|
145
|
-
<add-ons type="array">
|
|
146
|
-
<add-on>
|
|
147
|
-
<add-on-code>special</add-on-code>
|
|
148
|
-
<quantity type="integer">1</quantity>
|
|
149
|
-
<unit-amount type="integer">10</unit-amount>
|
|
150
|
-
</add-on>
|
|
151
|
-
</add-ons>
|
|
152
|
-
<addons type="array"/>
|
|
153
|
-
</subscription>
|
|
154
|
-
|
|
155
|
-
headers:
|
|
156
|
-
user-agent:
|
|
157
|
-
- Recurly Ruby Client v0.4.13
|
|
158
|
-
content-type:
|
|
159
|
-
- application/xml
|
|
160
|
-
response: !ruby/struct:VCR::Response
|
|
161
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
162
|
-
code: 422
|
|
163
|
-
message:
|
|
164
|
-
headers:
|
|
165
|
-
content-type:
|
|
166
|
-
- application/xml
|
|
167
|
-
content-length:
|
|
168
|
-
- "94"
|
|
169
|
-
server:
|
|
170
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
171
|
-
body: |
|
|
172
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
173
|
-
<errors>
|
|
174
|
-
<error>Method not allowed</error>
|
|
175
|
-
</errors>
|
|
176
|
-
|
|
177
|
-
http_version: "1.1"
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :post
|
|
5
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
|
-
<account>
|
|
9
|
-
<account-code>subscription-addons-remove-1296674173</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
|
-
<billing-info>
|
|
15
|
-
<credit-card>
|
|
16
|
-
</credit-card>
|
|
17
|
-
</billing-info>
|
|
18
|
-
<accept-language nil="true"></accept-language>
|
|
19
|
-
</account>
|
|
20
|
-
|
|
21
|
-
headers:
|
|
22
|
-
user-agent:
|
|
23
|
-
- Recurly Ruby Client v0.4.13
|
|
24
|
-
content-type:
|
|
25
|
-
- application/xml
|
|
26
|
-
response: !ruby/struct:VCR::Response
|
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
28
|
-
code: 201
|
|
29
|
-
message: Created
|
|
30
|
-
headers:
|
|
31
|
-
location:
|
|
32
|
-
- http://api.lvh.me:3000/accounts/subscription-addons-remove-1296674173
|
|
33
|
-
content-type:
|
|
34
|
-
- application/xml; charset=utf-8
|
|
35
|
-
cache-control:
|
|
36
|
-
- no-cache
|
|
37
|
-
x-ua-compatible:
|
|
38
|
-
- IE=Edge
|
|
39
|
-
set-cookie:
|
|
40
|
-
- _recurly_session=29202e06355a5ec889911d949d5701fa; domain=.lvh.me; path=/; HttpOnly
|
|
41
|
-
server:
|
|
42
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
43
|
-
body: |
|
|
44
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
45
|
-
<account>
|
|
46
|
-
<id>subscription-addons-remove-1296674173</id>
|
|
47
|
-
<account_code>subscription-addons-remove-1296674173</account_code>
|
|
48
|
-
<username></username>
|
|
49
|
-
<email>verena@test.com</email>
|
|
50
|
-
<first_name>Verena</first_name>
|
|
51
|
-
<last_name>Test</last_name>
|
|
52
|
-
<company_name>Recurly Ruby Gem</company_name>
|
|
53
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
|
54
|
-
<closed type="boolean">false</closed>
|
|
55
|
-
<hosted_login_token>de249b33dbf64968822fa5b51a64c0cd</hosted_login_token>
|
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:37Z</created_at>
|
|
57
|
-
<state>active</state>
|
|
58
|
-
</account>
|
|
59
|
-
|
|
60
|
-
http_version: "1.1"
|
|
61
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
62
|
-
request: !ruby/struct:VCR::Request
|
|
63
|
-
method: :get
|
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
|
65
|
-
body:
|
|
66
|
-
headers:
|
|
67
|
-
user-agent:
|
|
68
|
-
- Recurly Ruby Client v0.4.13
|
|
69
|
-
accept:
|
|
70
|
-
- application/xml
|
|
71
|
-
accept-encoding:
|
|
72
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
73
|
-
response: !ruby/struct:VCR::Response
|
|
74
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
75
|
-
code: 200
|
|
76
|
-
message: OK
|
|
77
|
-
headers:
|
|
78
|
-
content-type:
|
|
79
|
-
- application/xml; charset=utf-8
|
|
80
|
-
etag:
|
|
81
|
-
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
|
82
|
-
cache-control:
|
|
83
|
-
- max-age=0, private, must-revalidate
|
|
84
|
-
x-ua-compatible:
|
|
85
|
-
- IE=Edge
|
|
86
|
-
server:
|
|
87
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
88
|
-
body: |
|
|
89
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
90
|
-
<plan>
|
|
91
|
-
<plan_code>paid</plan_code>
|
|
92
|
-
<name>paid</name>
|
|
93
|
-
<description></description>
|
|
94
|
-
<success_url></success_url>
|
|
95
|
-
<cancel_url></cancel_url>
|
|
96
|
-
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
|
97
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
98
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
|
99
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
|
100
|
-
<plan_interval_unit>months</plan_interval_unit>
|
|
101
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
|
102
|
-
<trial_interval_unit>days</trial_interval_unit>
|
|
103
|
-
</plan>
|
|
104
|
-
|
|
105
|
-
http_version: "1.1"
|
|
106
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
107
|
-
request: !ruby/struct:VCR::Request
|
|
108
|
-
method: :post
|
|
109
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
|
|
110
|
-
body: |
|
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
112
|
-
<subscription>
|
|
113
|
-
<plan-code>paid</plan-code>
|
|
114
|
-
<quantity type="integer">1</quantity>
|
|
115
|
-
<account>
|
|
116
|
-
<account-code>subscription-addons-remove-1296674173</account-code>
|
|
117
|
-
<first-name>Verena</first-name>
|
|
118
|
-
<last-name>Test</last-name>
|
|
119
|
-
<email>verena@test.com</email>
|
|
120
|
-
<company-name>Recurly Ruby Gem</company-name>
|
|
121
|
-
<billing-info>
|
|
122
|
-
<first-name>Verena</first-name>
|
|
123
|
-
<last-name>Test</last-name>
|
|
124
|
-
<address1>123 Test St</address1>
|
|
125
|
-
<city>San Francisco</city>
|
|
126
|
-
<state>CA</state>
|
|
127
|
-
<zip>94115</zip>
|
|
128
|
-
<country>US</country>
|
|
129
|
-
<credit-card>
|
|
130
|
-
<number>4111111111111111</number>
|
|
131
|
-
<year type="integer">2012</year>
|
|
132
|
-
<month type="integer">9</month>
|
|
133
|
-
<verification-value>123</verification-value>
|
|
134
|
-
</credit-card>
|
|
135
|
-
</billing-info>
|
|
136
|
-
<accept-language nil="true"></accept-language>
|
|
137
|
-
<id>subscription-addons-remove-1296674173</id>
|
|
138
|
-
<username nil="true"></username>
|
|
139
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
|
140
|
-
<closed type="boolean">false</closed>
|
|
141
|
-
<hosted-login-token>de249b33dbf64968822fa5b51a64c0cd</hosted-login-token>
|
|
142
|
-
<created-at type="datetime">2011-09-22T22:01:37Z</created-at>
|
|
143
|
-
<state>active</state>
|
|
144
|
-
</account>
|
|
145
|
-
<add-ons type="array">
|
|
146
|
-
<add-on>
|
|
147
|
-
<add-on-code>special</add-on-code>
|
|
148
|
-
<quantity type="integer">1</quantity>
|
|
149
|
-
<unit-amount type="integer">1000</unit-amount>
|
|
150
|
-
</add-on>
|
|
151
|
-
</add-ons>
|
|
152
|
-
<addons type="array"/>
|
|
153
|
-
</subscription>
|
|
154
|
-
|
|
155
|
-
headers:
|
|
156
|
-
user-agent:
|
|
157
|
-
- Recurly Ruby Client v0.4.13
|
|
158
|
-
content-type:
|
|
159
|
-
- application/xml
|
|
160
|
-
response: !ruby/struct:VCR::Response
|
|
161
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
162
|
-
code: 422
|
|
163
|
-
message:
|
|
164
|
-
headers:
|
|
165
|
-
content-type:
|
|
166
|
-
- application/xml
|
|
167
|
-
content-length:
|
|
168
|
-
- "94"
|
|
169
|
-
server:
|
|
170
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
171
|
-
body: |
|
|
172
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
173
|
-
<errors>
|
|
174
|
-
<error>Method not allowed</error>
|
|
175
|
-
</errors>
|
|
176
|
-
|
|
177
|
-
http_version: "1.1"
|
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :post
|
|
5
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
8
|
-
<account>
|
|
9
|
-
<account-code>subscription-cancel-with-code-1296674173</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
|
-
<billing-info>
|
|
15
|
-
<credit-card>
|
|
16
|
-
</credit-card>
|
|
17
|
-
</billing-info>
|
|
18
|
-
<accept-language nil="true"></accept-language>
|
|
19
|
-
</account>
|
|
20
|
-
|
|
21
|
-
headers:
|
|
22
|
-
user-agent:
|
|
23
|
-
- Recurly Ruby Client v0.4.13
|
|
24
|
-
content-type:
|
|
25
|
-
- application/xml
|
|
26
|
-
response: !ruby/struct:VCR::Response
|
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
28
|
-
code: 201
|
|
29
|
-
message: Created
|
|
30
|
-
headers:
|
|
31
|
-
location:
|
|
32
|
-
- http://api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173
|
|
33
|
-
content-type:
|
|
34
|
-
- application/xml; charset=utf-8
|
|
35
|
-
cache-control:
|
|
36
|
-
- no-cache
|
|
37
|
-
x-ua-compatible:
|
|
38
|
-
- IE=Edge
|
|
39
|
-
set-cookie:
|
|
40
|
-
- _recurly_session=a29e5f6c8e660a30936ee977f1cda311; domain=.lvh.me; path=/; HttpOnly
|
|
41
|
-
server:
|
|
42
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
43
|
-
body: |
|
|
44
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
45
|
-
<account>
|
|
46
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
47
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
48
|
-
<username></username>
|
|
49
|
-
<email>verena@test.com</email>
|
|
50
|
-
<first_name>Verena</first_name>
|
|
51
|
-
<last_name>Test</last_name>
|
|
52
|
-
<company_name>Recurly Ruby Gem</company_name>
|
|
53
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
|
54
|
-
<closed type="boolean">false</closed>
|
|
55
|
-
<hosted_login_token>5b9b506dbc0842a396bfe0e0916d1fbd</hosted_login_token>
|
|
56
|
-
<created_at type="datetime">2011-09-22T22:02:04Z</created_at>
|
|
57
|
-
<state>active</state>
|
|
58
|
-
</account>
|
|
59
|
-
|
|
60
|
-
http_version: "1.1"
|
|
61
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
62
|
-
request: !ruby/struct:VCR::Request
|
|
63
|
-
method: :get
|
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
|
65
|
-
body:
|
|
66
|
-
headers:
|
|
67
|
-
user-agent:
|
|
68
|
-
- Recurly Ruby Client v0.4.13
|
|
69
|
-
accept:
|
|
70
|
-
- application/xml
|
|
71
|
-
accept-encoding:
|
|
72
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
73
|
-
response: !ruby/struct:VCR::Response
|
|
74
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
75
|
-
code: 200
|
|
76
|
-
message: OK
|
|
77
|
-
headers:
|
|
78
|
-
content-type:
|
|
79
|
-
- application/xml; charset=utf-8
|
|
80
|
-
etag:
|
|
81
|
-
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
|
82
|
-
cache-control:
|
|
83
|
-
- max-age=0, private, must-revalidate
|
|
84
|
-
x-ua-compatible:
|
|
85
|
-
- IE=Edge
|
|
86
|
-
server:
|
|
87
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
88
|
-
body: |
|
|
89
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
90
|
-
<plan>
|
|
91
|
-
<plan_code>paid</plan_code>
|
|
92
|
-
<name>paid</name>
|
|
93
|
-
<description></description>
|
|
94
|
-
<success_url></success_url>
|
|
95
|
-
<cancel_url></cancel_url>
|
|
96
|
-
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
|
97
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
98
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
|
99
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
|
100
|
-
<plan_interval_unit>months</plan_interval_unit>
|
|
101
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
|
102
|
-
<trial_interval_unit>days</trial_interval_unit>
|
|
103
|
-
</plan>
|
|
104
|
-
|
|
105
|
-
http_version: "1.1"
|
|
106
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
107
|
-
request: !ruby/struct:VCR::Request
|
|
108
|
-
method: :post
|
|
109
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
|
110
|
-
body: |
|
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
112
|
-
<subscription>
|
|
113
|
-
<plan-code>paid</plan-code>
|
|
114
|
-
<quantity type="integer">1</quantity>
|
|
115
|
-
<account>
|
|
116
|
-
<account-code>subscription-cancel-with-code-1296674173</account-code>
|
|
117
|
-
<first-name>Verena</first-name>
|
|
118
|
-
<last-name>Test</last-name>
|
|
119
|
-
<email>verena@test.com</email>
|
|
120
|
-
<company-name>Recurly Ruby Gem</company-name>
|
|
121
|
-
<billing-info>
|
|
122
|
-
<first-name>Verena</first-name>
|
|
123
|
-
<last-name>Test</last-name>
|
|
124
|
-
<address1>123 Test St</address1>
|
|
125
|
-
<city>San Francisco</city>
|
|
126
|
-
<state>CA</state>
|
|
127
|
-
<zip>94115</zip>
|
|
128
|
-
<country>US</country>
|
|
129
|
-
<credit-card>
|
|
130
|
-
<number>4111111111111111</number>
|
|
131
|
-
<year type="integer">2012</year>
|
|
132
|
-
<month type="integer">9</month>
|
|
133
|
-
<verification-value>123</verification-value>
|
|
134
|
-
</credit-card>
|
|
135
|
-
</billing-info>
|
|
136
|
-
<accept-language nil="true"></accept-language>
|
|
137
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
138
|
-
<username nil="true"></username>
|
|
139
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
|
140
|
-
<closed type="boolean">false</closed>
|
|
141
|
-
<hosted-login-token>5b9b506dbc0842a396bfe0e0916d1fbd</hosted-login-token>
|
|
142
|
-
<created-at type="datetime">2011-09-22T22:02:04Z</created-at>
|
|
143
|
-
<state>active</state>
|
|
144
|
-
</account>
|
|
145
|
-
<addons type="array"/>
|
|
146
|
-
</subscription>
|
|
147
|
-
|
|
148
|
-
headers:
|
|
149
|
-
user-agent:
|
|
150
|
-
- Recurly Ruby Client v0.4.13
|
|
151
|
-
content-type:
|
|
152
|
-
- application/xml
|
|
153
|
-
response: !ruby/struct:VCR::Response
|
|
154
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
155
|
-
code: 201
|
|
156
|
-
message: Created
|
|
157
|
-
headers:
|
|
158
|
-
content-type:
|
|
159
|
-
- application/xml; charset=utf-8
|
|
160
|
-
cache-control:
|
|
161
|
-
- no-cache
|
|
162
|
-
x-ua-compatible:
|
|
163
|
-
- IE=Edge
|
|
164
|
-
set-cookie:
|
|
165
|
-
- _recurly_session=8df0d8dd42edf91ad25df400feea253b; domain=.lvh.me; path=/; HttpOnly
|
|
166
|
-
server:
|
|
167
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
168
|
-
body: |
|
|
169
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
170
|
-
<subscription>
|
|
171
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
172
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
173
|
-
<plan>
|
|
174
|
-
<plan_code>paid</plan_code>
|
|
175
|
-
<name>paid</name>
|
|
176
|
-
</plan>
|
|
177
|
-
<state>active</state>
|
|
178
|
-
<quantity type="integer">1</quantity>
|
|
179
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
180
|
-
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
|
181
|
-
<activated_at type="datetime">2011-09-22T22:02:04Z</activated_at>
|
|
182
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
|
183
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
|
184
|
-
<current_period_started_at type="datetime">2011-09-22T22:02:04Z</current_period_started_at>
|
|
185
|
-
<current_period_ends_at type="datetime">2011-10-22T22:02:04Z</current_period_ends_at>
|
|
186
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
187
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
188
|
-
<add_ons type="array">
|
|
189
|
-
</add_ons>
|
|
190
|
-
</subscription>
|
|
191
|
-
|
|
192
|
-
http_version: "1.1"
|
|
193
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
194
|
-
request: !ruby/struct:VCR::Request
|
|
195
|
-
method: :get
|
|
196
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
|
197
|
-
body:
|
|
198
|
-
headers:
|
|
199
|
-
user-agent:
|
|
200
|
-
- Recurly Ruby Client v0.4.13
|
|
201
|
-
accept:
|
|
202
|
-
- application/xml
|
|
203
|
-
accept-encoding:
|
|
204
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
205
|
-
response: !ruby/struct:VCR::Response
|
|
206
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
207
|
-
code: 200
|
|
208
|
-
message: OK
|
|
209
|
-
headers:
|
|
210
|
-
content-type:
|
|
211
|
-
- application/xml; charset=utf-8
|
|
212
|
-
etag:
|
|
213
|
-
- "\"dcaa71f9dbe36041a1c1481df7b97bfb\""
|
|
214
|
-
cache-control:
|
|
215
|
-
- max-age=0, private, must-revalidate
|
|
216
|
-
x-ua-compatible:
|
|
217
|
-
- IE=Edge
|
|
218
|
-
server:
|
|
219
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
220
|
-
body: |
|
|
221
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
222
|
-
<subscription>
|
|
223
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
224
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
225
|
-
<plan>
|
|
226
|
-
<plan_code>paid</plan_code>
|
|
227
|
-
<name>paid</name>
|
|
228
|
-
</plan>
|
|
229
|
-
<state>active</state>
|
|
230
|
-
<quantity type="integer">1</quantity>
|
|
231
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
232
|
-
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
|
233
|
-
<activated_at type="datetime">2011-09-22T22:02:04Z</activated_at>
|
|
234
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
|
235
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
|
236
|
-
<current_period_started_at type="datetime">2011-09-22T22:02:04Z</current_period_started_at>
|
|
237
|
-
<current_period_ends_at type="datetime">2011-10-22T22:02:04Z</current_period_ends_at>
|
|
238
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
239
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
240
|
-
<add_ons type="array">
|
|
241
|
-
</add_ons>
|
|
242
|
-
</subscription>
|
|
243
|
-
|
|
244
|
-
http_version: "1.1"
|
|
245
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
246
|
-
request: !ruby/struct:VCR::Request
|
|
247
|
-
method: :delete
|
|
248
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
|
249
|
-
body:
|
|
250
|
-
headers:
|
|
251
|
-
user-agent:
|
|
252
|
-
- Recurly Ruby Client v0.4.13
|
|
253
|
-
accept:
|
|
254
|
-
- application/xml
|
|
255
|
-
response: !ruby/struct:VCR::Response
|
|
256
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
257
|
-
code: 200
|
|
258
|
-
message: OK
|
|
259
|
-
headers:
|
|
260
|
-
content-type:
|
|
261
|
-
- application/xml; charset=utf-8
|
|
262
|
-
etag:
|
|
263
|
-
- "\"5753648687cd29842b9efd7bba70e98c\""
|
|
264
|
-
cache-control:
|
|
265
|
-
- max-age=0, private, must-revalidate
|
|
266
|
-
x-ua-compatible:
|
|
267
|
-
- IE=Edge
|
|
268
|
-
set-cookie:
|
|
269
|
-
- _recurly_session=9c74e17d0924b9d95805a7789ed45771; domain=.lvh.me; path=/; HttpOnly
|
|
270
|
-
server:
|
|
271
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
272
|
-
body: |
|
|
273
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
274
|
-
<subscription>
|
|
275
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
276
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
277
|
-
<plan>
|
|
278
|
-
<plan_code>paid</plan_code>
|
|
279
|
-
<name>paid</name>
|
|
280
|
-
</plan>
|
|
281
|
-
<state>canceled</state>
|
|
282
|
-
<quantity type="integer">1</quantity>
|
|
283
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
284
|
-
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
|
285
|
-
<activated_at type="datetime">2011-09-22T22:02:04Z</activated_at>
|
|
286
|
-
<canceled_at type="datetime">2011-09-22T22:02:06Z</canceled_at>
|
|
287
|
-
<expires_at type="datetime">2011-10-22T22:02:04Z</expires_at>
|
|
288
|
-
<current_period_started_at type="datetime">2011-09-22T22:02:04Z</current_period_started_at>
|
|
289
|
-
<current_period_ends_at type="datetime">2011-10-22T22:02:04Z</current_period_ends_at>
|
|
290
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
291
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
292
|
-
<add_ons type="array">
|
|
293
|
-
</add_ons>
|
|
294
|
-
</subscription>
|
|
295
|
-
|
|
296
|
-
http_version: "1.1"
|
|
297
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
298
|
-
request: !ruby/struct:VCR::Request
|
|
299
|
-
method: :get
|
|
300
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
|
301
|
-
body:
|
|
302
|
-
headers:
|
|
303
|
-
user-agent:
|
|
304
|
-
- Recurly Ruby Client v0.4.13
|
|
305
|
-
accept:
|
|
306
|
-
- application/xml
|
|
307
|
-
accept-encoding:
|
|
308
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
309
|
-
response: !ruby/struct:VCR::Response
|
|
310
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
311
|
-
code: 200
|
|
312
|
-
message: OK
|
|
313
|
-
headers:
|
|
314
|
-
content-type:
|
|
315
|
-
- application/xml; charset=utf-8
|
|
316
|
-
etag:
|
|
317
|
-
- "\"5753648687cd29842b9efd7bba70e98c\""
|
|
318
|
-
cache-control:
|
|
319
|
-
- max-age=0, private, must-revalidate
|
|
320
|
-
x-ua-compatible:
|
|
321
|
-
- IE=Edge
|
|
322
|
-
server:
|
|
323
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
324
|
-
body: |
|
|
325
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
326
|
-
<subscription>
|
|
327
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
328
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
329
|
-
<plan>
|
|
330
|
-
<plan_code>paid</plan_code>
|
|
331
|
-
<name>paid</name>
|
|
332
|
-
</plan>
|
|
333
|
-
<state>canceled</state>
|
|
334
|
-
<quantity type="integer">1</quantity>
|
|
335
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
336
|
-
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
|
337
|
-
<activated_at type="datetime">2011-09-22T22:02:04Z</activated_at>
|
|
338
|
-
<canceled_at type="datetime">2011-09-22T22:02:06Z</canceled_at>
|
|
339
|
-
<expires_at type="datetime">2011-10-22T22:02:04Z</expires_at>
|
|
340
|
-
<current_period_started_at type="datetime">2011-09-22T22:02:04Z</current_period_started_at>
|
|
341
|
-
<current_period_ends_at type="datetime">2011-10-22T22:02:04Z</current_period_ends_at>
|
|
342
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
343
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
344
|
-
<add_ons type="array">
|
|
345
|
-
</add_ons>
|
|
346
|
-
</subscription>
|
|
347
|
-
|
|
348
|
-
http_version: "1.1"
|
|
349
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
350
|
-
request: !ruby/struct:VCR::Request
|
|
351
|
-
method: :get
|
|
352
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
|
353
|
-
body:
|
|
354
|
-
headers:
|
|
355
|
-
user-agent:
|
|
356
|
-
- Recurly Ruby Client v0.4.13
|
|
357
|
-
accept:
|
|
358
|
-
- application/xml
|
|
359
|
-
accept-encoding:
|
|
360
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
361
|
-
response: !ruby/struct:VCR::Response
|
|
362
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
363
|
-
code: 200
|
|
364
|
-
message: OK
|
|
365
|
-
headers:
|
|
366
|
-
content-type:
|
|
367
|
-
- application/xml; charset=utf-8
|
|
368
|
-
etag:
|
|
369
|
-
- "\"5753648687cd29842b9efd7bba70e98c\""
|
|
370
|
-
cache-control:
|
|
371
|
-
- max-age=0, private, must-revalidate
|
|
372
|
-
x-ua-compatible:
|
|
373
|
-
- IE=Edge
|
|
374
|
-
server:
|
|
375
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
|
376
|
-
body: |
|
|
377
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
378
|
-
<subscription>
|
|
379
|
-
<id>subscription-cancel-with-code-1296674173</id>
|
|
380
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
|
381
|
-
<plan>
|
|
382
|
-
<plan_code>paid</plan_code>
|
|
383
|
-
<name>paid</name>
|
|
384
|
-
</plan>
|
|
385
|
-
<state>canceled</state>
|
|
386
|
-
<quantity type="integer">1</quantity>
|
|
387
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
|
388
|
-
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
|
389
|
-
<activated_at type="datetime">2011-09-22T22:02:04Z</activated_at>
|
|
390
|
-
<canceled_at type="datetime">2011-09-22T22:02:06Z</canceled_at>
|
|
391
|
-
<expires_at type="datetime">2011-10-22T22:02:04Z</expires_at>
|
|
392
|
-
<current_period_started_at type="datetime">2011-09-22T22:02:04Z</current_period_started_at>
|
|
393
|
-
<current_period_ends_at type="datetime">2011-10-22T22:02:04Z</current_period_ends_at>
|
|
394
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
|
395
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
|
396
|
-
<add_ons type="array">
|
|
397
|
-
</add_ons>
|
|
398
|
-
</subscription>
|
|
399
|
-
|
|
400
|
-
http_version: "1.1"
|