recurly 0.4.5 → 0.4.6

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 (67) hide show
  1. data/lib/recurly/base.rb +11 -4
  2. data/lib/recurly/billing_info.rb +2 -1
  3. data/lib/recurly/charge.rb +3 -1
  4. data/lib/recurly/credit.rb +3 -1
  5. data/lib/recurly/subscription.rb +1 -1
  6. data/lib/recurly/version.rb +1 -1
  7. data/spec/config/recurly.yml +4 -4
  8. data/spec/unit/billing_info_spec.rb +1 -0
  9. data/spec/unit/charge_spec.rb +2 -0
  10. data/spec/unit/credit_spec.rb +2 -0
  11. data/spec/unit/subscription_spec.rb +1 -1
  12. data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
  13. data/spec/vcr/account/close/1301979678.yml +41 -35
  14. data/spec/vcr/account/create-blank/1301979678.yml +11 -9
  15. data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
  16. data/spec/vcr/account/create-min/1301979678.yml +14 -12
  17. data/spec/vcr/account/create/1301979678.yml +14 -12
  18. data/spec/vcr/account/find/1301979678.yml +40 -34
  19. data/spec/vcr/account/list/1301979678.yml +348 -341
  20. data/spec/vcr/account/update/1301979678.yml +61 -53
  21. data/spec/vcr/billing/create/1302025874.yml +42 -36
  22. data/spec/vcr/billing/destroy/1302025874.yml +65 -55
  23. data/spec/vcr/billing/errors/1302025874.yml +25 -21
  24. data/spec/vcr/billing/find/1302025874.yml +56 -48
  25. data/spec/vcr/billing/update/1302025874.yml +56 -48
  26. data/spec/vcr/charge/create/1297746103.yml +65 -53
  27. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
  28. data/spec/vcr/charge/list-all/1297746103.yml +97 -75
  29. data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
  30. data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
  31. data/spec/vcr/charge/lookup/1297746103.yml +51 -41
  32. data/spec/vcr/coupon/create/1299714521.yml +28 -88
  33. data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
  34. data/spec/vcr/credit/create/1299714599.yml +51 -41
  35. data/spec/vcr/credit/delete/1299714599.yml +74 -60
  36. data/spec/vcr/credit/list/1299714599.yml +97 -75
  37. data/spec/vcr/credit/lookup/1299714599.yml +51 -41
  38. data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
  39. data/spec/vcr/invoice/create/1297746103.yml +86 -72
  40. data/spec/vcr/invoice/list/1297746103.yml +121 -103
  41. data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
  42. data/spec/vcr/plan/all.yml +108 -134
  43. data/spec/vcr/plan/find.yml +47 -95
  44. data/spec/vcr/plan/update.yml +152 -66
  45. data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
  46. data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
  47. data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
  48. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
  49. data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
  50. data/spec/vcr/subscription/change1/1301881900.yml +107 -113
  51. data/spec/vcr/subscription/change2/1301881900.yml +107 -113
  52. data/spec/vcr/subscription/create/1301881900.yml +50 -65
  53. data/spec/vcr/subscription/find/1301881900.yml +69 -81
  54. data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
  55. data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
  56. data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
  57. data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
  58. data/spec/vcr/transaction/all/1301883347.yml +86 -84
  59. data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
  60. data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
  61. data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
  62. data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
  63. data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
  64. data/spec/vcr/transaction/refund/1301883347.yml +58 -50
  65. data/spec/vcr/transaction/void/1301883347.yml +75 -82
  66. data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
  67. metadata +3 -3
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/credit-lookup-1299714599
41
41
  x-runtime:
42
- - "410"
42
+ - "257"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- set-cookie:
48
- - _recurly_session=e04586f675596f7a902af6b96cef54e6; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:01:12 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=3d170f89178072d95a4e94a8ef6bb430; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>f0fa6e9c9e0f4d94a653cbdbb317afb9</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:43:08Z</created_at>
67
+ <hosted_login_token>6a6ed1f2d8c34812a524e1124e995c5b</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:01:12Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :post
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <credit>
@@ -81,96 +83,104 @@
81
83
 
