@feedmepos/mf-order-setting 0.0.87 → 0.0.88

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 (46) hide show
  1. package/dist/{DisplaySystemView-Dx4As33V.js → DisplaySystemView-BiKFL6UY.js} +1 -1
  2. package/dist/{KioskDevicesView-Ziu9ekHK.js → KioskDevicesView-DQPue13D.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Bki-OF23.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BAe1eQvx.js} +3 -3
  4. package/dist/{KioskSettingView-BlLW-tDD.js → KioskSettingView-M3pBFSwt.js} +3 -3
  5. package/dist/{KioskView-CzlaEjMR.js → KioskView-BfTNsmN1.js} +5 -5
  6. package/dist/OrderSettingsView-CowX8_oN.js +69743 -0
  7. package/dist/{app-C8jy3wlN.js → app-DgZSoUgk.js} +947 -885
  8. package/dist/app.js +1 -1
  9. package/dist/frontend/mf-order/src/app.d.ts +8 -0
  10. package/dist/frontend/mf-order/src/main.d.ts +8 -0
  11. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +18 -8
  12. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  13. package/dist/{index-DiRlxqKH.js → index-CGJIcLNE.js} +2 -2
  14. package/dist/{index-DNvUwB59.js → index-CWm0u6lo.js} +1 -1
  15. package/dist/{index-VtBPFvME.js → index-DzmXxFJu.js} +1 -1
  16. package/dist/order.dto-DQWf-RVV.js +40244 -0
  17. package/dist/package/entity/alert/suggestion.dto.d.ts +6 -0
  18. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +96 -0
  19. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +22 -0
  20. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +1 -0
  21. package/dist/package/entity/index.d.ts +2 -0
  22. package/dist/package/entity/order/order.do.d.ts +56 -0
  23. package/dist/package/entity/order/order.dto.d.ts +86 -0
  24. package/dist/package/entity/order-platform/external/reconciliation/external-reconciliation.do.d.ts +376 -0
  25. package/dist/package/entity/order-platform/external/reconciliation/external-reconciliation.dto.d.ts +102 -0
  26. package/dist/package/entity/order-platform/order-platform.dto.d.ts +82 -0
  27. package/dist/package/entity/queue/queue.do.d.ts +76 -0
  28. package/dist/style.css +1 -1
  29. package/package.json +3 -3
  30. package/src/locales/en-US.json +2 -0
  31. package/src/locales/ja-JP.json +2 -0
  32. package/src/locales/th-TH.json +2 -0
  33. package/src/locales/zh-CN.json +2 -0
  34. package/src/views/order-settings/delivery/DeliverySetting.vue +1 -0
  35. package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +15 -0
  36. package/src/views/order-settings/delivery/integrated-delivery/DeliverooSetting.vue +2 -0
  37. package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +18 -1
  38. package/src/views/order-settings/delivery/integrated-delivery/GoFoodSetting.vue +3 -1
  39. package/src/views/order-settings/delivery/integrated-delivery/GrabfoodSetting.vue +3 -1
  40. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +28 -0
  41. package/src/views/order-settings/delivery/integrated-delivery/ShopeefoodSetting.vue +3 -1
  42. package/src/views/order-settings/delivery/integrated-delivery/TngSetting.vue +7 -3
  43. package/src/views/order-settings/dine-in/DineInSetting.vue +14 -0
  44. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +13 -0
  45. package/dist/OrderSettingsView-B69It-yu.js +0 -69105
  46. package/dist/order.dto-CFw4X11T.js +0 -39292
@@ -54830,6 +54830,19 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
54830
54830
  serveDelayId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54831
54831
  serveDelayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54832
54832
  serveDelayInMins: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54833
