@feedmepos/mf-order-setting 0.0.27 → 0.0.29

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 (77) hide show
  1. package/dist/{KioskDevicesView-AKvyDF3w.js → KioskDevicesView-Dvr4RUmt.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Cx8VMyNB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CJ-xAR8i.js} +2 -2
  3. package/dist/{KioskSettingView-equ5EIvU.js → KioskSettingView-DaJz8ZZi.js} +1 -1
  4. package/dist/{KioskView-CsE7BGtA.js → KioskView-v8Yl4x4R.js} +4 -4
  5. package/dist/OrderSettingsView-CN1PFwX_.js +74545 -0
  6. package/dist/{app-D-zQN9_E.js → app-d1Lptg6A.js} +123 -30
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-CWQSmujV.js → dayjs.min-BLlPHZkl.js} +278 -267
  9. package/dist/frontend/mf-order/src/api/business/index.d.ts +5 -0
  10. package/dist/frontend/mf-order/src/api/effects/index.d.ts +3 -0
  11. package/dist/frontend/mf-order/src/api/index.d.ts +2 -0
  12. package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +1 -0
  13. package/dist/frontend/mf-order/src/app.d.ts +93 -0
  14. package/dist/frontend/mf-order/src/main.d.ts +93 -0
  15. package/dist/frontend/mf-order/src/stores/business/index.d.ts +62 -0
  16. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +139 -125
  17. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +81 -78
  18. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +54 -52
  19. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -0
  20. package/dist/frontend/mf-order/src/views/order-settings/discount-rule/DiscountRuleSetting.vue.d.ts +2 -0
  21. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{index-BwrMcIf2.js → index-Cg9kSeyn.js} +2 -2
  23. package/dist/package/entity/booking/booking.do.d.ts +596 -551
  24. package/dist/package/entity/delivery/delivery.dto.d.ts +118 -109
  25. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +342 -652
  26. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +13778 -478
  27. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +731 -1227
  28. package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
  29. package/dist/package/entity/index.d.ts +1 -0
  30. package/dist/package/entity/kiosk/kiosk.do.d.ts +32 -0
  31. package/dist/package/entity/kiosk/kiosk.dto.d.ts +14 -14
  32. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1469 -621
  33. package/dist/package/entity/member/member.dto.d.ts +14 -7
  34. package/dist/package/entity/order/effects/effect.dto.d.ts +154 -6
  35. package/dist/package/entity/order/order-item/order-item.dto.d.ts +87 -34
  36. package/dist/package/entity/order/order.do.d.ts +177 -572
  37. package/dist/package/entity/order/order.dto.d.ts +902 -1412
  38. package/dist/package/entity/order/pickup/pickup.dto.d.ts +37 -0
  39. package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +8 -0
  40. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +8 -0
  41. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +22 -3
  42. package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
  43. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +5 -0
  44. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +5 -0
  45. package/dist/package/entity/order-platform/external/zus/zus-menu.dto.d.ts +192 -0
  46. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +104 -0
  47. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +152 -109
  48. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
  49. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  50. package/dist/package/entity/order-platform/foodpanda/foodpanda.enum.d.ts +2 -0
  51. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +139 -109
  52. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
  53. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +152 -2
  54. package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +2 -0
  55. package/dist/package/entity/order-platform/order-platform.dto.d.ts +6 -3
  56. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +164 -109
  57. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +22 -0
  58. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
  59. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
  60. package/dist/package/entity/queue/queue.dto.d.ts +11446 -93
  61. package/dist/package/entity/user/user.do.d.ts +129 -18
  62. package/dist/queue.do-zk6sqriQ.js +125612 -0
  63. package/package.json +4 -3
  64. package/src/api/business/index.ts +16 -0
  65. package/src/api/effects/index.ts +7 -0
  66. package/src/api/index.ts +9 -1
  67. package/src/api/remoteOrder/index.ts +3 -0
  68. package/src/locales/en-US.json +31 -1
  69. package/src/locales/th-TH.json +31 -1
  70. package/src/locales/zh-CN.json +34 -1
  71. package/src/stores/business/index.ts +45 -0
  72. package/src/stores/restaurant/index.ts +3 -1
  73. package/src/views/order-settings/OrderSettingsView.vue +17 -5
  74. package/src/views/order-settings/delivery/integrated-delivery/GrabfoodSetting.vue +38 -1
  75. package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +452 -0
  76. package/dist/OrderSettingsView-BpLXyk_0.js +0 -49013
  77. package/dist/queue.do-F110q0_J.js +0 -100389
@@ -282,6 +282,13 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
282
282
  precision: number;
283
283
  };
284
284
  }>;
285
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
286
+ type: z.ZodEnum<["CAPPED_AT"]>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "CAPPED_AT";
289
+ }, {
290
+ type: "CAPPED_AT";
291
+ }>>>;
285
292
  total: z.ZodObject<{
286
293
  currency: z.ZodIntersection<z.ZodString, z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>>;
287
294
  amount: z.ZodNumber;
@@ -320,6 +327,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
320
327
  }, "strip", z.ZodTypeAny, {
321
328
  reason?: string | null | undefined;
322
329
  referenceId?: string | null | undefined;
330
+ adjustmentRule?: {
331
+ type: "CAPPED_AT";
332
+ } | null | undefined;
323
333
  remark?: string | null | undefined;
324
334
  excludeAddonPrice?: boolean | null | undefined;
325
335
  total: {
@@ -348,6 +358,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
348
358
  }, {
349
359
  reason?: string | null | undefined;
350
360
  referenceId?: string | null | undefined;
361
+ adjustmentRule?: {
362
+ type: "CAPPED_AT";
363
+ } | null | undefined;
351
364
  remark?: string | null | undefined;
352
365
  excludeAddonPrice?: boolean | null | undefined;
353
366
  total: {
@@ -389,6 +402,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
389
402
  adjustment?: Record<string, {
390
403
  reason?: string | null | undefined;
391
404
  referenceId?: string | null | undefined;
405
+ adjustmentRule?: {
406
+ type: "CAPPED_AT";
407
+ } | null | undefined;
392
408
  remark?: string | null | undefined;
393
409
  excludeAddonPrice?: boolean | null | undefined;
394
410
  total: {
@@ -485,6 +501,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
485
501
  adjustment?: Record<string, {
486
502
  reason?: string | null | undefined;
487
503
  referenceId?: string | null | undefined;
504
+ adjustmentRule?: {
505
+ type: "CAPPED_AT";
506
+ } | null | undefined;
488
507
  remark?: string | null | undefined;
489
508
  excludeAddonPrice?: boolean | null | undefined;
490
509
  total: {
@@ -633,7 +652,7 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
633
652
  } | null | undefined;
634
653
  _id: string;
635
654
  }>>>;
636
- effects: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<z.extendShape<{
655
+ effects: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
637
656
  adjustment: z.ZodObject<{
638
657
  type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
639
658
  amount: z.ZodObject<{
@@ -663,11 +682,15 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
663
682
  };
664
683
  }>;
665
684
  availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
685
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
686
+ type: z.ZodEnum<["CAPPED_AT"]>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ type: "CAPPED_AT";
689
+ }, {
690
+ type: "CAPPED_AT";
691
+ }>>>;
666
692
  options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
667
693
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
668
- }, {
669
- target: z.ZodLiteral<"BILL">;
670
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
671
694
  minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
672
695
  amount: z.ZodNumber;
673
696
  precision: z.ZodNumber;
@@ -678,12 +701,25 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
678
701
  amount: number;
679
702
  precision: number;
680
703
  }>>>;
704
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
705
+ productId: z.ZodString;
706
+ }, "strip", z.ZodTypeAny, {
707
+ productId: string;
708
+ }, {
709
+ productId: string;
710
+ }>, "many">>>;
711
+ }, {
712
+ target: z.ZodLiteral<"BILL">;
713
+ excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
681
714
  }>, "strip", z.ZodTypeAny, {
682
715
  excludeIds?: string[] | null | undefined;
683
716
  minPurchase?: {
684
717
  amount: number;
685
718
  precision: number;
686
719
  } | null | undefined;
720
+ minPurchaseItems?: {
721
+ productId: string;
722
+ }[] | null | undefined;
687
723
  target: "BILL";
688
724
  }, {
689
725
  excludeIds?: string[] | null | undefined;
@@ -691,9 +727,29 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
691
727
  amount: number;
692
728
  precision: number;
693
729
  } | null | undefined;
730
+ minPurchaseItems?: {
731
+ productId: string;
732
+ }[] | null | undefined;
694
733
  target: "BILL";
695
734
  }> | z.ZodObject<z.extendShape<{
696
735
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
736
+ minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
737
+ amount: z.ZodNumber;
738
+ precision: z.ZodNumber;
739
+ }, "strip", z.ZodTypeAny, {
740
+ amount: number;
741
+ precision: number;
742
+ }, {
743
+ amount: number;
744
+ precision: number;
745
+ }>>>;
746
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
747
+ productId: z.ZodString;
748
+ }, "strip", z.ZodTypeAny, {
749
+ productId: string;
750
+ }, {
751
+ productId: string;
752
+ }>, "many">>>;
697
753
  }, {
698
754
  target: z.ZodLiteral<"ITEM">;
699
755
  strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
@@ -792,6 +848,13 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
792
848
  maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
793
849
  excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
794
850
  }>, "strip", z.ZodTypeAny, {
851
+ minPurchase?: {
852
+ amount: number;
853
+ precision: number;
854
+ } | null | undefined;
855
+ minPurchaseItems?: {
856
+ productId: string;
857
+ }[] | null | undefined;
795
858
  maxQuantity?: number | null | undefined;
796
859
  excludeAddonPrice?: boolean | null | undefined;
797
860
  target: "ITEM";
@@ -823,6 +886,13 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
823
886
  };
824
887
  targetIds: string[];
825
888
  }, {
889
+ minPurchase?: {
890
+ amount: number;
891
+ precision: number;
892
+ } | null | undefined;
893
+ minPurchaseItems?: {
894
+ productId: string;
895
+ }[] | null | undefined;
826
896
  maxQuantity?: number | null | undefined;
827
897
  excludeAddonPrice?: boolean | null | undefined;
828
898
  target: "ITEM";
@@ -855,8 +925,6 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
855
925
  targetIds: string[];
856
926
  }> | z.ZodObject<z.extendShape<{
857
927
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
858
- }, {
859
- target: z.ZodLiteral<"PAYMENT">;
860
928
  minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
861
929
  amount: z.ZodNumber;
862
930
  precision: z.ZodNumber;
@@ -867,179 +935,107 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
867
935
  amount: number;
868
936
  precision: number;
869
937
  }>>>;
938
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
939
+ productId: z.ZodString;
940
+ }, "strip", z.ZodTypeAny, {
941
+ productId: string;
942
+ }, {
943
+ productId: string;
944
+ }>, "many">>>;
945
+ }, {
946
+ target: z.ZodLiteral<"PAYMENT">;
870
947
  }>, "strip", z.ZodTypeAny, {
871
948
  minPurchase?: {
872
949
  amount: number;
873
950
  precision: number;
874
951
  } | null | undefined;
952
+ minPurchaseItems?: {
953
+ productId: string;
954
+ }[] | null | undefined;
875
955
  target: "PAYMENT";
876
956
  }, {
877
957
  minPurchase?: {
878
958
  amount: number;
879
959
  precision: number;
880
960
  } | null | undefined;
961
+ minPurchaseItems?: {
962
+ productId: string;
963
+ }[] | null | undefined;
881
964
  target: "PAYMENT";
882
965
  }>>;
883
966
  priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
