@lendi/integrations-transform 1.7.5 → 1.7.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.
@@ -45,6 +45,10 @@
45
45
  "type": "number",
46
46
  "description": "The total amount of customer-specified cash out."
47
47
  },
48
+ "totalTopUp": {
49
+ "type": "number",
50
+ "description": "The total amount of customer-specified top up."
51
+ },
48
52
  "totalDeposit": {
49
53
  "type": "number",
50
54
  "description": "The total deposit amount for all properties."
@@ -59,7 +63,7 @@
59
63
  },
60
64
  "fundsRequested": {
61
65
  "type": "number",
62
- "description": "The final loan amount amount requested by the customer or broker."
66
+ "description": "The final loan amount requested by the customer or broker."
63
67
  },
64
68
  "fundsRequired": {
65
69
  "type": "number",
@@ -69,6 +73,14 @@
69
73
  "type": "number",
70
74
  "description": "Loan to value ratio. Calculated as the loan amount divided by the value of all properties being used as security."
71
75
  },
76
+ "baseFundsRequested": {
77
+ "type": "number",
78
+ "description": "The loan amount input by the customer or broker, but does not include the lmi. See fundsRequested for the final loan amount requested that includes lmi if lmiIncluded is true."
79
+ },
80
+ "baseLVR": {
81
+ "type": "number",
82
+ "description": "Loan to value ratio. Calculated as the loan amount divided by the value of all properties being used as security. Based on the baseFundsRequested field, which does not include the lmi."
83
+ },
72
84
  "netSurplus": {
73
85
  "type": "number",
74
86
  "description": "The amount remaining after settlement. Calculated as the difference between the funds requested and funds required."
@@ -80,6 +92,42 @@
80
92
  "lmiIncluded": {
81
93
  "type": "boolean",
82
94
  "description": "Whether the lmi premium is included in the funds required."
95
+ },
96
+ "cashoutCustomerActionRequired": {
97
+ "type": "boolean",
98
+ "description": "Customer action on cash-out required."
99
+ },
100
+ "cashoutCustomerActionCompleted": {
101
+ "type": "boolean",
102
+ "description": "Customer action on cash-out completed."
103
+ },
104
+ "cashoutCustomerAcknowledgement": {
105
+ "type": "boolean",
106
+ "description": "Cash-out acknowledgement completed by customer."
107
+ },
108
+ "cashoutBrokerCompleted": {
109
+ "type": "boolean",
110
+ "description": "All cash-out reasons are completed with comment by broker."
111
+ },
112
+ "topUpBrokerCompleted": {
113
+ "type": "boolean",
114
+ "description": "All top-up reasons are completed with comment by broker. Value undefined is equivalent to false."
115
+ },
116
+ "totalLendingAmount": {
117
+ "type": "number",
118
+ "description": "Total lending amount is fundsRequested plus the current loan amount, an example for the current loan amount is the loan amount on a land and the land would be used as security for a construction loan. If lmiIncluded is true it will include the lmi."
119
+ },
120
+ "totalLendingLvr": {
121
+ "type": "number",
122
+ "description": "Loan to value ratio. Calculated as the total lending amount divided by the value of all properties (including new purchase, refinance, security, and construction). Based on the totalLendingAmount field, which may include the lmi."
123
+ },
124
+ "totalPledgeAmount": {
125
+ "type": "number",
126
+ "description": "This is the total amount ($) of equity that the Guarantors are offering up as part of the Security Guarantee to the Borrowers application."
127
+ },
128
+ "totalPropertyValue": {
129
+ "type": "number",
130
+ "description": "Total property value excluding guarantor security properties."
83
131
  }
84
132
  },
85
133
  "required": [
@@ -88,6 +136,7 @@
88
136
  "properties",
89
137
  "fundsRequiredBreakdown",
90
138
  "totalCashOut",
139
+ "totalTopUp",
91
140
  "totalDeposit",
92
141
  "totalDebtConsolidation",
93
142
  "totalGovernmentContributions",
@@ -99,6 +148,24 @@
99
148
  "lmiIncluded"
100
149
  ]