82
84
  headers:
83
85
  authorization:
84
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
86
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.6
85
89
  content-type:
86
90
  - application/xml
87
91
  accept:
88
92
  - "*/*"
89
- user-agent:
90
- - Ruby
91
93
  connection:
92
94
  - close
93
95
  response: !ruby/struct:VCR::Response
94
96
  status: !ruby/struct:VCR::ResponseStatus
95
97
  code: 201
96
- message: Created
98
+ message: "Created "
97
99
  headers:
98
100
  cache-control:
99
101
  - no-cache
100
102
  x-runtime:
101
- - "378"
103
+ - "225"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
- - "516"
106
- set-cookie:
107
- - _recurly_session=c0fa6b0b18d0f0a9bee5b7260c912b48; domain=.recurly.local; path=/; HttpOnly
107
+ - "624"
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 18:01:14 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=cb055a5573d0231a3919786ead2b800e; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <credit type="credit">
115
- <id>5c599c0c93a741a9a06bc8b5fe99ce12</id>
119
+ <id>c69648786d4c481e92cd13acb0b14a42</id>
116
120
  <account_code>credit-lookup-1299714599</account_code>
121
+ <quantity type="integer">1</quantity>
122
+ <unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
117
123
  <amount_in_cents type="integer">-1315</amount_in_cents>
118
- <start_date type="datetime">2011-04-05T19:43:10Z</start_date>
124
+ <start_date type="datetime">2011-04-21T18:01:14Z</start_date>
119
125
  <end_date nil="true" type="datetime"></end_date>
120
126
  <invoice_number nil="true" type="integer"></invoice_number>
121
127
  <description>free moniez 4 u</description>
122
- <created_at type="datetime">2011-04-05T19:43:10Z</created_at>
128
+ <created_at type="datetime">2011-04-21T18:01:14Z</created_at>
123
129
  </credit>
124
130
 
125
131
  http_version: "1.1"
126
132
  - !ruby/struct:VCR::HTTPInteraction
127
133
  request: !ruby/struct:VCR::Request
128
134
  method: :get
129
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/5c599c0c93a741a9a06bc8b5fe99ce12.xml
135
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/c69648786d4c481e92cd13acb0b14a42.xml
130
136
  body:
131
137
  headers:
132
138
  authorization:
133
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
139
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
140
+ user-agent:
141
+ - Recurly Ruby Client v0.4.6
134
142
  accept:
135
143
  - application/xml
136
144
  accept-encoding:
137
145
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
138
- user-agent:
139
- - Ruby
140
146
  connection:
141
147
  - close
142
148
  response: !ruby/struct:VCR::Response
143
149
  status: !ruby/struct:VCR::ResponseStatus
144
150
  code: 200
145
- message: OK
151
+ message: "OK "
146
152
  headers:
147
153
  x-runtime:
148
- - "369"
154
+ - "238"
149
155
  content-type:
150
156
  - application/xml; charset=utf-8
151
157
  etag:
152
- - "\"4a247dab565851db86de10501b26b7be\""
158
+ - "\"618724c8ce709e768847bb9ba3d1b252\""
153
159
  cache-control:
154
160
  - private, max-age=0, must-revalidate
155
161
  content-length:
156
- - "516"
157
- set-cookie:
158
- - _recurly_session=6978e0b971f28e472ed8f3b209917bec; domain=.recurly.local; path=/; HttpOnly
162
+ - "624"
163
+ server:
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
165
+ date:
166
+ - Thu, 21 Apr 2011 18:01:16 GMT
159
167
  connection:
160
168
  - close
161
- server:
162
- - thin 1.2.7 codename No Hup
169
+ set-cookie:
170
+ - _recurly_session=fa3512c3231ca4813982c91cb233724f; domain=.recurly.local; path=/; HttpOnly
163
171
  body: |
164
172
  <?xml version="1.0" encoding="UTF-8"?>
165
173
  <credit type="credit">
166
- <id>5c599c0c93a741a9a06bc8b5fe99ce12</id>
174
+ <id>c69648786d4c481e92cd13acb0b14a42</id>
167
175
  <account_code>credit-lookup-1299714599</account_code>