+ statutoryCharges: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
54834
+ code: z.ZodString;
54835
+ unitCount: z.ZodNumber;
54836
+ waived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
54837
+ }, "strip", z.ZodTypeAny, {
54838
+ waived?: boolean | null | undefined;
54839
+ code: string;
54840
+ unitCount: number;
54841
+ }, {
54842
+ waived?: boolean | null | undefined;
54843
+ code: string;
54844
+ unitCount: number;
54845
+ }>, "many">>>;
54833
54846
  }, "strip", z.ZodTypeAny, {
54834
54847
  code?: string | null | undefined;
54835
54848
  originalPrice?: {
@@ -54881,6 +54894,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
54881
54894
  serveDelayId?: string | null | undefined;
54882
54895
  serveDelayName?: string | null | undefined;
54883
54896
  serveDelayInMins?: number | null | undefined;
54897
+ statutoryCharges?: {
54898
+ waived?: boolean | null | undefined;
54899
+ code: string;
54900
+ unitCount: number;
54901
+ }[] | null | undefined;
54884
54902
  name: string;
54885
54903
  price: {
54886
54904
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -54938,6 +54956,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
54938
54956
  serveDelayId?: string | null | undefined;
54939
54957
  serveDelayName?: string | null | undefined;
54940
54958
  serveDelayInMins?: number | null | undefined;
54959
+ statutoryCharges?: {
54960
+ waived?: boolean | null | undefined;
54961
+ code: string;
54962
+ unitCount: number;
54963
+ }[] | null | undefined;
54941
54964
  name: string;
54942
54965
  price: {
54943
54966
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -55350,6 +55373,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55350
55373
  serveDelayId?: string | null | undefined;
55351
55374
  serveDelayName?: string | null | undefined;
55352
55375
  serveDelayInMins?: number | null | undefined;
55376
+ statutoryCharges?: {
55377
+ waived?: boolean | null | undefined;
55378
+ code: string;
55379
+ unitCount: number;
55380
+ }[] | null | undefined;
55353
55381
  name: string;
55354
55382
  price: {
55355
55383
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -55495,6 +55523,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55495
55523
  serveDelayId?: string | null | undefined;
55496
55524
  serveDelayName?: string | null | undefined;
55497
55525
  serveDelayInMins?: number | null | undefined;
55526
+ statutoryCharges?: {
55527
+ waived?: boolean | null | undefined;
55528
+ code: string;
55529
+ unitCount: number;
55530
+ }[] | null | undefined;
55498
55531
  name: string;
55499
55532
  price: {
55500
55533
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -62871,6 +62904,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62871
62904
  serveDelayId?: string | null | undefined;
62872
62905
  serveDelayName?: string | null | undefined;
62873
62906
  serveDelayInMins?: number | null | undefined;
62907
+ statutoryCharges?: {
62908
+ waived?: boolean | null | undefined;
62909
+ code: string;
62910
+ unitCount: number;
62911
+ }[] | null | undefined;
62874
62912
  name: string;
62875
62913
  price: {
62876
62914
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -63268,6 +63306,11 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
63268
63306
  serveDelayId?: string | null | undefined;
63269
63307
  serveDelayName?: string | null | undefined;
63270
63308
  serveDelayInMins?: number | null | undefined;
63309
+ statutoryCharges?: {
63310
+ waived?: boolean | null | undefined;
63311
+ code: string;
63312
+ unitCount: number;
63313
+ }[] | null | undefined;
63271
63314
  name: string;
63272
63315
  price: {
63273
63316
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -63550,6 +63593,19 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
63550
63593
  serveDelayId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63551
63594
  serveDelayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63552
63595
  serveDelayInMins: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
63596
+ statutoryCharges: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
63597
+ code: z.ZodString;
63598
+ unitCount: z.ZodNumber;
63599
+ waived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
63600
+ }, "strip", z.ZodTypeAny, {
63601
+ waived?: boolean | null | undefined;
63602
+ code: string;
63603
+ unitCount: number;
63604
+ }, {
63605
+ waived?: boolean | null | undefined;
63606
+ code: string;
63607
+ unitCount: number;
63608
+ }>, "many">>>;
63553
63609
  }, "strip", z.ZodTypeAny, {
63554
63610
  code?: string | null | undefined;
63555
63611
  originalPrice?: {
@@ -63601,6 +63657,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
63601
63657
  serveDelayId?: string | null | undefined;
63602
63658
  serveDelayName?: string | null | undefined;
63603
63659
  serveDelayInMins?: number | null | undefined;
63660
+ statutoryCharges?: {
63661
+ waived?: boolean | null | undefined;
63662
+ code: string;
63663
+ unitCount: number;
63664
+ }[] | null | undefined;
63604
63665
  name: string;
63605
63666
  price: {
63606
63667
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -63658,6 +63719,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
63658
63719
  serveDelayId?: string | null | undefined;
63659
63720
  serveDelayName?: string | null | undefined;
63660
63721
  serveDelayInMins?: number | null | undefined;
63722
+ statutoryCharges?: {
63723
+ waived?: boolean | null | undefined;
63724
+ code: string;
63725
+ unitCount: number;
63726
+ }[] | null | undefined;
63661
63727
  name: string;
63662
63728
  price: {
63663
63729
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -64070,6 +64136,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64070
64136
  serveDelayId?: string | null | undefined;
64071
64137
  serveDelayName?: string | null | undefined;
64072
64138
  serveDelayInMins?: number | null | undefined;
64139
+ statutoryCharges?: {
64140
+ waived?: boolean | null | undefined;
64141
+ code: string;
64142
+ unitCount: number;
64143
+ }[] | null | undefined;
64073
64144
  name: string;
64074
64145
  price: {
64075
64146
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -64215,6 +64286,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64215
64286
  serveDelayId?: string | null | undefined;
64216
64287
  serveDelayName?: string | null | undefined;
64217
64288
  serveDelayInMins?: number | null | undefined;
64289
+ statutoryCharges?: {
64290
+ waived?: boolean | null | undefined;
64291
+ code: string;
64292
+ unitCount: number;
64293
+ }[] | null | undefined;
64218
64294
  name: string;
64219
64295
  price: {
64220
64296
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -71592,6 +71668,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
71592
71668
  serveDelayId?: string | null | undefined;
71593
71669
  serveDelayName?: string | null | undefined;
71594
71670
  serveDelayInMins?: number | null | undefined;
71671
+ statutoryCharges?: {
71672
+ waived?: boolean | null | undefined;
71673
+ code: string;
71674
+ unitCount: number;
71675
+ }[] | null | undefined;
71595
71676
  name: string;
71596
71677
  price: {
71597
71678
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -72012,6 +72093,11 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
72012
72093
  serveDelayId?: string | null | undefined;
72013
72094
  serveDelayName?: string | null | undefined;
72014
72095
  serveDelayInMins?: number | null | undefined;
72096
+ statutoryCharges?: {
72097
+ waived?: boolean | null | undefined;
72098
+ code: string;
72099
+ unitCount: number;
72100
+ }[] | null | undefined;
72015
72101
  name: string;
72016
72102
  price: {
72017
72103
  currency: "AED" | "AFN" | "ALL" | "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" | "MYR" | "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";
@@ -0,0 +1,376 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * ZUS does not poll us and we do not poll ZUS — they PUSH orders to
4
+ * `POST /external/order`. A push that is dropped or fails leaves nothing to re-poll, so the only
5
+ * way to find it is to diff against ZUS's own record. They deliver that record as S3 links to two
6
+ * CSVs, and this collection is the durable ledger of those deliveries.
7
+ *
8
+ * The ledger is not bookkeeping — it is load-bearing, for one reason:
9
+ * `IncomingOrderBackendService.refund()` is NOT idempotent (it sets `eventType=REFUND` and pushes,
10
+ * with no already-refunded check). Re-processing one file is therefore a DOUBLE REFUND. The dedupe
11
+ * keys below are what stop that, and they have to outlive any Bull job — Bull lives entirely in
12
+ * Redis, and ZUS sends a link only, so a flushed queue loses the notification with no handle to
13
+ * ask for it again.
14
+ */
15
+ export declare const F_EXTERNAL_RECONCILIATION_FILE_KIND: z.ZodEnum<["ORDERS", "REFUNDS"]>;
16
+ /**
17
+ * The COLUMN LAYOUT of a delivered file, which is partner-specific even though the pipeline
18
+ * around it is not.
19
+ *
20
+ * `ZUS_CSV_V2` (current) is `ref_id,payload` for BOTH files. The refunds payload is
21
+ * `{orderId, refundReason, refundDate, refundAmount:{amount, currency, precision}}`, where
22
+ * `refundAmount` is ALREADY in minor units.
23
+ *
24
+ * `ZUS_CSV_V1` (retired 2026-09-18, retained because stored deliveries carry it) had the same
25
+ * orders file but flat refund columns: `ref_id,refund_amount,refund_description,refund_date`,
26
+ * with `refund_amount` a plain DECIMAL STRING. The semantics inverted between the two, so the
27
+ * member is what tells a stored delivery's rows apart — rows parsed under V1 hold
28
+ * `refundAmount` text and no `refundAmountMinor`.
29
+ *
30
+ * None of this is guaranteed for another partner, so a second partner's format is a new member
31
+ * here plus its own parser — NOT a widening of one of these.
32
+ */
33
+ export declare const F_EXTERNAL_RECONCILIATION_FORMAT: z.ZodEnum<["ZUS_CSV_V1", "ZUS_CSV_V2"]>;
34
+ export declare const F_EXTERNAL_RECONCILIATION_STATUS: z.ZodEnum<["RECEIVED", "READY", "RECONCILING", "DONE", "FAILED"]>;
35
+ export declare const FdoExternalReconciliationDeliveryFile: z.ZodObject<{
36
+ kind: z.ZodEnum<["ORDERS", "REFUNDS"]>;
37
+ /**
38
+ * The URL as received, with the SigV4 credential parameters redacted — a presigned S3 URL is a
39
+ * bearer credential for that object, and this row is retained long after it expires. Kept for
40
+ * debuggability only: nothing reads it, because ZUS sends a link and nothing else, so if their
41
+ * URL shape changes this is the sole forensic trace of what actually arrived.
42
+ */
43
+ url: z.ZodString;
44
+ /**
45
+ * Bucket + key with the query string stripped. The signature and expiry parameters rotate on
46
+ * every regeneration, so the full URL is NOT stable across a webhook retry — this is.
47
+ * Receive-time dedupe key; unique index.
48
+ */
49
+ objectKey: z.ZodString;
50
+ /**
51
+ * sha256 of the downloaded bytes. The dedupe that actually guards the money: `objectKey` catches
52
+ * a retried webhook, this catches the same content re-uploaded under a new key.
53
+ */
54
+ contentSha256: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
+ rowCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ rowCount?: number | null | undefined;
58
+ contentSha256?: string | null | undefined;
59
+ url: string;
60
+ kind: "ORDERS" | "REFUNDS";
61
+ objectKey: string;
62
+ }, {
63
+ rowCount?: number | null | undefined;
64
+ contentSha256?: string | null | undefined;
65
+ url: string;
66
+ kind: "ORDERS" | "REFUNDS";
67
+ objectKey: string;
68
+ }>;
69
+ export declare const FdoExternalReconciliationOutcome: z.ZodObject<{
70
+ /** Order axis — an order lands in exactly one of these. */
71
+ created: z.ZodNumber;
72
+ resubmitted: z.ZodNumber;
73
+ backfilled: z.ZodNumber;
74
+ healthy: z.ZodNumber;
75
+ /** Refund axis — counts refunds, never add to the order axis above. */
76
+ refunded: z.ZodNumber;
77
+ refundSkipped: z.ZodNumber;
78
+ /** Anything deliberately not repaired, carrying its reason. */
79
+ reported: z.ZodArray<z.ZodObject<{
80
+ refId: z.ZodString;
81
+ reason: z.ZodString;
82
+ detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ detail?: string | null | undefined;
85
+ reason: string;
86
+ refId: string;
87
+ }, {
88
+ detail?: string | null | undefined;
89
+ reason: string;
90
+ refId: string;
91
+ }>, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ created: number;
94
+ refunded: number;
95
+ resubmitted: number;
96
+ backfilled: number;
97
+ healthy: number;
98
+ refundSkipped: number;
99
+ reported: {
100
+ detail?: string | null | undefined;
101
+ reason: string;
102
+ refId: string;
103
+ }[];
104
+ }, {
105
+ created: number;
106
+ refunded: number;
107
+ resubmitted: number;
108
+ backfilled: number;
109
+ healthy: number;
110
+ refundSkipped: number;
111
+ reported: {
112
+ detail?: string | null | undefined;
113
+ reason: string;
114
+ refId: string;
115
+ }[];
116
+ }>;
117
+ export declare const FdoExternalReconciliationFile: z.ZodObject<{
118
+ _id: z.ZodEffects<z.ZodString, string, string>;
119
+ /**
120
+ * Who the delivery is attributed to.
121
+ *
122
+ * An enum rather than a ZUS literal because the pipeline is partner-neutral — but note that
123
+ * today it is SET by the intake, not derived from the caller: `AuthMiddleware` verifies the
124
+ * token and discards the result, so no partner identity reaches the request. Until it does,
125
+ * the endpoint stays gated to one partner. Widening it without attribution would let any
126
+ * authenticated partner submit a file that repairs — and refunds — another partner's orders.
127
+ */
128
+ partnerName: z.ZodEnum<["ZUS_COFFEE", "HAKSHAN", "US_PIZZA"]>;
129
+ format: z.ZodEnum<["ZUS_CSV_V1", "ZUS_CSV_V2"]>;
130
+ receivedAt: z.ZodString;
131
+ /** Whole request body, credential-redacted. See `FdoExternalReconciliationDeliveryFile.url`. */
132
+ rawBody: z.ZodString;
133
+ /**
134
+ * One delivery may carry the orders CSV, the refunds CSV, or both — ZUS has not committed to
135
+ * which. Deliveries are never paired by date: a run processes every ORDERS file across all
136
+ * claimed deliveries before any REFUNDS file, which gives the required ordering without
137
+ * needing a business date ZUS does not send.
138
+ */
139
+ files: z.ZodArray<z.ZodObject<{
140
+ kind: z.ZodEnum<["ORDERS", "REFUNDS"]>;
141
+ /**
142
+ * The URL as received, with the SigV4 credential parameters redacted — a presigned S3 URL is a
143
+ * bearer credential for that object, and this row is retained long after it expires. Kept for
144
+ * debuggability only: nothing reads it, because ZUS sends a link and nothing else, so if their
145
+ * URL shape changes this is the sole forensic trace of what actually arrived.
146
+ */
147
+ url: z.ZodString;
148
+ /**
149
+ * Bucket + key with the query string stripped. The signature and expiry parameters rotate on
150
+ * every regeneration, so the full URL is NOT stable across a webhook retry — this is.
151
+ * Receive-time dedupe key; unique index.
152
+ */
153
+ objectKey: z.ZodString;
154
+ /**
155
+ * sha256 of the downloaded bytes. The dedupe that actually guards the money: `objectKey` catches
156
+ * a retried webhook, this catches the same content re-uploaded under a new key.
157
+ */
158
+ contentSha256: z.ZodNullable<z.ZodOptional<z.ZodString>>;
159
+ rowCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ rowCount?: number | null | undefined;
162
+ contentSha256?: string | null | undefined;
163
+ url: string;
164
+ kind: "ORDERS" | "REFUNDS";
165
+ objectKey: string;
166
+ }, {
167
+ rowCount?: number | null | undefined;
168
+ contentSha256?: string | null | undefined;
169
+ url: string;
170
+ kind: "ORDERS" | "REFUNDS";
171
+ objectKey: string;
172
+ }>, "many">;
173
+ status: z.ZodEnum<["RECEIVED", "READY", "RECONCILING", "DONE", "FAILED"]>;
174
+ dryRun: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
175
+ reconciledAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
176
+ outcome: z.ZodNullable<z.ZodOptional<z.ZodObject<{
177
+ /** Order axis — an order lands in exactly one of these. */
178
+ created: z.ZodNumber;
179
+ resubmitted: z.ZodNumber;
180
+ backfilled: z.ZodNumber;
181
+ healthy: z.ZodNumber;
182
+ /** Refund axis — counts refunds, never add to the order axis above. */
183
+ refunded: z.ZodNumber;
184
+ refundSkipped: z.ZodNumber;
185
+ /** Anything deliberately not repaired, carrying its reason. */
186
+ reported: z.ZodArray<z.ZodObject<{
187
+ refId: z.ZodString;
188
+ reason: z.ZodString;
189
+ detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ detail?: string | null | undefined;
192
+ reason: string;
193
+ refId: string;
194
+ }, {
195
+ detail?: string | null | undefined;
196
+ reason: string;
197
+ refId: string;
198
+ }>, "many">;
199
+ }, "strip", z.ZodTypeAny, {
200
+ created: number;
201
+ refunded: number;
202
+ resubmitted: number;
203
+ backfilled: number;
204
+ healthy: number;
205
+ refundSkipped: number;
206
+ reported: {
207
+ detail?: string | null | undefined;
208
+ reason: string;
209
+ refId: string;
210
+ }[];
211
+ }, {
212
+ created: number;
213
+ refunded: number;
214
+ resubmitted: number;
215
+ backfilled: number;
216
+ healthy: number;
217
+ refundSkipped: number;
218
+ reported: {
219
+ detail?: string | null | undefined;
220
+ reason: string;
221
+ refId: string;
222
+ }[];
223
+ }>>>;
224
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ error?: string | null | undefined;
227
+ outcome?: {
228
+ created: number;
229
+ refunded: number;
230
+ resubmitted: number;
231
+ backfilled: number;
232
+ healthy: number;
233
+ refundSkipped: number;
234
+ reported: {
235
+ detail?: string | null | undefined;
236
+ reason: string;
237
+ refId: string;
238
+ }[];
239
+ } | null | undefined;
240
+ dryRun?: boolean | null | undefined;
241
+ reconciledAt?: string | null | undefined;
242
+ status: "FAILED" | "READY" | "RECEIVED" | "RECONCILING" | "DONE";
243
+ _id: string;
244
+ files: {
245
+ rowCount?: number | null | undefined;
246
+ contentSha256?: string | null | undefined;
247
+ url: string;
248
+ kind: "ORDERS" | "REFUNDS";
249
+ objectKey: string;
250
+ }[];
251
+ partnerName: "HAKSHAN" | "US_PIZZA" | "ZUS_COFFEE";
252
+ format: "ZUS_CSV_V1" | "ZUS_CSV_V2";
253
+ receivedAt: string;
254
+ rawBody: string;
255
+ }, {
256
+ error?: string | null | undefined;
257
+ outcome?: {
258
+ created: number;
259
+ refunded: number;
260
+ resubmitted: number;
261
+ backfilled: number;
262
+ healthy: number;
263
+ refundSkipped: number;
264
+ reported: {
265
+ detail?: string | null | undefined;
266
+ reason: string;
267
+ refId: string;
268
+ }[];
269
+ } | null | undefined;
270
+ dryRun?: boolean | null | undefined;
271
+ reconciledAt?: string | null | undefined;
272
+ status: "FAILED" | "READY" | "RECEIVED" | "RECONCILING" | "DONE";
273
+ _id: string;
274
+ files: {
275
+ rowCount?: number | null | undefined;
276
+ contentSha256?: string | null | undefined;
277
+ url: string;
278
+ kind: "ORDERS" | "REFUNDS";
279
+ objectKey: string;
280
+ }[];
281
+ partnerName: "HAKSHAN" | "US_PIZZA" | "ZUS_COFFEE";
282
+ format: "ZUS_CSV_V1" | "ZUS_CSV_V2";
283
+ receivedAt: string;
284
+ rawBody: string;
285
+ }>;
286
+ /**
287
+ * One parsed CSV row.
288
+ *
289
+ * Deliberately a separate collection rather than an array on the delivery. MEASURED 2026-09-18:
290
+ * mean order payload is 2,845 bytes and ZUS MY runs roughly 35k orders/day, so a full-day orders
291
+ * CSV is ~95MB against Mongo's 16MB document ceiling. Embedding would break at ~5,600 rows.
292
+ */
293
+ export declare const FdoExternalReconciliationRow: z.ZodObject<{
294
+ _id: z.ZodEffects<z.ZodString, string, string>;
295
+ fileId: z.ZodString;
296
+ kind: z.ZodEnum<["ORDERS", "REFUNDS"]>;
297
+ /**
298
+ * ZUS's order id, from the CSV's `ref_id`. VERIFIED against MY prod: this equals
299
+ * `ExternalOrders.orderId` for BOTH files. Treated as an opaque string — ids are not
300
+ * fixed-width and are not always numeric (`260913163439`, but also `GC26091500229`).
301
+ */
302
+ refId: z.ZodString;
303
+ /** The raw `payload` cell, stored unparsed. BOTH kinds carry one as of the 2026-09-18 format. */
304
+ payload: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
+ /**
306
+ * REFUNDS only, lifted out of `payload` at parse time so a row stays queryable and the run
307
+ * report can name a figure without re-parsing JSON.
308
+ *
309
+ * NOTE THE SEMANTICS, they inverted on 2026-09-18: this is ALREADY a minor-unit integer at
310
+ * `refundPrecision`, NOT a decimal string. The previous format's `refund_amount` was the text
311
+ * "5.00" and had to go through `parseDecimalToMinor`; feeding this number to that function
312
+ * would multiply it by 10^precision a second time. VERIFIED against MY prod: CSV 42000@4 is
313
+ * bill `nettTotal` 420@2, i.e. RM4.20 — the same money at a different precision.
314
+ */
315
+ refundAmountMinor: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
316
+ refundPrecision: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
317
+ refundCurrency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
318
+ /** From `payload.refundReason`. */
319
+ refundDescription: z.ZodNullable<z.ZodOptional<z.ZodString>>;
320
+ /**
321
+ * From `payload.refundDate`. ISO-8601 since the format change; was `YYYY-MM-DD HH:mm:ss`.
322
+ *
323
+ * STORED FOR AUDIT ONLY — no branch reads it. The reconcile pass acts on the amount alone,
324
+ * deliberately: ZUS's date is when THEY recorded the refund, which has no fixed relationship
325
+ * to our bill's timestamps, so a disagreement would not be evidence of anything. Kept because
326
+ * it is the only record of when the partner believed the refund happened.
327
+ */
328
+ refundDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
329
+ /**
330
+ * REFUNDS only: FeedMe's `ExternalOrders._id` as ZUS states it in `payload.orderId`.
331
+ *
332
+ * NOT the join key — `refId` is, for both files. VERIFIED against MY prod on all five sample
333
+ * rows: this equals the `_id` of the `ExternalOrders` doc whose `orderId` is `refId`. Kept as
334
+ * a cross-check: if ZUS's own pointer disagrees with the one we resolved, something is wrong
335
+ * on one side and the row is reported rather than refunded on our resolution alone.
336
+ */
337
+ refundExternalOrderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
338
+ /** Set by the reconcile pass so a run is resumable and auditable per row. */
339
+ result: z.ZodNullable<z.ZodOptional<z.ZodString>>;
340
+ resultDetail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ payload?: string | null | undefined;
343
+ refundAmountMinor?: number | null | undefined;
344
+ refundPrecision?: number | null | undefined;
345
+ refundCurrency?: string | null | undefined;
346
+ refundDescription?: string | null | undefined;
347
+ refundDate?: string | null | undefined;
348
+ refundExternalOrderId?: string | null | undefined;
349
+ result?: string | null | undefined;
350
+ resultDetail?: string | null | undefined;
351
+ kind: "ORDERS" | "REFUNDS";
352
+ _id: string;
353
+ refId: string;
354
+ fileId: string;
355
+ }, {
356
+ payload?: string | null | undefined;
357
+ refundAmountMinor?: number | null | undefined;
358
+ refundPrecision?: number | null | undefined;
359
+ refundCurrency?: string | null | undefined;
360
+ refundDescription?: string | null | undefined;
361
+ refundDate?: string | null | undefined;
362
+ refundExternalOrderId?: string | null | undefined;
363
+ result?: string | null | undefined;
364
+ resultDetail?: string | null | undefined;
365
+ kind: "ORDERS" | "REFUNDS";
366
+ _id: string;
367
+ refId: string;
368
+ fileId: string;
369
+ }>;
370
+ export type F_EXTERNAL_RECONCILIATION_FILE_KIND = z.infer<typeof F_EXTERNAL_RECONCILIATION_FILE_KIND>;
371
+ export type F_EXTERNAL_RECONCILIATION_FORMAT = z.infer<typeof F_EXTERNAL_RECONCILIATION_FORMAT>;
372
+ export type F_EXTERNAL_RECONCILIATION_STATUS = z.infer<typeof F_EXTERNAL_RECONCILIATION_STATUS>;
373
+ export type FdoExternalReconciliationDeliveryFile = z.infer<typeof FdoExternalReconciliationDeliveryFile>;
374
+ export type FdoExternalReconciliationOutcome = z.infer<typeof FdoExternalReconciliationOutcome>;
375
+ export type FdoExternalReconciliationFile = z.infer<typeof FdoExternalReconciliationFile>;
376
+ export type FdoExternalReconciliationRow = z.infer<typeof FdoExternalReconciliationRow>;