@managesome/eposmatic-toolkit 0.2.212 → 0.2.215

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.
Files changed (39) hide show
  1. package/lib/constants/ANALYTICS.d.ts +3 -3
  2. package/lib/constants/ENUMS.d.ts +25 -10
  3. package/lib/constants/ENUMS.js +47 -25
  4. package/lib/helpers/order/generate-order.js +25 -1
  5. package/lib/helpers/store/cart-actions.d.ts +3 -1
  6. package/lib/helpers/store/cart-actions.js +4 -0
  7. package/lib/helpers/store/common-order-actions.d.ts +1 -1
  8. package/lib/helpers/store/common-order-actions.js +10 -2
  9. package/lib/helpers/utils/index.d.ts +1 -0
  10. package/lib/helpers/utils/index.js +1 -0
  11. package/lib/helpers/utils/item-report-helpers.d.ts +1 -0
  12. package/lib/helpers/utils/item-report-helpers.js +169 -108
  13. package/lib/helpers/utils/receipt-engine.js +24 -4
  14. package/lib/helpers/utils/simplified-tenant.d.ts +15 -0
  15. package/lib/helpers/utils/simplified-tenant.js +30 -0
  16. package/lib/schemas/models/common-models.d.ts +63 -51
  17. package/lib/schemas/models/common-models.js +28 -20
  18. package/lib/schemas/models/customers.d.ts +60 -48
  19. package/lib/schemas/models/deliveries.d.ts +3 -0
  20. package/lib/schemas/models/deliveries.js +5 -0
  21. package/lib/schemas/models/delivery_areas.d.ts +9 -9
  22. package/lib/schemas/models/discounts.d.ts +270 -216
  23. package/lib/schemas/models/halfhalf_setup.d.ts +330 -264
  24. package/lib/schemas/models/item.d.ts +2220 -1776
  25. package/lib/schemas/models/menu.d.ts +180 -144
  26. package/lib/schemas/models/modifier_extras.d.ts +90 -72
  27. package/lib/schemas/models/offers.d.ts +180 -144
  28. package/lib/schemas/models/order.d.ts +120 -90
  29. package/lib/schemas/models/order.js +35 -4
  30. package/lib/schemas/models/public_holidays.d.ts +30 -24
  31. package/lib/schemas/models/specials.d.ts +540 -432
  32. package/lib/schemas/models/tenant.d.ts +31 -1
  33. package/lib/schemas/models/tenant.js +41 -0
  34. package/lib/schemas/models/tenant_staff.d.ts +180 -144
  35. package/lib/schemas/models/track_order_number.d.ts +90 -72
  36. package/lib/schemas/types/deliveries.d.ts +1 -0
  37. package/lib/schemas/types/order.d.ts +5 -1
  38. package/lib/schemas/types/tenant.d.ts +11 -1
  39. package/package.json +1 -1
@@ -2432,6 +2432,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2432
2432
  delivery_code: string;
2433
2433
  delivery_cost: number;
2434
2434
  estimated_delivery_time: NativeDate;
2435
+ rider_revenue?: number | null | undefined;
2435
2436
  rider_details?: {
2436
2437
  staff_id: string;
2437
2438
  staff_name: string;
@@ -2462,12 +2463,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2462
2463
  floor_id: import("mongoose").Types.ObjectId;
2463
2464
  table_name: string;
2464
2465
  reservation_time: NativeDate;
2465
- order_taker_details?: {
2466
- staff_id: string;
2467
- staff_name: string;
2468
- staff_mobile: string;
2469
- staff_email: string;
2470
- } | null | undefined;
2471
2466
  prep_minutes?: number | null | undefined;
2472
2467
  } | null | undefined;
2473
2468
  takeaway_details?: {
@@ -2479,6 +2474,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2479
2474
  staff_mobile: string;
2480
2475
  staff_email: string;
2481
2476
  } | null | undefined;
