@managesome/eposmatic-toolkit 0.4.4 → 0.4.7

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 (60) hide show
  1. package/esm/constants/REPORT_CALENDAR.js +47 -0
  2. package/esm/constants/index.js +1 -0
  3. package/esm/helpers/materialized-reports/index.js +2 -0
  4. package/esm/helpers/materialized-reports/materialized-reports-read-helpers.js +20 -21
  5. package/esm/helpers/materialized-reports/materialized-reports-scope-group-helpers.js +281 -0
  6. package/esm/helpers/materialized-reports/materialized-reports-selection-helpers.js +473 -0
  7. package/esm/helpers/materialized-reports/tenant-sales-overview-formatter.js +126 -7
  8. package/esm/helpers/materialized-reports/tenant-sales-overview-helpers.js +47 -1
  9. package/esm/helpers/order/generate-order.js +11 -0
  10. package/esm/helpers/store/common-order-actions.js +7 -3
  11. package/esm/helpers/types/index.js +1 -0
  12. package/esm/helpers/types/materialized-reports-apis.js +1 -1
  13. package/esm/helpers/types/report-calendar.js +1 -0
  14. package/lib/constants/REPORT_CALENDAR.d.ts +31 -0
  15. package/lib/constants/REPORT_CALENDAR.js +50 -0
  16. package/lib/constants/index.d.ts +1 -0
  17. package/lib/constants/index.js +1 -0
  18. package/lib/helpers/materialized-reports/index.d.ts +2 -0
  19. package/lib/helpers/materialized-reports/index.js +2 -0
  20. package/lib/helpers/materialized-reports/materialized-reports-read-helpers.d.ts +20 -21
  21. package/lib/helpers/materialized-reports/materialized-reports-read-helpers.js +20 -21
  22. package/lib/helpers/materialized-reports/materialized-reports-scope-group-helpers.d.ts +58 -0
  23. package/lib/helpers/materialized-reports/materialized-reports-scope-group-helpers.js +286 -0
  24. package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.d.ts +25 -0
  25. package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.js +479 -0
  26. package/lib/helpers/materialized-reports/tenant-sales-overview-formatter.d.ts +24 -0
  27. package/lib/helpers/materialized-reports/tenant-sales-overview-formatter.js +127 -7
  28. package/lib/helpers/materialized-reports/tenant-sales-overview-helpers.js +47 -1
  29. package/lib/helpers/order/generate-order.d.ts +2 -0
  30. package/lib/helpers/order/generate-order.js +13 -0
  31. package/lib/helpers/store/common-order-actions.js +7 -3
  32. package/lib/helpers/types/index.d.ts +1 -0
  33. package/lib/helpers/types/index.js +1 -0
  34. package/lib/helpers/types/materialized-reports-apis.d.ts +117 -25
  35. package/lib/helpers/types/materialized-reports-apis.js +1 -0
  36. package/lib/helpers/types/report-calendar.d.ts +20 -0
  37. package/lib/helpers/types/report-calendar.js +2 -0
  38. package/lib/schemas/models/internal_invoices.d.ts +3 -3
  39. package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +6 -6
  40. package/lib/schemas/models/orders.d.ts +692 -692
  41. package/lib/schemas/models/tenant_purchase_orders.d.ts +90 -90
  42. package/lib/schemas/models/tenants.d.ts +9 -9
  43. package/lib/schemas/models/warehouse_communications.d.ts +3 -3
  44. package/lib/schemas/models/warehouse_internal_movements.d.ts +48 -48
  45. package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +63 -63
  46. package/lib/schemas/models/warehouse_purchase_orders.d.ts +96 -96
  47. package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
  48. package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +69 -69
  49. package/lib/schemas/models/warehouse_sale_orders.d.ts +45 -45
  50. package/lib/schemas/models/warehouses.d.ts +6 -6
  51. package/lib/tests/materialized-reports/materialized-reports-scope-group-helpers.test.d.ts +1 -0
  52. package/lib/tests/materialized-reports/materialized-reports-scope-group-helpers.test.js +275 -0
  53. package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.d.ts +1 -0
  54. package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.js +166 -0
  55. package/lib/tests/materialized-reports/tenant-sales-overview-formatter-aggregated.test.d.ts +1 -0
  56. package/lib/tests/materialized-reports/tenant-sales-overview-formatter-aggregated.test.js +143 -0
  57. package/lib/tests/materialized-reports/tenant-sales-overview-helpers.test.js +22 -0
  58. package/lib/tests/num-of-guests-limit.test.d.ts +1 -0
  59. package/lib/tests/num-of-guests-limit.test.js +76 -0
  60. package/package.json +1 -1
@@ -2514,11 +2514,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2514
2514
  }>;
2515
2515
  }>;
2516
2516
  price: number;
2517
+ consumer: {
2518
+ email: string;
2519
+ phone: string;
2520
+ first_name: string;
2521
+ last_name: string;
2522
+ };
2523
+ tip_amount: number;
2517
2524
  special_instructions: string;
2518
- amount_earned: number;
2519
- grand_total: number;
2520
- order_status: import("../../constants").ORDER_STATUS_ENUM;
2521
- tax_number: string;
2522
2525
  payments: import("mongoose").Types.DocumentArray<{
2523
2526
  payment_type: string;
2524
2527
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -2580,50 +2583,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2580
2583
  refund_reason?: string | null | undefined;
2581
2584
  note?: string | null | undefined;
2582
2585
  }>;
2583
- consumer: {
2584
- email: string;
2585
- phone: string;
2586
- first_name: string;
2587
- last_name: string;
2588
- };
2589
- tip_amount: number;
2586
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
2587
+ tax_number: string;
2590
2588
  tax_amount: number;
2591
- staff_details?: {
2592
- staff_id: string;
2593
- staff_name: string;
2594
- staff_mobile: string;
2595
- staff_email: string;
2596
- } | null | undefined;
2597
- is_gst_inclusive?: boolean | null | undefined;
2598
- gst?: number | null | undefined;
2599
- gst_amount?: number | null | undefined;
2600
- order_taker_details?: {
2601
- staff_id: string;
2602
- staff_name: string;
2603
- staff_mobile: string;
2604
- staff_email: string;
2605
- } | null | undefined;
2606
- delivery_details?: {
2607
- city: string;
2608
- address_instructions: string;
2609
- state: string;
2610
- street: string;
2611
- lat: number;
2612
- lng: number;
2613
- zip_code: string;
2614
- country_code: string;
2615
- distance_in_meters_from_store: number;
2616
- delivery_cost: number;
2617
- estimated_delivery_time: NativeDate;
2618
- delivery_code: string;
2619
- rider_revenue?: number | null | undefined;
2620
- rider_details?: {
2621
- staff_id: string;
2622
- staff_name: string;
2623
- staff_mobile: string;
2624
- staff_email: string;
2625
- } | null | undefined;
2626
- } | null | undefined;
2589
+ amount_earned: number;
2590
+ grand_total: number;
2627
2591
  dinein_details?: {
2628
2592
  start_time: NativeDate;
2629
2593
  courses: import("mongoose").Types.DocumentArray<{
@@ -2649,9 +2613,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2649
2613
  reservation_time: NativeDate;
2650
2614
  prep_minutes?: number | null | undefined;
2651
2615
  } | null | undefined;
2616
+ delivery_details?: {
2617
+ city: string;
2618
+ address_instructions: string;
2619
+ state: string;
2620
+ street: string;
2621
+ lat: number;
2622
+ lng: number;
2623
+ zip_code: string;
2624
+ country_code: string;
2625
+ distance_in_meters_from_store: number;
2626
+ estimated_delivery_time: NativeDate;
2627
+ delivery_cost: number;
2628
+ delivery_code: string;
2629
+ rider_revenue?: number | null | undefined;
2630
+ rider_details?: {
2631
+ staff_id: string;
2632
+ staff_name: string;
2633
+ staff_mobile: string;
2634
+ staff_email: string;
2635
+ } | null | undefined;
2636
+ } | null | undefined;
2652
2637
  takeaway_details?: {
2653
2638
  estimated_takeaway_time: NativeDate;
2654
2639
  } | null | undefined;
2640
+ order_taker_details?: {
2641
+ staff_id: string;
2642
+ staff_name: string;
2643
+ staff_mobile: string;
2644
+ staff_email: string;
2645
+ } | null | undefined;
2646
+ staff_details?: {
2647
+ staff_id: string;
2648
+ staff_name: string;
2649
+ staff_mobile: string;
2650
+ staff_email: string;
2651
+ } | null | undefined;
2655
2652
  order_discount_details?: {
2656
2653
  total_discount: number;
2657
2654
  loyalty_discount_id?: string | null | undefined;
@@ -2680,10 +2677,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
2680
2677
  is_service_fee_taxable?: boolean | null | undefined;
2681
2678
  exclude_discount_from_gst?: boolean | null | undefined;
2682
2679
  apply_service_fee_on_original_price?: boolean | null | undefined;
2680
+ is_gst_inclusive?: boolean | null | undefined;
2683
2681
  surcharge?: number | null | undefined;
2684
2682
  surcharge_amount?: number | null | undefined;
2685
2683
  service_fee?: number | null | undefined;
2686
2684
  service_fee_amount?: number | null | undefined;
2685
+ gst?: number | null | undefined;
2686
+ gst_amount?: number | null | undefined;
2687
2687
  packaging_charges?: number | null | undefined;
2688
2688
  adjustment_amount?: number | null | undefined;
2689
2689
  adjustment_reason?: string | null | undefined;
@@ -3893,11 +3893,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3893
3893
  }>;
3894
3894
  }>;
