@viu/emporix-sdk 4.6.4 → 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 +8 -0
- package/dist/cart.d.cts +35 -0
- package/dist/cart.d.ts +35 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +1 -1
- 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/index.d.cts
CHANGED
|
@@ -5119,6 +5119,7 @@ type BaseCoupon = {
|
|
|
5119
5119
|
discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
|
|
5120
5120
|
categoryRestricted?: CategoryRestricted;
|
|
5121
5121
|
segmentRestricted?: SegmentRestricted;
|
|
5122
|
+
vendorRestricted?: VendorRestricted;
|
|
5122
5123
|
restrictions?: Restrictions$1;
|
|
5123
5124
|
/**
|
|
5124
5125
|
* The Id of the customer who originally received the coupon (seller-only).
|
|
@@ -5209,6 +5210,7 @@ type CouponCreation = {
|
|
|
5209
5210
|
discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
|
|
5210
5211
|
categoryRestricted?: CategoryRestricted;
|
|
5211
5212
|
segmentRestricted?: SegmentRestricted;
|
|
5213
|
+
vendorRestricted?: VendorRestricted;
|
|
5212
5214
|
restrictions?: Restrictions$1;
|
|
5213
5215
|
/**
|
|
5214
5216
|
* The Id of the customer who originally received the coupon (seller-only).
|
|
@@ -5247,6 +5249,12 @@ type SegmentRestricted = boolean;
|
|
|
5247
5249
|
*
|
|
5248
5250
|
*/
|
|
5249
5251
|
type CategoryRestricted = boolean;
|
|
5252
|
+
/**
|
|
5253
|
+
* Defines if the coupon applies only to products from specific vendors. If the value is `true`, `restrictions.vendors` must be provided.
|
|
5254
|
+
* A vendor restriction can be combined with other restriction types.
|
|
5255
|
+
*
|
|
5256
|
+
*/
|
|
5257
|
+
type VendorRestricted = boolean;
|
|
5250
5258
|
/**
|
|
5251
5259
|
* Money amount
|
|
5252
5260
|
*
|
|
@@ -5314,7 +5322,7 @@ type Restrictions$1 = {
|
|
|
5314
5322
|
* Must be provided in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm), e.g. '2015-01-31T23:59:59.999Z'.
|
|
5315
5323
|
*/
|
|
5316
5324
|
validUntil?: string;
|
|
5317
|
-
minOrderValue?: CurrencyAmount;
|
|
5325
|
+
minOrderValue?: CurrencyAmount & unknown;
|
|
5318
5326
|
/**
|
|
5319
5327
|
* The list of product's categories to which this coupon applies to. Must be defined only if the `categoryRestricted` flag is set to true. Must be disjoint with excludedCategories list.
|
|
5320
5328
|
*/
|
|
@@ -5327,6 +5335,10 @@ type Restrictions$1 = {
|
|
|
5327
5335
|
* The list of segments to which this coupon applies to. Can be defined only if the `segmentRestricted` flag is set to true.
|
|
5328
5336
|
*/
|
|
5329
5337
|
segments?: Array<string>;
|
|
5338
|
+
/**
|
|
5339
|
+
* The list of vendor identifiers to which this coupon applies. Must be provided when `vendorRestricted` is `true`, and must be empty when `vendorRestricted` is `false`.
|
|
5340
|
+
*/
|
|
5341
|
+
vendors?: Array<string>;
|
|
5330
5342
|
};
|
|
5331
5343
|
type ResourceLocation$1 = {
|
|
5332
5344
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5119,6 +5119,7 @@ type BaseCoupon = {
|
|
|
5119
5119
|
discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
|
|
5120
5120
|
categoryRestricted?: CategoryRestricted;
|
|
5121
5121
|
segmentRestricted?: SegmentRestricted;
|
|
5122
|
+
vendorRestricted?: VendorRestricted;
|
|
5122
5123
|
restrictions?: Restrictions$1;
|
|
5123
5124
|
/**
|
|
5124
5125
|
* The Id of the customer who originally received the coupon (seller-only).
|
|
@@ -5209,6 +5210,7 @@ type CouponCreation = {
|
|
|
5209
5210
|
discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
|
|
5210
5211
|
categoryRestricted?: CategoryRestricted;
|
|
5211
5212
|
segmentRestricted?: SegmentRestricted;
|
|
5213
|
+
vendorRestricted?: VendorRestricted;
|
|
5212
5214
|
restrictions?: Restrictions$1;
|
|
5213
5215
|
/**
|
|
5214
5216
|
* The Id of the customer who originally received the coupon (seller-only).
|
|
@@ -5247,6 +5249,12 @@ type SegmentRestricted = boolean;
|
|
|
5247
5249
|
*
|
|
5248
5250
|
*/
|
|
5249
5251
|
type CategoryRestricted = boolean;
|
|
5252
|
+
/**
|
|
5253
|
+
* Defines if the coupon applies only to products from specific vendors. If the value is `true`, `restrictions.vendors` must be provided.
|
|
5254
|
+
* A vendor restriction can be combined with other restriction types.
|
|
5255
|
+
*
|
|
5256
|
+
*/
|
|
5257
|
+
type VendorRestricted = boolean;
|
|
5250
5258
|
/**
|
|
5251
5259
|
* Money amount
|
|
5252
5260
|
*
|
|
@@ -5314,7 +5322,7 @@ type Restrictions$1 = {
|
|
|
5314
5322
|
* Must be provided in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm), e.g. '2015-01-31T23:59:59.999Z'.
|
|
5315
5323
|
*/
|
|
5316
5324
|
validUntil?: string;
|
|
5317
|
-
minOrderValue?: CurrencyAmount;
|
|
5325
|
+
minOrderValue?: CurrencyAmount & unknown;
|
|
5318
5326
|
/**
|
|
5319
5327
|
* The list of product's categories to which this coupon applies to. Must be defined only if the `categoryRestricted` flag is set to true. Must be disjoint with excludedCategories list.
|
|
5320
5328
|
*/
|
|
@@ -5327,6 +5335,10 @@ type Restrictions$1 = {
|
|
|
5327
5335
|
* The list of segments to which this coupon applies to. Can be defined only if the `segmentRestricted` flag is set to true.
|
|
5328
5336
|
*/
|
|
5329
5337
|
segments?: Array<string>;
|
|
5338
|
+
/**
|
|
5339
|
+
* The list of vendor identifiers to which this coupon applies. Must be provided when `vendorRestricted` is `true`, and must be empty when `vendorRestricted` is `false`.
|
|
5340
|
+
*/
|
|
5341
|
+
vendors?: Array<string>;
|
|
5330
5342
|
};
|
|
5331
5343
|
type ResourceLocation$1 = {
|
|
5332
5344
|
/**
|