@managesome/eposmatic-toolkit 0.2.502 → 0.2.505
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.
|
@@ -79,6 +79,26 @@ function getSettingsWithPrice(settings, writeable) {
|
|
|
79
79
|
cash_gst: convertToPrice(settings.cash_gst),
|
|
80
80
|
}
|
|
81
81
|
: {}),
|
|
82
|
+
...(settings.im_card_gst != null
|
|
83
|
+
? {
|
|
84
|
+
im_card_gst: convertToPrice(settings.im_card_gst),
|
|
85
|
+
}
|
|
86
|
+
: {}),
|
|
87
|
+
...(settings.im_cash_gst != null
|
|
88
|
+
? {
|
|
89
|
+
im_cash_gst: convertToPrice(settings.im_cash_gst),
|
|
90
|
+
}
|
|
91
|
+
: {}),
|
|
92
|
+
...(settings.po_card_gst != null
|
|
93
|
+
? {
|
|
94
|
+
po_card_gst: convertToPrice(settings.po_card_gst),
|
|
95
|
+
}
|
|
96
|
+
: {}),
|
|
97
|
+
...(settings.po_cash_gst != null
|
|
98
|
+
? {
|
|
99
|
+
po_cash_gst: convertToPrice(settings.po_cash_gst),
|
|
100
|
+
}
|
|
101
|
+
: {}),
|
|
82
102
|
...(settings.dinein_service_fee != null
|
|
83
103
|
? {
|
|
84
104
|
dinein_service_fee: convertToPrice(settings.dinein_service_fee),
|
|
@@ -150,6 +150,12 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
150
150
|
rider_pickup_food_image_mandatory?: boolean | null | undefined;
|
|
151
151
|
rider_dropoff_food_image_mandatory?: boolean | null | undefined;
|
|
152
152
|
disable_reason_for_discount?: boolean | null | undefined;
|
|
153
|
+
im_card_gst?: number | null | undefined;
|
|
154
|
+
im_cash_gst?: number | null | undefined;
|
|
155
|
+
default_im_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
156
|
+
po_card_gst?: number | null | undefined;
|
|
157
|
+
po_cash_gst?: number | null | undefined;
|
|
158
|
+
default_po_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
153
159
|
card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
|
|
154
160
|
card_processing_account_id?: string | null | undefined;
|
|
155
161
|
_card_processing_account_token?: string | null | undefined;
|
|
@@ -157,6 +163,8 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
157
163
|
sms_processing_account_id?: string | null | undefined;
|
|
158
164
|
email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
|
|
159
165
|
email_processing_account_id?: string | null | undefined;
|
|
166
|
+
im_custom_payment_types?: string[] | null | undefined;
|
|
167
|
+
po_custom_payment_types?: string[] | null | undefined;
|
|
160
168
|
ms_clarity_id?: string | null | undefined;
|
|
161
169
|
fb_pixel_id?: string | null | undefined;
|
|
162
170
|
gtm_id?: string | null | undefined;
|
|
@@ -322,6 +330,12 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
322
330
|
rider_pickup_food_image_mandatory?: boolean | null | undefined;
|
|
323
331
|
rider_dropoff_food_image_mandatory?: boolean | null | undefined;
|
|
324
332
|
disable_reason_for_discount?: boolean | null | undefined;
|
|
333
|
+
im_card_gst?: number | null | undefined;
|
|
334
|
+
im_cash_gst?: number | null | undefined;
|
|
335
|
+
default_im_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
336
|
+
po_card_gst?: number | null | undefined;
|
|
337
|
+
po_cash_gst?: number | null | undefined;
|
|
338
|
+
default_po_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
325
339
|
card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
|
|
326
340
|
card_processing_account_id?: string | null | undefined;
|
|
327
341
|
_card_processing_account_token?: string | null | undefined;
|
|
@@ -329,6 +343,8 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
329
343
|
sms_processing_account_id?: string | null | undefined;
|
|
330
344
|
email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
|
|
331
345
|
email_processing_account_id?: string | null | undefined;
|
|
346
|
+
im_custom_payment_types?: string[] | null | undefined;
|
|
347
|
+
po_custom_payment_types?: string[] | null | undefined;
|
|
332
348
|
ms_clarity_id?: string | null | undefined;
|
|
333
349
|
fb_pixel_id?: string | null | undefined;
|
|
334
350
|
gtm_id?: string | null | undefined;
|
|
@@ -494,6 +510,12 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
494
510
|
rider_pickup_food_image_mandatory?: boolean | null | undefined;
|
|
495
511
|
rider_dropoff_food_image_mandatory?: boolean | null | undefined;
|
|
496
512
|
disable_reason_for_discount?: boolean | null | undefined;
|
|
513
|
+
im_card_gst?: number | null | undefined;
|
|
514
|
+
im_cash_gst?: number | null | undefined;
|
|
515
|
+
default_im_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
516
|
+
po_card_gst?: number | null | undefined;
|
|
517
|
+
po_cash_gst?: number | null | undefined;
|
|
518
|
+
default_po_gst_type?: GST_TYPE_ENUM | null | undefined;
|
|
497
519
|
card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
|
|
498
520
|
card_processing_account_id?: string | null | undefined;
|
|
499
521
|
_card_processing_account_token?: string | null | undefined;
|
|
@@ -501,6 +523,8 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
501
523
|
sms_processing_account_id?: string | null | undefined;
|
|
502
524
|
email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
|
|
503
525
|
email_processing_account_id?: string | null | undefined;
|
|
526
|
+
im_custom_payment_types?: string[] | null | undefined;
|
|
527
|
+
po_custom_payment_types?: string[] | null | undefined;
|
|
504
528
|
ms_clarity_id?: string | null | undefined;
|
|
505
529
|
fb_pixel_id?: string | null | undefined;
|
|
506
530
|
gtm_id?: string | null | undefined;
|
|
@@ -446,6 +446,32 @@ exports.TenantSchema = new mongoose_1.Schema({
|
|
|
446
446
|
enum: constants_1.ALL_GST_TYPES,
|
|
447
447
|
default: constants_1.GST_TYPE_ENUM.CARD,
|
|
448
448
|
},
|
|
449
|
+
im_card_gst: {
|
|
450
|
+
type: Number,
|
|
451
|
+
required: false,
|
|
452
|
+
},
|
|
453
|
+
im_cash_gst: {
|
|
454
|
+
type: Number,
|
|
455
|
+
required: false,
|
|
456
|
+
},
|
|
457
|
+
default_im_gst_type: {
|
|
458
|
+
type: String,
|
|
459
|
+
enum: constants_1.ALL_GST_TYPES,
|
|
460
|
+
required: false,
|
|
461
|
+
},
|
|
462
|
+
po_card_gst: {
|
|
463
|
+
type: Number,
|
|
464
|
+
required: false,
|
|
465
|
+
},
|
|
466
|
+
po_cash_gst: {
|
|
467
|
+
type: Number,
|
|
468
|
+
required: false,
|
|
469
|
+
},
|
|
470
|
+
default_po_gst_type: {
|
|
471
|
+
type: String,
|
|
472
|
+
enum: constants_1.ALL_GST_TYPES,
|
|
473
|
+
required: false,
|
|
474
|
+
},
|
|
449
475
|
web_design_type: {
|
|
450
476
|
type: String,
|
|
451
477
|
enum: constants_1.ALL_ONLINE_ORDERING_DESIGN_TYPES,
|
|
@@ -565,6 +591,14 @@ exports.TenantSchema = new mongoose_1.Schema({
|
|
|
565
591
|
type: [String],
|
|
566
592
|
default: [],
|
|
567
593
|
},
|
|
594
|
+
im_custom_payment_types: {
|
|
595
|
+
type: [String],
|
|
596
|
+
required: false,
|
|
597
|
+
},
|
|
598
|
+
po_custom_payment_types: {
|
|
599
|
+
type: [String],
|
|
600
|
+
required: false,
|
|
601
|
+
},
|
|
568
602
|
takeaway_is_pickup: {
|
|
569
603
|
type: Boolean,
|
|
570
604
|
required: false,
|
|
@@ -29,29 +29,29 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
29
29
|
coordinates: number[];
|
|
30
30
|
brand_color: string;
|
|
31
31
|
public_business_name: string;
|
|
32
|
+
im_card_gst: number;
|
|
33
|
+
im_cash_gst: number;
|
|
34
|
+
default_im_gst_type: GST_TYPE_ENUM;
|
|
35
|
+
po_card_gst: number;
|
|
36
|
+
po_cash_gst: number;
|
|
37
|
+
default_po_gst_type: GST_TYPE_ENUM;
|
|
32
38
|
operational_time_zone_offset_gmt: number;
|
|
33
39
|
operational_start_time: number;
|
|
34
40
|
operational_end_time: number;
|
|
35
41
|
alert_phone_numbers: string[];
|
|
36
42
|
alert_email_addresses: string[];
|
|
37
43
|
alert_when: string[];
|
|
44
|
+
im_custom_payment_types: string[];
|
|
45
|
+
po_custom_payment_types: string[];
|
|
38
46
|
warehouse_address: string;
|
|
39
|
-
po_card_gst: number;
|
|
40
|
-
po_cash_gst: number;
|
|
41
47
|
invoice_card_gst: number;
|
|
42
48
|
invoice_cash_gst: number;
|
|
43
|
-
default_po_gst_type: GST_TYPE_ENUM;
|
|
44
49
|
default_invoice_gst_type: GST_TYPE_ENUM;
|
|
45
|
-
im_card_gst: number;
|
|
46
|
-
im_cash_gst: number;
|
|
47
|
-
default_im_gst_type: GST_TYPE_ENUM;
|
|
48
50
|
track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
49
51
|
track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
50
52
|
enable_lot_serial_tracking: boolean;
|
|
51
53
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
52
|
-
po_custom_payment_types: string[];
|
|
53
54
|
invoice_custom_payment_types: string[];
|
|
54
|
-
im_custom_payment_types: string[];
|
|
55
55
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
56
56
|
is_gst_inclusive?: boolean | null | undefined;
|
|
57
57
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
@@ -83,29 +83,29 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
83
83
|
coordinates: number[];
|
|
84
84
|
brand_color: string;
|
|
85
85
|
public_business_name: string;
|
|
86
|
+
im_card_gst: number;
|
|
87
|
+
im_cash_gst: number;
|
|
88
|
+
default_im_gst_type: GST_TYPE_ENUM;
|
|
89
|
+
po_card_gst: number;
|
|
90
|
+
po_cash_gst: number;
|
|
91
|
+
default_po_gst_type: GST_TYPE_ENUM;
|
|
86
92
|
operational_time_zone_offset_gmt: number;
|
|
87
93
|
operational_start_time: number;
|
|
88
94
|
operational_end_time: number;
|
|
89
95
|
alert_phone_numbers: string[];
|
|
90
96
|
alert_email_addresses: string[];
|
|
91
97
|
alert_when: string[];
|
|
98
|
+
im_custom_payment_types: string[];
|
|
99
|
+
po_custom_payment_types: string[];
|
|
92
100
|
warehouse_address: string;
|
|
93
|
-
po_card_gst: number;
|
|
94
|
-
po_cash_gst: number;
|
|
95
101
|
invoice_card_gst: number;
|
|
96
102
|
invoice_cash_gst: number;
|
|
97
|
-
default_po_gst_type: GST_TYPE_ENUM;
|
|
98
103
|
default_invoice_gst_type: GST_TYPE_ENUM;
|
|
99
|
-
im_card_gst: number;
|
|
100
|
-
im_cash_gst: number;
|
|
101
|
-
default_im_gst_type: GST_TYPE_ENUM;
|
|
102
104
|
track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
103
105
|
track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
104
106
|
enable_lot_serial_tracking: boolean;
|
|
105
107
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
106
|
-
po_custom_payment_types: string[];
|
|
107
108
|
invoice_custom_payment_types: string[];
|
|
108
|
-
im_custom_payment_types: string[];
|
|
109
109
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
110
110
|
is_gst_inclusive?: boolean | null | undefined;
|
|
111
111
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
@@ -137,29 +137,29 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
137
137
|
coordinates: number[];
|
|
138
138
|
brand_color: string;
|
|
139
139
|
public_business_name: string;
|
|
140
|
+
im_card_gst: number;
|
|
141
|
+
im_cash_gst: number;
|
|
142
|
+
default_im_gst_type: GST_TYPE_ENUM;
|
|
143
|
+
po_card_gst: number;
|
|
144
|
+
po_cash_gst: number;
|
|
145
|
+
default_po_gst_type: GST_TYPE_ENUM;
|
|
140
146
|
operational_time_zone_offset_gmt: number;
|
|
141
147
|
operational_start_time: number;
|
|
142
148
|
operational_end_time: number;
|
|
143
149
|
alert_phone_numbers: string[];
|
|
144
150
|
alert_email_addresses: string[];
|
|
145
151
|
alert_when: string[];
|
|
152
|
+
im_custom_payment_types: string[];
|
|
153
|
+
po_custom_payment_types: string[];
|
|
146
154
|
warehouse_address: string;
|
|
147
|
-
po_card_gst: number;
|
|
148
|
-
po_cash_gst: number;
|
|
149
155
|
invoice_card_gst: number;
|
|
150
156
|
invoice_cash_gst: number;
|
|
151
|
-
default_po_gst_type: GST_TYPE_ENUM;
|
|
152
157
|
default_invoice_gst_type: GST_TYPE_ENUM;
|
|
153
|
-
im_card_gst: number;
|
|
154
|
-
im_cash_gst: number;
|
|
155
|
-
default_im_gst_type: GST_TYPE_ENUM;
|
|
156
158
|
track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
157
159
|
track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
158
160
|
enable_lot_serial_tracking: boolean;
|
|
159
161
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
160
|
-
po_custom_payment_types: string[];
|
|
161
162
|
invoice_custom_payment_types: string[];
|
|
162
|
-
im_custom_payment_types: string[];
|
|
163
163
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
164
164
|
is_gst_inclusive?: boolean | null | undefined;
|
|
165
165
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
@@ -104,6 +104,12 @@ export interface ITenant {
|
|
|
104
104
|
card_gst: number;
|
|
105
105
|
cash_gst: number;
|
|
106
106
|
default_gst_type: GST_TYPE_ENUM;
|
|
107
|
+
im_card_gst?: number;
|
|
108
|
+
im_cash_gst?: number;
|
|
109
|
+
default_im_gst_type?: GST_TYPE_ENUM;
|
|
110
|
+
po_card_gst?: number;
|
|
111
|
+
po_cash_gst?: number;
|
|
112
|
+
default_po_gst_type?: GST_TYPE_ENUM;
|
|
107
113
|
web_cover_image: string;
|
|
108
114
|
web_favicon: string;
|
|
109
115
|
web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
|
|
@@ -128,6 +134,8 @@ export interface ITenant {
|
|
|
128
134
|
auto_accept_order_for_platforms: PLATFORMS_ENUM[];
|
|
129
135
|
custom_payment_types: string[];
|
|
130
136
|
expense_payment_types: string[];
|
|
137
|
+
im_custom_payment_types?: string[] | null;
|
|
138
|
+
po_custom_payment_types?: string[] | null;
|
|
131
139
|
takeaway_is_pickup?: boolean;
|
|
132
140
|
reservation_enabled: boolean;
|
|
133
141
|
ms_clarity_id?: string | null;
|