recurly 0.4.8 → 0.4.10

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 (114) hide show
  1. data/README.md +2 -2
  2. data/lib/recurly.rb +2 -1
  3. data/lib/recurly/account.rb +2 -2
  4. data/lib/recurly/base.rb +30 -12
  5. data/lib/recurly/billing_info.rb +2 -2
  6. data/lib/recurly/exceptions.rb +13 -0
  7. data/lib/recurly/plan.rb +1 -1
  8. data/lib/recurly/subscription.rb +2 -2
  9. data/lib/recurly/transaction.rb +2 -2
  10. data/lib/recurly/transparent.rb +1 -1
  11. data/lib/recurly/verification.rb +77 -0
  12. data/lib/recurly/version.rb +1 -1
  13. data/spec/config/recurly.yml +4 -4
  14. data/spec/integration/account_spec.rb +12 -0
  15. data/spec/integration/billing_info_spec.rb +2 -2
  16. data/spec/integration/charge_spec.rb +0 -1
  17. data/spec/integration/plan_spec.rb +2 -2
  18. data/spec/support/vcr.rb +2 -2
  19. data/spec/unit/verification_spec.rb +76 -0
  20. data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
  21. data/spec/vcr/account/close/1313708721.yml +104 -0
  22. data/spec/vcr/account/create-blank/1313708721.yml +33 -0
  23. data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
  24. data/spec/vcr/account/create-min/1313708721.yml +38 -0
  25. data/spec/vcr/account/create/1313708721.yml +39 -0
  26. data/spec/vcr/account/find/1313708721.yml +107 -0
  27. data/spec/vcr/account/list/1313708721.yml +878 -0
  28. data/spec/vcr/account/update/1313708721.yml +158 -0
  29. data/spec/vcr/billing/create/1313708721.yml +118 -0
  30. data/spec/vcr/billing/destroy/1313708721.yml +177 -0
  31. data/spec/vcr/billing/errors/1313708721.yml +71 -0
  32. data/spec/vcr/billing/find/1313708721.yml +156 -0
  33. data/spec/vcr/billing/update/1313708721.yml +159 -0
  34. data/spec/vcr/charge/create/1313708721.yml +153 -0
  35. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
  36. data/spec/vcr/charge/list-all/1313708721.yml +198 -0
  37. data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
  38. data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
  39. data/spec/vcr/charge/lookup/1313708721.yml +112 -0
  40. data/spec/vcr/coupon/create/1296774903.yml +96 -170
  41. data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
  42. data/spec/vcr/credit/create/1313708090.yml +112 -0
  43. data/spec/vcr/credit/delete/1313708090.yml +171 -0
  44. data/spec/vcr/credit/list/1313708090.yml +198 -0
  45. data/spec/vcr/credit/lookup/1313708090.yml +112 -0
  46. data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
  47. data/spec/vcr/invoice/create/1296674173.yml +182 -328
  48. data/spec/vcr/invoice/list/1296674173.yml +255 -442
  49. data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
  50. data/spec/vcr/plan/all.yml +210 -253
  51. data/spec/vcr/plan/find.yml +115 -187
  52. data/spec/vcr/plan/update.yml +105 -187
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
  56. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
  57. data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
  58. data/spec/vcr/subscription/change1/1296674173.yml +237 -402
  59. data/spec/vcr/subscription/change2/1296674173.yml +238 -402
  60. data/spec/vcr/subscription/create/1296674173.yml +123 -221
  61. data/spec/vcr/subscription/find/1296674173.yml +161 -279
  62. data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
  63. data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
  64. data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
  65. data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
  66. data/spec/vcr/transaction/all/1311126815.yml +215 -0
  67. data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
  68. data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
  69. data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
  70. data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
  71. data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
  72. data/spec/vcr/transaction/refund/1311126815.yml +163 -0
  73. data/spec/vcr/transaction/void/1311126815.yml +215 -0
  74. data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
  75. metadata +207 -154
  76. data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
  77. data/spec/vcr/account/close/1296674173.yml +0 -164
  78. data/spec/vcr/account/create-blank/1296674173.yml +0 -52
  79. data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
  80. data/spec/vcr/account/create-min/1296674173.yml +0 -66
  81. data/spec/vcr/account/create/1296674173.yml +0 -70
  82. data/spec/vcr/account/find/1296674173.yml +0 -169
  83. data/spec/vcr/account/list/1296674173.yml +0 -55
  84. data/spec/vcr/account/update/1296674173.yml +0 -258
  85. data/spec/vcr/billing/create/1296690812.yml +0 -215
  86. data/spec/vcr/billing/destroy/1296690812.yml +0 -294
  87. data/spec/vcr/billing/find/1296690812.yml +0 -280
  88. data/spec/vcr/billing/update/1296690812.yml +0 -297
  89. data/spec/vcr/charge/create/1296674173.yml +0 -262
  90. data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
  91. data/spec/vcr/charge/list-all/1296674173.yml +0 -316
  92. data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
  93. data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
  94. data/spec/vcr/charge/lookup/1296674173.yml +0 -180
  95. data/spec/vcr/coupon/create/1296688818.yml +0 -183
  96. data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
  97. data/spec/vcr/credit/create/1296674173.yml +0 -121
  98. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  99. data/spec/vcr/credit/list/1296674173.yml +0 -121
  100. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  101. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  102. data/spec/vcr/transaction/all/1296674173.yml +0 -389
  103. data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
  104. data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
  105. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  106. data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
  107. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  108. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  109. data/spec/vcr/transaction/void/1296674173.yml +0 -352
  110. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  111. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  112. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  113. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  114. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,207 +1,131 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>coupon-destroy-1296774903</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>coupon-destroy-1296774903</account-code>\n