176
+ <quantity type="integer">1</quantity>
177
+ <unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
168
178
  <amount_in_cents type="integer">-1315</amount_in_cents>
169
- <start_date type="datetime">2011-04-05T19:43:10Z</start_date>
179
+ <start_date type="datetime">2011-04-21T18:01:14Z</start_date>
170
180
  <end_date nil="true" type="datetime"></end_date>
171
181
  <invoice_number nil="true" type="integer"></invoice_number>
172
182
  <description>free moniez 4 u</description>
173
- <created_at type="datetime">2011-04-05T19:43:10Z</created_at>
183
+ <created_at type="datetime">2011-04-21T18:01:14Z</created_at>
174
184
  </credit>
175
185
 
176
186
  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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103
41
41
  x-runtime:
42
- - "708"
42
+ - "308"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "605"
47
- set-cookie:
48
- - _recurly_session=d3754421e9fc45f4d3fe855e7d8da09b; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:01:38 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=938040bc188de4d204a192d1407f464a; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>6fbc9a6037bc44c9bf650a6f6ea368ef</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:43:44Z</created_at>
67
+ <hosted_login_token>897c14283f3e4c6e9109c1ebb1cec668</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:01:38Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -93,36 +95,38 @@
93
95
 
94
96
  headers:
95
97
  authorization:
96
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
98
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
+ user-agent:
100
+ - Recurly Ruby Client v0.4.6
97
101
  content-type:
98
102
  - application/xml
99
103
  accept:
100
104
  - "*/*"
101
- user-agent:
102
- - Ruby
103
105
  connection:
104
106
  - close
105
107
  response: !ruby/struct:VCR::Response
106
108
  status: !ruby/struct:VCR::ResponseStatus
107
109
  code: 200
108
- message: OK
110
+ message: "OK "
109
111
  headers:
110
112
  x-runtime:
111
- - "1537"
113
+ - "1352"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"637179456e538c4e8fddfb90e57ae9a5\""
117
+ - "\"db01ed6baad0f48c9a4997102c870c1a\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "651"
120
- set-cookie:
121
- - _recurly_session=4690bfc7f1521b9e3488f33ded9d5906; domain=.recurly.local; path=/; HttpOnly
122
+ server:
123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
124
+ date:
125
+ - Thu, 21 Apr 2011 18:01:41 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=ad5c29ec2ac6f82fc76ff3dfc48c984d; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,14 +148,14 @@
144
148
  <month type="integer">4</month>
145
149
  <year type="integer">2012</year>
146
150
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T19:43:48Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:01:41Z</updated_at>
148
152
  </billing_info>
149
153
 
150
154
  http_version: "1.1"
151
155
  - !ruby/struct:VCR::HTTPInteraction
152
156
  request: !ruby/struct:VCR::Request
153
157
  method: :post
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/invoices.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103/invoices.xml
155
159
  body: |
156
160
  <?xml version="1.0" encoding="UTF-8"?>
157
161
  <invoice>
@@ -159,13 +163,13 @@
159
163
 
160
164
  headers:
161
165
  authorization:
162
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
166
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
167
+ user-agent:
168
+ - Recurly Ruby Client v0.4.6
163
169
  content-type:
164
170
  - application/xml
165
171
  accept:
166
172
  - "*/*"
167
- user-agent:
168
- - Ruby
169
173
  connection:
170
174
  - close
171
175
  response: !ruby/struct:VCR::Response
@@ -176,17 +180,19 @@
176
180
  cache-control:
177
181
  - no-cache
178
182
  x-runtime:
179
- - "183"
183
+ - "56"
180
184
  content-type:
181
185
  - application/xml; charset=utf-8
182
186
  content-length:
183
187
  - "98"
184
- set-cookie:
185
- - _recurly_session=3266796d517c9b6d10f09d9945757cfa; domain=.recurly.local; path=/; HttpOnly
188
+ server:
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
190
+ date:
191
+ - Thu, 21 Apr 2011 18:01:43 GMT
186
192
  connection:
187
193
  - close
