recurly 0.3.3 → 0.3.4

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.

Files changed (99) hide show
  1. data/README.md +15 -11
  2. data/lib/patches/active_resource/connection.rb +10 -0
  3. data/lib/recurly.rb +35 -9
  4. data/lib/recurly/account.rb +22 -1
  5. data/lib/recurly/account_base.rb +35 -0
  6. data/lib/recurly/base.rb +26 -39
  7. data/lib/recurly/billing_info.rb +40 -1
  8. data/lib/recurly/charge.rb +12 -1
  9. data/lib/recurly/coupon.rb +8 -0
  10. data/lib/recurly/credit.rb +12 -1
  11. data/lib/recurly/exceptions.rb +19 -0
  12. data/lib/recurly/invoice.rb +1 -1
  13. data/lib/recurly/plan.rb +13 -1
  14. data/lib/recurly/rails3/recurly.rake +5 -3
  15. data/lib/recurly/subscription.rb +21 -3
  16. data/lib/recurly/transaction.rb +29 -1
  17. data/lib/recurly/transparent.rb +140 -0
  18. data/lib/recurly/version.rb +1 -1
  19. data/spec/config/recurly.yml +12 -0
  20. data/spec/config/test1.yml +3 -1
  21. data/spec/config/test2.yml +4 -2
  22. data/spec/integration/credit_spec.rb +6 -6
  23. data/spec/integration/plan_spec.rb +2 -2
  24. data/spec/support/factory.rb +5 -3
  25. data/spec/unit/account_spec.rb +19 -0
  26. data/spec/unit/billing_info_spec.rb +38 -0
  27. data/spec/unit/charge_spec.rb +18 -0
  28. data/spec/unit/config_spec.rb +10 -6
  29. data/spec/unit/coupon_spec.rb +13 -0
  30. data/spec/unit/credit_spec.rb +18 -0
  31. data/spec/unit/plan_spec.rb +18 -0
  32. data/spec/unit/subscription_spec.rb +25 -0
  33. data/spec/unit/transaction_spec.rb +32 -0
  34. data/spec/unit/transparent_spec.rb +114 -0
  35. data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
  36. data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
  37. data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
  38. data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
  39. data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
  40. data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
  41. data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
  42. data/spec/vcr/account/list/1297746103.yml +1579 -0
  43. data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
  44. data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
  45. data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
  46. data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
  47. data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
  48. data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
  49. data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
  50. data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
  51. data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
  52. data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
  53. data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
  54. data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
  55. data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
  56. data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
  57. data/spec/vcr/credit/delete/1299714599.yml +262 -0
  58. data/spec/vcr/credit/list/1299714599.yml +319 -0
  59. data/spec/vcr/credit/lookup/1299714599.yml +183 -0
  60. data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
  61. data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
  62. data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
  63. data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
  64. data/spec/vcr/plan/all.yml +30 -30
  65. data/spec/vcr/plan/find.yml +25 -25
  66. data/spec/vcr/plan/update.yml +16 -15
  67. data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
  68. data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
  69. data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
  70. data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
  71. data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
  72. data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
  73. data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
  74. data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
  75. data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
  76. data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
  77. data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
  78. data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
  79. data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
  80. data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
  81. data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
  82. data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
  83. data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
  84. data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
  85. data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
  86. data/spec/vcr/transaction/refund/1297746103.yml +213 -0
  87. data/spec/vcr/transaction/void/1297746103.yml +213 -0
  88. metadata +146 -139
  89. data/spec/vcr/account/list/1296674173.yml +0 -55
  90. data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
  91. data/spec/vcr/credit/create/1296674173.yml +0 -121
  92. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  93. data/spec/vcr/credit/list/1296674173.yml +0 -121
  94. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  95. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  96. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  97. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  98. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  99. data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,11 +2,11 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
6
6
  body:
7
7
  headers:
8
8
  authorization:
9
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
9
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
10
10
  accept:
11
11
  - application/xml
12
12
  accept-encoding:
@@ -21,23 +21,23 @@
21
21
  message: "OK "
22
22
  headers:
23
23
  x-runtime:
24
- - "70"
24
+ - "209"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
27
  etag:
28
- - "\"70b5c605373b1a4346a2d7ed46048dc4\""
28
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
29
29
  cache-control:
30
30
  - private, max-age=0, must-revalidate