7
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
+ \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
+ headers:
11
+ user-agent:
12
+ - Recurly Ruby Client v0.4.10
13
+ content-type:
21
14
  - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
30
17
  code: 201
31
- message: "Created "
32
- headers:
33
- cache-control:
34
- - no-cache
35
- location:
36
- - http://litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903
37
- x-runtime:
38
- - "925"
39
- content-type:
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/coupon-destroy-1296774903
22
+ content-type:
40
23
  - application/xml; charset=utf-8
41
- content-length:
42
- - "583"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 23:15:27 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=85662c6a7ee37b0ab16b927abbd2b56041be3db582595db0815a61e5f02cd2b8688be849c2b0fa1029276a78e11f2eebc369fcd5ea569390cfe1e9f625b07758%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=ffce808874a170851e20be6b8e077773; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>coupon-destroy-1296774903</id>
57
- <account_code>coupon-destroy-1296774903</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>c2dea2ac6bb0466095ca4e574f414ed9</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T23:15:27Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=4115da7475cf1f47c6861d67ce690b11; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>coupon-destroy-1296774903</id>\n
34
+ \ <account_code>coupon-destroy-1296774903</account_code>\n <username></username>\n
35
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
+ \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
+ \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>d00de23adf5e4cd0b1270ce3f2446c7e</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n <state>active</state>\n</account>\n"
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
73
42
  method: :post
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <coupon>
78
- <coupon-code>coupon</coupon-code>
79
- </coupon>
80
-
81
- headers:
82
- authorization:
83
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
84
- content-type:
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <coupon-code>coupon</coupon-code>\n</coupon>\n"
45
+ headers:
46
+ user-agent:
47
+ - Recurly Ruby Client v0.4.10
48
+ content-type:
85
49
  - application/xml
86
- accept:
87
- - "*/*"
88
- user-agent:
89
- - Ruby
90
- connection:
91
- - close
92
- response: !ruby/struct:VCR::Response
93
- status: !ruby/struct:VCR::ResponseStatus
50
+ response: !ruby/struct:VCR::Response
51
+ status: !ruby/struct:VCR::ResponseStatus
94
52
  code: 201
