spec/vcr/subscription/create/1301881900.yml in recurly-0.4.5 vs spec/vcr/subscription/create/1301881900.yml in recurly-0.4.6

- old
+ new

@@ -1,10 +1,10 @@ --- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post - uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml + uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml body: | <?xml version="1.0" encoding="UTF-8"?> <account> <account-code>subscription-create-1301881900</account-code> <first-name>Verena</first-name> @@ -18,40 +18,42 @@ <accept-language type="yaml" nil="true"></accept-language> </account> headers: authorization: - - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY= + - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm + user-agent: + - Recurly Ruby Client v0.4.6 content-type: - application/xml accept: - "*/*" - user-agent: - - Ruby connection: - close response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 201 - message: Created + message: "Created " headers: cache-control: - no-cache location: - http://app.recurly.local:3000/accounts/subscription-create-1301881900 x-runtime: - - "421" + - "409" content-type: - application/xml; charset=utf-8 content-length: - "593" - set-cookie: - - _recurly_session=326525aebeeab011f8e03d26d429cf86; domain=.recurly.local; path=/; HttpOnly + server: + - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) + date: + - Thu, 21 Apr 2011 18:02:43 GMT connection: - close - server: - - thin 1.2.7 codename No Hup + set-cookie: + - _recurly_session=0a61d065746e536374949c4d043898fa; domain=.recurly.local; path=/; HttpOnly body: | <?xml version="1.0" encoding="UTF-8"?> <account> <id>subscription-create-1301881900</id> <account_code>subscription-create-1301881900</account_code> @@ -60,97 +62,77 @@ <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>4fb27736ef8c43b1bdd0d9754a1c4301</hosted_login_token> - <created_at type="datetime">2011-04-05T19:45:07Z</created_at> + <hosted_login_token>54a93d3207de4113bbfcd3e61341dbf5</hosted_login_token> + <created_at type="datetime">2011-04-21T18:02:43Z</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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml + uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml body: headers: authorization: - - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY= + - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm + user-agent: + - Recurly Ruby Client v0.4.6 accept: - application/xml accept-encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - user-agent: - - Ruby connection: - close response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 - message: OK + message: "OK " headers: x-runtime: - - "78" + - "82" content-type: - application/xml; charset=utf-8 etag: - - "\"eea146faf9def8e0ad1bce0a43411f13\"" + - "\"3888306c167f105a4e165433ee427264\"" cache-control: - private, max-age=0, must-revalidate content-length: - - "1558" - set-cookie: - - _recurly_session=4f27d18d7544fc441e6c6c96a7c30959; domain=.recurly.local; path=/; HttpOnly + - "612" + server: + - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) + date: + - Thu, 21 Apr 2011 18:02:45 GMT connection: - close - server: - - thin 1.2.7 codename No Hup + set-cookie: + - _recurly_session=25ba8613939260f9b12acfd6bf5c4fc8; domain=.recurly.local; path=/; HttpOnly 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-04-03T21:46:48Z</created_at> - <unit_amount_in_cents type="integer">200</unit_amount_in_cents> + <created_at type="datetime">2011-04-21T17:57:33Z</created_at> + <unit_amount_in_cents type="integer">0</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>months</trial_interval_unit> - <latest_version depreciated="true"> - <version type="integer">1</version> - <unit_amount_in_cents type="integer">200</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>months</trial_interval_unit> - <created_at type="datetime">2011-04-04T02:15:00Z</created_at> - </latest_version> - <add_ons type="array"> - <add_on> - <add_on_code>special</add_on_code> - <default_unit_amount_in_cents>1000</default_unit_amount_in_cents> - <default_quantity>1</default_quantity> - </add_on> - <add_on> - <add_on_code>special2</add_on_code> - <default_unit_amount_in_cents>50000</default_unit_amount_in_cents> - <default_quantity>1</default_quantity> - </add_on> - </add_ons> </plan> http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post - uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-create-1301881900/subscription.xml + uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-create-1301881900/subscription.xml body: | <?xml version="1.0" encoding="UTF-8"?> <subscription> <plan-code>paid</plan-code> <quantity type="integer">1</quantity> @@ -178,47 +160,49 @@ <accept-language type="yaml" nil="true"></accept-language> <id>subscription-create-1301881900</id> <username type="yaml" nil="true"></username> <balance-in-cents type="integer">0</balance-in-cents> <closed type="boolean">false</closed> - <hosted-login-token>4fb27736ef8c43b1bdd0d9754a1c4301</hosted-login-token> - <created-at type="datetime">2011-04-05T19:45:07Z</created-at> + <hosted-login-token>54a93d3207de4113bbfcd3e61341dbf5</hosted-login-token> + <created-at type="datetime">2011-04-21T18:02:43Z</created-at> <state>active</state> </account> <addons type="array"/> </subscription> headers: authorization: - - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY= + - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm + user-agent: + - Recurly Ruby Client v0.4.6 content-type: - application/xml accept: - "*/*" - user-agent: - - Ruby connection: - close response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 201 - message: Created + message: "Created " headers: cache-control: - no-cache x-runtime: - - "3860" + - "3544" content-type: - application/xml; charset=utf-8 content-length: - - "907" - set-cookie: - - _recurly_session=f4265b47317a796e7d634f115e853a1d; domain=.recurly.local; path=/; HttpOnly + - "969" + server: + - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) + date: + - Thu, 21 Apr 2011 18:02:50 GMT connection: - close - server: - - thin 1.2.7 codename No Hup + set-cookie: + - _recurly_session=05943a0b998bf35eeed9fefbd5168d60; domain=.recurly.local; path=/; HttpOnly body: | <?xml version="1.0" encoding="UTF-8"?> <subscription> <id>subscription-create-1301881900</id> <account_code>subscription-create-1301881900</account_code> @@ -226,15 +210,16 @@ <plan_code>paid</plan_code> <name>Paid</name> </plan> <state>active</state> <quantity type="integer">1</quantity> - <total_amount_in_cents type="integer">200</total_amount_in_cents> - <activated_at type="datetime">2011-04-05T19:45:13Z</activated_at> + <unit_amount_in_cents type="integer">0</unit_amount_in_cents> + <total_amount_in_cents type="integer">0</total_amount_in_cents> + <activated_at type="datetime">2011-04-21T18:02:47Z</activated_at> <canceled_at nil="true" type="datetime"></canceled_at> <expires_at nil="true" type="datetime"></expires_at> - <current_period_started_at type="datetime">2011-04-05T19:45:13Z</current_period_started_at> - <current_period_ends_at type="datetime">2011-05-05T19:45:13Z</current_period_ends_at> + <current_period_started_at type="datetime">2011-04-21T18:02:47Z</current_period_started_at> + <current_period_ends_at type="datetime">2011-05-21T18:02:47Z</current_period_ends_at> <trial_started_at nil="true" type="datetime"></trial_started_at> <trial_ends_at nil="true" type="datetime"></trial_ends_at> <add_ons type="array"> </add_ons> </subscription>