shopoflex-types 1.0.79 → 1.0.81
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/common.d.ts +16 -35
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -410,6 +410,20 @@ export interface IBranchName {
|
|
|
410
410
|
en: string;
|
|
411
411
|
ar?: string;
|
|
412
412
|
}
|
|
413
|
+
type PaymentConfig<T extends PaymentMethodType> = {
|
|
414
|
+
active: boolean;
|
|
415
|
+
status: string;
|
|
416
|
+
id: T;
|
|
417
|
+
keys: Record<string, string> | null;
|
|
418
|
+
extra: string | null;
|
|
419
|
+
name: {
|
|
420
|
+
ar: string;
|
|
421
|
+
en: string;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
type VendorPayments = {
|
|
425
|
+
[K in PaymentMethodType]?: PaymentConfig<K>;
|
|
426
|
+
};
|
|
413
427
|
export interface Vendor {
|
|
414
428
|
_id?: string;
|
|
415
429
|
name: {
|
|
@@ -463,41 +477,7 @@ export interface Vendor {
|
|
|
463
477
|
socialLinks: string[];
|
|
464
478
|
users: Array<unknown>;
|
|
465
479
|
areas: Record<string, unknown>;
|
|
466
|
-
payments:
|
|
467
|
-
Cash: {
|
|
468
|
-
active: boolean;
|
|
469
|
-
status: string;
|
|
470
|
-
id: string;
|
|
471
|
-
key: string | null;
|
|
472
|
-
extra: string | null;
|
|
473
|
-
name: {
|
|
474
|
-
ar: string;
|
|
475
|
-
en: string;
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
posCard: {
|
|
479
|
-
active: boolean;
|
|
480
|
-
status: string;
|
|
481
|
-
id: string;
|
|
482
|
-
key: string | null;
|
|
483
|
-
extra: string | null;
|
|
484
|
-
name: {
|
|
485
|
-
ar: string;
|
|
486
|
-
en: string;
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
payByLink: {
|
|
490
|
-
active: boolean;
|
|
491
|
-
status: string;
|
|
492
|
-
id: string;
|
|
493
|
-
key: string | null;
|
|
494
|
-
extra: string | null;
|
|
495
|
-
name: {
|
|
496
|
-
ar: string;
|
|
497
|
-
en: string;
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
};
|
|
480
|
+
payments: VendorPayments;
|
|
501
481
|
subscription: {
|
|
502
482
|
planId: string | null;
|
|
503
483
|
planName: string;
|
|
@@ -670,3 +650,4 @@ export interface successResponse {
|
|
|
670
650
|
hasNextPage: boolean;
|
|
671
651
|
hasPrevPage: boolean;
|
|
672
652
|
}
|
|
653
|
+
export {};
|