884
967
  }, {
885
- adjustment: z.ZodObject<{
886
- type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
887
- amount: z.ZodObject<{
888
- amount: z.ZodNumber;
889
- precision: z.ZodNumber;
890
- }, "strip", z.ZodTypeAny, {
891
- amount: number;
892
- precision: number;
893
- }, {
894
- amount: number;
895
- precision: number;
896
- }>;
897
- inclusive: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
968
+ success: z.ZodBoolean;
969
+ reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
970
+ usedItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ quantity: z.ZodNumber;
898
973
  }, "strip", z.ZodTypeAny, {
899
- inclusive?: boolean | null | undefined;
900
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
901
- amount: {
902
- amount: number;
903
- precision: number;
904
- };
974
+ id: string;
975
+ quantity: number;
905
976
  }, {
906
- inclusive?: boolean | null | undefined;
907
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
908
- amount: {
909
- amount: number;
910
- precision: number;
911
- };
912
- }>;
913
- availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
914
- options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
915
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
977
+ id: string;
978
+ quantity: number;
979
+ }>, "many">>>;
980
+ toUse: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
981
+ toGet: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
982
+ maximumReached: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
983
+ items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
984
+ name: z.ZodString;
985
+ from: z.ZodEnum<["COUNTER", "PROMOTION", "VOUCHER", "MEMBERSHIP", "FREE_CREDIT"]>;
986
+ referenceId: z.ZodString;
987
+ returnId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
988
+ customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
989
+ id: z.ZodString;
990
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ name?: string | null | undefined;
993
+ id: string;
916
994
  }, {
917
- target: z.ZodLiteral<"BILL">;
918
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
919
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
920
- amount: z.ZodNumber;
921
- precision: z.ZodNumber;
922
- }, "strip", z.ZodTypeAny, {
923
- amount: number;
924
- precision: number;
925
- }, {
926
- amount: number;
927
- precision: number;
928
- }>>>;
929
- }>, "strip", z.ZodTypeAny, {
995
+ name?: string | null | undefined;
996
+ id: string;
997
+ }>>>;
998
+ autoApplied: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
999
+ }>, "strip", z.ZodTypeAny, {
1000
+ reason?: string | null | undefined;
1001
+ priority?: number | null | undefined;
1002
+ items?: string[] | null | undefined;
1003
+ adjustmentRule?: {
1004
+ type: "CAPPED_AT";
1005
+ } | null | undefined;
1006
+ customer?: {
1007
+ name?: string | null | undefined;
1008
+ id: string;
1009
+ } | null | undefined;
1010
+ availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
1011
+ usedItems?: {
1012
+ id: string;
1013
+ quantity: number;
1014
+ }[] | null | undefined;
1015
+ toUse?: string[] | null | undefined;
1016
+ toGet?: string[] | null | undefined;
1017
+ maximumReached?: boolean | null | undefined;
1018
+ returnId?: string | null | undefined;
1019
+ autoApplied?: boolean | null | undefined;
1020
+ name: string;
1021
+ options: {
930
1022
  excludeIds?: string[] | null | undefined;
931
1023
  minPurchase?: {
932
1024
  amount: number;
933
1025
  precision: number;
934
1026
  } | null | undefined;
1027
+ minPurchaseItems?: {
1028
+ productId: string;
1029
+ }[] | null | undefined;
935
1030
  target: "BILL";
936
- }, {
937
- excludeIds?: string[] | null | undefined;
1031
+ } | {
938
1032
  minPurchase?: {
939
1033
  amount: number;
940
1034
  precision: number;
941
1035
  } | null | undefined;
942
- target: "BILL";
943
- }> | z.ZodObject<z.extendShape<{
944
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
945
- }, {
946
- target: z.ZodLiteral<"ITEM">;
947
- strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
948
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
949
- }, {
950
- type: z.ZodLiteral<"SIMPLE">;
951
- withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
952
- }>, "strip", z.ZodTypeAny, {
953
- withAddons?: string[] | null | undefined;
954
- type: "SIMPLE";
955
- }, {
956
- withAddons?: string[] | null | undefined;
957
- type: "SIMPLE";
958
- }> | z.ZodObject<z.extendShape<{
959
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
960
- }, {
961
- type: z.ZodLiteral<"BUY_X_GET_Y">;
962
- x: z.ZodNumber;
963
- y: z.ZodNumber;
964
- }>, "strip", z.ZodTypeAny, {
965
- type: "BUY_X_GET_Y";
966
- x: number;
967
- y: number;
968
- }, {
969
- type: "BUY_X_GET_Y";
970
- x: number;
971
- y: number;
972
- }> | z.ZodObject<z.extendShape<{
973
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
974
- }, {
975
- type: z.ZodLiteral<"BUY_X_ITEM_A_GET_Y_ITEM_B">;
976
- itemAIds: z.ZodArray<z.ZodString, "many">;
977
- x: z.ZodNumber;
978
- y: z.ZodNumber;
979
- }>, "strip", z.ZodTypeAny, {
980
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
981
- x: number;
982
- y: number;
983
- itemAIds: string[];
984
- }, {
985
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
986
- x: number;
987
- y: number;
988
- itemAIds: string[];
989
- }> | z.ZodObject<z.extendShape<{
990
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
991
- }, {
992
- type: z.ZodLiteral<"BUY_X_GET_Y_V2">;
993
- priority: z.ZodEnum<["CHEAPEST_FIRST", "MOST_EXPENSIVE_FIRST"]>;
994
- itemAIds: z.ZodArray<z.ZodString, "many">;
995
- x: z.ZodNumber;
996
- y: z.ZodNumber;
997
- }>, "strip", z.ZodTypeAny, {
998
- type: "BUY_X_GET_Y_V2";
999
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1000
- x: number;
1001
- y: number;
1002
- itemAIds: string[];
1003
- }, {
1004
- type: "BUY_X_GET_Y_V2";
1005
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1006
- x: number;
1007
- y: number;
1008
- itemAIds: string[];
1009
- }> | z.ZodObject<z.extendShape<{
1010
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1011
- }, {
1012
- type: z.ZodLiteral<"COMBO">;
1013
- groups: z.ZodArray<z.ZodObject<{
1014
- itemIds: z.ZodArray<z.ZodString, "many">;
1015
- count: z.ZodNumber;
1016
- }, "strip", z.ZodTypeAny, {
1017
- count: number;
1018
- itemIds: string[];
1019
- }, {
1020
- count: number;
1021
- itemIds: string[];
1022
- }>, "many">;
1023
- atLeast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1024
- }>, "strip", z.ZodTypeAny, {
1025
- atLeast?: boolean | null | undefined;
1026
- groups: {
1027
- count: number;
1028
- itemIds: string[];
1029
- }[];
1030
- type: "COMBO";
1031
- }, {
1032
- atLeast?: boolean | null | undefined;
1033
- groups: {
1034
- count: number;
1035
- itemIds: string[];
1036
- }[];
1037
- type: "COMBO";
1038
- }>>;
1039
- targetIds: z.ZodArray<z.ZodString, "many">;
1040
- maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1041
- excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1042
- }>, "strip", z.ZodTypeAny, {
1036
+ minPurchaseItems?: {
1037
+ productId: string;
1038
+ }[] | null | undefined;
1043
1039
  maxQuantity?: number | null | undefined;
1044
1040
  excludeAddonPrice?: boolean | null | undefined;
1045
1041
  target: "ITEM";
@@ -1070,461 +1066,67 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
1070
1066
  type: "COMBO";
1071
1067
  };
1072
1068
  targetIds: string[];
1073
- }, {
1074
- maxQuantity?: number | null | undefined;
1075
- excludeAddonPrice?: boolean | null | undefined;
1076
- target: "ITEM";
1077
- strategy: {
1078
- withAddons?: string[] | null | undefined;
1079
- type: "SIMPLE";
1080
- } | {
1081
- type: "BUY_X_GET_Y";
1082
- x: number;
1083
- y: number;
1084
- } | {
1085
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1086
- x: number;
1087
- y: number;
1088
- itemAIds: string[];
1089
- } | {
1090
- type: "BUY_X_GET_Y_V2";
1091
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1092
- x: number;
1093
- y: number;
1094
- itemAIds: string[];
1095
- } | {
1096
- atLeast?: boolean | null | undefined;
1097
- groups: {
1098
- count: number;
1099
- itemIds: string[];
1100
- }[];
1101
- type: "COMBO";
1102
- };
1103
- targetIds: string[];
1104
- }> | z.ZodObject<z.extendShape<{
1105
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
1106
- }, {
1107
- target: z.ZodLiteral<"PAYMENT">;
1108
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1109
- amount: z.ZodNumber;
1110
- precision: z.ZodNumber;
1111
- }, "strip", z.ZodTypeAny, {
1112
- amount: number;
1113
- precision: number;
1114
- }, {
1115
- amount: number;
1116
- precision: number;
1117
- }>>>;
1118
- }>, "strip", z.ZodTypeAny, {
1119
- minPurchase?: {
1120
- amount: number;
1121
- precision: number;
1122
- } | null | undefined;
1123
- target: "PAYMENT";
1124
- }, {
1069
+ } | {
1125
1070
  minPurchase?: {
1126
1071
  amount: number;
1127
1072
  precision: number;
1128
1073
  } | null | undefined;
1074
+ minPurchaseItems?: {
1075
+ productId: string;
1076
+ }[] | null | undefined;
1129
1077
  target: "PAYMENT";
1130
- }>>;
1131
- priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1132
- success: z.ZodBoolean;
1133
- reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1134
- usedItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1135
- id: z.ZodString;
1136
- quantity: z.ZodNumber;
1137
- }, "strip", z.ZodTypeAny, {
1138
- id: string;
1139
- quantity: number;
1140
- }, {
1141
- id: string;
1142
- quantity: number;
1143
- }>, "many">>>;
1144
- toUse: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1145
- toGet: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1146
- maximumReached: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1147
- }>, {
1148
- items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1149
- name: z.ZodString;
1150
- from: z.ZodEnum<["COUNTER", "PROMOTION", "VOUCHER", "MEMBERSHIP", "FREE_CREDIT"]>;
1151
- referenceId: z.ZodString;
1152
- returnId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1153
- adjustment: z.ZodObject<{
1154
- type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
1155
- amount: z.ZodObject<{
1156
- amount: z.ZodNumber;
1157
- precision: z.ZodNumber;
1158
- }, "strip", z.ZodTypeAny, {
1159
- amount: number;
1160
- precision: number;
1161
- }, {
1162
- amount: number;
1163
- precision: number;
1164
- }>;
1165
- inclusive: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1166
- }, "strip", z.ZodTypeAny, {
1167
- inclusive?: boolean | null | undefined;
1168
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
1169
- amount: {
1170
- amount: number;
1171
- precision: number;
1172
- };
1173
- }, {
1078
+ };
1079
+ success: boolean;
1080
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
1081
+ referenceId: string;
1082
+ adjustment: {
1174
1083
  inclusive?: boolean | null | undefined;
1175
1084
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
1176
1085
  amount: {
1177
1086
  amount: number;
1178
1087
  precision: number;
1179
1088
  };
1180
- }>;
1181
- success: z.ZodBoolean;
1182
- reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1183
- options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
1184
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
1185
- }, {
1186
- target: z.ZodLiteral<"BILL">;
1187
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1188
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1189
- amount: z.ZodNumber;
1190
- precision: z.ZodNumber;
1191
- }, "strip", z.ZodTypeAny, {
1192
- amount: number;
1193
- precision: number;
1194
- }, {
1195
- amount: number;
1196
- precision: number;
1197
- }>>>;
1198
- }>, "strip", z.ZodTypeAny, {
1089
+ };
1090
+ }, {
1091
+ reason?: string | null | undefined;
1092
+ priority?: number | null | undefined;
1093
+ items?: string[] | null | undefined;
1094
+ adjustmentRule?: {
1095
+ type: "CAPPED_AT";
1096
+ } | null | undefined;
1097
+ customer?: {
1098
+ name?: string | null | undefined;
1099
+ id: string;
1100
+ } | null | undefined;
1101
+ availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
1102
+ usedItems?: {
1103
+ id: string;
1104
+ quantity: number;
1105
+ }[] | null | undefined;
1106
+ toUse?: string[] | null | undefined;
1107
+ toGet?: string[] | null | undefined;
1108
+ maximumReached?: boolean | null | undefined;
1109
+ returnId?: string | null | undefined;
1110
+ autoApplied?: boolean | null | undefined;
1111
+ name: string;
1112
+ options: {
1199
1113
  excludeIds?: string[] | null | undefined;
1200
1114
  minPurchase?: {
1201
1115
  amount: number;
1202
1116
  precision: number;
1203
1117
  } | null | undefined;
1118
+ minPurchaseItems?: {
1119
+ productId: string;
1120
+ }[] | null | undefined;
1204
1121
  target: "BILL";
1205
- }, {
1206
- excludeIds?: string[] | null | undefined;
1122
+ } | {
1207
1123
  minPurchase?: {
1208
1124
  amount: number;
1209
1125
  precision: number;
1210
1126
  } | null | undefined;
1211
- target: "BILL";
1212
- }> | z.ZodObject<z.extendShape<{
1213
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
1214
- }, {
1215
- target: z.ZodLiteral<"ITEM">;
1216
- strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
1217
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1218
- }, {
1219
- type: z.ZodLiteral<"SIMPLE">;
1220
- withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1221
- }>, "strip", z.ZodTypeAny, {
1222
- withAddons?: string[] | null | undefined;
1223
- type: "SIMPLE";
1224
- }, {
1225
- withAddons?: string[] | null | undefined;
1226
- type: "SIMPLE";
1227
- }> | z.ZodObject<z.extendShape<{
1228
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1229
- }, {
1230
- type: z.ZodLiteral<"BUY_X_GET_Y">;
1231
- x: z.ZodNumber;
1232
- y: z.ZodNumber;
1233
- }>, "strip", z.ZodTypeAny, {
1234
- type: "BUY_X_GET_Y";
1235
- x: number;
1236
- y: number;
1237
- }, {
1238
- type: "BUY_X_GET_Y";
1239
- x: number;
1240
- y: number;
1241
- }> | z.ZodObject<z.extendShape<{
1242
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1243
- }, {
1244
- type: z.ZodLiteral<"BUY_X_ITEM_A_GET_Y_ITEM_B">;
1245
- itemAIds: z.ZodArray<z.ZodString, "many">;
1246
- x: z.ZodNumber;
1247
- y: z.ZodNumber;
1248
- }>, "strip", z.ZodTypeAny, {
1249
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1250
- x: number;
1251
- y: number;
1252
- itemAIds: string[];
1253
- }, {
1254
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1255
- x: number;
1256
- y: number;
1257
- itemAIds: string[];
1258
- }> | z.ZodObject<z.extendShape<{
1259
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1260
- }, {
1261
- type: z.ZodLiteral<"BUY_X_GET_Y_V2">;
1262
- priority: z.ZodEnum<["CHEAPEST_FIRST", "MOST_EXPENSIVE_FIRST"]>;
1263
- itemAIds: z.ZodArray<z.ZodString, "many">;
1264
- x: z.ZodNumber;
1265
- y: z.ZodNumber;
1266
- }>, "strip", z.ZodTypeAny, {
1267
- type: "BUY_X_GET_Y_V2";
1268
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1269
- x: number;
1270
- y: number;
1271
- itemAIds: string[];
1272
- }, {
1273
- type: "BUY_X_GET_Y_V2";
1274
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1275
- x: number;
1276
- y: number;
1277
- itemAIds: string[];
1278
- }> | z.ZodObject<z.extendShape<{
1279
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
1280
- }, {
1281
- type: z.ZodLiteral<"COMBO">;
1282
- groups: z.ZodArray<z.ZodObject<{
1283
- itemIds: z.ZodArray<z.ZodString, "many">;
1284
- count: z.ZodNumber;
1285
- }, "strip", z.ZodTypeAny, {
1286
- count: number;
1287
- itemIds: string[];
1288
- }, {
1289
- count: number;
1290
- itemIds: string[];
1291
- }>, "many">;
1292
- atLeast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1293
- }>, "strip", z.ZodTypeAny, {
1294
- atLeast?: boolean | null | undefined;
1295
- groups: {
1296
- count: number;
1297
- itemIds: string[];
1298
- }[];
1299
- type: "COMBO";
1300
- }, {
1301
- atLeast?: boolean | null | undefined;
1302
- groups: {
1303
- count: number;
1304
- itemIds: string[];
1305
- }[];
1306
- type: "COMBO";
1307
- }>>;
1308
- targetIds: z.ZodArray<z.ZodString, "many">;
1309
- maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1310
- excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1311
- }>, "strip", z.ZodTypeAny, {
1312
- maxQuantity?: number | null | undefined;
1313
- excludeAddonPrice?: boolean | null | undefined;
1314
- target: "ITEM";
1315
- strategy: {
1316
- withAddons?: string[] | null | undefined;
1317
- type: "SIMPLE";
1318
- } | {
1319
- type: "BUY_X_GET_Y";
1320
- x: number;
1321
- y: number;
1322
- } | {
1323
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1324
- x: number;
1325
- y: number;
1326
- itemAIds: string[];
1327
- } | {
1328
- type: "BUY_X_GET_Y_V2";
1329
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1330
- x: number;
1331
- y: number;
1332
- itemAIds: string[];
1333
- } | {
1334
- atLeast?: boolean | null | undefined;
1335
- groups: {
1336
- count: number;
1337
- itemIds: string[];
1338
- }[];
1339
- type: "COMBO";
1340
- };
1341
- targetIds: string[];
1342
- }, {
1343
- maxQuantity?: number | null | undefined;
1344
- excludeAddonPrice?: boolean | null | undefined;
1345
- target: "ITEM";
1346
- strategy: {
1347
- withAddons?: string[] | null | undefined;
1348
- type: "SIMPLE";
1349
- } | {
1350
- type: "BUY_X_GET_Y";
1351
- x: number;
1352
- y: number;
1353
- } | {
1354
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1355
- x: number;
1356
- y: number;
1357
- itemAIds: string[];
1358
- } | {
1359
- type: "BUY_X_GET_Y_V2";
1360
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1361
- x: number;
1362
- y: number;
1363
- itemAIds: string[];
1364
- } | {
1365
- atLeast?: boolean | null | undefined;
1366
- groups: {
1367
- count: number;
1368
- itemIds: string[];
1369
- }[];
1370
- type: "COMBO";
1371
- };
1372
- targetIds: string[];
1373
- }> | z.ZodObject<z.extendShape<{
1374
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
1375
- }, {
1376
- target: z.ZodLiteral<"PAYMENT">;
1377
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1378
- amount: z.ZodNumber;
1379
- precision: z.ZodNumber;
1380
- }, "strip", z.ZodTypeAny, {
1381
- amount: number;
1382
- precision: number;
1383
- }, {
1384
- amount: number;
1385
- precision: number;
1386
- }>>>;
1387
- }>, "strip", z.ZodTypeAny, {
1388
- minPurchase?: {
1389
- amount: number;
1390
- precision: number;
1391
- } | null | undefined;
1392
- target: "PAYMENT";
1393
- }, {
1394
- minPurchase?: {
1395
- amount: number;
1396
- precision: number;
1397
- } | null | undefined;
1398
- target: "PAYMENT";
1399
- }>>;
1400
- availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
1401
- customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1402
- id: z.ZodString;
1403
- name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1404
- }, "strip", z.ZodTypeAny, {
1405
- name?: string | null | undefined;
1406
- id: string;
1407
- }, {
1408
- name?: string | null | undefined;
1409
- id: string;
1410
- }>>>;
1411
- autoApplied: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1412
- usedItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1413
- id: z.ZodString;
1414
- quantity: z.ZodNumber;
1415
- }, "strip", z.ZodTypeAny, {
1416
- id: string;
1417
- quantity: number;
1418
- }, {
1419
- id: string;
1420
- quantity: number;
1421
- }>, "many">>>;
1422
- toUse: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1423
- toGet: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1424
- maximumReached: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1425
- priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1426
- }>, "strip", z.ZodTypeAny, {
1427
- reason?: string | null | undefined;
1428
- priority?: number | null | undefined;
1429
- items?: string[] | null | undefined;
1430
- customer?: {
1431
- name?: string | null | undefined;
1432
- id: string;
1433
- } | null | undefined;
1434
- availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
1435
- usedItems?: {
1436
- id: string;
1437
- quantity: number;
1438
- }[] | null | undefined;
1439
- toUse?: string[] | null | undefined;
1440
- toGet?: string[] | null | undefined;
1441
- maximumReached?: boolean | null | undefined;
1442
- returnId?: string | null | undefined;
1443
- autoApplied?: boolean | null | undefined;
1444
- name: string;
1445
- options: {
1446
- excludeIds?: string[] | null | undefined;
1447
- minPurchase?: {
1448
- amount: number;
1449
- precision: number;
1450
- } | null | undefined;
1451
- target: "BILL";
1452
- } | {
1453
- maxQuantity?: number | null | undefined;
1454
- excludeAddonPrice?: boolean | null | undefined;
1455
- target: "ITEM";
1456
- strategy: {
1457
- withAddons?: string[] | null | undefined;
1458
- type: "SIMPLE";
1459
- } | {
1460
- type: "BUY_X_GET_Y";
1461
- x: number;
1462
- y: number;
1463
- } | {
1464
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
1465
- x: number;
1466
- y: number;
1467
- itemAIds: string[];
1468
- } | {
1469
- type: "BUY_X_GET_Y_V2";
1470
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
1471
- x: number;
1472
- y: number;
1473
- itemAIds: string[];
1474
- } | {
1475
- atLeast?: boolean | null | undefined;
1476
- groups: {
1477
- count: number;
1478
- itemIds: string[];
1479
- }[];
1480
- type: "COMBO";
1481
- };
1482
- targetIds: string[];
1483
- } | {
1484
- minPurchase?: {
1485
- amount: number;
1486
- precision: number;
1487
- } | null | undefined;
1488
- target: "PAYMENT";
1489
- };
1490
- success: boolean;
1491
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
1492
- referenceId: string;
1493
- adjustment: {
1494
- inclusive?: boolean | null | undefined;
1495
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
1496
- amount: {
1497
- amount: number;
1498
- precision: number;
1499
- };
1500
- };
1501
- }, {
1502
- reason?: string | null | undefined;
1503
- priority?: number | null | undefined;
1504
- items?: string[] | null | undefined;
1505
- customer?: {
1506
- name?: string | null | undefined;
1507
- id: string;
1508
- } | null | undefined;
1509
- availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
1510
- usedItems?: {
1511
- id: string;
1512
- quantity: number;
1513
- }[] | null | undefined;
1514
- toUse?: string[] | null | undefined;
1515
- toGet?: string[] | null | undefined;
1516
- maximumReached?: boolean | null | undefined;
1517
- returnId?: string | null | undefined;
1518
- autoApplied?: boolean | null | undefined;
1519
- name: string;
1520
- options: {
1521
- excludeIds?: string[] | null | undefined;
1522
- minPurchase?: {
1523
- amount: number;
1524
- precision: number;
1525
- } | null | undefined;
1526
- target: "BILL";
1527
- } | {
1127
+ minPurchaseItems?: {
1128
+ productId: string;
1129
+ }[] | null | undefined;
1528
1130
  maxQuantity?: number | null | undefined;
1529
1131
  excludeAddonPrice?: boolean | null | undefined;
1530
1132
  target: "ITEM";
@@ -1560,6 +1162,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
1560
1162
  amount: number;
1561
1163
  precision: number;
1562
1164
  } | null | undefined;
1165
+ minPurchaseItems?: {
1166
+ productId: string;
1167
+ }[] | null | undefined;
1563
1168
  target: "PAYMENT";
1564
1169
  };