3895
3895
  price: number;
3896
+ consumer: {
3897
+ email: string;
3898
+ phone: string;
3899
+ first_name: string;
3900
+ last_name: string;
3901
+ };
3902
+ tip_amount: number;
3896
3903
  special_instructions: string;
3897
- amount_earned: number;
3898
- grand_total: number;
3899
- order_status: import("../../constants").ORDER_STATUS_ENUM;
3900
- tax_number: string;
3901
3904
  payments: import("mongoose").Types.DocumentArray<{
3902
3905
  payment_type: string;
3903
3906
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -3959,50 +3962,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
3959
3962
  refund_reason?: string | null | undefined;
3960
3963
  note?: string | null | undefined;
3961
3964
  }>;
3962
- consumer: {
3963
- email: string;
3964
- phone: string;
3965
- first_name: string;
3966
- last_name: string;
3967
- };
3968
- tip_amount: number;
3965
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
3966
+ tax_number: string;
3969
3967
  tax_amount: number;
3970
- staff_details?: {
3971
- staff_id: string;
3972
- staff_name: string;
3973
- staff_mobile: string;
3974
- staff_email: string;
3975
- } | null | undefined;
3976
- is_gst_inclusive?: boolean | null | undefined;
3977
- gst?: number | null | undefined;
3978
- gst_amount?: number | null | undefined;
3979
- order_taker_details?: {
3980
- staff_id: string;
3981
- staff_name: string;
3982
- staff_mobile: string;
3983
- staff_email: string;
3984
- } | null | undefined;
3985
- delivery_details?: {
3986
- city: string;
3987
- address_instructions: string;
3988
- state: string;
3989
- street: string;
3990
- lat: number;
3991
- lng: number;
3992
- zip_code: string;
3993
- country_code: string;
3994
- distance_in_meters_from_store: number;
3995
- delivery_cost: number;
3996
- estimated_delivery_time: NativeDate;
3997
- delivery_code: string;
3998
- rider_revenue?: number | null | undefined;
3999
- rider_details?: {
4000
- staff_id: string;
4001
- staff_name: string;
4002
- staff_mobile: string;
4003
- staff_email: string;
4004
- } | null | undefined;
4005
- } | null | undefined;
3968
+ amount_earned: number;
3969
+ grand_total: number;
4006
3970
  dinein_details?: {
4007
3971
  start_time: NativeDate;
4008
3972
  courses: import("mongoose").Types.DocumentArray<{
@@ -4028,9 +3992,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
4028
3992
  reservation_time: NativeDate;
4029
3993
  prep_minutes?: number | null | undefined;
4030
3994
  } | null | undefined;
3995
+ delivery_details?: {
3996
+ city: string;
3997
+ address_instructions: string;
3998
+ state: string;
3999
+ street: string;
4000
+ lat: number;
4001
+ lng: number;
4002
+ zip_code: string;
4003
+ country_code: string;
4004
+ distance_in_meters_from_store: number;
4005
+ estimated_delivery_time: NativeDate;
4006
+ delivery_cost: number;
4007
+ delivery_code: string;
4008
+ rider_revenue?: number | null | undefined;
4009
+ rider_details?: {
4010
+ staff_id: string;
4011
+ staff_name: string;
4012
+ staff_mobile: string;
4013
+ staff_email: string;
4014
+ } | null | undefined;
4015
+ } | null | undefined;
4031
4016
  takeaway_details?: {
4032
4017
  estimated_takeaway_time: NativeDate;
4033
4018
  } | null | undefined;
4019
+ order_taker_details?: {
4020
+ staff_id: string;
4021
+ staff_name: string;
4022
+ staff_mobile: string;
4023
+ staff_email: string;
4024
+ } | null | undefined;
4025
+ staff_details?: {
4026
+ staff_id: string;
4027
+ staff_name: string;
4028
+ staff_mobile: string;
4029
+ staff_email: string;
4030
+ } | null | undefined;
4034
4031
  order_discount_details?: {
4035
4032
  total_discount: number;
4036
4033
  loyalty_discount_id?: string | null | undefined;
@@ -4059,10 +4056,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
4059
4056
  is_service_fee_taxable?: boolean | null | undefined;
4060
4057
  exclude_discount_from_gst?: boolean | null | undefined;
4061
4058
  apply_service_fee_on_original_price?: boolean | null | undefined;
4059
+ is_gst_inclusive?: boolean | null | undefined;
4062
4060
  surcharge?: number | null | undefined;
4063
4061
  surcharge_amount?: number | null | undefined;
4064
4062
  service_fee?: number | null | undefined;
4065
4063
  service_fee_amount?: number | null | undefined;
4064
+ gst?: number | null | undefined;
4065
+ gst_amount?: number | null | undefined;
4066
4066
  packaging_charges?: number | null | undefined;
4067
4067
  adjustment_amount?: number | null | undefined;
4068
4068
  adjustment_reason?: string | null | undefined;
@@ -5272,11 +5272,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5272
5272
  }>;
5273
5273
  }>;
5274
5274
  price: number;
5275
+ consumer: {
5276
+ email: string;
5277
+ phone: string;
5278
+ first_name: string;
5279
+ last_name: string;
5280
+ };
5281
+ tip_amount: number;
5275
5282
  special_instructions: string;
5276
- amount_earned: number;
5277
- grand_total: number;
5278
- order_status: import("../../constants").ORDER_STATUS_ENUM;
5279
- tax_number: string;
5280
5283
  payments: import("mongoose").Types.DocumentArray<{
5281
5284
  payment_type: string;
5282
5285
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -5338,50 +5341,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5338
5341
  refund_reason?: string | null | undefined;
5339
5342
  note?: string | null | undefined;
5340
5343
  }>;
5341
- consumer: {
5342
- email: string;
5343
- phone: string;
5344
- first_name: string;
5345
- last_name: string;
5346
- };
5347
- tip_amount: number;
5344
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
5345
+ tax_number: string;
5348
5346
  tax_amount: number;
