@mikemo-coposit/am-accounting-shared 0.0.5 → 0.0.6

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.
package/dist/cjs/index.js CHANGED
@@ -2658,9 +2658,10 @@ var __webpack_exports__ = {};
2658
2658
  PayoutSourceAccountType: ()=>payout_constant_PayoutSourceAccountType,
2659
2659
  boolFilterSchema: ()=>boolFilterSchema,
2660
2660
  centsToDollarsSchema: ()=>centsToDollarsSchema,
2661
- payoutRestReqSchema: ()=>payoutRestReqSchema,
2661
+ createCmaSettlementPayoutSourceAccountSchema: ()=>createCmaSettlementPayoutSourceAccountSchema,
2662
2662
  payoutBankFileDownloadHistoryEntitySchema: ()=>payoutBankFileDownloadHistoryEntitySchema,
2663
2663
  formatCurrency: ()=>formatCurrency,
2664
+ payoutRestReqSchema: ()=>payoutRestReqSchema,
2664
2665
  menuSchema: ()=>menuSchema,
2665
2666
  getTransactionStatus: ()=>getTransactionStatus,
2666
2667
  ASSIGN_UNKNOWN_TO_CUSTOMER: ()=>ASSIGN_UNKNOWN_TO_CUSTOMER,
@@ -2684,13 +2685,15 @@ var __webpack_exports__ = {};
2684
2685
  payoutSourceDetailsRestResBaseSchema: ()=>payoutSourceDetailsRestResBaseSchema,
2685
2686
  propertyAccountsBalanceRestResSchema: ()=>propertyAccountsBalanceRestResSchema,
2686
2687
  updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
2687
- mtaReconciliationRestResSchema: ()=>mtaReconciliationRestResSchema,
2688
+ createCmaSettlementPayoutRestReqSchema: ()=>createCmaSettlementPayoutRestReqSchema,
2688
2689
  createMtaReconciliationRestReqSchema: ()=>createMtaReconciliationRestReqSchema,
2690
+ mtaReconciliationRestResSchema: ()=>mtaReconciliationRestResSchema,
2689
2691
  MtaReceiptTransactionType: ()=>MtaReceiptTransactionType,
2690
2692
  projectNestedEntitySchema: ()=>projectNestedEntitySchema,
2691
2693
  propertyEntitySchema: ()=>propertyEntitySchema,
2692
2694
  intFilterSchema: ()=>intFilterSchema,
2693
2695
  payoutRestResSchema: ()=>payoutRestResSchema,
2696
+ createMtaSettlementPayoutRestReqSchema: ()=>createMtaSettlementPayoutRestReqSchema,
2694
2697
  reconcileCmaTransactionRestReqSchema: ()=>reconcileCmaTransactionRestReqSchema,
2695
2698
  MtaStatus: ()=>mta_MtaStatus,
2696
2699
  cmaRestResBaseSchema: ()=>cmaRestResBaseSchema,
@@ -2738,6 +2741,7 @@ var __webpack_exports__ = {};
2738
2741
  markCmaTransactionAsClearedRestReqSchema: ()=>markCmaTransactionAsClearedRestReqSchema,
2739
2742
  userRestResSchema: ()=>userRestResSchema,
2740
2743
  payoutDetailRestResSchema: ()=>payoutDetailRestResSchema,
2744
+ createSettlementPayoutRestReqSchema: ()=>createSettlementPayoutRestReqSchema,
2741
2745
  payoutPaymentItemSchema: ()=>payoutPaymentItemSchema,
2742
2746
  InputJsonValueSchema: ()=>InputJsonValueSchema,
2743
2747
  MtaPayoutTransactionType: ()=>MtaPayoutTransactionType,
@@ -2749,6 +2753,7 @@ var __webpack_exports__ = {};
2749
2753
  MtaTransactionType: ()=>MtaTransactionType,
2750
2754
  cmaAccountPeriodClosingSummaryRestReqSchema: ()=>cmaAccountPeriodClosingSummaryRestReqSchema,
2751
2755
  maskBankAccount: ()=>maskBankAccount,
2756
+ createSettlementPayoutTargetAccountSchema: ()=>createSettlementPayoutTargetAccountSchema,
2752
2757
  payoutTransactionRestResSchema: ()=>payoutTransactionRestResSchema,
2753
2758
  approveMtaAllocationRestReqSchema: ()=>approveMtaAllocationRestReqSchema,
2754
2759
  confirmBankFileProcessedRestReqSchema: ()=>confirmBankFileProcessedRestReqSchema,
