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/coupon-create-1299714521
41
41
  x-runtime:
42
- - "408"
42
+ - "346"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- set-cookie:
48
- - _recurly_session=f28ed29f998a9648d91491d61c1bef5c; 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:00:49 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=02b9d60d68520a9a32beb1c46c14cd36; 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>7cd5dd7d07334ae399ae1df3036843be</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:42:27Z</created_at>
67
+ <hosted_login_token>d3c9875c27404f1f912706a4affe70ee</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:00:49Z</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/coupon-create-1299714521/coupon.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/coupon-create-1299714521/coupon.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <coupon>
@@ -80,100 +82,38 @@
80
82
 
81
83
  headers:
82
84
  authorization:
83
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
86
+ user-agent:
87
+ - Recurly Ruby Client v0.4.6
84
88
  content-type:
85
89
  - application/xml
86
90
  accept:
87
91
  - "*/*"
88
- user-agent:
89
- - Ruby
90
92
  connection:
91
93
  - close
92
94
  response: !ruby/struct:VCR::Response
93
95
  status: !ruby/struct:VCR::ResponseStatus
94
- code: 201
95
- message: Created
96
+ code: 404
97
+ message: "Not Found "
96
98
  headers:
97
99
  cache-control:
98
100
  - no-cache
99
- x-runtime:
100
- - "438"
101
101
  content-type:
102
102
  - application/xml; charset=utf-8
103
103
  content-length:
104
- - "520"
105
- set-cookie:
106
- - _recurly_session=0cc33b1c9e046fa6e80379d05e2fff25; domain=.recurly.local; path=/; HttpOnly
107
- connection:
108
- - close
104
+ - "92"
109
105
  server:
110
- - thin 1.2.7 codename No Hup
111
- body: |
112
- <?xml version="1.0" encoding="UTF-8"?>
113
- <coupon>
114
- <account_code>coupon-create-1299714521</account_code>
115
- <coupon_code>coupon</coupon_code>
116
- <name>Coupon</name>
117
- <discount_in_cents type="integer">500</discount_in_cents>
118
- <discount_percent type="integer"></discount_percent>
119
- <redemption>
120
- <account_code>coupon-create-1299714521</account_code>
121
- <redeemed_at type="datetime">2011-04-05T19:42:30Z</redeemed_at>
122
- <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
123
- </redemption>
124
- </coupon>
125
-
126
- http_version: "1.1"
127
- - !ruby/struct:VCR::HTTPInteraction
128
- request: !ruby/struct:VCR::Request
129
- method: :get
130
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-create-1299714521/coupon.xml
131
- body:
132
- headers:
133
- authorization:
134
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
135
- accept:
136
- - application/xml
137
- accept-encoding:
138
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
139
- user-agent:
140
- - Ruby
106
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
107
+ date:
108
+ - Thu, 21 Apr 2011 18:00:51 GMT
141
109
  connection:
142
110
  - close
143
- response: !ruby/struct:VCR::Response
144
- status: !ruby/struct:VCR::ResponseStatus
145
- code: 200
146
- message: OK
147
- headers:
148
- x-runtime:
149
- - "383"
150
- content-type:
151
- - application/xml; charset=utf-8
152
- etag:
153
- - "\"41fb0a5e0b49fd85d9a230c2bdaf1849\""
154
- cache-control:
155
- - private, max-age=0, must-revalidate
156
- content-length:
157
- - "520"
158
111
  set-cookie:
159
- - _recurly_session=4f6a51e29c8159912fe4dbe08e824925; domain=.recurly.local; path=/; HttpOnly
160
- connection:
161
- - close
162
- server:
163
- - thin 1.2.7 codename No Hup
112
+ - _recurly_session=ec52eff2d14c9b19d6925740b88853bc; domain=.recurly.local; path=/; HttpOnly
164
113
  body: |
165
114
  <?xml version="1.0" encoding="UTF-8"?>
166
- <coupon>
167
- <account_code>coupon-create-1299714521</account_code>
168
- <coupon_code>coupon</coupon_code>
169
- <name>Coupon</name>
170
- <discount_in_cents type="integer">500</discount_in_cents>
171
- <discount_percent type="integer"></discount_percent>
172
- <redemption>
173
- <account_code>coupon-create-1299714521</account_code>
174
- <redeemed_at type="datetime">2011-04-05T19:42:30Z</redeemed_at>
175
- <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
176
- </redemption>
177
- </coupon>
115
+ <errors>
116
+ <error>Coupon not found</error>
117
+ </errors>
178
118
 