1565
1170
  success: boolean;
@@ -2598,15 +2203,18 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
2598
2203
  attributeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2599
2204
  key: z.ZodString;
2600
2205
  type: z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"date">, z.ZodLiteral<"boolean">]>;
2601
- entity: z.ZodUnion<[z.ZodLiteral<"restaurant">, z.ZodLiteral<"item">, z.ZodLiteral<"inventorySku">, z.ZodLiteral<"inventoryRecipe">, z.ZodLiteral<"warehouse">]>;
2206
+ entity: z.ZodUnion<[z.ZodLiteral<"restaurant">, z.ZodLiteral<"item">, z.ZodLiteral<"group">, z.ZodLiteral<"inventorySku">, z.ZodLiteral<"inventoryRecipe">, z.ZodLiteral<"warehouse">]>;
2207
+ options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
2602
2208
  }, "strip", z.ZodTypeAny, {
2209
+ options?: any[] | null | undefined;
2603
2210
  type: "string" | "number" | "boolean" | "date";
2604
2211
  key: string;
2605
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2212
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
2606
2213
  }, {
2214
+ options?: any[] | null | undefined;
2607
2215
  type: "string" | "number" | "boolean" | "date";
2608
2216
  key: string;
2609
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2217
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
2610
2218
  }>, "many">>>;
