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/credit-lookup-1299714599
41
41
  x-runtime:
42
- - "322"
42
+ - "385"
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=22fc64347c71e2bec443c619237dd2d9; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=07b2c3aca3a2f8f65e348868fc102e86; 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>8950a5c700854bcc9423ffb80b4ab6be</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:50:40Z</created_at>
65
+ <hosted_login_token>39460e9beeed4ffb89b6c11716ee5cef</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:21:39Z</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-lookup-1299714599/credits.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-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
- - "293"
101
+ - "354"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "516"
106
106
  set-cookie:
107
- - _recurly_session=911b82e19cb1b91ad6885d2e56b77622; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=2d8c9b496a7bdb1cfca99ed36148acd8; 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>aec44045895745198e8822110625ea08</id>
115
+ <id>d97557968dee4c7fafa3d79641cf2f8c</id>
116
116
  <account_code>credit-lookup-1299714599</account_code>
117
117
  <amount_in_cents type="integer">-1315</amount_in_cents>
118
- <start_date type="datetime">2011-03-18T18:50:42Z</start_date>
118
+ <start_date type="datetime">2011-04-04T02:21:41Z</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 4 u</description>
122
- <created_at type="datetime">2011-03-18T18:50:43Z</created_at>
122
+ <created_at type="datetime">2011-04-04T02:21:41Z</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-lookup-1299714599/credits/aec44045895745198e8822110625ea08.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/d97557968dee4c7fafa3d79641cf2f8c.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
- - "288"
148
+ - "357"
149
149
  content-type:
150
150
  - application/xml; charset=utf-8
151
151
  etag:
152
- - "\"04962d41905b5eb4549f2e34a1c585ef\""
152
+ - "\"17167981ec04b5c856960c329a0bd772\""
153
153
  cache-control:
154
154
  - private, max-age=0, must-revalidate
155
155
  content-length:
156
156
  - "516"
157
157
  set-cookie:
158
- - _recurly_session=04c5dbda94209f026d6ef79ef14ad91e; domain=.recurly.local; path=/; HttpOnly
158
+ - _recurly_session=e8485a979ff770a1dfbe25c328a3a288; 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>aec44045895745198e8822110625ea08</id>
166
+ <id>d97557968dee4c7fafa3d79641cf2f8c</id>
167
167
  <account_code>credit-lookup-1299714599</account_code>
168
168
  <amount_in_cents type="integer">-1315</amount_in_cents>
169
- <start_date type="datetime">2011-03-18T18:50:42Z</start_date>
169
+ <start_date type="datetime">2011-04-04T02:21:41Z</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 4 u</description>
173
- <created_at type="datetime">2011-03-18T18:50:43Z</created_at>
173
+ <created_at type="datetime">2011-04-04T02:21:41Z</created_at>
174
174
  </credit>
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/invoice-create-no-charges-1297746103
41
41
  x-runtime:
42
- - "324"
42
+ - "351"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "605"
47
47
  set-cookie:
48
- - _recurly_session=0b777dbe5f59ec7ab7619de4cb0ff990; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=808e36b1401000936f1dab0d438c438a; 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>7cc09470fe55483b821ac25fee3b7f53</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:51:14Z</created_at>
65
+ <hosted_login_token>7e2ae58386ed43c190622fb674094651</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:22:12Z</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: :put
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,7 +85,7 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
91
  <account-code>invoice-create-no-charges-1297746103</account-code>
@@ -93,7 +93,7 @@
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6450"
111
+ - "2142"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"03543697f9184c5c45fbdfcf48bd1258\""
115
+ - "\"b759ca3c79cdcd47ffac560d2c026131\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "651"
120
120
  set-cookie:
121
- - _recurly_session=d03e29a90592c322a256cd1ecfd5a9da; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=2c8c23398f802a63d421224d9870144b; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -141,17 +141,17 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:51:22Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:22:17Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
151
151
  - !ruby/struct:VCR::HTTPInteraction
152
152
  request: !ruby/struct:VCR::Request
153
153
  method: :post
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/invoices.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/invoices.xml
155
155
  body: |
156
156
  <?xml version="1.0" encoding="UTF-8"?>
157
157
  <invoice>
@@ -159,7 +159,7 @@
159
159
 
160
160
  headers:
161
161
  authorization:
162
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
162
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
163
163
  content-type:
164
164
  - application/xml
165
165
  accept:
@@ -176,13 +176,13 @@
176
176
  cache-control:
177
177
  - no-cache
178
178
  x-runtime:
179
- - "272"
179
+ - "74"
180
180
  content-type:
181
181
  - application/xml; charset=utf-8
182
182
  content-length:
183
183
  - "98"
184
184
  set-cookie:
