diff --git a/src/services/RoutingService.ts b/src/services/RoutingService.ts index 3e55e66..7d650bc 100644 --- a/src/services/RoutingService.ts +++ b/src/services/RoutingService.ts @@ -38,14 +38,6 @@ const fetchOrderRouting = async (orderRoutingId: string): Promise => { }) } -const updateOrderRouting = async (payload: any): Promise => { - return api({ - url: `routings/${payload.orderRoutingId}`, - method: "POST", - data: payload - }) -} - const createRoutingRule = async (payload: any): Promise => { return await api({ url: "rules", @@ -62,14 +54,6 @@ const createOrderRouting = async (payload: any): Promise => { }) } -const fetchRoutingRules = async (payload: any): Promise => { - return api({ - url: `routings/${payload.orderRoutingId}/rules`, - method: "GET", - query: payload - }); -} - const updateRouting = async (payload: any): Promise => { return api({ url: `routings/${payload.orderRoutingId}`, @@ -86,14 +70,6 @@ const deleteRoutingFilter = async (payload: any): Promise => { }); } -const createRuleCondition = async (payload: any): Promise => { - return api({ - url: `rules/${payload.routingRuleId}/inventoryFilters`, - method: "POST", - data: payload - }); -} - const deleteRuleCondition = async (payload: any): Promise => { return api({ url: `rules/${payload.routingRuleId}/inventoryFilters`, @@ -137,17 +113,14 @@ export const OrderRoutingService = { createOrderRouting, createRoutingGroup, createRoutingRule, - createRuleCondition, deleteRoutingFilter, deleteRuleAction, deleteRuleCondition, fetchOrderRouting, fetchRoutingGroupInformation, fetchRoutingGroups, - fetchRoutingRules, fetchRule, scheduleBrokering, - updateOrderRouting, updateRouting, updateRoutingGroup, updateRule