@lendi/act-credit-decisions-transform 2.0.20 → 2.0.22
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/lib/schemas/credit-report-retrieved-event.json +828 -10
- package/lib/schemas/public-required-document-event.json +1 -2
- package/lib/transform-events/generate-asset-liability-link.js +1 -2
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +1 -1
- package/lib/transform-events/generate-credit-report-rebuilt.js +1 -2
- package/lib/transform-events/transform-applicant.js +2 -2
- package/lib/transform-events/transform-application-workflow.js +1 -2
- package/lib/transform-events/transform-application.js +1 -2
- package/lib/transform-events/transform-asset-address.js +4 -4
- package/lib/transform-events/transform-asset.js +8 -8
- package/lib/transform-events/transform-bcm-status-updated.js +1 -2
- package/lib/transform-events/transform-employment.js +1 -2
- package/lib/transform-events/transform-expenses.js +6 -6
- package/lib/transform-events/transform-funding-position.js +2 -3
- package/lib/transform-events/transform-income.js +6 -6
- package/lib/transform-events/transform-liability.js +1 -2
- package/lib/transform-events/transform-percent-owned.js +1 -2
- package/lib/types/events/credit-report-retrieved.d.ts +561 -5
- package/lib/types/events/credit-report-retrieved.js +297 -6
- package/lib/types/events/public-required-document.d.ts +1 -7
- package/lib/types/events/public-required-document.js +1 -8
- package/lib/update-application/merge-application.js +1 -2
- package/lib/utils/address-tools.js +8 -8
- package/lib/utils/clean-up.js +1 -2
- package/lib/utils/generate-address.js +3 -3
- package/lib/utils/get-financial-institution.js +1 -2
- package/lib/utils/is-asset-type.js +4 -5
- package/lib/utils/is-income-type.js +9 -9
- package/lib/utils/normalise-date.js +1 -2
- package/lib/utils/round-decimal.js +1 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface CreditReportRetrieved {
|
|
2
|
-
payload:
|
|
3
|
-
type:
|
|
2
|
+
payload: Payload;
|
|
3
|
+
type: CreditReportRetrievedType;
|
|
4
4
|
version: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface Payload {
|
|
7
7
|
applicantId: string;
|
|
8
8
|
applicationId: string;
|
|
9
9
|
/**
|
|
@@ -11,18 +11,488 @@ export interface PayloadObject {
|
|
|
11
11
|
*/
|
|
12
12
|
createdAt?: string;
|
|
13
13
|
customerId: string;
|
|
14
|
+
errors?: ValidationError[];
|
|
15
|
+
isDeidentified?: boolean;
|
|
14
16
|
/**
|
|
15
17
|
* Indicate whether there is a match found or not for the customer.
|
|
16
18
|
*/
|
|
17
19
|
isNoMatch?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Transformed credit report in json format from the raw content. This field is deprecated
|
|
22
|
+
* and will be removed in the future. Consider to use field transformedJson instead.
|
|
23
|
+
*/
|
|
24
|
+
json?: CreditReport;
|
|
25
|
+
message?: string;
|
|
18
26
|
/**
|
|
19
27
|
* Credit report raw content, compressed and 64-base encoded.
|
|
20
28
|
*/
|
|
21
|
-
raw
|
|
29
|
+
raw?: string;
|
|
22
30
|
/**
|
|
23
31
|
* A list of credit report service provider
|
|
24
32
|
*/
|
|
25
33
|
source: Source;
|
|
34
|
+
/**
|
|
35
|
+
* The transformed credit report from the raw content. All enumerated fields are mapped to
|
|
36
|
+
* their corresponding internal Lendi values while preserving the original values wherever
|
|
37
|
+
* possible. This is a work in progress; additional fields can be added as needed.
|
|
38
|
+
*/
|
|
39
|
+
transformedJson?: TransformedCreditReport;
|
|
40
|
+
}
|
|
41
|
+
export interface ValidationError {
|
|
42
|
+
/**
|
|
43
|
+
* Validation error message
|
|
44
|
+
*/
|
|
45
|
+
message?: string;
|
|
46
|
+
path?: string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Transformed credit report in json format from the raw content. This field is deprecated
|
|
50
|
+
* and will be removed in the future. Consider to use field transformedJson instead.
|
|
51
|
+
*
|
|
52
|
+
* The raw credit report data from the service provider that has been transformed to json
|
|
53
|
+
*/
|
|
54
|
+
export interface CreditReport {
|
|
55
|
+
commercialEnquiries?: CommercialCreditFile;
|
|
56
|
+
consumerEnquiries?: ConsumerCreditFile;
|
|
57
|
+
courtActions?: CourtAction[];
|
|
58
|
+
/**
|
|
59
|
+
* Number of Credit Enquiries
|
|
60
|
+
*/
|
|
61
|
+
creditEnquiriesLast5Years?: number;
|
|
62
|
+
directorships?: Directorship[];
|
|
63
|
+
disqualifiedDirectorships?: DisqualifiedDirectorships[];
|
|
64
|
+
/**
|
|
65
|
+
* The enquiry id from the service provider.
|
|
66
|
+
*/
|
|
67
|
+
enquiryId: string;
|
|
68
|
+
insolvencies?: Insolvency[];
|
|
69
|
+
lastRequestedAt?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Number of identities of a person with Credit Bureau (Primary Match + Other Identities
|
|
72
|
+
* count)
|
|
73
|
+
*/
|
|
74
|
+
numberOfIdentities: number;
|
|
75
|
+
possibleMatch?: PossibleMatch;
|
|
76
|
+
possibleMatchReference?: string;
|
|
77
|
+
/**
|
|
78
|
+
* A unique identifier for that individual, used if the individual can be explicitly
|
|
79
|
+
* identified
|
|
80
|
+
*/
|
|
81
|
+
primaryBureauReference?: string;
|
|
82
|
+
primaryMatch?: PrimaryMatch;
|
|
83
|
+
/**
|
|
84
|
+
* An overall score value.
|
|
85
|
+
*/
|
|
86
|
+
scoreMasterScale: number;
|
|
87
|
+
summary?: SummaryDataPoint[];
|
|
88
|
+
}
|
|
89
|
+
export interface CommercialCreditFile {
|
|
90
|
+
accounts?: Account[];
|
|
91
|
+
creditEnquiries?: CommercialCreditEnquiry[];
|
|
92
|
+
fileNotes?: FileNote[];
|
|
93
|
+
}
|
|
94
|
+
export interface Account {
|
|
95
|
+
accountId: string;
|
|
96
|
+
accountOpeningDate?: string;
|
|
97
|
+
accountType?: CommercialAccountType;
|
|
98
|
+
latestCreditProvider: string;
|
|
99
|
+
loanPaymentMethod?: LoanPaymentMethodCodeList;
|
|
100
|
+
loanTerm?: string;
|
|
101
|
+
loanTermType?: string;
|
|
102
|
+
maximumCreditAmount?: string;
|
|
103
|
+
originalCreditProvider: string;
|
|
104
|
+
paymentDefaults?: PaymentDefault[];
|
|
105
|
+
repaymentHistory?: Repayment[];
|
|
106
|
+
/**
|
|
107
|
+
* Financial institution short name. If no matching financial institution is found in credit
|
|
108
|
+
* report service, attribute will not be present
|
|
109
|
+
*/
|
|
110
|
+
resolvedFinancialInstitution?: string;
|
|
111
|
+
}
|
|
112
|
+
export declare enum CommercialAccountType {
|
|
113
|
+
AllOtherAccountTypes = "All Other Account Types",
|
|
114
|
+
AutoLoan = "Auto Loan",
|
|
115
|
+
BankOverdraft = "Bank Overdraft",
|
|
116
|
+
BillOfSale = "Bill of Sale",
|
|
117
|
+
BridgingFinance = "Bridging Finance",
|
|
118
|
+
BuyNowPayLaterFacility = "Buy Now Pay Later Facility",
|
|
119
|
+
BuyNowPayLaterTransaction = "Buy Now Pay Later Transaction",
|
|
120
|
+
CashOnDelivery = "Cash on Delivery",
|
|
121
|
+
ChargeCard = "Charge Card",
|
|
122
|
+
Cheque = "Cheque",
|
|
123
|
+
CommercialAccountTypeTelecommunicationServices = "Telecommunication Services",
|
|
124
|
+
CommercialRental = "Commercial Rental",
|
|
125
|
+
ContinuingCreditContract = "Continuing Credit Contract",
|
|
126
|
+
CreditCard = "Credit Card",
|
|
127
|
+
Dealership = "Dealership",
|
|
128
|
+
DeferredPaymentDebitCard = "Deferred Payment Debit Card",
|
|
129
|
+
DirectorSAccess = "Director's Access",
|
|
130
|
+
EquipmentHireOrRental = "Equipment Hire or Rental",
|
|
131
|
+
FactoredAccount = "Factored Account",
|
|
132
|
+
HirePurchase = "Hire Purchase",
|
|
133
|
+
Leasing = "Leasing",
|
|
134
|
+
LendingProposal = "Lending Proposal",
|
|
135
|
+
Overdraft = "Overdraft",
|
|
136
|
+
PersonalLoan = "Personal Loan",
|
|
137
|
+
PersonalLoanFixedTerm = "Personal Loan Fixed Term",
|
|
138
|
+
PersonalLoanRevolving = "Personal Loan Revolving",
|
|
139
|
+
PremiumFinance = "Premium Finance",
|
|
140
|
+
RealEstateMortgage = "Real Estate Mortgage",
|
|
141
|
+
RealPropertyMortgage = "Real Property Mortgage",
|
|
142
|
+
SearchRequest = "Search Request",
|
|
143
|
+
TelecommunicationServices = "Telecommunication services",
|
|
144
|
+
TelecommunicationsServices = "Telecommunications Services",
|
|
145
|
+
The30DayAccount = "30-Day Account",
|
|
146
|
+
The60DayAccount = "60-Day Account",
|
|
147
|
+
The7DayAccount = "7-Day Account",
|
|
148
|
+
The90DayAccount = "90-Day Account",
|
|
149
|
+
TradeFinance = "Trade Finance",
|
|
150
|
+
Utilities = "Utilities",
|
|
151
|
+
WholesaleFinance = "Wholesale Finance"
|
|
152
|
+
}
|
|
153
|
+
export declare enum LoanPaymentMethodCodeList {
|
|
154
|
+
InterestOnly = "Interest only",
|
|
155
|
+
NotApplicable = "Not Applicable",
|
|
156
|
+
PrincipalAndInterestFull = "Principal and Interest Full",
|
|
157
|
+
PrincipalAndInterestPartial = "Principal and Interest Partial"
|
|
158
|
+
}
|
|
159
|
+
export interface PaymentDefault {
|
|
160
|
+
current?: DefaultInstance;
|
|
161
|
+
original?: DefaultInstance;
|
|
162
|
+
statusCode: PaymentDefaultStatusList;
|
|
163
|
+
statusDate?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface DefaultInstance {
|
|
166
|
+
amount: Amount;
|
|
167
|
+
dateRecorded: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Dollar amount of Court Action
|
|
171
|
+
*/
|
|
172
|
+
export interface Amount {
|
|
173
|
+
currencyCode: string;
|
|
174
|
+
value: number;
|
|
175
|
+
}
|
|
176
|
+
export declare enum PaymentDefaultStatusList {
|
|
177
|
+
Current = "Current",
|
|
178
|
+
Disputed = "Disputed",
|
|
179
|
+
NewArrangement = "New Arrangement",
|
|
180
|
+
NewArrangementVaried = "New Arrangement Varied",
|
|
181
|
+
Outstanding = "Outstanding",
|
|
182
|
+
Paid = "Paid",
|
|
183
|
+
Settled = "Settled"
|
|
184
|
+
}
|
|
185
|
+
export interface Repayment {
|
|
186
|
+
/**
|
|
187
|
+
* Repayment history code.
|
|
188
|
+
*/
|
|
189
|
+
code?: RepaymentStatusCode;
|
|
190
|
+
/**
|
|
191
|
+
* Repayment history period.
|
|
192
|
+
*/
|
|
193
|
+
period: string;
|
|
194
|
+
/**
|
|
195
|
+
* Repayment history status.
|
|
196
|
+
*/
|
|
197
|
+
status: RepaymentStatusList;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Repayment history code.
|
|
201
|
+
*/
|
|
202
|
+
export declare enum RepaymentStatusCode {
|
|
203
|
+
A = "A",
|
|
204
|
+
C = "C",
|
|
205
|
+
O = "O",
|
|
206
|
+
P = "P",
|
|
207
|
+
R = "R",
|
|
208
|
+
T = "T",
|
|
209
|
+
The0 = "0",
|
|
210
|
+
The1 = "1",
|
|
211
|
+
The2 = "2",
|
|
212
|
+
The3 = "3",
|
|
213
|
+
The4 = "4",
|
|
214
|
+
The5 = "5",
|
|
215
|
+
The6 = "6",
|
|
216
|
+
The991 = "-991",
|
|
217
|
+
The992 = "-992",
|
|
218
|
+
The993 = "-993",
|
|
219
|
+
X = "X"
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Repayment history status.
|
|
223
|
+
*/
|
|
224
|
+
export declare enum RepaymentStatusList {
|
|
225
|
+
Closed = "Closed",
|
|
226
|
+
NotAssociated = "Not Associated",
|
|
227
|
+
NotOverdue = "Not Overdue",
|
|
228
|
+
NotReported = "Not Reported",
|
|
229
|
+
OverdueOver179Days = "Overdue Over 179 Days",
|
|
230
|
+
OverdueUpto119Days = "Overdue Upto 119 Days",
|
|
231
|
+
OverdueUpto149Days = "Overdue Upto 149 Days",
|
|
232
|
+
OverdueUpto179Days = "Overdue Upto 179 Days",
|
|
233
|
+
OverdueUpto29Days = "Overdue Upto 29 Days",
|
|
234
|
+
OverdueUpto59Days = "Overdue Upto 59 Days",
|
|
235
|
+
OverdueUpto89Days = "Overdue Upto 89 Days",
|
|
236
|
+
Pending = "Pending",
|
|
237
|
+
Transferred = "Transferred"
|
|
238
|
+
}
|
|
239
|
+
export interface CommercialCreditEnquiry {
|
|
240
|
+
accountType: CreditEnquiryAccountType;
|
|
241
|
+
amount: Amount;
|
|
242
|
+
creditEnquirer: string;
|
|
243
|
+
enquiryDate: string;
|
|
244
|
+
}
|
|
245
|
+
export declare enum CreditEnquiryAccountType {
|
|
246
|
+
BankOverdraft = "Bank Overdraft",
|
|
247
|
+
BillOfSale = "Bill of Sale",
|
|
248
|
+
BridgingFinance = "Bridging Finance",
|
|
249
|
+
CashOnDelivery = "Cash on Delivery",
|
|
250
|
+
Cheque = "Cheque",
|
|
251
|
+
CommercialAccountTypeTelecommunicationServices = "Telecommunication Services",
|
|
252
|
+
CommercialRental = "Commercial Rental",
|
|
253
|
+
CreditCard = "Credit Card",
|
|
254
|
+
Dealership = "Dealership",
|
|
255
|
+
DeferredPaymentDebitCard = "Deferred Payment Debit Card",
|
|
256
|
+
DirectorSAccess = "Director's Access",
|
|
257
|
+
FactoredAccount = "Factored Account",
|
|
258
|
+
HirePurchase = "Hire Purchase",
|
|
259
|
+
Leasing = "Leasing",
|
|
260
|
+
LendingProposal = "Lending Proposal",
|
|
261
|
+
PersonalLoan = "Personal Loan",
|
|
262
|
+
PremiumFinance = "Premium Finance",
|
|
263
|
+
RealEstateMortgage = "Real Estate Mortgage",
|
|
264
|
+
SearchRequest = "Search Request",
|
|
265
|
+
TelecommunicationServices = "Telecommunication services",
|
|
266
|
+
The30DayAccount = "30-Day Account",
|
|
267
|
+
The60DayAccount = "60-Day Account",
|
|
268
|
+
The7DayAccount = "7-Day Account",
|
|
269
|
+
The90DayAccount = "90-Day Account",
|
|
270
|
+
TradeFinance = "Trade Finance",
|
|
271
|
+
Utilities = "Utilities",
|
|
272
|
+
WholesaleFinance = "Wholesale Finance"
|
|
273
|
+
}
|
|
274
|
+
export interface FileNote {
|
|
275
|
+
dateRecorded: string;
|
|
276
|
+
note: string;
|
|
277
|
+
}
|
|
278
|
+
export interface ConsumerCreditFile {
|
|
279
|
+
accounts?: Account[];
|
|
280
|
+
creditEnquiries?: ConsumerCreditEnquiry[];
|
|
281
|
+
}
|
|
282
|
+
export interface ConsumerCreditEnquiry {
|
|
283
|
+
accountType: ConsumerAccountTypeList;
|
|
284
|
+
amount: Amount;
|
|
285
|
+
creditEnquirer: string;
|
|
286
|
+
enquiryDate: string;
|
|
287
|
+
}
|
|
288
|
+
export declare enum ConsumerAccountTypeList {
|
|
289
|
+
AllOtherAccountTypes = "All Other Account Types",
|
|
290
|
+
AutoLoan = "Auto Loan",
|
|
291
|
+
BuyNowPayLaterFacility = "Buy Now Pay Later Facility",
|
|
292
|
+
BuyNowPayLaterTransaction = "Buy Now Pay Later Transaction",
|
|
293
|
+
ChargeCard = "Charge Card",
|
|
294
|
+
ContinuingCreditContract = "Continuing Credit Contract",
|
|
295
|
+
CreditCard = "Credit Card",
|
|
296
|
+
EquipmentHireOrRental = "Equipment Hire or Rental",
|
|
297
|
+
Overdraft = "Overdraft",
|
|
298
|
+
PersonalLoanFixedTerm = "Personal Loan Fixed Term",
|
|
299
|
+
PersonalLoanRevolving = "Personal Loan Revolving",
|
|
300
|
+
RealPropertyMortgage = "Real Property Mortgage",
|
|
301
|
+
TelecommunicationsServices = "Telecommunications Services",
|
|
302
|
+
Utilities = "Utilities"
|
|
303
|
+
}
|
|
304
|
+
export interface CourtAction {
|
|
305
|
+
/**
|
|
306
|
+
* The date when a court judgement was signed or a writ, summons or claim was issued
|
|
307
|
+
*/
|
|
308
|
+
actionDate: string;
|
|
309
|
+
/**
|
|
310
|
+
* Dollar amount of Court Action
|
|
311
|
+
*/
|
|
312
|
+
amount: Amount;
|
|
313
|
+
/**
|
|
314
|
+
* Includes information about default judgements and other court actions (such as writs and
|
|
315
|
+
* summons)
|
|
316
|
+
*/
|
|
317
|
+
courtActionType: CourtActionType;
|
|
318
|
+
/**
|
|
319
|
+
* Reference to associate the source of this information to the identity defined by identity
|
|
320
|
+
* index.
|
|
321
|
+
*/
|
|
322
|
+
idReference: string;
|
|
323
|
+
/**
|
|
324
|
+
* Status of the court action.
|
|
325
|
+
*/
|
|
326
|
+
status?: Status;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Includes information about default judgements and other court actions (such as writs and
|
|
330
|
+
* summons)
|
|
331
|
+
*/
|
|
332
|
+
export declare enum CourtActionType {
|
|
333
|
+
DefaultJudgement = "defaultJudgement",
|
|
334
|
+
OtherCourtAction = "otherCourtAction"
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Status of the court action.
|
|
338
|
+
*/
|
|
339
|
+
export declare enum Status {
|
|
340
|
+
Disconnected = "Disconnected",
|
|
341
|
+
Paid = "Paid",
|
|
342
|
+
Settled = "Settled"
|
|
343
|
+
}
|
|
344
|
+
export interface Directorship {
|
|
345
|
+
dateAppointed: string;
|
|
346
|
+
dateCeased?: string;
|
|
347
|
+
idReference: string;
|
|
348
|
+
organisationName: string;
|
|
349
|
+
organisationType: OrganisationTypeList;
|
|
350
|
+
/**
|
|
351
|
+
* The type of Directorship
|
|
352
|
+
*/
|
|
353
|
+
type?: DirectorshipType;
|
|
354
|
+
}
|
|
355
|
+
export declare enum OrganisationTypeList {
|
|
356
|
+
Incorporated = "Incorporated",
|
|
357
|
+
LimitedLiabilityRegisteredBody = "Limited Liability Registered Body",
|
|
358
|
+
Proprietary = "Proprietary",
|
|
359
|
+
ProprietaryLimited = "Proprietary Limited",
|
|
360
|
+
ProprietaryLimitedNoLiability = "Proprietary Limited No Liability"
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* The type of Directorship
|
|
364
|
+
*/
|
|
365
|
+
export declare enum DirectorshipType {
|
|
366
|
+
Current = "Current",
|
|
367
|
+
Previous = "Previous"
|
|
368
|
+
}
|
|
369
|
+
export interface DisqualifiedDirectorships {
|
|
370
|
+
dateDisqualified: string;
|
|
371
|
+
dateDisqualifiedUntil: string;
|
|
372
|
+
idReference: string;
|
|
373
|
+
}
|
|
374
|
+
export interface Insolvency {
|
|
375
|
+
dateDeclared: string;
|
|
376
|
+
idReference: string;
|
|
377
|
+
insolvencyType?: InsolvencyTypeList;
|
|
378
|
+
status?: InsolvencyStatus;
|
|
379
|
+
statusDate?: string;
|
|
380
|
+
}
|
|
381
|
+
export declare enum InsolvencyTypeList {
|
|
382
|
+
AssignmentOrArrangement = "Assignment or Arrangement",
|
|
383
|
+
Bankruptcy = "Bankruptcy",
|
|
384
|
+
BankruptcySequestrationOrderArrangement = "Bankruptcy Sequestration Order Arrangement",
|
|
385
|
+
Composition = "Composition",
|
|
386
|
+
DebtAgreement = "Debt Agreement",
|
|
387
|
+
PersonalInsolvencyAgreement = "Personal Insolvency Agreement"
|
|
388
|
+
}
|
|
389
|
+
export declare enum InsolvencyStatus {
|
|
390
|
+
Completed = "Completed",
|
|
391
|
+
Discharged = "Discharged",
|
|
392
|
+
Terminated = "Terminated"
|
|
393
|
+
}
|
|
394
|
+
export interface PossibleMatch {
|
|
395
|
+
address: Address;
|
|
396
|
+
employerName?: string;
|
|
397
|
+
person: Person;
|
|
398
|
+
}
|
|
399
|
+
export interface Address {
|
|
400
|
+
countryCode: string;
|
|
401
|
+
postcode?: string;
|
|
402
|
+
state: string;
|
|
403
|
+
streetName?: string;
|
|
404
|
+
streetNumber?: string;
|
|
405
|
+
streetType?: string;
|
|
406
|
+
suburb: string;
|
|
407
|
+
unitNumber?: string;
|
|
408
|
+
}
|
|
409
|
+
export interface Person {
|
|
410
|
+
bureauReference?: string;
|
|
411
|
+
dateOfBirth?: string;
|
|
412
|
+
driversLicense?: string;
|
|
413
|
+
firstName: string;
|
|
414
|
+
gender?: string;
|
|
415
|
+
/**
|
|
416
|
+
* An identifier appended to each known identity of the individual.
|
|
417
|
+
*/
|
|
418
|
+
idIndex?: string;
|
|
419
|
+
lastName: string;
|
|
420
|
+
middleName?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Strong - credit report is found, and a record exists in the credit provider's database;
|
|
423
|
+
* Create - credit report is found, no record exists in the credit provider's database, a
|
|
424
|
+
* new record is added.
|
|
425
|
+
*/
|
|
426
|
+
primaryMatchType?: PrimaryMatchType;
|
|
427
|
+
title?: string;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Strong - credit report is found, and a record exists in the credit provider's database;
|
|
431
|
+
* Create - credit report is found, no record exists in the credit provider's database, a
|
|
432
|
+
* new record is added.
|
|
433
|
+
*/
|
|
434
|
+
export declare enum PrimaryMatchType {
|
|
435
|
+
Create = "Create",
|
|
436
|
+
Strong = "Strong"
|
|
437
|
+
}
|
|
438
|
+
export interface PrimaryMatch {
|
|
439
|
+
address: Address;
|
|
440
|
+
otherIdentities?: Person[];
|
|
441
|
+
person: Person;
|
|
442
|
+
}
|
|
443
|
+
export interface SummaryDataPoint {
|
|
444
|
+
/**
|
|
445
|
+
* Indicates the data level type of the characteristic. A characteristic can be derived
|
|
446
|
+
* based on Negative, Partial or Comprehensive
|
|
447
|
+
*/
|
|
448
|
+
dataLevel?: DataLevel;
|
|
449
|
+
type: SummaryType;
|
|
450
|
+
/**
|
|
451
|
+
* A number will have type 'number' if valid, otherwise 'string'. Default value is 0
|
|
452
|
+
*/
|
|
453
|
+
value: number | string;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Indicates the data level type of the characteristic. A characteristic can be derived
|
|
457
|
+
* based on Negative, Partial or Comprehensive
|
|
458
|
+
*/
|
|
459
|
+
export declare enum DataLevel {
|
|
460
|
+
Comprehensive = "Comprehensive",
|
|
461
|
+
Negative = "Negative",
|
|
462
|
+
Partial = "Partial"
|
|
463
|
+
}
|
|
464
|
+
export declare enum SummaryType {
|
|
465
|
+
AgeOfCreditFileInMths = "ageOfCreditFileInMths",
|
|
466
|
+
ClosedAccounts = "closedAccounts",
|
|
467
|
+
CommercialAdverseFlagOnFileInLast48Or84Months = "commercialAdverseFlagOnFileInLast48Or84Months",
|
|
468
|
+
ConsumerAdverseFlagOnFileInLast48Or84Months = "consumerAdverseFlagOnFileInLast48Or84Months",
|
|
469
|
+
CreditEnquiriesInLast5Years = "creditEnquiriesInLast5Years",
|
|
470
|
+
CurrentDirectorships = "currentDirectorships",
|
|
471
|
+
DefaultsLast12Months = "defaultsLast12Months",
|
|
472
|
+
DefaultsLast5To7Years = "defaultsLast5To7Years",
|
|
473
|
+
DefaultsLast6Months = "defaultsLast6Months",
|
|
474
|
+
FinancialHardshipIndicatorsInLast12Months = "financialHardshipIndicatorsInLast12Months",
|
|
475
|
+
InsolvenciesAndActions = "insolvenciesAndActions",
|
|
476
|
+
NumBankruptOnlyInsolvenciesOnFile = "numBankruptOnlyInsolvenciesOnFile",
|
|
477
|
+
NumConsumerEnquiriesInLast12Months = "numConsumerEnquiriesInLast12Months",
|
|
478
|
+
NumCourtWritsInLast60Months = "numCourtWritsInLast60Months",
|
|
479
|
+
NumJudgementsInLast60Months = "numJudgementsInLast60Months",
|
|
480
|
+
NumOpenAutoAccounts = "numOpenAutoAccounts",
|
|
481
|
+
NumOpenChargeCardAccounts = "numOpenChargeCardAccounts",
|
|
482
|
+
NumOpenCreditCardAccounts = "numOpenCreditCardAccounts",
|
|
483
|
+
NumOpenMortgageAccounts = "numOpenMortgageAccounts",
|
|
484
|
+
NumOpenOverdraftAccounts = "numOpenOverdraftAccounts",
|
|
485
|
+
NumOpenPersonalLoanAccounts = "numOpenPersonalLoanAccounts",
|
|
486
|
+
NumOpenRentalAccounts = "numOpenRentalAccounts",
|
|
487
|
+
NumUnpaidOrUnsettledCourtWritsInLast60Months = "numUnpaidOrUnsettledCourtWritsInLast60Months",
|
|
488
|
+
NumUnpaidOrUnsettledJudgementsInLast60Months = "numUnpaidOrUnsettledJudgementsInLast60Months",
|
|
489
|
+
NumberOfCommercialDisqualifiedDirectorshipsInLast60Months = "numberOfCommercialDisqualifiedDirectorshipsInLast60Months",
|
|
490
|
+
OpenedAccounts = "openedAccounts",
|
|
491
|
+
PreviousDirectorships = "previousDirectorships",
|
|
492
|
+
WorstClosedInLast24Months = "worstClosedInLast24Months",
|
|
493
|
+
WorstOpenAccountStatus = "worstOpenAccountStatus",
|
|
494
|
+
WorstOpenInLast12Months = "worstOpenInLast12Months",
|
|
495
|
+
WorstOpenInLast24Months = "worstOpenInLast24Months"
|
|
26
496
|
}
|
|
27
497
|
/**
|
|
28
498
|
* A list of credit report service provider
|
|
@@ -30,7 +500,93 @@ export interface PayloadObject {
|
|
|
30
500
|
export declare enum Source {
|
|
31
501
|
Equifax = "equifax"
|
|
32
502
|
}
|
|
33
|
-
|
|
503
|
+
/**
|
|
504
|
+
* The transformed credit report from the raw content. All enumerated fields are mapped to
|
|
505
|
+
* their corresponding internal Lendi values while preserving the original values wherever
|
|
506
|
+
* possible. This is a work in progress; additional fields can be added as needed.
|
|
507
|
+
*
|
|
508
|
+
* Transformed credit report object
|
|
509
|
+
*/
|
|
510
|
+
export interface TransformedCreditReport {
|
|
511
|
+
consumerEnquiries?: TransformedConsumerCreditFile;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Transformed credit report of the consumer enquiries
|
|
515
|
+
*/
|
|
516
|
+
export interface TransformedConsumerCreditFile {
|
|
517
|
+
accounts?: TransformedConsumerEnquiryAccount[];
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Transformed credit report of the consumer enquiries account
|
|
521
|
+
*/
|
|
522
|
+
export interface TransformedConsumerEnquiryAccount {
|
|
523
|
+
accountId: string;
|
|
524
|
+
/**
|
|
525
|
+
* Account type of the consumer enquiries that has been transformed to Lendi values
|
|
526
|
+
*/
|
|
527
|
+
accountType?: LendiConsumerAccountTypeList;
|
|
528
|
+
/**
|
|
529
|
+
* The repayment history of the consumer enquiries with its code has been transformed to
|
|
530
|
+
* Lendi values
|
|
531
|
+
*/
|
|
532
|
+
repaymentHistory?: TransformedConsumerEnquiryRepaymentHistory[];
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Account type of the consumer enquiries that has been transformed to Lendi values
|
|
536
|
+
*
|
|
537
|
+
* Account type of the consumer enquiries that has been transformed to Lendi values. Any
|
|
538
|
+
* value that can not be mapped to Lendi values will be set to UNKNOWN
|
|
539
|
+
*/
|
|
540
|
+
export declare enum LendiConsumerAccountTypeList {
|
|
541
|
+
BnplAccounts = "BNPL_ACCOUNTS",
|
|
542
|
+
CarLoans = "CAR_LOANS",
|
|
543
|
+
CreditChargeCards = "CREDIT_CHARGE_CARDS",
|
|
544
|
+
HomeLoans = "HOME_LOANS",
|
|
545
|
+
Leases = "LEASES",
|
|
546
|
+
Overdrafts = "OVERDRAFTS",
|
|
547
|
+
PersonalLoans = "PERSONAL_LOANS",
|
|
548
|
+
Unknown = "UNKNOWN"
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Transformed repayment history of the consumer enquiries account
|
|
552
|
+
*/
|
|
553
|
+
export interface TransformedConsumerEnquiryRepaymentHistory {
|
|
554
|
+
/**
|
|
555
|
+
* Repayment history code.
|
|
556
|
+
*/
|
|
557
|
+
code?: LendiRepaymentStatusCode;
|
|
558
|
+
/**
|
|
559
|
+
* Repayment history period.
|
|
560
|
+
*/
|
|
561
|
+
period?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Repayment history status.
|
|
564
|
+
*/
|
|
565
|
+
status?: RepaymentStatusList;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Repayment history code.
|
|
569
|
+
*
|
|
570
|
+
* Equifax Repayment history code in Lendi value
|
|
571
|
+
*/
|
|
572
|
+
export declare enum LendiRepaymentStatusCode {
|
|
573
|
+
Closed = "CLOSED",
|
|
574
|
+
NotApplicable = "NOT_APPLICABLE",
|
|
575
|
+
NotAssociated = "NOT_ASSOCIATED",
|
|
576
|
+
NotOverdue = "NOT_OVERDUE",
|
|
577
|
+
NotReported = "NOT_REPORTED",
|
|
578
|
+
OtherCase = "OTHER_CASE",
|
|
579
|
+
OverdueMorethan180Days = "OVERDUE_MORETHAN_180DAYS",
|
|
580
|
+
OverdueUpto119Days = "OVERDUE_UPTO_119DAYS",
|
|
581
|
+
OverdueUpto149Days = "OVERDUE_UPTO_149DAYS",
|
|
582
|
+
OverdueUpto179Days = "OVERDUE_UPTO_179DAYS",
|
|
583
|
+
OverdueUpto29Days = "OVERDUE_UPTO_29DAYS",
|
|
584
|
+
OverdueUpto59Days = "OVERDUE_UPTO_59DAYS",
|
|
585
|
+
OverdueUpto89Days = "OVERDUE_UPTO_89DAYS",
|
|
586
|
+
Pending = "PENDING",
|
|
587
|
+
Transferred = "TRANSFERRED"
|
|
588
|
+
}
|
|
589
|
+
export declare enum CreditReportRetrievedType {
|
|
34
590
|
CreditReportNoMatch = "CreditReportNoMatch",
|
|
35
591
|
CreditReportRetrieved = "CreditReportRetrieved"
|
|
36
592
|
}
|