188
- server:
189
- - thin 1.2.7 codename No Hup
194
+ set-cookie:
195
+ - _recurly_session=a54b99825ff11650c8dcd41f680e54ca; domain=.recurly.local; path=/; HttpOnly
190
196
  body: |
191
197
  <?xml version="1.0" encoding="UTF-8"?>
192
198
  <errors>
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/invoice-create-1297746103
41
41
  x-runtime:
42
- - "408"
42
+ - "254"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- set-cookie:
48
- - _recurly_session=c22236e7c863d239466a4053341fb7ec; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:01:27 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=3228311a24b0d05385dc95f0480aea9c; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>5ab517790858442b882acdd580e51837</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:43:29Z</created_at>
67
+ <hosted_login_token>d5b1bc1cb0e9480c83faa5af737d1b67</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:01:27Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -93,36 +95,38 @@
93
95
 
94
96
  headers:
95
97
  authorization:
96
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
98
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
+ user-agent:
100
+ - Recurly Ruby Client v0.4.6
97
101
  content-type:
98
102
  - application/xml
99
103
  accept:
100
104
  - "*/*"
101
- user-agent:
102
- - Ruby
103
105
  connection:
104
106
  - close
105
107
  response: !ruby/struct:VCR::Response
106
108
  status: !ruby/struct:VCR::ResponseStatus
107
109
  code: 200
108
- message: OK
110
+ message: "OK "
109
111
  headers:
110
112
  x-runtime:
111
- - "1524"
113
+ - "1453"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"0f195ae235aa2ac9a9cc371e120daa94\""
117
+ - "\"11ae01d06e85f70d85ee7476cb19d612\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "640"
120
- set-cookie:
121
- - _recurly_session=5fd7e8bb2221d0e540b856093b10acef; domain=.recurly.local; path=/; HttpOnly
122
+ server:
123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
124
+ date:
125
+ - Thu, 21 Apr 2011 18:01:30 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=b031945e77c8fcca0898c031afe9ed7a; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,14 +148,14 @@
144
148
  <month type="integer">4</month>
145
149
  <year type="integer">2012</year>
146
150
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T19:43:33Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:01:30Z</updated_at>
148
152
  </billing_info>
149
153
 
150
154
  http_version: "1.1"
151
155
  - !ruby/struct:VCR::HTTPInteraction
152
156
  request: !ruby/struct:VCR::Request
153
157
  method: :post
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
155
159
  body: |
156
160
  <?xml version="1.0" encoding="UTF-8"?>
157
161
  <charge>
@@ -161,52 +165,56 @@
161
165
 
162
166
  headers:
163
167
  authorization:
164
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
168
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
169
+ user-agent:
170
+ - Recurly Ruby Client v0.4.6
165
171
  content-type:
166
172
  - application/xml
167
173
  accept:
168
174
  - "*/*"
169
- user-agent:
170
- - Ruby
171
175
  connection:
172
176
  - close
173
177
  response: !ruby/struct:VCR::Response
174
178
  status: !ruby/struct:VCR::ResponseStatus
175
179
  code: 201
176
- message: Created
180
+ message: "Created "
177
181
  headers:
178
182
  cache-control:
179
183
  - no-cache
180
184
  x-runtime:
181
- - "387"
185
+ - "230"
182
186
  content-type:
183
187
  - application/xml; charset=utf-8
184
188
  content-length:
185
- - "519"
186
- set-cookie:
187
- - _recurly_session=8fd8581646af8c7624b1bf364bcfb871; domain=.recurly.local; path=/; HttpOnly
189
+ - "626"
190
+ server:
191
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
192
+ date:
193
+ - Thu, 21 Apr 2011 18:01:32 GMT
188
194
  connection:
189
195
  - close
190
- server:
191
- - thin 1.2.7 codename No Hup
196
+ set-cookie:
197
+ - _recurly_session=af3b32b1ae38bc6e274678d59ca5f3f5; domain=.recurly.local; path=/; HttpOnly
192
198
  body: |
193
199
  <?xml version="1.0" encoding="UTF-8"?>
194
200
  <charge type="charge">
