--- 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.17.7 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:09 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=ZEHOmsiI8OM+PMmgRYsQplgAjl9nKpR2eDUds0hG7pDuB8O8Lck3GPZjIYcGlTkcUhty7JfDrqw9v202bUnMB4t5U2t8VoqrqxfYVWOqvLNiRu7yRGTq2iGY7Ysh; Expires=Mon, 23 Jul 2018 10:41:07 GMT; Path=/ - __cfduid=d612e562e2c8be10df9bbb486f008cf481531737667; expires=Tue, 16-Jul-19 10:41:07 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 144bd2ed-bcbf-4c81-8fbb-b35fc648e03c 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: - 43b3dac5ea5e06d0-LHR body: encoding: UTF-8 string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:09 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/0.17.7 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:09 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=OtpPXkCMvsWONFO9PstNhQZ6b3YGaAV1V3PCwrwePv4SdC9e4D1R0LG9x3OHKhCcT85gQqlfTBO1VGTt0GouQEwiYnznDrBuk+DoHOTrYjTs9rwTtPyzKzZOKayv; Expires=Mon, 23 Jul 2018 10:41:09 GMT; Path=/ - __cfduid=dd22aff118b982fc2d61920a17c0cef4a1531737669; expires=Tue, 16-Jul-19 10:41:09 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 9c175aba-2875-4e5c-b1a7-ce946e02ef04 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: - 43b3dad01b820a66-LHR body: encoding: UTF-8 string: '{"id":"70e15a24-9a4c-4c56-8f68-3816965eb311","settlement_date":"2018-07-18T15:30:00+00:00","conversion_date":"2018-07-18T00:00:00+00:00","short_reference":"20180716-YTCSSY","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:09+00:00","updated_at":"2018-07-16T10:41:09+00:00","mid_market_rate":"1.4080"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:09 GMT - request: method: post uri: https://devapi.currencycloud.com/v2/conversions/70e15a24-9a4c-4c56-8f68-3816965eb311/cancel body: encoding: US-ASCII string: '' headers: X-Auth-Token: - deadbeefdeadbeefdeadbeefdeadbeef User-Agent: - CurrencyCloudSDK/2.0 Ruby/0.17.7 response: status: code: 200 message: OK headers: Date: - Mon, 16 Jul 2018 10:41:10 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Set-Cookie: - AWSALB=84q2RtK7oG9Fr2vGEOaGeilkJXRmhiSGem57M5DB05NAFq9ovlaxXJA3W7oVRUhwferO5ghHcqnCkEi5a9fA7xENlgcCPcCcv4c1Mjki6k2xb/cKwCEmcgH2rdB7; Expires=Mon, 23 Jul 2018 10:41:10 GMT; Path=/ - __cfduid=dc27dafb2dadeff88f63749a2f1c226381531737669; expires=Tue, 16-Jul-19 10:41:09 GMT; path=/; domain=.currencycloud.com; HttpOnly Access-Control-Allow-Origin: - "*" X-Request-Id: - 012ea49f-f220-45af-bdbb-d7bce9456062 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: - 43b3dad55dcc1377-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":"70e15a24-9a4c-4c56-8f68-3816965eb311","event_type":"self_service_cancellation","amount":"-9.58","currency":"GBP","notes":"","event_date_time":"2018-07-16T10:41:10+00:00"}' http_version: recorded_at: Mon, 16 Jul 2018 10:41:10 GMT recorded_with: VCR 3.0.3