50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using Nop.Core;
|
|
using Nop.Plugin.Tax.FixedOrByCountryStateZip.Domain;
|
|
|
|
namespace Nop.Plugin.Tax.FixedOrByCountryStateZip.Services;
|
|
|
|
/// <summary>
|
|
/// Tax rate service interface
|
|
/// </summary>
|
|
public interface ICountryStateZipService
|
|
{
|
|
/// <summary>
|
|
/// Deletes a tax rate
|
|
/// </summary>
|
|
/// <param name="taxRate">Tax rate</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task DeleteTaxRateAsync(TaxRate taxRate);
|
|
|
|
/// <summary>
|
|
/// Gets all tax rates
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the ax rates
|
|
/// </returns>
|
|
Task<IPagedList<TaxRate>> GetAllTaxRatesAsync(int pageIndex = 0, int pageSize = int.MaxValue);
|
|
|
|
/// <summary>
|
|
/// Gets a tax rate
|
|
/// </summary>
|
|
/// <param name="taxRateId">Tax rate identifier</param>
|
|
/// <returns>
|
|
/// A task that represents the asynchronous operation
|
|
/// The task result contains the ax rate
|
|
/// </returns>
|
|
Task<TaxRate> GetTaxRateByIdAsync(int taxRateId);
|
|
|
|
/// <summary>
|
|
/// Inserts a tax rate
|
|
/// </summary>
|
|
/// <param name="taxRate">Tax rate</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task InsertTaxRateAsync(TaxRate taxRate);
|
|
|
|
/// <summary>
|
|
/// Updates the tax rate
|
|
/// </summary>
|
|
/// <param name="taxRate">Tax rate</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
Task UpdateTaxRateAsync(TaxRate taxRate);
|
|
} |