@veloceapps/sdk 8.0.0-1 → 8.0.0-11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1074,6 +1074,7 @@ class FlowUpdateService {
1074
1074
  }
1075
1075
  break;
1076
1076
  case 'LIST_PRICE_ADJUSTMENT':
1077
+ case 'MARGIN_ADJUSTMENT':
1077
1078
  {
1078
1079
  const charge = lineItem.chargeItems.find(charge => { var _a; return (_a = (charges || {})[charge.chargeId]) === null || _a === void 0 ? void 0 : _a.main; });
1079
1080
  if (charge) {
@@ -1081,6 +1082,14 @@ class FlowUpdateService {
1081
1082
  }
1082
1083
  }
1083
1084
  break;
1085
+ case 'COST_ADJUSTMENT':
1086
+ {
1087
+ const charge = lineItem.chargeItems.find(charge => { var _a; return (_a = (charges || {})[charge.chargeId]) === null || _a === void 0 ? void 0 : _a.main; });
1088
+ if (charge) {
1089
+ charge.costAdjustment = update.newValue;
1090
+ }
1091
+ }
1092
+ break;
1084
1093
  default:
1085
1094
  throw new Error(`Not suppored AttributeType for LineItem update: ${update.attributeType}`);
1086
1095
  }