185
- - _recurly_session=d3fec01238073251b25bdd8ce9dede50; domain=.recurly.local; path=/; HttpOnly
185
+ - _recurly_session=1617f320bf7fcb775f00beba40951f08; domain=.recurly.local; path=/; HttpOnly
186
186
  connection:
187
187
  - close
188
188
  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/invoice-create-1297746103
41
41
  x-runtime:
42
- - "325"
42
+ - "585"
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=37812aa5268edd52234264f58a591e69; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=ec5ad141efece441bd6ac9a3d63f02cc; 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>fa1994ef78bf417f8ac0b7fbf2a91fd6</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:50:57Z</created_at>
65
+ <hosted_login_token>3cba4d1eed9d4c62ba217b38f97094c7</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:21:58Z</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: :put
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-1297746103/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,7 +85,7 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
91
  <account-code>invoice-create-1297746103</account-code>
@@ -93,7 +93,7 @@
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6393"
111
+ - "2329"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"277bcb23eb7ddba09645aabffc4f08dd\""
115
+ - "\"6e4f8dbad0475ff98e4447e9c75a9902\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "640"
120
120
  set-cookie:
121
- - _recurly_session=42f7a09c58f6f917c068f1b500a0a03c; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=45122fa8cea2e40a105838cc07c08fb0; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -141,17 +141,17 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:51:05Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:22:02Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
151
151
  - !ruby/struct:VCR::HTTPInteraction
152
152
  request: !ruby/struct:VCR::Request
153
153
  method: :post
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
155
155
  body: |
156
156
  <?xml version="1.0" encoding="UTF-8"?>
157
157
  <charge>
@@ -161,7 +161,7 @@
161
161
 
162
162
  headers:
163
163
  authorization:
164
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
164
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
165
165
  content-type:
166
166
  - application/xml
167
167
  accept:
@@ -178,13 +178,13 @@
178
178
  cache-control:
179
179
  - no-cache
180
180
  x-runtime:
181
- - "300"
181
+ - "342"
182
182
  content-type:
183
183
  - application/xml; charset=utf-8
184
184
  content-length:
185
185
  - "519"
186
186
  set-cookie:
187
- - _recurly_session=3c2efc7357e3fbd29104838c09d8edac; domain=.recurly.local; path=/; HttpOnly
187
+ - _recurly_session=6768eecff5889ac94cc02d66226496d2; domain=.recurly.local; path=/; HttpOnly
188
188
  connection:
189
189
  - close
190
190
  server:
@@ -192,21 +192,21 @@
192
192
  body: |
193
193
  <?xml version="1.0" encoding="UTF-8"?>
194
194
  <charge type="charge">
195
- <id>e125eff8c4214e45b221296329e9f2ba</id>
195
+ <id>da8290c3ac5d4ca481e164f050f9705b</id>
196
196
  <account_code>invoice-create-1297746103</account_code>
197
197
  <amount_in_cents type="integer">1000</amount_in_cents>
198
- <start_date type="datetime">2011-03-18T18:51:07Z</start_date>
198
+ <start_date type="datetime">2011-04-04T02:22:04Z</start_date>
199
199
  <end_date nil="true" type="datetime"></end_date>
200
200
  <invoice_number nil="true" type="integer"></invoice_number>
201
201
  <description>charge description</description>
202
- <created_at type="datetime">2011-03-18T18:51:08Z</created_at>
202
+ <created_at type="datetime">2011-04-04T02:22:04Z</created_at>
203
203
  </charge>
204
204
 
205
205
  http_version: "1.1"
206
206
  - !ruby/struct:VCR::HTTPInteraction
207
207
  request: !ruby/struct:VCR::Request
208
208
  method: :post
209
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
209
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
210
210
  body: |
211
211
  <?xml version="1.0" encoding="UTF-8"?>
212
212
  <charge>
@@ -216,7 +216,7 @@
216
216
 
217
217
  headers:
218
218
  authorization:
219
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
219
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
220
220
  content-type:
221
221
  - application/xml
222
222
  accept:
@@ -233,13 +233,13 @@
233
233
  cache-control:
234
234
  - no-cache
235
235
  x-runtime:
236
- - "299"
236
+ - "331"
237
237
  content-type:
238
238
  - application/xml; charset=utf-8
239
239
  content-length:
240
240
  - "519"
241
241
  set-cookie:
242
- - _recurly_session=3464ecdd6fdc0db08921f06fd8c29c83; domain=.recurly.local; path=/; HttpOnly
242
+ - _recurly_session=45e1f614d787354bb96d270c71761588; domain=.recurly.local; path=/; HttpOnly
243
243
  connection:
244
244
  - close
245
245
  server:
@@ -247,21 +247,21 @@
247
247
  body: |
248
248
  <?xml version="1.0" encoding="UTF-8"?>
249
249
  <charge type="charge">
