@tammsyr/admin-api-client 1.3.7 → 1.3.9

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 (61) hide show
  1. package/README.md +0 -1
  2. package/dist/AccountProducts.d.ts.map +1 -1
  3. package/dist/AccountProducts.js.map +1 -1
  4. package/dist/AccountTypes.d.ts.map +1 -1
  5. package/dist/AccountTypes.js.map +1 -1
  6. package/dist/Accounts.d.ts +3 -3
  7. package/dist/Accounts.js +2 -2
  8. package/dist/AddressRegions.js.map +1 -1
  9. package/dist/ApprovalPolicies.d.ts +2 -2
  10. package/dist/ApprovalPolicies.d.ts.map +1 -1
  11. package/dist/ApprovalPolicies.js.map +1 -1
  12. package/dist/BankBranches.d.ts.map +1 -1
  13. package/dist/BankBranches.js.map +1 -1
  14. package/dist/ChargeDecisionRules.d.ts +57 -0
  15. package/dist/ChargeDecisionRules.d.ts.map +1 -0
  16. package/dist/ChargeDecisionRules.js +106 -0
  17. package/dist/ChargeDecisionRules.js.map +1 -0
  18. package/dist/ChargeSchemaItems.d.ts +57 -0
  19. package/dist/ChargeSchemaItems.d.ts.map +1 -0
  20. package/dist/ChargeSchemaItems.js +106 -0
  21. package/dist/ChargeSchemaItems.js.map +1 -0
  22. package/dist/ChargeSchemas.d.ts +57 -0
  23. package/dist/ChargeSchemas.d.ts.map +1 -0
  24. package/dist/ChargeSchemas.js +105 -0
  25. package/dist/ChargeSchemas.js.map +1 -0
  26. package/dist/ChargeTiers.d.ts +57 -0
  27. package/dist/ChargeTiers.d.ts.map +1 -0
  28. package/dist/ChargeTiers.js +106 -0
  29. package/dist/ChargeTiers.js.map +1 -0
  30. package/dist/Charges.d.ts +57 -0
  31. package/dist/Charges.d.ts.map +1 -0
  32. package/dist/Charges.js +106 -0
  33. package/dist/Charges.js.map +1 -0
  34. package/dist/Currencies.d.ts.map +1 -1
  35. package/dist/Dlq.d.ts.map +1 -1
  36. package/dist/GlobalNotifications.d.ts.map +1 -1
  37. package/dist/GlobalNotifications.js.map +1 -1
  38. package/dist/MerchantCategories.d.ts.map +1 -1
  39. package/dist/Seed.d.ts +0 -10
  40. package/dist/Seed.d.ts.map +1 -1
  41. package/dist/Seed.js +0 -15
  42. package/dist/Seed.js.map +1 -1
  43. package/dist/Transactions.d.ts +17 -17
  44. package/dist/Transactions.d.ts.map +1 -1
  45. package/dist/Transactions.js +19 -19
  46. package/dist/Transactions.js.map +1 -1
  47. package/dist/data-contracts.d.ts +591 -327
  48. package/dist/data-contracts.d.ts.map +1 -1
  49. package/dist/index.d.ts +15 -9
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +21 -13
  52. package/dist/index.js.map +1 -1
  53. package/package.json +1 -1
  54. package/dist/FeeConfigs.d.ts +0 -57
  55. package/dist/FeeConfigs.d.ts.map +0 -1
  56. package/dist/FeeConfigs.js +0 -107
  57. package/dist/FeeConfigs.js.map +0 -1
  58. package/dist/SystemConfigs.d.ts +0 -37
  59. package/dist/SystemConfigs.d.ts.map +0 -1
  60. package/dist/SystemConfigs.js +0 -72
  61. package/dist/SystemConfigs.js.map +0 -1
@@ -1514,7 +1514,7 @@ export interface AmlRuleDto {
1514
1514
  * Transaction types this rule applies to; empty/omitted = all types
1515
1515
  * @example ["P2P_TRANSFER","WITHDRAWAL"]
1516
1516
  */
1517
- transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING")[];
1517
+ transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING" | "ADMIN_FUNDING")[];
1518
1518
  /**
1519
1519
  * Account types this rule applies to; empty/omitted = all types
1520
1520
  * @example ["personal","business"]
@@ -1589,7 +1589,7 @@ export interface CreateAmlRuleDto {
1589
1589
  * Transaction types this rule applies to; empty/omitted = all types
1590
1590
  * @example ["P2P_TRANSFER","WITHDRAWAL"]
1591
1591
  */
1592
- transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING")[];
1592
+ transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING" | "ADMIN_FUNDING")[];
1593
1593
  /**
1594
1594
  * Account types this rule applies to; empty/omitted = all types
1595
1595
  * @example ["personal","business"]
@@ -1649,7 +1649,7 @@ export interface UpdateAmlRuleDto {
1649
1649
  * Transaction types this rule applies to; empty/omitted = all types
1650
1650
  * @example ["P2P_TRANSFER","WITHDRAWAL"]
1651
1651
  */
1652
- transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING")[];
1652
+ transactionTypes?: ("P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING" | "ADMIN_FUNDING")[];
1653
1653
  /**
1654
1654
  * Account types this rule applies to; empty/omitted = all types
1655
1655
  * @example ["personal","business"]
@@ -1912,10 +1912,15 @@ export interface AccountListResponseDto {
1912
1912
  }
1913
1913
  export interface FundAccountDto {
1914
1914
  /**
1915
- * Account ID (UUID) to credit
1916
- * @example "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1915
+ * Internal/house account to fund FROM (22-digit, owner digit 9 — treasury/clearing/suspense/escrow)
1916
+ * @example "0019509100000000100013"
1917
1917
  */
1918
- accountId: string;
1918
+ sourceAccount: string;
1919
+ /**
1920
+ * Customer account to credit (22-digit)
1921
+ * @example "0011019100000000100027"
1922
+ */
1923
+ toAccount: string;
1919
1924
  /**
1920
1925
  * Amount to credit (string for precision)
1921
1926
  * @example "10000.00"
@@ -1929,6 +1934,37 @@ export interface FundAccountDto {
1929
1934
  /** Reason / justification for the funding */
1930
1935
  reason?: string;
1931
1936
  }
