protected BamboraClientConfig GetBamboraClientConfig(BamboraSettingsBase settings)
        {
            BamboraClientConfig config;

            if (settings.TestMode)
            {
                config = new BamboraClientConfig
                {
                    AccessKey      = settings.TestAccessKey,
                    MerchantNumber = settings.TestMerchantNumber,
                    SecretKey      = settings.TestSecretKey,
                    MD5Key         = settings.TestMd5Key
                };
            }
            else
            {
                config = new BamboraClientConfig
                {
                    AccessKey      = settings.LiveAccessKey,
                    MerchantNumber = settings.LiveMerchantNumber,
                    SecretKey      = settings.LiveSecretKey,
                    MD5Key         = settings.LiveMd5Key
                };
            }

            var apiKey = GenerateApiKey(config.AccessKey, config.MerchantNumber, config.SecretKey);

            config.Authorization = "Basic " + apiKey;

            return(config);
        }
 public BamboraClient(BamboraClientConfig config)
 {
     _config = config;
 }