Commit 5a81b9d5 by jay

.

1 parent f300bfa0
......@@ -3,7 +3,6 @@
// const { default: axios } = require("axios");
const axios = require("axios");
/**
* channel-partner service
*/
......@@ -20,7 +19,7 @@ module.exports = createCoreService(
api_key: process.env.SPERTO_API_KEY,
name: data.contactPersonName,
firm_type: data.firm_type, // --
address: null,
address: data.communicationAddress,
mobile_number: data.mobileNo,
email: data.email,
city: data.city,
......@@ -31,17 +30,17 @@ module.exports = createCoreService(
member_of: data.memberOf,
// scanned_cancelled_cheque_url: data.
// scanned_pan_url: data.panFile,
// rera_certificate_url:
// rera_certificate_url:
firm_name: data.companyName,
sourcing_manager_id: 85
// gst_certificate_path: data.
sourcing_manager_id: Number(data.sourcingManager),
// gst_certificate_path: data.
};
const spertoResponse = await axios.post(
"https://net4hgc.sperto.co.in/_api/api_auth_cp_register.php",
cpData,
{ headers: headers }
);
console.log("cp response", spertoResponse);
// console.log("cp response", spertoResponse);
return spertoResponse;
},
async getCPDataFromSperto(data) {
......@@ -51,16 +50,16 @@ module.exports = createCoreService(
api_key: process.env.SPERTO_API_KEY,
// cp_rera_no: "RE12389222"
cp_rera_no: data.mahareraNumber
cp_rera_no: data.mahareraNumber,
// sourcing_manager_id
// gst_certificate_path: data.
// gst_certificate_path: data.
};
const spertoCPOTPResponse = await axios.post(
"https://net4hgc.sperto.co.in/_api/api_auth_cp_login.php",
cpData,
{ headers: headers }
);
console.log("cp response",spertoCPOTPResponse);
);
// console.log("cp response", spertoCPOTPResponse);
return spertoCPOTPResponse;
},
})
......
......@@ -4,7 +4,8 @@
"info": {
"singularName": "cp-connect-page",
"pluralName": "cp-connect-pages",
"displayName": "Cp Connect Page"
"displayName": "Cp Connect Page",
"description": ""
},
"options": {
"draftAndPublish": true
......@@ -12,12 +13,12 @@
"pluginOptions": {},
"attributes": {
"banner": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
"required": true,
"allowedTypes": [
"images"
]
},
"content": {
"type": "richtext",
......@@ -26,6 +27,16 @@
"disclaimer": {
"type": "richtext",
"required": true
},
"cpGuidelines": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
}
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!