@thorprovider/medusa-extended 1.11.9 → 1.12.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
@@ -817,20 +817,18 @@ var DropshipperClient = class {
817
817
  );
818
818
  }
819
819
  /**
820
- * List shipping options for a manual dropshipper order.
820
+ * List shipping groups and their valid options for a manual dropshipper order.
821
821
  *
822
- * `GET /admin/thor/dropshipper/orders/shipping-options`
822
+ * `POST /admin/thor/dropshipper/orders/shipping-options`
823
823
  */
824
- async getOrderShippingOptions(params) {
825
- const qs = new URLSearchParams({
826
- currency_code: params.currency_code.toLowerCase(),
827
- ...params.country_code ? { country_code: params.country_code.toLowerCase() } : {},
828
- ...params.province ? { province: params.province } : {},
829
- ...params.city ? { city: params.city } : {}
830
- });
824
+ async getOrderShippingOptions(body) {
831
825
  return this.request(
832
- "GET",
833
- `/admin/thor/dropshipper/orders/shipping-options?${qs}`
826
+ "POST",
827
+ "/admin/thor/dropshipper/orders/shipping-options",
828
+ {
829
+ ...body,
830
+ currency_code: body.currency_code.toLowerCase()
831
+ }
834
832
  );
835
833
  }
836
834
  /**