@viu/emporix-sdk 4.6.3 → 4.6.5
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/CHANGELOG.md +16 -0
- package/dist/cart.d.cts +35 -0
- package/dist/cart.d.ts +35 -0
- package/dist/index.cjs +17 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -14
- package/dist/index.d.ts +89 -14
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/orders.d.cts +8 -0
- package/dist/orders.d.ts +8 -0
- package/package.json +1 -1
package/dist/orders.d.cts
CHANGED
|
@@ -303,6 +303,10 @@ type Discount = {
|
|
|
303
303
|
* This flag indicates if discount is category restricted.
|
|
304
304
|
*/
|
|
305
305
|
categoryRestricted?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Indicates whether the discount is limited to the vendors in `restrictions.vendors`.
|
|
308
|
+
*/
|
|
309
|
+
vendorRestricted?: boolean;
|
|
306
310
|
restrictions?: DiscountRestrictions & {
|
|
307
311
|
[key: string]: unknown;
|
|
308
312
|
};
|
|
@@ -330,6 +334,10 @@ type DiscountRestrictions = {
|
|
|
330
334
|
* List of excluded categories.
|
|
331
335
|
*/
|
|
332
336
|
excludedCategories?: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* Vendor identifiers to which the discount applies.
|
|
339
|
+
*/
|
|
340
|
+
vendors?: Array<string>;
|
|
333
341
|
};
|
|
334
342
|
/**
|
|
335
343
|
* Discount Restrictions Price
|
package/dist/orders.d.ts
CHANGED
|
@@ -303,6 +303,10 @@ type Discount = {
|
|
|
303
303
|
* This flag indicates if discount is category restricted.
|
|
304
304
|
*/
|
|
305
305
|
categoryRestricted?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Indicates whether the discount is limited to the vendors in `restrictions.vendors`.
|
|
308
|
+
*/
|
|
309
|
+
vendorRestricted?: boolean;
|
|
306
310
|
restrictions?: DiscountRestrictions & {
|
|
307
311
|
[key: string]: unknown;
|
|
308
312
|
};
|
|
@@ -330,6 +334,10 @@ type DiscountRestrictions = {
|
|
|
330
334
|
* List of excluded categories.
|
|
331
335
|
*/
|
|
332
336
|
excludedCategories?: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* Vendor identifiers to which the discount applies.
|
|
339
|
+
*/
|
|
340
|
+
vendors?: Array<string>;
|
|
333
341
|
};
|
|
334
342
|
/**
|
|
335
343
|
* Discount Restrictions Price
|