95
- message: "Created "
96
- headers:
97
- cache-control:
98
- - no-cache
99
- x-runtime:
100
- - "318"
101
- content-type:
53
+ message: Created
54
+ headers:
55
+ content-type:
102
56
  - application/xml; charset=utf-8
103
- content-length:
104
- - "524"
105
- server:
106
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
107
- date:
108
- - Thu, 03 Feb 2011 23:15:30 GMT
109
- connection:
110
- - close
111
- set-cookie:
112
- - _recurly_session=7e97cfd07b03224b897ed8141fbf48cd; domain=.recurly.local; path=/; HttpOnly
113
- body: |
114
- <?xml version="1.0" encoding="UTF-8"?>
115
- <coupon>
116
- <account_code>coupon-destroy-1296774903</account_code>
117
- <coupon_code>coupon</coupon_code>
118
- <name>coupon</name>
119
- <discount_in_cents type="integer"></discount_in_cents>
120
- <discount_percent type="integer">15</discount_percent>
121
- <redemption>
122
- <account_code>coupon-destroy-1296774903</account_code>
123
- <redeemed_at type="datetime">2011-02-03 23:15:30 UTC</redeemed_at>
124
- <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
125
- </redemption>
126
- </coupon>
127
-
128
- http_version: "1.1"
129
- - !ruby/struct:VCR::HTTPInteraction
130
- request: !ruby/struct:VCR::Request
57
+ cache-control:
58
+ - no-cache
59
+ x-ua-compatible:
60
+ - IE=Edge
61
+ set-cookie:
62
+ - _recurly_session=0b1337491de5aabc61a7990034101215; domain=.lvh.me; path=/;
63
+ HttpOnly
64
+ server:
65
+ - thin 1.2.11 codename Bat-Shit Crazy
66
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-destroy-1296774903</account_code>\n
67
+ \ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
68
+ type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
69
+ type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-destroy-1296774903</account_code>\n
70
+ \ <redeemed_at type=\"datetime\">2011-08-19T20:01:44Z</redeemed_at>\n <total_discounted_in_cents
71
+ type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
72
+ http_version: '1.1'
73
+ - !ruby/struct:VCR::HTTPInteraction
74
+ request: !ruby/struct:VCR::Request
131
75
  method: :delete
132
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
133
- body:
134
- headers:
135
- authorization:
136
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
137
- accept:
76
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
77
+ body: !!null
78
+ headers:
79
+ user-agent:
80
+ - Recurly Ruby Client v0.4.10
81
+ accept:
138
82
  - application/xml
139
- user-agent:
140
- - Ruby
141
- connection:
142
- - close
143
- response: !ruby/struct:VCR::Response
144
- status: !ruby/struct:VCR::ResponseStatus
83
+ response: !ruby/struct:VCR::Response
84
+ status: !ruby/struct:VCR::ResponseStatus
145
85
  code: 200
146
- message: "OK "
147
- headers:
148
- cache-control:
149
- - no-cache
150
- x-runtime:
151
- - "272"
152
- content-type:
86
+ message: OK
87
+ headers:
88
+ content-type:
153
89
  - application/xml; charset=utf-8
154
- content-length:
155
- - "1"
156
- server:
157
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
158
- date:
159
- - Thu, 03 Feb 2011 23:15:32 GMT
160
- connection:
161
- - close
162
- set-cookie:
163
- - _recurly_session=e583922bcad25a08351177000d17b9fd; domain=.recurly.local; path=/; HttpOnly
164
- body: " "
165
- http_version: "1.1"
166
- - !ruby/struct:VCR::HTTPInteraction
167
- request: !ruby/struct:VCR::Request
90
+ cache-control:
91
+ - no-cache
92
+ x-ua-compatible:
93
+ - IE=Edge
94
+ set-cookie:
95
+ - _recurly_session=906f5697944325b115f309db2d6039fb; domain=.lvh.me; path=/;
96
+ HttpOnly
97
+ server:
98
+ - thin 1.2.11 codename Bat-Shit Crazy
99
+ body: ! ' '
100
+ http_version: '1.1'
101
+ - !ruby/struct:VCR::HTTPInteraction
102
+ request: !ruby/struct:VCR::Request
168
103
  method: :get
