@feedmepos/mf-order-setting 0.0.52-dev.2 → 0.0.53

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 (84) hide show
  1. package/.env.dev +1 -1
  2. package/.env.prod +1 -1
  3. package/dist/{KioskDevicesView-Vy9FLX1n.js → KioskDevicesView-CMKNjgWx.js} +1 -1
  4. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DhZPOEEQ.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-B1sNvlUC.js} +2 -2
  5. package/dist/KioskSettingView-BE_pMA-i.js +720 -0
  6. package/dist/KioskView-U-Wg8oMC.js +480 -0
  7. package/dist/OrderSettingsView-BWzaITT6.js +51916 -0
  8. package/dist/app-CFfgPAd8.js +10445 -0
  9. package/dist/app.js +3 -3
  10. package/dist/dayjs.min-CuRr-wlf.js +283 -0
  11. package/dist/frontend/mf-order/src/app.d.ts +60 -164
  12. package/dist/frontend/mf-order/src/main.d.ts +60 -164
  13. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +4 -0
  14. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +15 -0
  15. package/dist/frontend/mf-order/src/utils/firebase-app.d.ts +4 -0
  16. package/dist/frontend/mf-order/src/utils/firebase-storage.d.ts +2 -0
  17. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -0
  18. package/dist/{index-DZCjODMx.js → index-Bj0bCGTm.js} +25 -26
  19. package/dist/menu.dto-DAh1J2ES.js +128627 -0
  20. package/dist/package/entity/booking/booking.do.d.ts +30 -30
  21. package/dist/package/entity/delivery/delivery.dto.d.ts +6 -6
  22. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +59 -8
  23. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +40 -2
  24. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +14805 -66
  25. package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
  26. package/dist/package/entity/index.d.ts +3 -5
  27. package/dist/package/entity/order/order.dto.d.ts +342 -7293
  28. package/dist/package/entity/order/payment/payment.dto.d.ts +3 -344
  29. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +6 -6
  30. package/dist/package/entity/order-platform/grabfood/grabfood-edit-order.do.d.ts +144 -0
  31. package/dist/package/entity/order-platform/grabfood/grabfood-omni.do.d.ts +282 -47
  32. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +6 -6
  33. package/dist/package/entity/order-platform/grabfood/grabfood-webhook.dto.d.ts +69 -14
  34. package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +2 -0
  35. package/dist/package/entity/order-platform/order-platform.dto.d.ts +7306 -3
  36. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +6 -6
  37. package/dist/package/entity/order-setting/dine-in/dine-in.do.d.ts +12 -0
  38. package/dist/package/entity/order-setting/dine-in/dine-in.dto.d.ts +12 -0
  39. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +6 -0
  40. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +6 -0
  41. package/dist/package/entity/order-setting/order-setting.do.d.ts +13 -864
  42. package/dist/package/entity/order-setting/order-setting.dto.d.ts +30 -0
  43. package/dist/package/entity/restaurant/restaurant.dto.d.ts +14 -4
  44. package/dist/package/entity/websocket/websocket.dto.d.ts +24 -0
  45. package/package.json +6 -4
  46. package/src/App.vue +3 -0
  47. package/src/locales/en-US.json +16 -57
  48. package/src/locales/ja-JP.json +22 -7
  49. package/src/locales/th-TH.json +16 -55
  50. package/src/locales/zh-CN.json +16 -55
  51. package/src/main.ts +4 -16
  52. package/src/modules/order-setting/kiosk/interface.ts +17 -13
  53. package/src/stores/order-setting/mapper.ts +24 -18
  54. package/src/utils/firebase-app.ts +34 -0
  55. package/src/utils/firebase-storage.ts +112 -0
  56. package/src/views/kiosk/settings/KioskSettingView.vue +113 -0
  57. package/src/views/order-settings/OrderSettingsView.vue +1 -6
  58. package/src/views/order-settings/dine-in/DineInSetting.vue +23 -1
  59. package/src/views/order-settings/drive-thru/DriveThruSetting.vue +40 -24
  60. package/tsconfig.app.json +6 -8
  61. package/.tsbuildinfo +0 -1
  62. package/dist/KioskSettingView-cE-JdCBB.js +0 -551
  63. package/dist/KioskView-BYs5bem0.js +0 -474
  64. package/dist/OrderSettingsView-DYWlafIW.js +0 -56164
  65. package/dist/app-DDFI8Stx.js +0 -3142
  66. package/dist/dayjs.min-JEYIJz2D.js +0 -2092
  67. package/dist/frontend/mf-order/src/api/reservation/index.d.ts +0 -8
  68. package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts +0 -186
  69. package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomSelect.vue.d.ts +0 -15
  70. package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomTimePicker.vue.d.ts +0 -11
  71. package/dist/frontend/mf-order/src/views/order-settings/reservation/ReservationSetting.vue.d.ts +0 -2
  72. package/dist/menu.dto-D9CDVLiP.js +0 -104706
  73. package/dist/package/entity/order-setting/reservationV2/reservation.do.d.ts +0 -1269
  74. package/dist/package/entity/reservation/reservation.do.d.ts +0 -101
  75. package/dist/package/entity/reservation/reservation.dto.d.ts +0 -325
  76. package/dist/package/entity/reservation/reservation.enum.d.ts +0 -3
  77. package/dist/package/entity/reservation/reservation.utils.d.ts +0 -152
  78. package/dist/style.css +0 -1
  79. package/src/api/reservation/index.ts +0 -28
  80. package/src/assets/images/not-found.png +0 -0
  81. package/src/views/order-settings/reservation/CopySettingsSheet.vue +0 -256
  82. package/src/views/order-settings/reservation/CustomSelect.vue +0 -99
  83. package/src/views/order-settings/reservation/CustomTimePicker.vue +0 -232
  84. package/src/views/order-settings/reservation/ReservationSetting.vue +0 -1275
