code added

This commit is contained in:
2023-04-28 15:43:17 +05:30
parent 4943d7fc15
commit b8d88b9cc5
24 changed files with 223 additions and 93 deletions
+6 -6
View File
@@ -12,7 +12,7 @@ async function addressDetails() {
console.log(cookieRes);
const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`
`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
);
let res = JSON.parse(response.result);
debugger;
@@ -138,7 +138,7 @@ async function addressDetails() {
});
async function getCountryStateCurrency() {
const countryRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcountry"
"apis/v4/bizgaze/integrations/anwiauth/getcountry"
);
if (countryRes.isError) {
alert("something went wrong");
@@ -157,7 +157,7 @@ async function addressDetails() {
}
}
const stateRes = await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getcities/countryid/${countryID}`
`apis/v4/bizgaze/integrations/anwiauth/getcities/countryid/${countryID}`
);
if (stateRes.isError) {
@@ -186,7 +186,7 @@ async function addressDetails() {
});
const currencyRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcurrencies"
"apis/v4/bizgaze/integrations/anwiauth/getcurrencies"
);
if (currencyRes.isError) {
@@ -209,7 +209,7 @@ async function addressDetails() {
async function getCountryId() {
const countryRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcountry"
"apis/v4/bizgaze/integrations/anwiauth/getcountry"
);
if (countryRes.isError) {
@@ -280,7 +280,7 @@ async function addressDetails() {
let { userId, name } = cookieRes;
const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`
`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
);
let resAnwi = JSON.parse(response.result);
console.log(resAnwi, "befores");
+2 -2
View File
@@ -5,7 +5,7 @@ function myProfile() {
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
console.log(cookieRes);
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`
`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
);
let res = JSON.parse(response.result);
debugger;
@@ -134,7 +134,7 @@ function myProfile() {
let { userId, name } = cookieRes;
const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`
`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
);
let resAnwi = JSON.parse(response.result);
console.log(resAnwi, "previous profilesave");
+1 -1
View File
@@ -21,7 +21,7 @@ $('.warranty_serialNumber_submit').click(async function () {
debugger
let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`;
console.log(url);
const STAT = `05b2f2ca510344968c65e1ebf49a5595`
// const STAT = `05b2f2ca510344968c65e1ebf49a5595`
const config = {
url,
method: "get",
+6 -4
View File
@@ -3,17 +3,19 @@ async function bindOrderDetails() {
// validatesession()
debugger
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
let { userId} = cookieRes;
// let userId = '106631380000095';
let port = "https://anwi.bizgaze.app";
let { userId} = cookieRes;
//let userId = '106631380000048';
debugger;
let port = SERVERNAME;
// let port = "http://localhost:3088";
let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`;
// /apis/v4/bizgaze/integrations/products/salesorderdetailsbyorgid/phonenumber/
// https://anwi.bizgaze.app/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/{organizationid}
const config = {
url,
method: "get",
headers: {
'Authorization': `stat 05b2f2ca510344968c65e1ebf49a5595 `,
'Authorization': `stat ${STAT} `,
'Content-Type': 'application/json'
}
};