@thorprovider/medusa-extended 1.13.4 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -866,6 +866,25 @@ var DropshipperClient = class {
866
866
  body
867
867
  );
868
868
  }
869
+ /**
870
+ * Preview order totals (including taxes) without creating the order.
871
+ *
872
+ * Replicates the creation pipeline (pricing honoring `unit_price`, region,
873
+ * shipping groups) and computes tax lines with the Medusa tax module, so the
874
+ * totals match what the created order will produce.
875
+ *
876
+ * `POST /admin/thor/dropshipper/orders/preview-totals`
877
+ */
878
+ async previewOrderTotals(body) {
879
+ return this.request(
880
+ "POST",
881
+ "/admin/thor/dropshipper/orders/preview-totals",
882
+ {
883
+ ...body,
884
+ currency_code: body.currency_code.toLowerCase()
885
+ }
886
+ );
887
+ }
869
888
  /**
870
889
  * Set who collects payment for an order (Solo X).
871
890
  *