@moonbase.sh/storefront-api 0.4.54 → 0.4.56
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.cjs +4 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1134,6 +1134,10 @@ var OrderEndpoints = class {
|
|
|
1134
1134
|
const response = await this.api.fetch(`/api/customer/orders/${orderId}/coupon?code=${encodeURIComponent(code)}`, openOrderSchema, { method: "DELETE" });
|
|
1135
1135
|
return response.data;
|
|
1136
1136
|
}
|
|
1137
|
+
async clearCouponCodes(orderId) {
|
|
1138
|
+
const response = await this.api.fetch(`/api/customer/orders/${orderId}/coupons`, openOrderSchema, { method: "DELETE" });
|
|
1139
|
+
return response.data;
|
|
1140
|
+
}
|
|
1137
1141
|
};
|
|
1138
1142
|
|
|
1139
1143
|
// src/storefront/endpoints.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -19402,6 +19402,7 @@ declare class OrderEndpoints {
|
|
|
19402
19402
|
removeBillingDetails(orderId: string): Promise<OpenOrder>;
|
|
19403
19403
|
addCouponCode(orderId: string, code: string): Promise<OpenOrder>;
|
|
19404
19404
|
removeCouponCode(orderId: string, code: string): Promise<OpenOrder>;
|
|
19405
|
+
clearCouponCodes(orderId: string): Promise<OpenOrder>;
|
|
19405
19406
|
}
|
|
19406
19407
|
|
|
19407
19408
|
declare class StorefrontEndpoints {
|
package/dist/index.d.ts
CHANGED
|
@@ -19402,6 +19402,7 @@ declare class OrderEndpoints {
|
|
|
19402
19402
|
removeBillingDetails(orderId: string): Promise<OpenOrder>;
|
|
19403
19403
|
addCouponCode(orderId: string, code: string): Promise<OpenOrder>;
|
|
19404
19404
|
removeCouponCode(orderId: string, code: string): Promise<OpenOrder>;
|
|
19405
|
+
clearCouponCodes(orderId: string): Promise<OpenOrder>;
|
|
19405
19406
|
}
|
|
19406
19407
|
|
|
19407
19408
|
declare class StorefrontEndpoints {
|
package/dist/index.js
CHANGED
|
@@ -1078,6 +1078,10 @@ var OrderEndpoints = class {
|
|
|
1078
1078
|
const response = await this.api.fetch(`/api/customer/orders/${orderId}/coupon?code=${encodeURIComponent(code)}`, openOrderSchema, { method: "DELETE" });
|
|
1079
1079
|
return response.data;
|
|
1080
1080
|
}
|
|
1081
|
+
async clearCouponCodes(orderId) {
|
|
1082
|
+
const response = await this.api.fetch(`/api/customer/orders/${orderId}/coupons`, openOrderSchema, { method: "DELETE" });
|
|
1083
|
+
return response.data;
|
|
1084
|
+
}
|
|
1081
1085
|
};
|
|
1082
1086
|
|
|
1083
1087
|
// src/storefront/endpoints.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.56",
|
|
5
5
|
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|