2611
2219
  pf_agent: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodObject<{
2612
2220
  _id: z.ZodEffects<z.ZodString, string, string>;
@@ -2862,9 +2470,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
2862
2470
  expiredAt?: string | null | undefined;
2863
2471
  agentId?: string | null | undefined;
2864
2472
  attributeSettings?: {
2473
+ options?: any[] | null | undefined;
2865
2474
  type: "string" | "number" | "boolean" | "date";
2866
2475
  key: string;
2867
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2476
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
2868
2477
  }[] | null | undefined;
2869
2478
  pf_agent?: {
2870
2479
  clickupId?: string | null | undefined;
@@ -2928,9 +2537,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
2928
2537
  expiredAt?: string | null | undefined;
2929
2538
  agentId?: string | null | undefined;
2930
2539
  attributeSettings?: {
2540
+ options?: any[] | null | undefined;
2931
2541
  type: "string" | "number" | "boolean" | "date";
2932
2542
  key: string;
2933
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2543
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
2934
2544
  }[] | null | undefined;
2935
2545
  pf_agent?: {
2936
2546
  clickupId?: string | null | undefined;
@@ -3083,9 +2693,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3083
2693
  expiredAt?: string | null | undefined;
3084
2694
  agentId?: string | null | undefined;
3085
2695
  attributeSettings?: {
2696
+ options?: any[] | null | undefined;
3086
2697
  type: "string" | "number" | "boolean" | "date";
3087
2698
  key: string;
3088
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2699
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
3089
2700
  }[] | null | undefined;
3090
2701
  pf_agent?: {
3091
2702
  clickupId?: string | null | undefined;
@@ -3184,9 +2795,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3184
2795
  expiredAt?: string | null | undefined;
3185
2796
  agentId?: string | null | undefined;
3186
2797
  attributeSettings?: {
2798
+ options?: any[] | null | undefined;
3187
2799
  type: "string" | "number" | "boolean" | "date";
3188
2800
  key: string;
3189
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2801
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
3190
2802
  }[] | null | undefined;
3191
2803
  pf_agent?: {
3192
2804
  clickupId?: string | null | undefined;
@@ -3312,6 +2924,13 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3312
2924
  precision: number;
3313
2925
  };
3314
2926
  }>;
2927
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2928
+ type: z.ZodEnum<["CAPPED_AT"]>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ type: "CAPPED_AT";
2931
+ }, {
2932
+ type: "CAPPED_AT";
2933
+ }>>>;
3315
2934
  total: z.ZodObject<{
3316
2935
  currency: z.ZodIntersection<z.ZodString, z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>>;
3317
2936
  amount: z.ZodNumber;
@@ -3351,6 +2970,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3351
2970
  }, "strip", z.ZodTypeAny, {
3352
2971
  reason?: string | null | undefined;
3353
2972
  referenceId?: string | null | undefined;
2973
+ adjustmentRule?: {
2974
+ type: "CAPPED_AT";
2975
+ } | null | undefined;
3354
2976
  remark?: string | null | undefined;
3355
2977
  excludeIds?: string[] | null | undefined;
3356
2978
  total: {
@@ -3379,6 +3001,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3379
3001
  }, {
3380
3002
  reason?: string | null | undefined;
3381
3003
  referenceId?: string | null | undefined;
3004
+ adjustmentRule?: {
3005
+ type: "CAPPED_AT";
3006
+ } | null | undefined;
3382
3007
  remark?: string | null | undefined;
3383
3008
  excludeIds?: string[] | null | undefined;
3384
3009
  total: {
@@ -3653,6 +3278,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3653
3278
  reason?: string | null | undefined;
3654
3279
  priority?: number | null | undefined;
3655
3280
  items?: string[] | null | undefined;
3281
+ adjustmentRule?: {
3282
+ type: "CAPPED_AT";
3283
+ } | null | undefined;
3656
3284
  customer?: {
3657
3285
  name?: string | null | undefined;
3658
3286
  id: string;
@@ -3674,8 +3302,18 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3674
3302
  amount: number;
3675
3303
  precision: number;
3676
3304
  } | null | undefined;
3305
+ minPurchaseItems?: {
3306
+ productId: string;
3307
+ }[] | null | undefined;
3677
3308
  target: "BILL";
3678
3309
  } | {
3310
+ minPurchase?: {
3311
+ amount: number;
3312
+ precision: number;
3313
+ } | null | undefined;
3314
+ minPurchaseItems?: {
3315
+ productId: string;
3316
+ }[] | null | undefined;
3679
3317
  maxQuantity?: number | null | undefined;
3680
3318
  excludeAddonPrice?: boolean | null | undefined;
3681
3319
  target: "ITEM";
@@ -3711,6 +3349,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3711
3349
  amount: number;
3712
3350
  precision: number;
3713
3351
  } | null | undefined;
3352
+ minPurchaseItems?: {
3353
+ productId: string;
3354
+ }[] | null | undefined;
3714
3355
  target: "PAYMENT";
3715
3356
  };
3716
3357
  success: boolean;
@@ -3739,9 +3380,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3739
3380
  expiredAt?: string | null | undefined;
3740
3381
  agentId?: string | null | undefined;
3741
3382
  attributeSettings?: {
3383
+ options?: any[] | null | undefined;
3742
3384
  type: "string" | "number" | "boolean" | "date";
3743
3385
  key: string;
3744
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
3386
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
3745
3387
  }[] | null | undefined;
3746
3388
  pf_agent?: {
3747
3389
  clickupId?: string | null | undefined;
@@ -3987,6 +3629,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
3987
3629
  adjustments: Record<string, {
3988
3630
  reason?: string | null | undefined;
3989
3631
  referenceId?: string | null | undefined;
3632
+ adjustmentRule?: {
3633
+ type: "CAPPED_AT";
3634
+ } | null | undefined;
3990
3635
  remark?: string | null | undefined;
3991
3636
  excludeIds?: string[] | null | undefined;
3992
3637
  total: {
@@ -4028,6 +3673,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4028
3673
  adjustment?: Record<string, {
4029
3674
  reason?: string | null | undefined;
4030
3675
  referenceId?: string | null | undefined;
3676
+ adjustmentRule?: {
3677
+ type: "CAPPED_AT";
3678
+ } | null | undefined;
4031
3679
  remark?: string | null | undefined;
4032
3680
  excludeAddonPrice?: boolean | null | undefined;
4033
3681
  total: {
@@ -4183,6 +3831,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4183
3831
  reason?: string | null | undefined;
4184
3832
  priority?: number | null | undefined;
4185
3833
  items?: string[] | null | undefined;
3834
+ adjustmentRule?: {
3835
+ type: "CAPPED_AT";
3836
+ } | null | undefined;
4186
3837
  customer?: {
4187
3838
  name?: string | null | undefined;
4188
3839
  id: string;
@@ -4204,8 +3855,18 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4204
3855
  amount: number;
4205
3856
  precision: number;
4206
3857
  } | null | undefined;
3858
+ minPurchaseItems?: {
3859
+ productId: string;
3860
+ }[] | null | undefined;
4207
3861
  target: "BILL";
4208
3862
  } | {
3863
+ minPurchase?: {
3864
+ amount: number;
3865
+ precision: number;
3866
+ } | null | undefined;
3867
+ minPurchaseItems?: {
3868
+ productId: string;
3869
+ }[] | null | undefined;
4209
3870
  maxQuantity?: number | null | undefined;
4210
3871
  excludeAddonPrice?: boolean | null | undefined;
4211
3872
  target: "ITEM";
@@ -4241,6 +3902,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4241
3902
  amount: number;
4242
3903
  precision: number;
4243
3904
  } | null | undefined;
3905
+ minPurchaseItems?: {
3906
+ productId: string;
3907
+ }[] | null | undefined;
4244
3908
  target: "PAYMENT";
4245
3909
  };
4246
3910
  success: boolean;
@@ -4269,9 +3933,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4269
3933
  expiredAt?: string | null | undefined;
4270
3934
  agentId?: string | null | undefined;
4271
3935
  attributeSettings?: {
3936
+ options?: any[] | null | undefined;
4272
3937
  type: "string" | "number" | "boolean" | "date";
4273
3938
  key: string;
4274
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
3939
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
4275
3940
  }[] | null | undefined;
4276
3941
  pf_agent?: {
4277
3942
  clickupId?: string | null | undefined;
@@ -4517,6 +4182,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4517
4182
  adjustments: Record<string, {
4518
4183
  reason?: string | null | undefined;
4519
4184
  referenceId?: string | null | undefined;
4185
+ adjustmentRule?: {
4186
+ type: "CAPPED_AT";
4187
+ } | null | undefined;
4520
4188
  remark?: string | null | undefined;
4521
4189
  excludeIds?: string[] | null | undefined;
4522
4190
  total: {
@@ -4558,6 +4226,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4558
4226
  adjustment?: Record<string, {
4559
4227
  reason?: string | null | undefined;
4560
4228
  referenceId?: string | null | undefined;
4229
+ adjustmentRule?: {
4230
+ type: "CAPPED_AT";
4231
+ } | null | undefined;
4561
4232
  remark?: string | null | undefined;
4562
4233
  excludeAddonPrice?: boolean | null | undefined;
4563
4234
  total: {
@@ -4704,11 +4375,13 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4704
4375
  inclusive: boolean;
4705
4376
  ignoreDiscount: boolean;
4706
4377
  }>>>;
4378
+ printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4707
4379
  }, "strip", z.ZodTypeAny, {
4708
4380
  taxes?: {
4709
4381
  inclusive: boolean;
4710
4382
  ignoreDiscount: boolean;
4711
4383
  } | null | undefined;
4384
+ printReceiptAfterClose?: boolean | null | undefined;
4712
4385
  voidReturnStock?: boolean | null | undefined;
4713
4386
  autoAccept: boolean;
4714
4387
  autoSend: boolean;
@@ -4718,12 +4391,15 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4718
4391
  inclusive: boolean;
4719
4392
  ignoreDiscount: boolean;
4720
4393
  } | null | undefined;
4394
+ printReceiptAfterClose?: boolean | null | undefined;
4721
4395
  voidReturnStock?: boolean | null | undefined;
4722
4396
  autoAccept: boolean;
4723
4397
  autoSend: boolean;
4724
4398
  autoCloseBill: boolean;
4725
4399
  }>;
4400
+ shouldNotifyPos: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4726
4401
  }, "strip", z.ZodTypeAny, {
4402
+ shouldNotifyPos?: boolean | null | undefined;
4727
4403
  order: {
4728
4404
  remark?: string | null | undefined;
4729
4405
  user?: {
@@ -4749,6 +4425,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4749
4425
  reason?: string | null | undefined;
4750
4426
  priority?: number | null | undefined;
4751
4427
  items?: string[] | null | undefined;
4428
+ adjustmentRule?: {
4429
+ type: "CAPPED_AT";
4430
+ } | null | undefined;
4752
4431
  customer?: {
4753
4432
  name?: string | null | undefined;
4754
4433
  id: string;
@@ -4770,8 +4449,18 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4770
4449
  amount: number;
4771
4450
  precision: number;
4772
4451
  } | null | undefined;
4452
+ minPurchaseItems?: {
4453
+ productId: string;
4454
+ }[] | null | undefined;
4773
4455
  target: "BILL";
4774
4456
  } | {
4457
+ minPurchase?: {
4458
+ amount: number;
4459
+ precision: number;
4460
+ } | null | undefined;
4461
+ minPurchaseItems?: {
4462
+ productId: string;
4463
+ }[] | null | undefined;
4775
4464
  maxQuantity?: number | null | undefined;
4776
4465
  excludeAddonPrice?: boolean | null | undefined;
4777
4466
  target: "ITEM";
@@ -4807,6 +4496,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4807
4496
  amount: number;
4808
4497
  precision: number;
4809
4498
  } | null | undefined;
4499
+ minPurchaseItems?: {
4500
+ productId: string;
4501
+ }[] | null | undefined;
4810
4502
  target: "PAYMENT";
4811
4503
  };
4812
4504
  success: boolean;
@@ -4835,9 +4527,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
4835
4527
  expiredAt?: string | null | undefined;
4836
4528
  agentId?: string | null | undefined;
4837
4529
  attributeSettings?: {
4530
+ options?: any[] | null | undefined;
4838
4531
  type: "string" | "number" | "boolean" | "date";
4839
4532
  key: string;
4840
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
4533
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
4841
4534
  }[] | null | undefined;
4842
4535
  pf_agent?: {
4843
4536
  clickupId?: string | null | undefined;
@@ -5083,6 +4776,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5083
4776
  adjustments: Record<string, {
5084
4777
  reason?: string | null | undefined;
5085
4778
  referenceId?: string | null | undefined;
4779
+ adjustmentRule?: {
4780
+ type: "CAPPED_AT";
4781
+ } | null | undefined;
5086
4782
  remark?: string | null | undefined;
5087
4783
  excludeIds?: string[] | null | undefined;
5088
4784
  total: {
@@ -5124,6 +4820,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5124
4820
  adjustment?: Record<string, {
5125
4821
  reason?: string | null | undefined;
5126
4822
  referenceId?: string | null | undefined;
4823
+ adjustmentRule?: {
4824
+ type: "CAPPED_AT";
4825
+ } | null | undefined;
5127
4826
  remark?: string | null | undefined;
5128
4827
  excludeAddonPrice?: boolean | null | undefined;
5129
4828
  total: {
@@ -5261,12 +4960,14 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5261
4960
  inclusive: boolean;
5262
4961
  ignoreDiscount: boolean;
5263
4962
  } | null | undefined;
4963
+ printReceiptAfterClose?: boolean | null | undefined;
5264
4964
  voidReturnStock?: boolean | null | undefined;
5265
4965
  autoAccept: boolean;
5266
4966
  autoSend: boolean;
5267
4967
  autoCloseBill: boolean;
5268
4968
  };
5269
4969
  }, {
4970
+ shouldNotifyPos?: boolean | null | undefined;
5270
4971
  order: {
5271
4972
  remark?: string | null | undefined;
5272
4973
  user?: {
@@ -5292,6 +4993,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5292
4993
  reason?: string | null | undefined;
5293
4994
  priority?: number | null | undefined;
5294
4995
  items?: string[] | null | undefined;
4996
+ adjustmentRule?: {
4997
+ type: "CAPPED_AT";
4998
+ } | null | undefined;
5295
4999
  customer?: {
5296
5000
  name?: string | null | undefined;
5297
5001
  id: string;
@@ -5313,8 +5017,18 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5313
5017
  amount: number;
5314
5018
  precision: number;
5315
5019
  } | null | undefined;
5020
+ minPurchaseItems?: {
5021
+ productId: string;
5022
+ }[] | null | undefined;
5316
5023
  target: "BILL";
5317
5024
  } | {
5025
+ minPurchase?: {
5026
+ amount: number;
5027
+ precision: number;
5028
+ } | null | undefined;
5029
+ minPurchaseItems?: {
5030
+ productId: string;
5031
+ }[] | null | undefined;
5318
5032
  maxQuantity?: number | null | undefined;
5319
5033
  excludeAddonPrice?: boolean | null | undefined;
5320
5034
  target: "ITEM";
@@ -5350,6 +5064,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5350
5064
  amount: number;
5351
5065
  precision: number;
5352
5066
  } | null | undefined;
5067
+ minPurchaseItems?: {
5068
+ productId: string;
5069
+ }[] | null | undefined;
5353
5070
  target: "PAYMENT";
5354
5071
  };
5355
5072
  success: boolean;
@@ -5378,9 +5095,10 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5378
5095
  expiredAt?: string | null | undefined;
5379
5096
  agentId?: string | null | undefined;
5380
5097
  attributeSettings?: {
5098
+ options?: any[] | null | undefined;
5381
5099
  type: "string" | "number" | "boolean" | "date";
5382
5100
  key: string;
5383
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
5101
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
5384
5102
  }[] | null | undefined;
5385
5103
  pf_agent?: {
5386
5104
  clickupId?: string | null | undefined;
@@ -5626,6 +5344,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5626
5344
  adjustments: Record<string, {
5627
5345
  reason?: string | null | undefined;
5628
5346
  referenceId?: string | null | undefined;
5347
+ adjustmentRule?: {
5348
+ type: "CAPPED_AT";
5349
+ } | null | undefined;
5629
5350
  remark?: string | null | undefined;
5630
5351
  excludeIds?: string[] | null | undefined;
5631
5352
  total: {
@@ -5667,6 +5388,9 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5667
5388
  adjustment?: Record<string, {
5668
5389
  reason?: string | null | undefined;
5669
5390
  referenceId?: string | null | undefined;
5391
+ adjustmentRule?: {
5392
+ type: "CAPPED_AT";
5393
+ } | null | undefined;
5670
5394
  remark?: string | null | undefined;
5671
5395
  excludeAddonPrice?: boolean | null | undefined;
5672
5396
  total: {
@@ -5804,6 +5528,7 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5804
5528
  inclusive: boolean;
5805
5529
  ignoreDiscount: boolean;
5806
5530
  } | null | undefined;
5531
+ printReceiptAfterClose?: boolean | null | undefined;
5807
5532
  voidReturnStock?: boolean | null | undefined;
5808
5533
  autoAccept: boolean;
5809
5534
  autoSend: boolean;
@@ -5812,13 +5537,51 @@ export declare const FdtoCreateIncomingOrder: z.ZodObject<{
5812
5537
  }>;
5813
5538
  export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
5814
5539
  orderId: z.ZodString;
5815
- order: z.ZodObject<{
5816
- draft: z.ZodArray<z.ZodObject<{
5817
- id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5818
- productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5819
- subItems: z.ZodArray<z.ZodType<import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem, z.ZodTypeDef, import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem>, "many">;
5820
- quantity: z.ZodNumber;
5821
- remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5540
+ eventType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["DRIVER_INFO_CHANGED", "REFUND"]>>>;
5541
+ config: z.ZodObject<{
5542
+ autoAccept: z.ZodBoolean;
5543
+ autoSend: z.ZodBoolean;
5544
+ autoCloseBill: z.ZodBoolean;
5545
+ voidReturnStock: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5546
+ taxes: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5547
+ inclusive: z.ZodBoolean;
5548
+ ignoreDiscount: z.ZodBoolean;
5549
+ }, "strip", z.ZodTypeAny, {
5550
+ inclusive: boolean;
5551
+ ignoreDiscount: boolean;
5552
+ }, {
5553
+ inclusive: boolean;
5554
+ ignoreDiscount: boolean;
5555
+ }>>>;
5556
+ printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5557
+ }, "strip", z.ZodTypeAny, {
5558
+ taxes?: {
5559
+ inclusive: boolean;
5560
+ ignoreDiscount: boolean;
5561
+ } | null | undefined;
5562
+ printReceiptAfterClose?: boolean | null | undefined;
5563
+ voidReturnStock?: boolean | null | undefined;
5564
+ autoAccept: boolean;
5565
+ autoSend: boolean;
5566
+ autoCloseBill: boolean;
5567
+ }, {
5568
+ taxes?: {
5569
+ inclusive: boolean;
5570
+ ignoreDiscount: boolean;
5571
+ } | null | undefined;
5572
+ printReceiptAfterClose?: boolean | null | undefined;
5573
+ voidReturnStock?: boolean | null | undefined;
5574
+ autoAccept: boolean;
5575
+ autoSend: boolean;
5576
+ autoCloseBill: boolean;
5577
+ }>;
5578
+ order: z.ZodObject<{
5579
+ draft: z.ZodArray<z.ZodObject<{
5580
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5581
+ productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5582
+ subItems: z.ZodArray<z.ZodType<import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem, z.ZodTypeDef, import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem>, "many">;
5583
+ quantity: z.ZodNumber;
5584
+ remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5822
5585
  product: z.ZodObject<{
5823
5586
  code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5824
5587
  unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -6093,6 +5856,13 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6093
5856
  precision: number;
6094
5857
  };
6095
5858
  }>;
5859
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5860
+ type: z.ZodEnum<["CAPPED_AT"]>;
5861
+ }, "strip", z.ZodTypeAny, {
5862
+ type: "CAPPED_AT";
5863
+ }, {
5864
+ type: "CAPPED_AT";
5865
+ }>>>;
6096
5866
  total: z.ZodObject<{
6097
5867
  currency: z.ZodIntersection<z.ZodString, z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>>;
6098
5868
  amount: z.ZodNumber;
@@ -6131,6 +5901,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6131
5901
  }, "strip", z.ZodTypeAny, {
6132
5902
  reason?: string | null | undefined;
6133
5903
  referenceId?: string | null | undefined;
5904
+ adjustmentRule?: {
5905
+ type: "CAPPED_AT";
5906
+ } | null | undefined;
6134
5907
  remark?: string | null | undefined;
6135
5908
  excludeAddonPrice?: boolean | null | undefined;
6136
5909
  total: {
@@ -6159,6 +5932,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6159
5932
  }, {
6160
5933
  reason?: string | null | undefined;
6161
5934
  referenceId?: string | null | undefined;
5935
+ adjustmentRule?: {
5936
+ type: "CAPPED_AT";
5937
+ } | null | undefined;
6162
5938
  remark?: string | null | undefined;
6163
5939
  excludeAddonPrice?: boolean | null | undefined;
6164
5940
  total: {
@@ -6200,6 +5976,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6200
5976
  adjustment?: Record<string, {
6201
5977
  reason?: string | null | undefined;
6202
5978
  referenceId?: string | null | undefined;
5979
+ adjustmentRule?: {
5980
+ type: "CAPPED_AT";
5981
+ } | null | undefined;
6203
5982
  remark?: string | null | undefined;
6204
5983
  excludeAddonPrice?: boolean | null | undefined;
6205
5984
  total: {
@@ -6296,6 +6075,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6296
6075
  adjustment?: Record<string, {
6297
6076
  reason?: string | null | undefined;
6298
6077
  referenceId?: string | null | undefined;
6078
+ adjustmentRule?: {
6079
+ type: "CAPPED_AT";
6080
+ } | null | undefined;
6299
6081
  remark?: string | null | undefined;
6300
6082
  excludeAddonPrice?: boolean | null | undefined;
6301
6083
  total: {
@@ -6368,599 +6150,83 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6368
6150
  amount: number;
6369
6151
  precision: number;
6370
6152
  } | null | undefined;
6371
- customAttributes?: Record<string, any> | null | undefined;
6372
- name: string;
6373
- price: {
6374
- currency: "ALL" | "MYR" | "AED" | "AFN" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
6375
- amount: number;
6376
- precision: number;
6377
- };
6378
- };
6379
- subItems: import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem[];
6380
- }>, "many">;
6381
- user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6382
- _id: z.ZodString;
6383
- birthday: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
6384
- gender: z.ZodNullable<z.ZodOptional<z.ZodEnum<["MALE", "FEMALE"]>>>;
6385
- addresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6386
- name: z.ZodString;
6387
- address: z.ZodString;
6388
- coordinates: z.ZodArray<z.ZodNumber, "many">;
6389
- }, "strip", z.ZodTypeAny, {
6390
- name: string;
6391
- address: string;
6392
- coordinates: number[];
6393
- }, {
6394
- name: string;
6395
- address: string;
6396
- coordinates: number[];
6397
- }>, "many">>>;
6398
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6399
- photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6400
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6401
- phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6402
- imported: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6403
- source: z.ZodEnum<["FEEDME", "CITY_POS", "STOREHUB", "KERUYUn", "QISOFT", "WECHAT", "TEABAR", "NULL_MEMBER", "UMAI_POS", "QASHIER", "XILNET", "GENIUSPOS", "YHOFOODIE"]>;
6404
- raw: z.ZodRecord<z.ZodString, z.ZodAny>;
6405
- }, "strip", z.ZodTypeAny, {
6406
- raw: Record<string, any>;
6407
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6408
- }, {
6409
- raw: Record<string, any>;
6410
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6411
- }>>>;
6412
- }, "strip", z.ZodTypeAny, {
6413
- email?: string | null | undefined;
6414
- phoneNumber?: string | null | undefined;
6415
- birthday?: string | null | undefined;
6416
- gender?: "MALE" | "FEMALE" | null | undefined;
6417
- addresses?: {
6418
- name: string;
6419
- address: string;
6420
- coordinates: number[];
6421
- }[] | null | undefined;
6422
- photoURL?: string | null | undefined;
6423
- displayName?: string | null | undefined;
6424
- imported?: {
6425
- raw: Record<string, any>;
6426
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6427
- } | null | undefined;
6428
- _id: string;
6429
- }, {
6430
- email?: string | null | undefined;
6431
- phoneNumber?: string | null | undefined;
6432
- birthday?: string | null | undefined;
6433
- gender?: "MALE" | "FEMALE" | null | undefined;
6434
- addresses?: {
6435
- name: string;
6436
- address: string;
6437
- coordinates: number[];
6438
- }[] | null | undefined;
6439
- photoURL?: string | null | undefined;
6440
- displayName?: string | null | undefined;
6441
- imported?: {
6442
- raw: Record<string, any>;
6443
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6444
- } | null | undefined;
6445
- _id: string;
6446
- }>>>;
6447
- effects: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<z.extendShape<{
6448
- adjustment: z.ZodObject<{
6449
- type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
6450
- amount: z.ZodObject<{
6451
- amount: z.ZodNumber;
6452
- precision: z.ZodNumber;
6453
- }, "strip", z.ZodTypeAny, {
6454
- amount: number;
6455
- precision: number;
6456
- }, {
6457
- amount: number;
6458
- precision: number;
6459
- }>;
6460
- inclusive: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6461
- }, "strip", z.ZodTypeAny, {
6462
- inclusive?: boolean | null | undefined;
6463
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
6464
- amount: {
6465
- amount: number;
6466
- precision: number;
6467
- };
6468
- }, {
6469
- inclusive?: boolean | null | undefined;
6470
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
6471
- amount: {
6472
- amount: number;
6473
- precision: number;
6474
- };
6475
- }>;
6476
- availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
6477
- options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
6478
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6479
- }, {
6480
- target: z.ZodLiteral<"BILL">;
6481
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6482
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6483
- amount: z.ZodNumber;
6484
- precision: z.ZodNumber;
6485
- }, "strip", z.ZodTypeAny, {
6486
- amount: number;
6487
- precision: number;
6488
- }, {
6489
- amount: number;
6490
- precision: number;
6491
- }>>>;
6492
- }>, "strip", z.ZodTypeAny, {
6493
- excludeIds?: string[] | null | undefined;
6494
- minPurchase?: {
6495
- amount: number;
6496
- precision: number;
6497
- } | null | undefined;
6498
- target: "BILL";
6499
- }, {
6500
- excludeIds?: string[] | null | undefined;
6501
- minPurchase?: {
6502
- amount: number;
6503
- precision: number;
6504
- } | null | undefined;
6505
- target: "BILL";
6506
- }> | z.ZodObject<z.extendShape<{
6507
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6508
- }, {
6509
- target: z.ZodLiteral<"ITEM">;
6510
- strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
6511
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6512
- }, {
6513
- type: z.ZodLiteral<"SIMPLE">;
6514
- withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6515
- }>, "strip", z.ZodTypeAny, {
6516
- withAddons?: string[] | null | undefined;
6517
- type: "SIMPLE";
6518
- }, {
6519
- withAddons?: string[] | null | undefined;
6520
- type: "SIMPLE";
6521
- }> | z.ZodObject<z.extendShape<{
6522
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6523
- }, {
6524
- type: z.ZodLiteral<"BUY_X_GET_Y">;
6525
- x: z.ZodNumber;
6526
- y: z.ZodNumber;
6527
- }>, "strip", z.ZodTypeAny, {
6528
- type: "BUY_X_GET_Y";
6529
- x: number;
6530
- y: number;
6531
- }, {
6532
- type: "BUY_X_GET_Y";
6533
- x: number;
6534
- y: number;
6535
- }> | z.ZodObject<z.extendShape<{
6536
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6537
- }, {
6538
- type: z.ZodLiteral<"BUY_X_ITEM_A_GET_Y_ITEM_B">;
6539
- itemAIds: z.ZodArray<z.ZodString, "many">;
6540
- x: z.ZodNumber;
6541
- y: z.ZodNumber;
6542
- }>, "strip", z.ZodTypeAny, {
6543
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6544
- x: number;
6545
- y: number;
6546
- itemAIds: string[];
6547
- }, {
6548
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6549
- x: number;
6550
- y: number;
6551
- itemAIds: string[];
6552
- }> | z.ZodObject<z.extendShape<{
6553
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6554
- }, {
6555
- type: z.ZodLiteral<"BUY_X_GET_Y_V2">;
6556
- priority: z.ZodEnum<["CHEAPEST_FIRST", "MOST_EXPENSIVE_FIRST"]>;
6557
- itemAIds: z.ZodArray<z.ZodString, "many">;
6558
- x: z.ZodNumber;
6559
- y: z.ZodNumber;
6560
- }>, "strip", z.ZodTypeAny, {
6561
- type: "BUY_X_GET_Y_V2";
6562
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6563
- x: number;
6564
- y: number;
6565
- itemAIds: string[];
6566
- }, {
6567
- type: "BUY_X_GET_Y_V2";
6568
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6569
- x: number;
6570
- y: number;
6571
- itemAIds: string[];
6572
- }> | z.ZodObject<z.extendShape<{
6573
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6574
- }, {
6575
- type: z.ZodLiteral<"COMBO">;
6576
- groups: z.ZodArray<z.ZodObject<{
6577
- itemIds: z.ZodArray<z.ZodString, "many">;
6578
- count: z.ZodNumber;
6579
- }, "strip", z.ZodTypeAny, {
6580
- count: number;
6581
- itemIds: string[];
6582
- }, {
6583
- count: number;
6584
- itemIds: string[];
6585
- }>, "many">;
6586
- atLeast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6587
- }>, "strip", z.ZodTypeAny, {
6588
- atLeast?: boolean | null | undefined;
6589
- groups: {
6590
- count: number;
6591
- itemIds: string[];
6592
- }[];
6593
- type: "COMBO";
6594
- }, {
6595
- atLeast?: boolean | null | undefined;
6596
- groups: {
6597
- count: number;
6598
- itemIds: string[];
6599
- }[];
6600
- type: "COMBO";
6601
- }>>;
6602
- targetIds: z.ZodArray<z.ZodString, "many">;
6603
- maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6604
- excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6605
- }>, "strip", z.ZodTypeAny, {
6606
- maxQuantity?: number | null | undefined;
6607
- excludeAddonPrice?: boolean | null | undefined;
6608
- target: "ITEM";
6609
- strategy: {
6610
- withAddons?: string[] | null | undefined;
6611
- type: "SIMPLE";
6612
- } | {
6613
- type: "BUY_X_GET_Y";
6614
- x: number;
6615
- y: number;
6616
- } | {
6617
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6618
- x: number;
6619
- y: number;
6620
- itemAIds: string[];
6621
- } | {
6622
- type: "BUY_X_GET_Y_V2";
6623
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6624
- x: number;
6625
- y: number;
6626
- itemAIds: string[];
6627
- } | {
6628
- atLeast?: boolean | null | undefined;
6629
- groups: {
6630
- count: number;
6631
- itemIds: string[];
6632
- }[];
6633
- type: "COMBO";
6634
- };
6635
- targetIds: string[];
6636
- }, {
6637
- maxQuantity?: number | null | undefined;
6638
- excludeAddonPrice?: boolean | null | undefined;
6639
- target: "ITEM";
6640
- strategy: {
6641
- withAddons?: string[] | null | undefined;
6642
- type: "SIMPLE";
6643
- } | {
6644
- type: "BUY_X_GET_Y";
6645
- x: number;
6646
- y: number;
6647
- } | {
6648
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6649
- x: number;
6650
- y: number;
6651
- itemAIds: string[];
6652
- } | {
6653
- type: "BUY_X_GET_Y_V2";
6654
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6655
- x: number;
6656
- y: number;
6657
- itemAIds: string[];
6658
- } | {
6659
- atLeast?: boolean | null | undefined;
6660
- groups: {
6661
- count: number;
6662
- itemIds: string[];
6663
- }[];
6664
- type: "COMBO";
6665
- };
6666
- targetIds: string[];
6667
- }> | z.ZodObject<z.extendShape<{
6668
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6669
- }, {
6670
- target: z.ZodLiteral<"PAYMENT">;
6671
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6672
- amount: z.ZodNumber;
6673
- precision: z.ZodNumber;
6674
- }, "strip", z.ZodTypeAny, {
6675
- amount: number;
6676
- precision: number;
6677
- }, {
6678
- amount: number;
6679
- precision: number;
6680
- }>>>;
6681
- }>, "strip", z.ZodTypeAny, {
6682
- minPurchase?: {
6683
- amount: number;
6684
- precision: number;
6685
- } | null | undefined;
6686
- target: "PAYMENT";
6687
- }, {
6688
- minPurchase?: {
6689
- amount: number;
6690
- precision: number;
6691
- } | null | undefined;
6692
- target: "PAYMENT";
6693
- }>>;
6694
- priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6695
- }, {
6696
- adjustment: z.ZodObject<{
6697
- type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
6698
- amount: z.ZodObject<{
6699
- amount: z.ZodNumber;
6700
- precision: z.ZodNumber;
6701
- }, "strip", z.ZodTypeAny, {
6702
- amount: number;
6703
- precision: number;
6704
- }, {
6705
- amount: number;
6706
- precision: number;
6707
- }>;
6708
- inclusive: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6709
- }, "strip", z.ZodTypeAny, {
6710
- inclusive?: boolean | null | undefined;
6711
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
6712
- amount: {
6713
- amount: number;
6714
- precision: number;
6715
- };
6716
- }, {
6717
- inclusive?: boolean | null | undefined;
6718
- type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
6719
- amount: {
6720
- amount: number;
6721
- precision: number;
6722
- };
6723
- }>;
6724
- availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
6725
- options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
6726
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6727
- }, {
6728
- target: z.ZodLiteral<"BILL">;
6729
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6730
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6731
- amount: z.ZodNumber;
6732
- precision: z.ZodNumber;
6733
- }, "strip", z.ZodTypeAny, {
6734
- amount: number;
6735
- precision: number;
6736
- }, {
6737
- amount: number;
6738
- precision: number;
6739
- }>>>;
6740
- }>, "strip", z.ZodTypeAny, {
6741
- excludeIds?: string[] | null | undefined;
6742
- minPurchase?: {
6743
- amount: number;
6744
- precision: number;
6745
- } | null | undefined;
6746
- target: "BILL";
6747
- }, {
6748
- excludeIds?: string[] | null | undefined;
6749
- minPurchase?: {
6750
- amount: number;
6751
- precision: number;
6752
- } | null | undefined;
6753
- target: "BILL";
6754
- }> | z.ZodObject<z.extendShape<{
6755
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6756
- }, {
6757
- target: z.ZodLiteral<"ITEM">;
6758
- strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
6759
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6760
- }, {
6761
- type: z.ZodLiteral<"SIMPLE">;
6762
- withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6763
- }>, "strip", z.ZodTypeAny, {
6764
- withAddons?: string[] | null | undefined;
6765
- type: "SIMPLE";
6766
- }, {
6767
- withAddons?: string[] | null | undefined;
6768
- type: "SIMPLE";
6769
- }> | z.ZodObject<z.extendShape<{
6770
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6771
- }, {
6772
- type: z.ZodLiteral<"BUY_X_GET_Y">;
6773
- x: z.ZodNumber;
6774
- y: z.ZodNumber;
6775
- }>, "strip", z.ZodTypeAny, {
6776
- type: "BUY_X_GET_Y";
6777
- x: number;
6778
- y: number;
6779
- }, {
6780
- type: "BUY_X_GET_Y";
6781
- x: number;
6782
- y: number;
6783
- }> | z.ZodObject<z.extendShape<{
6784
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6785
- }, {
6786
- type: z.ZodLiteral<"BUY_X_ITEM_A_GET_Y_ITEM_B">;
6787
- itemAIds: z.ZodArray<z.ZodString, "many">;
6788
- x: z.ZodNumber;
6789
- y: z.ZodNumber;
6790
- }>, "strip", z.ZodTypeAny, {
6791
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6792
- x: number;
6793
- y: number;
6794
- itemAIds: string[];
6795
- }, {
6796
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6797
- x: number;
6798
- y: number;
6799
- itemAIds: string[];
6800
- }> | z.ZodObject<z.extendShape<{
6801
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6802
- }, {
6803
- type: z.ZodLiteral<"BUY_X_GET_Y_V2">;
6804
- priority: z.ZodEnum<["CHEAPEST_FIRST", "MOST_EXPENSIVE_FIRST"]>;
6805
- itemAIds: z.ZodArray<z.ZodString, "many">;
6806
- x: z.ZodNumber;
6807
- y: z.ZodNumber;
6808
- }>, "strip", z.ZodTypeAny, {
6809
- type: "BUY_X_GET_Y_V2";
6810
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6811
- x: number;
6812
- y: number;
6813
- itemAIds: string[];
6814
- }, {
6815
- type: "BUY_X_GET_Y_V2";
6816
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6817
- x: number;
6818
- y: number;
6819
- itemAIds: string[];
6820
- }> | z.ZodObject<z.extendShape<{
6821
- type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
6822
- }, {
6823
- type: z.ZodLiteral<"COMBO">;
6824
- groups: z.ZodArray<z.ZodObject<{
6825
- itemIds: z.ZodArray<z.ZodString, "many">;
6826
- count: z.ZodNumber;
6827
- }, "strip", z.ZodTypeAny, {
6828
- count: number;
6829
- itemIds: string[];
6830
- }, {
6831
- count: number;
6832
- itemIds: string[];
6833
- }>, "many">;
6834
- atLeast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6835
- }>, "strip", z.ZodTypeAny, {
6836
- atLeast?: boolean | null | undefined;
6837
- groups: {
6838
- count: number;
6839
- itemIds: string[];
6840
- }[];
6841
- type: "COMBO";
6842
- }, {
6843
- atLeast?: boolean | null | undefined;
6844
- groups: {
6845
- count: number;
6846
- itemIds: string[];
6847
- }[];
6848
- type: "COMBO";
6849
- }>>;
6850
- targetIds: z.ZodArray<z.ZodString, "many">;
6851
- maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6852
- excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6853
- }>, "strip", z.ZodTypeAny, {
6854
- maxQuantity?: number | null | undefined;
6855
- excludeAddonPrice?: boolean | null | undefined;
6856
- target: "ITEM";
6857
- strategy: {
6858
- withAddons?: string[] | null | undefined;
6859
- type: "SIMPLE";
6860
- } | {
6861
- type: "BUY_X_GET_Y";
6862
- x: number;
6863
- y: number;
6864
- } | {
6865
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6866
- x: number;
6867
- y: number;
6868
- itemAIds: string[];
6869
- } | {
6870
- type: "BUY_X_GET_Y_V2";
6871
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6872
- x: number;
6873
- y: number;
6874
- itemAIds: string[];
6875
- } | {
6876
- atLeast?: boolean | null | undefined;
6877
- groups: {
6878
- count: number;
6879
- itemIds: string[];
6880
- }[];
6881
- type: "COMBO";
6882
- };
6883
- targetIds: string[];
6884
- }, {
6885
- maxQuantity?: number | null | undefined;
6886
- excludeAddonPrice?: boolean | null | undefined;
6887
- target: "ITEM";
6888
- strategy: {
6889
- withAddons?: string[] | null | undefined;
6890
- type: "SIMPLE";
6891
- } | {
6892
- type: "BUY_X_GET_Y";
6893
- x: number;
6894
- y: number;
6895
- } | {
6896
- type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
6897
- x: number;
6898
- y: number;
6899
- itemAIds: string[];
6900
- } | {
6901
- type: "BUY_X_GET_Y_V2";
6902
- priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
6903
- x: number;
6904
- y: number;
6905
- itemAIds: string[];
6906
- } | {
6907
- atLeast?: boolean | null | undefined;
6908
- groups: {
6909
- count: number;
6910
- itemIds: string[];
6911
- }[];
6912
- type: "COMBO";
6913
- };
6914
- targetIds: string[];
6915
- }> | z.ZodObject<z.extendShape<{
6916
- target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6917
- }, {
6918
- target: z.ZodLiteral<"PAYMENT">;
6919
- minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6920
- amount: z.ZodNumber;
6921
- precision: z.ZodNumber;
6922
- }, "strip", z.ZodTypeAny, {
6923
- amount: number;
6924
- precision: number;
6925
- }, {
6926
- amount: number;
6927
- precision: number;
6928
- }>>>;
6929
- }>, "strip", z.ZodTypeAny, {
6930
- minPurchase?: {
6931
- amount: number;
6932
- precision: number;
6933
- } | null | undefined;
6934
- target: "PAYMENT";
6935
- }, {
6936
- minPurchase?: {
6937
- amount: number;
6938
- precision: number;
6939
- } | null | undefined;
6940
- target: "PAYMENT";
6941
- }>>;
6942
- priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6943
- success: z.ZodBoolean;
6944
- reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6945
- usedItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6946
- id: z.ZodString;
6947
- quantity: z.ZodNumber;
6153
+ customAttributes?: Record<string, any> | null | undefined;
6154
+ name: string;
6155
+ price: {
6156
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
6157
+ amount: number;
6158
+ precision: number;
6159
+ };
6160
+ };
6161
+ subItems: import("./incoming-order-to-bill.dto").FdtoOrderItemSubItem[];
6162
+ }>, "many">;
6163
+ user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6164
+ _id: z.ZodString;
6165
+ birthday: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
6166
+ gender: z.ZodNullable<z.ZodOptional<z.ZodEnum<["MALE", "FEMALE"]>>>;
6167
+ addresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6168
+ name: z.ZodString;
6169
+ address: z.ZodString;
6170
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
6948
6171
  }, "strip", z.ZodTypeAny, {
6949
- id: string;
6950
- quantity: number;
6172
+ name: string;
6173
+ address: string;
6174
+ coordinates: number[];
6951
6175
  }, {
6952
- id: string;
6953
- quantity: number;
6176
+ name: string;
6177
+ address: string;
6178
+ coordinates: number[];
6954
6179
  }>, "many">>>;
6955
- toUse: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6956
- toGet: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6957
- maximumReached: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6958
- }>, {
6959
- items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6960
- name: z.ZodString;
6961
- from: z.ZodEnum<["COUNTER", "PROMOTION", "VOUCHER", "MEMBERSHIP", "FREE_CREDIT"]>;
6962
- referenceId: z.ZodString;
6963
- returnId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6180
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6181
+ photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6182
+ displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6183
+ phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6184
+ imported: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6185
+ source: z.ZodEnum<["FEEDME", "CITY_POS", "STOREHUB", "KERUYUn", "QISOFT", "WECHAT", "TEABAR", "NULL_MEMBER", "UMAI_POS", "QASHIER", "XILNET", "GENIUSPOS", "YHOFOODIE"]>;
6186
+ raw: z.ZodRecord<z.ZodString, z.ZodAny>;
6187
+ }, "strip", z.ZodTypeAny, {
6188
+ raw: Record<string, any>;
6189
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6190
+ }, {
6191
+ raw: Record<string, any>;
6192
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6193
+ }>>>;
6194
+ }, "strip", z.ZodTypeAny, {
6195
+ email?: string | null | undefined;
6196
+ phoneNumber?: string | null | undefined;
6197
+ birthday?: string | null | undefined;
6198
+ gender?: "MALE" | "FEMALE" | null | undefined;
6199
+ addresses?: {
6200
+ name: string;
6201
+ address: string;
6202
+ coordinates: number[];
6203
+ }[] | null | undefined;
6204
+ photoURL?: string | null | undefined;
6205
+ displayName?: string | null | undefined;
6206
+ imported?: {
6207
+ raw: Record<string, any>;
6208
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6209
+ } | null | undefined;
6210
+ _id: string;
6211
+ }, {
6212
+ email?: string | null | undefined;
6213
+ phoneNumber?: string | null | undefined;
6214
+ birthday?: string | null | undefined;
6215
+ gender?: "MALE" | "FEMALE" | null | undefined;
6216
+ addresses?: {
6217
+ name: string;
6218
+ address: string;
6219
+ coordinates: number[];
6220
+ }[] | null | undefined;
6221
+ photoURL?: string | null | undefined;
6222
+ displayName?: string | null | undefined;
6223
+ imported?: {
6224
+ raw: Record<string, any>;
6225
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
6226
+ } | null | undefined;
6227
+ _id: string;
6228
+ }>>>;
6229
+ effects: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
6964
6230
  adjustment: z.ZodObject<{
6965
6231
  type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
6966
6232
  amount: z.ZodObject<{
@@ -6989,13 +6255,16 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
6989
6255
  precision: number;
6990
6256
  };
6991
6257
  }>;
6992
- success: z.ZodBoolean;
6993
- reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6258
+ availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
6259
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6260
+ type: z.ZodEnum<["CAPPED_AT"]>;
6261
+ }, "strip", z.ZodTypeAny, {
6262
+ type: "CAPPED_AT";
6263
+ }, {
6264
+ type: "CAPPED_AT";
6265
+ }>>>;
6994
6266
  options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
6995
6267
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6996
- }, {
6997
- target: z.ZodLiteral<"BILL">;
6998
- excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6999
6268
  minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7000
6269
  amount: z.ZodNumber;
7001
6270
  precision: z.ZodNumber;
@@ -7006,12 +6275,25 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7006
6275
  amount: number;
7007
6276
  precision: number;
7008
6277
  }>>>;
6278
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6279
+ productId: z.ZodString;
6280
+ }, "strip", z.ZodTypeAny, {
6281
+ productId: string;
6282
+ }, {
6283
+ productId: string;
6284
+ }>, "many">>>;
6285
+ }, {
6286
+ target: z.ZodLiteral<"BILL">;
6287
+ excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7009
6288
  }>, "strip", z.ZodTypeAny, {
7010
6289
  excludeIds?: string[] | null | undefined;
7011
6290
  minPurchase?: {
7012
6291
  amount: number;
7013
6292
  precision: number;
7014
6293
  } | null | undefined;
6294
+ minPurchaseItems?: {
6295
+ productId: string;
6296
+ }[] | null | undefined;
7015
6297
  target: "BILL";
7016
6298
  }, {
7017
6299
  excludeIds?: string[] | null | undefined;
@@ -7019,9 +6301,29 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7019
6301
  amount: number;
7020
6302
  precision: number;
7021
6303
  } | null | undefined;
6304
+ minPurchaseItems?: {
6305
+ productId: string;
6306
+ }[] | null | undefined;
7022
6307
  target: "BILL";
7023
6308
  }> | z.ZodObject<z.extendShape<{
7024
6309
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
6310
+ minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6311
+ amount: z.ZodNumber;
6312
+ precision: z.ZodNumber;
6313
+ }, "strip", z.ZodTypeAny, {
6314
+ amount: number;
6315
+ precision: number;
6316
+ }, {
6317
+ amount: number;
6318
+ precision: number;
6319
+ }>>>;
6320
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6321
+ productId: z.ZodString;
6322
+ }, "strip", z.ZodTypeAny, {
6323
+ productId: string;
6324
+ }, {
6325
+ productId: string;
6326
+ }>, "many">>>;
7025
6327
  }, {
7026
6328
  target: z.ZodLiteral<"ITEM">;
7027
6329
  strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
@@ -7120,6 +6422,13 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7120
6422
  maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7121
6423
  excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
7122
6424
  }>, "strip", z.ZodTypeAny, {
6425
+ minPurchase?: {
6426
+ amount: number;
6427
+ precision: number;
6428
+ } | null | undefined;
6429
+ minPurchaseItems?: {
6430
+ productId: string;
6431
+ }[] | null | undefined;
7123
6432
  maxQuantity?: number | null | undefined;
7124
6433
  excludeAddonPrice?: boolean | null | undefined;
7125
6434
  target: "ITEM";
@@ -7151,6 +6460,13 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7151
6460
  };