179
119
  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/coupon-destroy-1299714521
41
41
  x-runtime:
42
- - "398"
42
+ - "257"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- set-cookie:
48
- - _recurly_session=04ad85bda6648770f4c2b3d5e04ce66c; 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:00:53 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=565b7a8e1ad9b5f3b2fbe069d62ec35c; 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>284bb81f2ba64ec8bee5c7b81ae379e3</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:42:35Z</created_at>
67
+ <hosted_login_token>1b903e645fd946039e9e9426813b05f7</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:00:52Z</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/coupon-destroy-1299714521/coupon.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <coupon>
@@ -80,105 +82,19 @@
80
82
 
81
83
  headers:
82
84
  authorization:
83
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
84
- content-type:
85
- - application/xml
86
- accept:
87
- - "*/*"
85
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
88
86
  user-agent:
89
- - Ruby
90
- connection:
91
- - close
92
- response: !ruby/struct:VCR::Response
93
- status: !ruby/struct:VCR::ResponseStatus
94
- code: 201
95
- message: Created
96
- headers:
97
- cache-control:
98
- - no-cache
99
- x-runtime:
100
- - "407"
87
+ - Recurly Ruby Client v0.4.6
101
88
  content-type:
102
- - application/xml; charset=utf-8
103
- content-length:
104
- - "522"
105
- set-cookie:
106
- - _recurly_session=9b924f1e24fb34e2968a6ef5c29965fa; domain=.recurly.local; path=/; HttpOnly
107
- connection:
108
- - close
109
- server:
110
- - thin 1.2.7 codename No Hup
111
- body: |
112
- <?xml version="1.0" encoding="UTF-8"?>
113
- <coupon>
114
- <account_code>coupon-destroy-1299714521</account_code>
115
- <coupon_code>coupon</coupon_code>
116
- <name>Coupon</name>
117
- <discount_in_cents type="integer">500</discount_in_cents>
118
- <discount_percent type="integer"></discount_percent>
119
- <redemption>
120
- <account_code>coupon-destroy-1299714521</account_code>
121
- <redeemed_at type="datetime">2011-04-05T19:42:38Z</redeemed_at>
122
- <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
123
- </redemption>
124
- </coupon>
125
-
126
- http_version: "1.1"
127
- - !ruby/struct:VCR::HTTPInteraction
128
- request: !ruby/struct:VCR::Request
129
- method: :delete
130
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
131
- body:
132
- headers:
133
- authorization:
134
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
135
- accept:
136
89
  - application/xml
137
- user-agent:
138
- - Ruby
139
- connection:
140
- - close
141
- response: !ruby/struct:VCR::Response
142
- status: !ruby/struct:VCR::ResponseStatus
143
- code: 200
144
- message: OK
145
- headers:
146
- cache-control:
147
- - no-cache
148
- x-runtime:
149
- - "367"
150
- content-type:
151
- - application/xml; charset=utf-8
152
- content-length:
153
- - "1"
154
- set-cookie:
155
- - _recurly_session=c42c2edb2edbe3ec26e245e20b492079; domain=.recurly.local; path=/; HttpOnly
156
- connection:
157
- - close
158
- server:
159
- - thin 1.2.7 codename No Hup
160
- body: " "
161
- http_version: "1.1"
162
- - !ruby/struct:VCR::HTTPInteraction
163
- request: !ruby/struct:VCR::Request
164
- method: :get
165
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/coupon-destroy-1299714521/coupon.xml
166
- body:
167
- headers:
168
- authorization:
169
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
170
90
  accept:
171
- - application/xml
172
- accept-encoding:
173
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
174
- user-agent:
175
- - Ruby
91
+ - "*/*"
176
92
  connection:
177
93
  - close
178
94
  response: !ruby/struct:VCR::Response
179
95
  status: !ruby/struct:VCR::ResponseStatus
180
96
  code: 404
181
- message: Not Found
97
+ message: "Not Found "
182
98
  headers:
183
99
  cache-control:
184
100
  - no-cache
@@ -186,12 +102,14 @@
186
102
  - application/xml; charset=utf-8
187
103
  content-length:
188
104
  - "92"
