Browse Source

feat(core): Make OrderService.applyPriceAdjustments() public

Closes #1522
Michael Bromley 3 years ago
parent
commit
826fd55ede
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/core/src/service/services/order.service.ts

+ 4 - 2
packages/core/src/service/services/order.service.ts

@@ -1661,9 +1661,11 @@ export class OrderService {
     }
 
     /**
-     * Applies promotions, taxes and shipping to the Order.
+     * @description
+     * Applies promotions, taxes and shipping to the Order. If the `updatedOrderLines` argument is passed in,
+     * then all of those OrderLines will have their prices re-calculated using the configured {@link OrderItemPriceCalculationStrategy}.
      */
-    private async applyPriceAdjustments(
+    async applyPriceAdjustments(
         ctx: RequestContext,
         order: Order,
         updatedOrderLines?: OrderLine[],