7152
6461
  targetIds: string[];
7153
6462
  }, {
6463
+ minPurchase?: {
6464
+ amount: number;
6465
+ precision: number;
6466
+ } | null | undefined;
6467
+ minPurchaseItems?: {
6468
+ productId: string;
6469
+ }[] | null | undefined;
7154
6470
  maxQuantity?: number | null | undefined;
7155
6471
  excludeAddonPrice?: boolean | null | undefined;
7156
6472
  target: "ITEM";
@@ -7183,8 +6499,6 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7183
6499
  targetIds: string[];
7184
6500
  }> | z.ZodObject<z.extendShape<{
7185
6501
  target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
7186
- }, {
7187
- target: z.ZodLiteral<"PAYMENT">;
7188
6502
  minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7189
6503
  amount: z.ZodNumber;
7190
6504
  precision: z.ZodNumber;
@@ -7195,31 +6509,38 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7195
6509
  amount: number;
7196
6510
  precision: number;
7197
6511
  }>>>;
6512
+ minPurchaseItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6513
+ productId: z.ZodString;
6514
+ }, "strip", z.ZodTypeAny, {
6515
+ productId: string;
6516
+ }, {
6517
+ productId: string;
6518
+ }>, "many">>>;
6519
+ }, {
6520
+ target: z.ZodLiteral<"PAYMENT">;
7198
6521
  }>, "strip", z.ZodTypeAny, {
7199
6522
  minPurchase?: {
7200
6523
  amount: number;
7201
6524
  precision: number;
7202
6525
  } | null | undefined;
6526
+ minPurchaseItems?: {
6527
+ productId: string;
6528
+ }[] | null | undefined;
7203
6529
  target: "PAYMENT";
7204
6530
  }, {
7205
6531
  minPurchase?: {
7206
6532
  amount: number;
7207
6533
  precision: number;
7208
6534
  } | null | undefined;
6535
+ minPurchaseItems?: {
6536
+ productId: string;
6537
+ }[] | null | undefined;
7209
6538
  target: "PAYMENT";
7210
6539
  }>>;
