Skip to content

Commit

Permalink
Removed: unused service
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jan 29, 2024
1 parent c9549d4 commit 9d0a70a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/services/RoutingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ const fetchOrderRouting = async (orderRoutingId: string): Promise<any> => {
})
}

const updateOrderRouting = async (payload: any): Promise<any> => {
return api({
url: `routings/${payload.orderRoutingId}`,
method: "POST",
data: payload
})
}

const createRoutingRule = async (payload: any): Promise<any> => {
return await api({
url: "rules",
Expand All @@ -62,14 +54,6 @@ const createOrderRouting = async (payload: any): Promise<any> => {
})
}

const fetchRoutingRules = async (payload: any): Promise<any> => {
return api({
url: `routings/${payload.orderRoutingId}/rules`,
method: "GET",
query: payload
});
}

const updateRouting = async (payload: any): Promise<any> => {
return api({
url: `routings/${payload.orderRoutingId}`,
Expand All @@ -86,14 +70,6 @@ const deleteRoutingFilter = async (payload: any): Promise<any> => {
});
}

const createRuleCondition = async (payload: any): Promise<any> => {
return api({
url: `rules/${payload.routingRuleId}/inventoryFilters`,
method: "POST",
data: payload
});
}

const deleteRuleCondition = async (payload: any): Promise<any> => {
return api({
url: `rules/${payload.routingRuleId}/inventoryFilters`,
Expand Down Expand Up @@ -137,17 +113,14 @@ export const OrderRoutingService = {
createOrderRouting,
createRoutingGroup,
createRoutingRule,
createRuleCondition,
deleteRoutingFilter,
deleteRuleAction,
deleteRuleCondition,
fetchOrderRouting,
fetchRoutingGroupInformation,
fetchRoutingGroups,
fetchRoutingRules,
fetchRule,
scheduleBrokering,
updateOrderRouting,
updateRouting,
updateRoutingGroup,
updateRule
Expand Down

0 comments on commit 9d0a70a

Please sign in to comment.