@@ -2756,28 +2761,29 @@ var __webpack_exports__ = {};
2756
2761
  bankCodeSchema: ()=>bankCodeSchema,
2757
2762
  boolFilterBaseSchema: ()=>boolFilterBaseSchema,
2758
2763
  createMenuRestReqSchema: ()=>createMenuRestReqSchema,
2759
- isTransactionAssignable: ()=>isTransactionAssignable,
2764
+ createMtaSettlementPayoutSourceAccountSchema: ()=>createMtaSettlementPayoutSourceAccountSchema,
2760
2765
  ProjectMtaAllocationStatus: ()=>ProjectMtaAllocationStatus,
2761
2766
  cancelPayoutRestReqSchema: ()=>cancelPayoutRestReqSchema,
2767
+ isTransactionAssignable: ()=>isTransactionAssignable,
2762
2768
  mtaClosedAccountPeriodRestResSchema: ()=>mtaClosedAccountPeriodRestResSchema,
2763
2769
  projectMtaAllocationEntitySchema: ()=>projectMtaAllocationEntitySchema,
2764
- projectMtaAllocationRestResSchema: ()=>projectMtaAllocationRestResSchema,
2765
2770
  CmaTransactionPaymentMethod: ()=>cma_payment_method_constant_CmaTransactionPaymentMethod,
2766
2771
  balanceRestResSchema: ()=>balanceRestResSchema,
2767
2772
  bigIntFilterSchema: ()=>bigIntFilterSchema,
2768
2773
  payoutCmaSourceDetailsRestSchema: ()=>payoutCmaSourceDetailsRestSchema,
2769
- projectRestResSchema: ()=>projectRestResSchema,
2774
+ projectMtaAllocationRestResSchema: ()=>projectMtaAllocationRestResSchema,
2770
2775
  mtaListItemRestResSchema: ()=>mtaListItemRestResSchema,
2771
2776
  MtaTransactionPaymentMethod: ()=>mta_payment_method_constant_MtaTransactionPaymentMethod,
2772
2777
  cmaReconciledTransactionRestResSchema: ()=>cmaReconciledTransactionRestResSchema,
2778
+ projectRestResSchema: ()=>projectRestResSchema,
2773
2779
  stateCodeSchema: ()=>stateCodeSchema,
2774
- stringFilterSchema: ()=>stringFilterSchema,
2775
2780
  MtaTransactionStatusToDisplayTextMapper: ()=>MtaTransactionStatusToDisplayTextMapper,
2776
2781
  PropertyStage: ()=>PropertyStage,
2777
2782
  accountBsbValidationSchema: ()=>accountBsbValidationSchema,
2778
2783
  payoutRestResBaseSchema: ()=>payoutRestResBaseSchema,
2779
- updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
2784
+ stringFilterSchema: ()=>stringFilterSchema,
2780
2785
  payoutTargetDetailsRestSchema: ()=>payoutTargetDetailsRestSchema,
2786
+ updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
2781
2787
  cmaAccountPeriodRestResBaseSchema: ()=>cmaAccountPeriodRestResBaseSchema,
2782
2788
  cmaAccountPeriodClosingSummaryRestResSchema: ()=>cmaAccountPeriodClosingSummaryRestResSchema,
2783
2789
  cmaTransactionRestResSchema: ()=>cmaTransactionRestResSchema,
@@ -4410,6 +4416,44 @@ var __webpack_exports__ = {};
4410
4416
  bankRef: external_zod_namespaceObject.z.string()
4411
4417
  })).min(1)
4412
4418
  });