2477
+ order_taker_details?: {
2478
+ staff_id: string;
2479
+ staff_name: string;
2480
+ staff_mobile: string;
2481
+ staff_email: string;
2482
+ } | null | undefined;
2482
2483
  order_discount_details?: {
2483
2484
  total_discount: number;
2484
2485
  voucher_discount?: number | null | undefined;
@@ -2512,6 +2513,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2512
2513
  gst?: number | null | undefined;
2513
2514
  exclude_discount_from_gst?: boolean | null | undefined;
2514
2515
  gst_amount?: number | null | undefined;
2516
+ packaging_fee?: number | null | undefined;
2517
+ adjustment_amount?: number | null | undefined;
2518
+ adjustment_reason?: string | null | undefined;
2515
2519
  apply_service_fee_on_original_price?: boolean | null | undefined;
2516
2520
  is_gst_inclusive?: boolean | null | undefined;
2517
2521
  tax_invoice_provider_charges?: number | null | undefined;
@@ -3690,6 +3694,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3690
3694
  delivery_code: string;
3691
3695
  delivery_cost: number;
3692
3696
  estimated_delivery_time: NativeDate;
3697
+ rider_revenue?: number | null | undefined;
3693
3698
  rider_details?: {
3694
3699
  staff_id: string;
3695
3700
  staff_name: string;
@@ -3720,12 +3725,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3720
3725
  floor_id: import("mongoose").Types.ObjectId;
3721
3726
  table_name: string;
3722
3727
  reservation_time: NativeDate;
3723
- order_taker_details?: {
3724
- staff_id: string;
3725
- staff_name: string;
3726
- staff_mobile: string;
3727
- staff_email: string;
3728
- } | null | undefined;
3729
3728
  prep_minutes?: number | null | undefined;
3730
3729
  } | null | undefined;
3731
3730
  takeaway_details?: {
@@ -3737,6 +3736,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3737
3736
  staff_mobile: string;
3738
3737
  staff_email: string;
3739
3738
  } | null | undefined;
3739
+ order_taker_details?: {
3740
+ staff_id: string;
3741
+ staff_name: string;
3742
+ staff_mobile: string;
3743
+ staff_email: string;
3744
+ } | null | undefined;
3740
3745
  order_discount_details?: {
3741
3746
  total_discount: number;
3742
3747
  voucher_discount?: number | null | undefined;
@@ -3770,6 +3775,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3770
3775
  gst?: number | null | undefined;
3771
3776
  exclude_discount_from_gst?: boolean | null | undefined;
3772
3777
  gst_amount?: number | null | undefined;
3778
+ packaging_fee?: number | null | undefined;
3779
+ adjustment_amount?: number | null | undefined;
3780
+ adjustment_reason?: string | null | undefined;
3773
3781
  apply_service_fee_on_original_price?: boolean | null | undefined;
3774
3782
  is_gst_inclusive?: boolean | null | undefined;
3775
3783
  tax_invoice_provider_charges?: number | null | undefined;
@@ -4948,6 +4956,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
4948
4956
  delivery_code: string;
4949
4957
  delivery_cost: number;
4950
4958
  estimated_delivery_time: NativeDate;
4959
+ rider_revenue?: number | null | undefined;
4951
4960
  rider_details?: {
4952
4961
  staff_id: string;
4953
4962
  staff_name: string;
@@ -4978,12 +4987,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
4978
4987
  floor_id: import("mongoose").Types.ObjectId;
4979
4988
  table_name: string;
4980
4989
  reservation_time: NativeDate;
4981
- order_taker_details?: {
4982
- staff_id: string;
4983
- staff_name: string;
4984
- staff_mobile: string;
4985
- staff_email: string;
4986
- } | null | undefined;
4987
4990
  prep_minutes?: number | null | undefined;
4988
4991
  } | null | undefined;
4989
4992
  takeaway_details?: {
@@ -4995,6 +4998,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
4995
4998
  staff_mobile: string;
4996
4999
  staff_email: string;
4997
5000
  } | null | undefined;
5001
+ order_taker_details?: {
5002
+ staff_id: string;
5003
+ staff_name: string;
5004
+ staff_mobile: string;
5005
+ staff_email: string;
5006
+ } | null | undefined;
4998
5007
  order_discount_details?: {
4999
5008
  total_discount: number;
5000
5009
  voucher_discount?: number | null | undefined;
@@ -5028,6 +5037,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5028
5037
  gst?: number | null | undefined;
5029
5038
  exclude_discount_from_gst?: boolean | null | undefined;
5030
5039
  gst_amount?: number | null | undefined;
5040
+ packaging_fee?: number | null | undefined;
5041
+ adjustment_amount?: number | null | undefined;
5042
+ adjustment_reason?: string | null | undefined;
5031
5043
  apply_service_fee_on_original_price?: boolean | null | undefined;
5032
5044
  is_gst_inclusive?: boolean | null | undefined;
5033
5045
  tax_invoice_provider_charges?: number | null | undefined;
@@ -5038,12 +5050,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5038
5050
  order_settled_at: NativeDate;
5039
5051
  order_settled_at_mins: number;
5040
5052
  cancel_reason?: string | null | undefined;
5041
- order_taker_details?: {
5042
- staff_id: string;
5043
- staff_name: string;
5044
- staff_mobile: string;
5045
- staff_email: string;
5046
- } | null | undefined;
5047
5053
  delivery_details?: {
5048
5054
  city: string;
5049
5055
  address_instructions: string;
@@ -5057,6 +5063,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5057
5063
  delivery_code: string;
5058
5064
  delivery_cost: number;
5059
5065
  estimated_delivery_time: NativeDate;
5066
+ rider_revenue?: number | null | undefined;
5060
5067
  rider_details?: {
5061
5068
  staff_id: string;
5062
5069
  staff_name: string;
@@ -5087,12 +5094,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5087
5094
  floor_id: import("mongoose").Types.ObjectId;
5088
5095
  table_name: string;
5089
5096
  reservation_time: NativeDate;
5090
- order_taker_details?: {
5091
- staff_id: string;
5092
- staff_name: string;
5093
- staff_mobile: string;
5094
- staff_email: string;
5095
- } | null | undefined;
5096
5097
  prep_minutes?: number | null | undefined;
5097
5098
  } | null | undefined;
5098
5099
  takeaway_details?: {
@@ -5104,6 +5105,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5104
5105
  staff_mobile: string;
5105
5106
  staff_email: string;
5106
5107
  } | null | undefined;
5108
+ order_taker_details?: {
5109
+ staff_id: string;
5110
+ staff_name: string;
5111
+ staff_mobile: string;
5112
+ staff_email: string;
5113
+ } | null | undefined;
5107
5114
  order_discount_details?: {
5108
5115
  total_discount: number;
5109
5116
  voucher_discount?: number | null | undefined;
@@ -5137,6 +5144,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5137
5144
  gst?: number | null | undefined;
5138
5145
  exclude_discount_from_gst?: boolean | null | undefined;
5139
5146
  gst_amount?: number | null | undefined;
5147
+ packaging_fee?: number | null | undefined;
5148
+ adjustment_amount?: number | null | undefined;
5149
+ adjustment_reason?: string | null | undefined;
5140
5150
  apply_service_fee_on_original_price?: boolean | null | undefined;
5141
5151
  is_gst_inclusive?: boolean | null | undefined;
5142
5152
  tax_invoice_provider_charges?: number | null | undefined;
@@ -7495,6 +7505,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
7495
7505
  delivery_code: string;
7496
7506
  delivery_cost: number;
7497
7507
  estimated_delivery_time: NativeDate;
7508
+ rider_revenue?: number | null | undefined;
7498
7509
  rider_details?: {
7499
7510
  staff_id: string;
7500
7511
  staff_name: string;
@@ -7525,12 +7536,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
7525
7536
  floor_id: import("mongoose").Types.ObjectId;
7526
7537
  table_name: string;
7527
7538
  reservation_time: NativeDate;
7528
- order_taker_details?: {
7529
- staff_id: string;
7530
- staff_name: string;
7531
- staff_mobile: string;
7532
- staff_email: string;
7533
- } | null | undefined;
7534
7539
  prep_minutes?: number | null | undefined;
7535
7540
  } | null | undefined;
7536
7541
  takeaway_details?: {
@@ -7542,6 +7547,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
7542
7547
  staff_mobile: string;
7543
7548
  staff_email: string;
7544
7549
  } | null | undefined;
7550
+ order_taker_details?: {
7551
+ staff_id: string;
7552
+ staff_name: string;
7553
+ staff_mobile: string;
7554
+ staff_email: string;
7555
+ } | null | undefined;
7545
7556
  order_discount_details?: {
7546
7557
  total_discount: number;
7547
7558
  voucher_discount?: number | null | undefined;
@@ -7575,6 +7586,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
7575
7586
  gst?: number | null | undefined;
7576
7587
  exclude_discount_from_gst?: boolean | null | undefined;
7577
7588
  gst_amount?: number | null | undefined;
7589
+ packaging_fee?: number | null | undefined;
7590
+ adjustment_amount?: number | null | undefined;
7591
+ adjustment_reason?: string | null | undefined;
7578
7592
  apply_service_fee_on_original_price?: boolean | null | undefined;
7579
7593
  is_gst_inclusive?: boolean | null | undefined;
7580
7594
  tax_invoice_provider_charges?: number | null | undefined;
@@ -8753,6 +8767,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8753
8767
  delivery_code: string;
8754
8768
  delivery_cost: number;
8755
8769
  estimated_delivery_time: NativeDate;
8770
+ rider_revenue?: number | null | undefined;
8756
8771
  rider_details?: {
8757
8772
  staff_id: string;
8758
8773
  staff_name: string;
@@ -8783,12 +8798,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8783
8798
  floor_id: import("mongoose").Types.ObjectId;
8784
8799
  table_name: string;
8785
8800
  reservation_time: NativeDate;
8786
- order_taker_details?: {
8787
- staff_id: string;
8788
- staff_name: string;
8789
- staff_mobile: string;
8790
- staff_email: string;
8791
- } | null | undefined;
8792
8801
  prep_minutes?: number | null | undefined;
8793
8802
  } | null | undefined;
8794
8803
  takeaway_details?: {
@@ -8800,6 +8809,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8800
8809
  staff_mobile: string;
8801
8810
  staff_email: string;
8802
8811
  } | null | undefined;
8812
+ order_taker_details?: {
8813
+ staff_id: string;
8814
+ staff_name: string;
8815
+ staff_mobile: string;
8816
+ staff_email: string;
8817
+ } | null | undefined;
8803
8818
  order_discount_details?: {
8804
8819
  total_discount: number;
8805
8820
  voucher_discount?: number | null | undefined;
@@ -8833,6 +8848,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8833
8848
  gst?: number | null | undefined;
8834
8849
  exclude_discount_from_gst?: boolean | null | undefined;
8835
8850
  gst_amount?: number | null | undefined;
8851
+ packaging_fee?: number | null | undefined;
8852
+ adjustment_amount?: number | null | undefined;
8853
+ adjustment_reason?: string | null | undefined;
8836
8854
  apply_service_fee_on_original_price?: boolean | null | undefined;
8837
8855
  is_gst_inclusive?: boolean | null | undefined;
8838
8856
  tax_invoice_provider_charges?: number | null | undefined;
@@ -10011,6 +10029,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10011
10029
  delivery_code: string;
10012
10030
  delivery_cost: number;
10013
10031
  estimated_delivery_time: NativeDate;
10032
+ rider_revenue?: number | null | undefined;
10014
10033
  rider_details?: {
10015
10034
  staff_id: string;
10016
10035
  staff_name: string;
@@ -10041,12 +10060,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10041
10060
  floor_id: import("mongoose").Types.ObjectId;
10042
10061
  table_name: string;
10043
10062
  reservation_time: NativeDate;
10044
- order_taker_details?: {
10045
- staff_id: string;
10046
- staff_name: string;
10047
- staff_mobile: string;
10048
- staff_email: string;
10049
- } | null | undefined;
10050
10063
  prep_minutes?: number | null | undefined;
10051
10064
  } | null | undefined;
10052
10065
  takeaway_details?: {
@@ -10058,6 +10071,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10058
10071
  staff_mobile: string;
10059
10072
  staff_email: string;
10060
10073
  } | null | undefined;
10074
+ order_taker_details?: {
10075
+ staff_id: string;
10076
+ staff_name: string;
10077
+ staff_mobile: string;
10078
+ staff_email: string;
10079
+ } | null | undefined;
10061
10080
  order_discount_details?: {
10062
10081
  total_discount: number;
10063
10082
  voucher_discount?: number | null | undefined;
@@ -10091,6 +10110,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10091
10110
  gst?: number | null | undefined;
10092
10111
  exclude_discount_from_gst?: boolean | null | undefined;
10093
10112
  gst_amount?: number | null | undefined;
10113
+ packaging_fee?: number | null | undefined;
10114
+ adjustment_amount?: number | null | undefined;
10115
+ adjustment_reason?: string | null | undefined;
10094
10116
  apply_service_fee_on_original_price?: boolean | null | undefined;
10095
10117
  is_gst_inclusive?: boolean | null | undefined;
10096
10118
  tax_invoice_provider_charges?: number | null | undefined;
@@ -10101,12 +10123,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10101
10123
  order_settled_at: NativeDate;
10102
10124
  order_settled_at_mins: number;
10103
10125
  cancel_reason?: string | null | undefined;
10104
- order_taker_details?: {
10105
- staff_id: string;
10106
- staff_name: string;
10107
- staff_mobile: string;
10108
- staff_email: string;
10109
- } | null | undefined;
10110
10126
  delivery_details?: {
10111
10127
  city: string;
10112
10128
  address_instructions: string;
@@ -10120,6 +10136,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10120
10136
  delivery_code: string;
10121
10137
  delivery_cost: number;
10122
10138
  estimated_delivery_time: NativeDate;
10139
+ rider_revenue?: number | null | undefined;
10123
10140
  rider_details?: {
10124
10141
  staff_id: string;
10125
10142
  staff_name: string;
@@ -10150,12 +10167,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10150
10167
  floor_id: import("mongoose").Types.ObjectId;
10151
10168
  table_name: string;
10152
10169
  reservation_time: NativeDate;
10153
- order_taker_details?: {
10154
- staff_id: string;
10155
- staff_name: string;
10156
- staff_mobile: string;
10157
- staff_email: string;
10158
- } | null | undefined;
10159
10170
  prep_minutes?: number | null | undefined;
10160
10171
  } | null | undefined;
10161
10172
  takeaway_details?: {
@@ -10167,6 +10178,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10167
10178
  staff_mobile: string;
10168
10179
  staff_email: string;
10169
10180
  } | null | undefined;
10181
+ order_taker_details?: {
10182
+ staff_id: string;
10183
+ staff_name: string;
10184
+ staff_mobile: string;
10185
+ staff_email: string;
10186
+ } | null | undefined;
10170
10187
  order_discount_details?: {
10171
10188
  total_discount: number;
10172
10189
  voucher_discount?: number | null | undefined;
@@ -10200,6 +10217,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10200
10217
  gst?: number | null | undefined;
10201
10218
  exclude_discount_from_gst?: boolean | null | undefined;
10202
10219
  gst_amount?: number | null | undefined;
10220
+ packaging_fee?: number | null | undefined;
10221
+ adjustment_amount?: number | null | undefined;
10222
+ adjustment_reason?: string | null | undefined;
10203
10223
  apply_service_fee_on_original_price?: boolean | null | undefined;
10204
10224
  is_gst_inclusive?: boolean | null | undefined;
10205
10225
  tax_invoice_provider_charges?: number | null | undefined;
@@ -12558,6 +12578,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
12558
12578
  delivery_code: string;
12559
12579
  delivery_cost: number;
12560
12580
  estimated_delivery_time: NativeDate;
12581
+ rider_revenue?: number | null | undefined;
12561
12582
  rider_details?: {
12562
12583
  staff_id: string;
12563
12584
  staff_name: string;
@@ -12588,12 +12609,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
12588
12609
  floor_id: import("mongoose").Types.ObjectId;
12589
12610
  table_name: string;
12590
12611
  reservation_time: NativeDate;
12591
- order_taker_details?: {
12592
- staff_id: string;
12593
- staff_name: string;
12594
- staff_mobile: string;
12595
- staff_email: string;
12596
- } | null | undefined;
12597
12612
  prep_minutes?: number | null | undefined;
12598
12613
  } | null | undefined;
12599
12614
  takeaway_details?: {
@@ -12605,6 +12620,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
12605
12620
  staff_mobile: string;
12606
12621
  staff_email: string;
12607
12622
  } | null | undefined;
12623
+ order_taker_details?: {
12624
+ staff_id: string;
12625
+ staff_name: string;
12626
+ staff_mobile: string;
12627
+ staff_email: string;
12628
+ } | null | undefined;
12608
12629
  order_discount_details?: {
12609
12630
  total_discount: number;
12610
12631
  voucher_discount?: number | null | undefined;
@@ -12638,6 +12659,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
12638
12659
  gst?: number | null | undefined;
12639
12660
  exclude_discount_from_gst?: boolean | null | undefined;
12640
12661
  gst_amount?: number | null | undefined;
12662
+ packaging_fee?: number | null | undefined;
12663
+ adjustment_amount?: number | null | undefined;
12664
+ adjustment_reason?: string | null | undefined;
12641
12665
  apply_service_fee_on_original_price?: boolean | null | undefined;
12642
12666
  is_gst_inclusive?: boolean | null | undefined;
12643
12667
  tax_invoice_provider_charges?: number | null | undefined;
@@ -13816,6 +13840,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13816
13840
  delivery_code: string;
13817
13841
  delivery_cost: number;
13818
13842
  estimated_delivery_time: NativeDate;
13843
+ rider_revenue?: number | null | undefined;
13819
13844
  rider_details?: {
13820
13845
  staff_id: string;
13821
13846
  staff_name: string;
@@ -13846,12 +13871,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13846
13871
  floor_id: import("mongoose").Types.ObjectId;
13847
13872
  table_name: string;
13848
13873
  reservation_time: NativeDate;
13849
- order_taker_details?: {
13850
- staff_id: string;
13851
- staff_name: string;
13852
- staff_mobile: string;
13853
- staff_email: string;
13854
- } | null | undefined;
13855
13874
  prep_minutes?: number | null | undefined;
13856
13875
  } | null | undefined;
13857
13876
  takeaway_details?: {
@@ -13863,6 +13882,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13863
13882
  staff_mobile: string;
13864
13883
  staff_email: string;
13865
13884
  } | null | undefined;
13885
+ order_taker_details?: {
13886
+ staff_id: string;
13887
+ staff_name: string;
13888
+ staff_mobile: string;
13889
+ staff_email: string;
13890
+ } | null | undefined;
13866
13891
  order_discount_details?: {
13867
13892
  total_discount: number;
13868
13893
  voucher_discount?: number | null | undefined;
@@ -13896,6 +13921,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13896
13921
  gst?: number | null | undefined;
13897
13922
  exclude_discount_from_gst?: boolean | null | undefined;
13898
13923
  gst_amount?: number | null | undefined;
13924
+ packaging_fee?: number | null | undefined;
13925
+ adjustment_amount?: number | null | undefined;
13926
+ adjustment_reason?: string | null | undefined;
13899
13927
  apply_service_fee_on_original_price?: boolean | null | undefined;
13900
13928
  is_gst_inclusive?: boolean | null | undefined;
13901
13929
  tax_invoice_provider_charges?: number | null | undefined;
@@ -15074,6 +15102,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15074
15102
  delivery_code: string;
15075
15103
  delivery_cost: number;
15076
15104
  estimated_delivery_time: NativeDate;
15105
+ rider_revenue?: number | null | undefined;
15077
15106
  rider_details?: {
15078
15107
  staff_id: string;
15079
15108
  staff_name: string;
@@ -15104,12 +15133,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15104
15133
  floor_id: import("mongoose").Types.ObjectId;
15105
15134
  table_name: string;
15106
15135
  reservation_time: NativeDate;
15107
- order_taker_details?: {
15108
- staff_id: string;
15109
- staff_name: string;
15110
- staff_mobile: string;
15111
- staff_email: string;
15112
- } | null | undefined;
15113
15136
  prep_minutes?: number | null | undefined;
15114
15137
  } | null | undefined;
15115
15138
  takeaway_details?: {
@@ -15121,6 +15144,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15121
15144
  staff_mobile: string;
15122
15145
  staff_email: string;
15123
15146
  } | null | undefined;
15147
+ order_taker_details?: {
15148
+ staff_id: string;
15149
+ staff_name: string;
15150
+ staff_mobile: string;
15151
+ staff_email: string;
15152
+ } | null | undefined;
15124
15153
  order_discount_details?: {
15125
15154
  total_discount: number;
15126
15155
  voucher_discount?: number | null | undefined;
@@ -15154,6 +15183,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15154
15183
  gst?: number | null | undefined;
15155
15184
  exclude_discount_from_gst?: boolean | null | undefined;
15156
15185
  gst_amount?: number | null | undefined;
15186
+ packaging_fee?: number | null | undefined;
15187
+ adjustment_amount?: number | null | undefined;
15188
+ adjustment_reason?: string | null | undefined;
15157
15189
  apply_service_fee_on_original_price?: boolean | null | undefined;
15158
15190
  is_gst_inclusive?: boolean | null | undefined;
15159
15191
  tax_invoice_provider_charges?: number | null | undefined;
@@ -15164,12 +15196,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15164
15196
  order_settled_at: NativeDate;
15165
15197
  order_settled_at_mins: number;
15166
15198
  cancel_reason?: string | null | undefined;
15167
- order_taker_details?: {
15168
- staff_id: string;
15169
- staff_name: string;
15170
- staff_mobile: string;
15171
- staff_email: string;
15172
- } | null | undefined;
15173
15199
  delivery_details?: {
15174
15200
  city: string;
15175
15201
  address_instructions: string;
@@ -15183,6 +15209,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15183
15209
  delivery_code: string;
15184
15210
  delivery_cost: number;
15185
15211
  estimated_delivery_time: NativeDate;
15212
+ rider_revenue?: number | null | undefined;
15186
15213
  rider_details?: {
15187
15214
  staff_id: string;
15188
15215
  staff_name: string;
@@ -15213,12 +15240,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15213
15240
  floor_id: import("mongoose").Types.ObjectId;
15214
15241
  table_name: string;
15215
15242
  reservation_time: NativeDate;
15216
- order_taker_details?: {
15217
- staff_id: string;
15218
- staff_name: string;
15219
- staff_mobile: string;
15220
- staff_email: string;
15221
- } | null | undefined;
15222
15243
  prep_minutes?: number | null | undefined;
15223
15244
  } | null | undefined;
15224
15245
  takeaway_details?: {
@@ -15230,6 +15251,12 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15230
15251
  staff_mobile: string;
15231
15252
  staff_email: string;
15232
15253
  } | null | undefined;
15254
+ order_taker_details?: {
15255
+ staff_id: string;
15256
+ staff_name: string;
15257
+ staff_mobile: string;
15258
+ staff_email: string;
15259
+ } | null | undefined;
15233
15260
  order_discount_details?: {
15234
15261
  total_discount: number;
15235
15262
  voucher_discount?: number | null | undefined;
@@ -15263,6 +15290,9 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15263
15290
  gst?: number | null | undefined;
15264
15291
  exclude_discount_from_gst?: boolean | null | undefined;
15265
15292
  gst_amount?: number | null | undefined;
15293
+ packaging_fee?: number | null | undefined;
15294
+ adjustment_amount?: number | null | undefined;
15295
+ adjustment_reason?: string | null | undefined;
15266
15296
  apply_service_fee_on_original_price?: boolean | null | undefined;
15267
15297
  is_gst_inclusive?: boolean | null | undefined;
15268
15298
  tax_invoice_provider_charges?: number | null | undefined;
@@ -92,10 +92,6 @@ const DineInDetailsSchema = new mongoose_1.Schema({
92
92
  type: Date,
93
93
  required: true,
94
94
  },
95
- order_taker_details: {
96
- type: StaffDetailsSchema,
97
- required: false,
98
- },
99
95
  prep_minutes: {
100
96
  type: Number,
101
97
  required: false,
@@ -147,6 +143,11 @@ const DeliveryDetailsSchema = new mongoose_1.Schema({
147
143
  min: 0,
148
144
  required: true,
149
145
  },
146
+ rider_revenue: {
147
+ type: Number,
148
+ min: 0,
149
+ required: false,
150
+ },
150
151
  estimated_delivery_time: {
151
152
  type: Date,
152
153
  default: null,
@@ -462,6 +463,10 @@ const IterationsOrderSchema = new mongoose_1.Schema({
462
463
  type: StaffDetailsSchema,
463
464
  required: false,
464
465
  },
466
+ order_taker_details: {
467
+ type: StaffDetailsSchema,
468
+ required: false,
469
+ },
465
470
  order_discount_details: {
466
471
  type: DiscountDetailsSchema,
467
472
  required: false,
@@ -520,6 +525,19 @@ const IterationsOrderSchema = new mongoose_1.Schema({
520
525
  min: 0,
521
526
  required: false,
522
527
  },
528
+ packaging_fee: {
529
+ type: Number,
530
+ min: 0,
531
+ required: false,
532
+ },
533
+ adjustment_amount: {
534
+ type: Number,
535
+ required: false,
536
+ },
537
+ adjustment_reason: {
538
+ type: String,
539
+ required: false,
540
+ },
523
541
  apply_service_fee_on_original_price: {
524
542
  type: Boolean,
525
543
  required: false,
@@ -726,6 +744,19 @@ exports.OrderSchema = new mongoose_1.Schema({
726
744
  min: 0,
727
745
  required: false,
728
746
  },
747
+ packaging_fee: {
748
+ type: Number,
749
+ min: 0,
750
+ required: false,
751
+ },
752
+ adjustment_amount: {
753
+ type: Number,
754
+ required: false,
755
+ },
756
+ adjustment_reason: {
757
+ type: String,
758
+ required: false,
759
+ },
729
760
  apply_service_fee_on_original_price: {
730
761
  type: Boolean,
731
762
  required: false,