@@ -78,43 +78,87 @@ export declare const GFOmniOrderDiscount: z.ZodNullable<z.ZodOptional<z.ZodObjec
78
78
  deductAmountInMin?: number | null | undefined;
79
79
  mexFundedAmountInMin?: number | null | undefined;
80
80
  }>>>;
81
+ /** Taxes by type and amount for countries have more than one type of tax. */
81
82
  export declare const GFOmniOrderCustomizedTax: z.ZodObject<{
82
- taxType: z.ZodString;
83
+ /** TaxTypeForAlcoholItemsInMY for the SST 8%, and TaxTypeForNonAlcoholItemsInMY for the SST 8%. */
84
+ taxType: z.ZodEnum<["TaxTypeForAlcoholItemsInMY", "TaxTypeForNonAlcoholItemsInMY"]>;
85
+ /** The amount in minor units for the tax by taxType. */
83
86
  taxAmountInMin: z.ZodNumber;
84
87
  }, "strip", z.ZodTypeAny, {
85
- taxType: string;
88
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
86
89
  taxAmountInMin: number;
87
90
  }, {
88
- taxType: string;
91
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
89
92
  taxAmountInMin: number;
90
93
  }>;
94
+ /** A JSON object containing order's price in the minor unit format. */
91
95
  export declare const GFOmniOrderPrice: z.ZodObject<{
96
+ /** The total discount amount targeted on items. */
97
+ offlinePOSDiscountOnItemsInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
98
+ /** Total item and modifier price in minor units and tax-inclusive. */
92
99
  subtotal: z.ZodNumber;
100
+ /** Discount amount targeted to subtotal, including both item and order level discount on subtotal. */
101
+ offlinePOSDiscountOnSubtotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
102
+ /** Total tax in the minor unit. If customizedTaxes, this should be the total amount of all the taxes. Formula: Tax = total item/modifier tax. */
93
103
  tax: z.ZodNumber;
94
- merchantChargeFee: z.ZodNumber;
104
+ /** Taxes by type and amount for countries have more than one type of tax. */
105
+ customizedTaxes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
106
+ /** TaxTypeForAlcoholItemsInMY for the SST 8%, and TaxTypeForNonAlcoholItemsInMY for the SST 8%. */
107
+ taxType: z.ZodEnum<["TaxTypeForAlcoholItemsInMY", "TaxTypeForNonAlcoholItemsInMY"]>;
108
+ /** The amount in minor units for the tax by taxType. */
109
+ taxAmountInMin: z.ZodNumber;
110
+ }, "strip", z.ZodTypeAny, {
111
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
112
+ taxAmountInMin: number;
113
+ }, {
114
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
115
+ taxAmountInMin: number;
116
+ }>, "many">>>;
117
+ /** Any additional fee charged by the merchant in minor units and tax-inclusive, which is 100% paid out to the merchant. Eg. service charge. */
118
+ merchantChargeFeeInMin: z.ZodNumber;
119
+ /** The reservation depositAmount, which is the amount paid upfront by the diner during the reservation process. It can be applied towards the final payment when the order is completed. It's in minor units and tax-inclusive. */
95
120
  depositAmountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