4419
+ const createSettlementPayoutTargetAccountSchema = external_zod_namespaceObject.z.object({
4420
+ targetAccountType: external_zod_namespaceObject.z.literal(payout_constant_PayoutTargetAccountType.OTHER),
4421
+ creditAmountCents: dollarsToCentsSchema,
4422
+ description: external_zod_namespaceObject.z.string().trim().min(1),
4423
+ bankRef: external_zod_namespaceObject.z.string().trim().min(1),
4424
+ targetAccountName: external_zod_namespaceObject.z.string().trim().min(1),
4425
+ targetAccountNumber: accountNumberValidationSchema,
4426
+ targetBsb: accountBsbValidationSchema,
4427
+ sourcePropertyId: external_zod_namespaceObject.z.string().uuid().optional()
4428
+ });
4429
+ const createCmaSettlementPayoutSourceAccountSchema = external_zod_namespaceObject.z.object({
4430
+ sourceAccountId: external_zod_namespaceObject.z.string().uuid(),
4431
+ sourceAccountType: external_zod_namespaceObject.z.literal(payout_constant_PayoutSourceAccountType.CMA),
4432
+ sourceBankRef: external_zod_namespaceObject.z.string().trim().min(1),
4433
+ sourceDescription: external_zod_namespaceObject.z.string().trim().min(1)
4434
+ });
4435
+ const createMtaSettlementPayoutSourceAccountSchema = external_zod_namespaceObject.z.object({
4436
+ sourceAccountId: external_zod_namespaceObject.z.string().uuid(),
4437
+ sourceAccountType: external_zod_namespaceObject.z.literal(payout_constant_PayoutSourceAccountType.MTA),
4438
+ sourceBankRef: external_zod_namespaceObject.z.string().trim().min(1),
4439
+ sourceDescription: external_zod_namespaceObject.z.string().trim().min(1)
4440
+ });
4441
+ const createMtaSettlementPayoutRestReqSchema = external_zod_namespaceObject.z.object({
4442
+ projectId: external_zod_namespaceObject.z.string().uuid(),
4443
+ payoutType: external_zod_namespaceObject.z.literal(PayoutType.TRUST_SETTLEMENT_PAYOUT),
4444
+ sourceAccount: external_zod_namespaceObject.z.lazy(()=>createMtaSettlementPayoutSourceAccountSchema),
4445
+ targetAccounts: external_zod_namespaceObject.z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
4446
+ });
4447
+ const createCmaSettlementPayoutRestReqSchema = external_zod_namespaceObject.z.object({
4448
+ projectId: external_zod_namespaceObject.z.string().uuid(),
4449
+ payoutType: external_zod_namespaceObject.z.literal(PayoutType.CMA_SETTLEMENT_PAYOUT),
4450
+ sourceAccount: external_zod_namespaceObject.z.lazy(()=>createCmaSettlementPayoutSourceAccountSchema),
4451
+ targetAccounts: external_zod_namespaceObject.z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
4452
+ });
4453
+ const createSettlementPayoutRestReqSchema = external_zod_namespaceObject.z.discriminatedUnion('payoutType', [
4454
+ createMtaSettlementPayoutRestReqSchema,
4455
+ createCmaSettlementPayoutRestReqSchema
4456
+ ]);
4413
4457
  const payoutSourceDetailsRestResBaseSchema = payoutSourceDetailsEntitySchema.extend({
4414
4458
  debitAmountCents: centsToDollarsSchema,
4415
4459
  sourceBsb: accountBsbMaskedSchema,
@@ -6022,7 +6066,7 @@ var __webpack_exports__ = {};
6022
6066
  }
6023
6067
  }
6024
6068
  const helpers_ZlibHeaderTransformStream = ZlibHeaderTransformStream;