101
150
  },
151
+ "OtherConsolidatingHomeLoanLiability": {
152
+ "type": "object",
153
+ "properties": {
154
+ "assetId": {
155
+ "type": "string",
156
+ "description": "The asset ID of the property associated with the home loan liability"
157
+ },
158
+ "liabilityId": {
159
+ "type": "string",
160
+ "description": "The home loan liability ID"
161
+ },
162
+ "outstandingAmount": {
163
+ "type": "number",
164
+ "description": "The home loan liability outstanding amount"
165
+ }
166
+ },
167
+ "required": ["assetId", "liabilityId", "outstandingAmount"]
168
+ },
102
169
  "Property": {
103
170
  "type": "object",
104
171
  "properties": {
@@ -187,6 +254,26 @@
187
254
  "cashOutAmount": {
188
255
  "type": "number",
189
256
  "description": "The additional amount of money requested by the customer as part of the loan."
257
+ },
258
+ "cashOuts": {
259
+ "type": "array",
260
+ "items": {
261
+ "$ref": "#/definitions/CashOut"
262
+ }
263
+ },
264
+ "pledgeAmount": {
265
+ "type": "number",
266
+ "description": "This is the amount ($) of equity that the Guarantor is offering up as part of the Security Guarantee to the Borrowers application."
267
+ },
268
+ "topUps": {
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/definitions/TopUp"
272
+ }
273
+ },
274
+ "topUpAmount": {
275
+ "type": "number",
276
+ "description": "The additional amount of money requested by the customer as part of the top-up loan."
190
277
  }
191
278
  },
192
279
  "required": [
@@ -270,6 +357,13 @@
270
357
  "accruedInterest": {
271
358
  "type": "number",
272
359
  "description": "The interest accrued before an existing loan has been discharged and payable to the existing lender at settlement."
360
+ },
361
+ "otherConsolidatingHomeLoanLiabilities": {
362
+ "type": "array",
363
+ "items": {
364
+ "$ref": "#/definitions/OtherConsolidatingHomeLoanLiability"
365
+ },
366
+ "description": "List of home loan liabilities to be consolidated, tied to a home loan asset not to be used as security."
273
367
  }
274
368
  },
275
369
  "required": [
@@ -284,6 +378,42 @@
284
378
  "lenderDischargeFee",
285
379
  "accruedInterest"
286
380
  ]
381
+ },
382
+ "CashOut": {
383
+ "type": "object",
384
+ "properties": {
385
+ "amount": {
386
+ "type": "number",
387
+ "description": "The amount of cash-out with reason."
388
+ },
389
+ "reason": {
390
+ "type": "string",
391
+ "enum": [
392
+ "EDUCATION_EXPENSES",
393
+ "HOLIDAY_EXPENSES",
394
+ "PROPERTY_DEPOSIT",
395
+ "NON_STRUCTURAL_RENOVATIONS",
396
+ "MARITAL_SETTLEMENT",
397
+ "MEDICAL_EXPENSES",
398
+ "OTHER",
399
+ "INVESTMENT_PURPOSES",
400
+ "VEHICLE_PURCHASE",
401
+ "WEDDING_EXPENSES"
402
+ ]
403
+ },
404
+ "description": {
405
+ "type": "string",
406
+ "description": "Additional description for the cash-out reason."
407
+ },
408
+ "comment": {
409
+ "type": "string",
410
+ "description": "Comment by broker for the cash-out."
411
+ }
412
+ },
413
+ "required": ["amount"]
414
+ },
415
+ "TopUp": {
416
+ "allOf": [{ "$ref": "#/definitions/CashOut" }]
287
417
  }
288
418
  }
289
419
  }