169
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/coupon-destroy-1296774903/coupon.xml
170
- body:
171
- headers:
172
- authorization:
173
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
174
- accept:
104
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
105
+ body: !!null
106
+ headers:
107
+ user-agent:
108
+ - Recurly Ruby Client v0.4.10
109
+ accept:
175
110
  - application/xml
176
- accept-encoding:
111
+ accept-encoding:
177
112
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
178
- user-agent:
179
- - Ruby
180
- connection:
181
- - close
182
- response: !ruby/struct:VCR::Response
183
- status: !ruby/struct:VCR::ResponseStatus
113
+ response: !ruby/struct:VCR::Response
114
+ status: !ruby/struct:VCR::ResponseStatus
184
115
  code: 404
185
- message: "Not Found "
186
- headers:
187
- cache-control:
188
- - no-cache
189
- content-type:
116
+ message: Not Found
117
+ headers:
118
+ content-type:
190
119
  - application/xml; charset=utf-8
191
- content-length:
192
- - "92"
193
- server:
194
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
195
- date:
196
- - Thu, 03 Feb 2011 23:15:35 GMT
197
- connection:
198
- - close
199
- set-cookie:
200
- - _recurly_session=fdf33942d2134add0dafe4b48a6f77e1; domain=.recurly.local; path=/; HttpOnly
201
- body: |
202
- <?xml version="1.0" encoding="UTF-8"?>
203
- <errors>
204
- <error>Coupon not found</error>
205
- </errors>
206
-
207
- http_version: "1.1"
120
+ cache-control:
121
+ - no-cache
122
+ x-ua-compatible:
123
+ - IE=Edge
124
+ set-cookie:
125
+ - _recurly_session=fbb3f8874bef4b92f82bda98a11c7571; domain=.lvh.me; path=/;
126
+ HttpOnly
127
+ server:
128
+ - thin 1.2.11 codename Bat-Shit Crazy
129
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Coupon
130
+ not found</error>\n</errors>\n"
131
+ http_version: '1.1'
@@ -0,0 +1,112 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>credit-create-1313708090</account-code>\n
7
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
+ \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
+ headers:
11
+ user-agent:
12
+ - Recurly Ruby Client v0.4.10
13
+ content-type:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/credit-create-1313708090
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=57a6a7feac74f1115c2c7a297a08f0a5; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>credit-create-1313708090</id>\n
34
+ \ <account_code>credit-create-1313708090</account_code>\n <username></username>\n
35
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
+ \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
+ \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>3212802a955b45a383bbff1934e0efb8</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n <state>active</state>\n</account>\n"
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
42
+ method: :post
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/credit-create-1313708090/credits.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit>\n <amount-in-cents
45
+ type=\"integer\">1005</amount-in-cents>\n <description>free moniez</description>\n</credit>\n"
46
+ headers:
47
+ user-agent:
48
+ - Recurly Ruby Client v0.4.10
49
+ content-type:
50
+ - application/xml
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 201
54
+ message: Created
55
+ headers:
56
+ content-type:
57
+ - application/xml; charset=utf-8
58
+ cache-control:
59
+ - no-cache
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ set-cookie:
63
+ - _recurly_session=373db127f541f139ce710d3bee50e928; domain=.lvh.me; path=/;
64
+ HttpOnly
65
+ server:
66
+ - thin 1.2.11 codename Bat-Shit Crazy
67
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
68
+ \ <id>6199de5433ef4e20916605741a493e0e</id>\n <account_code>credit-create-1313708090</account_code>\n
69
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1005</unit_amount_in_cents>\n
70
+ \ <amount_in_cents type=\"integer\">-1005</amount_in_cents>\n <currency>USD</currency>\n
71
+ \ <start_date type=\"datetime\">2011-08-19T20:01:44Z</start_date>\n <end_date
72
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
+ \ <description>free moniez</description>\n <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n</credit>\n"
74
+ http_version: '1.1'
75
+ - !ruby/struct:VCR::HTTPInteraction
76
+ request: !ruby/struct:VCR::Request
77
+ method: :get
78
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/credit-create-1313708090/credits/6199de5433ef4e20916605741a493e0e.xml
79
+ body: !!null
80
+ headers:
81
+ user-agent:
82
+ - Recurly Ruby Client v0.4.10
83
+ accept:
84
+ - application/xml
85
+ accept-encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ content-type:
93
+ - application/xml; charset=utf-8
94
+ etag:
95
+ - ! '"c495ec98a1577f8014dcb55b8440893c"'
96
+ cache-control:
97
+ - max-age=0, private, must-revalidate
98
+ x-ua-compatible:
99
+ - IE=Edge
100
+ set-cookie:
101
+ - _recurly_session=a3a3c96ecc6d0f8366bea3954125f225; domain=.lvh.me; path=/;
102
+ HttpOnly
103
+ server:
104
+ - thin 1.2.11 codename Bat-Shit Crazy
105
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
106
+ \ <id>6199de5433ef4e20916605741a493e0e</id>\n <account_code>credit-create-1313708090</account_code>\n
107
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1005</unit_amount_in_cents>\n
108
+ \ <amount_in_cents type=\"integer\">-1005</amount_in_cents>\n <currency>USD</currency>\n
109
+ \ <start_date type=\"datetime\">2011-08-19T20:01:44Z</start_date>\n <end_date
110
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
111
+ \ <description>free moniez</description>\n <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n</credit>\n"
112
+ http_version: '1.1'
@@ -0,0 +1,171 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>delete-uninvoiced-1313708090</account-code>\n
7
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
+ \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
+ headers:
11
+ user-agent:
12
+ - Recurly Ruby Client v0.4.10
13
+ content-type:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/delete-uninvoiced-1313708090
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=1149cc4bf1bf8263f896f14e33b4d79f; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>delete-uninvoiced-1313708090</id>\n
34
+ \ <account_code>delete-uninvoiced-1313708090</account_code>\n <username></username>\n
35
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
+ \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
+ \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>7b7da9f2792f4f448e60b5f4074cfda9</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:46Z</created_at>\n <state>active</state>\n</account>\n"
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
42
+ method: :post
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/delete-uninvoiced-1313708090/credits.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit>\n <amount-in-cents
45
+ type=\"integer\">1315</amount-in-cents>\n <description>free moniez 4 u</description>\n</credit>\n"
46
+ headers:
47
+ user-agent:
48
+ - Recurly Ruby Client v0.4.10
49
+ content-type:
50
+ - application/xml
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 201
54
+ message: Created
55
+ headers:
56
+ content-type:
57
+ - application/xml; charset=utf-8
58
+ cache-control:
59
+ - no-cache
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ set-cookie:
63
+ - _recurly_session=d8d682a6cf3f3389aa4f5a80b7c2f609; domain=.lvh.me; path=/;
64
+ HttpOnly
65
+ server:
66
+ - thin 1.2.11 codename Bat-Shit Crazy
67
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
68
+ \ <id>da67485dd91a4ccc833341eb627ffca1</id>\n <account_code>delete-uninvoiced-1313708090</account_code>\n
69
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1315</unit_amount_in_cents>\n
70
+ \ <amount_in_cents type=\"integer\">-1315</amount_in_cents>\n <currency>USD</currency>\n
71
+ \ <start_date type=\"datetime\">2011-08-19T20:01:46Z</start_date>\n <end_date
72
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
+ \ <description>free moniez 4 u</description>\n <created_at type=\"datetime\">2011-08-19T20:01:46Z</created_at>\n</credit>\n"
74
+ http_version: '1.1'
75
+ - !ruby/struct:VCR::HTTPInteraction
76
+ request: !ruby/struct:VCR::Request
77
+ method: :get
78
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/delete-uninvoiced-1313708090/credits/da67485dd91a4ccc833341eb627ffca1.xml
79
+ body: !!null
80
+ headers:
81
+ user-agent:
82
+ - Recurly Ruby Client v0.4.10
83
+ accept:
84
+ - application/xml
85
+ accept-encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ content-type:
93
+ - application/xml; charset=utf-8
94
+ etag:
95
+ - ! '"36fb323e4272e06eddb92843d2b8230e"'
96
+ cache-control:
97
+ - max-age=0, private, must-revalidate
98
+ x-ua-compatible:
99
+ - IE=Edge
100
+ set-cookie:
101
+ - _recurly_session=4dc6a0b9e3535c0554c9b432973de7e1; domain=.lvh.me; path=/;
102
+ HttpOnly
103
+ server:
104
+ - thin 1.2.11 codename Bat-Shit Crazy
105
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
106
+ \ <id>da67485dd91a4ccc833341eb627ffca1</id>\n <account_code>delete-uninvoiced-1313708090</account_code>\n
107
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1315</unit_amount_in_cents>\n
108
+ \ <amount_in_cents type=\"integer\">-1315</amount_in_cents>\n <currency>USD</currency>\n
109
+ \ <start_date type=\"datetime\">2011-08-19T20:01:46Z</start_date>\n <end_date
110
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
111
+ \ <description>free moniez 4 u</description>\n <created_at type=\"datetime\">2011-08-19T20:01:46Z</created_at>\n</credit>\n"
112
+ http_version: '1.1'
113
+ - !ruby/struct:VCR::HTTPInteraction
114
+ request: !ruby/struct:VCR::Request
115
+ method: :delete
116
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/delete-uninvoiced-1313708090/credits/da67485dd91a4ccc833341eb627ffca1.xml
117
+ body: !!null
118
+ headers:
119
+ user-agent:
120
+ - Recurly Ruby Client v0.4.10
121
+ accept:
122
+ - application/xml
123
+ response: !ruby/struct:VCR::Response
124
+ status: !ruby/struct:VCR::ResponseStatus
125
+ code: 200
126
+ message: OK
127
+ headers:
128
+ content-type:
129
+ - application/xml; charset=utf-8
130
+ cache-control:
131
+ - no-cache
132
+ x-ua-compatible:
133
+ - IE=Edge
134
+ set-cookie:
135
+ - _recurly_session=6d216b4a75eaee6f94881c909de856a9; domain=.lvh.me; path=/;
136
+ HttpOnly
137
+ server:
138
+ - thin 1.2.11 codename Bat-Shit Crazy
139
+ body: ! ' '
140
+ http_version: '1.1'
141
+ - !ruby/struct:VCR::HTTPInteraction
142
+ request: !ruby/struct:VCR::Request
143
+ method: :get
144
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/delete-uninvoiced-1313708090/credits/da67485dd91a4ccc833341eb627ffca1.xml
145
+ body: !!null
146
+ headers:
147
+ user-agent:
148
+ - Recurly Ruby Client v0.4.10
149
+ accept:
150
+ - application/xml
151
+ accept-encoding:
152
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
153
+ response: !ruby/struct:VCR::Response
154
+ status: !ruby/struct:VCR::ResponseStatus
155
+ code: 404
156
+ message: Not Found
157
+ headers:
158
+ content-type:
159
+ - application/xml; charset=utf-8
160
+ cache-control:
161
+ - no-cache
162
+ x-ua-compatible:
163
+ - IE=Edge
164
+ set-cookie:
165
+ - _recurly_session=f74a0dbf102db77ac9d97607024b2c81; domain=.lvh.me; path=/;
166
+ HttpOnly
167
+ server:
168
+ - thin 1.2.11 codename Bat-Shit Crazy
169
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Credit
170
+ not found</error>\n</errors>\n"
171
+ http_version: '1.1'