using System; using System.Collections.Generic; using System.Threading.Tasks; using Nop.Services.Shipping; namespace Nop.Plugin.Shipping.NopCliGeneric.Services { public interface IShippingNopCliGenericService { /// /// Gets all rates /// /// /// /// A task that represents the asynchronous operation /// The task result contains the /// Task> GetAllRatesAsync(GetShippingOptionRequest shippingOptionRequest); /// /// Create or update shipping /// /// Order number /// Carrier /// Service /// Tracking number /// A task that represents the asynchronous operation Task CreateOrUpdateShippingAsync(string orderNumber, string carrier, string service, string trackingNumber); /// /// Get XML view of orders to sending to the ShipStation service /// /// Created date from (UTC); null to load all records /// Created date to (UTC); null to load all records /// Page index /// Page size /// /// A task that represents the asynchronous operation /// The task result contains the xML view of orders /// Task GetXmlOrdersAsync(DateTime? startDate, DateTime? endDate, int pageIndex, int pageSize); /// /// Gets a string that defines the required format of date time /// string DateFormat { get; } } }