// ✅ Use this command to call the quote
const data = {
package: {
"packageId": "zp6CpJ7ecr", // ID of package stored this must be generated once and not changed in the future is how we identify the package for changes
"packageName": "Test from quoter", //Name of package , this can be updated if needed
"packageChecksum": "1739472331839", // Epoch time to identify version , this must be updated when the package is updated is unix time
...
}, // Define your package data here
plans: {
[planId]: {
"planId": "npJ7e6Cpcr", // ID of plan stored, this must be generated once and not changed in the future is how we identify the plan for changes
...
},
[planId]: {
"planId": "7DGd4BnBkD", // ID of plan stored, this must be generated once and not changed in the future is how we identify the plan for changes
...
},
...
} // Define your plans data here
};
const loader = document.getElementById('loaderRef');
loaderRef.core.callAction('segupoliza-component', 'processQuoteRequests', data); We simulate calling a normal quote.
We get an error that tells us if we have an outdated plan.
For example: "El plan ha sido modificado"
// ✅ Use this command to call the quote
const data = "zp6CpJ7ecr"
// 🔄 Call the to get what has change
loaderRef.core.callAction('segupoliza-component', 'getPackagePlanDifference', data);
We need the package ID to fetch changes.