mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 06:27:15 +00:00
the abandoned fba repricing feature
* Merge master into branch (#15) * Bug fix * Bug fix when retriving shipment stock status id * Various bug fixs and improvements to stock SKU reconciliation * Last MWS report import date time saved * master into branch (#16) * Bug fix * Bug fix when retriving shipment stock status id * Various bug fixs and improvements to stock SKU reconciliation * Last MWS report import date time saved * wip * wip * wip * wip * wip * some extra tidying up to get it to complie and the main merge is complete * wip
This commit is contained in:
28
src/bnhtrade.Core/Test/AmazonMWS/Report.cs
Normal file
28
src/bnhtrade.Core/Test/AmazonMWS/Report.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bnhtrade.Core.Test.AmazonMWS
|
||||
{
|
||||
public class Report
|
||||
{
|
||||
private string sqlConnectionString;
|
||||
public Report(string sqlConnectionString)
|
||||
{
|
||||
this.sqlConnectionString = sqlConnectionString;
|
||||
|
||||
// method you want to start here
|
||||
GetRport();
|
||||
|
||||
}
|
||||
public void GetRport()
|
||||
{
|
||||
string mwsReportEnum = "_GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA_";
|
||||
DateTime start = new DateTime(2020, 10, 01);
|
||||
DateTime finish = new DateTime(2020, 11, 03);
|
||||
var result = new bnhtrade.Core.AmazonReport().GetMwsReportByPeriod(mwsReportEnum, start, finish, 12, 30);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace bnhtrade.Core.Test.Export
|
||||
var memStream = new MemoryStream();
|
||||
filestream.CopyTo(memStream);
|
||||
|
||||
var logicBit = new Core.Logic.Export.AmazonSubmitFile(sqlConnectionString);
|
||||
var logicBit = new Core.Logic.Export.AmazonSubmitFile();
|
||||
logicBit.SubmitInventoryLoader(memStream);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace bnhtrade.Core.Test.Sku
|
||||
this.sqlConnectionString = sqlConnectionString;
|
||||
|
||||
// method you want to start here
|
||||
UpdateFbaPricing();
|
||||
GetSkuInfo();
|
||||
|
||||
}
|
||||
|
||||
@@ -24,5 +24,14 @@ namespace bnhtrade.Core.Test.Sku
|
||||
var instance = new bnhtrade.Core.Logic.Sku.Price.FbaPricing(sqlConnectionString);
|
||||
instance.Update();
|
||||
}
|
||||
|
||||
public void GetSkuInfo()
|
||||
{
|
||||
var inst = new bnhtrade.Core.Logic.Sku.GetSkuInfo();
|
||||
inst.IncludeConditionInfo = true;
|
||||
inst.IncludeProductInfo = true;
|
||||
inst.IncludeTaxCodeInfo = true;
|
||||
var ldskjflkdsa = inst.BySkuNumber("001234-10");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user