public IEnumerable<FbaManageInventory> GetDetailedFbaInventory() { var inventory = new List< FbaManageInventory >(); ActionPolicies.AmazonGetPolicy.Do( () => { var client = this._factory.CreateFeedsReportsClient(); var service = new ReportsService( client, this._credentials ); AmazonLogger.Log.Trace( "[amazon] Loading Detailed FBA inventory for seller {0}", this._credentials.SellerId ); inventory.AddRange( service.GetReport< FbaManageInventory >( ReportType.FbaManageInventoryArchived, DateTime.UtcNow.AddDays( -90 ).ToUniversalTime(), DateTime.UtcNow.ToUniversalTime() ) ); AmazonLogger.Log.Trace( "[amazon] Detailed FBA inventiry for seller {0} loaded", this._credentials.SellerId ); } ); return inventory; }
public ReportItemDto GetReport(long id) { return(reportService.GetReport(id)); }