@@ -15,7 +15,35 @@ export interface Payload {
15
15
  */
16
16
  applicationId: string;
17
17
  /**
18
- * The final loan amount amount requested by the customer or broker.
18
+ * The loan amount input by the customer or broker, but does not include the lmi. See
19
+ * fundsRequested for the final loan amount requested that includes lmi if lmiIncluded is
20
+ * true.
21
+ */
22
+ baseFundsRequested?: number;
23
+ /**
24
+ * Loan to value ratio. Calculated as the loan amount divided by the value of all properties
25
+ * being used as security. Based on the baseFundsRequested field, which does not include the
26
+ * lmi.
27
+ */
28
+ baseLVR?: number;
29
+ /**
30
+ * All cash-out reasons are completed with comment by broker.
31
+ */
32
+ cashoutBrokerCompleted?: boolean;
33
+ /**
34
+ * Cash-out acknowledgement completed by customer.
35
+ */
36
+ cashoutCustomerAcknowledgement?: boolean;
37
+ /**
38
+ * Customer action on cash-out completed.
39
+ */
40
+ cashoutCustomerActionCompleted?: boolean;
41
+ /**
42
+ * Customer action on cash-out required.
43
+ */
44
+ cashoutCustomerActionRequired?: boolean;
45
+ /**
46
+ * The final loan amount requested by the customer or broker.
19
47
  */
20
48
  fundsRequested: number;
21
49
  /**
@@ -51,6 +79,11 @@ export interface Payload {
51
79
  * List of refinance or new purchase property
52
80
  */
53
81
  properties: Property[];
82
+ /**
83
+ * All top-up reasons are completed with comment by broker. Value undefined is equivalent to
84
+ * false.
85
+ */
86
+ topUpBrokerCompleted?: boolean;
54
87
  /**
55
88
  * The total amount of customer-specified cash out.
56
89
  */
@@ -67,6 +100,31 @@ export interface Payload {
67
100
  * The total amount available for settlement from government grants.
68
101
  */
69
102
  totalGovernmentContributions: number;
103
+ /**
104
+ * Total lending amount is fundsRequested plus the current loan amount, an example for the
105
+ * current loan amount is the loan amount on a land and the land would be used as security
106
+ * for a construction loan. If lmiIncluded is true it will include the lmi.
107
+ */
108
+ totalLendingAmount?: number;
109
+ /**
110
+ * Loan to value ratio. Calculated as the total lending amount divided by the value of all
111
+ * properties (including new purchase, refinance, security, and construction). Based on the
112
+ * totalLendingAmount field, which may include the lmi.
113
+ */
114
+ totalLendingLvr?: number;
115
+ /**
116
+ * This is the total amount ($) of equity that the Guarantors are offering up as part of the
117
+ * Security Guarantee to the Borrowers application.
118
+ */
119
+ totalPledgeAmount?: number;
120
+ /**
121
+ * Total property value excluding guarantor security properties.
122
+ */
123
+ totalPropertyValue?: number;
124
+ /**
125
+ * The total amount of customer-specified top up.
126
+ */
127
+ totalTopUp: number;
70
128
  }
71
129
  export interface FundsRequiredBreakdown {
72
130
  /**
@@ -99,6 +157,11 @@ export interface FundsRequiredBreakdown {
99
157
  * A fee paid to the Land Titles Office for the registration of a mortgage over a property.
100
158
  */
101
159
  mortgageRegistrationFee: number;
160
+ /**
161
+ * List of home loan liabilities to be consolidated, tied to a home loan asset not to be
162
+ * used as security.
163
+ */
164
+ otherConsolidatingHomeLoanLiabilities?: OtherConsolidatingHomeLoanLiability[];
102
165
  /**
103
166
  * Other fees payable to an interested party to ensure settlement can proceed.
104
167
  */
@@ -113,6 +176,20 @@ export interface FundsRequiredBreakdown {
113
176
  */
114
177
  transferFee: number;
115
178
  }
179
+ export interface OtherConsolidatingHomeLoanLiability {
180
+ /**
181
+ * The asset ID of the property associated with the home loan liability
182
+ */
183
+ assetId: string;
184
+ /**
185
+ * The home loan liability ID
186
+ */
187
+ liabilityId: string;
188
+ /**
189
+ * The home loan liability outstanding amount
190
+ */
191
+ outstandingAmount: number;
192
+ }
116
193
  export interface Property {
117
194
  /**
118
195
  * The interest accrued before an existing loan has been discharged and payable to the
@@ -123,6 +200,7 @@ export interface Property {
123
200
  * The additional amount of money requested by the customer as part of the loan.
124
201
  */
125
202
  cashOutAmount?: number;
203
+ cashOuts?: CashOut[];
126
204
  /**
127
205
  * The amount that will be used for construction purposes.
128
206
  */
@@ -169,6 +247,11 @@ export interface Property {
169
247
  * Other fees payable to an interested party to ensure settlement can proceed.
170
248
  */
171
249
  otherSundries: number;
250
+ /**
251
+ * This is the amount ($) of equity that the Guarantor is offering up as part of the
252
+ * Security Guarantee to the Borrowers application.
253
+ */
254
+ pledgeAmount?: number;
172
255
  /**
173
256
  * The value of a property.
174
257
  */
@@ -181,6 +264,11 @@ export interface Property {
181
264
  * Tax paid to the State Revenue Office when purchasing a property.
182
265
  */
183
266
  stampDuty?: number;
267
+ /**
268
+ * The additional amount of money requested by the customer as part of the top-up loan.
269
+ */
270
+ topUpAmount?: number;
271
+ topUps?: CashOut[];
184
272
  /**
185
273
  * A sum of all contributions made towards settlement.
186
274
  */
@@ -199,6 +287,33 @@ export interface Property {
199
287
  */
200
288
  transferFee?: number;
201
289
  }
290
+ export interface CashOut {
291
+ /**
292
+ * The amount of cash-out with reason.
293
+ */
294
+ amount: number;
295
+ /**
296
+ * Comment by broker for the cash-out.
297
+ */
298
+ comment?: string;
299
+ /**
300
+ * Additional description for the cash-out reason.
301
+ */
302
+ description?: string;
303
+ reason?: Reason;
304
+ }
305
+ export declare enum Reason {
306
+ EducationExpenses = "EDUCATION_EXPENSES",
307
+ HolidayExpenses = "HOLIDAY_EXPENSES",
308
+ InvestmentPurposes = "INVESTMENT_PURPOSES",
309
+ MaritalSettlement = "MARITAL_SETTLEMENT",
310
+ MedicalExpenses = "MEDICAL_EXPENSES",
311
+ NonStructuralRenovations = "NON_STRUCTURAL_RENOVATIONS",
312
+ Other = "OTHER",
313
+ PropertyDeposit = "PROPERTY_DEPOSIT",
314
+ VehiclePurchase = "VEHICLE_PURCHASE",
315
+ WeddingExpenses = "WEDDING_EXPENSES"
316
+ }
202
317
  export interface DebtConsolidation {
203
318
  /**
204
319
  * Amount
@@ -1,6 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Type = void 0;
3
+ exports.Type = exports.Reason = void 0;
4
+ var Reason;
5
+ (function (Reason) {
6
+ Reason["EducationExpenses"] = "EDUCATION_EXPENSES";
7
+ Reason["HolidayExpenses"] = "HOLIDAY_EXPENSES";
8
+ Reason["InvestmentPurposes"] = "INVESTMENT_PURPOSES";
9
+ Reason["MaritalSettlement"] = "MARITAL_SETTLEMENT";
10
+ Reason["MedicalExpenses"] = "MEDICAL_EXPENSES";
11
+ Reason["NonStructuralRenovations"] = "NON_STRUCTURAL_RENOVATIONS";
12
+ Reason["Other"] = "OTHER";
13
+ Reason["PropertyDeposit"] = "PROPERTY_DEPOSIT";
14
+ Reason["VehiclePurchase"] = "VEHICLE_PURCHASE";
15
+ Reason["WeddingExpenses"] = "WEDDING_EXPENSES";
16
+ })(Reason = exports.Reason || (exports.Reason = {}));
4
17
  var Type;
5
18
  (function (Type) {
6
19
  Type["FundingPosition"] = "FundingPosition";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Library for kafka event data transforming",
5
5
  "author": "Integrations <integrations@lendi.com.au>",
6
6
  "homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",