1937
+ export interface FundAccountResponseDto {
1938
+ /** @example "01890a5d-..." */
1939
+ transactionId: string;
1940
+ /** @example "TX-260627-ABC123" */
1941
+ referenceNumber: string;
1942
+ /** @example "COMPLETED" */
1943
+ status: string;
1944
+ /** @example "SYP" */
1945
+ currency: string;
1946
+ /**
1947
+ * Amount issued
1948
+ * @example "10000.0000"
1949
+ */
1950
+ grossAmount: string;
1951
+ /**
1952
+ * Total commission
1953
+ * @example "0.0000"
1954
+ */
1955
+ feeAmount: string;
1956
+ /**
1957
+ * What the customer received
1958
+ * @example "10000.0000"
1959
+ */
1960
+ netAmount: string;
1961
+ /** Internal source account */
1962
+ fromAccount: string;
1963
+ /** Customer account */
1964
+ toAccount: string;
1965
+ /** @example "2026-06-27T10:00:00.000Z" */
1966
+ createdAt: string;
1967
+ }
1932
1968
  export interface TransactionResponseDto {
1933
1969
  /**
1934
1970
  * Transaction ID (UUID)
@@ -1974,7 +2010,7 @@ export interface TransactionResponseDto {
1974
2010
  * Transaction type
1975
2011
  * @example "P2P_TRANSFER"
1976
2012
  */
1977
- type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
2013
+ type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING" | "ADMIN_FUNDING";
1978
2014
  /**
1979
2015
  * Transaction status
1980
2016
  * @example "COMPLETED"
@@ -2719,48 +2755,110 @@ export interface UpdateMerchantCategoryDto {
2719
2755
  /** Toggle whether new merchants may register under this category */
2720
2756
  isActive?: boolean;
2721
2757
  }
