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
@@ -0,0 +1,158 @@
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>account-update-1313708721</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/account-update-1313708721
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=fccb4482d65150cead02d280649103d1; 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>account-update-1313708721</id>\n
34
+ \ <account_code>account-update-1313708721</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>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</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: :get
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
44
+ body: !!null
45
+ headers:
46
+ user-agent:
47
+ - Recurly Ruby Client v0.4.10
48
+ accept:
49
+ - application/xml
50
+ accept-encoding:
51
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
52
+ response: !ruby/struct:VCR::Response
53
+ status: !ruby/struct:VCR::ResponseStatus
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ content-type:
58
+ - application/xml; charset=utf-8
59
+ etag:
60
+ - ! '"3bb6e1e9895347a86487d4fd80ef684f"'
61
+ cache-control:
62
+ - max-age=0, private, must-revalidate
63
+ x-ua-compatible:
64
+ - IE=Edge
65
+ set-cookie:
66
+ - _recurly_session=9aa3d06a6b5ce3f5a9faf74595af42bb; domain=.lvh.me; path=/;
67
+ HttpOnly
68
+ server:
69
+ - thin 1.2.11 codename Bat-Shit Crazy
70
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
71
+ \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
72
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
73
+ \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
74
+ \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
75
+ \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
76
+ http_version: '1.1'
77
+ - !ruby/struct:VCR::HTTPInteraction
78
+ request: !ruby/struct:VCR::Request
79
+ method: :put
80
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
81
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
82
+ \ <account-code>account-update-1313708721</account-code>\n <username nil=\"true\"></username>\n
83
+ \ <email>verena@test.com</email>\n <first-name>Verena</first-name>\n <last-name>Update
84
+ Test</last-name>\n <company-name>Recurly Ruby Gem -- Update</company-name>\n
85
+ \ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
86
+ \ <hosted-login-token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted-login-token>\n
87
+ \ <created-at type=\"datetime\">2011-08-19T20:01:06Z</created-at>\n <state>active</state>\n
88
+ \ <billing-info>\n <credit-card>\n </credit-card>\n </billing-info>\n
89
+ \ <accept-language nil=\"true\"></accept-language>\n</account>\n"
90
+ headers:
91
+ user-agent:
92
+ - Recurly Ruby Client v0.4.10
93
+ content-type:
94
+ - application/xml
95
+ response: !ruby/struct:VCR::Response
96
+ status: !ruby/struct:VCR::ResponseStatus
97
+ code: 200
98
+ message: OK
99
+ headers:
100
+ content-type:
101
+ - application/xml; charset=utf-8
102
+ etag:
103
+ - ! '"a82c0abb3f09aea5192c5dee9e622d2f"'
104
+ cache-control:
105
+ - max-age=0, private, must-revalidate
106
+ x-ua-compatible:
107
+ - IE=Edge
108
+ set-cookie:
109
+ - _recurly_session=5e0f28e55a7aaf205abff27c04a27d0d; domain=.lvh.me; path=/;
110
+ HttpOnly
111
+ server:
112
+ - thin 1.2.11 codename Bat-Shit Crazy
113
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
114
+ \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
115
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Update
116
+ Test</last_name>\n <company_name>Recurly Ruby Gem -- Update</company_name>\n
117
+ \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
118
+ \ <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
119
+ \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
120
+ http_version: '1.1'
121
+ - !ruby/struct:VCR::HTTPInteraction
122
+ request: !ruby/struct:VCR::Request
123
+ method: :get
124
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
125
+ body: !!null
126
+ headers:
127
+ user-agent:
128
+ - Recurly Ruby Client v0.4.10
129
+ accept:
130
+ - application/xml
131
+ accept-encoding:
132
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
133
+ response: !ruby/struct:VCR::Response
134
+ status: !ruby/struct:VCR::ResponseStatus
135
+ code: 200
136
+ message: OK
137
+ headers:
138
+ content-type:
139
+ - application/xml; charset=utf-8
140
+ etag:
141
+ - ! '"a82c0abb3f09aea5192c5dee9e622d2f"'
142
+ cache-control:
143
+ - max-age=0, private, must-revalidate
144
+ x-ua-compatible:
145
+ - IE=Edge
146
+ set-cookie:
147
+ - _recurly_session=9ea5a625d732232f90026cd0f564c5da; domain=.lvh.me; path=/;
148
+ HttpOnly
149
+ server:
150
+ - thin 1.2.11 codename Bat-Shit Crazy
151
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
152
+ \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
153
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Update
154
+ Test</last_name>\n <company_name>Recurly Ruby Gem -- Update</company_name>\n
155
+ \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
156
+ \ <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
157
+ \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
158
+ http_version: '1.1'
@@ -0,0 +1,118 @@
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>billing-create-1313708721</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/billing-create-1313708721
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=d50498b3bdbd903438347a1c5672425d; 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>billing-create-1313708721</id>\n
34
+ \ <account_code>billing-create-1313708721</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>ee3094c7b2a74cb88769d85fc0a23281</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:20Z</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: :put
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-create-1313708721/billing_info.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
+ \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
+ Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
+ \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
+ \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
+ \ </credit-card>\n</billing-info>\n"
50
+ headers:
51
+ user-agent:
52
+ - Recurly Ruby Client v0.4.10
53
+ content-type:
54
+ - application/xml
55
+ response: !ruby/struct:VCR::Response
56
+ status: !ruby/struct:VCR::ResponseStatus
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ content-type:
61
+ - application/xml; charset=utf-8
62
+ etag:
63
+ - ! '"ac96cb1ac49651f910b748832c1cd0f4"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=cd1047ea67ed31444d361ab77da3930e; domain=.lvh.me; path=/;
70
+ HttpOnly
71
+ server:
72
+ - thin 1.2.11 codename Bat-Shit Crazy
73
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-create-1313708721</account_code>\n
74
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
+ Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
77
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:23Z</updated_at>\n</billing_info>\n"
80
+ http_version: '1.1'
81
+ - !ruby/struct:VCR::HTTPInteraction
82
+ request: !ruby/struct:VCR::Request
83
+ method: :get
84
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-create-1313708721/billing_info.xml
85
+ body: !!null
86
+ headers:
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.10
89
+ accept:
90
+ - application/xml
91
+ accept-encoding:
92
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
+ response: !ruby/struct:VCR::Response
94
+ status: !ruby/struct:VCR::ResponseStatus
95
+ code: 200
96
+ message: OK
97
+ headers:
98
+ content-type:
99
+ - application/xml; charset=utf-8
100
+ etag:
101
+ - ! '"ac96cb1ac49651f910b748832c1cd0f4"'
102
+ cache-control:
103
+ - max-age=0, private, must-revalidate
104
+ x-ua-compatible:
105
+ - IE=Edge
106
+ set-cookie:
107
+ - _recurly_session=6a296f2221e327451e93ecd7ddd34e21; domain=.lvh.me; path=/;
108
+ HttpOnly
109
+ server:
110
+ - thin 1.2.11 codename Bat-Shit Crazy
111
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-create-1313708721</account_code>\n
112
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
113
+ Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
114
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
115
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
116
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
117
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:23Z</updated_at>\n</billing_info>\n"
118
+ http_version: '1.1'
@@ -0,0 +1,177 @@
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>billing-destroy-1313708721</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/billing-destroy-1313708721
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=036fe67deda40ee435294859397598b6; 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>billing-destroy-1313708721</id>\n
34
+ \ <account_code>billing-destroy-1313708721</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>21d353c03baa4b1d9565415506a33bd8</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:33Z</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: :put
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
+ \ <last-name>Test</last-name>\n <address1>500 South Central Blvd</address1>\n
46
+ \ <city>Los Angeles</city>\n <state>CA</state>\n <zip>90001</zip>\n <country>US</country>\n
47
+ \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
+ \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
+ \ </credit-card>\n</billing-info>\n"
50
+ headers:
51
+ user-agent:
52
+ - Recurly Ruby Client v0.4.10
53
+ content-type:
54
+ - application/xml
55
+ response: !ruby/struct:VCR::Response
56
+ status: !ruby/struct:VCR::ResponseStatus
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ content-type:
61
+ - application/xml; charset=utf-8
62
+ etag:
63
+ - ! '"cca592465887bc228702abe1d8d91ba1"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=0df1a1365772fa3c7b8995e8a4ed0bdf; domain=.lvh.me; path=/;
70
+ HttpOnly
71
+ server:
72
+ - thin 1.2.11 codename Bat-Shit Crazy
73
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-destroy-1313708721</account_code>\n
74
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>500
75
+ South Central Blvd</address1>\n <address2></address2>\n <city>Los Angeles</city>\n
76
+ \ <state>CA</state>\n <country>US</country>\n <zip>90001</zip>\n <phone></phone>\n
77
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:36Z</updated_at>\n</billing_info>\n"
80
+ http_version: '1.1'
81
+ - !ruby/struct:VCR::HTTPInteraction
82
+ request: !ruby/struct:VCR::Request
83
+ method: :get
84
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
85
+ body: !!null
86
+ headers:
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.10
89
+ accept:
90
+ - application/xml
91
+ accept-encoding:
92
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
+ response: !ruby/struct:VCR::Response
94
+ status: !ruby/struct:VCR::ResponseStatus
95
+ code: 200
96
+ message: OK
97
+ headers:
98
+ content-type:
99
+ - application/xml; charset=utf-8
100
+ etag:
101
+ - ! '"cca592465887bc228702abe1d8d91ba1"'
102
+ cache-control:
103
+ - max-age=0, private, must-revalidate
104
+ x-ua-compatible:
105
+ - IE=Edge
106
+ set-cookie:
107
+ - _recurly_session=b63a4c43c70dd74cc2b9c427f2ebeef4; domain=.lvh.me; path=/;
108
+ HttpOnly
109
+ server:
110
+ - thin 1.2.11 codename Bat-Shit Crazy
111
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-destroy-1313708721</account_code>\n
112
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>500
113
+ South Central Blvd</address1>\n <address2></address2>\n <city>Los Angeles</city>\n
114
+ \ <state>CA</state>\n <country>US</country>\n <zip>90001</zip>\n <phone></phone>\n
115
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
116
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
117
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:36Z</updated_at>\n</billing_info>\n"
118
+ http_version: '1.1'
119
+ - !ruby/struct:VCR::HTTPInteraction
120
+ request: !ruby/struct:VCR::Request
121
+ method: :delete
122
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
123
+ body: !!null
124
+ headers:
125
+ user-agent:
126
+ - Recurly Ruby Client v0.4.10
127
+ accept:
128
+ - application/xml
129
+ response: !ruby/struct:VCR::Response
130
+ status: !ruby/struct:VCR::ResponseStatus
131
+ code: 200
132
+ message: OK
133
+ headers:
134
+ content-type:
135
+ - application/xml; charset=utf-8
136
+ cache-control:
137
+ - no-cache
138
+ x-ua-compatible:
139
+ - IE=Edge
140
+ set-cookie:
141
+ - _recurly_session=23c65291386ac760feb30f97a3dd22f2; domain=.lvh.me; path=/;
142
+ HttpOnly
143
+ server:
144
+ - thin 1.2.11 codename Bat-Shit Crazy
145
+ body: ! ' '
146
+ http_version: '1.1'
147
+ - !ruby/struct:VCR::HTTPInteraction
148
+ request: !ruby/struct:VCR::Request
149
+ method: :get
150
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
151
+ body: !!null
152
+ headers:
153
+ user-agent:
154
+ - Recurly Ruby Client v0.4.10
155
+ accept:
156
+ - application/xml
157
+ accept-encoding:
158
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
159
+ response: !ruby/struct:VCR::Response
160
+ status: !ruby/struct:VCR::ResponseStatus
161
+ code: 404
162
+ message: Not Found
163
+ headers:
164
+ content-type:
165
+ - application/xml; charset=utf-8
166
+ cache-control:
167
+ - no-cache
168
+ x-ua-compatible:
169
+ - IE=Edge
170
+ set-cookie:
171
+ - _recurly_session=660c2cfa6c9584bd94d0ab702db7aa00; domain=.lvh.me; path=/;
172
+ HttpOnly
173
+ server:
174
+ - thin 1.2.11 codename Bat-Shit Crazy
175
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Billing
176
+ Info not found</error>\n</errors>\n"
177
+ http_version: '1.1'