--- 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.0.3 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:12 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=yBgYKjcJj0u6FEX9Fby6XCzIHifH69/DE7iE/fsEeVfY21LA/TIbc9Mbn8Om/NuB27XHf0x6o0K9je9TOQMuUt0UsLKrz5j0nGVsrYSMwdiVmyRYCH0MzvRQVYhu; Expires=Mon, 23 Jul 2018 10:41:10 GMT; Path=/ - __cfduid=d7c2d7b15fd072f2e6a3d82784fc0ebaa1531737670; expires=Tue, 16-Jul-19 10:41:10 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 61677c3a-8bf0-4c8f-b543-ef7367d62b07 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: - 43b3dadb0a54137d-LHR body: encoding: UTF-8 string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:12 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.0.3 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:13 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=kPEDIb5u7MNUkVOPPynbppWUqy6BdRV0PzTnzfLFkMxoi5dqdRjus9JageCyV83/+/RSMEgHAP3q3A0Qbx0d+1SryWUDMr+6ZEM7fVmgOCgHd5d2142J/h98fyoS; Expires=Mon, 23 Jul 2018 10:41:12 GMT; Path=/ - __cfduid=df77720127ba8f4f9dbc7559fc3040a8c1531737672; expires=Tue, 16-Jul-19 10:41:12 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 5c423da2-fad0-49f7-8d90-9ed5bf4c5f8c 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: - 43b3dae5d9980a66-LHR body: encoding: UTF-8 string: '{"id":"81b23958-cde7-4882-a4ae-f0da6a95d6cb","settlement_date":"2018-07-18T15:30:00+00:00","conversion_date":"2018-07-18T00:00:00+00:00","short_reference":"20180716-MGHWYQ","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_status":"awaiting_funds","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:12+00:00","updated_at":"2018-07-16T10:41:13+00:00","mid_market_rate":"1.4080"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:13 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/conversions/81b23958-cde7-4882-a4ae-f0da6a95d6cb/cancel body: encoding: UTF-8 string: notes=Business%20Terminated%20Contract headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef User-Agent: - CurrencyCloudSDK/2.0 Ruby/1.0.3 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:14 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=CPsdE2dKlqAr7Ce0uybmWUL+6azCONRdBosWGV6TfG3LgVTWHx1jiTVcqZdMXq9VDqGeogylymvK8vu0pXlj4t2eLgtwN/23PfeaVKWFt6FHFrqjxNwBfDt4dBOp; Expires=Mon, 23 Jul 2018 10:41:13 GMT; Path=/ - __cfduid=daf5c616e86fed74225159aa259137d1e1531737673; expires=Tue, 16-Jul-19 10:41:13 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 036105c5-ad2e-4e89-8f36-306b1c187c60 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: - 43b3daeaf8080a6c-LHR body: encoding: UTF-8 string: '{"account_id":"67e1b252-40a7-454d-a097-8f77d385889d","contact_id":"04d0c252-7b78-4d72-b408-df78841e3ddc","event_account_id":"67e1b252-40a7-454d-a097-8f77d385889d","event_contact_id":"04d0c252-7b78-4d72-b408-df78841e3ddc","conversion_id":"81b23958-cde7-4882-a4ae-f0da6a95d6cb","event_type":"self_service_cancellation","amount":"-9.58","currency":"GBP","notes":"Business Terminated Contract","event_date_time":"2018-07-16T10:41:14+00:00"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:14 GMT recorded_with: VCR 3.0.3