@mikemo-coposit/am-accounting-shared 0.0.5 → 0.0.7
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/constants/cma-transaction/cma-transaction-type.constant.d.ts +2 -0
- package/dist/cjs/constants/cma-transaction/cma-transaction-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.d.ts.map +1 -1
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts +2 -0
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/report/common/index.d.ts +3 -0
- package/dist/cjs/constants/report/common/index.d.ts.map +1 -0
- package/dist/cjs/constants/report/common/report-data-ranger-type.constant.d.ts +5 -0
- package/dist/cjs/constants/report/common/report-data-ranger-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/report/common/report-group-type.constant.d.ts +5 -0
- package/dist/cjs/constants/report/common/report-group-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/report/index.d.ts +2 -0
- package/dist/cjs/constants/report/index.d.ts.map +1 -0
- package/dist/cjs/index.js +175 -31
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +1 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -0
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/date/index.d.ts +4 -0
- package/dist/cjs/schemas/common/date/index.d.ts.map +1 -0
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts +3 -0
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/date/string-to-end-of-day.schema.d.ts +3 -0
- package/dist/cjs/schemas/common/date/string-to-end-of-day.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/date/string-to-start-of-day.schema.d.ts +3 -0
- package/dist/cjs/schemas/common/date/string-to-start-of-day.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/index.d.ts +1 -0
- package/dist/cjs/schemas/common/index.d.ts.map +1 -1
- package/dist/cjs/schemas/index.d.ts +1 -0
- package/dist/cjs/schemas/index.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -0
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +1 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts +416 -0
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/index.d.ts +1 -0
- package/dist/cjs/schemas/payout/index.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +298 -298
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +4 -4
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +4 -4
- package/dist/cjs/schemas/report/customer-ledger.rest.schema.d.ts +36 -0
- package/dist/cjs/schemas/report/customer-ledger.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/report/index.d.ts +2 -0
- package/dist/cjs/schemas/report/index.d.ts.map +1 -0
- package/dist/esm/constants/cma-transaction/cma-transaction-type.constant.d.ts +2 -0
- package/dist/esm/constants/cma-transaction/cma-transaction-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/index.d.ts +1 -0
- package/dist/esm/constants/index.d.ts.map +1 -1
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts +2 -0
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/report/common/index.d.ts +3 -0
- package/dist/esm/constants/report/common/index.d.ts.map +1 -0
- package/dist/esm/constants/report/common/report-data-ranger-type.constant.d.ts +5 -0
- package/dist/esm/constants/report/common/report-data-ranger-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/report/common/report-group-type.constant.d.ts +5 -0
- package/dist/esm/constants/report/common/report-group-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/report/index.d.ts +2 -0
- package/dist/esm/constants/report/index.d.ts.map +1 -0
- package/dist/esm/index.mjs +120 -15
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +1 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -0
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/date/index.d.ts +4 -0
- package/dist/esm/schemas/common/date/index.d.ts.map +1 -0
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts +3 -0
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/date/string-to-end-of-day.schema.d.ts +3 -0
- package/dist/esm/schemas/common/date/string-to-end-of-day.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/date/string-to-start-of-day.schema.d.ts +3 -0
- package/dist/esm/schemas/common/date/string-to-start-of-day.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/index.d.ts +1 -0
- package/dist/esm/schemas/common/index.d.ts.map +1 -1
- package/dist/esm/schemas/index.d.ts +1 -0
- package/dist/esm/schemas/index.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -0
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +1 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts +416 -0
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/index.d.ts +1 -0
- package/dist/esm/schemas/payout/index.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +298 -298
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +4 -4
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +4 -4
- package/dist/esm/schemas/report/customer-ledger.rest.schema.d.ts +36 -0
- package/dist/esm/schemas/report/customer-ledger.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/report/index.d.ts +2 -0
- package/dist/esm/schemas/report/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -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"}
|