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,71 @@
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-errors-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-errors-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=2a0fa3cff76f4feb31eb2ccfc74c74fd; 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-errors-1313708721</id>\n
34
+ \ <account_code>billing-errors-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>c639520ea6c24c74805580213ce03c01</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:36Z</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-errors-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></number>\n </credit-card>\n</billing-info>\n"
48
+ headers:
49
+ user-agent:
50
+ - Recurly Ruby Client v0.4.10
51
+ content-type:
52
+ - application/xml
53
+ response: !ruby/struct:VCR::Response
54
+ status: !ruby/struct:VCR::ResponseStatus
55
+ code: 422
56
+ message: !!null
57
+ headers:
58
+ content-type:
59
+ - application/xml; charset=utf-8
60
+ cache-control:
61
+ - no-cache
62
+ x-ua-compatible:
63
+ - IE=Edge
64
+ set-cookie:
65
+ - _recurly_session=173aeabf457f6816d64a0c071efa8b98; domain=.lvh.me; path=/;
66
+ HttpOnly
67
+ server:
68
+ - thin 1.2.11 codename Bat-Shit Crazy
69
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error field=\"number\"
70
+ code=\"required\">credit card number is required</error>\n</errors>\n"
71
+ http_version: '1.1'
@@ -0,0 +1,156 @@
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-find-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-find-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=f721d40f76fd4a33585ba75711b48ff9; 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-find-1313708721</id>\n
34
+ \ <account_code>billing-find-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>39a63b699c814ba294c74fc316df2045</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:29Z</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-find-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 <account-code>billing-find-1313708721</account-code>\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
+ - ! '"875a153a35511821027bcb3ce60c4b82"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=b2eff91537d341f69747696634706a40; 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-find-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:32Z</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-find-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
+ - ! '"875a153a35511821027bcb3ce60c4b82"'
102
+ cache-control:
103
+ - max-age=0, private, must-revalidate
104
+ x-ua-compatible:
105
+ - IE=Edge
106
+ set-cookie:
107
+ - _recurly_session=1c9ab7c65c39d9ec57033a3a4b8acc2a; 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-find-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:32Z</updated_at>\n</billing_info>\n"
118
+ http_version: '1.1'
119
+ - !ruby/struct:VCR::HTTPInteraction
120
+ request: !ruby/struct:VCR::Request
121
+ method: :get
122
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-find-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
+ accept-encoding:
130
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
131
+ response: !ruby/struct:VCR::Response
132
+ status: !ruby/struct:VCR::ResponseStatus
133
+ code: 200
134
+ message: OK
135
+ headers:
136
+ content-type:
137
+ - application/xml; charset=utf-8
138
+ etag:
139
+ - ! '"875a153a35511821027bcb3ce60c4b82"'
140
+ cache-control:
141
+ - max-age=0, private, must-revalidate
142
+ x-ua-compatible:
143
+ - IE=Edge
144
+ set-cookie:
145
+ - _recurly_session=9e21e17fa59d998526e5147bed75e7f3; domain=.lvh.me; path=/;
146
+ HttpOnly
147
+ server:
148
+ - thin 1.2.11 codename Bat-Shit Crazy
149
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-find-1313708721</account_code>\n
150
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
151
+ Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
152
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
153
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
154
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
155
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:32Z</updated_at>\n</billing_info>\n"
156
+ http_version: '1.1'
@@ -0,0 +1,159 @@
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-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/billing-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=3dbfee413118d5c039bc24431d9be512; 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-update-1313708721</id>\n
34
+ \ <account_code>billing-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>8184134b9308477ba9575d735a8d68bf</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:23Z</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-update-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 <account-code>billing-update-1313708721</account-code>\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
+ - ! '"90d031a9155659d5af0f104239bfe331"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=78b6f75eb22ca0fed51e0c91b9ec66a4; 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-update-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:26Z</updated_at>\n</billing_info>\n"
80
+ http_version: '1.1'
81
+ - !ruby/struct:VCR::HTTPInteraction
82
+ request: !ruby/struct:VCR::Request
83
+ method: :put
84
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
85
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
86
+ \ <last-name>Test</last-name>\n <address1>1st Ave South, Apt 5001</address1>\n
87
+ \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
88
+ \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
89
+ \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
90
+ \ </credit-card>\n</billing-info>\n"
91
+ headers:
92
+ user-agent:
93
+ - Recurly Ruby Client v0.4.10
94
+ content-type:
95
+ - application/xml
96
+ response: !ruby/struct:VCR::Response
97
+ status: !ruby/struct:VCR::ResponseStatus
98
+ code: 200
99
+ message: OK
100
+ headers:
101
+ content-type:
102
+ - application/xml; charset=utf-8
103
+ etag:
104
+ - ! '"dae3f7f78140a61718d91b54868745aa"'
105
+ cache-control:
106
+ - max-age=0, private, must-revalidate
107
+ x-ua-compatible:
108
+ - IE=Edge
109
+ set-cookie:
110
+ - _recurly_session=4816cad545c23d21c27f3ce912bfa652; domain=.lvh.me; path=/;
111
+ HttpOnly
112
+ server:
113
+ - thin 1.2.11 codename Bat-Shit Crazy
114
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-update-1313708721</account_code>\n
115
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>1st
116
+ Ave South, Apt 5001</address1>\n <address2></address2>\n <city>San Francisco</city>\n
117
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
118
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
119
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
120
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:29Z</updated_at>\n</billing_info>\n"
121
+ http_version: '1.1'
122
+ - !ruby/struct:VCR::HTTPInteraction
123
+ request: !ruby/struct:VCR::Request
124
+ method: :get
125
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
126
+ body: !!null
127
+ headers:
128
+ user-agent:
129
+ - Recurly Ruby Client v0.4.10
130
+ accept:
131
+ - application/xml
132
+ accept-encoding:
133
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
134
+ response: !ruby/struct:VCR::Response
135
+ status: !ruby/struct:VCR::ResponseStatus
136
+ code: 200
137
+ message: OK
138
+ headers:
139
+ content-type:
140
+ - application/xml; charset=utf-8
141
+ etag:
142
+ - ! '"dae3f7f78140a61718d91b54868745aa"'
143
+ cache-control:
144
+ - max-age=0, private, must-revalidate
145
+ x-ua-compatible:
146
+ - IE=Edge
147
+ set-cookie:
148
+ - _recurly_session=2d7ed4b07a763e8825549cbec8e27fef; domain=.lvh.me; path=/;
149
+ HttpOnly
150
+ server:
151
+ - thin 1.2.11 codename Bat-Shit Crazy
152
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-update-1313708721</account_code>\n
153
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>1st
154
+ Ave South, Apt 5001</address1>\n <address2></address2>\n <city>San Francisco</city>\n
155
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
156
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
157
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
158
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:29Z</updated_at>\n</billing_info>\n"
159
+ http_version: '1.1'
@@ -0,0 +1,153 @@
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>charge-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/charge-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=689c939201df451caa3d67bd626275f7; 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>charge-create-1313708721</id>\n
34
+ \ <account_code>charge-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>51d3626b21bb4cf2a1e9f8f3740205cc</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:39Z</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/charge-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 <account-code>charge-create-1313708721</account-code>\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
+ - ! '"1906be3fcdcbe3d0205fd3373fd366e8"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=4ff636c6d4992a41060aacc615f88d34; 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>charge-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:42Z</updated_at>\n</billing_info>\n"
80
+ http_version: '1.1'
81
+ - !ruby/struct:VCR::HTTPInteraction
82
+ request: !ruby/struct:VCR::Request
83
+ method: :post
84
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-create-1313708721/charges.xml
85
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">2.5</amount>\n
86
+ \ <description>virtual cow maintence fee</description>\n</charge>\n"
87
+ headers:
88
+ user-agent:
89
+ - Recurly Ruby Client v0.4.10
90
+ content-type:
91
+ - application/xml
92
+ response: !ruby/struct:VCR::Response
93
+ status: !ruby/struct:VCR::ResponseStatus
94
+ code: 201
95
+ message: Created
96
+ headers:
97
+ content-type:
98
+ - application/xml; charset=utf-8
99
+ cache-control:
100
+ - no-cache
101
+ x-ua-compatible:
102
+ - IE=Edge
103
+ set-cookie:
104
+ - _recurly_session=f314b355564917ad70fbab79c2c4b0c7; domain=.lvh.me; path=/;
105
+ HttpOnly
106
+ server:
107
+ - thin 1.2.11 codename Bat-Shit Crazy
108
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
109
+ \ <id>d0bb5e45e8bd49ec80ea641146420a43</id>\n <account_code>charge-create-1313708721</account_code>\n
110
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">250</unit_amount_in_cents>\n
111
+ \ <amount_in_cents type=\"integer\">250</amount_in_cents>\n <currency>USD</currency>\n
112
+ \ <start_date type=\"datetime\">2011-08-19T20:01:42Z</start_date>\n <end_date
113
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
114
+ \ <description>virtual cow maintence fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:42Z</created_at>\n</charge>\n"
115
+ http_version: '1.1'
116
+ - !ruby/struct:VCR::HTTPInteraction
117
+ request: !ruby/struct:VCR::Request
118
+ method: :get
119
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-create-1313708721/charges/d0bb5e45e8bd49ec80ea641146420a43.xml
120
+ body: !!null
121
+ headers:
122
+ user-agent:
123
+ - Recurly Ruby Client v0.4.10
124
+ accept:
125
+ - application/xml
126
+ accept-encoding:
127
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
128
+ response: !ruby/struct:VCR::Response
129
+ status: !ruby/struct:VCR::ResponseStatus
130
+ code: 200
131
+ message: OK
132
+ headers:
133
+ content-type:
134
+ - application/xml; charset=utf-8
135
+ etag:
136
+ - ! '"97f9213637b2756de5c231123437bc5b"'
137
+ cache-control:
138
+ - max-age=0, private, must-revalidate
139
+ x-ua-compatible:
140
+ - IE=Edge
141
+ set-cookie:
142
+ - _recurly_session=15b389efbc69a70ea2a707c352abfbb6; domain=.lvh.me; path=/;
143
+ HttpOnly
144
+ server:
145
+ - thin 1.2.11 codename Bat-Shit Crazy
146
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
147
+ \ <id>d0bb5e45e8bd49ec80ea641146420a43</id>\n <account_code>charge-create-1313708721</account_code>\n
148
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">250</unit_amount_in_cents>\n
149
+ \ <amount_in_cents type=\"integer\">250</amount_in_cents>\n <currency>USD</currency>\n
150
+ \ <start_date type=\"datetime\">2011-08-19T20:01:42Z</start_date>\n <end_date
151
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
152
+ \ <description>virtual cow maintence fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:42Z</created_at>\n</charge>\n"
153
+ http_version: '1.1'