31
31
  content-length:
32
- - "1150"
32
+ - "1146"
33
33
  server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
35
  date:
36
- - Thu, 03 Feb 2011 22:20:48 GMT
36
+ - Fri, 11 Mar 2011 18:51:36 GMT
37
37
  connection:
38
38
  - close
39
39
  set-cookie:
40
- - _recurly_session=06b515611cfae5c612449ba7b7c063b1; domain=.recurly.local; path=/; HttpOnly
40
+ - _recurly_session=fcb5db8b958c125e407c1905e0bea577; domain=.recurly.local; path=/; HttpOnly
41
41
  body: |
42
42
  <?xml version="1.0" encoding="UTF-8"?>
43
43
  <plan>
@@ -50,7 +50,7 @@
50
50
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
51
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
52
52
  <plan_interval_length type="integer">1</plan_interval_length>
53
- <plan_interval_unit>months</plan_interval_unit>
53
+ <plan_interval_unit>days</plan_interval_unit>
54
54
  <trial_interval_length type="integer">0</trial_interval_length>
55
55
  <trial_interval_unit>months</trial_interval_unit>
56
56
  <latest_version depreciated="true">
@@ -58,10 +58,10 @@
58
58
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
59
59
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
60
60
  <plan_interval_length type="integer">1</plan_interval_length>
61
- <plan_interval_unit>months</plan_interval_unit>
61
+ <plan_interval_unit>days</plan_interval_unit>
62
62
  <trial_interval_length type="integer">0</trial_interval_length>
63
63
  <trial_interval_unit>months</trial_interval_unit>
64
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
64
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
65
65
  </latest_version>
66
66
  </plan>
67
67
 
@@ -69,11 +69,11 @@
69
69
  - !ruby/struct:VCR::HTTPInteraction
70
70
  request: !ruby/struct:VCR::Request
71
71
  method: :get
72
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/trial.xml
72
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/trial.xml
73
73
  body:
74
74
  headers:
75
75
  authorization:
76
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
76
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
77
77
  accept:
78
78
  - application/xml
79
79
  accept-encoding:
@@ -88,7 +88,7 @@
88
88
  message: "OK "
89
89
  headers:
90
90
  x-runtime:
91
- - "268"
91
+ - "237"
92
92
  content-type:
93
93
  - application/xml; charset=utf-8
94
94
  etag:
@@ -100,11 +100,11 @@
100
100
  server:
101
101
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
102
102
  date:
103
- - Thu, 03 Feb 2011 22:20:50 GMT
103
+ - Fri, 11 Mar 2011 18:51:38 GMT
104
104
  connection:
105
105
  - close
106
106
  set-cookie:
107
- - _recurly_session=38c960e386b133aa9b7a5c20c91bc2d3; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=336562a6866b36d92c434fe5c2dee103; domain=.recurly.local; path=/; HttpOnly
108
108
  body: |
109
109
  <?xml version="1.0" encoding="UTF-8"?>
110
110
  <plan>
@@ -136,11 +136,11 @@
136
136
  - !ruby/struct:VCR::HTTPInteraction
137
137
  request: !ruby/struct:VCR::Request
138
138
  method: :get
139
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
139
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
140
140
  body:
141
141
  headers:
142
142
  authorization:
143
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
143
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
144
144
  accept:
145
145
  - application/xml
146
146
  accept-encoding:
@@ -155,23 +155,23 @@
155
155
  message: "OK "
156
156
  headers:
157
157
  x-runtime:
158
- - "207"
158
+ - "214"
159
159
  content-type:
160
160
  - application/xml; charset=utf-8
161
161
  etag:
162
- - "\"70b5c605373b1a4346a2d7ed46048dc4\""
162
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
163
163
  cache-control:
164
164
  - private, max-age=0, must-revalidate
165
165
  content-length:
166
- - "1150"
166
+ - "1146"
167
167
  server:
168
168
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
169
  date:
170
- - Thu, 03 Feb 2011 22:20:52 GMT
170
+ - Fri, 11 Mar 2011 18:51:40 GMT
171
171
  connection:
172
172
  - close
173
173
  set-cookie:
174
- - _recurly_session=cfc756e17d3299cdd0822df8960ea032; domain=.recurly.local; path=/; HttpOnly
174
+ - _recurly_session=0571f9a990de0455fdbc8236b2893a07; domain=.recurly.local; path=/; HttpOnly
175
175
  body: |