121
+ /** The amount user need to pay before offlinePOSDiscountInMin. */
122
+ netTotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
123
+ /** Offline discount that is provided to the diner in minor units and tax-inclusive. */
96
124
  offlinePOSDiscountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
125
+ /** The rounding amount in minor units. Round down should be in negative value. Round up should be in positive value. */
126
+ billRoundingInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
127
+ /** The total bill value in minor units and tax-inclusive. */
97
128
  eaterPayment: z.ZodNumber;
98
- billRoundingInMin: z.ZodNumber;
99
129
  merchantFundPromo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
100
130
  }, "strip", z.ZodTypeAny, {
101
131
  merchantFundPromo?: number | null | undefined;
132
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
133
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
134
+ customizedTaxes?: {
135
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
136
+ taxAmountInMin: number;
137
+ }[] | null | undefined;
102
138
  depositAmountInMin?: number | null | undefined;
139
+ netTotalInMin?: number | null | undefined;
103
140
  offlinePOSDiscountInMin?: number | null | undefined;
141
+ billRoundingInMin?: number | null | undefined;
104
142
  tax: number;
105
- merchantChargeFee: number;
106
143
  subtotal: number;
144
+ merchantChargeFeeInMin: number;
107
145
  eaterPayment: number;
108
- billRoundingInMin: number;
109
146
  }, {
110
147
  merchantFundPromo?: number | null | undefined;
148
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
149
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
150
+ customizedTaxes?: {
151
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
152
+ taxAmountInMin: number;
153
+ }[] | null | undefined;
111
154
  depositAmountInMin?: number | null | undefined;
155
+ netTotalInMin?: number | null | undefined;
112
156
  offlinePOSDiscountInMin?: number | null | undefined;
157
+ billRoundingInMin?: number | null | undefined;
113
158
  tax: number;
114
- merchantChargeFee: number;
115
159
  subtotal: number;
160
+ merchantChargeFeeInMin: number;
116
161
  eaterPayment: number;
117
- billRoundingInMin: number;
118
162
  }>;
