using Nop.Services.Plugins; using Nop.Services.Shipping.Tracking; namespace Nop.Services.Shipping; /// /// Provides an interface of shipping rate computation method /// public partial interface IShippingRateComputationMethod : IPlugin { /// /// Gets available shipping options /// /// A request for getting shipping options /// /// A task that represents the asynchronous operation /// The task result contains the represents a response of getting shipping rate options /// Task GetShippingOptionsAsync(GetShippingOptionRequest getShippingOptionRequest); /// /// Gets fixed shipping rate (if shipping rate computation method allows it and the rate can be calculated before checkout). /// /// A request for getting shipping options /// /// A task that represents the asynchronous operation /// The task result contains the fixed shipping rate; or null in case there's no fixed shipping rate /// Task GetFixedRateAsync(GetShippingOptionRequest getShippingOptionRequest); /// /// Get associated shipment tracker /// /// /// A task that represents the asynchronous operation /// The task result contains the shipment tracker /// Task GetShipmentTrackerAsync(); }