--- 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/1.3.0 response: status: code: 200 message: OK headers: Date: - Thu, 29 Nov 2018 09:20:50 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - __cfduid=d851b90b699937dafa8eb1e13aa0701a41543483248; expires=Fri, 29-Nov-19 09:20:48 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - '*' X-Request-Id: - d6fa2319-aefb-45bf-bdb6-e0698f1de5d1 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: - 4814001e6ae6b6ce-LHR body: encoding: UTF-8 string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}' http_version: recorded_at: Thu, 29 Nov 2018 09:20:50 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/conversions/create body: encoding: UTF-8 string: buy_currency=USD&sell_currency=GBP&fixed_side=buy&amount=150&reason=SDK%20conversion%20testing&term_agreement=true headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef User-Agent: - CurrencyCloudSDK/2.0 Ruby/1.3.0 response: status: code: 200 message: OK headers: Date: - Wed, 28 Nov 2018 13:53:07 GMT Content-Type: - application/json Content-Length: - '176' Connection: - keep-alive Set-Cookie: - __cfduid=d2c823694250189fcdf9007608088530a1543413187; expires=Thu, 28-Nov-19 13:53:07 GMT; path=/; domain=.currencycloud.com; HttpOnly X-Request-Id: - e4d20626-3044-4dd9-9c25-3dc3e2879393 X-Content-Type-Options: - nosniff Vary: - Origin Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Server: - cloudflare Cf-Ray: - 480d51a338b1b6d4-LHR body: encoding: UTF-8 string: '{"id":"d391e0a1-2643-44ff-b063-bbe39c98a2b5","settlement_date":"2018-11-19T16:30:00+00:00","conversion_date":"2018-11-19T00:00:00+00:00","short_reference":"20181115-GHXVKW","creator_contact_id":"a66ca63f-e668-47af-8bb9-74363240d781","account_id":"72970a7c-7921-431c-b95f-3438724ba16f","currency_pair":"GBPUSD","status":"awaiting_funds","buy_currency":"USD","sell_currency":"GBP","client_buy_amount":"150.00","client_sell_amount":"106.39","fixed_side":"buy","core_rate":"1.4099","partner_rate":"","partner_buy_amount":"0.00","partner_sell_amount":"0.00","client_rate":"1.4099","deposit_required":false,"deposit_amount":"0.00","deposit_currency":"","deposit_status":"not_required","deposit_required_at":"","payment_ids":[],"unallocated_funds":"150.00","unique_request_id":null,"created_at":"2018-11-15T14:07:58+00:00","updated_at":"2018-11-15T14:07:59+00:00","mid_market_rate":"1.4100"}' http_version: recorded_at: Wed, 28 Nov 2018 13:53:07 GMT recorded_with: VCR 3.0.3