176
176
  <?xml version="1.0" encoding="UTF-8"?>
177
177
  <plan>
@@ -184,7 +184,7 @@
184
184
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
185
185
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
186
186
  <plan_interval_length type="integer">1</plan_interval_length>
187
- <plan_interval_unit>months</plan_interval_unit>
187
+ <plan_interval_unit>days</plan_interval_unit>
188
188
  <trial_interval_length type="integer">0</trial_interval_length>
189
189
  <trial_interval_unit>months</trial_interval_unit>
190
190
  <latest_version depreciated="true">
@@ -192,10 +192,10 @@
192
192
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
193
193
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
194
194
  <plan_interval_length type="integer">1</plan_interval_length>
195
- <plan_interval_unit>months</plan_interval_unit>
195
+ <plan_interval_unit>days</plan_interval_unit>
196
196
  <trial_interval_length type="integer">0</trial_interval_length>
197
197
  <trial_interval_unit>months</trial_interval_unit>
198
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
198
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
199
199
  </latest_version>
200
200
  </plan>
201
201
 
@@ -2,11 +2,11 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/test.xml
6
6
  body:
7
7
  headers:
8
8
  authorization:
9
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
9
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
10
10
  accept:
11
11
  - application/xml
12
12
  accept-encoding:
@@ -21,7 +21,7 @@
21
21
  message: "OK "
22
22
  headers:
23
23
  x-runtime:
24
- - "214"
24
+ - "236"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
27
  etag:
@@ -33,11 +33,11 @@
33
33
  server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
35
  date:
36
- - Thu, 03 Feb 2011 22:20:55 GMT
36
+ - Fri, 11 Mar 2011 18:51:42 GMT
37
37
  connection:
38
38
  - close
39
39
  set-cookie:
40
- - _recurly_session=2c7f4cc9d4185d0d2d2c0370d015824b; domain=.recurly.local; path=/; HttpOnly
40
+ - _recurly_session=7f7cb33bfd8f8394f37e5a6b58b52211; domain=.recurly.local; path=/; HttpOnly
41
41
  body: |
42
42
  <?xml version="1.0" encoding="UTF-8"?>
43
43
  <plan>
@@ -69,7 +69,7 @@
69
69
  - !ruby/struct:VCR::HTTPInteraction
70
70
  request: !ruby/struct:VCR::Request
71
71
  method: :put
72
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
72
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/test.xml
73
73
  body: |
74
74
  <?xml version="1.0" encoding="UTF-8"?>
75
75
  <plan>
@@ -96,11 +96,12 @@
96
96
  <trial-interval-unit>months</trial-interval-unit>
97
97
  <created-at type="datetime">2011-02-02T21:10:51Z</created-at>
98
98
  </latest-version>
99
+ <amount-in-cents type="integer">200</amount-in-cents>
99
100
  </plan>
100
101
 
101
102
  headers:
102
103
  authorization:
103
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
104
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
104
105
  content-type:
105
106
  - application/xml
106
107
  accept:
@@ -117,7 +118,7 @@
117
118
  cache-control:
118
119
  - no-cache
119
120
  x-runtime:
120
- - "254"
121
+ - "270"
121
122
  content-type:
122
123
  - application/xml; charset=utf-8
123
124
  content-length:
@@ -125,21 +126,21 @@
125
126
  server:
126
127
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
127
128
  date:
128
- - Thu, 03 Feb 2011 22:20:57 GMT
129
+ - Fri, 11 Mar 2011 18:51:45 GMT
129
130
  connection:
130
131
  - close
131
132
  set-cookie:
132
- - _recurly_session=fa7066b1d7a3b600898c36c4d30001bd; domain=.recurly.local; path=/; HttpOnly
133
+ - _recurly_session=42ef38fa587f8afb70d2f35cee1fdee9; domain=.recurly.local; path=/; HttpOnly
133
134
  body: " "
134
135
  http_version: "1.1"
135
136
  - !ruby/struct:VCR::HTTPInteraction
136
137
  request: !ruby/struct:VCR::Request
137
138
  method: :get
138
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
139
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/test.xml
139
140
  body:
140
141
  headers:
141
142
  authorization:
142
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
143
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
143
144
  accept:
144
145
  - application/xml
