--- 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.5.0 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:05 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=6PC1HmZrhiw12mGtDeNAe6MKMxwkrh6lMdcIO6O/fJrHgV5/hYjkSE478DnzR2XFgxRU5U5b3EyblXtDLaSc4iYGSciicl4k9En+TFqTabJH+7BuSdeoNkeuHxAh; Expires=Mon, 23 Jul 2018 10:41:04 GMT; Path=/ - __cfduid=d2428f818dd606d71ef49c356f6a624b31531737664; expires=Tue, 16-Jul-19 10:41:04 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 2c1f89c4-7394-4b57-93ef-efdd79befbef 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: - 43b3dab0883a0a84-LHR body: encoding: UTF-8 string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:05 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=95000&reason=SDK%20conversion%20testing&term_agreement=true headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef User-Agent: - CurrencyCloudSDK/2.0 Ruby/1.5.0 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:06 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=L3g6+O+jRcfOxoLTYV/ET4TK5xsBI+T2LGFbTc+2LUXDSHk+pFWWXREzy5pcM+fFBzxfEj9/tf0lL8dyMfy2uXuveLWvPuAZb6T9rEy41EIzRRvJKKY/nAQd9bMM; Expires=Mon, 23 Jul 2018 10:41:05 GMT; Path=/ - __cfduid=df250c693a60f31295b2bb1dab1bac6981531737665; expires=Tue, 16-Jul-19 10:41:05 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 42c1e621-9604-4915-bf00-480aeb2dd62e 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: - 43b3dabb0b1e06c4-LHR body: encoding: UTF-8 string: '{"id":"c956f45b-52a5-4aee-a532-7c1c20f6f934","settlement_date":"2018-07-18T15:30:00+00:00","conversion_date":"2018-07-18T00:00:00+00:00","short_reference":"20180716-WRJWLF","creator_contact_id":"04d0c252-7b78-4d72-b408-df78841e3ddc","account_id":"67e1b252-40a7-454d-a097-8f77d385889d","currency_pair":"GBPUSD","status":"awaiting_funds","buy_currency":"USD","sell_currency":"GBP","client_buy_amount":"95000.00","client_sell_amount":"67476.38","fixed_side":"buy","core_rate":"1.4079","partner_rate":"","partner_buy_amount":"0.00","partner_sell_amount":"0.00","client_rate":"1.4079","deposit_required":false,"deposit_amount":"0.00","deposit_currency":"","deposit_status":"not_required","deposit_required_at":"","payment_ids":[],"unallocated_funds":"0.00","unique_request_id":null,"created_at":"2018-07-16T10:41:06+00:00","updated_at":"2018-07-16T10:41:06+00:00","mid_market_rate":"1.4080"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:06 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/conversions/c956f45b-52a5-4aee-a532-7c1c20f6f934/split body: encoding: UTF-8 string: amount=45000 headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef User-Agent: - CurrencyCloudSDK/2.0 Ruby/1.5.0 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:07 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=zisVxKawvZFChQFxmVmy91snfts7wNliVxCc+HbRM3zwk5bRnkUaVAXSMa5t2Lg8e2nEawPtSmhgiQmZ/5zwCrL19rbjs9zFTenv9MaiKfzZfHvkq08bv2l4e+Xj; Expires=Mon, 23 Jul 2018 10:41:06 GMT; Path=/ - __cfduid=da591275395a19f214e9312dbc078973c1531737666; expires=Tue, 16-Jul-19 10:41:06 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 18946bc1-0f66-4c8a-a9b5-8a05acc66b44 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: - 43b3dabf7988bc50-LHR body: encoding: UTF-8 string: '{"parent_conversion":{"id":"c956f45b-52a5-4aee-a532-7c1c20f6f934","short_reference":"20180716-WRJWLF","sell_amount":"35513.88","sell_currency":"GBP","buy_amount":"50000.00","buy_currency":"USD","settlement_date":"2018-07-18T15:30:00+00:00","conversion_date":"2018-07-18T00:00:00+00:00","status":"awaiting_funds"},"child_conversion":{"id":"7e943da9-fb4d-4da2-89f8-3543054b6aa1","short_reference":"20180716-GDGNRV","sell_amount":"31962.50","sell_currency":"GBP","buy_amount":"45000.00","buy_currency":"USD","settlement_date":"2018-07-18T15:30:00+00:00","conversion_date":"2018-07-18T00:00:00+00:00","status":"awaiting_funds"}}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:07 GMT recorded_with: VCR 3.0.3