recurly 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

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