189
- set-cookie:
190
- - _recurly_session=2b6c2cab605f8f8a26d756ec29ee2b8f; domain=.recurly.local; path=/; HttpOnly
105
+ server:
106
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
107
+ date:
108
+ - Thu, 21 Apr 2011 18:00:54 GMT
191
109
  connection:
192
110
  - close
193
- server:
194
- - thin 1.2.7 codename No Hup
111
+ set-cookie:
112
+ - _recurly_session=89906dca1d7134dd4ed2edcc290a8b54; domain=.recurly.local; path=/; HttpOnly
195
113
  body: |
196
114
  <?xml version="1.0" encoding="UTF-8"?>
197
115
  <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/credit-create-1299714599
41
41
  x-runtime:
42
- - "402"
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=ba1b10ce885f02b78c86742de8cf3707; 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:00:56 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=35c8ff54ea1319e841c6db7ca411723c; 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>69114a2ac95f4c779c2335c1a310e42c</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:42:46Z</created_at>
67
+ <hosted_login_token>d4c6d411112d4d21b327696934482766</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:00:56Z</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-create-1299714599/credits.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-create-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
- - "379"
103
+ - "228"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
- - "512"
106
- set-cookie:
107
- - _recurly_session=b850bcae941654e22ce56b00177389cc; domain=.recurly.local; path=/; HttpOnly
107
+ - "620"
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 18:00:58 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=725dba5763cddc1361b1f2fb3428a295; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <credit type="credit">
115
- <id>f3e0f68c1cde426e846302a03155bc6d</id>
119
+ <id>91a6750c315642fd80be167ab3eee517</id>
116
120
  <account_code>credit-create-1299714599</account_code>
121
+ <quantity type="integer">1</quantity>
122
+ <unit_amount_in_cents type="integer">-1005</unit_amount_in_cents>
117
123
  <amount_in_cents type="integer">-1005</amount_in_cents>
118
- <start_date type="datetime">2011-04-05T19:42:49Z</start_date>
124
+ <start_date type="datetime">2011-04-21T18:00:58Z</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</description>
122
- <created_at type="datetime">2011-04-05T19:42:49Z</created_at>
128
+ <created_at type="datetime">2011-04-21T18:00:58Z</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-create-1299714599/credits/f3e0f68c1cde426e846302a03155bc6d.xml
135
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/credit-create-1299714599/credits/91a6750c315642fd80be167ab3eee517.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
- - "71"
154
+ - "265"
149
155
  content-type:
150
156
  - application/xml; charset=utf-8
151
157
  etag:
152
- - "\"a6d8e03c45b0fbf96dac4ae04edb4ca1\""
158
+ - "\"4f25c9d75ae3556928f4088a3a5b3005\""
153
159
  cache-control:
154
160
  - private, max-age=0, must-revalidate
155
161
  content-length:
156
- - "512"
157
- set-cookie:
158
- - _recurly_session=a2a1327d72032ecb933afa84f96e60f9; domain=.recurly.local; path=/; HttpOnly
162
+ - "620"
163
+ server:
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
165
+ date:
166
+ - Thu, 21 Apr 2011 18:01:00 GMT
159
167
  connection:
160
168
  - close
161
- server:
162
- - thin 1.2.7 codename No Hup
169
+ set-cookie:
170
+ - _recurly_session=7de3b237d5a1a30d69ed6a6ca4537d15; domain=.recurly.local; path=/; HttpOnly
163
171
  body: |
164
172
  <?xml version="1.0" encoding="UTF-8"?>
165
173
  <credit type="credit">
166
- <id>f3e0f68c1cde426e846302a03155bc6d</id>
174
+ <id>91a6750c315642fd80be167ab3eee517</id>
167
175
  <account_code>credit-create-1299714599</account_code>
176
+ <quantity type="integer">1</quantity>
177
+ <unit_amount_in_cents type="integer">-1005</unit_amount_in_cents>
168
178
  <amount_in_cents type="integer">-1005</amount_in_cents>
169
- <start_date type="datetime">2011-04-05T19:42:49Z</start_date>
179
+ <start_date type="datetime">2011-04-21T18:00:58Z</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</description>
173
- <created_at type="datetime">2011-04-05T19:42:49Z</created_at>
183
+ <created_at type="datetime">2011-04-21T18:00:58Z</created_at>
174
184
  </credit>
175
185
 
176
186
  http_version: "1.1"