145
146
  accept-encoding:
@@ -154,7 +155,7 @@
154
155
  message: "OK "
155
156
  headers:
156
157
  x-runtime:
157
- - "208"
158
+ - "214"
158
159
  content-type:
159
160
  - application/xml; charset=utf-8
160
161
  etag:
@@ -166,11 +167,11 @@
166
167
  server:
167
168
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
168
169
  date:
169
- - Thu, 03 Feb 2011 22:20:59 GMT
170
+ - Fri, 11 Mar 2011 18:51:47 GMT
170
171
  connection:
171
172
  - close
172
173
  set-cookie:
173
- - _recurly_session=943ed2e9e815ec4c7024797c220fda48; domain=.recurly.local; path=/; HttpOnly
174
+ - _recurly_session=462c1632920ef5a5b620008fe0345169; domain=.recurly.local; path=/; HttpOnly
174
175
  body: |
175
176
  <?xml version="1.0" encoding="UTF-8"?>
176
177
  <plan>
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-addons-add-1296674173</account-code>
9
+ <account-code>subscription-addons-add-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/subscription-addons-add-1296674173
40
+ - http://app.recurly.local:3000/accounts/subscription-addons-add-1297746103
37
41
  x-runtime:
38
- - "665"
42
+ - "391"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:17:22 GMT
50
+ - Fri, 11 Mar 2011 18:47:36 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=b10008504b80fa0535f772db641156997545730d19eff1bb14543261204538190642a01b920e0165b22b37cbabd8a844ff19cf62d5a8818c525e773037c26264%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=f847209e91f72d847fd8aa815fe0889e; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=4ccc504a76430f7b63c2e8e78ed87e420ddf65efcd631d2da76fb0ae75db3c245bb7636aebcfa34e915a66a86ac7b2672ba6a1bfc6315bab7bd813f866cfe3b6%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=8be7e87e6fa5cf29b1651e8f176c05f6; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>subscription-addons-add-1296674173</id>
57
- <account_code>subscription-addons-add-1296674173</account_code>
59
+ <id>subscription-addons-add-1297746103</id>
60
+ <account_code>subscription-addons-add-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>3d8d1daa750b4990b23985ef36c1b008</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:17:22Z</created_at>
68
+ <hosted_login_token>093405440db5433a92c7cd8474b69070</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:47:36Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,11 +74,11 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :get
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
75
78
  body:
76
79
  headers:
77
80
  authorization:
78
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
81
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
79
82
  accept:
80
83
  - application/xml
81
84
  accept-encoding:
@@ -90,23 +93,23 @@
90
93
  message: "OK "
91
94
  headers:
92
95
  x-runtime:
93
- - "175"
96
+ - "191"
94
97
  content-type:
95
98
  - application/xml; charset=utf-8
96
99
  etag:
97
- - "\"70b5c605373b1a4346a2d7ed46048dc4\""
100
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
98
101
  cache-control:
99
102
  - private, max-age=0, must-revalidate
100
103
  content-length:
101
- - "1150"
104
+ - "1146"
102
105
  server:
103
106
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
107
  date:
105
- - Thu, 03 Feb 2011 22:17:24 GMT
108
+ - Fri, 11 Mar 2011 18:47:38 GMT
106
109
  connection:
107
110
  - close
108
111
  set-cookie:
109
- - _recurly_session=e28ad738775ba58881f73cdd96ce6201; domain=.recurly.local; path=/; HttpOnly
112
+ - _recurly_session=fd44e1da144f48392f7f9d94d274f6d5; domain=.recurly.local; path=/; HttpOnly
110
113
  body: |
111
114
  <?xml version="1.0" encoding="UTF-8"?>
112
115
  <plan>
@@ -119,7 +122,7 @@
119
122
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
120
123
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
121
124
  <plan_interval_length type="integer">1</plan_interval_length>
122
- <plan_interval_unit>months</plan_interval_unit>
125
+ <plan_interval_unit>days</plan_interval_unit>
123
126
  <trial_interval_length type="integer">0</trial_interval_length>
124
127
  <trial_interval_unit>months</trial_interval_unit>
125
128
  <latest_version depreciated="true">
@@ -127,10 +130,10 @@
127
130
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
131
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
132
  <plan_interval_length type="integer">1</plan_interval_length>
