@vqnguyen1/piece-fis-horizon 0.0.1 → 0.0.3
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/package.json +12 -7
- package/project.json +22 -0
- package/src/index.ts +534 -0
- package/src/lib/actions/account-aggregation.ts +360 -0
- package/src/lib/actions/account-restrictions.ts +2427 -0
- package/src/lib/actions/bank-controls.ts +2328 -0
- package/src/lib/actions/card.ts +488 -0
- package/src/lib/actions/collateral.ts +696 -0
- package/src/lib/actions/customer.ts +1691 -0
- package/src/lib/actions/demand-deposit-savings.ts +731 -0
- package/src/lib/actions/get-authorization-token.ts +73 -0
- package/src/lib/actions/loans.ts +902 -0
- package/src/lib/actions/mortgage-loan.ts +1426 -0
- package/src/lib/actions/ready-reserve.ts +818 -0
- package/src/lib/actions/safe-deposit.ts +1506 -0
- package/src/lib/actions/search-customer-relationship-summary.ts +140 -0
- package/src/lib/actions/time-deposit.ts +2922 -0
- package/src/lib/actions/transactions.ts +1310 -0
- package/src/lib/actions/transfers.ts +1581 -0
- package/src/lib/actions/user-security.ts +1032 -0
- package/tsconfig.json +19 -0
- package/tsconfig.lib.json +10 -0
- package/src/index.d.ts +0 -12
- package/src/index.js +0 -62
- package/src/index.js.map +0 -1
- package/src/lib/actions/get-authorization-token.d.ts +0 -10
- package/src/lib/actions/get-authorization-token.js +0 -68
- package/src/lib/actions/get-authorization-token.js.map +0 -1
- package/src/lib/actions/search-customer-relationship-summary.d.ts +0 -15
- package/src/lib/actions/search-customer-relationship-summary.js +0 -122
- package/src/lib/actions/search-customer-relationship-summary.js.map +0 -1
|
@@ -0,0 +1,1426 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAction,
|
|
3
|
+
Property,
|
|
4
|
+
} from '@activepieces/pieces-framework';
|
|
5
|
+
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
6
|
+
import { fisHorizonAuth } from '../..';
|
|
7
|
+
|
|
8
|
+
const MORTGAGE_LOAN_BASE_PATH = '/mortgage-loan/v1';
|
|
9
|
+
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// POST Add MERS Information
|
|
12
|
+
// ============================================================================
|
|
13
|
+
export const mortgage_loan_add_mers_information = createAction({
|
|
14
|
+
name: 'mortgage_loan_add_mers_information',
|
|
15
|
+
auth: fisHorizonAuth,
|
|
16
|
+
displayName: 'Mortgage Loan - Add MERS Information',
|
|
17
|
+
description: 'Add MERS (Mortgage Electronic Registry System) information for new mortgage loan accounts.',
|
|
18
|
+
props: {
|
|
19
|
+
horizonAuthorization: Property.ShortText({
|
|
20
|
+
displayName: 'Horizon Authorization Token',
|
|
21
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
sourceId: Property.ShortText({
|
|
25
|
+
displayName: 'Source ID',
|
|
26
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
29
|
+
requestBody: Property.Json({
|
|
30
|
+
displayName: 'Request Body',
|
|
31
|
+
description: 'The MERS information request body as JSON object.',
|
|
32
|
+
required: true,
|
|
33
|
+
}),
|
|
34
|
+
},
|
|
35
|
+
async run(context) {
|
|
36
|
+
const auth = context.auth as any;
|
|
37
|
+
const baseUrl = auth.baseUrl;
|
|
38
|
+
const organizationId = auth.organizationId;
|
|
39
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
40
|
+
|
|
41
|
+
const uuid = crypto.randomUUID();
|
|
42
|
+
|
|
43
|
+
const headers: Record<string, string> = {
|
|
44
|
+
'accept': 'application/json',
|
|
45
|
+
'Content-Type': 'application/json',
|
|
46
|
+
'organization-id': organizationId,
|
|
47
|
+
'uuid': uuid,
|
|
48
|
+
'horizon-authorization': horizonAuthorization,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
if (sourceId) {
|
|
52
|
+
headers['source-id'] = sourceId;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const response = await httpClient.sendRequest({
|
|
56
|
+
method: HttpMethod.POST,
|
|
57
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/mers-information`,
|
|
58
|
+
headers,
|
|
59
|
+
body: requestBody,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
return response.body;
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// ============================================================================
|
|
67
|
+
// POST Add Prepaid Insurance Information
|
|
68
|
+
// ============================================================================
|
|
69
|
+
export const mortgage_loan_add_prepaid_insurance = createAction({
|
|
70
|
+
name: 'mortgage_loan_add_prepaid_insurance',
|
|
71
|
+
auth: fisHorizonAuth,
|
|
72
|
+
displayName: 'Mortgage Loan - Add Prepaid Insurance',
|
|
73
|
+
description: 'Add prepaid insurance information for new mortgage loan accounts.',
|
|
74
|
+
props: {
|
|
75
|
+
horizonAuthorization: Property.ShortText({
|
|
76
|
+
displayName: 'Horizon Authorization Token',
|
|
77
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
78
|
+
required: true,
|
|
79
|
+
}),
|
|
80
|
+
sourceId: Property.ShortText({
|
|
81
|
+
displayName: 'Source ID',
|
|
82
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
83
|
+
required: false,
|
|
84
|
+
}),
|
|
85
|
+
requestBody: Property.Json({
|
|
86
|
+
displayName: 'Request Body',
|
|
87
|
+
description: 'The prepaid insurance information request body as JSON object.',
|
|
88
|
+
required: true,
|
|
89
|
+
}),
|
|
90
|
+
},
|
|
91
|
+
async run(context) {
|
|
92
|
+
const auth = context.auth as any;
|
|
93
|
+
const baseUrl = auth.baseUrl;
|
|
94
|
+
const organizationId = auth.organizationId;
|
|
95
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
96
|
+
|
|
97
|
+
const uuid = crypto.randomUUID();
|
|
98
|
+
|
|
99
|
+
const headers: Record<string, string> = {
|
|
100
|
+
'accept': 'application/json',
|
|
101
|
+
'Content-Type': 'application/json',
|
|
102
|
+
'organization-id': organizationId,
|
|
103
|
+
'uuid': uuid,
|
|
104
|
+
'horizon-authorization': horizonAuthorization,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
if (sourceId) {
|
|
108
|
+
headers['source-id'] = sourceId;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const response = await httpClient.sendRequest({
|
|
112
|
+
method: HttpMethod.POST,
|
|
113
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/prepaid-insurance`,
|
|
114
|
+
headers,
|
|
115
|
+
body: requestBody,
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
return response.body;
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
// ============================================================================
|
|
123
|
+
// POST Add Additional Loan Master 50-01
|
|
124
|
+
// ============================================================================
|
|
125
|
+
export const mortgage_loan_add_loan_master_5001 = createAction({
|
|
126
|
+
name: 'mortgage_loan_add_loan_master_5001',
|
|
127
|
+
auth: fisHorizonAuth,
|
|
128
|
+
displayName: 'Mortgage Loan - Add Loan Master 50-01',
|
|
129
|
+
description: 'Add a new additional loan master 50-01 for mortgage loan accounts.',
|
|
130
|
+
props: {
|
|
131
|
+
horizonAuthorization: Property.ShortText({
|
|
132
|
+
displayName: 'Horizon Authorization Token',
|
|
133
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
134
|
+
required: true,
|
|
135
|
+
}),
|
|
136
|
+
sourceId: Property.ShortText({
|
|
137
|
+
displayName: 'Source ID',
|
|
138
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
139
|
+
required: false,
|
|
140
|
+
}),
|
|
141
|
+
requestBody: Property.Json({
|
|
142
|
+
displayName: 'Request Body',
|
|
143
|
+
description: 'The loan master 50-01 request body as JSON object.',
|
|
144
|
+
required: true,
|
|
145
|
+
}),
|
|
146
|
+
},
|
|
147
|
+
async run(context) {
|
|
148
|
+
const auth = context.auth as any;
|
|
149
|
+
const baseUrl = auth.baseUrl;
|
|
150
|
+
const organizationId = auth.organizationId;
|
|
151
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
152
|
+
|
|
153
|
+
const uuid = crypto.randomUUID();
|
|
154
|
+
|
|
155
|
+
const headers: Record<string, string> = {
|
|
156
|
+
'accept': 'application/json',
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
'organization-id': organizationId,
|
|
159
|
+
'uuid': uuid,
|
|
160
|
+
'horizon-authorization': horizonAuthorization,
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
if (sourceId) {
|
|
164
|
+
headers['source-id'] = sourceId;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const response = await httpClient.sendRequest({
|
|
168
|
+
method: HttpMethod.POST,
|
|
169
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/additional-loan-master-5001`,
|
|
170
|
+
headers,
|
|
171
|
+
body: requestBody,
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
return response.body;
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
// ============================================================================
|
|
179
|
+
// POST Add Additional Loan Master 50-02
|
|
180
|
+
// ============================================================================
|
|
181
|
+
export const mortgage_loan_add_loan_master_5002 = createAction({
|
|
182
|
+
name: 'mortgage_loan_add_loan_master_5002',
|
|
183
|
+
auth: fisHorizonAuth,
|
|
184
|
+
displayName: 'Mortgage Loan - Add Loan Master 50-02',
|
|
185
|
+
description: 'Add a new additional loan master 50-02 for mortgage loan accounts.',
|
|
186
|
+
props: {
|
|
187
|
+
horizonAuthorization: Property.ShortText({
|
|
188
|
+
displayName: 'Horizon Authorization Token',
|
|
189
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
190
|
+
required: true,
|
|
191
|
+
}),
|
|
192
|
+
sourceId: Property.ShortText({
|
|
193
|
+
displayName: 'Source ID',
|
|
194
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
195
|
+
required: false,
|
|
196
|
+
}),
|
|
197
|
+
requestBody: Property.Json({
|
|
198
|
+
displayName: 'Request Body',
|
|
199
|
+
description: 'The loan master 50-02 request body as JSON object.',
|
|
200
|
+
required: true,
|
|
201
|
+
}),
|
|
202
|
+
},
|
|
203
|
+
async run(context) {
|
|
204
|
+
const auth = context.auth as any;
|
|
205
|
+
const baseUrl = auth.baseUrl;
|
|
206
|
+
const organizationId = auth.organizationId;
|
|
207
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
208
|
+
|
|
209
|
+
const uuid = crypto.randomUUID();
|
|
210
|
+
|
|
211
|
+
const headers: Record<string, string> = {
|
|
212
|
+
'accept': 'application/json',
|
|
213
|
+
'Content-Type': 'application/json',
|
|
214
|
+
'organization-id': organizationId,
|
|
215
|
+
'uuid': uuid,
|
|
216
|
+
'horizon-authorization': horizonAuthorization,
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
if (sourceId) {
|
|
220
|
+
headers['source-id'] = sourceId;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const response = await httpClient.sendRequest({
|
|
224
|
+
method: HttpMethod.POST,
|
|
225
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/additional-loan-master-5002`,
|
|
226
|
+
headers,
|
|
227
|
+
body: requestBody,
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
return response.body;
|
|
231
|
+
},
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// ============================================================================
|
|
235
|
+
// POST Add ARM Information
|
|
236
|
+
// ============================================================================
|
|
237
|
+
export const mortgage_loan_add_arm_information = createAction({
|
|
238
|
+
name: 'mortgage_loan_add_arm_information',
|
|
239
|
+
auth: fisHorizonAuth,
|
|
240
|
+
displayName: 'Mortgage Loan - Add ARM Information',
|
|
241
|
+
description: 'Add ARM (Adjustable Rate Mortgage) information for new mortgage loan accounts.',
|
|
242
|
+
props: {
|
|
243
|
+
horizonAuthorization: Property.ShortText({
|
|
244
|
+
displayName: 'Horizon Authorization Token',
|
|
245
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
246
|
+
required: true,
|
|
247
|
+
}),
|
|
248
|
+
sourceId: Property.ShortText({
|
|
249
|
+
displayName: 'Source ID',
|
|
250
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
251
|
+
required: false,
|
|
252
|
+
}),
|
|
253
|
+
requestBody: Property.Json({
|
|
254
|
+
displayName: 'Request Body',
|
|
255
|
+
description: 'The ARM information request body as JSON object.',
|
|
256
|
+
required: true,
|
|
257
|
+
}),
|
|
258
|
+
},
|
|
259
|
+
async run(context) {
|
|
260
|
+
const auth = context.auth as any;
|
|
261
|
+
const baseUrl = auth.baseUrl;
|
|
262
|
+
const organizationId = auth.organizationId;
|
|
263
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
264
|
+
|
|
265
|
+
const uuid = crypto.randomUUID();
|
|
266
|
+
|
|
267
|
+
const headers: Record<string, string> = {
|
|
268
|
+
'accept': 'application/json',
|
|
269
|
+
'Content-Type': 'application/json',
|
|
270
|
+
'organization-id': organizationId,
|
|
271
|
+
'uuid': uuid,
|
|
272
|
+
'horizon-authorization': horizonAuthorization,
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
if (sourceId) {
|
|
276
|
+
headers['source-id'] = sourceId;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const response = await httpClient.sendRequest({
|
|
280
|
+
method: HttpMethod.POST,
|
|
281
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/arm`,
|
|
282
|
+
headers,
|
|
283
|
+
body: requestBody,
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
return response.body;
|
|
287
|
+
},
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
// ============================================================================
|
|
291
|
+
// POST Add Additional Loan Master 55-01
|
|
292
|
+
// ============================================================================
|
|
293
|
+
export const mortgage_loan_add_loan_master_5501 = createAction({
|
|
294
|
+
name: 'mortgage_loan_add_loan_master_5501',
|
|
295
|
+
auth: fisHorizonAuth,
|
|
296
|
+
displayName: 'Mortgage Loan - Add Loan Master 55-01',
|
|
297
|
+
description: 'Add a new additional loan master 55-01 for mortgage loan accounts.',
|
|
298
|
+
props: {
|
|
299
|
+
horizonAuthorization: Property.ShortText({
|
|
300
|
+
displayName: 'Horizon Authorization Token',
|
|
301
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
302
|
+
required: true,
|
|
303
|
+
}),
|
|
304
|
+
sourceId: Property.ShortText({
|
|
305
|
+
displayName: 'Source ID',
|
|
306
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
307
|
+
required: false,
|
|
308
|
+
}),
|
|
309
|
+
requestBody: Property.Json({
|
|
310
|
+
displayName: 'Request Body',
|
|
311
|
+
description: 'The loan master 55-01 request body as JSON object.',
|
|
312
|
+
required: true,
|
|
313
|
+
}),
|
|
314
|
+
},
|
|
315
|
+
async run(context) {
|
|
316
|
+
const auth = context.auth as any;
|
|
317
|
+
const baseUrl = auth.baseUrl;
|
|
318
|
+
const organizationId = auth.organizationId;
|
|
319
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
320
|
+
|
|
321
|
+
const uuid = crypto.randomUUID();
|
|
322
|
+
|
|
323
|
+
const headers: Record<string, string> = {
|
|
324
|
+
'accept': 'application/json',
|
|
325
|
+
'Content-Type': 'application/json',
|
|
326
|
+
'organization-id': organizationId,
|
|
327
|
+
'uuid': uuid,
|
|
328
|
+
'horizon-authorization': horizonAuthorization,
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
if (sourceId) {
|
|
332
|
+
headers['source-id'] = sourceId;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const response = await httpClient.sendRequest({
|
|
336
|
+
method: HttpMethod.POST,
|
|
337
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/additional-loan-master-5501`,
|
|
338
|
+
headers,
|
|
339
|
+
body: requestBody,
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
return response.body;
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
// ============================================================================
|
|
347
|
+
// POST Add FHLB Information
|
|
348
|
+
// ============================================================================
|
|
349
|
+
export const mortgage_loan_add_fhlb_information = createAction({
|
|
350
|
+
name: 'mortgage_loan_add_fhlb_information',
|
|
351
|
+
auth: fisHorizonAuth,
|
|
352
|
+
displayName: 'Mortgage Loan - Add FHLB Information',
|
|
353
|
+
description: 'Add FHLB (Federal Home Loan Bank) information for new mortgage loan accounts.',
|
|
354
|
+
props: {
|
|
355
|
+
horizonAuthorization: Property.ShortText({
|
|
356
|
+
displayName: 'Horizon Authorization Token',
|
|
357
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
358
|
+
required: true,
|
|
359
|
+
}),
|
|
360
|
+
sourceId: Property.ShortText({
|
|
361
|
+
displayName: 'Source ID',
|
|
362
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
363
|
+
required: false,
|
|
364
|
+
}),
|
|
365
|
+
requestBody: Property.Json({
|
|
366
|
+
displayName: 'Request Body',
|
|
367
|
+
description: 'The FHLB information request body as JSON object.',
|
|
368
|
+
required: true,
|
|
369
|
+
}),
|
|
370
|
+
},
|
|
371
|
+
async run(context) {
|
|
372
|
+
const auth = context.auth as any;
|
|
373
|
+
const baseUrl = auth.baseUrl;
|
|
374
|
+
const organizationId = auth.organizationId;
|
|
375
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
376
|
+
|
|
377
|
+
const uuid = crypto.randomUUID();
|
|
378
|
+
|
|
379
|
+
const headers: Record<string, string> = {
|
|
380
|
+
'accept': 'application/json',
|
|
381
|
+
'Content-Type': 'application/json',
|
|
382
|
+
'organization-id': organizationId,
|
|
383
|
+
'uuid': uuid,
|
|
384
|
+
'horizon-authorization': horizonAuthorization,
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
if (sourceId) {
|
|
388
|
+
headers['source-id'] = sourceId;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const response = await httpClient.sendRequest({
|
|
392
|
+
method: HttpMethod.POST,
|
|
393
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/fhlb-information`,
|
|
394
|
+
headers,
|
|
395
|
+
body: requestBody,
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
return response.body;
|
|
399
|
+
},
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
// ============================================================================
|
|
403
|
+
// POST Add Buydown Schedule
|
|
404
|
+
// ============================================================================
|
|
405
|
+
export const mortgage_loan_add_buydown_schedule = createAction({
|
|
406
|
+
name: 'mortgage_loan_add_buydown_schedule',
|
|
407
|
+
auth: fisHorizonAuth,
|
|
408
|
+
displayName: 'Mortgage Loan - Add Buydown Schedule',
|
|
409
|
+
description: 'Add a buydown schedule for new mortgage loan accounts.',
|
|
410
|
+
props: {
|
|
411
|
+
horizonAuthorization: Property.ShortText({
|
|
412
|
+
displayName: 'Horizon Authorization Token',
|
|
413
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
414
|
+
required: true,
|
|
415
|
+
}),
|
|
416
|
+
sourceId: Property.ShortText({
|
|
417
|
+
displayName: 'Source ID',
|
|
418
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
419
|
+
required: false,
|
|
420
|
+
}),
|
|
421
|
+
requestBody: Property.Json({
|
|
422
|
+
displayName: 'Request Body',
|
|
423
|
+
description: 'The buydown schedule request body as JSON object.',
|
|
424
|
+
required: true,
|
|
425
|
+
}),
|
|
426
|
+
},
|
|
427
|
+
async run(context) {
|
|
428
|
+
const auth = context.auth as any;
|
|
429
|
+
const baseUrl = auth.baseUrl;
|
|
430
|
+
const organizationId = auth.organizationId;
|
|
431
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
432
|
+
|
|
433
|
+
const uuid = crypto.randomUUID();
|
|
434
|
+
|
|
435
|
+
const headers: Record<string, string> = {
|
|
436
|
+
'accept': 'application/json',
|
|
437
|
+
'Content-Type': 'application/json',
|
|
438
|
+
'organization-id': organizationId,
|
|
439
|
+
'uuid': uuid,
|
|
440
|
+
'horizon-authorization': horizonAuthorization,
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
if (sourceId) {
|
|
444
|
+
headers['source-id'] = sourceId;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
const response = await httpClient.sendRequest({
|
|
448
|
+
method: HttpMethod.POST,
|
|
449
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/buydown-schedules`,
|
|
450
|
+
headers,
|
|
451
|
+
body: requestBody,
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
return response.body;
|
|
455
|
+
},
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
// ============================================================================
|
|
459
|
+
// POST Add HECM Disbursements Information
|
|
460
|
+
// ============================================================================
|
|
461
|
+
export const mortgage_loan_add_hecm_disbursements = createAction({
|
|
462
|
+
name: 'mortgage_loan_add_hecm_disbursements',
|
|
463
|
+
auth: fisHorizonAuth,
|
|
464
|
+
displayName: 'Mortgage Loan - Add HECM Disbursements',
|
|
465
|
+
description: 'Add HECM (Home Equity Conversion Mortgage) disbursements information for new mortgage loan accounts.',
|
|
466
|
+
props: {
|
|
467
|
+
horizonAuthorization: Property.ShortText({
|
|
468
|
+
displayName: 'Horizon Authorization Token',
|
|
469
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
470
|
+
required: true,
|
|
471
|
+
}),
|
|
472
|
+
sourceId: Property.ShortText({
|
|
473
|
+
displayName: 'Source ID',
|
|
474
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
475
|
+
required: false,
|
|
476
|
+
}),
|
|
477
|
+
requestBody: Property.Json({
|
|
478
|
+
displayName: 'Request Body',
|
|
479
|
+
description: 'The HECM disbursements information request body as JSON object.',
|
|
480
|
+
required: true,
|
|
481
|
+
}),
|
|
482
|
+
},
|
|
483
|
+
async run(context) {
|
|
484
|
+
const auth = context.auth as any;
|
|
485
|
+
const baseUrl = auth.baseUrl;
|
|
486
|
+
const organizationId = auth.organizationId;
|
|
487
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
488
|
+
|
|
489
|
+
const uuid = crypto.randomUUID();
|
|
490
|
+
|
|
491
|
+
const headers: Record<string, string> = {
|
|
492
|
+
'accept': 'application/json',
|
|
493
|
+
'Content-Type': 'application/json',
|
|
494
|
+
'organization-id': organizationId,
|
|
495
|
+
'uuid': uuid,
|
|
496
|
+
'horizon-authorization': horizonAuthorization,
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
if (sourceId) {
|
|
500
|
+
headers['source-id'] = sourceId;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const response = await httpClient.sendRequest({
|
|
504
|
+
method: HttpMethod.POST,
|
|
505
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/hecm-disbursements-information`,
|
|
506
|
+
headers,
|
|
507
|
+
body: requestBody,
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
return response.body;
|
|
511
|
+
},
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
// ============================================================================
|
|
515
|
+
// POST Add Additional Loan Master 55-02
|
|
516
|
+
// ============================================================================
|
|
517
|
+
export const mortgage_loan_add_loan_master_5502 = createAction({
|
|
518
|
+
name: 'mortgage_loan_add_loan_master_5502',
|
|
519
|
+
auth: fisHorizonAuth,
|
|
520
|
+
displayName: 'Mortgage Loan - Add Loan Master 55-02',
|
|
521
|
+
description: 'Add a new additional loan master 55-02 for mortgage loan accounts.',
|
|
522
|
+
props: {
|
|
523
|
+
horizonAuthorization: Property.ShortText({
|
|
524
|
+
displayName: 'Horizon Authorization Token',
|
|
525
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
526
|
+
required: true,
|
|
527
|
+
}),
|
|
528
|
+
sourceId: Property.ShortText({
|
|
529
|
+
displayName: 'Source ID',
|
|
530
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
531
|
+
required: false,
|
|
532
|
+
}),
|
|
533
|
+
requestBody: Property.Json({
|
|
534
|
+
displayName: 'Request Body',
|
|
535
|
+
description: 'The loan master 55-02 request body as JSON object.',
|
|
536
|
+
required: true,
|
|
537
|
+
}),
|
|
538
|
+
},
|
|
539
|
+
async run(context) {
|
|
540
|
+
const auth = context.auth as any;
|
|
541
|
+
const baseUrl = auth.baseUrl;
|
|
542
|
+
const organizationId = auth.organizationId;
|
|
543
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
544
|
+
|
|
545
|
+
const uuid = crypto.randomUUID();
|
|
546
|
+
|
|
547
|
+
const headers: Record<string, string> = {
|
|
548
|
+
'accept': 'application/json',
|
|
549
|
+
'Content-Type': 'application/json',
|
|
550
|
+
'organization-id': organizationId,
|
|
551
|
+
'uuid': uuid,
|
|
552
|
+
'horizon-authorization': horizonAuthorization,
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
if (sourceId) {
|
|
556
|
+
headers['source-id'] = sourceId;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
const response = await httpClient.sendRequest({
|
|
560
|
+
method: HttpMethod.POST,
|
|
561
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/additional-loan-master-5502`,
|
|
562
|
+
headers,
|
|
563
|
+
body: requestBody,
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
return response.body;
|
|
567
|
+
},
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
// ============================================================================
|
|
571
|
+
// POST Add Additional Loan Master 55-03
|
|
572
|
+
// ============================================================================
|
|
573
|
+
export const mortgage_loan_add_loan_master_5503 = createAction({
|
|
574
|
+
name: 'mortgage_loan_add_loan_master_5503',
|
|
575
|
+
auth: fisHorizonAuth,
|
|
576
|
+
displayName: 'Mortgage Loan - Add Loan Master 55-03',
|
|
577
|
+
description: 'Add a new additional loan master 55-03 for mortgage loan accounts.',
|
|
578
|
+
props: {
|
|
579
|
+
horizonAuthorization: Property.ShortText({
|
|
580
|
+
displayName: 'Horizon Authorization Token',
|
|
581
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
582
|
+
required: true,
|
|
583
|
+
}),
|
|
584
|
+
sourceId: Property.ShortText({
|
|
585
|
+
displayName: 'Source ID',
|
|
586
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
587
|
+
required: false,
|
|
588
|
+
}),
|
|
589
|
+
requestBody: Property.Json({
|
|
590
|
+
displayName: 'Request Body',
|
|
591
|
+
description: 'The loan master 55-03 request body as JSON object.',
|
|
592
|
+
required: true,
|
|
593
|
+
}),
|
|
594
|
+
},
|
|
595
|
+
async run(context) {
|
|
596
|
+
const auth = context.auth as any;
|
|
597
|
+
const baseUrl = auth.baseUrl;
|
|
598
|
+
const organizationId = auth.organizationId;
|
|
599
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
600
|
+
|
|
601
|
+
const uuid = crypto.randomUUID();
|
|
602
|
+
|
|
603
|
+
const headers: Record<string, string> = {
|
|
604
|
+
'accept': 'application/json',
|
|
605
|
+
'Content-Type': 'application/json',
|
|
606
|
+
'organization-id': organizationId,
|
|
607
|
+
'uuid': uuid,
|
|
608
|
+
'horizon-authorization': horizonAuthorization,
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
if (sourceId) {
|
|
612
|
+
headers['source-id'] = sourceId;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
const response = await httpClient.sendRequest({
|
|
616
|
+
method: HttpMethod.POST,
|
|
617
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/additional-loan-master-5503`,
|
|
618
|
+
headers,
|
|
619
|
+
body: requestBody,
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
return response.body;
|
|
623
|
+
},
|
|
624
|
+
});
|
|
625
|
+
|
|
626
|
+
// ============================================================================
|
|
627
|
+
// POST Add New Loan Master
|
|
628
|
+
// ============================================================================
|
|
629
|
+
export const mortgage_loan_add_loan_master = createAction({
|
|
630
|
+
name: 'mortgage_loan_add_loan_master',
|
|
631
|
+
auth: fisHorizonAuth,
|
|
632
|
+
displayName: 'Mortgage Loan - Add Loan Master',
|
|
633
|
+
description: 'Add the loan master for new mortgage loan accounts.',
|
|
634
|
+
props: {
|
|
635
|
+
horizonAuthorization: Property.ShortText({
|
|
636
|
+
displayName: 'Horizon Authorization Token',
|
|
637
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
638
|
+
required: true,
|
|
639
|
+
}),
|
|
640
|
+
sourceId: Property.ShortText({
|
|
641
|
+
displayName: 'Source ID',
|
|
642
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
643
|
+
required: false,
|
|
644
|
+
}),
|
|
645
|
+
requestBody: Property.Json({
|
|
646
|
+
displayName: 'Request Body',
|
|
647
|
+
description: 'The loan master request body as JSON object.',
|
|
648
|
+
required: true,
|
|
649
|
+
}),
|
|
650
|
+
},
|
|
651
|
+
async run(context) {
|
|
652
|
+
const auth = context.auth as any;
|
|
653
|
+
const baseUrl = auth.baseUrl;
|
|
654
|
+
const organizationId = auth.organizationId;
|
|
655
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
656
|
+
|
|
657
|
+
const uuid = crypto.randomUUID();
|
|
658
|
+
|
|
659
|
+
const headers: Record<string, string> = {
|
|
660
|
+
'accept': 'application/json',
|
|
661
|
+
'Content-Type': 'application/json',
|
|
662
|
+
'organization-id': organizationId,
|
|
663
|
+
'uuid': uuid,
|
|
664
|
+
'horizon-authorization': horizonAuthorization,
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
if (sourceId) {
|
|
668
|
+
headers['source-id'] = sourceId;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
const response = await httpClient.sendRequest({
|
|
672
|
+
method: HttpMethod.POST,
|
|
673
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans`,
|
|
674
|
+
headers,
|
|
675
|
+
body: requestBody,
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
return response.body;
|
|
679
|
+
},
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
// ============================================================================
|
|
683
|
+
// POST Add Prepaid Taxes
|
|
684
|
+
// ============================================================================
|
|
685
|
+
export const mortgage_loan_add_prepaid_taxes = createAction({
|
|
686
|
+
name: 'mortgage_loan_add_prepaid_taxes',
|
|
687
|
+
auth: fisHorizonAuth,
|
|
688
|
+
displayName: 'Mortgage Loan - Add Prepaid Taxes',
|
|
689
|
+
description: 'Add prepaid taxes information for new mortgage loan accounts.',
|
|
690
|
+
props: {
|
|
691
|
+
horizonAuthorization: Property.ShortText({
|
|
692
|
+
displayName: 'Horizon Authorization Token',
|
|
693
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
694
|
+
required: true,
|
|
695
|
+
}),
|
|
696
|
+
sourceId: Property.ShortText({
|
|
697
|
+
displayName: 'Source ID',
|
|
698
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
699
|
+
required: false,
|
|
700
|
+
}),
|
|
701
|
+
requestBody: Property.Json({
|
|
702
|
+
displayName: 'Request Body',
|
|
703
|
+
description: 'The prepaid taxes request body as JSON object.',
|
|
704
|
+
required: true,
|
|
705
|
+
}),
|
|
706
|
+
},
|
|
707
|
+
async run(context) {
|
|
708
|
+
const auth = context.auth as any;
|
|
709
|
+
const baseUrl = auth.baseUrl;
|
|
710
|
+
const organizationId = auth.organizationId;
|
|
711
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
712
|
+
|
|
713
|
+
const uuid = crypto.randomUUID();
|
|
714
|
+
|
|
715
|
+
const headers: Record<string, string> = {
|
|
716
|
+
'accept': 'application/json',
|
|
717
|
+
'Content-Type': 'application/json',
|
|
718
|
+
'organization-id': organizationId,
|
|
719
|
+
'uuid': uuid,
|
|
720
|
+
'horizon-authorization': horizonAuthorization,
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
if (sourceId) {
|
|
724
|
+
headers['source-id'] = sourceId;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
const response = await httpClient.sendRequest({
|
|
728
|
+
method: HttpMethod.POST,
|
|
729
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/prepaid-taxes`,
|
|
730
|
+
headers,
|
|
731
|
+
body: requestBody,
|
|
732
|
+
});
|
|
733
|
+
|
|
734
|
+
return response.body;
|
|
735
|
+
},
|
|
736
|
+
});
|
|
737
|
+
|
|
738
|
+
// ============================================================================
|
|
739
|
+
// POST Add Deferred Fees
|
|
740
|
+
// ============================================================================
|
|
741
|
+
export const mortgage_loan_add_deferred_fees = createAction({
|
|
742
|
+
name: 'mortgage_loan_add_deferred_fees',
|
|
743
|
+
auth: fisHorizonAuth,
|
|
744
|
+
displayName: 'Mortgage Loan - Add Deferred Fees',
|
|
745
|
+
description: 'Add deferred fees for new mortgage loan accounts.',
|
|
746
|
+
props: {
|
|
747
|
+
horizonAuthorization: Property.ShortText({
|
|
748
|
+
displayName: 'Horizon Authorization Token',
|
|
749
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
750
|
+
required: true,
|
|
751
|
+
}),
|
|
752
|
+
sourceId: Property.ShortText({
|
|
753
|
+
displayName: 'Source ID',
|
|
754
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
755
|
+
required: false,
|
|
756
|
+
}),
|
|
757
|
+
requestBody: Property.Json({
|
|
758
|
+
displayName: 'Request Body',
|
|
759
|
+
description: 'The deferred fees request body as JSON object.',
|
|
760
|
+
required: true,
|
|
761
|
+
}),
|
|
762
|
+
},
|
|
763
|
+
async run(context) {
|
|
764
|
+
const auth = context.auth as any;
|
|
765
|
+
const baseUrl = auth.baseUrl;
|
|
766
|
+
const organizationId = auth.organizationId;
|
|
767
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
768
|
+
|
|
769
|
+
const uuid = crypto.randomUUID();
|
|
770
|
+
|
|
771
|
+
const headers: Record<string, string> = {
|
|
772
|
+
'accept': 'application/json',
|
|
773
|
+
'Content-Type': 'application/json',
|
|
774
|
+
'organization-id': organizationId,
|
|
775
|
+
'uuid': uuid,
|
|
776
|
+
'horizon-authorization': horizonAuthorization,
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
if (sourceId) {
|
|
780
|
+
headers['source-id'] = sourceId;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
const response = await httpClient.sendRequest({
|
|
784
|
+
method: HttpMethod.POST,
|
|
785
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/deferred-fees`,
|
|
786
|
+
headers,
|
|
787
|
+
body: requestBody,
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
return response.body;
|
|
791
|
+
},
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
// ============================================================================
|
|
795
|
+
// POST Add Disbursements
|
|
796
|
+
// ============================================================================
|
|
797
|
+
export const mortgage_loan_add_disbursements = createAction({
|
|
798
|
+
name: 'mortgage_loan_add_disbursements',
|
|
799
|
+
auth: fisHorizonAuth,
|
|
800
|
+
displayName: 'Mortgage Loan - Add Disbursements',
|
|
801
|
+
description: 'Add disbursements information for new mortgage loan accounts.',
|
|
802
|
+
props: {
|
|
803
|
+
horizonAuthorization: Property.ShortText({
|
|
804
|
+
displayName: 'Horizon Authorization Token',
|
|
805
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
806
|
+
required: true,
|
|
807
|
+
}),
|
|
808
|
+
sourceId: Property.ShortText({
|
|
809
|
+
displayName: 'Source ID',
|
|
810
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
811
|
+
required: false,
|
|
812
|
+
}),
|
|
813
|
+
requestBody: Property.Json({
|
|
814
|
+
displayName: 'Request Body',
|
|
815
|
+
description: 'The disbursements request body as JSON object.',
|
|
816
|
+
required: true,
|
|
817
|
+
}),
|
|
818
|
+
},
|
|
819
|
+
async run(context) {
|
|
820
|
+
const auth = context.auth as any;
|
|
821
|
+
const baseUrl = auth.baseUrl;
|
|
822
|
+
const organizationId = auth.organizationId;
|
|
823
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
824
|
+
|
|
825
|
+
const uuid = crypto.randomUUID();
|
|
826
|
+
|
|
827
|
+
const headers: Record<string, string> = {
|
|
828
|
+
'accept': 'application/json',
|
|
829
|
+
'Content-Type': 'application/json',
|
|
830
|
+
'organization-id': organizationId,
|
|
831
|
+
'uuid': uuid,
|
|
832
|
+
'horizon-authorization': horizonAuthorization,
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
if (sourceId) {
|
|
836
|
+
headers['source-id'] = sourceId;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
const response = await httpClient.sendRequest({
|
|
840
|
+
method: HttpMethod.POST,
|
|
841
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/disbursements`,
|
|
842
|
+
headers,
|
|
843
|
+
body: requestBody,
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
return response.body;
|
|
847
|
+
},
|
|
848
|
+
});
|
|
849
|
+
|
|
850
|
+
// ============================================================================
|
|
851
|
+
// POST Add Closing Fees
|
|
852
|
+
// ============================================================================
|
|
853
|
+
export const mortgage_loan_add_closing_fees = createAction({
|
|
854
|
+
name: 'mortgage_loan_add_closing_fees',
|
|
855
|
+
auth: fisHorizonAuth,
|
|
856
|
+
displayName: 'Mortgage Loan - Add Closing Fees',
|
|
857
|
+
description: 'Add closing fees for new mortgage loan accounts.',
|
|
858
|
+
props: {
|
|
859
|
+
horizonAuthorization: Property.ShortText({
|
|
860
|
+
displayName: 'Horizon Authorization Token',
|
|
861
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
862
|
+
required: true,
|
|
863
|
+
}),
|
|
864
|
+
sourceId: Property.ShortText({
|
|
865
|
+
displayName: 'Source ID',
|
|
866
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
867
|
+
required: false,
|
|
868
|
+
}),
|
|
869
|
+
requestBody: Property.Json({
|
|
870
|
+
displayName: 'Request Body',
|
|
871
|
+
description: 'The closing fees request body as JSON object.',
|
|
872
|
+
required: true,
|
|
873
|
+
}),
|
|
874
|
+
},
|
|
875
|
+
async run(context) {
|
|
876
|
+
const auth = context.auth as any;
|
|
877
|
+
const baseUrl = auth.baseUrl;
|
|
878
|
+
const organizationId = auth.organizationId;
|
|
879
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
880
|
+
|
|
881
|
+
const uuid = crypto.randomUUID();
|
|
882
|
+
|
|
883
|
+
const headers: Record<string, string> = {
|
|
884
|
+
'accept': 'application/json',
|
|
885
|
+
'Content-Type': 'application/json',
|
|
886
|
+
'organization-id': organizationId,
|
|
887
|
+
'uuid': uuid,
|
|
888
|
+
'horizon-authorization': horizonAuthorization,
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
if (sourceId) {
|
|
892
|
+
headers['source-id'] = sourceId;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
const response = await httpClient.sendRequest({
|
|
896
|
+
method: HttpMethod.POST,
|
|
897
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/closing-fees`,
|
|
898
|
+
headers,
|
|
899
|
+
body: requestBody,
|
|
900
|
+
});
|
|
901
|
+
|
|
902
|
+
return response.body;
|
|
903
|
+
},
|
|
904
|
+
});
|
|
905
|
+
|
|
906
|
+
// ============================================================================
|
|
907
|
+
// POST Add HECM Information
|
|
908
|
+
// ============================================================================
|
|
909
|
+
export const mortgage_loan_add_hecm_information = createAction({
|
|
910
|
+
name: 'mortgage_loan_add_hecm_information',
|
|
911
|
+
auth: fisHorizonAuth,
|
|
912
|
+
displayName: 'Mortgage Loan - Add HECM Information',
|
|
913
|
+
description: 'Add HECM (Home Equity Conversion Mortgage) information for new mortgage loan accounts.',
|
|
914
|
+
props: {
|
|
915
|
+
horizonAuthorization: Property.ShortText({
|
|
916
|
+
displayName: 'Horizon Authorization Token',
|
|
917
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
918
|
+
required: true,
|
|
919
|
+
}),
|
|
920
|
+
sourceId: Property.ShortText({
|
|
921
|
+
displayName: 'Source ID',
|
|
922
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
923
|
+
required: false,
|
|
924
|
+
}),
|
|
925
|
+
requestBody: Property.Json({
|
|
926
|
+
displayName: 'Request Body',
|
|
927
|
+
description: 'The HECM information request body as JSON object.',
|
|
928
|
+
required: true,
|
|
929
|
+
}),
|
|
930
|
+
},
|
|
931
|
+
async run(context) {
|
|
932
|
+
const auth = context.auth as any;
|
|
933
|
+
const baseUrl = auth.baseUrl;
|
|
934
|
+
const organizationId = auth.organizationId;
|
|
935
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
936
|
+
|
|
937
|
+
const uuid = crypto.randomUUID();
|
|
938
|
+
|
|
939
|
+
const headers: Record<string, string> = {
|
|
940
|
+
'accept': 'application/json',
|
|
941
|
+
'Content-Type': 'application/json',
|
|
942
|
+
'organization-id': organizationId,
|
|
943
|
+
'uuid': uuid,
|
|
944
|
+
'horizon-authorization': horizonAuthorization,
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
if (sourceId) {
|
|
948
|
+
headers['source-id'] = sourceId;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
const response = await httpClient.sendRequest({
|
|
952
|
+
method: HttpMethod.POST,
|
|
953
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/hecm-information`,
|
|
954
|
+
headers,
|
|
955
|
+
body: requestBody,
|
|
956
|
+
});
|
|
957
|
+
|
|
958
|
+
return response.body;
|
|
959
|
+
},
|
|
960
|
+
});
|
|
961
|
+
|
|
962
|
+
// ============================================================================
|
|
963
|
+
// POST Add Insurance Information
|
|
964
|
+
// ============================================================================
|
|
965
|
+
export const mortgage_loan_add_insurance = createAction({
|
|
966
|
+
name: 'mortgage_loan_add_insurance',
|
|
967
|
+
auth: fisHorizonAuth,
|
|
968
|
+
displayName: 'Mortgage Loan - Add Insurance',
|
|
969
|
+
description: 'Add insurance information for new mortgage loan accounts.',
|
|
970
|
+
props: {
|
|
971
|
+
horizonAuthorization: Property.ShortText({
|
|
972
|
+
displayName: 'Horizon Authorization Token',
|
|
973
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
974
|
+
required: true,
|
|
975
|
+
}),
|
|
976
|
+
sourceId: Property.ShortText({
|
|
977
|
+
displayName: 'Source ID',
|
|
978
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
979
|
+
required: false,
|
|
980
|
+
}),
|
|
981
|
+
requestBody: Property.Json({
|
|
982
|
+
displayName: 'Request Body',
|
|
983
|
+
description: 'The insurance information request body as JSON object.',
|
|
984
|
+
required: true,
|
|
985
|
+
}),
|
|
986
|
+
},
|
|
987
|
+
async run(context) {
|
|
988
|
+
const auth = context.auth as any;
|
|
989
|
+
const baseUrl = auth.baseUrl;
|
|
990
|
+
const organizationId = auth.organizationId;
|
|
991
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
992
|
+
|
|
993
|
+
const uuid = crypto.randomUUID();
|
|
994
|
+
|
|
995
|
+
const headers: Record<string, string> = {
|
|
996
|
+
'accept': 'application/json',
|
|
997
|
+
'Content-Type': 'application/json',
|
|
998
|
+
'organization-id': organizationId,
|
|
999
|
+
'uuid': uuid,
|
|
1000
|
+
'horizon-authorization': horizonAuthorization,
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
if (sourceId) {
|
|
1004
|
+
headers['source-id'] = sourceId;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
const response = await httpClient.sendRequest({
|
|
1008
|
+
method: HttpMethod.POST,
|
|
1009
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/insurance`,
|
|
1010
|
+
headers,
|
|
1011
|
+
body: requestBody,
|
|
1012
|
+
});
|
|
1013
|
+
|
|
1014
|
+
return response.body;
|
|
1015
|
+
},
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
// ============================================================================
|
|
1019
|
+
// POST Add Taxes Information
|
|
1020
|
+
// ============================================================================
|
|
1021
|
+
export const mortgage_loan_add_taxes = createAction({
|
|
1022
|
+
name: 'mortgage_loan_add_taxes',
|
|
1023
|
+
auth: fisHorizonAuth,
|
|
1024
|
+
displayName: 'Mortgage Loan - Add Taxes',
|
|
1025
|
+
description: 'Add taxes information for new mortgage loan accounts.',
|
|
1026
|
+
props: {
|
|
1027
|
+
horizonAuthorization: Property.ShortText({
|
|
1028
|
+
displayName: 'Horizon Authorization Token',
|
|
1029
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
1030
|
+
required: true,
|
|
1031
|
+
}),
|
|
1032
|
+
sourceId: Property.ShortText({
|
|
1033
|
+
displayName: 'Source ID',
|
|
1034
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
1035
|
+
required: false,
|
|
1036
|
+
}),
|
|
1037
|
+
requestBody: Property.Json({
|
|
1038
|
+
displayName: 'Request Body',
|
|
1039
|
+
description: 'The taxes information request body as JSON object.',
|
|
1040
|
+
required: true,
|
|
1041
|
+
}),
|
|
1042
|
+
},
|
|
1043
|
+
async run(context) {
|
|
1044
|
+
const auth = context.auth as any;
|
|
1045
|
+
const baseUrl = auth.baseUrl;
|
|
1046
|
+
const organizationId = auth.organizationId;
|
|
1047
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
1048
|
+
|
|
1049
|
+
const uuid = crypto.randomUUID();
|
|
1050
|
+
|
|
1051
|
+
const headers: Record<string, string> = {
|
|
1052
|
+
'accept': 'application/json',
|
|
1053
|
+
'Content-Type': 'application/json',
|
|
1054
|
+
'organization-id': organizationId,
|
|
1055
|
+
'uuid': uuid,
|
|
1056
|
+
'horizon-authorization': horizonAuthorization,
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
if (sourceId) {
|
|
1060
|
+
headers['source-id'] = sourceId;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
const response = await httpClient.sendRequest({
|
|
1064
|
+
method: HttpMethod.POST,
|
|
1065
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/taxes`,
|
|
1066
|
+
headers,
|
|
1067
|
+
body: requestBody,
|
|
1068
|
+
});
|
|
1069
|
+
|
|
1070
|
+
return response.body;
|
|
1071
|
+
},
|
|
1072
|
+
});
|
|
1073
|
+
|
|
1074
|
+
// ============================================================================
|
|
1075
|
+
// POST Add FHA VA Information
|
|
1076
|
+
// ============================================================================
|
|
1077
|
+
export const mortgage_loan_add_fha_va_information = createAction({
|
|
1078
|
+
name: 'mortgage_loan_add_fha_va_information',
|
|
1079
|
+
auth: fisHorizonAuth,
|
|
1080
|
+
displayName: 'Mortgage Loan - Add FHA VA Information',
|
|
1081
|
+
description: 'Add FHA (Federal Housing Administration) VA (Veterans Affairs) information for new mortgage loan accounts.',
|
|
1082
|
+
props: {
|
|
1083
|
+
horizonAuthorization: Property.ShortText({
|
|
1084
|
+
displayName: 'Horizon Authorization Token',
|
|
1085
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
1086
|
+
required: true,
|
|
1087
|
+
}),
|
|
1088
|
+
sourceId: Property.ShortText({
|
|
1089
|
+
displayName: 'Source ID',
|
|
1090
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
1091
|
+
required: false,
|
|
1092
|
+
}),
|
|
1093
|
+
requestBody: Property.Json({
|
|
1094
|
+
displayName: 'Request Body',
|
|
1095
|
+
description: 'The FHA VA information request body as JSON object.',
|
|
1096
|
+
required: true,
|
|
1097
|
+
}),
|
|
1098
|
+
},
|
|
1099
|
+
async run(context) {
|
|
1100
|
+
const auth = context.auth as any;
|
|
1101
|
+
const baseUrl = auth.baseUrl;
|
|
1102
|
+
const organizationId = auth.organizationId;
|
|
1103
|
+
const { horizonAuthorization, sourceId, requestBody } = context.propsValue;
|
|
1104
|
+
|
|
1105
|
+
const uuid = crypto.randomUUID();
|
|
1106
|
+
|
|
1107
|
+
const headers: Record<string, string> = {
|
|
1108
|
+
'accept': 'application/json',
|
|
1109
|
+
'Content-Type': 'application/json',
|
|
1110
|
+
'organization-id': organizationId,
|
|
1111
|
+
'uuid': uuid,
|
|
1112
|
+
'horizon-authorization': horizonAuthorization,
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
if (sourceId) {
|
|
1116
|
+
headers['source-id'] = sourceId;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
const response = await httpClient.sendRequest({
|
|
1120
|
+
method: HttpMethod.POST,
|
|
1121
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/mortgage-loans/fha-va-information`,
|
|
1122
|
+
headers,
|
|
1123
|
+
body: requestBody,
|
|
1124
|
+
});
|
|
1125
|
+
|
|
1126
|
+
return response.body;
|
|
1127
|
+
},
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
// ============================================================================
|
|
1131
|
+
// GET Account Inquiry
|
|
1132
|
+
// ============================================================================
|
|
1133
|
+
export const mortgage_loan_account_inquiry = createAction({
|
|
1134
|
+
name: 'mortgage_loan_account_inquiry',
|
|
1135
|
+
auth: fisHorizonAuth,
|
|
1136
|
+
displayName: 'Mortgage Loan - Account Inquiry',
|
|
1137
|
+
description: 'Retrieve basic information relating to a mortgage loan account.',
|
|
1138
|
+
props: {
|
|
1139
|
+
applicationCode: Property.StaticDropdown({
|
|
1140
|
+
displayName: 'Application Code',
|
|
1141
|
+
description: 'Application Code. Valid Value: ML = Mortgage Loan',
|
|
1142
|
+
required: true,
|
|
1143
|
+
options: {
|
|
1144
|
+
options: [
|
|
1145
|
+
{ label: 'Mortgage Loan (ML)', value: 'ML' },
|
|
1146
|
+
],
|
|
1147
|
+
},
|
|
1148
|
+
}),
|
|
1149
|
+
accountNumber: Property.ShortText({
|
|
1150
|
+
displayName: 'Account Number',
|
|
1151
|
+
description: 'Up to 20 digit zero filled account number.',
|
|
1152
|
+
required: true,
|
|
1153
|
+
}),
|
|
1154
|
+
horizonAuthorization: Property.ShortText({
|
|
1155
|
+
displayName: 'Horizon Authorization Token',
|
|
1156
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
1157
|
+
required: true,
|
|
1158
|
+
}),
|
|
1159
|
+
sourceId: Property.ShortText({
|
|
1160
|
+
displayName: 'Source ID',
|
|
1161
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
1162
|
+
required: false,
|
|
1163
|
+
}),
|
|
1164
|
+
customerId: Property.ShortText({
|
|
1165
|
+
displayName: 'Customer ID',
|
|
1166
|
+
description: 'Optional: Specifies the unique identifier associated with a customer. Right-justified, zero filled. Up to 14 digits.',
|
|
1167
|
+
required: false,
|
|
1168
|
+
}),
|
|
1169
|
+
returnUppercase: Property.StaticDropdown({
|
|
1170
|
+
displayName: 'Return Uppercase',
|
|
1171
|
+
description: 'Optional: Return data in uppercase.',
|
|
1172
|
+
required: false,
|
|
1173
|
+
options: {
|
|
1174
|
+
options: [
|
|
1175
|
+
{ label: 'Yes', value: 'Y' },
|
|
1176
|
+
{ label: 'No', value: 'N' },
|
|
1177
|
+
],
|
|
1178
|
+
},
|
|
1179
|
+
}),
|
|
1180
|
+
},
|
|
1181
|
+
async run(context) {
|
|
1182
|
+
const auth = context.auth as any;
|
|
1183
|
+
const baseUrl = auth.baseUrl;
|
|
1184
|
+
const organizationId = auth.organizationId;
|
|
1185
|
+
const {
|
|
1186
|
+
applicationCode,
|
|
1187
|
+
accountNumber,
|
|
1188
|
+
horizonAuthorization,
|
|
1189
|
+
sourceId,
|
|
1190
|
+
customerId,
|
|
1191
|
+
returnUppercase,
|
|
1192
|
+
} = context.propsValue;
|
|
1193
|
+
|
|
1194
|
+
const uuid = crypto.randomUUID();
|
|
1195
|
+
|
|
1196
|
+
const headers: Record<string, string> = {
|
|
1197
|
+
'accept': 'application/json',
|
|
1198
|
+
'Content-Type': 'application/json',
|
|
1199
|
+
'organization-id': organizationId,
|
|
1200
|
+
'uuid': uuid,
|
|
1201
|
+
'horizon-authorization': horizonAuthorization,
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
if (sourceId) {
|
|
1205
|
+
headers['source-id'] = sourceId;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
const queryParams: string[] = [];
|
|
1209
|
+
if (customerId !== undefined && customerId !== null && customerId !== '') {
|
|
1210
|
+
queryParams.push(`customerId=${encodeURIComponent(customerId)}`);
|
|
1211
|
+
}
|
|
1212
|
+
if (returnUppercase !== undefined && returnUppercase !== null && returnUppercase !== '') {
|
|
1213
|
+
queryParams.push(`returnUppercase=${encodeURIComponent(returnUppercase)}`);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
1217
|
+
|
|
1218
|
+
const response = await httpClient.sendRequest({
|
|
1219
|
+
method: HttpMethod.GET,
|
|
1220
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/${applicationCode}/${accountNumber}${queryString}`,
|
|
1221
|
+
headers,
|
|
1222
|
+
});
|
|
1223
|
+
|
|
1224
|
+
return response.body;
|
|
1225
|
+
},
|
|
1226
|
+
});
|
|
1227
|
+
|
|
1228
|
+
// ============================================================================
|
|
1229
|
+
// GET Transaction Inquiry
|
|
1230
|
+
// ============================================================================
|
|
1231
|
+
export const mortgage_loan_transaction_inquiry = createAction({
|
|
1232
|
+
name: 'mortgage_loan_transaction_inquiry',
|
|
1233
|
+
auth: fisHorizonAuth,
|
|
1234
|
+
displayName: 'Mortgage Loan - Transaction Inquiry',
|
|
1235
|
+
description: 'Retrieve a list of historic transactions relating to a mortgage loan account.',
|
|
1236
|
+
props: {
|
|
1237
|
+
applicationCode: Property.StaticDropdown({
|
|
1238
|
+
displayName: 'Application Code',
|
|
1239
|
+
description: 'Application Code. Valid Value: ML = Mortgage Loan',
|
|
1240
|
+
required: true,
|
|
1241
|
+
options: {
|
|
1242
|
+
options: [
|
|
1243
|
+
{ label: 'Mortgage Loan (ML)', value: 'ML' },
|
|
1244
|
+
],
|
|
1245
|
+
},
|
|
1246
|
+
}),
|
|
1247
|
+
accountNumber: Property.ShortText({
|
|
1248
|
+
displayName: 'Account Number',
|
|
1249
|
+
description: 'Up to 20 digit zero filled account number.',
|
|
1250
|
+
required: true,
|
|
1251
|
+
}),
|
|
1252
|
+
horizonAuthorization: Property.ShortText({
|
|
1253
|
+
displayName: 'Horizon Authorization Token',
|
|
1254
|
+
description: 'The authorization token obtained from the Authorization - Get Token action.',
|
|
1255
|
+
required: true,
|
|
1256
|
+
}),
|
|
1257
|
+
sourceId: Property.ShortText({
|
|
1258
|
+
displayName: 'Source ID',
|
|
1259
|
+
description: 'Optional: 6 character ID provided by FIS',
|
|
1260
|
+
required: false,
|
|
1261
|
+
}),
|
|
1262
|
+
dateSelectOption: Property.StaticDropdown({
|
|
1263
|
+
displayName: 'Date Select Option',
|
|
1264
|
+
description: 'Optional: Date selection option.',
|
|
1265
|
+
required: false,
|
|
1266
|
+
options: {
|
|
1267
|
+
options: [
|
|
1268
|
+
{ label: 'Posting Date (P)', value: 'P' },
|
|
1269
|
+
{ label: 'Effective Date (E)', value: 'E' },
|
|
1270
|
+
],
|
|
1271
|
+
},
|
|
1272
|
+
}),
|
|
1273
|
+
firstNext: Property.StaticDropdown({
|
|
1274
|
+
displayName: 'First/Next',
|
|
1275
|
+
description: 'Optional: First or next indicator for pagination.',
|
|
1276
|
+
required: false,
|
|
1277
|
+
options: {
|
|
1278
|
+
options: [
|
|
1279
|
+
{ label: 'First (F)', value: 'F' },
|
|
1280
|
+
{ label: 'Next (N)', value: 'N' },
|
|
1281
|
+
],
|
|
1282
|
+
},
|
|
1283
|
+
}),
|
|
1284
|
+
numberToReturn: Property.Number({
|
|
1285
|
+
displayName: 'Number to Return',
|
|
1286
|
+
description: 'Optional: Number of records to return.',
|
|
1287
|
+
required: false,
|
|
1288
|
+
}),
|
|
1289
|
+
beginDate: Property.Number({
|
|
1290
|
+
displayName: 'Begin Date',
|
|
1291
|
+
description: 'Optional: Begin date in CCYYMMDD format (e.g., 20230101).',
|
|
1292
|
+
required: false,
|
|
1293
|
+
}),
|
|
1294
|
+
endDate: Property.Number({
|
|
1295
|
+
displayName: 'End Date',
|
|
1296
|
+
description: 'Optional: End date in CCYYMMDD format (e.g., 20231231).',
|
|
1297
|
+
required: false,
|
|
1298
|
+
}),
|
|
1299
|
+
returnMemoPostTransaction: Property.StaticDropdown({
|
|
1300
|
+
displayName: 'Return Memo Post Transaction',
|
|
1301
|
+
description: 'Optional: Return memo post transactions.',
|
|
1302
|
+
required: false,
|
|
1303
|
+
options: {
|
|
1304
|
+
options: [
|
|
1305
|
+
{ label: 'Yes', value: 'Y' },
|
|
1306
|
+
{ label: 'No', value: 'N' },
|
|
1307
|
+
],
|
|
1308
|
+
},
|
|
1309
|
+
}),
|
|
1310
|
+
returnPackagePostItems: Property.StaticDropdown({
|
|
1311
|
+
displayName: 'Return Package Post Items',
|
|
1312
|
+
description: 'Optional: Return package post items.',
|
|
1313
|
+
required: false,
|
|
1314
|
+
options: {
|
|
1315
|
+
options: [
|
|
1316
|
+
{ label: 'Yes', value: 'Y' },
|
|
1317
|
+
{ label: 'No', value: 'N' },
|
|
1318
|
+
],
|
|
1319
|
+
},
|
|
1320
|
+
}),
|
|
1321
|
+
returnScheduledExternalTransfers: Property.StaticDropdown({
|
|
1322
|
+
displayName: 'Return Scheduled External Transfers',
|
|
1323
|
+
description: 'Optional: Return scheduled external transfers.',
|
|
1324
|
+
required: false,
|
|
1325
|
+
options: {
|
|
1326
|
+
options: [
|
|
1327
|
+
{ label: 'Yes', value: 'Y' },
|
|
1328
|
+
{ label: 'No', value: 'N' },
|
|
1329
|
+
],
|
|
1330
|
+
},
|
|
1331
|
+
}),
|
|
1332
|
+
sequenceOption: Property.StaticDropdown({
|
|
1333
|
+
displayName: 'Sequence Option',
|
|
1334
|
+
description: 'Optional: Sequence option for sorting results.',
|
|
1335
|
+
required: false,
|
|
1336
|
+
options: {
|
|
1337
|
+
options: [
|
|
1338
|
+
{ label: 'Ascending (A)', value: 'A' },
|
|
1339
|
+
{ label: 'Descending (D)', value: 'D' },
|
|
1340
|
+
],
|
|
1341
|
+
},
|
|
1342
|
+
}),
|
|
1343
|
+
searchToken: Property.ShortText({
|
|
1344
|
+
displayName: 'Search Token',
|
|
1345
|
+
description: 'Optional: Search token for stateless middleware processing.',
|
|
1346
|
+
required: false,
|
|
1347
|
+
}),
|
|
1348
|
+
},
|
|
1349
|
+
async run(context) {
|
|
1350
|
+
const auth = context.auth as any;
|
|
1351
|
+
const baseUrl = auth.baseUrl;
|
|
1352
|
+
const organizationId = auth.organizationId;
|
|
1353
|
+
const {
|
|
1354
|
+
applicationCode,
|
|
1355
|
+
accountNumber,
|
|
1356
|
+
horizonAuthorization,
|
|
1357
|
+
sourceId,
|
|
1358
|
+
dateSelectOption,
|
|
1359
|
+
firstNext,
|
|
1360
|
+
numberToReturn,
|
|
1361
|
+
beginDate,
|
|
1362
|
+
endDate,
|
|
1363
|
+
returnMemoPostTransaction,
|
|
1364
|
+
returnPackagePostItems,
|
|
1365
|
+
returnScheduledExternalTransfers,
|
|
1366
|
+
sequenceOption,
|
|
1367
|
+
searchToken,
|
|
1368
|
+
} = context.propsValue;
|
|
1369
|
+
|
|
1370
|
+
const uuid = crypto.randomUUID();
|
|
1371
|
+
|
|
1372
|
+
const headers: Record<string, string> = {
|
|
1373
|
+
'accept': 'application/json',
|
|
1374
|
+
'Content-Type': 'application/json',
|
|
1375
|
+
'organization-id': organizationId,
|
|
1376
|
+
'uuid': uuid,
|
|
1377
|
+
'horizon-authorization': horizonAuthorization,
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
if (sourceId) {
|
|
1381
|
+
headers['source-id'] = sourceId;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
const queryParams: string[] = [];
|
|
1385
|
+
if (dateSelectOption !== undefined && dateSelectOption !== null && dateSelectOption !== '') {
|
|
1386
|
+
queryParams.push(`dateSelectOption=${encodeURIComponent(dateSelectOption)}`);
|
|
1387
|
+
}
|
|
1388
|
+
if (firstNext !== undefined && firstNext !== null && firstNext !== '') {
|
|
1389
|
+
queryParams.push(`firstNext=${encodeURIComponent(firstNext)}`);
|
|
1390
|
+
}
|
|
1391
|
+
if (numberToReturn !== undefined && numberToReturn !== null) {
|
|
1392
|
+
queryParams.push(`numberToReturn=${encodeURIComponent(numberToReturn.toString())}`);
|
|
1393
|
+
}
|
|
1394
|
+
if (beginDate !== undefined && beginDate !== null) {
|
|
1395
|
+
queryParams.push(`beginDate=${encodeURIComponent(beginDate.toString())}`);
|
|
1396
|
+
}
|
|
1397
|
+
if (endDate !== undefined && endDate !== null) {
|
|
1398
|
+
queryParams.push(`endDate=${encodeURIComponent(endDate.toString())}`);
|
|
1399
|
+
}
|
|
1400
|
+
if (returnMemoPostTransaction !== undefined && returnMemoPostTransaction !== null && returnMemoPostTransaction !== '') {
|
|
1401
|
+
queryParams.push(`returnMemoPostTransaction=${encodeURIComponent(returnMemoPostTransaction)}`);
|
|
1402
|
+
}
|
|
1403
|
+
if (returnPackagePostItems !== undefined && returnPackagePostItems !== null && returnPackagePostItems !== '') {
|
|
1404
|
+
queryParams.push(`returnPackagePostItems=${encodeURIComponent(returnPackagePostItems)}`);
|
|
1405
|
+
}
|
|
1406
|
+
if (returnScheduledExternalTransfers !== undefined && returnScheduledExternalTransfers !== null && returnScheduledExternalTransfers !== '') {
|
|
1407
|
+
queryParams.push(`returnScheduledExternalTransfers=${encodeURIComponent(returnScheduledExternalTransfers)}`);
|
|
1408
|
+
}
|
|
1409
|
+
if (sequenceOption !== undefined && sequenceOption !== null && sequenceOption !== '') {
|
|
1410
|
+
queryParams.push(`sequenceOption=${encodeURIComponent(sequenceOption)}`);
|
|
1411
|
+
}
|
|
1412
|
+
if (searchToken !== undefined && searchToken !== null && searchToken !== '') {
|
|
1413
|
+
queryParams.push(`searchToken=${encodeURIComponent(searchToken)}`);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
1417
|
+
|
|
1418
|
+
const response = await httpClient.sendRequest({
|
|
1419
|
+
method: HttpMethod.GET,
|
|
1420
|
+
url: `${baseUrl}${MORTGAGE_LOAN_BASE_PATH}/accounts/${applicationCode}/${accountNumber}/transactions${queryString}`,
|
|
1421
|
+
headers,
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
return response.body;
|
|
1425
|
+
},
|
|
1426
|
+
});
|