--- http_interactions: - request: method: post uri: https://devapi.currencycloud.com/v2/authenticate/api body: encoding: UTF-8 string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef headers: User-Agent: - CurrencyCloudSDK/2.0 Ruby/0.16.2 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:54:45 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=Zh+t/oSWavtYb7qJamC/2EHIzmUymRr6x/0IWy+j2l9FHJldhSpfDz3aCksiYUQMmwM+jdQJZYeudrnPk/zoSjWS6enr0eQ5A6kL56MefO9/vWf3OGB4RvvcdtIP; Expires=Mon, 23 Jul 2018 10:54:44 GMT; Path=/ - __cfduid=dd7a74226221a50b10a53281124c436681531738484; expires=Tue, 16-Jul-19 10:54:44 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 12f15e80-b4e5-4a6a-a2a5-fabd31791a25 Access-Control-Allow-Methods: - POST X-Content-Type-Options: - nosniff Vary: - Origin Access-Control-Allow-Headers: - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Server: - cloudflare Cf-Ray: - 43b3eeb6f88106be-LHR body: encoding: UTF-8 string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}' http_version: recorded_at: Mon, 16 Jul 2018 10:54:45 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/conversions/create body: encoding: UTF-8 string: buy_currency=GBP&sell_currency=USD&fixed_side=buy&amount=1000&reason=mortgage%20payment&term_agreement=true headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef response: status: code: 200 message: OK headers: Server: - nginx Date: - Mon, 04 May 2015 20:28:29 GMT Content-Type: - application/json;charset=utf-8 Content-Length: - '865' Connection: - keep-alive X-Request-Id: - '2778807612227406608' X-Content-Type-Options: - nosniff body: encoding: UTF-8 string: '{"id":"24d2ee7f-c7a3-4181-979e-9c58dbace992","settlement_date":"2015-05-06T14:00:00+00:00","conversion_date":"2015-05-06T00:00:00+00:00","short_reference":"20150504-PGRNVJ","creator_contact_id":"c4d838e8-1625-44c6-a9fb-39bcb1fe353d","account_id":"8ec3a69b-02d1-4f09-9a6b-6bd54a61b3a8","currency_pair":"GBPUSD","status":"awaiting_funds","buy_currency":"GBP","sell_currency":"USD","client_buy_amount":"1000.00","client_sell_amount":"1511.70","fixed_side":"buy","mid_market_rate":"1.5118","core_rate":"1.5117","partner_rate":"","partner_status":"funds_arrived","partner_buy_amount":"0.00","partner_sell_amount":"0.00","client_rate":"1.5117","deposit_required":false,"deposit_amount":"0.00","deposit_currency":"","deposit_status":"not_required","deposit_required_at":"","payment_ids":[],"created_at":"2015-05-04T20:28:29+00:00","updated_at":"2015-05-04T20:28:29+00:00"}' http_version: recorded_at: Mon, 04 May 2015 20:28:29 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/settlements/create body: encoding: US-ASCII string: '' headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef response: status: code: 200 message: OK headers: Server: - nginx Date: - Mon, 04 May 2015 20:29:16 GMT Content-Type: - application/json;charset=utf-8 Content-Length: - '243' Connection: - keep-alive X-Request-Id: - '2778808011768427319' X-Content-Type-Options: - nosniff body: encoding: UTF-8 string: '{"id":"63eeef54-3531-4e65-827a-7d0f37503fcc","status":"open","short_reference":"20150504-RKNNBH","type":"bulk","conversion_ids":[],"entries":[],"created_at":"2015-05-04T20:29:16+00:00","updated_at":"2015-05-04T20:29:16+00:00","released_at":""}' http_version: recorded_at: Mon, 04 May 2015 20:29:16 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/settlements/63eeef54-3531-4e65-827a-7d0f37503fcc/add_conversion body: encoding: UTF-8 string: conversion_id=24d2ee7f-c7a3-4181-979e-9c58dbace992 headers: X-Auth-Token: - 6f5f99d1b860fc47e8a186e3dce0d3f9 response: status: code: 200 message: OK headers: Server: - nginx Date: - Mon, 04 May 2015 20:40:57 GMT Content-Type: - application/json;charset=utf-8 Content-Length: - '396' Connection: - keep-alive X-Request-Id: - '2778813884314110346' X-Content-Type-Options: - nosniff body: encoding: UTF-8 string: '{"id":"63eeef54-3531-4e65-827a-7d0f37503fcc","status":"open","short_reference":"20150504-RKNNBH","type":"bulk","conversion_ids":["24d2ee7f-c7a3-4181-979e-9c58dbace992"],"entries":[{"GBP":{"receive_amount":"1000.00","send_amount":"0.00"}},{"USD":{"receive_amount":"0.00","send_amount":"1511.70"}}],"created_at":"2015-05-04T20:29:16+00:00","updated_at":"2015-05-04T20:40:56+00:00","released_at":""}' http_version: recorded_at: Mon, 04 May 2015 20:40:57 GMT recorded_with: VCR 3.0.3