spec/vcr/subscription/addons/remove/1296674173.yml in recurly-0.4.11 vs spec/vcr/subscription/addons/remove/1296674173.yml in recurly-0.4.13

- old
+ new

@@ -1,270 +1,177 @@ ---- -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request +--- +- !ruby/struct:VCR::HTTPInteraction + request: !ruby/struct:VCR::Request method: :post - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>subscription-addons-remove-1296674173</account-code>\n - \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n - \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n - \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n" - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - content-type: + uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml + body: | + <?xml version="1.0" encoding="UTF-8"?> + <account> + <account-code>subscription-addons-remove-1296674173</account-code> + <first-name>Verena</first-name> + <last-name>Test</last-name> + <email>verena@test.com</email> + <company-name>Recurly Ruby Gem</company-name> + <billing-info> + <credit-card> + </credit-card> + </billing-info> + <accept-language nil="true"></accept-language> + </account> + + headers: + user-agent: + - Recurly Ruby Client v0.4.13 + content-type: - application/xml - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus + response: !ruby/struct:VCR::Response + status: !ruby/struct:VCR::ResponseStatus code: 201 message: Created - headers: - location: - - http://app.lvh.me:3000/accounts/subscription-addons-remove-1296674173 - content-type: + headers: + location: + - http://api.lvh.me:3000/accounts/subscription-addons-remove-1296674173 + content-type: - application/xml; charset=utf-8 - cache-control: + cache-control: - no-cache - x-ua-compatible: + x-ua-compatible: - IE=Edge - set-cookie: - - _recurly_session=dfac8f1cc5a8c43f53e377f03bb36d84; domain=.lvh.me; path=/; - HttpOnly - server: + set-cookie: + - _recurly_session=29202e06355a5ec889911d949d5701fa; domain=.lvh.me; path=/; HttpOnly + server: - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>subscription-addons-remove-1296674173</id>\n - \ <account_code>subscription-addons-remove-1296674173</account_code>\n <username></username>\n - \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n - \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n - \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>aab3d31efc3f429da83e5d56f9325e88</hosted_login_token>\n - \ <created_at type=\"datetime\">2011-08-19T20:01:16Z</created_at>\n <state>active</state>\n</account>\n" - http_version: '1.1' -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request + body: | + <?xml version="1.0" encoding="UTF-8"?> + <account> + <id>subscription-addons-remove-1296674173</id> + <account_code>subscription-addons-remove-1296674173</account_code> + <username></username> + <email>verena@test.com</email> + <first_name>Verena</first_name> + <last_name>Test</last_name> + <company_name>Recurly Ruby Gem</company_name> + <balance_in_cents type="integer">0</balance_in_cents> + <closed type="boolean">false</closed> + <hosted_login_token>de249b33dbf64968822fa5b51a64c0cd</hosted_login_token> + <created_at type="datetime">2011-09-22T22:01:37Z</created_at> + <state>active</state> + </account> + + http_version: "1.1" +- !ruby/struct:VCR::HTTPInteraction + request: !ruby/struct:VCR::Request method: :get - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml - body: !!null - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - accept: + uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml + body: + headers: + user-agent: + - Recurly Ruby Client v0.4.13 + accept: - application/xml - accept-encoding: + accept-encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus + response: !ruby/struct:VCR::Response + status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK - headers: - content-type: + headers: + content-type: - application/xml; charset=utf-8 - etag: - - ! '"30df1bac5befaf2f9fc4564c2103a07b"' - cache-control: + etag: + - "\"7487d065869e9c487e0a588e1edea5dc\"" + cache-control: - max-age=0, private, must-revalidate - x-ua-compatible: + x-ua-compatible: - IE=Edge - set-cookie: - - _recurly_session=25fb1bd8bc0bf91a56e3cc48f59daac6; domain=.lvh.me; path=/; - HttpOnly - server: + server: - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n - \ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n - \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n - \ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents - type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n - \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length - type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n - \ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n - \ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents - type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n - \ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n - \ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n - \ </add_on>\n </add_ons>\n</plan>\n" - http_version: '1.1' -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request + body: | + <?xml version="1.0" encoding="UTF-8"?> + <plan> + <plan_code>paid</plan_code> + <name>paid</name> + <description></description> + <success_url></success_url> + <cancel_url></cancel_url> + <created_at type="datetime">2011-09-22T21:54:04Z</created_at> + <unit_amount_in_cents type="integer">1400</unit_amount_in_cents> + <setup_fee_in_cents type="integer">0</setup_fee_in_cents> + <plan_interval_length type="integer">1</plan_interval_length> + <plan_interval_unit>months</plan_interval_unit> + <trial_interval_length type="integer">0</trial_interval_length> + <trial_interval_unit>days</trial_interval_unit> + </plan> + + http_version: "1.1" +- !ruby/struct:VCR::HTTPInteraction + request: !ruby/struct:VCR::Request method: :post - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <plan-code>paid</plan-code>\n - \ <quantity type=\"integer\">1</quantity>\n <account>\n <account-code>subscription-addons-remove-1296674173</account-code>\n - \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n - \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n - \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n - \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n - \ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n - \ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n - \ <verification-value>123</verification-value>\n </credit-card>\n - \ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n - \ <id>subscription-addons-remove-1296674173</id>\n <username nil=\"true\"></username>\n - \ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n - \ <hosted-login-token>aab3d31efc3f429da83e5d56f9325e88</hosted-login-token>\n - \ <created-at type=\"datetime\">2011-08-19T20:01:16Z</created-at>\n <state>active</state>\n - \ </account>\n <add-ons type=\"array\">\n <add-on>\n <add-on-code>special</add-on-code>\n - \ <quantity type=\"integer\">1</quantity>\n <unit-amount type=\"integer\">1000</unit-amount>\n - \ </add-on>\n </add-ons>\n <addons type=\"array\"/>\n</subscription>\n" - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - content-type: + uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml + body: | + <?xml version="1.0" encoding="UTF-8"?> + <subscription> + <plan-code>paid</plan-code> + <quantity type="integer">1</quantity> + <account> + <account-code>subscription-addons-remove-1296674173</account-code> + <first-name>Verena</first-name> + <last-name>Test</last-name> + <email>verena@test.com</email> + <company-name>Recurly Ruby Gem</company-name> + <billing-info> + <first-name>Verena</first-name> + <last-name>Test</last-name> + <address1>123 Test St</address1> + <city>San Francisco</city> + <state>CA</state> + <zip>94115</zip> + <country>US</country> + <credit-card> + <number>4111111111111111</number> + <year type="integer">2012</year> + <month type="integer">9</month> + <verification-value>123</verification-value> + </credit-card> + </billing-info> + <accept-language nil="true"></accept-language> + <id>subscription-addons-remove-1296674173</id> + <username nil="true"></username> + <balance-in-cents type="integer">0</balance-in-cents> + <closed type="boolean">false</closed> + <hosted-login-token>de249b33dbf64968822fa5b51a64c0cd</hosted-login-token> + <created-at type="datetime">2011-09-22T22:01:37Z</created-at> + <state>active</state> + </account> + <add-ons type="array"> + <add-on> + <add-on-code>special</add-on-code> + <quantity type="integer">1</quantity> + <unit-amount type="integer">1000</unit-amount> + </add-on> + </add-ons> + <addons type="array"/> + </subscription> + + headers: + user-agent: + - Recurly Ruby Client v0.4.13 + content-type: - application/xml - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus - code: 201 - message: Created - headers: - content-type: - - application/xml; charset=utf-8 - cache-control: - - no-cache - x-ua-compatible: - - IE=Edge - set-cookie: - - _recurly_session=5dc3dba76f032ed47242037a2b8761df; domain=.lvh.me; path=/; - HttpOnly - server: - - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n - \ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n - \ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n - \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n - \ <total_amount_in_cents type=\"integer\">101200</total_amount_in_cents>\n <activated_at - type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\" - type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n - \ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n - \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n - \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at - nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n - \ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents - type=\"integer\">100000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n - \ </add_on>\n </add_ons>\n</subscription>\n" - http_version: '1.1' -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request - method: :get - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml - body: !!null - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - accept: + response: !ruby/struct:VCR::Response + status: !ruby/struct:VCR::ResponseStatus + code: 422 + message: + headers: + content-type: - application/xml - accept-encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus - code: 200 - message: OK - headers: - content-type: - - application/xml; charset=utf-8 - etag: - - ! '"b7e7ed752140f295659977bfc78dbb38"' - cache-control: - - max-age=0, private, must-revalidate - x-ua-compatible: - - IE=Edge - set-cookie: - - _recurly_session=edb03eeca138c0b67051cc2c80e85def; domain=.lvh.me; path=/; - HttpOnly - server: + content-length: + - "94" + server: - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n - \ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n - \ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n - \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n - \ <total_amount_in_cents type=\"integer\">101200</total_amount_in_cents>\n <activated_at - type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\" - type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n - \ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n - \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n - \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at - nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n - \ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents - type=\"integer\">100000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n - \ </add_on>\n </add_ons>\n</subscription>\n" - http_version: '1.1' -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request - method: :put - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <add-ons - type=\"array\"/>\n <timeframe>now</timeframe>\n</subscription>\n" - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - content-type: - - application/xml - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus - code: 200 - message: OK - headers: - content-type: - - application/xml; charset=utf-8 - etag: - - ! '"b2014ad39c563982630bc6810fc3d15c"' - cache-control: - - max-age=0, private, must-revalidate - x-ua-compatible: - - IE=Edge - set-cookie: - - _recurly_session=84adce86cad17beb5e739dd98d6eef7c; domain=.lvh.me; path=/; - HttpOnly - server: - - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n - \ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n - \ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n - \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n - \ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at - type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\" - type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n - \ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n - \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n - \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at - nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n - \ </add_ons>\n</subscription>\n" - http_version: '1.1' -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request - method: :get - uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml - body: !!null - headers: - user-agent: - - Recurly Ruby Client v0.4.10 - accept: - - application/xml - accept-encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus - code: 200 - message: OK - headers: - content-type: - - application/xml; charset=utf-8 - etag: - - ! '"b2014ad39c563982630bc6810fc3d15c"' - cache-control: - - max-age=0, private, must-revalidate - x-ua-compatible: - - IE=Edge - set-cookie: - - _recurly_session=ed141b5ef2d53333e412813cff0943fc; domain=.lvh.me; path=/; - HttpOnly - server: - - thin 1.2.11 codename Bat-Shit Crazy - body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n - \ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n - \ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n - \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n - \ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at - type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\" - type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n - \ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n - \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n - \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at - nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n - \ </add_ons>\n</subscription>\n" - http_version: '1.1' + body: | + <?xml version="1.0" encoding="UTF-8"?> + <errors> + <error>Method not allowed</error> + </errors> + + http_version: "1.1"