Example #1
0
 public static List <CurrencyConversionRate> GetCurrencyConversionRates(GetConversionRatesRequest requestParams, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <List <CurrencyConversionRate> >(Factory.GetResponse("Settings/GetCurrencyConversionRates", "requestParams=" + Newtonsoft.Json.JsonConvert.SerializeObject(requestParams, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
Example #2
0
        /// <summary>
        /// Get Currency Conversion Rates
        /// </summary>
        /// <param name="requestParams">GetCurrenciesFromOrders: Load currencies from the orders table and save before returning
        /// Currency: Get a specific currency rate. Leave empty to get all</param>
        public List <CurrencyConversionRate> GetCurrencyConversionRates(GetConversionRatesRequest requestParams)
        {
            var response = GetResponse("Settings/GetCurrencyConversionRates", "requestParams=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(requestParams)) + "");

            return(JsonFormatter.ConvertFromJson <List <CurrencyConversionRate> >(response));
        }
Example #3
0
        /// <summary>
        /// Get Currency Conversion Rates
        /// </summary>
        /// <param name="requestParams">GetCurrenciesFromOrders: Load currencies from the orders table and save before returning
        /// Currency: Get a specific currency rate. Leave empty to get all</param>
        public List <CurrencyConversionRate> GetCurrencyConversionRates(GetConversionRatesRequest requestParams)
        {
            var response = GetResponse("Settings/GetCurrencyConversionRates", "requestParams=" + JsonFormatter.ConvertToJson(requestParams) + "");

            return(JsonFormatter.ConvertFromJson <List <CurrencyConversionRate> >(response));
        }