spec/vcr/subscription/addons/add/1296674173.yml in recurly-0.4.11 vs spec/vcr/subscription/addons/add/1296674173.yml in recurly-0.4.13
- old
+ new
@@ -1,282 +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-add-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-add-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-add-1296674173
- content-type:
+ headers:
+ location:
+ - http://api.lvh.me:3000/accounts/subscription-addons-add-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=d9f84a54c8d6ee3061bb3168354bc8d6; domain=.lvh.me; path=/;
- HttpOnly
- server:
+ set-cookie:
+ - _recurly_session=bee1827688f46ea797d3b6bde1a5eab0; 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-add-1296674173</id>\n
- \ <account_code>subscription-addons-add-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>f46a4ce05f414b52a8ca3ef719f944e1</hosted_login_token>\n
- \ <created_at type=\"datetime\">2011-08-19T20:01:12Z</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-add-1296674173</id>
+ <account_code>subscription-addons-add-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>0812174f8ab04592b0044df5dc3f6e57</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=7e0175dc40f985349c570c46343e6559; 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-add-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-add-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-add-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>f46a4ce05f414b52a8ca3ef719f944e1</hosted-login-token>\n
- \ <created-at type=\"datetime\">2011-08-19T20:01:12Z</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\">10</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-add-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-add-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-add-1296674173</id>
+ <username nil="true"></username>
+ <balance-in-cents type="integer">0</balance-in-cents>
+ <closed type="boolean">false</closed>
+ <hosted-login-token>0812174f8ab04592b0044df5dc3f6e57</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">10</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=ec2ccc549ee046acbdf78bf70b673759; 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-add-1296674173</id>\n
- \ <account_code>subscription-addons-add-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\">2200</total_amount_in_cents>\n <activated_at
- type=\"datetime\">2011-08-19T20:01:12Z</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:12Z</current_period_started_at>\n
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:12Z</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\">1000</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-add-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:
- - ! '"1820e21ab58012dbf9bbaea267a8ebe8"'
- cache-control:
- - max-age=0, private, must-revalidate
- x-ua-compatible:
- - IE=Edge
- set-cookie:
- - _recurly_session=0b0290cea50f198e119afa41ac25a63d; 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-add-1296674173</id>\n
- \ <account_code>subscription-addons-add-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\">2200</total_amount_in_cents>\n <activated_at
- type=\"datetime\">2011-08-19T20:01:12Z</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:12Z</current_period_started_at>\n
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:12Z</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\">1000</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-add-1296674173/subscription.xml
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <add-ons
- type=\"array\">\n <add-on>\n <add-on-code>special</add-on-code>\n <unit-amount-in-cents
- type=\"integer\">1000</unit-amount-in-cents>\n <quantity type=\"integer\">1</quantity>\n
- \ </add-on>\n <add-on>\n <add-on-code>special2</add-on-code>\n <quantity
- type=\"integer\">2</quantity>\n <unit-amount type=\"integer\">500</unit-amount>\n
- \ </add-on>\n </add-ons>\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:
- - ! '"ab59602b1900425750afeaf047cd82d3"'
- cache-control:
- - max-age=0, private, must-revalidate
- x-ua-compatible:
- - IE=Edge
- set-cookie:
- - _recurly_session=248a811ff0c68f317455eb3d5e20b736; 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-add-1296674173</id>\n
- \ <account_code>subscription-addons-add-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\">102200</total_amount_in_cents>\n <activated_at
- type=\"datetime\">2011-08-19T20:01:12Z</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:12Z</current_period_started_at>\n
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:12Z</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\">1000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
- \ </add_on>\n <add_on>\n <add_on_code>special2</add_on_code>\n <unit_amount_in_cents
- type=\"integer\">50000</unit_amount_in_cents>\n <quantity type=\"integer\">2</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-add-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:
- - ! '"ab59602b1900425750afeaf047cd82d3"'
- cache-control:
- - max-age=0, private, must-revalidate
- x-ua-compatible:
- - IE=Edge
- set-cookie:
- - _recurly_session=edf34ce4ad40a5dd4c6c9b628d399dd0; 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-add-1296674173</id>\n
- \ <account_code>subscription-addons-add-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\">102200</total_amount_in_cents>\n <activated_at
- type=\"datetime\">2011-08-19T20:01:12Z</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:12Z</current_period_started_at>\n
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:12Z</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\">1000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
- \ </add_on>\n <add_on>\n <add_on_code>special2</add_on_code>\n <unit_amount_in_cents
- type=\"integer\">50000</unit_amount_in_cents>\n <quantity type=\"integer\">2</quantity>\n
- \ </add_on>\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"