7211
- availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
7212
- customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7213
- id: z.ZodString;
7214
- name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7215
- }, "strip", z.ZodTypeAny, {
7216
- name?: string | null | undefined;
7217
- id: string;
7218
- }, {
7219
- name?: string | null | undefined;
7220
- id: string;
7221
- }>>>;
7222
- autoApplied: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6540
+ priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6541
+ }, {
6542
+ success: z.ZodBoolean;
6543
+ reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7223
6544
  usedItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
7224
6545
  id: z.ZodString;
7225
6546
  quantity: z.ZodNumber;
@@ -7233,11 +6554,29 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7233
6554
  toUse: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7234
6555
  toGet: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7235
6556
  maximumReached: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
7236
- priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6557
+ items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6558
+ name: z.ZodString;
6559
+ from: z.ZodEnum<["COUNTER", "PROMOTION", "VOUCHER", "MEMBERSHIP", "FREE_CREDIT"]>;
6560
+ referenceId: z.ZodString;
6561
+ returnId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6562
+ customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6563
+ id: z.ZodString;
6564
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6565
+ }, "strip", z.ZodTypeAny, {
6566
+ name?: string | null | undefined;
6567
+ id: string;
6568
+ }, {
6569
+ name?: string | null | undefined;
6570
+ id: string;
6571
+ }>>>;
6572
+ autoApplied: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
7237
6573
  }>, "strip", z.ZodTypeAny, {
7238
6574
  reason?: string | null | undefined;
7239
6575
  priority?: number | null | undefined;
7240
6576
  items?: string[] | null | undefined;
6577
+ adjustmentRule?: {
6578
+ type: "CAPPED_AT";
6579
+ } | null | undefined;
7241
6580
  customer?: {
7242
6581
  name?: string | null | undefined;
7243
6582
  id: string;
@@ -7259,8 +6598,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7259
6598
  amount: number;
7260
6599
  precision: number;
7261
6600
  } | null | undefined;
6601
+ minPurchaseItems?: {
6602
+ productId: string;
6603
+ }[] | null | undefined;
7262
6604
  target: "BILL";
7263
6605
  } | {
6606
+ minPurchase?: {
6607
+ amount: number;
6608
+ precision: number;
6609
+ } | null | undefined;
6610
+ minPurchaseItems?: {
6611
+ productId: string;
6612
+ }[] | null | undefined;
7264
6613
  maxQuantity?: number | null | undefined;
7265
6614
  excludeAddonPrice?: boolean | null | undefined;
7266
6615
  target: "ITEM";
@@ -7296,6 +6645,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7296
6645
  amount: number;
7297
6646
  precision: number;
7298
6647
  } | null | undefined;