195
- <id>25217b76a504430a992c7039b003bf4e</id>
201
+ <id>460c4da0a1fc4a85abecd7a038368916</id>
196
202
  <account_code>invoice-create-1297746103</account_code>
203
+ <quantity type="integer">1</quantity>
204
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
197
205
  <amount_in_cents type="integer">1000</amount_in_cents>
198
- <start_date type="datetime">2011-04-05T19:43:35Z</start_date>
206
+ <start_date type="datetime">2011-04-21T18:01:32Z</start_date>
199
207
  <end_date nil="true" type="datetime"></end_date>
200
208
  <invoice_number nil="true" type="integer"></invoice_number>
201
209
  <description>charge description</description>
202
- <created_at type="datetime">2011-04-05T19:43:36Z</created_at>
210
+ <created_at type="datetime">2011-04-21T18:01:32Z</created_at>
203
211
  </charge>
204
212
 
205
213
  http_version: "1.1"
206
214
  - !ruby/struct:VCR::HTTPInteraction
207
215
  request: !ruby/struct:VCR::Request
208
216
  method: :post
209
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
217
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
210
218
  body: |
211
219
  <?xml version="1.0" encoding="UTF-8"?>
212
220
  <charge>
@@ -216,52 +224,56 @@
216
224
 
217
225
  headers:
218
226
  authorization:
219
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
227
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
228
+ user-agent:
229
+ - Recurly Ruby Client v0.4.6
220
230
  content-type:
221
231
  - application/xml
222
232
  accept:
223
233
  - "*/*"
224
- user-agent:
225
- - Ruby
226
234
  connection:
227
235
  - close
228
236
  response: !ruby/struct:VCR::Response
229
237
  status: !ruby/struct:VCR::ResponseStatus
230
238
  code: 201
231
- message: Created
239
+ message: "Created "
232
240
  headers:
233
241
  cache-control:
234
242
  - no-cache
235
243
  x-runtime:
236
- - "385"
244
+ - "231"
237
245
  content-type:
238
246
  - application/xml; charset=utf-8
239
247
  content-length:
240
- - "519"
241
- set-cookie:
242
- - _recurly_session=f163d509de3d169892d7c461e11fa837; domain=.recurly.local; path=/; HttpOnly
248
+ - "626"
249
+ server:
250
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
251
+ date:
252
+ - Thu, 21 Apr 2011 18:01:34 GMT
243
253
  connection:
244
254
  - close
245
- server:
246
- - thin 1.2.7 codename No Hup
255
+ set-cookie:
256
+ - _recurly_session=e6f520de3d50b34a1f11be4e2a4ab7d3; domain=.recurly.local; path=/; HttpOnly
247
257
  body: |
248
258
  <?xml version="1.0" encoding="UTF-8"?>
249
259
  <charge type="charge">
250
- <id>cbe790b64bec4395a2af36b8add81228</id>
260
+ <id>a2cb29599ab24764a0eac17f108b3b3a</id>
251
261
  <account_code>invoice-create-1297746103</account_code>
262
+ <quantity type="integer">1</quantity>
263
+ <unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
252
264
  <amount_in_cents type="integer">1500</amount_in_cents>
253
- <start_date type="datetime">2011-04-05T19:43:38Z</start_date>
265
+ <start_date type="datetime">2011-04-21T18:01:33Z</start_date>
254
266
  <end_date nil="true" type="datetime"></end_date>
255
267
  <invoice_number nil="true" type="integer"></invoice_number>
256
268
  <description>charge description</description>
257
- <created_at type="datetime">2011-04-05T19:43:38Z</created_at>
269
+ <created_at type="datetime">2011-04-21T18:01:34Z</created_at>
258
270
  </charge>
259
271
 
260
272
  http_version: "1.1"
261
273
  - !ruby/struct:VCR::HTTPInteraction
262
274
  request: !ruby/struct:VCR::Request
263
275
  method: :post
264
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-create-1297746103/invoices.xml
276
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/invoices.xml
265
277
  body: |
266
278
  <?xml version="1.0" encoding="UTF-8"?>
267
279
  <invoice>
@@ -269,43 +281,45 @@
269
281
 
270
282
  headers:
