@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.
@@ -1135,6 +1135,7 @@ class FlowUpdateService {
1135
1135
  }
1136
1136
  break;
1137
1137
  case 'LIST_PRICE_ADJUSTMENT':
1138
+ case 'MARGIN_ADJUSTMENT':
1138
1139
  {
1139
1140
  const charge = lineItem.chargeItems.find(charge => (charges || {})[charge.chargeId]?.main);
1140
1141
  if (charge) {
@@ -1142,6 +1143,14 @@ class FlowUpdateService {
1142
1143
  }
1143
1144
  }
1144
1145
  break;
1146
+ case 'COST_ADJUSTMENT':
1147
+ {
1148
+ const charge = lineItem.chargeItems.find(charge => (charges || {})[charge.chargeId]?.main);
1149
+ if (charge) {
1150
+ charge.costAdjustment = update.newValue;
1151
+ }
1152
+ }
1153
+ break;
1145
1154
  default:
1146
1155
  throw new Error(`Not suppored AttributeType for LineItem update: ${update.attributeType}`);
1147
1156
  }