130
- <plan_interval_unit>months</plan_interval_unit>
133
+ <plan_interval_unit>days</plan_interval_unit>
131
134
  <trial_interval_length type="integer">0</trial_interval_length>
132
135
  <trial_interval_unit>months</trial_interval_unit>
133
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
136
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
134
137
  </latest_version>
135
138
  </plan>
136
139
 
@@ -138,27 +141,21 @@
138
141
  - !ruby/struct:VCR::HTTPInteraction
139
142
  request: !ruby/struct:VCR::Request
140
143
  method: :post
141
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-add-1296674173/subscription.xml
144
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-addons-add-1297746103/subscription.xml
142
145
  body: |
143
146
  <?xml version="1.0" encoding="UTF-8"?>
144
147
  <subscription>
145
148
  <plan-code>paid</plan-code>
146
149
  <quantity type="integer">1</quantity>
147
150
  <account>
148
- <account-code>subscription-addons-add-1296674173</account-code>
151
+ <account-code>subscription-addons-add-1297746103</account-code>
149
152
  <first-name>Verena</first-name>
150
153
  <last-name>Test</last-name>
151
154
  <email>verena@test.com</email>
152
155
  <company-name>Recurly Ruby Gem</company-name>
153
- <accept-language type="yaml" nil="true"></accept-language>
154
- <id>subscription-addons-add-1296674173</id>
155
- <username type="yaml" nil="true"></username>
156
- <balance-in-cents type="integer">0</balance-in-cents>
157
- <closed type="boolean">false</closed>
158
- <hosted-login-token>3d8d1daa750b4990b23985ef36c1b008</hosted-login-token>
159
- <created-at type="datetime">2011-02-03T22:17:22Z</created-at>
160
- <state>active</state>
161
156
  <billing-info>
157
+ <first-name>Verena</first-name>
158
+ <last-name>Test</last-name>
162
159
  <address1>123 Test St</address1>
163
160
  <city>San Francisco</city>
164
161
  <state>CA</state>
@@ -167,12 +164,18 @@
167
164
  <credit-card>
168
165
  <number>4111111111111111</number>
169
166
  <year type="integer">2012</year>
170
- <month type="integer">2</month>
167
+ <month type="integer">3</month>
171
168
  <verification-value>123</verification-value>
172
169
  </credit-card>
173
- <first-name>Verena</first-name>
174
- <last-name>Test</last-name>
175
170
  </billing-info>
171
+ <accept-language type="yaml" nil="true"></accept-language>
172
+ <id>subscription-addons-add-1297746103</id>
173
+ <username type="yaml" nil="true"></username>
174
+ <balance-in-cents type="integer">0</balance-in-cents>
175
+ <closed type="boolean">false</closed>
176
+ <hosted-login-token>093405440db5433a92c7cd8474b69070</hosted-login-token>
177
+ <created-at type="datetime">2011-03-11T18:47:36Z</created-at>
178
+ <state>active</state>
176
179
  </account>
177
180
  <add-ons type="array">
178
181
  <add-on>
@@ -181,11 +184,12 @@
181
184
  <unit-amount type="integer">10</unit-amount>
182
185
  </add-on>
183
186
  </add-ons>
187
+ <addons type="array"/>
184
188
  </subscription>
185
189
 
186
190
  headers:
187
191
  authorization:
188
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
192
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
189
193
  content-type:
190
194
  - application/xml
191
195
  accept:
@@ -202,7 +206,7 @@
202
206
  cache-control:
203
207
  - no-cache
204
208
  x-runtime:
205
- - "575"
209
+ - "549"
206
210
  content-type:
207
211
  - application/xml; charset=utf-8
208
212
  content-length:
@@ -210,11 +214,11 @@
210
214
  server:
211
215
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
212
216
  date:
213
- - Thu, 03 Feb 2011 22:17:26 GMT
217
+ - Fri, 11 Mar 2011 18:47:40 GMT
214
218
  connection:
215
219
  - close
216
220
  set-cookie:
217
- - _recurly_session=8d2dc7e4941757f497997e9071ad8a66; domain=.recurly.local; path=/; HttpOnly
221
+ - _recurly_session=364bf53f41dbe92a2745a379946a1d2f; domain=.recurly.local; path=/; HttpOnly
218
222
  body: |
219
223
  <?xml version="1.0" encoding="UTF-8"?>
220
224
  <errors>