119
163
  export declare const GFOmniOrderItemModifier: z.ZodObject<{
120
164
  id: z.ZodString;
@@ -406,32 +450,72 @@ export declare const GFOmniOrder: z.ZodObject<{
406
450
  mexFundedAmountInMin?: number | null | undefined;
407
451
  }>>>, "many">>>;
408
452
  price: z.ZodObject<{
453
+ /** The total discount amount targeted on items. */
454
+ offlinePOSDiscountOnItemsInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
455
+ /** Total item and modifier price in minor units and tax-inclusive. */
409
456
  subtotal: z.ZodNumber;
457
+ /** Discount amount targeted to subtotal, including both item and order level discount on subtotal. */
458
+ offlinePOSDiscountOnSubtotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
459
+ /** Total tax in the minor unit. If customizedTaxes, this should be the total amount of all the taxes. Formula: Tax = total item/modifier tax. */
410
460
  tax: z.ZodNumber;
411
- merchantChargeFee: z.ZodNumber;
461
+ /** Taxes by type and amount for countries have more than one type of tax. */
462
+ customizedTaxes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
463
+ /** TaxTypeForAlcoholItemsInMY for the SST 8%, and TaxTypeForNonAlcoholItemsInMY for the SST 8%. */
464
+ taxType: z.ZodEnum<["TaxTypeForAlcoholItemsInMY", "TaxTypeForNonAlcoholItemsInMY"]>;
465
+ /** The amount in minor units for the tax by taxType. */
466
+ taxAmountInMin: z.ZodNumber;
467
+ }, "strip", z.ZodTypeAny, {
468
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
469
+ taxAmountInMin: number;
470
+ }, {
471
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
472
+ taxAmountInMin: number;
473
+ }>, "many">>>;
474
+ /** Any additional fee charged by the merchant in minor units and tax-inclusive, which is 100% paid out to the merchant. Eg. service charge. */
475
+ merchantChargeFeeInMin: z.ZodNumber;
476
+ /** The reservation depositAmount, which is the amount paid upfront by the diner during the reservation process. It can be applied towards the final payment when the order is completed. It's in minor units and tax-inclusive. */
412
477
  depositAmountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
478
+ /** The amount user need to pay before offlinePOSDiscountInMin. */
479
+ netTotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
480
+ /** Offline discount that is provided to the diner in minor units and tax-inclusive. */
413
481
  offlinePOSDiscountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
482
+ /** The rounding amount in minor units. Round down should be in negative value. Round up should be in positive value. */
483
+ billRoundingInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
484
+ /** The total bill value in minor units and tax-inclusive. */
414
485
  eaterPayment: z.ZodNumber;
415
- billRoundingInMin: z.ZodNumber;
416
486
  merchantFundPromo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
417
487
  }, "strip", z.ZodTypeAny, {
418
488
  merchantFundPromo?: number | null | undefined;
489
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
490
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
491
+ customizedTaxes?: {
492
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
493
+ taxAmountInMin: number;
494
+ }[] | null | undefined;
419
495
  depositAmountInMin?: number | null | undefined;
496
+ netTotalInMin?: number | null | undefined;
420
497
  offlinePOSDiscountInMin?: number | null | undefined;
498
+ billRoundingInMin?: number | null | undefined;
421
499
  tax: number;
422
- merchantChargeFee: number;
423
500
  subtotal: number;
501
+ merchantChargeFeeInMin: number;
424
502
  eaterPayment: number;
425
- billRoundingInMin: number;
426
503
  }, {
427
504
  merchantFundPromo?: number | null | undefined;
505
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
506
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
507
+ customizedTaxes?: {
508
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
509
+ taxAmountInMin: number;
510
+ }[] | null | undefined;
428
511
  depositAmountInMin?: number | null | undefined;
512
+ netTotalInMin?: number | null | undefined;
429
513
  offlinePOSDiscountInMin?: number | null | undefined;
514
+ billRoundingInMin?: number | null | undefined;
430
515
  tax: number;
431
- merchantChargeFee: number;
432
516
  subtotal: number;
517
+ merchantChargeFeeInMin: number;
433
518
  eaterPayment: number;
434
- billRoundingInMin: number;
435
519
  }>;
436
520
  membershipID: z.ZodNullable<z.ZodOptional<z.ZodString>>;