6648
+ minPurchaseItems?: {
6649
+ productId: string;
6650
+ }[] | null | undefined;
7299
6651
  target: "PAYMENT";
7300
6652
  };
7301
6653
  success: boolean;
@@ -7313,6 +6665,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7313
6665
  reason?: string | null | undefined;
7314
6666
  priority?: number | null | undefined;
7315
6667
  items?: string[] | null | undefined;
6668
+ adjustmentRule?: {
6669
+ type: "CAPPED_AT";
6670
+ } | null | undefined;
7316
6671
  customer?: {
7317
6672
  name?: string | null | undefined;
7318
6673
  id: string;
@@ -7334,8 +6689,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7334
6689
  amount: number;
7335
6690
  precision: number;
7336
6691
  } | null | undefined;
6692
+ minPurchaseItems?: {
6693
+ productId: string;
6694
+ }[] | null | undefined;
7337
6695
  target: "BILL";
7338
6696
  } | {
6697
+ minPurchase?: {
6698
+ amount: number;
6699
+ precision: number;
6700
+ } | null | undefined;
6701
+ minPurchaseItems?: {
6702
+ productId: string;
6703
+ }[] | null | undefined;
7339
6704
  maxQuantity?: number | null | undefined;
7340
6705
  excludeAddonPrice?: boolean | null | undefined;
7341
6706
  target: "ITEM";
@@ -7371,6 +6736,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
7371
6736
  amount: number;
7372
6737
  precision: number;
7373
6738
  } | null | undefined;
6739
+ minPurchaseItems?: {
6740
+ productId: string;
6741
+ }[] | null | undefined;
7374
6742
  target: "PAYMENT";
7375
6743
  };
7376
6744
  success: boolean;
@@ -8409,15 +7777,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
8409
7777
  attributeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
8410
7778
  key: z.ZodString;
8411
7779
  type: z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"date">, z.ZodLiteral<"boolean">]>;
8412
- entity: z.ZodUnion<[z.ZodLiteral<"restaurant">, z.ZodLiteral<"item">, z.ZodLiteral<"inventorySku">, z.ZodLiteral<"inventoryRecipe">, z.ZodLiteral<"warehouse">]>;
7780
+ entity: z.ZodUnion<[z.ZodLiteral<"restaurant">, z.ZodLiteral<"item">, z.ZodLiteral<"group">, z.ZodLiteral<"inventorySku">, z.ZodLiteral<"inventoryRecipe">, z.ZodLiteral<"warehouse">]>;
7781
+ options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
8413
7782
  }, "strip", z.ZodTypeAny, {
7783
+ options?: any[] | null | undefined;
8414
7784
  type: "string" | "number" | "boolean" | "date";
8415
7785
  key: string;
8416
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
7786
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
8417
7787
  }, {
7788
+ options?: any[] | null | undefined;
8418
7789
  type: "string" | "number" | "boolean" | "date";
8419
7790
  key: string;
8420
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
7791
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
8421
7792
  }>, "many">>>;
