@thorprovider/medusa-extended 1.14.0 → 1.14.1
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.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/dropshipper.ts +18 -0
package/dist/index.mjs
CHANGED
|
@@ -866,6 +866,19 @@ var DropshipperClient = class {
|
|
|
866
866
|
body
|
|
867
867
|
);
|
|
868
868
|
}
|
|
869
|
+
/**
|
|
870
|
+
* Validate a gift card code for the dropshipper's channel (existence, status,
|
|
871
|
+
* currency and channel restriction). Balance is returned when valid.
|
|
872
|
+
*
|
|
873
|
+
* `POST /admin/thor/dropshipper/gift-cards/validate`
|
|
874
|
+
*/
|
|
875
|
+
async validateGiftCard(body) {
|
|
876
|
+
return this.request(
|
|
877
|
+
"POST",
|
|
878
|
+
"/admin/thor/dropshipper/gift-cards/validate",
|
|
879
|
+
body
|
|
880
|
+
);
|
|
881
|
+
}
|
|
869
882
|
/**
|
|
870
883
|
* Preview order totals (including taxes) without creating the order.
|
|
871
884
|
*
|