using System;
using DataMatch.AddressVerification.Contracts;

namespace DataMatch.AddressVerification.Helpers
{
    internal static class RequestHelper
    {
        private const String CassBaseUrl = @"https://api.cassonline.com/servoy-service/rest_ws/ws_address";
        private const String CassAutocomplete = "ws_autocomplete";
        private const String CassApiKey = "B4600995-5991-47D3-AC44-F7C090CFAD7F";
        private const String CassCountries = "us|pr|vi|gu|ca";

        internal static String GetRequestString(ICassRequest request)
        {
            return $"{CassBaseUrl}/{CassAutocomplete}/{CassApiKey}/{request.Query}/{CassCountries}/";
        }
    }
}