8422
7793
  pf_agent: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodObject<{
8423
7794
  _id: z.ZodEffects<z.ZodString, string, string>;
@@ -8673,9 +8044,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
8673
8044
  expiredAt?: string | null | undefined;
8674
8045
  agentId?: string | null | undefined;
8675
8046
  attributeSettings?: {
8047
+ options?: any[] | null | undefined;
8676
8048
  type: "string" | "number" | "boolean" | "date";
8677
8049
  key: string;
8678
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8050
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
8679
8051
  }[] | null | undefined;
8680
8052
  pf_agent?: {
8681
8053
  clickupId?: string | null | undefined;
@@ -8739,9 +8111,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
8739
8111
  expiredAt?: string | null | undefined;
8740
8112
  agentId?: string | null | undefined;
8741
8113
  attributeSettings?: {
8114
+ options?: any[] | null | undefined;
8742
8115
  type: "string" | "number" | "boolean" | "date";
8743
8116
  key: string;
8744
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8117
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
8745
8118
  }[] | null | undefined;
8746
8119
  pf_agent?: {
8747
8120
  clickupId?: string | null | undefined;
@@ -8894,9 +8267,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
8894
8267
  expiredAt?: string | null | undefined;
8895
8268
  agentId?: string | null | undefined;
8896
8269
  attributeSettings?: {
8270
+ options?: any[] | null | undefined;
8897
8271
  type: "string" | "number" | "boolean" | "date";
8898
8272
  key: string;
8899
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8273
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
8900
8274
  }[] | null | undefined;
8901
8275
  pf_agent?: {
8902
8276
  clickupId?: string | null | undefined;
@@ -8995,9 +8369,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
8995
8369
  expiredAt?: string | null | undefined;
8996
8370
  agentId?: string | null | undefined;
8997
8371
  attributeSettings?: {
8372
+ options?: any[] | null | undefined;
8998
8373
  type: "string" | "number" | "boolean" | "date";
8999
8374
  key: string;
9000
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8375
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
9001
8376
  }[] | null | undefined;
9002
8377
  pf_agent?: {
9003
8378
  clickupId?: string | null | undefined;
@@ -9123,6 +8498,13 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9123
8498
  precision: number;
9124
8499
  };
9125
8500
  }>;
8501
+ adjustmentRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8502
+ type: z.ZodEnum<["CAPPED_AT"]>;
8503
+ }, "strip", z.ZodTypeAny, {
8504
+ type: "CAPPED_AT";
8505
+ }, {
8506
+ type: "CAPPED_AT";
8507
+ }>>>;
9126
8508
  total: z.ZodObject<{
9127
8509
  currency: z.ZodIntersection<z.ZodString, z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>>;
9128
8510
  amount: z.ZodNumber;
@@ -9162,6 +8544,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9162
8544
  }, "strip", z.ZodTypeAny, {
9163
8545
  reason?: string | null | undefined;
9164
8546
  referenceId?: string | null | undefined;
8547
+ adjustmentRule?: {
8548
+ type: "CAPPED_AT";
8549
+ } | null | undefined;
9165
8550
  remark?: string | null | undefined;
9166
8551
  excludeIds?: string[] | null | undefined;
9167
8552
  total: {
@@ -9190,6 +8575,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9190
8575
  }, {
9191
8576
  reason?: string | null | undefined;
9192
8577
  referenceId?: string | null | undefined;
8578
+ adjustmentRule?: {
8579
+ type: "CAPPED_AT";
8580
+ } | null | undefined;
9193
8581
  remark?: string | null | undefined;
9194
8582
  excludeIds?: string[] | null | undefined;
9195
8583
  total: {
@@ -9464,6 +8852,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9464
8852
  reason?: string | null | undefined;
9465
8853
  priority?: number | null | undefined;
9466
8854
  items?: string[] | null | undefined;
8855
+ adjustmentRule?: {
8856
+ type: "CAPPED_AT";
8857
+ } | null | undefined;
9467
8858
  customer?: {
9468
8859
  name?: string | null | undefined;
9469
8860
  id: string;
@@ -9485,8 +8876,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9485
8876
  amount: number;
9486
8877
  precision: number;
9487
8878
  } | null | undefined;
8879
+ minPurchaseItems?: {
8880
+ productId: string;
8881
+ }[] | null | undefined;
9488
8882
  target: "BILL";
9489
8883
  } | {
8884
+ minPurchase?: {
8885
+ amount: number;
8886
+ precision: number;
8887
+ } | null | undefined;
8888
+ minPurchaseItems?: {
8889
+ productId: string;
8890
+ }[] | null | undefined;
9490
8891
  maxQuantity?: number | null | undefined;
9491
8892
  excludeAddonPrice?: boolean | null | undefined;
9492
8893
  target: "ITEM";
@@ -9522,6 +8923,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9522
8923
  amount: number;
9523
8924
  precision: number;
9524
8925
  } | null | undefined;
8926
+ minPurchaseItems?: {
8927
+ productId: string;
8928
+ }[] | null | undefined;
9525
8929
  target: "PAYMENT";
9526
8930
  };
9527
8931
  success: boolean;
@@ -9550,9 +8954,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9550
8954
  expiredAt?: string | null | undefined;
9551
8955
  agentId?: string | null | undefined;
9552
8956
  attributeSettings?: {
8957
+ options?: any[] | null | undefined;
9553
8958
  type: "string" | "number" | "boolean" | "date";
9554
8959
  key: string;
9555
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8960
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
9556
8961
  }[] | null | undefined;
9557
8962
  pf_agent?: {
9558
8963
  clickupId?: string | null | undefined;
@@ -9798,6 +9203,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9798
9203
  adjustments: Record<string, {
9799
9204
  reason?: string | null | undefined;
9800
9205
  referenceId?: string | null | undefined;
9206
+ adjustmentRule?: {
9207
+ type: "CAPPED_AT";
9208
+ } | null | undefined;
9801
9209
  remark?: string | null | undefined;
9802
9210
  excludeIds?: string[] | null | undefined;
9803
9211
  total: {
@@ -9839,6 +9247,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9839
9247
  adjustment?: Record<string, {
9840
9248
  reason?: string | null | undefined;
9841
9249
  referenceId?: string | null | undefined;
9250
+ adjustmentRule?: {
9251
+ type: "CAPPED_AT";
9252
+ } | null | undefined;
9842
9253
  remark?: string | null | undefined;
9843
9254
  excludeAddonPrice?: boolean | null | undefined;
9844
9255
  total: {
@@ -9994,6 +9405,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
9994
9405
  reason?: string | null | undefined;
9995
9406
  priority?: number | null | undefined;
9996
9407
  items?: string[] | null | undefined;
9408
+ adjustmentRule?: {
9409
+ type: "CAPPED_AT";
9410
+ } | null | undefined;
9997
9411
  customer?: {
9998
9412
  name?: string | null | undefined;
9999
9413
  id: string;
@@ -10015,8 +9429,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10015
9429
  amount: number;
10016
9430
  precision: number;
10017
9431
  } | null | undefined;
9432
+ minPurchaseItems?: {
9433
+ productId: string;
9434
+ }[] | null | undefined;
10018
9435
  target: "BILL";
10019
9436
  } | {
9437
+ minPurchase?: {
9438
+ amount: number;
9439
+ precision: number;
9440
+ } | null | undefined;
9441
+ minPurchaseItems?: {
9442
+ productId: string;
9443
+ }[] | null | undefined;
10020
9444
  maxQuantity?: number | null | undefined;
10021
9445
  excludeAddonPrice?: boolean | null | undefined;
10022
9446
  target: "ITEM";
@@ -10052,6 +9476,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10052
9476
  amount: number;
10053
9477
  precision: number;
10054
9478
  } | null | undefined;
9479
+ minPurchaseItems?: {
9480
+ productId: string;
9481
+ }[] | null | undefined;
10055
9482
  target: "PAYMENT";
10056
9483
  };
10057
9484
  success: boolean;
@@ -10080,9 +9507,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10080
9507
  expiredAt?: string | null | undefined;
10081
9508
  agentId?: string | null | undefined;
10082
9509
  attributeSettings?: {
9510
+ options?: any[] | null | undefined;
10083
9511
  type: "string" | "number" | "boolean" | "date";
10084
9512
  key: string;
10085
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
9513
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
10086
9514
  }[] | null | undefined;
10087
9515
  pf_agent?: {
10088
9516
  clickupId?: string | null | undefined;
@@ -10328,6 +9756,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10328
9756
  adjustments: Record<string, {
10329
9757
  reason?: string | null | undefined;
10330
9758
  referenceId?: string | null | undefined;
9759
+ adjustmentRule?: {
9760
+ type: "CAPPED_AT";
9761
+ } | null | undefined;
10331
9762
  remark?: string | null | undefined;
10332
9763
  excludeIds?: string[] | null | undefined;
10333
9764
  total: {
@@ -10369,6 +9800,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10369
9800
  adjustment?: Record<string, {
10370
9801
  reason?: string | null | undefined;
10371
9802
  referenceId?: string | null | undefined;
9803
+ adjustmentRule?: {
9804
+ type: "CAPPED_AT";
9805
+ } | null | undefined;
10372
9806
  remark?: string | null | undefined;
10373
9807
  excludeAddonPrice?: boolean | null | undefined;
10374
9808
  total: {
@@ -10503,6 +9937,7 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10503
9937
  billId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10504
9938
  }, "strip", z.ZodTypeAny, {
10505
9939
  billId?: string | null | undefined;
9940
+ eventType?: "DRIVER_INFO_CHANGED" | "REFUND" | null | undefined;
10506
9941
  order: {
10507
9942
  remark?: string | null | undefined;
10508
9943
  user?: {
@@ -10528,6 +9963,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10528
9963
  reason?: string | null | undefined;
10529
9964
  priority?: number | null | undefined;
10530
9965
  items?: string[] | null | undefined;
9966
+ adjustmentRule?: {
9967
+ type: "CAPPED_AT";
9968
+ } | null | undefined;
10531
9969
  customer?: {
10532
9970
  name?: string | null | undefined;
10533
9971
  id: string;
@@ -10549,8 +9987,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10549
9987
  amount: number;
10550
9988
  precision: number;
10551
9989
  } | null | undefined;
9990
+ minPurchaseItems?: {
9991
+ productId: string;
9992
+ }[] | null | undefined;
10552
9993
  target: "BILL";
10553
9994
  } | {
9995
+ minPurchase?: {
9996
+ amount: number;
9997
+ precision: number;
9998
+ } | null | undefined;
9999
+ minPurchaseItems?: {
10000
+ productId: string;
10001
+ }[] | null | undefined;
10554
10002
  maxQuantity?: number | null | undefined;
10555
10003
  excludeAddonPrice?: boolean | null | undefined;
10556
10004
  target: "ITEM";
@@ -10586,6 +10034,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10586
10034
  amount: number;
10587
10035
  precision: number;
10588
10036
  } | null | undefined;
10037
+ minPurchaseItems?: {
10038
+ productId: string;
10039
+ }[] | null | undefined;
10589
10040
  target: "PAYMENT";
10590
10041
  };
10591
10042
  success: boolean;
@@ -10614,9 +10065,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10614
10065
  expiredAt?: string | null | undefined;
10615
10066
  agentId?: string | null | undefined;
10616
10067
  attributeSettings?: {
10068
+ options?: any[] | null | undefined;
10617
10069
  type: "string" | "number" | "boolean" | "date";
10618
10070
  key: string;
10619
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
10071
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
10620
10072
  }[] | null | undefined;
10621
10073
  pf_agent?: {
10622
10074
  clickupId?: string | null | undefined;
@@ -10862,6 +10314,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10862
10314
  adjustments: Record<string, {
10863
10315
  reason?: string | null | undefined;
10864
10316
  referenceId?: string | null | undefined;
10317
+ adjustmentRule?: {
10318
+ type: "CAPPED_AT";
10319
+ } | null | undefined;
10865
10320
  remark?: string | null | undefined;
10866
10321
  excludeIds?: string[] | null | undefined;
10867
10322
  total: {
@@ -10903,6 +10358,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
10903
10358
  adjustment?: Record<string, {
10904
10359
  reason?: string | null | undefined;
10905
10360
  referenceId?: string | null | undefined;
10361
+ adjustmentRule?: {
10362
+ type: "CAPPED_AT";
10363
+ } | null | undefined;
10906
10364
  remark?: string | null | undefined;
10907
10365
  excludeAddonPrice?: boolean | null | undefined;
10908
10366
  total: {
@@ -11035,8 +10493,20 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11035
10493
  }>;
11036
10494
  };
11037
10495
  orderId: string;
10496
+ config: {
10497
+ taxes?: {
10498
+ inclusive: boolean;
10499
+ ignoreDiscount: boolean;
10500
+ } | null | undefined;
10501
+ printReceiptAfterClose?: boolean | null | undefined;
10502
+ voidReturnStock?: boolean | null | undefined;
10503
+ autoAccept: boolean;
10504
+ autoSend: boolean;
10505
+ autoCloseBill: boolean;
10506
+ };
11038
10507
  }, {
11039
10508
  billId?: string | null | undefined;
10509
+ eventType?: "DRIVER_INFO_CHANGED" | "REFUND" | null | undefined;
11040
10510
  order: {
11041
10511
  remark?: string | null | undefined;
11042
10512
  user?: {
@@ -11062,6 +10532,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11062
10532
  reason?: string | null | undefined;
11063
10533
  priority?: number | null | undefined;
11064
10534
  items?: string[] | null | undefined;
10535
+ adjustmentRule?: {
10536
+ type: "CAPPED_AT";
10537
+ } | null | undefined;
11065
10538
  customer?: {
11066
10539
  name?: string | null | undefined;
11067
10540
  id: string;
@@ -11083,8 +10556,18 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11083
10556
  amount: number;
11084
10557
  precision: number;
11085
10558
  } | null | undefined;
10559
+ minPurchaseItems?: {
10560
+ productId: string;
10561
+ }[] | null | undefined;
11086
10562
  target: "BILL";
11087
10563
  } | {
10564
+ minPurchase?: {
10565
+ amount: number;
10566
+ precision: number;
10567
+ } | null | undefined;
10568
+ minPurchaseItems?: {
10569
+ productId: string;
10570
+ }[] | null | undefined;
11088
10571
  maxQuantity?: number | null | undefined;
11089
10572
  excludeAddonPrice?: boolean | null | undefined;
11090
10573
  target: "ITEM";
@@ -11120,6 +10603,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11120
10603
  amount: number;
11121
10604
  precision: number;
11122
10605
  } | null | undefined;
10606
+ minPurchaseItems?: {
10607
+ productId: string;
10608
+ }[] | null | undefined;
11123
10609
  target: "PAYMENT";
11124
10610
  };
11125
10611
  success: boolean;
@@ -11148,9 +10634,10 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11148
10634
  expiredAt?: string | null | undefined;
11149
10635
  agentId?: string | null | undefined;
11150
10636
  attributeSettings?: {
10637
+ options?: any[] | null | undefined;
11151
10638
  type: "string" | "number" | "boolean" | "date";
11152
10639
  key: string;
11153
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
10640
+ entity: "restaurant" | "item" | "group" | "inventorySku" | "inventoryRecipe" | "warehouse";
11154
10641
  }[] | null | undefined;
11155
10642
  pf_agent?: {
11156
10643
  clickupId?: string | null | undefined;
@@ -11396,6 +10883,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11396
10883
  adjustments: Record<string, {
11397
10884
  reason?: string | null | undefined;
11398
10885
  referenceId?: string | null | undefined;
10886
+ adjustmentRule?: {
10887
+ type: "CAPPED_AT";
10888
+ } | null | undefined;
11399
10889
  remark?: string | null | undefined;
11400
10890
  excludeIds?: string[] | null | undefined;
11401
10891
  total: {
@@ -11437,6 +10927,9 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11437
10927
  adjustment?: Record<string, {
11438
10928
  reason?: string | null | undefined;
11439
10929
  referenceId?: string | null | undefined;
10930
+ adjustmentRule?: {
10931
+ type: "CAPPED_AT";
10932
+ } | null | undefined;
11440
10933
  remark?: string | null | undefined;
11441
10934
  excludeAddonPrice?: boolean | null | undefined;
11442
10935
  total: {
@@ -11569,6 +11062,17 @@ export declare const FdtoUpdateIncomingOrder: z.ZodObject<{
11569
11062
  }>;
11570
11063
  };
11571
11064
  orderId: string;
11065
+ config: {
11066
+ taxes?: {
11067
+ inclusive: boolean;
11068
+ ignoreDiscount: boolean;
11069
+ } | null | undefined;
11070
+ printReceiptAfterClose?: boolean | null | undefined;
11071
+ voidReturnStock?: boolean | null | undefined;
11072
+ autoAccept: boolean;
11073
+ autoSend: boolean;
11074
+ autoCloseBill: boolean;
11075
+ };
11572
11076
  }>;
11573
11077
  export declare const FdtoRejectIncomingOrder: z.ZodObject<{
11574
11078
  orderId: z.ZodString;
@@ -11617,18 +11121,18 @@ export declare const FdtoRefundIncomingOrder: z.ZodObject<{
11617
11121
  };
11618
11122
  }>;
11619
11123
  export declare const FdtoUpdatePlatformOrder: z.ZodObject<{
11620
- status: z.ZodEnum<["REJECT", "DONE_PREPARED", "ACCEPT"]>;
11124
+ status: z.ZodEnum<["REJECT", "DONE_PREPARED", "ACCEPT", "COLLECTED"]>;
11621
11125
  orderId: z.ZodString;
11622
11126
  billId: z.ZodString;
11623
11127
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11624
11128
  }, "strip", z.ZodTypeAny, {
11625
11129
  reason?: string | null | undefined;
11626
- status: "ACCEPT" | "REJECT" | "DONE_PREPARED";
11130
+ status: "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED";
11627
11131
  orderId: string;
11628
11132
  billId: string;
11629
11133
  }, {
11630
11134
  reason?: string | null | undefined;
11631
- status: "ACCEPT" | "REJECT" | "DONE_PREPARED";
11135
+ status: "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED";
11632
11136
  orderId: string;
11633
11137
  billId: string;
11634
11138
  }>;