CASH-1925
CASH-1925 add new endpoints for work order submit
This commit is contained in:
parent
6c813f2fa5
commit
37facdfecd
2 changed files with 17 additions and 1 deletions
|
|
@ -124,6 +124,14 @@ const endpoints = {
|
||||||
url: "/order/api/v1/order/save-session/fmg",
|
url: "/order/api/v1/order/save-session/fmg",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
},
|
},
|
||||||
|
SubmitOrder: {
|
||||||
|
url: "/order/api/v1/order/submit-order",
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
|
SubmitOrderForPia: {
|
||||||
|
url: "/order/api/v1/order/submit-order-for-pia",
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
LoadSession: {
|
LoadSession: {
|
||||||
url: "/order/api/v1/order/load-session",
|
url: "/order/api/v1/order/load-session",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
|
||||||
|
|
@ -2363,9 +2363,17 @@ export const actions = {
|
||||||
//affiliate cookie save only when submitAfterSave
|
//affiliate cookie save only when submitAfterSave
|
||||||
const affiliateCookies = submitAfterSave ? applicationUser.affiliateCookies : null;
|
const affiliateCookies = submitAfterSave ? applicationUser.affiliateCookies : null;
|
||||||
|
|
||||||
|
let endPoint = endpoints.SaveSession.url;
|
||||||
|
if (createUnscheduledStatusWorkOrderForPIA) {
|
||||||
|
endPoint = endpoints.SubmitOrderForPia.url;
|
||||||
|
}
|
||||||
|
if (submitAfterSave) {
|
||||||
|
endPoint = endpoints.SubmitOrder.url;
|
||||||
|
}
|
||||||
|
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.SaveSession.method,
|
method: endpoints.SaveSession.method,
|
||||||
endpoint: endpoints.SaveSession.url,
|
endpoint: endPoint,
|
||||||
payload: {
|
payload: {
|
||||||
submitAfterSave: submitAfterSave,
|
submitAfterSave: submitAfterSave,
|
||||||
userAgent: navigator.userAgent,
|
userAgent: navigator.userAgent,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue