starta.apiclient 1.112.12519 → 1.112.12529
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/lib/types.d.ts +7 -4
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -334,7 +334,7 @@ export interface PromoCodeInput {
|
|
|
334
334
|
name: string;
|
|
335
335
|
code: string;
|
|
336
336
|
description?: string;
|
|
337
|
-
discountType: '
|
|
337
|
+
discountType: 'relative' | 'absolute';
|
|
338
338
|
discountValue: number;
|
|
339
339
|
validFrom?: string;
|
|
340
340
|
validTo?: string;
|
|
@@ -343,10 +343,12 @@ export interface PromoCodeInput {
|
|
|
343
343
|
allowMultipleUseBySingleCustomer?: boolean;
|
|
344
344
|
minOrderPrice?: number;
|
|
345
345
|
maxDiscountAmount?: number;
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
servicesRules: {
|
|
347
|
+
type: PromoCodeRuleType;
|
|
348
348
|
serviceIds?: string[];
|
|
349
|
-
|
|
349
|
+
};
|
|
350
|
+
productsRules: {
|
|
351
|
+
type: PromoCodeRuleType;
|
|
350
352
|
productIds?: string[];
|
|
351
353
|
};
|
|
352
354
|
}
|
|
@@ -408,6 +410,7 @@ export type PnlPlan = {
|
|
|
408
410
|
export type CertificateWriteOffType = 'single' | 'multiple';
|
|
409
411
|
export type CertificateExpirationType = 'noLimit' | 'fixedDate' | 'fixedFromSale';
|
|
410
412
|
export type CertificateRuleType = 'allowAll' | 'forbidAll' | 'allowSelected';
|
|
413
|
+
export type PromoCodeRuleType = 'allowAll' | 'forbidAll' | 'allowSelected';
|
|
411
414
|
export interface CertificateInput {
|
|
412
415
|
name: string;
|
|
413
416
|
writeOffType: CertificateWriteOffType;
|