Remove redundant methods from pricing module (#7597)

This commit is contained in:
Harminder Virk authored and GitHub committed 2024-06-04 16:33:06 +05:30
1 parent 41df24e2dc
commit 8d9d78029b
4 files changed
+1 -146

No files matched your search

@@ -8,7 +8,6 @@ import {
AddRulesDTO,
CalculatedPriceSet,
CreatePriceListDTO,
CreatePriceListRuleDTO,
CreatePriceRuleDTO,
CreatePriceSetDTO,
CreateRuleTypeDTO,
@@ -31,7 +30,6 @@ import {
SetPriceListRulesDTO,
UpdatePriceListDTO,
UpdatePriceListPricesDTO,
UpdatePriceListRuleDTO,
UpdatePriceRuleDTO,
UpdatePriceSetDTO,
UpdateRuleTypeDTO,
@@ -1649,48 +1647,6 @@ export interface IPricingModuleService extends IModuleService {
sharedContext?: Context
): Promise<[PriceListRuleDTO[], number]>
/**
* This method is used to create price list rules.
*
* @param {CreatePriceListRuleDTO[]} data - The price list rules to create.
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
* @returns {Promise<PriceListRuleDTO[]>} The created price list rules.
*
* @example
* const priceListRules =
* await pricingModuleService.createPriceListRules([
* {
* rule_type_id: "rul-typ_123",
* price_list_id: "plist_123",
* },
* ])
*/
createPriceListRules(
data: CreatePriceListRuleDTO[],
sharedContext?: Context
): Promise<PriceListRuleDTO[]>
/**
* This method is used to update price list rules.
*
* @param {UpdatePriceListRuleDTO[]} data - The attributes to update for each price list rule. The price list rule is identified by the `id` property.
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
* @returns {Promise<PriceListRuleDTO[]>} The updated price list rules.
*
* @example
* const priceListRules =
* await pricingModuleService.updatePriceListRules([
* {
* id: "plrule_123",
* rule_type_id: "rul-typ_123",
* },
* ])
*/
updatePriceListRules(
data: UpdatePriceListRuleDTO[],
sharedContext?: Context
): Promise<PriceListRuleDTO[]>
/**
* This method is used to delete price list rules.
*