250
- <id>6f23f439b96741ac898cd0935a0c58db</id>
250
+ <id>963bf7a0b2c044a79f45422499f65d82</id>
251
251
  <account_code>invoice-create-1297746103</account_code>
252
252
  <amount_in_cents type="integer">1500</amount_in_cents>
253
- <start_date type="datetime">2011-03-18T18:51:10Z</start_date>
253
+ <start_date type="datetime">2011-04-04T02:22:07Z</start_date>
254
254
  <end_date nil="true" type="datetime"></end_date>
255
255
  <invoice_number nil="true" type="integer"></invoice_number>
256
256
  <description>charge description</description>
257
- <created_at type="datetime">2011-03-18T18:51:10Z</created_at>
257
+ <created_at type="datetime">2011-04-04T02:22:07Z</created_at>
258
258
  </charge>
259
259
 
260
260
  http_version: "1.1"
261
261
  - !ruby/struct:VCR::HTTPInteraction
262
262
  request: !ruby/struct:VCR::Request
263
263
  method: :post
264
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-create-1297746103/invoices.xml
264
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/invoices.xml
265
265
  body: |
266
266
  <?xml version="1.0" encoding="UTF-8"?>
267
267
  <invoice>
@@ -269,7 +269,7 @@
269
269
 
270
270
  headers:
271
271
  authorization:
272
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
272
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
273
273
  content-type:
274
274
  - application/xml
275
275
  accept:
@@ -286,15 +286,15 @@
286
286
  cache-control:
287
287
  - no-cache
288
288
  location:
289
- - http://app.recurly.local:3000/invoices/34b973f57fb14e598235f41028742007
289
+ - http://app.recurly.local:3000/invoices/1927065ea10847668cff6bcd97147e78
290
290
  x-runtime:
291
- - "612"
291
+ - "994"
292
292
  content-type:
293
293
  - application/xml; charset=utf-8
294
294
  content-length:
295
295
  - "1675"
296
296
  set-cookie:
297
- - _recurly_session=dc4c85f281dcdc66f9d214145058ccd6; domain=.recurly.local; path=/; HttpOnly
297
+ - _recurly_session=d887c5d5e2c3dafd862f62a8c9a878aa; domain=.recurly.local; path=/; HttpOnly
298
298
  connection:
299
299
  - close
300
300
  server:
@@ -302,10 +302,10 @@
302
302
  body: |
303
303
  <?xml version="1.0" encoding="UTF-8"?>
304
304
  <invoice>
305
- <id>34b973f57fb14e598235f41028742007</id>
305
+ <id>1927065ea10847668cff6bcd97147e78</id>
306
306
  <account_code>invoice-create-1297746103</account_code>
307
- <date type="datetime">2011-03-18T18:51:12Z</date>
308
- <invoice_number type="integer">2060</invoice_number>
307
+ <date type="datetime">2011-04-04T02:22:09Z</date>
308
+ <invoice_number type="integer">1275</invoice_number>
309
309
  <vat_number></vat_number>
310
310
  <status>open</status>
311
311
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -316,23 +316,23 @@
316
316
  <discount_in_cents type="integer">0</discount_in_cents>
317
317
  <line_items type="array">
318
318
  <line_item>
319
- <id>e125eff8c4214e45b221296329e9f2ba</id>
319
+ <id>da8290c3ac5d4ca481e164f050f9705b</id>
320
320
  <type>charge</type>
321
321
  <amount_in_cents type="integer">1000</amount_in_cents>
322
- <start_date type="datetime">2011-03-18T18:51:07Z</start_date>
322
+ <start_date type="datetime">2011-04-04T02:22:04Z</start_date>
323
323
  <end_date nil="true" type="datetime"></end_date>
324
324
  <description>charge description</description>
325
- <created_at type="datetime">2011-03-18T18:51:08Z</created_at>
325
+ <created_at type="datetime">2011-04-04T02:22:04Z</created_at>
326
326
  <applied_coupon_code></applied_coupon_code>
327
327
  </line_item>
328
328
  <line_item>
329
- <id>6f23f439b96741ac898cd0935a0c58db</id>
329
+ <id>963bf7a0b2c044a79f45422499f65d82</id>
330
330
  <type>charge</type>
331
331
  <amount_in_cents type="integer">1500</amount_in_cents>
332
- <start_date type="datetime">2011-03-18T18:51:10Z</start_date>
332
+ <start_date type="datetime">2011-04-04T02:22:07Z</start_date>
333
333
  <end_date nil="true" type="datetime"></end_date>
334
334
  <description>charge description</description>
335
- <created_at type="datetime">2011-03-18T18:51:10Z</created_at>
335
+ <created_at type="datetime">2011-04-04T02:22:07Z</created_at>
336
336
  <applied_coupon_code></applied_coupon_code>
337
337
  </line_item>
338
338
  </line_items>