2722
- export interface CurrencyStatsDto {
2723
- /** @example "SYP" */
2724
- currency: string;
2725
- /** @example "150000.00" */
2726
- totalVolume: string;
2727
- /** @example "75000.00" */
2728
- totalCredits: string;
2729
- /** @example "74000.00" */
2730
- totalDebits: string;
2731
- /** @example "1000.00" */
2732
- totalFees: string;
2733
- /** @example "1250.00" */
2734
- avgTransactionAmount: string;
2758
+ export interface SendGlobalNotificationDto {
2759
+ /**
2760
+ * Notification title displayed to the user
2761
+ * @example "System Maintenance"
2762
+ */
2763
+ title: string;
2764
+ /**
2765
+ * Notification body text
2766
+ * @example "Scheduled maintenance on April 10 from 2–4 AM."
2767
+ */
2768
+ body: string;
2769
+ /**
2770
+ * Optional image URL to display with the notification
2771
+ * @example "https://cdn.example.com/banner.png"
2772
+ */
2773
+ imageUrl?: string;
2774
+ /**
2775
+ * Optional JSON string carrying extra data for the client app
2776
+ * @example "{"screen":"home"}"
2777
+ */
2778
+ data?: string;
2735
2779
  }
2736
- export interface TransactionStatisticsResponseDto {
2780
+ export interface SendGlobalNotificationResponseDto {
2781
+ /** Whether Firebase accepted the message */
2782
+ success: boolean;
2783
+ /** Firebase message ID on success */
2784
+ messageId?: string;
2785
+ }
2786
+ export interface CreateScheduledNotificationDto {
2737
2787
  /**
2738
- * Total number of transactions
2739
- * @example 150
2788
+ * Notification title
2789
+ * @example "System Maintenance"
2740
2790
  */
2741
- totalTransactions: number;
2791
+ title: string;
2742
2792
  /**
2743
- * Number of completed transactions
2744
- * @example 120
2793
+ * Notification body text
2794
+ * @example "Scheduled maintenance tonight from 2–4 AM."
2745
2795
  */
2746
- completedTransactions: number;
2796
+ body: string;
2747
2797
  /**
2748
- * Number of failed/declined/rejected transactions
2749
- * @example 5
2798
+ * Optional image URL
2799
+ * @example "https://cdn.example.com/banner.png"
2750
2800
  */
2751
- failedTransactions: number;
2801
+ imageUrl?: string;
2752
2802
  /**
2753
- * Number of cancelled transactions
2754
- * @example 3
2803
+ * Optional JSON string payload for the client app
2804
+ * @example "{"screen":"home"}"
2755
2805
  */
2756
- cancelledTransactions: number;
2757
- /** Breakdown by currency */
2758
- byCurrency: CurrencyStatsDto[];
2806
+ data?: string;
2759
2807
  /**
2760
- * Transaction count by type
2761
- * @example {"P2P_TRANSFER":45,"TOP_UP":12}
2808
+ * ISO 8601 UTC datetime to fire the notification (must be in the future)
2809
+ * @example "2026-04-10T02:00:00.000Z"
2762
2810
  */
2763
- typeBreakdown: object;
2811
+ scheduledAt: string;
2812
+ }
2813
+ export interface ScheduledNotificationResponseDto {
2814
+ id: string;
2815
+ title: string;
2816
+ body: string;
2817
+ imageUrl?: string;
2818
+ data?: string;
2819
+ /** ISO 8601 UTC datetime the notification is scheduled for */
2820
+ scheduledAt: string;
2821
+ status: "pending" | "sent" | "failed" | "cancelled";
2822
+ sentAt?: string;
2823
+ messageId?: string;
2824
+ errorMessage?: string;
2825
+ createdBy: string;
2826
+ createdByEmail: string;
2827
+ createdAt: string;
2828
+ updatedAt: string;
2829
+ }
2830
+ export interface ScheduledNotificationsListResponseDto {
2831
+ items: ScheduledNotificationResponseDto[];
2832
+ total: number;
2833
+ page: number;
2834
+ limit: number;
2835
+ }
2836
+ export interface UpdateScheduledNotificationDto {
2837
+ /**
2838
+ * Notification title
2839
+ * @example "System Maintenance"
2840
+ */
2841
+ title?: string;
2842
+ /**
2843
+ * Notification body text
2844
+ * @example "Scheduled maintenance tonight from 2–4 AM."
2845
+ */
2846
+ body?: string;
2847
+ /**
2848
+ * Optional image URL
2849
+ * @example "https://cdn.example.com/banner.png"
2850
+ */
2851
+ imageUrl?: string;
2852
+ /**
2853
+ * Optional JSON string payload for the client app
2854
+ * @example "{"screen":"home"}"
2855
+ */
2856
+ data?: string;
2857
+ /**
2858
+ * ISO 8601 UTC datetime to fire the notification (must be in the future)
2859
+ * @example "2026-04-10T02:00:00.000Z"
2860
+ */
2861
+ scheduledAt?: string;
2764
2862
  }
2765
2863
  export interface AdminTransactionItemDto {
2766
2864
  /** @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890" */
@@ -2780,7 +2878,7 @@ export interface AdminTransactionItemDto {
2780
2878
  /** @example "SYP" */
2781
2879
  currency: "SYP" | "USD" | "EUR";
2782
2880
  /** @example "P2P_TRANSFER" */
2783
- type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
2881
+ type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING" | "ADMIN_FUNDING";
2784
2882
  /** @example "COMPLETED" */
2785
2883
  status: "COMPLETED" | "FAILED" | "VOUCHER_PENDING" | "REVERSED";
2786
2884
  /** @example "Payment for services" */
@@ -2803,6 +2901,49 @@ export interface AdminTransactionListResponseDto {
2803
2901
  data: AdminTransactionItemDto[];
2804
2902
  meta: PaginationMetaDto;
2805
2903
  }
2904
+ export interface CurrencyStatsDto {
2905
+ /** @example "SYP" */
2906
+ currency: string;
2907
+ /** @example "150000.00" */
2908
+ totalVolume: string;
2909
+ /** @example "75000.00" */
2910
+ totalCredits: string;
2911
+ /** @example "74000.00" */
2912
+ totalDebits: string;
2913
+ /** @example "1000.00" */
2914
+ totalFees: string;
2915
+ /** @example "1250.00" */
2916
+ avgTransactionAmount: string;
2917
+ }
2918
+ export interface TransactionStatisticsResponseDto {
2919
+ /**
2920
+ * Total number of transactions
2921
+ * @example 150
2922
+ */
2923
+ totalTransactions: number;
2924
+ /**
2925
+ * Number of completed transactions
2926
+ * @example 120
2927
+ */
2928
+ completedTransactions: number;
2929
+ /**
2930
+ * Number of failed/declined/rejected transactions
2931
+ * @example 5
2932
+ */
2933
+ failedTransactions: number;
2934
+ /**
2935
+ * Number of cancelled transactions
2936
+ * @example 3
2937
+ */
2938
+ cancelledTransactions: number;
2939
+ /** Breakdown by currency */
2940
+ byCurrency: CurrencyStatsDto[];
2941
+ /**
2942
+ * Transaction count by type
2943
+ * @example {"P2P_TRANSFER":45,"TOP_UP":12}
2944
+ */
2945
+ typeBreakdown: object;
2946
+ }
2806
2947
  export interface LedgerEntryResponseDto {
2807
2948
  /**
2808
2949
  * Ledger entry ID (UUID)
@@ -2883,236 +3024,294 @@ export interface AdminTransactionDetailResponseDto {
2883
3024
  toUser: TransactionPartyDto;
2884
3025
  amlAlerts: AmlAlertDto[];
2885
3026
  }
2886
- export interface SendGlobalNotificationDto {
2887
- /**
2888
- * Notification title displayed to the user
2889
- * @example "System Maintenance"
2890
- */
2891
- title: string;
3027
+ export interface ChargeNameDto {
3028
+ /** @example "P2P transfer fee" */
3029
+ en: string;
3030
+ /** @example "رسوم التحويل بين الأشخاص" */
3031
+ ar?: string;
3032
+ }
3033
+ export interface ChargeResponseDto {
3034
+ /** @example "FEE_P2P" */
3035
+ code: string;
3036
+ /** @example "FEE" */
3037
+ category: string;
3038
+ name: ChargeNameDto;
3039
+ /** @example "0017609100000000100014" */
3040
+ creditAccountNo: string;
3041
+ /** @example false */
3042
+ refundable: boolean;
3043
+ }
3044
+ export interface ChargeListResponseDto {
3045
+ charges: ChargeResponseDto[];
3046
+ }
3047
+ export interface CreateChargeDto {
2892
3048
  /**
2893
- * Notification body text
2894
- * @example "Scheduled maintenance on April 10 from 2–4 AM."
3049
+ * Unique charge code (UPPER_SNAKE)
3050
+ * @example "FEE_P2P"
2895
3051
  */
2896
- body: string;
3052
+ code: string;
3053
+ /** @example "FEE" */
3054
+ category: "FEE" | "TAX";
3055
+ name: ChargeNameDto;
2897
3056
  /**
2898
- * Optional image URL to display with the notification
2899
- * @example "https://cdn.example.com/banner.png"
3057
+ * Ledger account this charge credits (22-digit)
3058
+ * @example "0017609100000000100014"
2900
3059
  */
2901
- imageUrl?: string;
3060
+ creditAccountNo: string;
2902
3061
  /**
2903
- * Optional JSON string carrying extra data for the client app
2904
- * @example "{"screen":"home"}"
3062
+ * Reverse this fee when the transaction reverses?
3063
+ * @example false
2905
3064
  */
2906
- data?: string;
3065
+ refundable: boolean;
2907
3066
  }
2908
- export interface SendGlobalNotificationResponseDto {
2909
- /** Whether Firebase accepted the message */
2910
- success: boolean;
2911
- /** Firebase message ID on success */
2912
- messageId?: string;
3067
+ export interface UpdateChargeDto {
3068
+ category?: "FEE" | "TAX";
3069
+ name?: ChargeNameDto;
3070
+ /** @example "0017609100000000100014" */
3071
+ creditAccountNo?: string;
3072
+ /** @example true */
3073
+ refundable?: boolean;
2913
3074
  }
2914
- export interface CreateScheduledNotificationDto {
3075
+ export interface ChargeTierResponseDto {
3076
+ /** @example "1001" */
3077
+ id: string;
3078
+ /** @example "FEE_P2P" */
3079
+ chargeCode: string;
3080
+ /** @example "0" */
3081
+ fromAmount: string;
3082
+ /** @example null */
3083
+ toAmount: object | null;
3084
+ /** @example "PERCENT" */
3085
+ calcType: string;
3086
+ /** @example "2.5" */
3087
+ value: string;
3088
+ /** @example "250" */
3089
+ minAmount: object | null;
3090
+ /** @example "5000" */
3091
+ maxAmount: object | null;
3092
+ /** @example "SYP" */
3093
+ currencyCode: string;
3094
+ /** @example "2026-01-01T00:00:00.000Z" */
3095
+ validFrom: string;
3096
+ /** @example null */
3097
+ validTo: object | null;
3098
+ /** @example "ACTIVE" */
3099
+ status: string;
3100
+ /** @example "seed" */
3101
+ approvedBy: object | null;
3102
+ }
3103
+ export interface ChargeTierListResponseDto {
3104
+ tiers: ChargeTierResponseDto[];
3105
+ }
3106
+ export interface CreateChargeTierDto {
2915
3107
  /**
2916
- * Notification title
2917
- * @example "System Maintenance"
3108
+ * Charge this tier prices
3109
+ * @example "FEE_P2P"
2918
3110
  */
2919
- title: string;
3111
+ chargeCode: string;
2920
3112
  /**
2921
- * Notification body text
2922
- * @example "Scheduled maintenance tonight from 2–4 AM."
3113
+ * Band start (default 0)
3114
+ * @example "0"
2923
3115
  */
2924
- body: string;
3116
+ fromAmount?: string;
2925
3117
  /**
2926
- * Optional image URL
2927
- * @example "https://cdn.example.com/banner.png"
3118
+ * Band end; omit for ∞
3119
+ * @example "1000000"
2928
3120
  */
2929
- imageUrl?: string;
3121
+ toAmount?: string;
3122
+ /** @example "PERCENT" */
3123
+ calcType: "FLAT" | "PERCENT";
2930
3124
  /**
2931
- * Optional JSON string payload for the client app
2932
- * @example "{"screen":"home"}"
3125
+ * Flat amount or percent value
3126
+ * @example "2.5"
2933
3127
  */
2934
- data?: string;
3128
+ value: string;
2935
3129
  /**
2936
- * ISO 8601 UTC datetime to fire the notification (must be in the future)
2937
- * @example "2026-04-10T02:00:00.000Z"
3130
+ * Clamp floor
3131
+ * @example "250"
2938
3132
  */
2939
- scheduledAt: string;
2940
- }
2941
- export interface ScheduledNotificationResponseDto {
2942
- id: string;
2943
- title: string;
2944
- body: string;
2945
- imageUrl?: string;
2946
- data?: string;
2947
- /** ISO 8601 UTC datetime the notification is scheduled for */
2948
- scheduledAt: string;
2949
- status: "pending" | "sent" | "failed" | "cancelled";
2950
- sentAt?: string;
2951
- messageId?: string;
2952
- errorMessage?: string;
2953
- createdBy: string;
2954
- createdByEmail: string;
2955
- createdAt: string;
2956
- updatedAt: string;
2957
- }
2958
- export interface ScheduledNotificationsListResponseDto {
2959
- items: ScheduledNotificationResponseDto[];
2960
- total: number;
2961
- page: number;
2962
- limit: number;
2963
- }
2964
- export interface UpdateScheduledNotificationDto {
3133
+ minAmount?: string;
2965
3134
  /**
2966
- * Notification title
2967
- * @example "System Maintenance"
3135
+ * Clamp cap
3136
+ * @example "5000"
2968
3137
  */
2969
- title?: string;
3138
+ maxAmount?: string;
3139
+ /** @example "SYP" */
3140
+ currencyCode: string;
2970
3141
  /**
2971
- * Notification body text
2972
- * @example "Scheduled maintenance tonight from 2–4 AM."
3142
+ * ISO-8601; defaults to now
3143
+ * @example "2026-01-01T00:00:00Z"
2973
3144
  */
2974
- body?: string;
3145
+ validFrom?: string;
2975
3146
  /**
2976
- * Optional image URL
2977
- * @example "https://cdn.example.com/banner.png"
3147
+ * ISO-8601; omit = open
3148
+ * @example "2027-01-01T00:00:00Z"
2978
3149
  */
2979
- imageUrl?: string;
3150
+ validTo?: string;
3151
+ /** @example "ACTIVE" */
3152
+ status?: "DRAFT" | "ACTIVE" | "RETIRED";
2980
3153
  /**
2981
- * Optional JSON string payload for the client app
2982
- * @example "{"screen":"home"}"
3154
+ * Four-eyes approver
3155
+ * @example "admin.huda"
2983
3156
  */
2984
- data?: string;
3157
+ approvedBy?: string;
3158
+ }
3159
+ export interface UpdateChargeTierDto {
3160
+ /** @example "FEE_P2P" */
3161
+ chargeCode?: string;
3162
+ fromAmount?: string;
3163
+ toAmount?: string;
3164
+ calcType?: "FLAT" | "PERCENT";
3165
+ value?: string;
3166
+ minAmount?: string;
3167
+ maxAmount?: string;
3168
+ currencyCode?: string;
3169
+ validFrom?: string;
3170
+ validTo?: string;
3171
+ status?: "DRAFT" | "ACTIVE" | "RETIRED";
3172
+ approvedBy?: string;
3173
+ }
3174
+ export interface ChargeSchemaResponseDto {
3175
+ /** @example "SCH_P2P_STD" */
3176
+ code: string;
3177
+ name: ChargeNameDto;
3178
+ }
3179
+ export interface ChargeSchemaListResponseDto {
3180
+ schemas: ChargeSchemaResponseDto[];
3181
+ }
3182
+ export interface CreateChargeSchemaDto {
2985
3183
  /**
2986
- * ISO 8601 UTC datetime to fire the notification (must be in the future)
2987
- * @example "2026-04-10T02:00:00.000Z"
3184
+ * Unique schema code (UPPER_SNAKE)
3185
+ * @example "SCH_P2P_STD"
2988
3186
  */
2989
- scheduledAt?: string;
3187
+ code: string;
3188
+ name: ChargeNameDto;
2990
3189
  }
2991
- export interface SystemConfigResponseDto {
3190
+ export interface UpdateChargeSchemaDto {
3191
+ name?: ChargeNameDto;
3192
+ }
3193
+ export interface ChargeSchemaItemResponseDto {
3194
+ /** @example "5001" */
2992
3195
  id: string;
2993
- configKey: string;
2994
- currency: string;
2995
- value: string;
2996
- description?: string;
2997
- isActive: boolean;
2998
- updatedBy?: string;
2999
- createdAt: string;
3000
- updatedAt: string;
3196
+ /** @example "SCH_P2P_STD" */
3197
+ schemaCode: string;
3198
+ /** @example "FEE_P2P" */
3199
+ chargeCode: string;
3200
+ /** @example "PAYER" */
3201
+ bearer: string;
3001
3202
  }
3002
- export interface SystemConfigListResponseDto {
3003
- configs: SystemConfigResponseDto[];
3203
+ export interface ChargeSchemaItemListResponseDto {
3204
+ items: ChargeSchemaItemResponseDto[];
3004
3205
  }
3005
- export interface UpsertSystemConfigDto {
3006
- /** Configuration key */
3007
- configKey: "CASHIN_MIN_AMOUNT" | "CASHIN_MAX_AMOUNT" | "CASHOUT_MIN_AMOUNT" | "CASHOUT_MAX_AMOUNT" | "P2P_MIN_AMOUNT" | "P2P_MAX_AMOUNT" | "MERCHANT_PAYMENT_MIN_AMOUNT" | "MERCHANT_PAYMENT_MAX_AMOUNT" | "TRANSACTION_MAX_AMOUNT" | "DAILY_TRANSACTION_LIMIT" | "DAILY_TRANSACTION_COUNT" | "PAYMENT_REQUEST_MIN_AMOUNT" | "PAYMENT_REQUEST_MAX_AMOUNT" | "MAX_WALLET_BALANCE";
3008
- /** Currency code */
3009
- currency: "SYP" | "USD" | "EUR";
3010
- /** Configuration value */
3011
- value: string;
3012
- /** Human-readable description */
3013
- description?: string;
3206
+ export interface CreateChargeSchemaItemDto {
3014
3207
  /**
3015
- * Whether this config is active
3016
- * @default true
3208
+ * Schema this component belongs to
3209
+ * @example "SCH_P2P_STD"
3017
3210
  */
3018
- isActive?: boolean;
3211
+ schemaCode: string;
3212
+ /**
3213
+ * Charge bundled into the schema
3214
+ * @example "FEE_P2P"
3215
+ */
3216
+ chargeCode: string;
3217
+ /**
3218
+ * Party that bears this charge
3219
+ * @example "PAYER"
3220
+ */
3221
+ bearer: "PAYER" | "PAYEE" | "AGENT" | "PLATFORM";
3222
+ }
3223
+ export interface UpdateChargeSchemaItemDto {
3224
+ /** @example "SCH_P2P_STD" */
3225
+ schemaCode?: string;
3226
+ /** @example "FEE_P2P" */
3227
+ chargeCode?: string;
3228
+ bearer?: "PAYER" | "PAYEE" | "AGENT" | "PLATFORM";
3019
3229
  }
3020
- export interface FeeConfigResponseDto {
3230
+ export interface DecisionRuleResponseDto {
3231
+ /** @example "9001" */
3021
3232
  id: string;
3022
- transactionType: string;
3023
- currency: string;
3024
- feeType: string;
3025
- flatAmount?: string;
3026
- percentage?: string;
3027
- minFee?: string;
3028
- maxFee?: string;
3029
- minTransactionAmount?: string;
3030
- maxTransactionAmount?: string;
3031
- feeDirection: string;
3233
+ /** @example "P2P" */
3234
+ trxType: string;
3235
+ /** @example null */
3236
+ cifTypeId: object | null;
3237
+ /** @example null */
3238
+ channel: object | null;
3239
+ /** @example null */
3240
+ customerId: object | null;
3241
+ /** @example "SCH_P2P_STD" */
3242
+ schemaCode: string;
3243
+ /** @example 100 */
3032
3244
  priority: number;
3033
- description?: string;
3034
- isActive: boolean;
3035
- updatedBy?: string;
3036
- createdAt: string;
3037
- updatedAt: string;
3245
+ /** @example "2026-01-01T00:00:00.000Z" */
3246
+ validFrom: string;
3247
+ /** @example null */
3248
+ validTo: object | null;
3249
+ /** @example "ACTIVE" */
3250
+ status: string;
3038
3251
  }
3039
- export interface FeeConfigListResponseDto {
3040
- configs: FeeConfigResponseDto[];
3252
+ export interface DecisionRuleListResponseDto {
3253
+ rules: DecisionRuleResponseDto[];
3041
3254
  }
3042
- export interface CreateFeeConfigDto {
3043
- /** Transaction type */
3044
- transactionType: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
3045
- /** Currency code */
3046
- currency: "SYP" | "USD" | "EUR";
3047
- /** Fee calculation type */
3048
- feeType: "FLAT" | "PERCENTAGE" | "FLAT_PLUS_PERCENTAGE";
3049
- /** Fixed fee amount */
3050
- flatAmount?: string;
3051
- /** Percentage rate (e.g. 1.5 for 1.5%) */
3052
- percentage?: string;
3053
- /** Minimum fee cap */
3054
- minFee?: string;
3055
- /** Maximum fee cap */
3056
- maxFee?: string;
3057
- /** Tier start: rule applies when amount >= this */
3058
- minTransactionAmount?: string;
3059
- /** Tier end: rule applies when amount < this */
3060
- maxTransactionAmount?: string;
3061
- /** Who bears the fee */
3062
- feeDirection: "DEDUCT_FROM_AMOUNT" | "ADD_ON_TOP";
3063
- /**
3064
- * Priority (higher wins when multiple tiers match)
3065
- * @default 0
3255
+ export interface CreateDecisionRuleDto {
3256
+ /**
3257
+ * Transaction type this rule prices
3258
+ * @example "P2P"
3066
3259
  */
3067
- priority?: number;
3068
- /** Human-readable description */
3069
- description?: string;
3260
+ trxType: string;
3070
3261
  /**
3071
- * Whether this config is active
3072
- * @default true
3262
+ * CIF type; omit for all customers
3263
+ * @example "INDIVIDUAL"
3073
3264
  */
3074
- isActive?: boolean;
3075
- }
3076
- export interface UpdateFeeConfigDto {
3077
- /** Transaction type */
3078
- transactionType?: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
3079
- /** Currency code */
3080
- currency?: "SYP" | "USD" | "EUR";
3081
- /** Fee calculation type */
3082
- feeType?: "FLAT" | "PERCENTAGE" | "FLAT_PLUS_PERCENTAGE";
3083
- /** Fixed fee amount */
3084
- flatAmount?: string;
3085
- /** Percentage rate (e.g. 1.5 for 1.5%) */
3086
- percentage?: string;
3087
- /** Minimum fee cap */
3088
- minFee?: string;
3089
- /** Maximum fee cap */
3090
- maxFee?: string;
3091
- /** Tier start: rule applies when amount >= this */
3092
- minTransactionAmount?: string;
3093
- /** Tier end: rule applies when amount < this */
3094
- maxTransactionAmount?: string;
3095
- /** Who bears the fee */
3096
- feeDirection?: "DEDUCT_FROM_AMOUNT" | "ADD_ON_TOP";
3097
- /**
3098
- * Priority (higher wins when multiple tiers match)
3099
- * @default 0
3265
+ cifTypeId?: string;
3266
+ /**
3267
+ * Channel; omit for all channels
3268
+ * @example "MOBILE"
3269
+ */
3270
+ channel?: string;
3271
+ /**
3272
+ * Single-customer override
3273
+ * @example "1042"
3274
+ */
3275
+ customerId?: string;
3276
+ /**
3277
+ * Schema this tuple resolves to
3278
+ * @example "SCH_P2P_STD"
3279
+ */
3280
+ schemaCode: string;
3281
+ /**
3282
+ * Specificity ladder; highest wins (default 0)
3283
+ * @example 100
3100
3284
  */
3101
3285
  priority?: number;
3102
- /** Human-readable description */
3103
- description?: string;
3104
3286
  /**
3105
- * Whether this config is active
3106
- * @default true
3287
+ * ISO-8601; defaults to now
3288
+ * @example "2026-01-01T00:00:00Z"
3107
3289
  */
3108
- isActive?: boolean;
3109
- }
3110
- export interface CalculateFeeResponseDto {
3111
- feeAmount: string;
3112
- netAmount: string;
3113
- totalDebit: string;
3114
- feeDirection: string;
3115
- feeRuleId?: string;
3290
+ validFrom?: string;
3291
+ /**
3292
+ * ISO-8601; omit = open
3293
+ * @example "2027-01-01T00:00:00Z"
3294
+ */
3295
+ validTo?: string;
3296
+ /** @example "ACTIVE" */
3297
+ status?: "ACTIVE" | "INACTIVE";
3298
+ }
3299
+ export interface UpdateDecisionRuleDto {
3300
+ /** @example "P2P" */
3301
+ trxType?: string;
3302
+ /** @example "INDIVIDUAL" */
3303
+ cifTypeId?: string;
3304
+ /** @example "MOBILE" */
3305
+ channel?: string;
3306
+ /** @example "1042" */
3307
+ customerId?: string;
3308
+ /** @example "SCH_P2P_STD" */
3309
+ schemaCode?: string;
3310
+ /** @example 100 */
3311
+ priority?: number;
3312
+ validFrom?: string;
3313
+ validTo?: string;
3314
+ status?: "ACTIVE" | "INACTIVE";
3116
3315
  }
3117
3316
  export interface AdminLegalDocumentResponseDto {
3118
3317
  /**
@@ -3901,7 +4100,6 @@ export interface UpdateStatusParams {
3901
4100
  }
3902
4101
  export type UpdateStatusData = AdminUserDetailResponseDto;
3903
4102
  export type SeedPermissionsAndRolesData = SeedPermissionsRolesResponseDto;
3904
- export type SeedConfigDefaultsData = any;
3905
4103
  export interface FindAllParams6 {
3906
4104
  /**
3907
4105
  * Page number (1-based)
@@ -4068,7 +4266,7 @@ export interface List2Params {
4068
4266
  only_active: string;
4069
4267
  }
4070
4268
  export type List2Data = DocumentTypeResponseDto[];
4071
- export type CreateOutput1 = any;
4269
+ export type CreateResult1 = any;
4072
4270
  export interface ListVersionsParams {
4073
4271
  code: string;
4074
4272
  }
@@ -4246,7 +4444,7 @@ export interface ListAccountsParams {
4246
4444
  search?: string;
4247
4445
  }
4248
4446
  export type ListAccountsData = AccountListResponseDto;
4249
- export type FundAccountData = TransactionResponseDto;
4447
+ export type FundAccountData = FundAccountResponseDto;
4250
4448
  export interface GetAccountDetailParams {
4251
4449
  /** Transaction history page number (default: 1) */
4252
4450
  txPage?: number;
@@ -4359,7 +4557,7 @@ export interface UpdateParams6 {
4359
4557
  /** @example 2 */
4360
4558
  version: number;
4361
4559
  }
4362
- export type UpdateData1 = AccountProductResponseDto;
4560
+ export type UpdateResult1 = AccountProductResponseDto;
4363
4561
  export interface PublishVersionParams {
4364
4562
  /** @example "PERS-CURRENT" */
4365
4563
  code: string;
@@ -4450,51 +4648,10 @@ export interface UpdateParams8 {
4450
4648
  /** 4-digit MCC code */
4451
4649
  code: string;
4452
4650
  }
4453
- export type UpdateOutput1 = MerchantCategoryResponseDto;
4454
- export interface GetStatisticsParams3 {
4455
- /** Start date filter (ISO date, e.g. 2025-01-01) */
4456
- startDate?: string;
4457
- /** End date filter (ISO date, e.g. 2025-12-31) */
4458
- endDate?: string;
4459
- /** Filter by currency */
4460
- currency?: "SYP" | "USD" | "EUR";
4461
- }
4462
- export type GetStatisticsResult1 = TransactionStatisticsResponseDto;
4463
- export interface ListTransactionsParams {
4464
- /** Search by transaction ID or public transaction ID */
4465
- search?: string;
4466
- status?: "INITIATED" | "VALIDATING" | "AUTHORIZED" | "RESERVED" | "POSTING" | "COMPLETED" | "REJECTED" | "DECLINED" | "CANCELLED" | "FAILED" | "REVERSING" | "REVERSED";
4467
- type?: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
4468
- currency?: "SYP" | "USD" | "EUR";
4469
- /** Filter by account (from or to) */
4470
- accountId?: string;
4471
- /** Filter by source account */
4472
- fromAccountId?: string;
4473
- /** Filter by destination account */
4474
- toAccountId?: string;
4475
- /** Filter by person ID (resolves to account IDs) */
4476
- personId?: string;
4477
- /** Start date (ISO 8601) */
4478
- startDate?: string;
4479
- /** End date (ISO 8601) */
4480
- endDate?: string;
4481
- /** Sort field (default: createdAt) */
4482
- sortBy?: "createdAt" | "amount" | "status" | "type" | "completedAt";
4483
- /** Sort direction (default: DESC) */
4484
- sortOrder?: "ASC" | "DESC";
4485
- page?: number;
4486
- limit?: number;
4487
- }
4488
- export type ListTransactionsData = AdminTransactionListResponseDto;
4489
- export interface GetTransactionDetailParams {
4490
- /** Transaction UUID */
4491
- transactionId: string;
4492
- }
4493
- export type GetTransactionDetailData = AdminTransactionDetailResponseDto;
4494
- export type GetTransactionDetailError = ErrorResponseDto;
4651
+ export type UpdateResult2 = MerchantCategoryResponseDto;
4495
4652
  export type SendGlobalNotificationData = SendGlobalNotificationResponseDto;
4496
4653
  export type SendGlobalNotificationError = ErrorResponseDto;
4497
- export type CreateData3 = ScheduledNotificationResponseDto;
4654
+ export type CreateResult2 = ScheduledNotificationResponseDto;
4498
4655
  export type CreateBadResponse = ErrorResponseDto;
4499
4656
  export interface FindAllParams10 {
4500
4657
  /** Filter by status */
@@ -4511,7 +4668,7 @@ export interface FindAllParams10 {
4511
4668
  */
4512
4669
  limit?: number;
4513
4670
  }
4514
- export type FindAllResult3 = ScheduledNotificationsListResponseDto;
4671
+ export type FindAllOutput1 = ScheduledNotificationsListResponseDto;
4515
4672
  export interface FindOneParams {
4516
4673
  /** MongoDB ObjectId */
4517
4674
  id: string;
@@ -4522,7 +4679,7 @@ export interface UpdateParams10 {
4522
4679
  /** MongoDB ObjectId */
4523
4680
  id: string;
4524
4681
  }
4525
- export type UpdateResult1 = ScheduledNotificationResponseDto;
4682
+ export type UpdateData1 = ScheduledNotificationResponseDto;
4526
4683
  export type UpdateBadResponse = ErrorResponseDto;
4527
4684
  export interface RemoveParams2 {
4528
4685
  /** MongoDB ObjectId */
@@ -4530,52 +4687,159 @@ export interface RemoveParams2 {
4530
4687
  }
4531
4688
  export type RemoveResult = any;
4532
4689
  export type RemoveError = ErrorResponseDto;
4533
- export interface GetSystemConfigsParams {
4534
- /** Filter by config key */
4535
- configKey?: "CASHIN_MIN_AMOUNT" | "CASHIN_MAX_AMOUNT" | "CASHOUT_MIN_AMOUNT" | "CASHOUT_MAX_AMOUNT" | "P2P_MIN_AMOUNT" | "P2P_MAX_AMOUNT" | "MERCHANT_PAYMENT_MIN_AMOUNT" | "MERCHANT_PAYMENT_MAX_AMOUNT" | "TRANSACTION_MAX_AMOUNT" | "DAILY_TRANSACTION_LIMIT" | "DAILY_TRANSACTION_COUNT" | "PAYMENT_REQUEST_MIN_AMOUNT" | "PAYMENT_REQUEST_MAX_AMOUNT" | "MAX_WALLET_BALANCE";
4536
- /** Filter by currency */
4537
- currency?: "SYP" | "USD" | "EUR";
4690
+ export interface ListTransactionsParams {
4691
+ search?: string;
4692
+ status?: string;
4693
+ type?: string;
4694
+ currency?: string;
4695
+ fromAccountId?: string;
4696
+ toAccountId?: string;
4697
+ accountId?: string;
4698
+ startDate?: string;
4699
+ endDate?: string;
4700
+ sortBy?: string;
4701
+ sortOrder?: string;
4702
+ page?: number;
4703
+ limit?: number;
4538
4704
  }
4539
- export type GetSystemConfigsData = SystemConfigListResponseDto;
4540
- export type UpsertSystemConfigData = SystemConfigResponseDto;
4541
- export interface DeleteSystemConfigParams {
4542
- /** System config UUID */
4705
+ export type ListTransactionsData = AdminTransactionListResponseDto;
4706
+ export interface GetTransactionStatisticsParams {
4707
+ /** ISO-8601 */
4708
+ startDate?: string;
4709
+ /** ISO-8601 */
4710
+ endDate?: string;
4711
+ currency?: string;
4712
+ }
4713
+ export type GetTransactionStatisticsData = TransactionStatisticsResponseDto;
4714
+ export interface GetTransactionDetailParams {
4715
+ /** Transaction UUID or reference number */
4543
4716
  id: string;
4544
4717
  }
4545
- export type DeleteSystemConfigData = any;
4546
- export type DeleteSystemConfigError = ErrorResponseDto;
4547
- export interface GetFeeConfigsParams {
4548
- /** Filter by transaction type */
4549
- transactionType?: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
4550
- /** Filter by currency */
4551
- currency?: "SYP" | "USD" | "EUR";
4718
+ export type GetTransactionDetailData = AdminTransactionDetailResponseDto;
4719
+ export type GetTransactionDetailError = ErrorResponseDto;
4720
+ export interface ListChargesParams {
4721
+ category?: "FEE" | "TAX";
4722
+ }
4723
+ export type ListChargesData = ChargeListResponseDto;
4724
+ export type CreateChargeData = ChargeResponseDto;
4725
+ export type CreateChargeError = ErrorResponseDto;
4726
+ export interface GetChargeParams {
4727
+ /** @example "FEE_P2P" */
4728
+ code: string;
4729
+ }
4730
+ export type GetChargeData = ChargeResponseDto;
4731
+ export type GetChargeError = ErrorResponseDto;
4732
+ export interface UpdateChargeParams {
4733
+ /** @example "FEE_P2P" */
4734
+ code: string;
4735
+ }
4736
+ export type UpdateChargeData = ChargeResponseDto;
4737
+ export type UpdateChargeError = ErrorResponseDto;
4738
+ export interface DeleteChargeParams {
4739
+ /** @example "FEE_P2P" */
4740
+ code: string;
4741
+ }
4742
+ export type DeleteChargeData = any;
4743
+ export type DeleteChargeError = ErrorResponseDto;
4744
+ export interface ListChargeTiersParams {
4745
+ chargeCode?: string;
4746
+ currency?: string;
4747
+ status?: "DRAFT" | "ACTIVE" | "RETIRED";
4552
4748
  }
4553
- export type GetFeeConfigsData = FeeConfigListResponseDto;
4554
- export type CreateFeeConfigData = FeeConfigResponseDto;
4555
- export interface UpdateFeeConfigParams {
4556
- /** Fee config UUID */
4749
+ export type ListChargeTiersData = ChargeTierListResponseDto;
4750
+ export type CreateChargeTierData = ChargeTierResponseDto;
4751
+ export type CreateChargeTierError = ErrorResponseDto;
4752
+ export interface GetChargeTierParams {
4753
+ /** @example "1001" */
4557
4754
  id: string;
4558
4755
  }
4559
- export type UpdateFeeConfigData = FeeConfigResponseDto;
4560
- export type UpdateFeeConfigError = ErrorResponseDto;
4561
- export interface DeleteFeeConfigParams {
4562
- /** Fee config UUID */
4756
+ export type GetChargeTierData = ChargeTierResponseDto;
4757
+ export type GetChargeTierError = ErrorResponseDto;
4758
+ export interface UpdateChargeTierParams {
4759
+ /** @example "1001" */
4563
4760
  id: string;
4564
4761
  }
4565
- export type DeleteFeeConfigData = any;
4566
- export type DeleteFeeConfigError = ErrorResponseDto;
4567
- export interface CalculateFeeParams {
4568
- /** Transaction type to apply fee rules for */
4569
- transactionType: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
4570
- /** Currency code */
4571
- currency: "SYP" | "USD" | "EUR";
4572
- /**
4573
- * Principal amount as a decimal string
4574
- * @example "100.00"
4575
- */
4576
- amount: string;
4762
+ export type UpdateChargeTierData = ChargeTierResponseDto;
4763
+ export type UpdateChargeTierError = ErrorResponseDto;
4764
+ export interface DeleteChargeTierParams {
4765
+ /** @example "1001" */
4766
+ id: string;
4767
+ }
4768
+ export type DeleteChargeTierData = any;
4769
+ export type DeleteChargeTierError = ErrorResponseDto;
4770
+ export type ListChargeSchemasData = ChargeSchemaListResponseDto;
4771
+ export type CreateChargeSchemaData = ChargeSchemaResponseDto;
4772
+ export type CreateChargeSchemaError = ErrorResponseDto;
4773
+ export interface GetChargeSchemaParams {
4774
+ /** @example "SCH_P2P_STD" */
4775
+ code: string;
4776
+ }
4777
+ export type GetChargeSchemaData = ChargeSchemaResponseDto;
4778
+ export type GetChargeSchemaError = ErrorResponseDto;
4779
+ export interface UpdateChargeSchemaParams {
4780
+ /** @example "SCH_P2P_STD" */
4781
+ code: string;
4782
+ }
4783
+ export type UpdateChargeSchemaData = ChargeSchemaResponseDto;
4784
+ export type UpdateChargeSchemaError = ErrorResponseDto;
4785
+ export interface DeleteChargeSchemaParams {
4786
+ /** @example "SCH_P2P_STD" */
4787
+ code: string;
4788
+ }
4789
+ export type DeleteChargeSchemaData = any;
4790
+ export type DeleteChargeSchemaError = ErrorResponseDto;
4791
+ export interface ListChargeSchemaItemsParams {
4792
+ schemaCode?: string;
4793
+ chargeCode?: string;
4794
+ bearer?: "PAYER" | "PAYEE" | "AGENT" | "PLATFORM";
4795
+ }
4796
+ export type ListChargeSchemaItemsData = ChargeSchemaItemListResponseDto;
4797
+ export type CreateChargeSchemaItemData = ChargeSchemaItemResponseDto;
4798
+ export type CreateChargeSchemaItemError = ErrorResponseDto;
4799
+ export interface GetChargeSchemaItemParams {
4800
+ /** @example "5001" */
4801
+ id: string;
4802
+ }
4803
+ export type GetChargeSchemaItemData = ChargeSchemaItemResponseDto;
4804
+ export type GetChargeSchemaItemError = ErrorResponseDto;
4805
+ export interface UpdateChargeSchemaItemParams {
4806
+ /** @example "5001" */
4807
+ id: string;
4808
+ }
4809
+ export type UpdateChargeSchemaItemData = ChargeSchemaItemResponseDto;
4810
+ export type UpdateChargeSchemaItemError = ErrorResponseDto;
4811
+ export interface DeleteChargeSchemaItemParams {
4812
+ /** @example "5001" */
4813
+ id: string;
4814
+ }
4815
+ export type DeleteChargeSchemaItemData = any;
4816
+ export type DeleteChargeSchemaItemError = ErrorResponseDto;
4817
+ export interface ListDecisionRulesParams {
4818
+ trxType?: string;
4819
+ channel?: string;
4820
+ status?: "ACTIVE" | "INACTIVE";
4821
+ }
4822
+ export type ListDecisionRulesData = DecisionRuleListResponseDto;
4823
+ export type CreateDecisionRuleData = DecisionRuleResponseDto;
4824
+ export type CreateDecisionRuleError = ErrorResponseDto;
4825
+ export interface GetDecisionRuleParams {
4826
+ /** @example "9001" */
4827
+ id: string;
4828
+ }
4829
+ export type GetDecisionRuleData = DecisionRuleResponseDto;
4830
+ export type GetDecisionRuleError = ErrorResponseDto;
4831
+ export interface UpdateDecisionRuleParams {
4832
+ /** @example "9001" */
4833
+ id: string;
4834
+ }
4835
+ export type UpdateDecisionRuleData = DecisionRuleResponseDto;
4836
+ export type UpdateDecisionRuleError = ErrorResponseDto;
4837
+ export interface DeleteDecisionRuleParams {
4838
+ /** @example "9001" */
4839
+ id: string;
4577
4840
  }
4578
- export type CalculateFeeData = CalculateFeeResponseDto;
4841
+ export type DeleteDecisionRuleData = any;
4842
+ export type DeleteDecisionRuleError = ErrorResponseDto;
4579
4843
  export type ListDocumentsData = AdminLegalDocumentListResponseDto;
4580
4844
  export type UpsertDocumentData = AdminLegalDocumentResponseDto;
4581
4845
  export type UpsertDocumentError = ErrorResponseDto;
@@ -4585,13 +4849,13 @@ export interface DeleteDocumentParams {
4585
4849
  }
4586
4850
  export type DeleteDocumentData = any;
4587
4851
  export type DeleteDocumentError = ErrorResponseDto;
4588
- export type ListOutput1 = AppVersionPolicyListResponseDto;
4852
+ export type ListResult1 = AppVersionPolicyListResponseDto;
4589
4853
  export type UpsertData = AppVersionPolicyDto;
4590
4854
  export interface GetParams4 {
4591
4855
  platform: "ios" | "android";
4592
4856
  }
4593
4857
  export type GetOutput = AppVersionPolicyDto;
4594
- export type GetStatisticsOutput1 = UserStatisticsResponseDto;
4858
+ export type GetStatisticsResult1 = UserStatisticsResponseDto;
4595
4859
  export interface FindAllParams12 {
4596
4860
  /**
4597
4861
  * Page number (1-based)
@@ -4639,7 +4903,7 @@ export interface FindAllParams12 {
4639
4903
  */
4640
4904
  query?: string;
4641
4905
  }
4642
- export type FindAllResult4 = PersonListResponseDto;
4906
+ export type FindAllResult3 = PersonListResponseDto;
4643
4907
  export interface ExportUsersParams {
4644
4908
  /**
4645
4909
  * Field to sort by
@@ -4729,7 +4993,7 @@ export type PendingByTopicData = DlqPendingByTopicResponseDto[];
4729
4993
  export interface FindByIdParams8 {
4730
4994
  id: string;
4731
4995
  }
4732
- export type FindByIdOutput1 = DlqMessageResponseDto;
4996
+ export type FindByIdResult1 = DlqMessageResponseDto;
4733
4997
  export interface ResolveParams {
4734
4998
  id: string;
4735
4999
  }
@@ -4738,8 +5002,8 @@ export interface ListParams7 {
4738
5002
  /** Return only active branches */
4739
5003
  onlyActive?: boolean;
4740
5004
  }
4741
- export type ListData1 = BankBranchesListResponseDto;
4742
- export type CreateData4 = BankBranchResponseDto;
5005
+ export type ListResult2 = BankBranchesListResponseDto;
5006
+ export type CreateData3 = BankBranchResponseDto;
4743
5007
  export interface GetByCodeParams {
4744
5008
  /** 3-digit branch code */
4745
5009
  code: string;
@@ -4749,21 +5013,21 @@ export interface UpdateParams12 {
4749
5013
  /** 3-digit branch code */
4750
5014
  code: string;
4751
5015
  }
4752
- export type UpdateOutput2 = BankBranchResponseDto;
5016
+ export type UpdateResult3 = BankBranchResponseDto;
4753
5017
  export interface ListParams9 {
4754
5018
  onlyActive?: boolean;
4755
5019
  }
4756
- export type ListOutput2 = AccountTypesListResponseDto;
5020
+ export type ListResult3 = AccountTypesListResponseDto;
4757
5021
  export interface UpdateParams14 {
4758
5022
  /** 2-digit account-type code */
4759
5023
  code: string;
4760
5024
  }
4761
- export type UpdateResult2 = AccountTypeResponseDto;
5025
+ export type UpdateData2 = AccountTypeResponseDto;
4762
5026
  export interface ListParams11 {
4763
5027
  onlyActive?: boolean;
4764
5028
  }
4765
- export type ListData2 = CurrencyConfigListResponseDto;
4766
- export type CreateResult1 = CurrencyConfigResponseDto;
5029
+ export type ListData1 = CurrencyConfigListResponseDto;
5030
+ export type CreateOutput1 = CurrencyConfigResponseDto;
4767
5031
  export interface GetByCodeParams2 {
4768
5032
  /** ISO 4217 alpha-3 code (e.g. USD) */
4769
5033
  code: string;
@@ -4773,19 +5037,19 @@ export interface DeleteParams6 {
4773
5037
  /** ISO 4217 alpha-3 code */
4774
5038
  code: string;
4775
5039
  }
4776
- export type DeleteOutput1 = any;
5040
+ export type DeleteResult1 = any;
4777
5041
  export interface UpdateParams16 {
4778
5042
  /** ISO 4217 alpha-3 code */
4779
5043
  code: string;
4780
5044
  }
4781
- export type UpdateResult3 = CurrencyConfigResponseDto;
4782
- export type ListResult1 = CountryListResponseDto;
4783
- export type CreateResult2 = CountryResponseDto;
5045
+ export type UpdateOutput1 = CurrencyConfigResponseDto;
5046
+ export type ListOutput1 = CountryListResponseDto;
5047
+ export type CreateResult3 = CountryResponseDto;
4784
5048
  export interface UpdateParams18 {
4785
5049
  /** Country UUID */
4786
5050
  id: string;
4787
5051
  }
4788
- export type UpdateOutput3 = CountryResponseDto;
5052
+ export type UpdateData3 = CountryResponseDto;
4789
5053
  export interface List2Params2 {
4790
5054
  /** Country UUID */
4791
5055
  countryId?: string;
@@ -4831,10 +5095,10 @@ export interface CancelParams {
4831
5095
  id: string;
4832
5096
  }
4833
5097
  export type CancelData = ApprovalRequestResponseDto;
4834
- export type ListResult2 = ApprovalPolicyResponseDto[];
5098
+ export type ListOutput2 = ApprovalPolicyResponseDto[];
4835
5099
  export interface UpdateParams20 {
4836
5100
  actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run" | "kyc.approve" | "kyc.reject";
4837
5101
  }
4838
- export type UpdateResult4 = ApprovalPolicyResponseDto;
5102
+ export type UpdateData4 = ApprovalPolicyResponseDto;
4839
5103
  export type IndexData = any;
4840
5104
  //# sourceMappingURL=data-contracts.d.ts.map