5349
- staff_details?: {
5350
- staff_id: string;
5351
- staff_name: string;
5352
- staff_mobile: string;
5353
- staff_email: string;
5354
- } | null | undefined;
5355
- is_gst_inclusive?: boolean | null | undefined;
5356
- gst?: number | null | undefined;
5357
- gst_amount?: number | null | undefined;
5358
- order_taker_details?: {
5359
- staff_id: string;
5360
- staff_name: string;
5361
- staff_mobile: string;
5362
- staff_email: string;
5363
- } | null | undefined;
5364
- delivery_details?: {
5365
- city: string;
5366
- address_instructions: string;
5367
- state: string;
5368
- street: string;
5369
- lat: number;
5370
- lng: number;
5371
- zip_code: string;
5372
- country_code: string;
5373
- distance_in_meters_from_store: number;
5374
- delivery_cost: number;
5375
- estimated_delivery_time: NativeDate;
5376
- delivery_code: string;
5377
- rider_revenue?: number | null | undefined;
5378
- rider_details?: {
5379
- staff_id: string;
5380
- staff_name: string;
5381
- staff_mobile: string;
5382
- staff_email: string;
5383
- } | null | undefined;
5384
- } | null | undefined;
5347
+ amount_earned: number;
5348
+ grand_total: number;
5385
5349
  dinein_details?: {
5386
5350
  start_time: NativeDate;
5387
5351
  courses: import("mongoose").Types.DocumentArray<{
@@ -5407,16 +5371,49 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5407
5371
  reservation_time: NativeDate;
5408
5372
  prep_minutes?: number | null | undefined;
5409
5373
  } | null | undefined;
5410
- takeaway_details?: {
5411
- estimated_takeaway_time: NativeDate;
5412
- } | null | undefined;
5413
- order_discount_details?: {
5414
- total_discount: number;
5415
- loyalty_discount_id?: string | null | undefined;
5416
- special_discount_id?: string | null | undefined;
5417
- special_discount?: number | null | undefined;
5418
- loyalty_discount?: number | null | undefined;
5419
- voucher_discount_id?: string | null | undefined;
5374
+ delivery_details?: {
5375
+ city: string;
5376
+ address_instructions: string;
5377
+ state: string;
5378
+ street: string;
5379
+ lat: number;
5380
+ lng: number;
5381
+ zip_code: string;
5382
+ country_code: string;
5383
+ distance_in_meters_from_store: number;
5384
+ estimated_delivery_time: NativeDate;
5385
+ delivery_cost: number;
5386
+ delivery_code: string;
5387
+ rider_revenue?: number | null | undefined;
5388
+ rider_details?: {
5389
+ staff_id: string;
5390
+ staff_name: string;
5391
+ staff_mobile: string;
5392
+ staff_email: string;
5393
+ } | null | undefined;
5394
+ } | null | undefined;
5395
+ takeaway_details?: {
5396
+ estimated_takeaway_time: NativeDate;
5397
+ } | null | undefined;
5398
+ order_taker_details?: {
5399
+ staff_id: string;
5400
+ staff_name: string;
5401
+ staff_mobile: string;
5402
+ staff_email: string;
5403
+ } | null | undefined;
5404
+ staff_details?: {
5405
+ staff_id: string;
5406
+ staff_name: string;
5407
+ staff_mobile: string;
5408
+ staff_email: string;
5409
+ } | null | undefined;
5410
+ order_discount_details?: {
5411
+ total_discount: number;
5412
+ loyalty_discount_id?: string | null | undefined;
5413
+ special_discount_id?: string | null | undefined;
5414
+ special_discount?: number | null | undefined;
5415
+ loyalty_discount?: number | null | undefined;
5416
+ voucher_discount_id?: string | null | undefined;
5420
5417
  voucher_discount?: number | null | undefined;
5421
5418
  is_special_discount_percentage?: boolean | null | undefined;
5422
5419
  is_loyalty_discount_percentage?: boolean | null | undefined;
@@ -5438,25 +5435,26 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5438
5435
  is_service_fee_taxable?: boolean | null | undefined;
5439
5436
  exclude_discount_from_gst?: boolean | null | undefined;
5440
5437
  apply_service_fee_on_original_price?: boolean | null | undefined;
5438
+ is_gst_inclusive?: boolean | null | undefined;
5441
5439
  surcharge?: number | null | undefined;
5442
5440
  surcharge_amount?: number | null | undefined;
5443
5441
  service_fee?: number | null | undefined;
5444
5442
  service_fee_amount?: number | null | undefined;
5443
+ gst?: number | null | undefined;
5444
+ gst_amount?: number | null | undefined;
5445
5445
  packaging_charges?: number | null | undefined;
5446
5446
  adjustment_amount?: number | null | undefined;
5447
5447
  adjustment_reason?: string | null | undefined;
5448
5448
  tax_invoice_provider_charges?: number | null | undefined;
5449
5449
  }>;
5450
- amount_collected: number;
5451
- is_deleted: boolean;
5452
- order_status_updated_at: NativeDate;
5453
- order_settled_at: NativeDate;
5454
- order_settled_at_mins: number;
5450
+ consumer: {
5451
+ email: string;
5452
+ phone: string;
5453
+ first_name: string;
5454
+ last_name: string;
5455
+ };
5456
+ tip_amount: number;
5455
5457
  special_instructions: string;
5456
- amount_earned: number;
5457
- grand_total: number;
5458
- order_status: import("../../constants").ORDER_STATUS_ENUM;
5459
- tax_number: string;
5460
5458
  payments: import("mongoose").Types.DocumentArray<{
5461
5459
  payment_type: string;
5462
5460
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -5518,15 +5516,17 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5518
5516
  refund_reason?: string | null | undefined;
5519
5517
  note?: string | null | undefined;
5520
5518
  }>;
5521
- pos_id: string;
5522
- consumer: {
5523
- email: string;
5524
- phone: string;
5525
- first_name: string;
5526
- last_name: string;
5527
- };
5528
- tip_amount: number;
5519
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
5520
+ tax_number: string;
5529
5521
  tax_amount: number;
5522
+ amount_earned: number;
5523
+ grand_total: number;
5524
+ pos_id: string;
5525
+ amount_collected: number;
5526
+ is_deleted: boolean;
5527
+ order_status_updated_at: NativeDate;
5528
+ order_settled_at: NativeDate;
5529
+ order_settled_at_mins: number;
5530
5530
  localHour?: number | null | undefined;
5531
5531
  localDate?: string | null | undefined;
5532
5532
  localWeek?: number | null | undefined;
@@ -5537,56 +5537,36 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5537
5537
  localYear?: number | null | undefined;
5538
5538
  cancel_reason?: string | null | undefined;
5539
5539
  localDay?: number | null | undefined;
5540
- delete_reason?: string | null | undefined;
5541
- is_reopened?: boolean | null | undefined;
5542
- staff_details?: {
5543
- staff_id: string;
5544
- staff_name: string;
5545
- staff_mobile: string;
5546
- staff_email: string;
5540
+ dinein_details?: {
5541
+ start_time: NativeDate;
5542
+ courses: import("mongoose").Types.DocumentArray<{
5543
+ name: string;
5544
+ item_ids: string[];
5545
+ course_id: string;
5546
+ called: boolean;
5547
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
5548
+ name: string;
5549
+ item_ids: string[];
5550
+ course_id: string;
5551
+ called: boolean;
5552
+ }> & {
5553
+ name: string;
5554
+ item_ids: string[];
5555
+ course_id: string;
5556
+ called: boolean;
5557
+ }>;
5558
+ num_of_guests: number;
5559
+ table_id: import("mongoose").Types.ObjectId;
5560
+ table_name: string;
5561
+ floor_id: import("mongoose").Types.ObjectId;
5562
+ reservation_time: NativeDate;
5563
+ prep_minutes?: number | null | undefined;
5547
5564
  } | null | undefined;
5548
- is_gst_inclusive?: boolean | null | undefined;
5549
- gst?: number | null | undefined;
5550
- gst_amount?: number | null | undefined;
5551
- deferred_settlement?: boolean | null | undefined;
5552
- redeemed_offers?: Map<string, number> | null | undefined;
5553
5565
  day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
5554
5566
  localSecond?: number | null | undefined;
5555
5567
  localMinute?: number | null | undefined;
5556
5568
  localTime?: string | null | undefined;
5557
5569
  localDayOfYear?: number | null | undefined;
5558
- source_tenant_id?: string | null | undefined;
5559
- split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
5560
- split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
5561
- split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
5562
- tax_invoice_id?: string | null | undefined;
5563
- rating?: number | null | undefined;
5564
- review?: string | null | undefined;
5565
- synced_offline?: boolean | null | undefined;
5566
- is_unpaid?: boolean | null | undefined;
5567
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
5568
- order_taker_details?: {
5569
- staff_id: string;
5570
- staff_name: string;
5571
- staff_mobile: string;
5572
- staff_email: string;
5573
- } | null | undefined;
5574
- wallet_redemptions?: {
5575
- gift_cards?: import("mongoose").Types.DocumentArray<{
5576
- redeemed_times: number;
5577
- gift_card_id: string;
5578
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5579
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
5580
- redeemed_times: number;
5581
- gift_card_id: string;
5582
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5583
- }> & {
5584
- redeemed_times: number;
5585
- gift_card_id: string;
5586
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5587
- }> | null | undefined;
5588
- cashback_amount?: number | null | undefined;
5589
- } | null | undefined;
5590
5570
  delivery_details?: {
5591
5571
  city: string;
5592
5572
  address_instructions: string;
@@ -5597,8 +5577,8 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5597
5577
  zip_code: string;
5598
5578
  country_code: string;
5599
5579
  distance_in_meters_from_store: number;
5600
- delivery_cost: number;
5601
5580
  estimated_delivery_time: NativeDate;
5581
+ delivery_cost: number;
5602
5582
  delivery_code: string;
5603
5583
  rider_revenue?: number | null | undefined;
5604
5584
  rider_details?: {
@@ -5608,33 +5588,50 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5608
5588
  staff_email: string;
5609
5589
  } | null | undefined;
5610
5590
  } | null | undefined;
5611
- dinein_details?: {
5612
- start_time: NativeDate;
5613
- courses: import("mongoose").Types.DocumentArray<{
5614
- name: string;
5615
- item_ids: string[];
5616
- course_id: string;
5617
- called: boolean;
5591
+ takeaway_details?: {
5592
+ estimated_takeaway_time: NativeDate;
5593
+ } | null | undefined;
5594
+ wallet_redemptions?: {
5595
+ gift_cards?: import("mongoose").Types.DocumentArray<{
5596
+ redeemed_times: number;
5597
+ gift_card_id: string;
5598
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5618
5599
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
5619
- name: string;
5620
- item_ids: string[];
5621
- course_id: string;
5622
- called: boolean;
5600
+ redeemed_times: number;
5601
+ gift_card_id: string;
5602
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5623
5603
  }> & {
5624
- name: string;
5625
- item_ids: string[];
5626
- course_id: string;
5627
- called: boolean;
5628
- }>;
5629
- num_of_guests: number;
5630
- table_id: import("mongoose").Types.ObjectId;
5631
- table_name: string;
5632
- floor_id: import("mongoose").Types.ObjectId;
5633
- reservation_time: NativeDate;
5634
- prep_minutes?: number | null | undefined;
5604
+ redeemed_times: number;
5605
+ gift_card_id: string;
5606
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
5607
+ }> | null | undefined;
5608
+ cashback_amount?: number | null | undefined;
5635
5609
  } | null | undefined;
5636
- takeaway_details?: {
5637
- estimated_takeaway_time: NativeDate;
5610
+ source_tenant_id?: string | null | undefined;
5611
+ split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
5612
+ split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
5613
+ split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
5614
+ delete_reason?: string | null | undefined;
5615
+ tax_invoice_id?: string | null | undefined;
5616
+ rating?: number | null | undefined;
5617
+ review?: string | null | undefined;
5618
+ synced_offline?: boolean | null | undefined;
5619
+ is_reopened?: boolean | null | undefined;
5620
+ deferred_settlement?: boolean | null | undefined;
5621
+ is_unpaid?: boolean | null | undefined;
5622
+ payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
5623
+ order_taker_details?: {
5624
+ staff_id: string;
5625
+ staff_name: string;
5626
+ staff_mobile: string;
5627
+ staff_email: string;
5628
+ } | null | undefined;
5629
+ redeemed_offers?: Map<string, number> | null | undefined;
5630
+ staff_details?: {
5631
+ staff_id: string;
5632
+ staff_name: string;
5633
+ staff_mobile: string;
5634
+ staff_email: string;
5638
5635
  } | null | undefined;
5639
5636
  order_discount_details?: {
5640
5637
  total_discount: number;
@@ -5664,10 +5661,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5664
5661
  is_service_fee_taxable?: boolean | null | undefined;
5665
5662
  exclude_discount_from_gst?: boolean | null | undefined;
5666
5663
  apply_service_fee_on_original_price?: boolean | null | undefined;
5664
+ is_gst_inclusive?: boolean | null | undefined;
5667
5665
  surcharge?: number | null | undefined;
5668
5666
  surcharge_amount?: number | null | undefined;
5669
5667
  service_fee?: number | null | undefined;
5670
5668
  service_fee_amount?: number | null | undefined;
5669
+ gst?: number | null | undefined;
5670
+ gst_amount?: number | null | undefined;
5671
5671
  packaging_charges?: number | null | undefined;
5672
5672
  adjustment_amount?: number | null | undefined;
5673
5673
  adjustment_reason?: string | null | undefined;
@@ -8090,11 +8090,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8090
8090
  }>;
8091
8091
  }>;
8092
8092
  price: number;
8093
+ consumer: {
8094
+ email: string;
8095
+ phone: string;
8096
+ first_name: string;
8097
+ last_name: string;
8098
+ };
8099
+ tip_amount: number;
8093
8100
  special_instructions: string;
8094
- amount_earned: number;
8095
- grand_total: number;
8096
- order_status: import("../../constants").ORDER_STATUS_ENUM;
8097
- tax_number: string;
8098
8101
  payments: import("mongoose").Types.DocumentArray<{
8099
8102
  payment_type: string;
8100
8103
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -8156,50 +8159,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8156
8159
  refund_reason?: string | null | undefined;
8157
8160
  note?: string | null | undefined;
8158
8161
  }>;
8159
- consumer: {
8160
- email: string;
8161
- phone: string;
8162
- first_name: string;
8163
- last_name: string;
8164
- };
8165
- tip_amount: number;
8162
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
8163
+ tax_number: string;
8166
8164
  tax_amount: number;
8167
- staff_details?: {
8168
- staff_id: string;
8169
- staff_name: string;
8170
- staff_mobile: string;
8171
- staff_email: string;
8172
- } | null | undefined;
8173
- is_gst_inclusive?: boolean | null | undefined;
8174
- gst?: number | null | undefined;
8175
- gst_amount?: number | null | undefined;
8176
- order_taker_details?: {
8177
- staff_id: string;
8178
- staff_name: string;
8179
- staff_mobile: string;
8180
- staff_email: string;
8181
- } | null | undefined;
8182
- delivery_details?: {
8183
- city: string;
8184
- address_instructions: string;
8185
- state: string;
8186
- street: string;
8187
- lat: number;
8188
- lng: number;
8189
- zip_code: string;
8190
- country_code: string;
8191
- distance_in_meters_from_store: number;
8192
- delivery_cost: number;
8193
- estimated_delivery_time: NativeDate;
8194
- delivery_code: string;
8195
- rider_revenue?: number | null | undefined;
8196
- rider_details?: {
8197
- staff_id: string;
8198
- staff_name: string;
8199
- staff_mobile: string;
8200
- staff_email: string;
8201
- } | null | undefined;
8202
- } | null | undefined;
8165
+ amount_earned: number;
8166
+ grand_total: number;
8203
8167
  dinein_details?: {
8204
8168
  start_time: NativeDate;
8205
8169
  courses: import("mongoose").Types.DocumentArray<{
@@ -8225,9 +8189,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8225
8189
  reservation_time: NativeDate;
8226
8190
  prep_minutes?: number | null | undefined;
8227
8191
  } | null | undefined;
8192
+ delivery_details?: {
8193
+ city: string;
8194
+ address_instructions: string;
8195
+ state: string;
8196
+ street: string;
8197
+ lat: number;
8198
+ lng: number;
8199
+ zip_code: string;
8200
+ country_code: string;
8201
+ distance_in_meters_from_store: number;
8202
+ estimated_delivery_time: NativeDate;
8203
+ delivery_cost: number;
8204
+ delivery_code: string;
8205
+ rider_revenue?: number | null | undefined;
8206
+ rider_details?: {
8207
+ staff_id: string;
8208
+ staff_name: string;
8209
+ staff_mobile: string;
8210
+ staff_email: string;
8211
+ } | null | undefined;
8212
+ } | null | undefined;
8228
8213
  takeaway_details?: {
8229
8214
  estimated_takeaway_time: NativeDate;
8230
8215
  } | null | undefined;
8216
+ order_taker_details?: {
8217
+ staff_id: string;
8218
+ staff_name: string;
8219
+ staff_mobile: string;
8220
+ staff_email: string;
8221
+ } | null | undefined;
8222
+ staff_details?: {
8223
+ staff_id: string;
8224
+ staff_name: string;
8225
+ staff_mobile: string;
8226
+ staff_email: string;
8227
+ } | null | undefined;
8231
8228
  order_discount_details?: {
8232
8229
  total_discount: number;
8233
8230
  loyalty_discount_id?: string | null | undefined;
@@ -8256,10 +8253,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
8256
8253
  is_service_fee_taxable?: boolean | null | undefined;
8257
8254
  exclude_discount_from_gst?: boolean | null | undefined;
8258
8255
  apply_service_fee_on_original_price?: boolean | null | undefined;
8256
+ is_gst_inclusive?: boolean | null | undefined;
8259
8257
  surcharge?: number | null | undefined;
8260
8258
  surcharge_amount?: number | null | undefined;
8261
8259
  service_fee?: number | null | undefined;
8262
8260
  service_fee_amount?: number | null | undefined;
8261
+ gst?: number | null | undefined;
8262
+ gst_amount?: number | null | undefined;
8263
8263
  packaging_charges?: number | null | undefined;
8264
8264
  adjustment_amount?: number | null | undefined;
8265
8265
  adjustment_reason?: string | null | undefined;
@@ -9469,11 +9469,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
9469
9469
  }>;
9470
9470
  }>;
9471
9471
  price: number;
9472
+ consumer: {
9473
+ email: string;
9474
+ phone: string;
9475
+ first_name: string;
9476
+ last_name: string;
9477
+ };
9478
+ tip_amount: number;
9472
9479
  special_instructions: string;
9473
- amount_earned: number;
9474
- grand_total: number;
9475
- order_status: import("../../constants").ORDER_STATUS_ENUM;
9476
- tax_number: string;
9477
9480
  payments: import("mongoose").Types.DocumentArray<{
9478
9481
  payment_type: string;
9479
9482
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -9535,50 +9538,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
9535
9538
  refund_reason?: string | null | undefined;
9536
9539
  note?: string | null | undefined;
9537
9540
  }>;
9538
- consumer: {
9539
- email: string;
9540
- phone: string;
9541
- first_name: string;
9542
- last_name: string;
9543
- };
9544
- tip_amount: number;
9541
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
9542
+ tax_number: string;
9545
9543
  tax_amount: number;
9546
- staff_details?: {
9547
- staff_id: string;
9548
- staff_name: string;
9549
- staff_mobile: string;
9550
- staff_email: string;
9551
- } | null | undefined;
9552
- is_gst_inclusive?: boolean | null | undefined;
9553
- gst?: number | null | undefined;
9554
- gst_amount?: number | null | undefined;
9555
- order_taker_details?: {
9556
- staff_id: string;
9557
- staff_name: string;
9558
- staff_mobile: string;
9559
- staff_email: string;
9560
- } | null | undefined;
9561
- delivery_details?: {
9562
- city: string;
9563
- address_instructions: string;
9564
- state: string;
9565
- street: string;
9566
- lat: number;
9567
- lng: number;
9568
- zip_code: string;
9569
- country_code: string;
9570
- distance_in_meters_from_store: number;
9571
- delivery_cost: number;
9572
- estimated_delivery_time: NativeDate;
9573
- delivery_code: string;
9574
- rider_revenue?: number | null | undefined;
9575
- rider_details?: {
9576
- staff_id: string;
9577
- staff_name: string;
9578
- staff_mobile: string;
9579
- staff_email: string;
9580
- } | null | undefined;
9581
- } | null | undefined;
9544
+ amount_earned: number;
9545
+ grand_total: number;
9582
9546
  dinein_details?: {
9583
9547
  start_time: NativeDate;
9584
9548
  courses: import("mongoose").Types.DocumentArray<{
@@ -9604,9 +9568,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
9604
9568
  reservation_time: NativeDate;
9605
9569
  prep_minutes?: number | null | undefined;
9606
9570
  } | null | undefined;
9571
+ delivery_details?: {
9572
+ city: string;
9573
+ address_instructions: string;
9574
+ state: string;
9575
+ street: string;
9576
+ lat: number;
9577
+ lng: number;
9578
+ zip_code: string;
9579
+ country_code: string;
9580
+ distance_in_meters_from_store: number;
9581
+ estimated_delivery_time: NativeDate;
9582
+ delivery_cost: number;
9583
+ delivery_code: string;
9584
+ rider_revenue?: number | null | undefined;
9585
+ rider_details?: {
9586
+ staff_id: string;
9587
+ staff_name: string;
9588
+ staff_mobile: string;
9589
+ staff_email: string;
9590
+ } | null | undefined;
9591
+ } | null | undefined;
9607
9592
  takeaway_details?: {
9608
9593
  estimated_takeaway_time: NativeDate;
9609
9594
  } | null | undefined;
9595
+ order_taker_details?: {
9596
+ staff_id: string;
9597
+ staff_name: string;
9598
+ staff_mobile: string;
9599
+ staff_email: string;
9600
+ } | null | undefined;
9601
+ staff_details?: {
9602
+ staff_id: string;
9603
+ staff_name: string;
9604
+ staff_mobile: string;
9605
+ staff_email: string;
9606
+ } | null | undefined;
9610
9607
  order_discount_details?: {
9611
9608
  total_discount: number;
9612
9609
  loyalty_discount_id?: string | null | undefined;
@@ -9635,10 +9632,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
9635
9632
  is_service_fee_taxable?: boolean | null | undefined;
9636
9633
  exclude_discount_from_gst?: boolean | null | undefined;
9637
9634
  apply_service_fee_on_original_price?: boolean | null | undefined;
9635
+ is_gst_inclusive?: boolean | null | undefined;
9638
9636
  surcharge?: number | null | undefined;
9639
9637
  surcharge_amount?: number | null | undefined;
9640
9638
  service_fee?: number | null | undefined;
9641
9639
  service_fee_amount?: number | null | undefined;
9640
+ gst?: number | null | undefined;
9641
+ gst_amount?: number | null | undefined;
9642
9642
  packaging_charges?: number | null | undefined;
9643
9643
  adjustment_amount?: number | null | undefined;
9644
9644
  adjustment_reason?: string | null | undefined;
@@ -10848,11 +10848,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10848
10848
  }>;
10849
10849
  }>;
10850
10850
  price: number;
10851
+ consumer: {
10852
+ email: string;
10853
+ phone: string;
10854
+ first_name: string;
10855
+ last_name: string;
10856
+ };
10857
+ tip_amount: number;
10851
10858
  special_instructions: string;
10852
- amount_earned: number;
10853
- grand_total: number;
10854
- order_status: import("../../constants").ORDER_STATUS_ENUM;
10855
- tax_number: string;
10856
10859
  payments: import("mongoose").Types.DocumentArray<{
10857
10860
  payment_type: string;
10858
10861
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -10914,50 +10917,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10914
10917
  refund_reason?: string | null | undefined;
10915
10918
  note?: string | null | undefined;
10916
10919
  }>;
10917
- consumer: {
10918
- email: string;
10919
- phone: string;
10920
- first_name: string;
10921
- last_name: string;
10922
- };
10923
- tip_amount: number;
10920
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
10921
+ tax_number: string;
10924
10922
  tax_amount: number;
10925
- staff_details?: {
10926
- staff_id: string;
10927
- staff_name: string;
10928
- staff_mobile: string;
10929
- staff_email: string;
10930
- } | null | undefined;
10931
- is_gst_inclusive?: boolean | null | undefined;
10932
- gst?: number | null | undefined;
10933
- gst_amount?: number | null | undefined;
10934
- order_taker_details?: {
10935
- staff_id: string;
10936
- staff_name: string;
10937
- staff_mobile: string;
10938
- staff_email: string;
10939
- } | null | undefined;
10940
- delivery_details?: {
10941
- city: string;
10942
- address_instructions: string;
10943
- state: string;
10944
- street: string;
10945
- lat: number;
10946
- lng: number;
10947
- zip_code: string;
10948
- country_code: string;
10949
- distance_in_meters_from_store: number;
10950
- delivery_cost: number;
10951
- estimated_delivery_time: NativeDate;
10952
- delivery_code: string;
10953
- rider_revenue?: number | null | undefined;
10954
- rider_details?: {
10955
- staff_id: string;
10956
- staff_name: string;
10957
- staff_mobile: string;
10958
- staff_email: string;
10959
- } | null | undefined;
10960
- } | null | undefined;
10923
+ amount_earned: number;
10924
+ grand_total: number;
10961
10925
  dinein_details?: {
10962
10926
  start_time: NativeDate;
10963
10927
  courses: import("mongoose").Types.DocumentArray<{
@@ -10983,9 +10947,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10983
10947
  reservation_time: NativeDate;
10984
10948
  prep_minutes?: number | null | undefined;
10985
10949
  } | null | undefined;
10950
+ delivery_details?: {
10951
+ city: string;
10952
+ address_instructions: string;
10953
+ state: string;
10954
+ street: string;
10955
+ lat: number;
10956
+ lng: number;
10957
+ zip_code: string;
10958
+ country_code: string;
10959
+ distance_in_meters_from_store: number;
10960
+ estimated_delivery_time: NativeDate;
10961
+ delivery_cost: number;
10962
+ delivery_code: string;
10963
+ rider_revenue?: number | null | undefined;
10964
+ rider_details?: {
10965
+ staff_id: string;
10966
+ staff_name: string;
10967
+ staff_mobile: string;
10968
+ staff_email: string;
10969
+ } | null | undefined;
10970
+ } | null | undefined;
10986
10971
  takeaway_details?: {
10987
10972
  estimated_takeaway_time: NativeDate;
10988
10973
  } | null | undefined;
10974
+ order_taker_details?: {
10975
+ staff_id: string;
10976
+ staff_name: string;
10977
+ staff_mobile: string;
10978
+ staff_email: string;
10979
+ } | null | undefined;
10980
+ staff_details?: {
10981
+ staff_id: string;
10982
+ staff_name: string;
10983
+ staff_mobile: string;
10984
+ staff_email: string;
10985
+ } | null | undefined;
10989
10986
  order_discount_details?: {
10990
10987
  total_discount: number;
10991
10988
  loyalty_discount_id?: string | null | undefined;
@@ -11014,25 +11011,26 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11014
11011
  is_service_fee_taxable?: boolean | null | undefined;
11015
11012
  exclude_discount_from_gst?: boolean | null | undefined;
11016
11013
  apply_service_fee_on_original_price?: boolean | null | undefined;
11014
+ is_gst_inclusive?: boolean | null | undefined;
11017
11015
  surcharge?: number | null | undefined;
11018
11016
  surcharge_amount?: number | null | undefined;
11019
11017
  service_fee?: number | null | undefined;
11020
11018
  service_fee_amount?: number | null | undefined;
11019
+ gst?: number | null | undefined;
11020
+ gst_amount?: number | null | undefined;
11021
11021
  packaging_charges?: number | null | undefined;
11022
11022
  adjustment_amount?: number | null | undefined;
11023
11023
  adjustment_reason?: string | null | undefined;
11024
11024
  tax_invoice_provider_charges?: number | null | undefined;
11025
11025
  }>;
11026
- amount_collected: number;
11027
- is_deleted: boolean;
11028
- order_status_updated_at: NativeDate;
11029
- order_settled_at: NativeDate;
11030
- order_settled_at_mins: number;
11026
+ consumer: {
11027
+ email: string;
11028
+ phone: string;
11029
+ first_name: string;
11030
+ last_name: string;
11031
+ };
11032
+ tip_amount: number;
11031
11033
  special_instructions: string;
11032
- amount_earned: number;
11033
- grand_total: number;
11034
- order_status: import("../../constants").ORDER_STATUS_ENUM;
11035
- tax_number: string;
11036
11034
  payments: import("mongoose").Types.DocumentArray<{
11037
11035
  payment_type: string;
11038
11036
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -11094,15 +11092,17 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11094
11092
  refund_reason?: string | null | undefined;
11095
11093
  note?: string | null | undefined;
11096
11094
  }>;
11097
- pos_id: string;
11098
- consumer: {
11099
- email: string;
11100
- phone: string;
11101
- first_name: string;
11102
- last_name: string;
11103
- };
11104
- tip_amount: number;
11095
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
11096
+ tax_number: string;
11105
11097
  tax_amount: number;
11098
+ amount_earned: number;
11099
+ grand_total: number;
11100
+ pos_id: string;
11101
+ amount_collected: number;
11102
+ is_deleted: boolean;
11103
+ order_status_updated_at: NativeDate;
11104
+ order_settled_at: NativeDate;
11105
+ order_settled_at_mins: number;
11106
11106
  localHour?: number | null | undefined;
11107
11107
  localDate?: string | null | undefined;
11108
11108
  localWeek?: number | null | undefined;
@@ -11113,56 +11113,36 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11113
11113
  localYear?: number | null | undefined;
11114
11114
  cancel_reason?: string | null | undefined;
11115
11115
  localDay?: number | null | undefined;
11116
- delete_reason?: string | null | undefined;
11117
- is_reopened?: boolean | null | undefined;
11118
- staff_details?: {
11119
- staff_id: string;
11120
- staff_name: string;
11121
- staff_mobile: string;
11122
- staff_email: string;
11116
+ dinein_details?: {
11117
+ start_time: NativeDate;
11118
+ courses: import("mongoose").Types.DocumentArray<{
11119
+ name: string;
11120
+ item_ids: string[];
11121
+ course_id: string;
11122
+ called: boolean;
11123
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
11124
+ name: string;
11125
+ item_ids: string[];
11126
+ course_id: string;
11127
+ called: boolean;
11128
+ }> & {
11129
+ name: string;
11130
+ item_ids: string[];
11131
+ course_id: string;
11132
+ called: boolean;
11133
+ }>;
11134
+ num_of_guests: number;
11135
+ table_id: import("mongoose").Types.ObjectId;
11136
+ table_name: string;
11137
+ floor_id: import("mongoose").Types.ObjectId;
11138
+ reservation_time: NativeDate;
11139
+ prep_minutes?: number | null | undefined;
11123
11140
  } | null | undefined;
11124
- is_gst_inclusive?: boolean | null | undefined;
11125
- gst?: number | null | undefined;
11126
- gst_amount?: number | null | undefined;
11127
- deferred_settlement?: boolean | null | undefined;
11128
- redeemed_offers?: Map<string, number> | null | undefined;
11129
11141
  day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
11130
11142
  localSecond?: number | null | undefined;
11131
11143
  localMinute?: number | null | undefined;
11132
11144
  localTime?: string | null | undefined;
11133
11145
  localDayOfYear?: number | null | undefined;
11134
- source_tenant_id?: string | null | undefined;
11135
- split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
11136
- split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
11137
- split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
11138
- tax_invoice_id?: string | null | undefined;
11139
- rating?: number | null | undefined;
11140
- review?: string | null | undefined;
11141
- synced_offline?: boolean | null | undefined;
11142
- is_unpaid?: boolean | null | undefined;
11143
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
11144
- order_taker_details?: {
11145
- staff_id: string;
11146
- staff_name: string;
11147
- staff_mobile: string;
11148
- staff_email: string;
11149
- } | null | undefined;
11150
- wallet_redemptions?: {
11151
- gift_cards?: import("mongoose").Types.DocumentArray<{
11152
- redeemed_times: number;
11153
- gift_card_id: string;
11154
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11155
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
11156
- redeemed_times: number;
11157
- gift_card_id: string;
11158
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11159
- }> & {
11160
- redeemed_times: number;
11161
- gift_card_id: string;
11162
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11163
- }> | null | undefined;
11164
- cashback_amount?: number | null | undefined;
11165
- } | null | undefined;
11166
11146
  delivery_details?: {
11167
11147
  city: string;
11168
11148
  address_instructions: string;
@@ -11173,8 +11153,8 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11173
11153
  zip_code: string;
11174
11154
  country_code: string;
11175
11155
  distance_in_meters_from_store: number;
11176
- delivery_cost: number;
11177
11156
  estimated_delivery_time: NativeDate;
11157
+ delivery_cost: number;
11178
11158
  delivery_code: string;
11179
11159
  rider_revenue?: number | null | undefined;
11180
11160
  rider_details?: {
@@ -11184,33 +11164,50 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11184
11164
  staff_email: string;
11185
11165
  } | null | undefined;
11186
11166
  } | null | undefined;
11187
- dinein_details?: {
11188
- start_time: NativeDate;
11189
- courses: import("mongoose").Types.DocumentArray<{
11190
- name: string;
11191
- item_ids: string[];
11192
- course_id: string;
11193
- called: boolean;
11167
+ takeaway_details?: {
11168
+ estimated_takeaway_time: NativeDate;
11169
+ } | null | undefined;
11170
+ wallet_redemptions?: {
11171
+ gift_cards?: import("mongoose").Types.DocumentArray<{
11172
+ redeemed_times: number;
11173
+ gift_card_id: string;
11174
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11194
11175
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
11195
- name: string;
11196
- item_ids: string[];
11197
- course_id: string;
11198
- called: boolean;
11176
+ redeemed_times: number;
11177
+ gift_card_id: string;
11178
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11199
11179
  }> & {
11200
- name: string;
11201
- item_ids: string[];
11202
- course_id: string;
11203
- called: boolean;
11204
- }>;
11205
- num_of_guests: number;
11206
- table_id: import("mongoose").Types.ObjectId;
11207
- table_name: string;
11208
- floor_id: import("mongoose").Types.ObjectId;
11209
- reservation_time: NativeDate;
11210
- prep_minutes?: number | null | undefined;
11180
+ redeemed_times: number;
11181
+ gift_card_id: string;
11182
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
11183
+ }> | null | undefined;
11184
+ cashback_amount?: number | null | undefined;
11211
11185
  } | null | undefined;
11212
- takeaway_details?: {
11213
- estimated_takeaway_time: NativeDate;
11186
+ source_tenant_id?: string | null | undefined;
11187
+ split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
11188
+ split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
11189
+ split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
11190
+ delete_reason?: string | null | undefined;
11191
+ tax_invoice_id?: string | null | undefined;
11192
+ rating?: number | null | undefined;
11193
+ review?: string | null | undefined;
11194
+ synced_offline?: boolean | null | undefined;
11195
+ is_reopened?: boolean | null | undefined;
11196
+ deferred_settlement?: boolean | null | undefined;
11197
+ is_unpaid?: boolean | null | undefined;
11198
+ payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
11199
+ order_taker_details?: {
11200
+ staff_id: string;
11201
+ staff_name: string;
11202
+ staff_mobile: string;
11203
+ staff_email: string;
11204
+ } | null | undefined;
11205
+ redeemed_offers?: Map<string, number> | null | undefined;
11206
+ staff_details?: {
11207
+ staff_id: string;
11208
+ staff_name: string;
11209
+ staff_mobile: string;
11210
+ staff_email: string;
11214
11211
  } | null | undefined;
11215
11212
  order_discount_details?: {
11216
11213
  total_discount: number;
@@ -11240,10 +11237,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11240
11237
  is_service_fee_taxable?: boolean | null | undefined;
11241
11238
  exclude_discount_from_gst?: boolean | null | undefined;
11242
11239
  apply_service_fee_on_original_price?: boolean | null | undefined;
11240
+ is_gst_inclusive?: boolean | null | undefined;
11243
11241
  surcharge?: number | null | undefined;
11244
11242
  surcharge_amount?: number | null | undefined;
11245
11243
  service_fee?: number | null | undefined;
11246
11244
  service_fee_amount?: number | null | undefined;
11245
+ gst?: number | null | undefined;
11246
+ gst_amount?: number | null | undefined;
11247
11247
  packaging_charges?: number | null | undefined;
11248
11248
  adjustment_amount?: number | null | undefined;
11249
11249
  adjustment_reason?: string | null | undefined;
@@ -13666,11 +13666,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13666
13666
  }>;
13667
13667
  }>;
13668
13668
  price: number;
13669
+ consumer: {
13670
+ email: string;
13671
+ phone: string;
13672
+ first_name: string;
13673
+ last_name: string;
13674
+ };
13675
+ tip_amount: number;
13669
13676
  special_instructions: string;
13670
- amount_earned: number;
13671
- grand_total: number;
13672
- order_status: import("../../constants").ORDER_STATUS_ENUM;
13673
- tax_number: string;
13674
13677
  payments: import("mongoose").Types.DocumentArray<{
13675
13678
  payment_type: string;
13676
13679
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -13732,50 +13735,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13732
13735
  refund_reason?: string | null | undefined;
13733
13736
  note?: string | null | undefined;
13734
13737
  }>;
13735
- consumer: {
13736
- email: string;
13737
- phone: string;
13738
- first_name: string;
13739
- last_name: string;
13740
- };
13741
- tip_amount: number;
13738
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
13739
+ tax_number: string;
13742
13740
  tax_amount: number;
13743
- staff_details?: {
13744
- staff_id: string;
13745
- staff_name: string;
13746
- staff_mobile: string;
13747
- staff_email: string;
13748
- } | null | undefined;
13749
- is_gst_inclusive?: boolean | null | undefined;
13750
- gst?: number | null | undefined;
13751
- gst_amount?: number | null | undefined;
13752
- order_taker_details?: {
13753
- staff_id: string;
13754
- staff_name: string;
13755
- staff_mobile: string;
13756
- staff_email: string;
13757
- } | null | undefined;
13758
- delivery_details?: {
13759
- city: string;
13760
- address_instructions: string;
13761
- state: string;
13762
- street: string;
13763
- lat: number;
13764
- lng: number;
13765
- zip_code: string;
13766
- country_code: string;
13767
- distance_in_meters_from_store: number;
13768
- delivery_cost: number;
13769
- estimated_delivery_time: NativeDate;
13770
- delivery_code: string;
13771
- rider_revenue?: number | null | undefined;
13772
- rider_details?: {
13773
- staff_id: string;
13774
- staff_name: string;
13775
- staff_mobile: string;
13776
- staff_email: string;
13777
- } | null | undefined;
13778
- } | null | undefined;
13741
+ amount_earned: number;
13742
+ grand_total: number;
13779
13743
  dinein_details?: {
13780
13744
  start_time: NativeDate;
13781
13745
  courses: import("mongoose").Types.DocumentArray<{
@@ -13801,9 +13765,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13801
13765
  reservation_time: NativeDate;
13802
13766
  prep_minutes?: number | null | undefined;
13803
13767
  } | null | undefined;
13768
+ delivery_details?: {
13769
+ city: string;
13770
+ address_instructions: string;
13771
+ state: string;
13772
+ street: string;
13773
+ lat: number;
13774
+ lng: number;
13775
+ zip_code: string;
13776
+ country_code: string;
13777
+ distance_in_meters_from_store: number;
13778
+ estimated_delivery_time: NativeDate;
13779
+ delivery_cost: number;
13780
+ delivery_code: string;
13781
+ rider_revenue?: number | null | undefined;
13782
+ rider_details?: {
13783
+ staff_id: string;
13784
+ staff_name: string;
13785
+ staff_mobile: string;
13786
+ staff_email: string;
13787
+ } | null | undefined;
13788
+ } | null | undefined;
13804
13789
  takeaway_details?: {
13805
13790
  estimated_takeaway_time: NativeDate;
13806
13791
  } | null | undefined;
13792
+ order_taker_details?: {
13793
+ staff_id: string;
13794
+ staff_name: string;
13795
+ staff_mobile: string;
13796
+ staff_email: string;
13797
+ } | null | undefined;
13798
+ staff_details?: {
13799
+ staff_id: string;
13800
+ staff_name: string;
13801
+ staff_mobile: string;
13802
+ staff_email: string;
13803
+ } | null | undefined;
13807
13804
  order_discount_details?: {
13808
13805
  total_discount: number;
13809
13806
  loyalty_discount_id?: string | null | undefined;
@@ -13832,10 +13829,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
13832
13829
  is_service_fee_taxable?: boolean | null | undefined;
13833
13830
  exclude_discount_from_gst?: boolean | null | undefined;
13834
13831
  apply_service_fee_on_original_price?: boolean | null | undefined;
13832
+ is_gst_inclusive?: boolean | null | undefined;
13835
13833
  surcharge?: number | null | undefined;
13836
13834
  surcharge_amount?: number | null | undefined;
13837
13835
  service_fee?: number | null | undefined;
13838
13836
  service_fee_amount?: number | null | undefined;
13837
+ gst?: number | null | undefined;
13838
+ gst_amount?: number | null | undefined;
13839
13839
  packaging_charges?: number | null | undefined;
13840
13840
  adjustment_amount?: number | null | undefined;
13841
13841
  adjustment_reason?: string | null | undefined;
@@ -15045,11 +15045,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15045
15045
  }>;
15046
15046
  }>;
15047
15047
  price: number;
15048
- special_instructions: string;
15049
- amount_earned: number;
15050
- grand_total: number;
15051
- order_status: import("../../constants").ORDER_STATUS_ENUM;
15052
- tax_number: string;
15048
+ consumer: {
15049
+ email: string;
15050
+ phone: string;
15051
+ first_name: string;
15052
+ last_name: string;
15053
+ };
15054
+ tip_amount: number;
15055
+ special_instructions: string;
15053
15056
  payments: import("mongoose").Types.DocumentArray<{
15054
15057
  payment_type: string;
15055
15058
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -15111,50 +15114,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15111
15114
  refund_reason?: string | null | undefined;
15112
15115
  note?: string | null | undefined;
15113
15116
  }>;
15114
- consumer: {
15115
- email: string;
15116
- phone: string;
15117
- first_name: string;
15118
- last_name: string;
15119
- };
15120
- tip_amount: number;
15117
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
15118
+ tax_number: string;
15121
15119
  tax_amount: number;
15122
- staff_details?: {
15123
- staff_id: string;
15124
- staff_name: string;
15125
- staff_mobile: string;
15126
- staff_email: string;
15127
- } | null | undefined;
15128
- is_gst_inclusive?: boolean | null | undefined;
15129
- gst?: number | null | undefined;
15130
- gst_amount?: number | null | undefined;
15131
- order_taker_details?: {
15132
- staff_id: string;
15133
- staff_name: string;
15134
- staff_mobile: string;
15135
- staff_email: string;
15136
- } | null | undefined;
15137
- delivery_details?: {
15138
- city: string;
15139
- address_instructions: string;
15140
- state: string;
15141
- street: string;
15142
- lat: number;
15143
- lng: number;
15144
- zip_code: string;
15145
- country_code: string;
15146
- distance_in_meters_from_store: number;
15147
- delivery_cost: number;
15148
- estimated_delivery_time: NativeDate;
15149
- delivery_code: string;
15150
- rider_revenue?: number | null | undefined;
15151
- rider_details?: {
15152
- staff_id: string;
15153
- staff_name: string;
15154
- staff_mobile: string;
15155
- staff_email: string;
15156
- } | null | undefined;
15157
- } | null | undefined;
15120
+ amount_earned: number;
15121
+ grand_total: number;
15158
15122
  dinein_details?: {
15159
15123
  start_time: NativeDate;
15160
15124
  courses: import("mongoose").Types.DocumentArray<{
@@ -15180,9 +15144,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15180
15144
  reservation_time: NativeDate;
15181
15145
  prep_minutes?: number | null | undefined;
15182
15146
  } | null | undefined;
15147
+ delivery_details?: {
15148
+ city: string;
15149
+ address_instructions: string;
15150
+ state: string;
15151
+ street: string;
15152
+ lat: number;
15153
+ lng: number;
15154
+ zip_code: string;
15155
+ country_code: string;
15156
+ distance_in_meters_from_store: number;
15157
+ estimated_delivery_time: NativeDate;
15158
+ delivery_cost: number;
15159
+ delivery_code: string;
15160
+ rider_revenue?: number | null | undefined;
15161
+ rider_details?: {
15162
+ staff_id: string;
15163
+ staff_name: string;
15164
+ staff_mobile: string;
15165
+ staff_email: string;
15166
+ } | null | undefined;
15167
+ } | null | undefined;
15183
15168
  takeaway_details?: {
15184
15169
  estimated_takeaway_time: NativeDate;
15185
15170
  } | null | undefined;
15171
+ order_taker_details?: {
15172
+ staff_id: string;
15173
+ staff_name: string;
15174
+ staff_mobile: string;
15175
+ staff_email: string;
15176
+ } | null | undefined;
15177
+ staff_details?: {
15178
+ staff_id: string;
15179
+ staff_name: string;
15180
+ staff_mobile: string;
15181
+ staff_email: string;
15182
+ } | null | undefined;
15186
15183
  order_discount_details?: {
15187
15184
  total_discount: number;
15188
15185
  loyalty_discount_id?: string | null | undefined;
@@ -15211,10 +15208,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15211
15208
  is_service_fee_taxable?: boolean | null | undefined;
15212
15209
  exclude_discount_from_gst?: boolean | null | undefined;
15213
15210
  apply_service_fee_on_original_price?: boolean | null | undefined;
15211
+ is_gst_inclusive?: boolean | null | undefined;
15214
15212
  surcharge?: number | null | undefined;
15215
15213
  surcharge_amount?: number | null | undefined;
15216
15214
  service_fee?: number | null | undefined;
15217
15215
  service_fee_amount?: number | null | undefined;
15216
+ gst?: number | null | undefined;
15217
+ gst_amount?: number | null | undefined;
15218
15218
  packaging_charges?: number | null | undefined;
15219
15219
  adjustment_amount?: number | null | undefined;
15220
15220
  adjustment_reason?: string | null | undefined;
@@ -16424,11 +16424,14 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16424
16424
  }>;
16425
16425
  }>;
16426
16426
  price: number;
16427
+ consumer: {
16428
+ email: string;
16429
+ phone: string;
16430
+ first_name: string;
16431
+ last_name: string;
16432
+ };
16433
+ tip_amount: number;
16427
16434
  special_instructions: string;
16428
- amount_earned: number;
16429
- grand_total: number;
16430
- order_status: import("../../constants").ORDER_STATUS_ENUM;
16431
- tax_number: string;
16432
16435
  payments: import("mongoose").Types.DocumentArray<{
16433
16436
  payment_type: string;
16434
16437
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -16490,50 +16493,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16490
16493
  refund_reason?: string | null | undefined;
16491
16494
  note?: string | null | undefined;
16492
16495
  }>;
16493
- consumer: {
16494
- email: string;
16495
- phone: string;
16496
- first_name: string;
16497
- last_name: string;
16498
- };
16499
- tip_amount: number;
16496
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
16497
+ tax_number: string;
16500
16498
  tax_amount: number;
16501
- staff_details?: {
16502
- staff_id: string;
16503
- staff_name: string;
16504
- staff_mobile: string;
16505
- staff_email: string;
16506
- } | null | undefined;
16507
- is_gst_inclusive?: boolean | null | undefined;
16508
- gst?: number | null | undefined;
16509
- gst_amount?: number | null | undefined;
16510
- order_taker_details?: {
16511
- staff_id: string;
16512
- staff_name: string;
16513
- staff_mobile: string;
16514
- staff_email: string;
16515
- } | null | undefined;
16516
- delivery_details?: {
16517
- city: string;
16518
- address_instructions: string;
16519
- state: string;
16520
- street: string;
16521
- lat: number;
16522
- lng: number;
16523
- zip_code: string;
16524
- country_code: string;
16525
- distance_in_meters_from_store: number;
16526
- delivery_cost: number;
16527
- estimated_delivery_time: NativeDate;
16528
- delivery_code: string;
16529
- rider_revenue?: number | null | undefined;
16530
- rider_details?: {
16531
- staff_id: string;
16532
- staff_name: string;
16533
- staff_mobile: string;
16534
- staff_email: string;
16535
- } | null | undefined;
16536
- } | null | undefined;
16499
+ amount_earned: number;
16500
+ grand_total: number;
16537
16501
  dinein_details?: {
16538
16502
  start_time: NativeDate;
16539
16503
  courses: import("mongoose").Types.DocumentArray<{
@@ -16559,9 +16523,42 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16559
16523
  reservation_time: NativeDate;
16560
16524
  prep_minutes?: number | null | undefined;
16561
16525
  } | null | undefined;
16526
+ delivery_details?: {
16527
+ city: string;
16528
+ address_instructions: string;
16529
+ state: string;
16530
+ street: string;
16531
+ lat: number;
16532
+ lng: number;
16533
+ zip_code: string;
16534
+ country_code: string;
16535
+ distance_in_meters_from_store: number;
16536
+ estimated_delivery_time: NativeDate;
16537
+ delivery_cost: number;
16538
+ delivery_code: string;
16539
+ rider_revenue?: number | null | undefined;
16540
+ rider_details?: {
16541
+ staff_id: string;
16542
+ staff_name: string;
16543
+ staff_mobile: string;
16544
+ staff_email: string;
16545
+ } | null | undefined;
16546
+ } | null | undefined;
16562
16547
  takeaway_details?: {
16563
16548
  estimated_takeaway_time: NativeDate;
16564
16549
  } | null | undefined;
16550
+ order_taker_details?: {
16551
+ staff_id: string;
16552
+ staff_name: string;
16553
+ staff_mobile: string;
16554
+ staff_email: string;
16555
+ } | null | undefined;
16556
+ staff_details?: {
16557
+ staff_id: string;
16558
+ staff_name: string;
16559
+ staff_mobile: string;
16560
+ staff_email: string;
16561
+ } | null | undefined;
16565
16562
  order_discount_details?: {
16566
16563
  total_discount: number;
16567
16564
  loyalty_discount_id?: string | null | undefined;
@@ -16590,25 +16587,26 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16590
16587
  is_service_fee_taxable?: boolean | null | undefined;
16591
16588
  exclude_discount_from_gst?: boolean | null | undefined;
16592
16589
  apply_service_fee_on_original_price?: boolean | null | undefined;
16590
+ is_gst_inclusive?: boolean | null | undefined;
16593
16591
  surcharge?: number | null | undefined;
16594
16592
  surcharge_amount?: number | null | undefined;
16595
16593
  service_fee?: number | null | undefined;
16596
16594
  service_fee_amount?: number | null | undefined;
16595
+ gst?: number | null | undefined;
16596
+ gst_amount?: number | null | undefined;
16597
16597
  packaging_charges?: number | null | undefined;
16598
16598
  adjustment_amount?: number | null | undefined;
16599
16599
  adjustment_reason?: string | null | undefined;
16600
16600
  tax_invoice_provider_charges?: number | null | undefined;
16601
16601
  }>;
16602
- amount_collected: number;
16603
- is_deleted: boolean;
16604
- order_status_updated_at: NativeDate;
16605
- order_settled_at: NativeDate;
16606
- order_settled_at_mins: number;
16602
+ consumer: {
16603
+ email: string;
16604
+ phone: string;
16605
+ first_name: string;
16606
+ last_name: string;
16607
+ };
16608
+ tip_amount: number;
16607
16609
  special_instructions: string;
16608
- amount_earned: number;
16609
- grand_total: number;
16610
- order_status: import("../../constants").ORDER_STATUS_ENUM;
16611
- tax_number: string;
16612
16610
  payments: import("mongoose").Types.DocumentArray<{
16613
16611
  payment_type: string;
16614
16612
  payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
@@ -16670,15 +16668,17 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16670
16668
  refund_reason?: string | null | undefined;
16671
16669
  note?: string | null | undefined;
16672
16670
  }>;
16673
- pos_id: string;
16674
- consumer: {
16675
- email: string;
16676
- phone: string;
16677
- first_name: string;
16678
- last_name: string;
16679
- };
16680
- tip_amount: number;
16671
+ order_status: import("../../constants").ORDER_STATUS_ENUM;
16672
+ tax_number: string;
16681
16673
  tax_amount: number;
16674
+ amount_earned: number;
16675
+ grand_total: number;
16676
+ pos_id: string;
16677
+ amount_collected: number;
16678
+ is_deleted: boolean;
16679
+ order_status_updated_at: NativeDate;
16680
+ order_settled_at: NativeDate;
16681
+ order_settled_at_mins: number;
16682
16682
  localHour?: number | null | undefined;
16683
16683
  localDate?: string | null | undefined;
16684
16684
  localWeek?: number | null | undefined;
@@ -16689,56 +16689,36 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16689
16689
  localYear?: number | null | undefined;
16690
16690
  cancel_reason?: string | null | undefined;
16691
16691
  localDay?: number | null | undefined;
16692
- delete_reason?: string | null | undefined;
16693
- is_reopened?: boolean | null | undefined;
16694
- staff_details?: {
16695
- staff_id: string;
16696
- staff_name: string;
16697
- staff_mobile: string;
16698
- staff_email: string;
16692
+ dinein_details?: {
16693
+ start_time: NativeDate;
16694
+ courses: import("mongoose").Types.DocumentArray<{
16695
+ name: string;
16696
+ item_ids: string[];
16697
+ course_id: string;
16698
+ called: boolean;
16699
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
16700
+ name: string;
16701
+ item_ids: string[];
16702
+ course_id: string;
16703
+ called: boolean;
16704
+ }> & {
16705
+ name: string;
16706
+ item_ids: string[];
16707
+ course_id: string;
16708
+ called: boolean;
16709
+ }>;
16710
+ num_of_guests: number;
16711
+ table_id: import("mongoose").Types.ObjectId;
16712
+ table_name: string;
16713
+ floor_id: import("mongoose").Types.ObjectId;
16714
+ reservation_time: NativeDate;
16715
+ prep_minutes?: number | null | undefined;
16699
16716
  } | null | undefined;
16700
- is_gst_inclusive?: boolean | null | undefined;
16701
- gst?: number | null | undefined;
16702
- gst_amount?: number | null | undefined;
16703
- deferred_settlement?: boolean | null | undefined;
16704
- redeemed_offers?: Map<string, number> | null | undefined;
16705
16717
  day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
16706
16718
  localSecond?: number | null | undefined;
16707
16719
  localMinute?: number | null | undefined;
16708
16720
  localTime?: string | null | undefined;
16709
16721
  localDayOfYear?: number | null | undefined;
16710
- source_tenant_id?: string | null | undefined;
16711
- split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
16712
- split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
16713
- split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
16714
- tax_invoice_id?: string | null | undefined;
16715
- rating?: number | null | undefined;
16716
- review?: string | null | undefined;
16717
- synced_offline?: boolean | null | undefined;
16718
- is_unpaid?: boolean | null | undefined;
16719
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
16720
- order_taker_details?: {
16721
- staff_id: string;
16722
- staff_name: string;
16723
- staff_mobile: string;
16724
- staff_email: string;
16725
- } | null | undefined;
16726
- wallet_redemptions?: {
16727
- gift_cards?: import("mongoose").Types.DocumentArray<{
16728
- redeemed_times: number;
16729
- gift_card_id: string;
16730
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16731
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
16732
- redeemed_times: number;
16733
- gift_card_id: string;
16734
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16735
- }> & {
16736
- redeemed_times: number;
16737
- gift_card_id: string;
16738
- mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16739
- }> | null | undefined;
16740
- cashback_amount?: number | null | undefined;
16741
- } | null | undefined;
16742
16722
  delivery_details?: {
16743
16723
  city: string;
16744
16724
  address_instructions: string;
@@ -16749,8 +16729,8 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16749
16729
  zip_code: string;
16750
16730
  country_code: string;
16751
16731
  distance_in_meters_from_store: number;
16752
- delivery_cost: number;
16753
16732
  estimated_delivery_time: NativeDate;
16733
+ delivery_cost: number;
16754
16734
  delivery_code: string;
16755
16735
  rider_revenue?: number | null | undefined;
16756
16736
  rider_details?: {
@@ -16760,33 +16740,50 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16760
16740
  staff_email: string;
16761
16741
  } | null | undefined;
16762
16742
  } | null | undefined;
16763
- dinein_details?: {
16764
- start_time: NativeDate;
16765
- courses: import("mongoose").Types.DocumentArray<{
16766
- name: string;
16767
- item_ids: string[];
16768
- course_id: string;
16769
- called: boolean;
16743
+ takeaway_details?: {
16744
+ estimated_takeaway_time: NativeDate;
16745
+ } | null | undefined;
16746
+ wallet_redemptions?: {
16747
+ gift_cards?: import("mongoose").Types.DocumentArray<{
16748
+ redeemed_times: number;
16749
+ gift_card_id: string;
16750
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16770
16751
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
16771
- name: string;
16772
- item_ids: string[];
16773
- course_id: string;
16774
- called: boolean;
16752
+ redeemed_times: number;
16753
+ gift_card_id: string;
16754
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16775
16755
  }> & {
16776
- name: string;
16777
- item_ids: string[];
16778
- course_id: string;
16779
- called: boolean;
16780
- }>;
16781
- num_of_guests: number;
16782
- table_id: import("mongoose").Types.ObjectId;
16783
- table_name: string;
16784
- floor_id: import("mongoose").Types.ObjectId;
16785
- reservation_time: NativeDate;
16786
- prep_minutes?: number | null | undefined;
16756
+ redeemed_times: number;
16757
+ gift_card_id: string;
16758
+ mystery_gift_type?: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM | null | undefined;
16759
+ }> | null | undefined;
16760
+ cashback_amount?: number | null | undefined;
16787
16761
  } | null | undefined;
16788
- takeaway_details?: {
16789
- estimated_takeaway_time: NativeDate;
16762
+ source_tenant_id?: string | null | undefined;
16763
+ split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
16764
+ split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
16765
+ split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
16766
+ delete_reason?: string | null | undefined;
16767
+ tax_invoice_id?: string | null | undefined;
16768
+ rating?: number | null | undefined;
16769
+ review?: string | null | undefined;
16770
+ synced_offline?: boolean | null | undefined;
16771
+ is_reopened?: boolean | null | undefined;
16772
+ deferred_settlement?: boolean | null | undefined;
16773
+ is_unpaid?: boolean | null | undefined;
16774
+ payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
16775
+ order_taker_details?: {
16776
+ staff_id: string;
16777
+ staff_name: string;
16778
+ staff_mobile: string;
16779
+ staff_email: string;
16780
+ } | null | undefined;
16781
+ redeemed_offers?: Map<string, number> | null | undefined;
16782
+ staff_details?: {
16783
+ staff_id: string;
16784
+ staff_name: string;
16785
+ staff_mobile: string;
16786
+ staff_email: string;
16790
16787
  } | null | undefined;
16791
16788
  order_discount_details?: {
16792
16789
  total_discount: number;
@@ -16816,10 +16813,13 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16816
16813
  is_service_fee_taxable?: boolean | null | undefined;
16817
16814
  exclude_discount_from_gst?: boolean | null | undefined;
16818
16815
  apply_service_fee_on_original_price?: boolean | null | undefined;
16816
+ is_gst_inclusive?: boolean | null | undefined;
16819
16817
  surcharge?: number | null | undefined;
16820
16818
  surcharge_amount?: number | null | undefined;
16821
16819
  service_fee?: number | null | undefined;
16822
16820
  service_fee_amount?: number | null | undefined;
16821
+ gst?: number | null | undefined;
16822
+ gst_amount?: number | null | undefined;
16823
16823
  packaging_charges?: number | null | undefined;
16824
16824
  adjustment_amount?: number | null | undefined;
16825
16825
  adjustment_reason?: string | null | undefined;