@veloceapps/sdk 8.0.0-4 → 8.0.0-5
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/flow-configuration/types/update.types.d.ts +1 -1
- package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +17 -1
- package/esm2020/core/modules/flow-configuration/types/update.types.mjs +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +16 -0
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +16 -0
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -1142,6 +1142,22 @@ class FlowUpdateService {
|
|
1142
1142
|
}
|
1143
1143
|
}
|
1144
1144
|
break;
|
1145
|
+
case 'COST':
|
1146
|
+
{
|
1147
|
+
const charge = lineItem.chargeItems.find(charge => (charges || {})[charge.chargeId]?.main);
|
1148
|
+
if (charge) {
|
1149
|
+
charge.netCost = update.newValue;
|
1150
|
+
}
|
1151
|
+
}
|
1152
|
+
break;
|
1153
|
+
case 'MARGIN_PERCENT':
|
1154
|
+
{
|
1155
|
+
const charge = lineItem.chargeItems.find(charge => (charges || {})[charge.chargeId]?.main);
|
1156
|
+
if (charge) {
|
1157
|
+
charge.marginPercent = update.newValue;
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
break;
|
1145
1161
|
default:
|
1146
1162
|
throw new Error(`Not suppored AttributeType for LineItem update: ${update.attributeType}`);
|
1147
1163
|
}
|