6025
- const callbackify_callbackify = (fn, reducer)=>utils.isAsyncFn(fn) ? function(...args) {
6069
+ const callbackify = (fn, reducer)=>utils.isAsyncFn(fn) ? function(...args) {
6026
6070
  const cb = args.pop();
6027
6071
  fn.apply(this, args).then((value)=>{
6028
6072
  try {
@@ -6032,7 +6076,7 @@ var __webpack_exports__ = {};
6032
6076
  }
6033
6077
  }, cb);
6034
6078
  } : fn;
6035
- const callbackify = callbackify_callbackify;
6079
+ const helpers_callbackify = callbackify;
6036
6080
  function speedometer(samplesCount, min) {
6037
6081
  samplesCount = samplesCount || 10;
6038
6082
  const bytes = new Array(samplesCount);
@@ -6214,7 +6258,7 @@ var __webpack_exports__ = {};
6214
6258
  let rejected = false;
6215
6259
  let req;
6216
6260
  if (lookup) {
6217
- const _lookup = callbackify(lookup, (value)=>utils.isArray(value) ? value : [
6261
+ const _lookup = helpers_callbackify(lookup, (value)=>utils.isArray(value) ? value : [
6218
6262
  value
6219
6263
  ]);
6220
6264
  lookup = (hostname, opt, cb)=>{
@@ -7608,12 +7652,18 @@ exports.cmaTransactionSearchRestReqSchema = __webpack_exports__.cmaTransactionSe
7608
7652
  exports.confirmBankFileProcessedRestReqSchema = __webpack_exports__.confirmBankFileProcessedRestReqSchema;
7609
7653
  exports.createCmaReconciliationRestReqSchema = __webpack_exports__.createCmaReconciliationRestReqSchema;
7610
7654
  exports.createCmaRestReqSchema = __webpack_exports__.createCmaRestReqSchema;
7655
+ exports.createCmaSettlementPayoutRestReqSchema = __webpack_exports__.createCmaSettlementPayoutRestReqSchema;
7656
+ exports.createCmaSettlementPayoutSourceAccountSchema = __webpack_exports__.createCmaSettlementPayoutSourceAccountSchema;
7611
7657
  exports.createCmaTransactionRestReqSchema = __webpack_exports__.createCmaTransactionRestReqSchema;
7612
7658
  exports.createMenuRestReqSchema = __webpack_exports__.createMenuRestReqSchema;
7613
7659
  exports.createMtaReconciliationRestReqSchema = __webpack_exports__.createMtaReconciliationRestReqSchema;
7614
7660
  exports.createMtaRestReqSchema = __webpack_exports__.createMtaRestReqSchema;
7661
+ exports.createMtaSettlementPayoutRestReqSchema = __webpack_exports__.createMtaSettlementPayoutRestReqSchema;
7662
+ exports.createMtaSettlementPayoutSourceAccountSchema = __webpack_exports__.createMtaSettlementPayoutSourceAccountSchema;
7615
7663
  exports.createMtaToCmaPayoutRestReqSchema = __webpack_exports__.createMtaToCmaPayoutRestReqSchema;
7616
7664
  exports.createMtaTransactionRestReqSchema = __webpack_exports__.createMtaTransactionRestReqSchema;
7665
+ exports.createSettlementPayoutRestReqSchema = __webpack_exports__.createSettlementPayoutRestReqSchema;
7666
+ exports.createSettlementPayoutTargetAccountSchema = __webpack_exports__.createSettlementPayoutTargetAccountSchema;
7617
7667
  exports.customerEntitySchema = __webpack_exports__.customerEntitySchema;
7618
7668
  exports.dateTimeFilterBaseSchema = __webpack_exports__.dateTimeFilterBaseSchema;
7619
7669
  exports.dateTimeFilterSchema = __webpack_exports__.dateTimeFilterSchema;
@@ -7808,12 +7858,18 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
7808
7858
  "confirmBankFileProcessedRestReqSchema",
7809
7859
  "createCmaReconciliationRestReqSchema",
7810
7860
  "createCmaRestReqSchema",
7861
+ "createCmaSettlementPayoutRestReqSchema",
7862
+ "createCmaSettlementPayoutSourceAccountSchema",
7811
7863
  "createCmaTransactionRestReqSchema",
7812
7864
  "createMenuRestReqSchema",
7813
7865
  "createMtaReconciliationRestReqSchema",
7814
7866
  "createMtaRestReqSchema",
7867
+ "createMtaSettlementPayoutRestReqSchema",
7868
+ "createMtaSettlementPayoutSourceAccountSchema",
7815
7869
  "createMtaToCmaPayoutRestReqSchema",
7816
7870
  "createMtaTransactionRestReqSchema",
7871
+ "createSettlementPayoutRestReqSchema",
7872
+ "createSettlementPayoutTargetAccountSchema",
7817
7873
  "customerEntitySchema",
7818
7874
  "dateTimeFilterBaseSchema",
7819
7875
  "dateTimeFilterSchema",
@@ -0,0 +1,416 @@
1
+ import { z } from 'zod';
2
+ import { PayoutSourceAccountType, PayoutTargetAccountType } from '../../constants/payout/payout.constant';
3
+ export declare const createSettlementPayoutTargetAccountSchema: z.ZodObject<{
4
+ targetAccountType: z.ZodLiteral<PayoutTargetAccountType.OTHER>;
5
+ creditAmountCents: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBigInt, z.ZodNumber]>, bigint, string | number | bigint>, z.ZodBigInt>;
6
+ description: z.ZodString;
7
+ bankRef: z.ZodString;
8
+ targetAccountName: z.ZodString;
9
+ targetAccountNumber: z.ZodString;
10
+ targetBsb: z.ZodString;
11
+ sourcePropertyId: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ creditAmountCents: bigint;
14
+ description: string;
15
+ bankRef: string;
16
+ targetAccountType: PayoutTargetAccountType.OTHER;
17
+ targetAccountName: string;
18
+ targetAccountNumber: string;
19
+ targetBsb: string;
20
+ sourcePropertyId?: string | undefined;
21
+ }, {
22
+ creditAmountCents: string | number | bigint;
23
+ description: string;
24
+ bankRef: string;
25
+ targetAccountType: PayoutTargetAccountType.OTHER;
26
+ targetAccountName: string;
27
+ targetAccountNumber: string;
28
+ targetBsb: string;
29
+ sourcePropertyId?: string | undefined;
30
+ }>;
31
+ export type CreateSettlementPayoutTargetAccountRestReq = z.input<typeof createSettlementPayoutTargetAccountSchema>;
32
+ export type CreateSettlementPayoutTargetAccount = z.output<typeof createSettlementPayoutTargetAccountSchema>;
33
+ export declare const createCmaSettlementPayoutSourceAccountSchema: z.ZodObject<{
34
+ sourceAccountId: z.ZodString;
35
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.CMA>;
36
+ sourceBankRef: z.ZodString;
37
+ sourceDescription: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ sourceAccountId: string;
40
+ sourceAccountType: PayoutSourceAccountType.CMA;
41
+ sourceBankRef: string;
42
+ sourceDescription: string;
43
+ }, {
44
+ sourceAccountId: string;
45
+ sourceAccountType: PayoutSourceAccountType.CMA;
46
+ sourceBankRef: string;
47
+ sourceDescription: string;
48
+ }>;
49
+ export type CreateCmaSettlementPayoutSourceAccount = z.output<typeof createCmaSettlementPayoutSourceAccountSchema>;
50
+ export declare const createMtaSettlementPayoutSourceAccountSchema: z.ZodObject<{
51
+ sourceAccountId: z.ZodString;
52
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.MTA>;
53
+ sourceBankRef: z.ZodString;
54
+ sourceDescription: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ sourceAccountId: string;
57
+ sourceAccountType: PayoutSourceAccountType.MTA;
58
+ sourceBankRef: string;
59
+ sourceDescription: string;
60
+ }, {
61
+ sourceAccountId: string;
62
+ sourceAccountType: PayoutSourceAccountType.MTA;
63
+ sourceBankRef: string;
64
+ sourceDescription: string;
65
+ }>;
66
+ export type CreateMtaSettlementPayoutSourceAccount = z.output<typeof createMtaSettlementPayoutSourceAccountSchema>;
67
+ export declare const createMtaSettlementPayoutRestReqSchema: z.ZodObject<{
68
+ projectId: z.ZodString;
69
+ payoutType: z.ZodLiteral<"trust_settlement_payout">;
70
+ sourceAccount: z.ZodLazy<z.ZodObject<{
71
+ sourceAccountId: z.ZodString;
72
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.MTA>;
73
+ sourceBankRef: z.ZodString;
74
+ sourceDescription: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ sourceAccountId: string;
77
+ sourceAccountType: PayoutSourceAccountType.MTA;
78
+ sourceBankRef: string;
79
+ sourceDescription: string;
80
+ }, {
81
+ sourceAccountId: string;
82
+ sourceAccountType: PayoutSourceAccountType.MTA;
83
+ sourceBankRef: string;
84
+ sourceDescription: string;
85
+ }>>;
86
+ targetAccounts: z.ZodLazy<z.ZodArray<z.ZodObject<{
87
+ targetAccountType: z.ZodLiteral<PayoutTargetAccountType.OTHER>;
88
+ creditAmountCents: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBigInt, z.ZodNumber]>, bigint, string | number | bigint>, z.ZodBigInt>;
89
+ description: z.ZodString;
90
+ bankRef: z.ZodString;
91
+ targetAccountName: z.ZodString;
92
+ targetAccountNumber: z.ZodString;
93
+ targetBsb: z.ZodString;
94
+ sourcePropertyId: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ creditAmountCents: bigint;
97
+ description: string;
98
+ bankRef: string;
99
+ targetAccountType: PayoutTargetAccountType.OTHER;
100
+ targetAccountName: string;
101
+ targetAccountNumber: string;
102
+ targetBsb: string;
103
+ sourcePropertyId?: string | undefined;
104
+ }, {
105
+ creditAmountCents: string | number | bigint;
106
+ description: string;
107
+ bankRef: string;
108
+ targetAccountType: PayoutTargetAccountType.OTHER;
109
+ targetAccountName: string;
110
+ targetAccountNumber: string;
111
+ targetBsb: string;
112
+ sourcePropertyId?: string | undefined;
113
+ }>, "many">>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ projectId: string;
116
+ payoutType: "trust_settlement_payout";
117
+ sourceAccount: {
118
+ sourceAccountId: string;
119
+ sourceAccountType: PayoutSourceAccountType.MTA;
120
+ sourceBankRef: string;
121
+ sourceDescription: string;
122
+ };
123
+ targetAccounts: {
124
+ creditAmountCents: bigint;
125
+ description: string;
126
+ bankRef: string;
127
+ targetAccountType: PayoutTargetAccountType.OTHER;
128
+ targetAccountName: string;
129
+ targetAccountNumber: string;
130
+ targetBsb: string;
131
+ sourcePropertyId?: string | undefined;
132
+ }[];
133
+ }, {
134
+ projectId: string;
135
+ payoutType: "trust_settlement_payout";
136
+ sourceAccount: {
137
+ sourceAccountId: string;
138
+ sourceAccountType: PayoutSourceAccountType.MTA;
139
+ sourceBankRef: string;
140
+ sourceDescription: string;
141
+ };
142
+ targetAccounts: {
143
+ creditAmountCents: string | number | bigint;
144
+ description: string;
145
+ bankRef: string;
146
+ targetAccountType: PayoutTargetAccountType.OTHER;
147
+ targetAccountName: string;
148
+ targetAccountNumber: string;
149
+ targetBsb: string;
150
+ sourcePropertyId?: string | undefined;
151
+ }[];
152
+ }>;
153
+ export type CreateMtaSettlementPayoutRestReq = z.input<typeof createMtaSettlementPayoutRestReqSchema>;
154
+ export type CreateMtaSettlementPayout = z.output<typeof createMtaSettlementPayoutRestReqSchema>;
155
+ export declare const createCmaSettlementPayoutRestReqSchema: z.ZodObject<{
156
+ projectId: z.ZodString;
157
+ payoutType: z.ZodLiteral<"cma_settlement_payout">;
158
+ sourceAccount: z.ZodLazy<z.ZodObject<{
159
+ sourceAccountId: z.ZodString;
160
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.CMA>;
161
+ sourceBankRef: z.ZodString;
162
+ sourceDescription: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ sourceAccountId: string;
165
+ sourceAccountType: PayoutSourceAccountType.CMA;
166
+ sourceBankRef: string;
167
+ sourceDescription: string;
168
+ }, {
169
+ sourceAccountId: string;
170
+ sourceAccountType: PayoutSourceAccountType.CMA;
171
+ sourceBankRef: string;
172
+ sourceDescription: string;
173
+ }>>;
174
+ targetAccounts: z.ZodLazy<z.ZodArray<z.ZodObject<{
175
+ targetAccountType: z.ZodLiteral<PayoutTargetAccountType.OTHER>;
176
+ creditAmountCents: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBigInt, z.ZodNumber]>, bigint, string | number | bigint>, z.ZodBigInt>;
177
+ description: z.ZodString;
178
+ bankRef: z.ZodString;
179
+ targetAccountName: z.ZodString;
180
+ targetAccountNumber: z.ZodString;
181
+ targetBsb: z.ZodString;
182
+ sourcePropertyId: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ creditAmountCents: bigint;
185
+ description: string;
186
+ bankRef: string;
187
+ targetAccountType: PayoutTargetAccountType.OTHER;
188
+ targetAccountName: string;
189
+ targetAccountNumber: string;
190
+ targetBsb: string;
191
+ sourcePropertyId?: string | undefined;
192
+ }, {
193
+ creditAmountCents: string | number | bigint;
194
+ description: string;
195
+ bankRef: string;
196
+ targetAccountType: PayoutTargetAccountType.OTHER;
197
+ targetAccountName: string;
198
+ targetAccountNumber: string;
199
+ targetBsb: string;
200
+ sourcePropertyId?: string | undefined;
201
+ }>, "many">>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ projectId: string;
204
+ payoutType: "cma_settlement_payout";
205
+ sourceAccount: {
206
+ sourceAccountId: string;
207
+ sourceAccountType: PayoutSourceAccountType.CMA;
208
+ sourceBankRef: string;
209
+ sourceDescription: string;
210
+ };
211
+ targetAccounts: {
212
+ creditAmountCents: bigint;
213
+ description: string;
214
+ bankRef: string;
215
+ targetAccountType: PayoutTargetAccountType.OTHER;
216
+ targetAccountName: string;
217
+ targetAccountNumber: string;
218
+ targetBsb: string;
219
+ sourcePropertyId?: string | undefined;
220
+ }[];
221
+ }, {
222
+ projectId: string;
223
+ payoutType: "cma_settlement_payout";
224
+ sourceAccount: {
225
+ sourceAccountId: string;
226
+ sourceAccountType: PayoutSourceAccountType.CMA;
227
+ sourceBankRef: string;
228
+ sourceDescription: string;
229
+ };
230
+ targetAccounts: {
231
+ creditAmountCents: string | number | bigint;
232
+ description: string;
233
+ bankRef: string;
234
+ targetAccountType: PayoutTargetAccountType.OTHER;
235
+ targetAccountName: string;
236
+ targetAccountNumber: string;
237
+ targetBsb: string;
238
+ sourcePropertyId?: string | undefined;
239
+ }[];
240
+ }>;
241
+ export type CreateCmaSettlementPayoutRestReq = z.input<typeof createCmaSettlementPayoutRestReqSchema>;
242
+ export type CreateCmaSettlementPayout = z.output<typeof createCmaSettlementPayoutRestReqSchema>;
243
+ export declare const createSettlementPayoutRestReqSchema: z.ZodDiscriminatedUnion<"payoutType", [z.ZodObject<{
244
+ projectId: z.ZodString;
245
+ payoutType: z.ZodLiteral<"trust_settlement_payout">;
246
+ sourceAccount: z.ZodLazy<z.ZodObject<{
247
+ sourceAccountId: z.ZodString;
248
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.MTA>;
249
+ sourceBankRef: z.ZodString;
250
+ sourceDescription: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ sourceAccountId: string;
253
+ sourceAccountType: PayoutSourceAccountType.MTA;
254
+ sourceBankRef: string;
255
+ sourceDescription: string;
256
+ }, {
257
+ sourceAccountId: string;
258
+ sourceAccountType: PayoutSourceAccountType.MTA;
259
+ sourceBankRef: string;
260
+ sourceDescription: string;
261
+ }>>;
262
+ targetAccounts: z.ZodLazy<z.ZodArray<z.ZodObject<{
263
+ targetAccountType: z.ZodLiteral<PayoutTargetAccountType.OTHER>;
264
+ creditAmountCents: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBigInt, z.ZodNumber]>, bigint, string | number | bigint>, z.ZodBigInt>;
265
+ description: z.ZodString;
266
+ bankRef: z.ZodString;
267
+ targetAccountName: z.ZodString;
268
+ targetAccountNumber: z.ZodString;
269
+ targetBsb: z.ZodString;
270
+ sourcePropertyId: z.ZodOptional<z.ZodString>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ creditAmountCents: bigint;
273
+ description: string;
274
+ bankRef: string;
275
+ targetAccountType: PayoutTargetAccountType.OTHER;
276
+ targetAccountName: string;
277
+ targetAccountNumber: string;
278
+ targetBsb: string;
279
+ sourcePropertyId?: string | undefined;
280
+ }, {
281
+ creditAmountCents: string | number | bigint;
282
+ description: string;
283
+ bankRef: string;
284
+ targetAccountType: PayoutTargetAccountType.OTHER;
285
+ targetAccountName: string;
286
+ targetAccountNumber: string;
287
+ targetBsb: string;
288
+ sourcePropertyId?: string | undefined;
289
+ }>, "many">>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ projectId: string;
292
+ payoutType: "trust_settlement_payout";
293
+ sourceAccount: {
294
+ sourceAccountId: string;
295
+ sourceAccountType: PayoutSourceAccountType.MTA;
296
+ sourceBankRef: string;
297
+ sourceDescription: string;
298
+ };
299
+ targetAccounts: {
300
+ creditAmountCents: bigint;
301
+ description: string;
302
+ bankRef: string;
303
+ targetAccountType: PayoutTargetAccountType.OTHER;
304
+ targetAccountName: string;
305
+ targetAccountNumber: string;
306
+ targetBsb: string;
307
+ sourcePropertyId?: string | undefined;
308
+ }[];
309
+ }, {
310
+ projectId: string;
311
+ payoutType: "trust_settlement_payout";
312
+ sourceAccount: {
313
+ sourceAccountId: string;
314
+ sourceAccountType: PayoutSourceAccountType.MTA;
315
+ sourceBankRef: string;
316
+ sourceDescription: string;
317
+ };
318
+ targetAccounts: {
319
+ creditAmountCents: string | number | bigint;
320
+ description: string;
321
+ bankRef: string;
322
+ targetAccountType: PayoutTargetAccountType.OTHER;
323
+ targetAccountName: string;
324
+ targetAccountNumber: string;
325
+ targetBsb: string;
326
+ sourcePropertyId?: string | undefined;
327
+ }[];
328
+ }>, z.ZodObject<{
329
+ projectId: z.ZodString;
330
+ payoutType: z.ZodLiteral<"cma_settlement_payout">;
331
+ sourceAccount: z.ZodLazy<z.ZodObject<{
332
+ sourceAccountId: z.ZodString;
333
+ sourceAccountType: z.ZodLiteral<PayoutSourceAccountType.CMA>;
334
+ sourceBankRef: z.ZodString;
335
+ sourceDescription: z.ZodString;
336
+ }, "strip", z.ZodTypeAny, {
337
+ sourceAccountId: string;
338
+ sourceAccountType: PayoutSourceAccountType.CMA;
339
+ sourceBankRef: string;
340
+ sourceDescription: string;
341
+ }, {
342
+ sourceAccountId: string;
343
+ sourceAccountType: PayoutSourceAccountType.CMA;
344
+ sourceBankRef: string;
345
+ sourceDescription: string;
346
+ }>>;
347
+ targetAccounts: z.ZodLazy<z.ZodArray<z.ZodObject<{
348
+ targetAccountType: z.ZodLiteral<PayoutTargetAccountType.OTHER>;
349
+ creditAmountCents: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBigInt, z.ZodNumber]>, bigint, string | number | bigint>, z.ZodBigInt>;
350
+ description: z.ZodString;
351
+ bankRef: z.ZodString;
352
+ targetAccountName: z.ZodString;
353
+ targetAccountNumber: z.ZodString;
354
+ targetBsb: z.ZodString;
355
+ sourcePropertyId: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ creditAmountCents: bigint;
358
+ description: string;
359
+ bankRef: string;
360
+ targetAccountType: PayoutTargetAccountType.OTHER;
361
+ targetAccountName: string;
362
+ targetAccountNumber: string;
363
+ targetBsb: string;
364
+ sourcePropertyId?: string | undefined;
365
+ }, {
366
+ creditAmountCents: string | number | bigint;
367
+ description: string;
368
+ bankRef: string;
369
+ targetAccountType: PayoutTargetAccountType.OTHER;
370
+ targetAccountName: string;
371
+ targetAccountNumber: string;
372
+ targetBsb: string;
373
+ sourcePropertyId?: string | undefined;
374
+ }>, "many">>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ projectId: string;
377
+ payoutType: "cma_settlement_payout";
378
+ sourceAccount: {
379
+ sourceAccountId: string;
380
+ sourceAccountType: PayoutSourceAccountType.CMA;
381
+ sourceBankRef: string;
382
+ sourceDescription: string;
383
+ };
384
+ targetAccounts: {
385
+ creditAmountCents: bigint;
386
+ description: string;
387
+ bankRef: string;
388
+ targetAccountType: PayoutTargetAccountType.OTHER;
389
+ targetAccountName: string;
390
+ targetAccountNumber: string;
391
+ targetBsb: string;
392
+ sourcePropertyId?: string | undefined;
393
+ }[];
394
+ }, {
395
+ projectId: string;
396
+ payoutType: "cma_settlement_payout";
397
+ sourceAccount: {
398
+ sourceAccountId: string;
399
+ sourceAccountType: PayoutSourceAccountType.CMA;
400
+ sourceBankRef: string;
401
+ sourceDescription: string;
402
+ };
403
+ targetAccounts: {
404
+ creditAmountCents: string | number | bigint;
405
+ description: string;
406
+ bankRef: string;
407
+ targetAccountType: PayoutTargetAccountType.OTHER;
408
+ targetAccountName: string;
409
+ targetAccountNumber: string;
410
+ targetBsb: string;
411
+ sourcePropertyId?: string | undefined;
412
+ }[];
413
+ }>]>;
414
+ export type CreateSettlementPayoutRestReq = z.input<typeof createSettlementPayoutRestReqSchema>;
415
+ export type CreateSettlementPayout = z.output<typeof createSettlementPayoutRestReqSchema>;
416
+ //# sourceMappingURL=create-settlement-payout.rest.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-settlement-payout.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/payout/create-settlement-payout.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAG1G,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;EASpD,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AACnH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE7G,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;EAKvD,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,4CAA4C,CAAC,CAAC;AAEnH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;EAKvD,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,4CAA4C,CAAC,CAAC;AAEnH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEhG,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAGhG,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAuH,CAAC;AAExK,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './cancel-payout.rest.schema';
2
2
  export * from './confirm-bank-file-processed.rest.schema';
3
3
  export * from './create-mta-to-cma-payout.rest.schema';
4
+ export * from './create-settlement-payout.rest.schema';
4
5
  export * from './payout-provision-data.entity.schema';
5
6
  export * from './payout-provision-data.rest.schema';
6
7
  export * from './payout-search.rest.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/payout/index.ts"],"names":[],"mappings":"AAEA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/payout/index.ts"],"names":[],"mappings":"AAEA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}