2026-06-16 17:22:46 +06:00
|
|
|
|
|
|
|
|
|
|
using OnlineSalesAutoCrop.CoreAPI.Models.Requests.Integrations;
|
|
|
|
|
|
using OnlineSalesAutoCrop.CoreAPI.Models.Responses.Integrations;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Services.Contracts.Integrations;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IIntegrationService
|
|
|
|
|
|
{
|
2026-06-18 18:19:43 +06:00
|
|
|
|
//Customer
|
2026-06-23 17:34:45 +06:00
|
|
|
|
Task<IntegrationCustomerResponse> UpsertCustomerAsync(IntegrationCustomerRequest request);
|
2026-06-16 17:22:46 +06:00
|
|
|
|
Task<CustomerByCompanyCodeResponse> GetCustomerByCompanyCodeAsync(CustomerByCompanyCodeRequest request);
|
2026-06-18 18:19:43 +06:00
|
|
|
|
|
|
|
|
|
|
//Employee
|
2026-06-23 17:34:45 +06:00
|
|
|
|
Task<EmployeeIntegrationReqResponse> UpsertEmployeeAsync(IntegrationEmployeeRequest request);
|
|
|
|
|
|
Task<IntegrationEmployeeResponse> GetEmployeeBySalesOrgAsync(EmployeeIntegrationByComapanyRequest request);
|
2026-06-18 18:19:43 +06:00
|
|
|
|
|
2026-06-23 17:34:45 +06:00
|
|
|
|
//Material
|
|
|
|
|
|
Task<MaterialIntegrationReqResponse > UpsertMaterialAsync(IntegrationMaterialRequest request);
|
|
|
|
|
|
Task<IntegrationMaterialResponse> GetMaterialByCodeAsync(GetMaterialByCodeRequest request);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Material Price
|
|
|
|
|
|
Task<MaterialIntegrationPriceReqResponse> UpsertMaterialPriceAsync(IntegrationMaterialPriceRequest request);
|
|
|
|
|
|
Task<IntegrationMaterialPriceResponse> GetMaterialPriceByCodeAsync( GetMaterialPriceByCodeRequest request);
|
2026-06-25 12:41:18 +06:00
|
|
|
|
|
|
|
|
|
|
//Material Free Goods
|
|
|
|
|
|
Task<MaterialFreeGoodsByReqResponse> UpsertMaterialFreeGoodsAsync(IntegrationMaterialFreeGoodsRequest request);
|
|
|
|
|
|
Task<IntegrationMaterialFreeGoodsResponse> GetMaterialFreeGoodseByFilterAsync(GetMaterialFreeGoodsByFilterRequest request);
|
2026-06-28 19:02:40 +06:00
|
|
|
|
|
|
|
|
|
|
//Payment Terms
|
|
|
|
|
|
Task<IntegrationPaymentTermReqResponse> UpsertPaymentTermsAsync(IntegrationPaymentTermRequest request);
|
|
|
|
|
|
Task<IntegrationPaymentTermResponse> GetPaymentTermsByFilterAsync(GetIntegrationPaymentTermRequest request);
|
2026-06-30 18:57:11 +06:00
|
|
|
|
|
|
|
|
|
|
//Invoices
|
|
|
|
|
|
Task<IntegrationInvoiceReqResponse> SaveInvoiceAsync(IntegrationInvoiceRequest request);
|
2026-06-16 17:22:46 +06:00
|
|
|
|
}
|