recurly 0.3.2 → 0.3.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/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -1,174 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<company-name>Recurly Ruby Gem</company-name>
|
10
|
-
<account-code>credit-lookup-1287461400</account-code>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<first-name>Verena</first-name>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
connection:
|
21
|
-
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- https://recurlytest3-test.recurly.com/accounts/credit-lookup-1287461400
|
33
|
-
connection:
|
34
|
-
- close
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "346"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:42 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
|
-
content-length:
|
44
|
-
- "581"
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=985a77c321c49306db3204ee22558e0c741d90793b253384021c784b3bc32961a40cc0b7411df85a671502bfe2b97a89ae983b34da9641de558fb44789d15675%3A%3A; domain=.recurly.com; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=cbebc809fe658f9495c462237e895921; domain=.recurly.com; path=/; secure; HttpOnly
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
body: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<account>
|
54
|
-
<id>credit-lookup-1287461400</id>
|
55
|
-
<account_code>credit-lookup-1287461400</account_code>
|
56
|
-
<username></username>
|
57
|
-
<email>verena@test.com</email>
|
58
|
-
<first_name>Verena</first_name>
|
59
|
-
<last_name>Test</last_name>
|
60
|
-
<company_name>Recurly Ruby Gem</company_name>
|
61
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
62
|
-
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>288979ee8e7c4fbd8f002913a95bb5c6</hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-01-08T08:04:42Z</created_at>
|
65
|
-
<state>active</state>
|
66
|
-
</account>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
71
|
-
method: :post
|
72
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits.xml
|
73
|
-
body: |
|
74
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
75
|
-
<credit>
|
76
|
-
<amount type="float">13.15</amount>
|
77
|
-
<description>free moniez 4 u</description>
|
78
|
-
</credit>
|
79
|
-
|
80
|
-
headers:
|
81
|
-
accept:
|
82
|
-
- "*/*"
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 201
|
92
|
-
message: Created
|
93
|
-
headers:
|
94
|
-
connection:
|
95
|
-
- close
|
96
|
-
content-type:
|
97
|
-
- application/xml; charset=utf-8
|
98
|
-
x-runtime:
|
99
|
-
- "48"
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:43 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
|
-
content-length:
|
105
|
-
- "516"
|
106
|
-
set-cookie:
|
107
|
-
- _recurly_session=a17d951527ccb464f1d248a4b55f4ef5; domain=.recurly.com; path=/; secure; HttpOnly
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
110
|
-
body: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<credit type="credit">
|
113
|
-
<id>e0af61d919a94fbb81e064fb24225a5c</id>
|
114
|
-
<account_code>credit-lookup-1287461400</account_code>
|
115
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-01-08T08:04:43Z</start_date>
|
117
|
-
<end_date nil="true" type="datetime"></end_date>
|
118
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
119
|
-
<description>free moniez 4 u</description>
|
120
|
-
<created_at type="datetime">2011-01-08T08:04:43Z</created_at>
|
121
|
-
</credit>
|
122
|
-
|
123
|
-
http_version: "1.1"
|
124
|
-
- !ruby/struct:VCR::HTTPInteraction
|
125
|
-
request: !ruby/struct:VCR::Request
|
126
|
-
method: :get
|
127
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits/e0af61d919a94fbb81e064fb24225a5c.xml
|
128
|
-
body:
|
129
|
-
headers:
|
130
|
-
accept:
|
131
|
-
- application/xml
|
132
|
-
connection:
|
133
|
-
- close
|
134
|
-
authorization:
|
135
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
136
|
-
response: !ruby/struct:VCR::Response
|
137
|
-
status: !ruby/struct:VCR::ResponseStatus
|
138
|
-
code: 200
|
139
|
-
message: OK
|
140
|
-
headers:
|
141
|
-
x-ua-compatible:
|
142
|
-
- IE=Edge
|
143
|
-
etag:
|
144
|
-
- "\"a76e99a7713b0e11b1cb8024d09ff64e\""
|
145
|
-
connection:
|
146
|
-
- close
|
147
|
-
content-type:
|
148
|
-
- application/xml; charset=utf-8
|
149
|
-
x-runtime:
|
150
|
-
- "14"
|
151
|
-
date:
|
152
|
-
- Sat, 08 Jan 2011 08:04:44 GMT
|
153
|
-
server:
|
154
|
-
- nginx/0.8.53
|
155
|
-
content-length:
|
156
|
-
- "516"
|
157
|
-
set-cookie:
|
158
|
-
- _recurly_session=e33f3d3a3a0b9f41cf875e88010c7b4c; domain=.recurly.com; path=/; secure; HttpOnly
|
159
|
-
cache-control:
|
160
|
-
- private, max-age=0, must-revalidate
|
161
|
-
body: |
|
162
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
-
<credit type="credit">
|
164
|
-
<id>e0af61d919a94fbb81e064fb24225a5c</id>
|
165
|
-
<account_code>credit-lookup-1287461400</account_code>
|
166
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
167
|
-
<start_date type="datetime">2011-01-08T08:04:43Z</start_date>
|
168
|
-
<end_date nil="true" type="datetime"></end_date>
|
169
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
170
|
-
<description>free moniez 4 u</description>
|
171
|
-
<created_at type="datetime">2011-01-08T08:04:43Z</created_at>
|
172
|
-
</credit>
|
173
|
-
|
174
|
-
http_version: "1.1"
|
@@ -1,479 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<company-name>Recurly Ruby Gem</company-name>
|
10
|
-
<account-code>subscription-addons-add-1292420980</account-code>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<first-name>Verena</first-name>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
connection:
|
21
|
-
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- https://recurlytest3-test.recurly.com/accounts/subscription-addons-add-1292420980
|
33
|
-
connection:
|
34
|
-
- close
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "347"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:03:33 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
|
-
content-length:
|
44
|
-
- "601"
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=eb041513b74636973252b8218412176c39d698a43e6da87c94fc2f4fcbcf5baaed81a211a8ad7b8da8a0793c2f08c89c5bfa0a0c12f9a9cccf71f7f36111d42f%3A%3A; domain=.recurly.com; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=9ef3369a2fcdb063647d7cfcb4118ef1; domain=.recurly.com; path=/; secure; HttpOnly
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
body: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<account>
|
54
|
-
<id>subscription-addons-add-1292420980</id>
|
55
|
-
<account_code>subscription-addons-add-1292420980</account_code>
|
56
|
-
<username></username>
|
57
|
-
<email>verena@test.com</email>
|
58
|
-
<first_name>Verena</first_name>
|
59
|
-
<last_name>Test</last_name>
|
60
|
-
<company_name>Recurly Ruby Gem</company_name>
|
61
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
62
|
-
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>eea1eec49c9a49dfb3899cf55893f539</hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-01-08T08:03:33Z</created_at>
|
65
|
-
<state>active</state>
|
66
|
-
</account>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
71
|
-
method: :get
|
72
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
|
73
|
-
body:
|
74
|
-
headers:
|
75
|
-
accept:
|
76
|
-
- application/xml
|
77
|
-
connection:
|
78
|
-
- close
|
79
|
-
authorization:
|
80
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
81
|
-
response: !ruby/struct:VCR::Response
|
82
|
-
status: !ruby/struct:VCR::ResponseStatus
|
83
|
-
code: 200
|
84
|
-
message: OK
|
85
|
-
headers:
|
86
|
-
x-ua-compatible:
|
87
|
-
- IE=Edge
|
88
|
-
etag:
|
89
|
-
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
90
|
-
connection:
|
91
|
-
- close
|
92
|
-
content-type:
|
93
|
-
- application/xml; charset=utf-8
|
94
|
-
x-runtime:
|
95
|
-
- "14"
|
96
|
-
date:
|
97
|
-
- Sat, 08 Jan 2011 08:03:34 GMT
|
98
|
-
server:
|
99
|
-
- nginx/0.8.53
|
100
|
-
content-length:
|
101
|
-
- "1564"
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=ecf92c8e4290969a84268a407d54f9d6; domain=.recurly.com; path=/; secure; HttpOnly
|
104
|
-
cache-control:
|
105
|
-
- private, max-age=0, must-revalidate
|
106
|
-
body: |
|
107
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
108
|
-
<plan>
|
109
|
-
<plan_code>paid</plan_code>
|
110
|
-
<name>Paid</name>
|
111
|
-
<description></description>
|
112
|
-
<success_url></success_url>
|
113
|
-
<cancel_url></cancel_url>
|
114
|
-
<created_at type="datetime">2010-09-19T00:56:05Z</created_at>
|
115
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
116
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
117
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
118
|
-
<plan_interval_unit>months</plan_interval_unit>
|
119
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
120
|
-
<trial_interval_unit>months</trial_interval_unit>
|
121
|
-
<latest_version depreciated="true">
|
122
|
-
<version type="integer">1</version>
|
123
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
124
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
125
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
126
|
-
<plan_interval_unit>months</plan_interval_unit>
|
127
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
128
|
-
<trial_interval_unit>months</trial_interval_unit>
|
129
|
-
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
130
|
-
</latest_version>
|
131
|
-
<add_ons type="collection">
|
132
|
-
<add_on>
|
133
|
-
<add_on_code>special</add_on_code>
|
134
|
-
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
135
|
-
<default_quantity>1</default_quantity>
|
136
|
-
</add_on>
|
137
|
-
<add_on>
|
138
|
-
<add_on_code>special2</add_on_code>
|
139
|
-
<default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
|
140
|
-
<default_quantity>1</default_quantity>
|
141
|
-
</add_on>
|
142
|
-
</add_ons>
|
143
|
-
</plan>
|
144
|
-
|
145
|
-
http_version: "1.1"
|
146
|
-
- !ruby/struct:VCR::HTTPInteraction
|
147
|
-
request: !ruby/struct:VCR::Request
|
148
|
-
method: :post
|
149
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-add-1292420980/subscription.xml
|
150
|
-
body: |
|
151
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
152
|
-
<subscription>
|
153
|
-
<quantity type="integer">1</quantity>
|
154
|
-
<plan-code>paid</plan-code>
|
155
|
-
<add-ons type="array">
|
156
|
-
<add-on>
|
157
|
-
<unit-amount type="integer">10</unit-amount>
|
158
|
-
<quantity type="integer">1</quantity>
|
159
|
-
<add-on-code>special</add-on-code>
|
160
|
-
</add-on>
|
161
|
-
</add-ons>
|
162
|
-
<account>
|
163
|
-
<created-at type="datetime">2011-01-08T08:03:33Z</created-at>
|
164
|
-
<hosted-login-token>eea1eec49c9a49dfb3899cf55893f539</hosted-login-token>
|
165
|
-
<company-name>Recurly Ruby Gem</company-name>
|
166
|
-
<account-code>subscription-addons-add-1292420980</account-code>
|
167
|
-
<closed type="boolean">false</closed>
|
168
|
-
<username type="yaml" nil="true"></username>
|
169
|
-
<id>subscription-addons-add-1292420980</id>
|
170
|
-
<last-name>Test</last-name>
|
171
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
172
|
-
<billing-info>
|
173
|
-
<address1>123 Test St</address1>
|
174
|
-
<city>San Francisco</city>
|
175
|
-
<zip>94115</zip>
|
176
|
-
<country>US</country>
|
177
|
-
<credit-card>
|
178
|
-
<number>1</number>
|
179
|
-
<month type="integer">1</month>
|
180
|
-
<year type="integer">2012</year>
|
181
|
-
<verification-value>123</verification-value>
|
182
|
-
</credit-card>
|
183
|
-
<last-name>Test</last-name>
|
184
|
-
<first-name>Verena</first-name>
|
185
|
-
<state>CA</state>
|
186
|
-
</billing-info>
|
187
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
188
|
-
<state>active</state>
|
189
|
-
<email>verena@test.com</email>
|
190
|
-
<first-name>Verena</first-name>
|
191
|
-
</account>
|
192
|
-
</subscription>
|
193
|
-
|
194
|
-
headers:
|
195
|
-
accept:
|
196
|
-
- "*/*"
|
197
|
-
connection:
|
198
|
-
- close
|
199
|
-
content-type:
|
200
|
-
- application/xml
|
201
|
-
authorization:
|
202
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
203
|
-
response: !ruby/struct:VCR::Response
|
204
|
-
status: !ruby/struct:VCR::ResponseStatus
|
205
|
-
code: 201
|
206
|
-
message: Created
|
207
|
-
headers:
|
208
|
-
connection:
|
209
|
-
- close
|
210
|
-
content-type:
|
211
|
-
- application/xml; charset=utf-8
|
212
|
-
x-runtime:
|
213
|
-
- "555"
|
214
|
-
date:
|
215
|
-
- Sat, 08 Jan 2011 08:03:35 GMT
|
216
|
-
server:
|
217
|
-
- nginx/0.8.53
|
218
|
-
content-length:
|
219
|
-
- "1099"
|
220
|
-
set-cookie:
|
221
|
-
- _recurly_session=55b1dcbdfd4a3400f1b10e0dd4eff25f; domain=.recurly.com; path=/; secure; HttpOnly
|
222
|
-
cache-control:
|
223
|
-
- no-cache
|
224
|
-
body: |
|
225
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
226
|
-
<subscription>
|
227
|
-
<id>subscription-addons-add-1292420980</id>
|
228
|
-
<account_code>subscription-addons-add-1292420980</account_code>
|
229
|
-
<plan>
|
230
|
-
<plan_code>paid</plan_code>
|
231
|
-
<name>Paid</name>
|
232
|
-
</plan>
|
233
|
-
<state>active</state>
|
234
|
-
<quantity type="integer">1</quantity>
|
235
|
-
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
236
|
-
<activated_at type="datetime">2011-01-08T08:03:35Z</activated_at>
|
237
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
238
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
239
|
-
<current_period_started_at type="datetime">2011-01-08T08:03:35Z</current_period_started_at>
|
240
|
-
<current_period_ends_at type="datetime">2011-02-08T08:03:35Z</current_period_ends_at>
|
241
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
242
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
243
|
-
<add_ons type="array">
|
244
|
-
<add_on>
|
245
|
-
<add_on_code>special</add_on_code>
|
246
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
247
|
-
<quantity type="integer">1</quantity>
|
248
|
-
</add_on>
|
249
|
-
</add_ons>
|
250
|
-
</subscription>
|
251
|
-
|
252
|
-
http_version: "1.1"
|
253
|
-
- !ruby/struct:VCR::HTTPInteraction
|
254
|
-
request: !ruby/struct:VCR::Request
|
255
|
-
method: :get
|
256
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-add-1292420980/subscription.xml
|
257
|
-
body:
|
258
|
-
headers:
|
259
|
-
accept:
|
260
|
-
- application/xml
|
261
|
-
connection:
|
262
|
-
- close
|
263
|
-
authorization:
|
264
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
265
|
-
response: !ruby/struct:VCR::Response
|
266
|
-
status: !ruby/struct:VCR::ResponseStatus
|
267
|
-
code: 200
|
268
|
-
message: OK
|
269
|
-
headers:
|
270
|
-
x-ua-compatible:
|
271
|
-
- IE=Edge
|
272
|
-
etag:
|
273
|
-
- "\"84751aceb45a34141fbf7ccd2f936f5d\""
|
274
|
-
connection:
|
275
|
-
- close
|
276
|
-
content-type:
|
277
|
-
- application/xml; charset=utf-8
|
278
|
-
x-runtime:
|
279
|
-
- "25"
|
280
|
-
date:
|
281
|
-
- Sat, 08 Jan 2011 08:03:36 GMT
|
282
|
-
server:
|
283
|
-
- nginx/0.8.53
|
284
|
-
content-length:
|
285
|
-
- "1099"
|
286
|
-
set-cookie:
|
287
|
-
- _recurly_session=7502db040e070c7ce927260351c64e5c; domain=.recurly.com; path=/; secure; HttpOnly
|
288
|
-
cache-control:
|
289
|
-
- private, max-age=0, must-revalidate
|
290
|
-
body: |
|
291
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
292
|
-
<subscription>
|
293
|
-
<id>subscription-addons-add-1292420980</id>
|
294
|
-
<account_code>subscription-addons-add-1292420980</account_code>
|
295
|
-
<plan>
|
296
|
-
<plan_code>paid</plan_code>
|
297
|
-
<name>Paid</name>
|
298
|
-
</plan>
|
299
|
-
<state>active</state>
|
300
|
-
<quantity type="integer">1</quantity>
|
301
|
-
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
302
|
-
<activated_at type="datetime">2011-01-08T08:03:35Z</activated_at>
|
303
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
304
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
305
|
-
<current_period_started_at type="datetime">2011-01-08T08:03:35Z</current_period_started_at>
|
306
|
-
<current_period_ends_at type="datetime">2011-02-08T08:03:35Z</current_period_ends_at>
|
307
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
308
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
309
|
-
<add_ons type="array">
|
310
|
-
<add_on>
|
311
|
-
<add_on_code>special</add_on_code>
|
312
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
313
|
-
<quantity type="integer">1</quantity>
|
314
|
-
</add_on>
|
315
|
-
</add_ons>
|
316
|
-
</subscription>
|
317
|
-
|
318
|
-
http_version: "1.1"
|
319
|
-
- !ruby/struct:VCR::HTTPInteraction
|
320
|
-
request: !ruby/struct:VCR::Request
|
321
|
-
method: :put
|
322
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-add-1292420980/subscription.xml
|
323
|
-
body: |
|
324
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
325
|
-
<subscription>
|
326
|
-
<timeframe>now</timeframe>
|
327
|
-
<add-ons type="array">
|
328
|
-
<add-on>
|
329
|
-
<quantity type="integer">1</quantity>
|
330
|
-
<unit-amount-in-cents type="integer">1000</unit-amount-in-cents>
|
331
|
-
<add-on-code>special</add-on-code>
|
332
|
-
</add-on>
|
333
|
-
<add-on>
|
334
|
-
<unit-amount type="integer">500</unit-amount>
|
335
|
-
<quantity type="integer">2</quantity>
|
336
|
-
<add-on-code>special2</add-on-code>
|
337
|
-
</add-on>
|
338
|
-
</add-ons>
|
339
|
-
</subscription>
|
340
|
-
|
341
|
-
headers:
|
342
|
-
accept:
|
343
|
-
- "*/*"
|
344
|
-
connection:
|
345
|
-
- close
|
346
|
-
content-type:
|
347
|
-
- application/xml
|
348
|
-
authorization:
|
349
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
350
|
-
response: !ruby/struct:VCR::Response
|
351
|
-
status: !ruby/struct:VCR::ResponseStatus
|
352
|
-
code: 200
|
353
|
-
message: OK
|
354
|
-
headers:
|
355
|
-
x-ua-compatible:
|
356
|
-
- IE=Edge
|
357
|
-
etag:
|
358
|
-
- "\"392d5655c92dadc914a08df18ea083ea\""
|
359
|
-
connection:
|
360
|
-
- close
|
361
|
-
content-type:
|
362
|
-
- application/xml; charset=utf-8
|
363
|
-
x-runtime:
|
364
|
-
- "671"
|
365
|
-
date:
|
366
|
-
- Sat, 08 Jan 2011 08:03:38 GMT
|
367
|
-
server:
|
368
|
-
- nginx/0.8.53
|
369
|
-
content-length:
|
370
|
-
- "1286"
|
371
|
-
set-cookie:
|
372
|
-
- _recurly_session=50e10b863f146ed411dac71b9fc315aa; domain=.recurly.com; path=/; secure; HttpOnly
|
373
|
-
cache-control:
|
374
|
-
- private, max-age=0, must-revalidate
|
375
|
-
body: |
|
376
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
377
|
-
<subscription>
|
378
|
-
<id>subscription-addons-add-1292420980</id>
|
379
|
-
<account_code>subscription-addons-add-1292420980</account_code>
|
380
|
-
<plan>
|
381
|
-
<plan_code>paid</plan_code>
|
382
|
-
<name>Paid</name>
|
383
|
-
</plan>
|
384
|
-
<state>active</state>
|
385
|
-
<quantity type="integer">1</quantity>
|
386
|
-
<total_amount_in_cents type="integer">102000</total_amount_in_cents>
|
387
|
-
<activated_at type="datetime">2011-01-08T08:03:37Z</activated_at>
|
388
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
389
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
390
|
-
<current_period_started_at type="datetime">2011-01-08T08:03:35Z</current_period_started_at>
|
391
|
-
<current_period_ends_at type="datetime">2011-02-08T08:03:35Z</current_period_ends_at>
|
392
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
393
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
394
|
-
<add_ons type="array">
|
395
|
-
<add_on>
|
396
|
-
<add_on_code>special</add_on_code>
|
397
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
398
|
-
<quantity type="integer">1</quantity>
|
399
|
-
</add_on>
|
400
|
-
<add_on>
|
401
|
-
<add_on_code>special2</add_on_code>
|
402
|
-
<unit_amount_in_cents type="integer">50000</unit_amount_in_cents>
|
403
|
-
<quantity type="integer">2</quantity>
|
404
|
-
</add_on>
|
405
|
-
</add_ons>
|
406
|
-
</subscription>
|
407
|
-
|
408
|
-
http_version: "1.1"
|
409
|
-
- !ruby/struct:VCR::HTTPInteraction
|
410
|
-
request: !ruby/struct:VCR::Request
|
411
|
-
method: :get
|
412
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-add-1292420980/subscription.xml
|
413
|
-
body:
|
414
|
-
headers:
|
415
|
-
accept:
|
416
|
-
- application/xml
|
417
|
-
connection:
|
418
|
-
- close
|
419
|
-
authorization:
|
420
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
421
|
-
response: !ruby/struct:VCR::Response
|
422
|
-
status: !ruby/struct:VCR::ResponseStatus
|
423
|
-
code: 200
|
424
|
-
message: OK
|
425
|
-
headers:
|
426
|
-
x-ua-compatible:
|
427
|
-
- IE=Edge
|
428
|
-
etag:
|
429
|
-
- "\"392d5655c92dadc914a08df18ea083ea\""
|
430
|
-
connection:
|
431
|
-
- close
|
432
|
-
content-type:
|
433
|
-
- application/xml; charset=utf-8
|
434
|
-
x-runtime:
|
435
|
-
- "26"
|
436
|
-
date:
|
437
|
-
- Sat, 08 Jan 2011 08:03:38 GMT
|
438
|
-
server:
|
439
|
-
- nginx/0.8.53
|
440
|
-
content-length:
|
441
|
-
- "1286"
|
442
|
-
set-cookie:
|
443
|
-
- _recurly_session=f2b8638cde754278bbeb86b552db7b71; domain=.recurly.com; path=/; secure; HttpOnly
|
444
|
-
cache-control:
|
445
|
-
- private, max-age=0, must-revalidate
|
446
|
-
body: |
|
447
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
448
|
-
<subscription>
|
449
|
-
<id>subscription-addons-add-1292420980</id>
|
450
|
-
<account_code>subscription-addons-add-1292420980</account_code>
|
451
|
-
<plan>
|
452
|
-
<plan_code>paid</plan_code>
|
453
|
-
<name>Paid</name>
|
454
|
-
</plan>
|
455
|
-
<state>active</state>
|
456
|
-
<quantity type="integer">1</quantity>
|
457
|
-
<total_amount_in_cents type="integer">102000</total_amount_in_cents>
|
458
|
-
<activated_at type="datetime">2011-01-08T08:03:37Z</activated_at>
|
459
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
460
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
461
|
-
<current_period_started_at type="datetime">2011-01-08T08:03:35Z</current_period_started_at>
|
462
|
-
<current_period_ends_at type="datetime">2011-02-08T08:03:35Z</current_period_ends_at>
|
463
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
464
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
465
|
-
<add_ons type="array">
|
466
|
-
<add_on>
|
467
|
-
<add_on_code>special</add_on_code>
|
468
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
469
|
-
<quantity type="integer">1</quantity>
|
470
|
-
</add_on>
|
471
|
-
<add_on>
|
472
|
-
<add_on_code>special2</add_on_code>
|
473
|
-
<unit_amount_in_cents type="integer">50000</unit_amount_in_cents>
|
474
|
-
<quantity type="integer">2</quantity>
|
475
|
-
</add_on>
|
476
|
-
</add_ons>
|
477
|
-
</subscription>
|
478
|
-
|
479
|
-
http_version: "1.1"
|