271
283
  authorization:
272
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
284
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
285
+ user-agent:
286
+ - Recurly Ruby Client v0.4.6
273
287
  content-type:
274
288
  - application/xml
275
289
  accept:
276
290
  - "*/*"
277
- user-agent:
278
- - Ruby
279
291
  connection:
280
292
  - close
281
293
  response: !ruby/struct:VCR::Response
282
294
  status: !ruby/struct:VCR::ResponseStatus
283
295
  code: 201
284
- message: Created
296
+ message: "Created "
285
297
  headers:
286
298
  cache-control:
287
299
  - no-cache
288
300
  location:
289
- - http://app.recurly.local:3000/invoices/fa1681243cff445cb494c71106d38979
301
+ - http://app.recurly.local:3000/invoices/54c4d130b4ea4a79a83f33fae831f8c3
290
302
  x-runtime:
291
- - "791"
303
+ - "508"
292
304
  content-type:
293
305
  - application/xml; charset=utf-8
294
306
  content-length:
295
307
  - "1675"
296
- set-cookie:
297
- - _recurly_session=fe345b0cfb1bafa9851868b06dfa35bc; domain=.recurly.local; path=/; HttpOnly
308
+ server:
309
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
310
+ date:
311
+ - Thu, 21 Apr 2011 18:01:36 GMT
298
312
  connection:
299
313
  - close
300
- server:
301
- - thin 1.2.7 codename No Hup
314
+ set-cookie:
315
+ - _recurly_session=146e65bcbc6704166595c5bbd6c4d14f; domain=.recurly.local; path=/; HttpOnly
302
316
  body: |
303
317
  <?xml version="1.0" encoding="UTF-8"?>
304
318
  <invoice>
305
- <id>fa1681243cff445cb494c71106d38979</id>
319
+ <id>54c4d130b4ea4a79a83f33fae831f8c3</id>
306
320
  <account_code>invoice-create-1297746103</account_code>
307
- <date type="datetime">2011-04-05T19:43:41Z</date>
308
- <invoice_number type="integer">1401</invoice_number>
321
+ <date type="datetime">2011-04-21T18:01:36Z</date>
322
+ <invoice_number type="integer">1012</invoice_number>
309
323
  <vat_number></vat_number>
310
324
  <status>open</status>
311
325
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -316,23 +330,23 @@
316
330
  <discount_in_cents type="integer">0</discount_in_cents>
317
331
  <line_items type="array">
318
332
  <line_item>
319
- <id>25217b76a504430a992c7039b003bf4e</id>
333
+ <id>460c4da0a1fc4a85abecd7a038368916</id>
320
334
  <type>charge</type>
321
335
  <amount_in_cents type="integer">1000</amount_in_cents>
322
- <start_date type="datetime">2011-04-05T19:43:35Z</start_date>
336
+ <start_date type="datetime">2011-04-21T18:01:32Z</start_date>
323
337
  <end_date nil="true" type="datetime"></end_date>
324
338
  <description>charge description</description>
325
- <created_at type="datetime">2011-04-05T19:43:36Z</created_at>
339
+ <created_at type="datetime">2011-04-21T18:01:32Z</created_at>
326
340
  <applied_coupon_code></applied_coupon_code>
327
341
  </line_item>
328
342
  <line_item>
329
- <id>cbe790b64bec4395a2af36b8add81228</id>
343
+ <id>a2cb29599ab24764a0eac17f108b3b3a</id>
330
344
  <type>charge</type>
331
345
  <amount_in_cents type="integer">1500</amount_in_cents>
332
- <start_date type="datetime">2011-04-05T19:43:38Z</start_date>
346
+ <start_date type="datetime">2011-04-21T18:01:33Z</start_date>
333
347
  <end_date nil="true" type="datetime"></end_date>
334
348
  <description>charge description</description>
335
- <created_at type="datetime">2011-04-05T19:43:38Z</created_at>
349
+ <created_at type="datetime">2011-04-21T18:01:34Z</created_at>
336
350
  <applied_coupon_code></applied_coupon_code>
337
351
  </line_item>
338
352
  </line_items>