97 lines
3.4 KiB
C#
97 lines
3.4 KiB
C#
using Nop.Core.Domain.Shipping;
|
|
|
|
namespace Nop.Services.Shipping.Date;
|
|
|
|
/// <summary>
|
|
/// Date range service interface
|
|
/// </summary>
|
|
public partial interface IDateRangeService
|
|
{
|
|
#region Delivery dates
|
|
|
|
/// <summary>
|
|
/// Delete a delivery date
|
|
/// </summary>
|
|
/// <param name="deliveryDate">The delivery date</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task DeleteDeliveryDateAsync(DeliveryDate deliveryDate);
|
|
|
|
/// <summary>
|
|
/// Get a delivery date
|
|
/// </summary>
|
|
/// <param name="deliveryDateId">The delivery date identifier</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the delivery date
|
|
/// </returns>
|
|
Task<DeliveryDate> GetDeliveryDateByIdAsync(int deliveryDateId);
|
|
|
|
/// <summary>
|
|
/// Get all delivery dates
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the delivery dates
|
|
/// </returns>
|
|
Task<IList<DeliveryDate>> GetAllDeliveryDatesAsync();
|
|
|
|
/// <summary>
|
|
/// Insert a delivery date
|
|
/// </summary>
|
|
/// <param name="deliveryDate">Delivery date</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task InsertDeliveryDateAsync(DeliveryDate deliveryDate);
|
|
|
|
/// <summary>
|
|
/// Update the delivery date
|
|
/// </summary>
|
|
/// <param name="deliveryDate">Delivery date</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task UpdateDeliveryDateAsync(DeliveryDate deliveryDate);
|
|
|
|
#endregion
|
|
|
|
#region Product availability ranges
|
|
|
|
/// <summary>
|
|
/// Get a product availability range
|
|
/// </summary>
|
|
/// <param name="productAvailabilityRangeId">The product availability range identifier</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the product availability range
|
|
/// </returns>
|
|
Task<ProductAvailabilityRange> GetProductAvailabilityRangeByIdAsync(int productAvailabilityRangeId);
|
|
|
|
/// <summary>
|
|
/// Get all product availability ranges
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the product availability ranges
|
|
/// </returns>
|
|
Task<IList<ProductAvailabilityRange>> GetAllProductAvailabilityRangesAsync();
|
|
|
|
/// <summary>
|
|
/// Insert the product availability range
|
|
/// </summary>
|
|
/// <param name="productAvailabilityRange">Product availability range</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task InsertProductAvailabilityRangeAsync(ProductAvailabilityRange productAvailabilityRange);
|
|
|
|
/// <summary>
|
|
/// Update the product availability range
|
|
/// </summary>
|
|
/// <param name="productAvailabilityRange">Product availability range</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task UpdateProductAvailabilityRangeAsync(ProductAvailabilityRange productAvailabilityRange);
|
|
|
|
/// <summary>
|
|
/// Delete the product availability range
|
|
/// </summary>
|
|
/// <param name="productAvailabilityRange">Product availability range</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task DeleteProductAvailabilityRangeAsync(ProductAvailabilityRange productAvailabilityRange);
|
|
|
|
#endregion
|
|
} |