mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-05-18 19:48:23 +00:00
SP-API stock reconciliation
Amazon had depreciated a number of reports that were used for stock reconciliation. Application now uses the new fba ledger report to reconcile. It is currently untested, as this requires data from Amazon. Methods that require testing will return a 'NotImplementedException'. Also, removed the depreciated ILMerge and replaced with ILRepack. Plus much more tidying up, and improvements.
This commit is contained in:
@@ -26,17 +26,20 @@ namespace bnhtrade.Core.Data.Amazon.SellingPartnerAPI
|
||||
{
|
||||
// attempt to create credential object from app.local.config
|
||||
var credential = new FikaAmazonAPI.AmazonCredential();
|
||||
var config = new Config().GetConfiguration();
|
||||
try
|
||||
{
|
||||
string dataSource = config.AppSettings.Settings["DbDataSource"].Value;
|
||||
|
||||
credential = new FikaAmazonAPI.AmazonCredential();
|
||||
credential.AccessKey = ConfigurationManager.AppSettings["SpapiAccessKey"];
|
||||
credential.SecretKey = ConfigurationManager.AppSettings["SpapiSecretKey"];
|
||||
credential.RoleArn = ConfigurationManager.AppSettings["SpapiRoleArn"];
|
||||
credential.ClientId = ConfigurationManager.AppSettings["SpapiClientId"];
|
||||
credential.ClientSecret = ConfigurationManager.AppSettings["SpapiClientSecret"];
|
||||
credential.RefreshToken = ConfigurationManager.AppSettings["SpapiRefreshToken"];
|
||||
credential.MarketPlaceID = ConfigurationManager.AppSettings["SpapiMarketplaceId"];
|
||||
credential.IsDebugMode = true;
|
||||
//credential.AccessKey = config.AppSettings.Settings["SpapiAccessKey"].Value;
|
||||
//credential.SecretKey = config.AppSettings.Settings["SpapiSecretKey"].Value;
|
||||
//credential.RoleArn = config.AppSettings.Settings["SpapiRoleArn"].Value;
|
||||
credential.ClientId = config.AppSettings.Settings["SpapiClientId"].Value;
|
||||
credential.ClientSecret = config.AppSettings.Settings["SpapiClientSecret"].Value;
|
||||
credential.RefreshToken = config.AppSettings.Settings["SpapiRefreshToken"].Value;
|
||||
credential.MarketPlaceID = config.AppSettings.Settings["SpapiMarketplaceId"].Value;
|
||||
//credential.IsDebugMode = true;
|
||||
credential.MaxThrottledRetryCount = 3;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user