437
521
  receiver: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -628,13 +712,20 @@ export declare const GFOmniOrder: z.ZodObject<{
628
712
  membershipID?: string | null | undefined;
629
713
  price: {
630
714
  merchantFundPromo?: number | null | undefined;
715
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
716
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
717
+ customizedTaxes?: {
718
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
719
+ taxAmountInMin: number;
720
+ }[] | null | undefined;
631
721
  depositAmountInMin?: number | null | undefined;
722
+ netTotalInMin?: number | null | undefined;
632
723
  offlinePOSDiscountInMin?: number | null | undefined;
724
+ billRoundingInMin?: number | null | undefined;
633
725
  tax: number;
634
- merchantChargeFee: number;
635
726
  subtotal: number;
727
+ merchantChargeFeeInMin: number;
636
728
  eaterPayment: number;
637
- billRoundingInMin: number;
638
729
  };
639
730
  currency: {
640
731
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -746,13 +837,20 @@ export declare const GFOmniOrder: z.ZodObject<{
746
837
  membershipID?: string | null | undefined;
747
838
  price: {
748
839
  merchantFundPromo?: number | null | undefined;
840
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
841
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
842
+ customizedTaxes?: {
843
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
844
+ taxAmountInMin: number;
845
+ }[] | null | undefined;
749
846
  depositAmountInMin?: number | null | undefined;
847
+ netTotalInMin?: number | null | undefined;
750
848
  offlinePOSDiscountInMin?: number | null | undefined;
849
+ billRoundingInMin?: number | null | undefined;
751
850
  tax: number;
752
- merchantChargeFee: number;
753
851
  subtotal: number;
852
+ merchantChargeFeeInMin: number;
754
853
  eaterPayment: number;
755
- billRoundingInMin: number;
756
854
  };
757
855
  currency: {
758
856
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -999,32 +1097,72 @@ export declare const GFOmniSyncPosOrderDto: z.ZodObject<{
999
1097
  mexFundedAmountInMin?: number | null | undefined;
1000
1098
  }>>>, "many">>>;
1001
1099
  price: z.ZodObject<{
1100
+ /** The total discount amount targeted on items. */
1101
+ offlinePOSDiscountOnItemsInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1102
+ /** Total item and modifier price in minor units and tax-inclusive. */
1002
1103
  subtotal: z.ZodNumber;
1104
+ /** Discount amount targeted to subtotal, including both item and order level discount on subtotal. */
1105
+ offlinePOSDiscountOnSubtotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1106
+ /** Total tax in the minor unit. If customizedTaxes, this should be the total amount of all the taxes. Formula: Tax = total item/modifier tax. */
1003
1107
  tax: z.ZodNumber;
1004
- merchantChargeFee: z.ZodNumber;
1108
+ /** Taxes by type and amount for countries have more than one type of tax. */
1109
+ customizedTaxes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
+ /** TaxTypeForAlcoholItemsInMY for the SST 8%, and TaxTypeForNonAlcoholItemsInMY for the SST 8%. */
1111
+ taxType: z.ZodEnum<["TaxTypeForAlcoholItemsInMY", "TaxTypeForNonAlcoholItemsInMY"]>;
1112
+ /** The amount in minor units for the tax by taxType. */
1113
+ taxAmountInMin: z.ZodNumber;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1116
+ taxAmountInMin: number;
1117
+ }, {
1118
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1119
+ taxAmountInMin: number;
1120
+ }>, "many">>>;
1121
+ /** Any additional fee charged by the merchant in minor units and tax-inclusive, which is 100% paid out to the merchant. Eg. service charge. */
1122
+ merchantChargeFeeInMin: z.ZodNumber;
1123
+ /** The reservation depositAmount, which is the amount paid upfront by the diner during the reservation process. It can be applied towards the final payment when the order is completed. It's in minor units and tax-inclusive. */
1005
1124
  depositAmountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1125
+ /** The amount user need to pay before offlinePOSDiscountInMin. */
1126
+ netTotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1127
+ /** Offline discount that is provided to the diner in minor units and tax-inclusive. */
1006
1128
  offlinePOSDiscountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1129
+ /** The rounding amount in minor units. Round down should be in negative value. Round up should be in positive value. */
1130
+ billRoundingInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1131
+ /** The total bill value in minor units and tax-inclusive. */
1007
1132
  eaterPayment: z.ZodNumber;
1008
- billRoundingInMin: z.ZodNumber;
1009
1133
  merchantFundPromo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1010
1134
  }, "strip", z.ZodTypeAny, {
1011
1135
  merchantFundPromo?: number | null | undefined;
1136
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1137
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1138
+ customizedTaxes?: {
1139
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1140
+ taxAmountInMin: number;
1141
+ }[] | null | undefined;
1012
1142
  depositAmountInMin?: number | null | undefined;
1143
+ netTotalInMin?: number | null | undefined;
1013
1144
  offlinePOSDiscountInMin?: number | null | undefined;
1145
+ billRoundingInMin?: number | null | undefined;
1014
1146
  tax: number;
1015
- merchantChargeFee: number;
1016
1147
  subtotal: number;
1148
+ merchantChargeFeeInMin: number;
1017
1149
  eaterPayment: number;
1018
- billRoundingInMin: number;
1019
1150
  }, {
1020
1151
  merchantFundPromo?: number | null | undefined;
1152
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1153
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1154
+ customizedTaxes?: {
1155
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1156
+ taxAmountInMin: number;
1157
+ }[] | null | undefined;
1021
1158
  depositAmountInMin?: number | null | undefined;
1159
+ netTotalInMin?: number | null | undefined;
1022
1160
  offlinePOSDiscountInMin?: number | null | undefined;
1161
+ billRoundingInMin?: number | null | undefined;
1023
1162
  tax: number;
1024
- merchantChargeFee: number;
1025
1163
  subtotal: number;
1164
+ merchantChargeFeeInMin: number;
1026
1165
  eaterPayment: number;
1027
- billRoundingInMin: number;
1028
1166
  }>;
1029
1167
  membershipID: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1030
1168
  receiver: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1221,13 +1359,20 @@ export declare const GFOmniSyncPosOrderDto: z.ZodObject<{
1221
1359
  membershipID?: string | null | undefined;
1222
1360
  price: {
1223
1361
  merchantFundPromo?: number | null | undefined;
1362
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1363
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1364
+ customizedTaxes?: {
1365
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1366
+ taxAmountInMin: number;
1367
+ }[] | null | undefined;
1224
1368
  depositAmountInMin?: number | null | undefined;
1369
+ netTotalInMin?: number | null | undefined;
1225
1370
  offlinePOSDiscountInMin?: number | null | undefined;
1371
+ billRoundingInMin?: number | null | undefined;
1226
1372
  tax: number;
1227
- merchantChargeFee: number;
1228
1373
  subtotal: number;
1374
+ merchantChargeFeeInMin: number;
1229
1375
  eaterPayment: number;
1230
- billRoundingInMin: number;
1231
1376
  };
1232
1377
  currency: {
1233
1378
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -1339,13 +1484,20 @@ export declare const GFOmniSyncPosOrderDto: z.ZodObject<{
1339
1484
  membershipID?: string | null | undefined;
1340
1485
  price: {
1341
1486
  merchantFundPromo?: number | null | undefined;
1487
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1488
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1489
+ customizedTaxes?: {
1490
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1491
+ taxAmountInMin: number;
1492
+ }[] | null | undefined;
1342
1493
  depositAmountInMin?: number | null | undefined;
1494
+ netTotalInMin?: number | null | undefined;
1343
1495
  offlinePOSDiscountInMin?: number | null | undefined;
1496
+ billRoundingInMin?: number | null | undefined;
1344
1497
  tax: number;
1345
- merchantChargeFee: number;
1346
1498
  subtotal: number;
1499
+ merchantChargeFeeInMin: number;
1347
1500
  eaterPayment: number;
1348
- billRoundingInMin: number;
1349
1501
  };
1350
1502
  currency: {
1351
1503
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -1459,13 +1611,20 @@ export declare const GFOmniSyncPosOrderDto: z.ZodObject<{
1459
1611
  membershipID?: string | null | undefined;
1460
1612
  price: {
1461
1613
  merchantFundPromo?: number | null | undefined;
1614
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1615
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1616
+ customizedTaxes?: {
1617
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1618
+ taxAmountInMin: number;
1619
+ }[] | null | undefined;
1462
1620
  depositAmountInMin?: number | null | undefined;
1621
+ netTotalInMin?: number | null | undefined;
1463
1622
  offlinePOSDiscountInMin?: number | null | undefined;
1623
+ billRoundingInMin?: number | null | undefined;
1464
1624
  tax: number;
1465
- merchantChargeFee: number;
1466
1625
  subtotal: number;
1626
+ merchantChargeFeeInMin: number;
1467
1627
  eaterPayment: number;
1468
- billRoundingInMin: number;
1469
1628
  };
1470
1629
  currency: {
1471
1630
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -1580,13 +1739,20 @@ export declare const GFOmniSyncPosOrderDto: z.ZodObject<{
1580
1739
  membershipID?: string | null | undefined;
1581
1740
  price: {
1582
1741
  merchantFundPromo?: number | null | undefined;
1742
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
1743
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
1744
+ customizedTaxes?: {
1745
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
1746
+ taxAmountInMin: number;
1747
+ }[] | null | undefined;
1583
1748
  depositAmountInMin?: number | null | undefined;
1749
+ netTotalInMin?: number | null | undefined;
1584
1750
  offlinePOSDiscountInMin?: number | null | undefined;
1751
+ billRoundingInMin?: number | null | undefined;
1585
1752
  tax: number;
1586
- merchantChargeFee: number;
1587
1753
  subtotal: number;
1754
+ merchantChargeFeeInMin: number;
1588
1755
  eaterPayment: number;
1589
- billRoundingInMin: number;
1590
1756
  };
1591
1757
  currency: {
1592
1758
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -1850,32 +2016,72 @@ export declare const FdoGrabfoodOmniOrder: z.ZodObject<{
1850
2016
  mexFundedAmountInMin?: number | null | undefined;
1851
2017
  }>>>, "many">>>;
1852
2018
  price: z.ZodObject<{
2019
+ /** The total discount amount targeted on items. */
2020
+ offlinePOSDiscountOnItemsInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2021
+ /** Total item and modifier price in minor units and tax-inclusive. */
1853
2022
  subtotal: z.ZodNumber;
2023
+ /** Discount amount targeted to subtotal, including both item and order level discount on subtotal. */
2024
+ offlinePOSDiscountOnSubtotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2025
+ /** Total tax in the minor unit. If customizedTaxes, this should be the total amount of all the taxes. Formula: Tax = total item/modifier tax. */
1854
2026
  tax: z.ZodNumber;
1855
- merchantChargeFee: z.ZodNumber;
2027
+ /** Taxes by type and amount for countries have more than one type of tax. */
2028
+ customizedTaxes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2029
+ /** TaxTypeForAlcoholItemsInMY for the SST 8%, and TaxTypeForNonAlcoholItemsInMY for the SST 8%. */
2030
+ taxType: z.ZodEnum<["TaxTypeForAlcoholItemsInMY", "TaxTypeForNonAlcoholItemsInMY"]>;
2031
+ /** The amount in minor units for the tax by taxType. */
2032
+ taxAmountInMin: z.ZodNumber;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2035
+ taxAmountInMin: number;
2036
+ }, {
2037
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2038
+ taxAmountInMin: number;
2039
+ }>, "many">>>;
2040
+ /** Any additional fee charged by the merchant in minor units and tax-inclusive, which is 100% paid out to the merchant. Eg. service charge. */
2041
+ merchantChargeFeeInMin: z.ZodNumber;
2042
+ /** The reservation depositAmount, which is the amount paid upfront by the diner during the reservation process. It can be applied towards the final payment when the order is completed. It's in minor units and tax-inclusive. */
1856
2043
  depositAmountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2044
+ /** The amount user need to pay before offlinePOSDiscountInMin. */
2045
+ netTotalInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2046
+ /** Offline discount that is provided to the diner in minor units and tax-inclusive. */
1857
2047
  offlinePOSDiscountInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2048
+ /** The rounding amount in minor units. Round down should be in negative value. Round up should be in positive value. */
2049
+ billRoundingInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2050
+ /** The total bill value in minor units and tax-inclusive. */
1858
2051
  eaterPayment: z.ZodNumber;
1859
- billRoundingInMin: z.ZodNumber;
1860
2052
  merchantFundPromo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1861
2053
  }, "strip", z.ZodTypeAny, {
1862
2054
  merchantFundPromo?: number | null | undefined;
2055
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2056
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2057
+ customizedTaxes?: {
2058
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2059
+ taxAmountInMin: number;
2060
+ }[] | null | undefined;
1863
2061
  depositAmountInMin?: number | null | undefined;
2062
+ netTotalInMin?: number | null | undefined;
1864
2063
  offlinePOSDiscountInMin?: number | null | undefined;
2064
+ billRoundingInMin?: number | null | undefined;
1865
2065
  tax: number;
1866
- merchantChargeFee: number;
1867
2066
  subtotal: number;
2067
+ merchantChargeFeeInMin: number;
1868
2068
  eaterPayment: number;
1869
- billRoundingInMin: number;
1870
2069
  }, {
1871
2070
  merchantFundPromo?: number | null | undefined;
2071
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2072
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2073
+ customizedTaxes?: {
2074
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2075
+ taxAmountInMin: number;
2076
+ }[] | null | undefined;
1872
2077
  depositAmountInMin?: number | null | undefined;
2078
+ netTotalInMin?: number | null | undefined;
1873
2079
  offlinePOSDiscountInMin?: number | null | undefined;
2080
+ billRoundingInMin?: number | null | undefined;
1874
2081
  tax: number;
1875
- merchantChargeFee: number;
1876
2082
  subtotal: number;
2083
+ merchantChargeFeeInMin: number;
1877
2084
  eaterPayment: number;
1878
- billRoundingInMin: number;
1879
2085
  }>;
1880
2086
  membershipID: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1881
2087
  receiver: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -2072,13 +2278,20 @@ export declare const FdoGrabfoodOmniOrder: z.ZodObject<{
2072
2278
  membershipID?: string | null | undefined;
2073
2279
  price: {
2074
2280
  merchantFundPromo?: number | null | undefined;
2281
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2282
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2283
+ customizedTaxes?: {
2284
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2285
+ taxAmountInMin: number;
2286
+ }[] | null | undefined;
2075
2287
  depositAmountInMin?: number | null | undefined;
2288
+ netTotalInMin?: number | null | undefined;
2076
2289
  offlinePOSDiscountInMin?: number | null | undefined;
2290
+ billRoundingInMin?: number | null | undefined;
2077
2291
  tax: number;
2078
- merchantChargeFee: number;
2079
2292
  subtotal: number;
2293
+ merchantChargeFeeInMin: number;
2080
2294
  eaterPayment: number;
2081
- billRoundingInMin: number;
2082
2295
  };
2083
2296
  currency: {
2084
2297
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -2190,13 +2403,20 @@ export declare const FdoGrabfoodOmniOrder: z.ZodObject<{
2190
2403
  membershipID?: string | null | undefined;
2191
2404
  price: {
2192
2405
  merchantFundPromo?: number | null | undefined;
2406
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2407
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2408
+ customizedTaxes?: {
2409
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2410
+ taxAmountInMin: number;
2411
+ }[] | null | undefined;
2193
2412
  depositAmountInMin?: number | null | undefined;
2413
+ netTotalInMin?: number | null | undefined;
2194
2414
  offlinePOSDiscountInMin?: number | null | undefined;
2415
+ billRoundingInMin?: number | null | undefined;
2195
2416
  tax: number;
2196
- merchantChargeFee: number;
2197
2417
  subtotal: number;
2418
+ merchantChargeFeeInMin: number;
2198
2419
  eaterPayment: number;
2199
- billRoundingInMin: number;
2200
2420
  };
2201
2421
  currency: {
2202
2422
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -2312,13 +2532,20 @@ export declare const FdoGrabfoodOmniOrder: z.ZodObject<{
2312
2532
  membershipID?: string | null | undefined;
2313
2533
  price: {
2314
2534
  merchantFundPromo?: number | null | undefined;
2535
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2536
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2537
+ customizedTaxes?: {
2538
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2539
+ taxAmountInMin: number;
2540
+ }[] | null | undefined;
2315
2541
  depositAmountInMin?: number | null | undefined;
2542
+ netTotalInMin?: number | null | undefined;
2316
2543
  offlinePOSDiscountInMin?: number | null | undefined;
2544
+ billRoundingInMin?: number | null | undefined;
2317
2545
  tax: number;
2318
- merchantChargeFee: number;
2319
2546
  subtotal: number;
2547
+ merchantChargeFeeInMin: number;
2320
2548
  eaterPayment: number;
2321
- billRoundingInMin: number;
2322
2549
  };
2323
2550
  currency: {
2324
2551
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -2437,13 +2664,20 @@ export declare const FdoGrabfoodOmniOrder: z.ZodObject<{
2437
2664
  membershipID?: string | null | undefined;
2438
2665
  price: {
2439
2666
  merchantFundPromo?: number | null | undefined;
2667
+ offlinePOSDiscountOnItemsInMin?: number | null | undefined;
2668
+ offlinePOSDiscountOnSubtotalInMin?: number | null | undefined;
2669
+ customizedTaxes?: {
2670
+ taxType: "TaxTypeForAlcoholItemsInMY" | "TaxTypeForNonAlcoholItemsInMY";
2671
+ taxAmountInMin: number;
2672
+ }[] | null | undefined;
2440
2673
  depositAmountInMin?: number | null | undefined;
2674
+ netTotalInMin?: number | null | undefined;
2441
2675
  offlinePOSDiscountInMin?: number | null | undefined;
2676
+ billRoundingInMin?: number | null | undefined;
2442
2677
  tax: number;
2443
- merchantChargeFee: number;
2444
2678
  subtotal: number;
2679
+ merchantChargeFeeInMin: number;
2445
2680
  eaterPayment: number;
2446
- billRoundingInMin: number;
2447
2681
  };
2448
2682
  currency: {
2449
2683
  symbol: "RM" | "Rp" | "S$" | "₫" | "฿" | "₱" | "៛" | "K";
@@ -2488,4 +2722,5 @@ export type GFOmniOrderPrice = z.infer<typeof GFOmniOrderPrice>;
2488
2722
  export type GFOmniOrderItem = z.infer<typeof GFOmniOrderItem>;
2489
2723
  export type GFOmniOrderPayment = z.infer<typeof GFOmniOrderPayment>;
2490
2724
  export type GFOmniOrderItemModifier = z.infer<typeof GFOmniOrderItemModifier>;
2725
+ export type GFOmniOrderCustomizedTax = z.infer<typeof GFOmniOrderCustomizedTax>;
2491
2726
  export type FdoGrabfoodOmniOrder = z.infer<typeof FdoGrabfoodOmniOrder>;