@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.
Files changed (31) hide show
  1. package/lib/schemas/credit-report-retrieved-event.json +828 -10
  2. package/lib/schemas/public-required-document-event.json +1 -2
  3. package/lib/transform-events/generate-asset-liability-link.js +1 -2
  4. package/lib/transform-events/generate-credit-report-rebuilt.d.ts +1 -1
  5. package/lib/transform-events/generate-credit-report-rebuilt.js +1 -2
  6. package/lib/transform-events/transform-applicant.js +2 -2
  7. package/lib/transform-events/transform-application-workflow.js +1 -2
  8. package/lib/transform-events/transform-application.js +1 -2
  9. package/lib/transform-events/transform-asset-address.js +4 -4
  10. package/lib/transform-events/transform-asset.js +8 -8
  11. package/lib/transform-events/transform-bcm-status-updated.js +1 -2
  12. package/lib/transform-events/transform-employment.js +1 -2
  13. package/lib/transform-events/transform-expenses.js +6 -6
  14. package/lib/transform-events/transform-funding-position.js +2 -3
  15. package/lib/transform-events/transform-income.js +6 -6
  16. package/lib/transform-events/transform-liability.js +1 -2
  17. package/lib/transform-events/transform-percent-owned.js +1 -2
  18. package/lib/types/events/credit-report-retrieved.d.ts +561 -5
  19. package/lib/types/events/credit-report-retrieved.js +297 -6
  20. package/lib/types/events/public-required-document.d.ts +1 -7
  21. package/lib/types/events/public-required-document.js +1 -8
  22. package/lib/update-application/merge-application.js +1 -2
  23. package/lib/utils/address-tools.js +8 -8
  24. package/lib/utils/clean-up.js +1 -2
  25. package/lib/utils/generate-address.js +3 -3
  26. package/lib/utils/get-financial-institution.js +1 -2
  27. package/lib/utils/is-asset-type.js +4 -5
  28. package/lib/utils/is-income-type.js +9 -9
  29. package/lib/utils/normalise-date.js +1 -2
  30. package/lib/utils/round-decimal.js +1 -2
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "payload": {
@@ -38,20 +38,838 @@
38
38
  "type": "string",
39
39
  "format": "date-time",
40
40
  "example": ["2020-11-03T03:43:33.333Z"]
41
+ }
42
+ },
43
+ "required": ["applicationId", "applicantId", "customerId", "source"]
44
+ },
45
+ {
46
+ "oneOf": [
47
+ {
48
+ "$ref": "#/definitions/Response"
41
49
  },
42
- "raw": {
43
- "description": "Credit report raw content, compressed and 64-base encoded.",
44
- "type": "string"
50
+ {
51
+ "$ref": "#/definitions/ResponseError"
45
52
  },
46
- "isNoMatch": {
47
- "description": "Indicate whether there is a match found or not for the customer.",
48
- "type": "boolean",
49
- "default": false
53
+ {
54
+ "$ref": "#/definitions/ResponseDeidentified"
55
+ },
56
+ {
57
+ "$ref": "#/definitions/ValidationErrors"
50
58
  }
51
- },
52
- "required": ["applicationId", "applicantId", "customerId", "source", "raw"]
59
+ ]
53
60
  }
54
61
  ]
62
+ },
63
+ "Address": {
64
+ "type": "object",
65
+ "properties": {
66
+ "unitNumber": {
67
+ "type": "string"
68
+ },
69
+ "streetNumber": {
70
+ "type": "string"
71
+ },
72
+ "streetName": {
73
+ "type": "string"
74
+ },
75
+ "streetType": {
76
+ "type": "string"
77
+ },
78
+ "suburb": {
79
+ "type": "string"
80
+ },
81
+ "state": {
82
+ "type": "string"
83
+ },
84
+ "postcode": {
85
+ "type": "string"
86
+ },
87
+ "countryCode": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "required": ["suburb", "state", "countryCode"]
92
+ },
93
+ "Amount": {
94
+ "type": "object",
95
+ "properties": {
96
+ "currencyCode": {
97
+ "type": "string"
98
+ },
99
+ "value": {
100
+ "type": "number"
101
+ }
102
+ },
103
+ "required": ["currencyCode", "value"]
104
+ },
105
+ "CommercialAccountType": {
106
+ "type": "string",
107
+ "enum": [
108
+ "Bridging Finance",
109
+ "Bill of Sale",
110
+ "Cash on Delivery",
111
+ "Cheque",
112
+ "Credit Card",
113
+ "Commercial Rental",
114
+ "Dealership",
115
+ "Deferred Payment Debit Card",
116
+ "Director's Access",
117
+ "Factored Account",
118
+ "Hire Purchase",
119
+ "Leasing",
120
+ "Lending Proposal",
121
+ "Bank Overdraft",
122
+ "Premium Finance",
123
+ "Personal Loan",
124
+ "Real Estate Mortgage",
125
+ "Search Request",
126
+ "Trade Finance",
127
+ "Telecommunication services",
128
+ "Telecommunication Services",
129
+ "Utilities",
130
+ "Wholesale Finance",
131
+ "7-Day Account",
132
+ "30-Day Account",
133
+ "60-Day Account",
134
+ "90-Day Account"
135
+ ]
136
+ },
137
+ "Account": {
138
+ "type": "object",
139
+ "properties": {
140
+ "accountId": {
141
+ "type": "string"
142
+ },
143
+ "originalCreditProvider": {
144
+ "type": "string"
145
+ },
146
+ "latestCreditProvider": {
147
+ "type": "string"
148
+ },
149
+ "accountType": {
150
+ "anyOf": [
151
+ {
152
+ "$ref": "#/definitions/CommercialAccountType"
153
+ },
154
+ {
155
+ "$ref": "#/definitions/ConsumerAccountTypeList"
156
+ }
157
+ ]
158
+ },
159
+ "accountOpeningDate": {
160
+ "$ref": "#/definitions/DateType"
161
+ },
162
+ "loanPaymentMethod": {
163
+ "$ref": "#/definitions/LoanPaymentMethodCodeList"
164
+ },
165
+ "loanTermType": {
166
+ "type": "string"
167
+ },
168
+ "loanTerm": {
169
+ "type": "string"
170
+ },
171
+ "maximumCreditAmount": {
172
+ "type": "string"
173
+ },
174
+ "repaymentHistory": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "#/definitions/Repayment"
178
+ }
179
+ },
180
+ "paymentDefaults": {
181
+ "type": "array",
182
+ "items": {
183
+ "$ref": "#/definitions/PaymentDefault"
184
+ }
185
+ },
186
+ "resolvedFinancialInstitution": {
187
+ "description": "Financial institution short name. If no matching financial institution is found in credit report service, attribute will not be present",
188
+ "type": "string"
189
+ }
190
+ },
191
+ "required": ["accountId", "originalCreditProvider", "latestCreditProvider"]
192
+ },
193
+ "ConsumerCreditEnquiry": {
194
+ "type": "object",
195
+ "properties": {
196
+ "accountType": {
197
+ "$ref": "#/definitions/ConsumerAccountTypeList"
198
+ },
199
+ "creditEnquirer": {
200
+ "type": "string"
201
+ },
202
+ "amount": {
203
+ "$ref": "#/definitions/Amount"
204
+ },
205
+ "enquiryDate": {
206
+ "$ref": "#/definitions/DateType"
207
+ }
208
+ },
209
+ "required": ["accountType", "creditEnquirer", "amount", "enquiryDate"]
210
+ },
211
+ "CommercialCreditEnquiry": {
212
+ "type": "object",
213
+ "properties": {
214
+ "accountType": {
215
+ "$ref": "#/definitions/CommercialAccountType"
216
+ },
217
+ "creditEnquirer": {
218
+ "type": "string"
219
+ },
220
+ "amount": {
221
+ "$ref": "#/definitions/Amount"
222
+ },
223
+ "enquiryDate": {
224
+ "$ref": "#/definitions/DateType"
225
+ }
226
+ },
227
+ "required": ["accountType", "creditEnquirer", "amount", "enquiryDate"]
228
+ },
229
+ "CommercialCreditFile": {
230
+ "type": "object",
231
+ "properties": {
232
+ "fileNotes": {
233
+ "type": "array",
234
+ "items": {
235
+ "$ref": "#/definitions/FileNote"
236
+ }
237
+ },
238
+ "creditEnquiries": {
239
+ "type": "array",
240
+ "items": {
241
+ "$ref": "#/definitions/CommercialCreditEnquiry"
242
+ }
243
+ },
244
+ "accounts": {
245
+ "type": "array",
246
+ "items": {
247
+ "$ref": "#/definitions/Account"
248
+ }
249
+ }
250
+ },
251
+ "required": []
252
+ },
253
+ "ConsumerCreditFile": {
254
+ "type": "object",
255
+ "properties": {
256
+ "accounts": {
257
+ "type": "array",
258
+ "items": {
259
+ "$ref": "#/definitions/Account"
260
+ }
261
+ },
262
+ "creditEnquiries": {
263
+ "type": "array",
264
+ "items": {
265
+ "$ref": "#/definitions/ConsumerCreditEnquiry"
266
+ }
267
+ }
268
+ },
269
+ "required": []
270
+ },
271
+ "LoanPaymentMethodCodeList": {
272
+ "type": "string",
273
+ "enum": ["Interest only", "Not Applicable", "Principal and Interest Full", "Principal and Interest Partial"]
274
+ },
275
+ "ConsumerAccountTypeList": {
276
+ "type": "string",
277
+ "enum": [
278
+ "All Other Account Types",
279
+ "Auto Loan",
280
+ "Buy Now Pay Later Facility",
281
+ "Buy Now Pay Later Transaction",
282
+ "Charge Card",
283
+ "Continuing Credit Contract",
284
+ "Credit Card",
285
+ "Equipment Hire or Rental",
286
+ "Overdraft",
287
+ "Personal Loan Fixed Term",
288
+ "Personal Loan Revolving",
289
+ "Real Property Mortgage",
290
+ "Telecommunications Services",
291
+ "Utilities"
292
+ ]
293
+ },
294
+ "LendiConsumerAccountTypeList": {
295
+ "description": "Account type of the consumer enquiries that has been transformed to Lendi values. Any value that can not be mapped to Lendi values will be set to UNKNOWN",
296
+ "type": "string",
297
+ "enum": [
298
+ "UNKNOWN",
299
+ "HOME_LOANS",
300
+ "PERSONAL_LOANS",
301
+ "OVERDRAFTS",
302
+ "CREDIT_CHARGE_CARDS",
303
+ "CAR_LOANS",
304
+ "LEASES",
305
+ "BNPL_ACCOUNTS"
306
+ ]
307
+ },
308
+ "LendiRepaymentStatusCode": {
309
+ "description": "Equifax Repayment history code in Lendi value",
310
+ "type": "string",
311
+ "enum": [
312
+ "NOT_OVERDUE",
313
+ "OVERDUE_UPTO_29DAYS",
314
+ "OVERDUE_UPTO_59DAYS",
315
+ "OVERDUE_UPTO_89DAYS",
316
+ "OVERDUE_UPTO_119DAYS",
317
+ "OVERDUE_UPTO_149DAYS",
318
+ "OVERDUE_UPTO_179DAYS",
319
+ "OVERDUE_MORETHAN_180DAYS",
320
+ "CLOSED",
321
+ "NOT_REPORTED",
322
+ "NOT_ASSOCIATED",
323
+ "PENDING",
324
+ "TRANSFERRED",
325
+ "OTHER_CASE",
326
+ "NOT_APPLICABLE"
327
+ ]
328
+ },
329
+ "CourtAction": {
330
+ "type": "object",
331
+ "properties": {
332
+ "courtActionType": {
333
+ "description": "Includes information about default judgements and other court actions (such as writs and summons)",
334
+ "type": "string",
335
+ "enum": ["defaultJudgement", "otherCourtAction"]
336
+ },
337
+ "idReference": {
338
+ "description": "Reference to associate the source of this information to the identity defined by identity index.",
339
+ "type": "string"
340
+ },
341
+ "status": {
342
+ "description": "Status of the court action.",
343
+ "type": "string",
344
+ "enum": ["Disconnected", "Paid", "Settled"]
345
+ },
346
+ "actionDate": {
347
+ "description": "The date when a court judgement was signed or a writ, summons or claim was issued",
348
+ "$ref": "#/definitions/DateType"
349
+ },
350
+ "amount": {
351
+ "description": "Dollar amount of Court Action",
352
+ "$ref": "#/definitions/Amount"
353
+ }
354
+ },
355
+ "required": ["courtActionType", "idReference", "actionDate", "amount"]
356
+ },
357
+ "CreditFileType": {
358
+ "type": "string",
359
+ "enum": ["Consumer", "Commercial"]
360
+ },
361
+ "DefaultInstance": {
362
+ "type": "object",
363
+ "properties": {
364
+ "dateRecorded": {
365
+ "$ref": "#/definitions/DateType"
366
+ },
367
+ "amount": {
368
+ "$ref": "#/definitions/Amount"
369
+ }
370
+ },
371
+ "required": ["dateRecorded", "amount"]
372
+ },
373
+ "DateType": {
374
+ "type": "string",
375
+ "format": "date",
376
+ "examples": ["1990-01-01"]
377
+ },
378
+ "Directorship": {
379
+ "type": "object",
380
+ "properties": {
381
+ "type": {
382
+ "type": "string",
383
+ "description": "The type of Directorship",
384
+ "enum": ["Current", "Previous"]
385
+ },
386
+ "idReference": {
387
+ "type": "string"
388
+ },
389
+ "dateAppointed": {
390
+ "$ref": "#/definitions/DateType"
391
+ },
392
+ "dateCeased": {
393
+ "$ref": "#/definitions/DateType"
394
+ },
395
+ "organisationName": {
396
+ "type": "string"
397
+ },
398
+ "organisationType": {
399
+ "$ref": "#/definitions/OrganisationTypeList"
400
+ }
401
+ },
402
+ "required": ["idReference", "dateAppointed", "organisationName", "organisationType"]
403
+ },
404
+ "DisqualifiedDirectorships": {
405
+ "type": "object",
406
+ "properties": {
407
+ "idReference": {
408
+ "type": "string"
409
+ },
410
+ "dateDisqualified": {
411
+ "$ref": "#/definitions/DateType"
412
+ },
413
+ "dateDisqualifiedUntil": {
414
+ "$ref": "#/definitions/DateType"
415
+ }
416
+ },
417
+ "required": ["idReference", "dateDisqualified", "dateDisqualifiedUntil"]
418
+ },
419
+ "FileNote": {
420
+ "type": "object",
421
+ "properties": {
422
+ "dateRecorded": {
423
+ "$ref": "#/definitions/DateType"
424
+ },
425
+ "note": {
426
+ "type": "string"
427
+ }
428
+ },
429
+ "required": ["dateRecorded", "note"]
430
+ },
431
+ "Insolvency": {
432
+ "type": "object",
433
+ "properties": {
434
+ "idReference": {
435
+ "type": "string"
436
+ },
437
+ "insolvencyType": {
438
+ "$ref": "#/definitions/InsolvencyTypeList"
439
+ },
440
+ "dateDeclared": {
441
+ "$ref": "#/definitions/DateType"
442
+ },
443
+ "status": {
444
+ "$ref": "#/definitions/InsolvencyStatus"
445
+ },
446
+ "statusDate": {
447
+ "$ref": "#/definitions/DateType"
448
+ }
449
+ },
450
+ "required": ["idReference", "dateDeclared"]
451
+ },
452
+ "InsolvencyStatus": {
453
+ "type": "string",
454
+ "enum": ["Discharged", "Completed", "Terminated"]
455
+ },
456
+ "InsolvencyTypeList": {
457
+ "type": "string",
458
+ "enum": [
459
+ "Assignment or Arrangement",
460
+ "Bankruptcy",
461
+ "Bankruptcy Sequestration Order Arrangement",
462
+ "Composition",
463
+ "Debt Agreement",
464
+ "Personal Insolvency Agreement"
465
+ ]
466
+ },
467
+ "MatchType": {
468
+ "type": "string",
469
+ "enum": ["Other Identity", "Primary Match", "Possible Match"]
470
+ },
471
+ "PossibleMatch": {
472
+ "type": "object",
473
+ "properties": {
474
+ "person": {
475
+ "$ref": "#/definitions/Person"
476
+ },
477
+ "address": {
478
+ "$ref": "#/definitions/Address"
479
+ },
480
+ "employerName": {
481
+ "type": "string"
482
+ }
483
+ },
484
+ "required": ["person", "address"]
485
+ },
486
+ "OrganisationTypeList": {
487
+ "type": "string",
488
+ "enum": [
489
+ "Proprietary",
490
+ "Proprietary Limited",
491
+ "Proprietary Limited No Liability",
492
+ "Incorporated",
493
+ "Limited Liability Registered Body"
494
+ ]
495
+ },
496
+ "Person": {
497
+ "type": "object",
498
+ "properties": {
499
+ "bureauReference": {
500
+ "type": "string"
501
+ },
502
+ "dateOfBirth": {
503
+ "$ref": "#/definitions/DateType"
504
+ },
505
+ "driversLicense": {
506
+ "type": "string"
507
+ },
508
+ "firstName": {
509
+ "type": "string"
510
+ },
511
+ "gender": {
512
+ "type": "string"
513
+ },
514
+ "idIndex": {
515
+ "description": "An identifier appended to each known identity of the individual.",
516
+ "type": "string"
517
+ },
518
+ "lastName": {
519
+ "type": "string"
520
+ },
521
+ "middleName": {
522
+ "type": "string"
523
+ },
524
+ "primaryMatchType": {
525
+ "type": "string",
526
+ "enum": ["Strong", "Create"],
527
+ "description": "Strong - credit report is found, and a record exists in the credit provider's database; Create - credit report is found, no record exists in the credit provider's database, a new record is added."
528
+ },
529
+ "title": {
530
+ "type": "string"
531
+ }
532
+ },
533
+ "required": ["firstName", "lastName"]
534
+ },
535
+ "Repayment": {
536
+ "type": "object",
537
+ "properties": {
538
+ "period": {
539
+ "description": "Repayment history period.",
540
+ "type": "string"
541
+ },
542
+ "status": {
543
+ "description": "Repayment history status.",
544
+ "$ref": "#/definitions/RepaymentStatusList"
545
+ },
546
+ "code": {
547
+ "description": "Repayment history code.",
548
+ "$ref": "#/definitions/RepaymentStatusCode"
549
+ }
550
+ },
551
+ "required": ["period", "status"]
552
+ },
553
+ "RepaymentStatusList": {
554
+ "type": "string",
555
+ "enum": [
556
+ "Closed",
557
+ "Not Associated",
558
+ "Not Reported",
559
+ "Not Overdue",
560
+ "Overdue Upto 29 Days",
561
+ "Overdue Upto 59 Days",
562
+ "Overdue Upto 89 Days",
563
+ "Overdue Upto 119 Days",
564
+ "Overdue Upto 149 Days",
565
+ "Overdue Upto 179 Days",
566
+ "Overdue Over 179 Days",
567
+ "Pending",
568
+ "Transferred"
569
+ ]
570
+ },
571
+ "RepaymentStatusCode": {
572
+ "type": "string",
573
+ "enum": ["0", "1", "2", "3", "4", "5", "6", "A", "C", "O", "P", "R", "T", "X", "-991", "-992", "-993"]
574
+ },
575
+ "PaymentDefaultStatusList": {
576
+ "type": "string",
577
+ "enum": ["Outstanding", "Current", "Disputed", "New Arrangement", "Paid", "Settled", "New Arrangement Varied"]
578
+ },
579
+ "PaymentDefault": {
580
+ "type": "object",
581
+ "properties": {
582
+ "statusCode": {
583
+ "$ref": "#/definitions/PaymentDefaultStatusList"
584
+ },
585
+ "statusDate": {
586
+ "$ref": "#/definitions/DateType"
587
+ },
588
+ "current": {
589
+ "$ref": "#/definitions/DefaultInstance"
590
+ },
591
+ "original": {
592
+ "$ref": "#/definitions/DefaultInstance"
593
+ }
594
+ },
595
+ "required": ["statusCode"]
596
+ },
597
+ "PrimaryMatch": {
598
+ "type": "object",
599
+ "properties": {
600
+ "person": {
601
+ "$ref": "#/definitions/Person"
602
+ },
603
+ "address": {
604
+ "$ref": "#/definitions/Address"
605
+ },
606
+ "otherIdentities": {
607
+ "type": "array",
608
+ "items": {
609
+ "$ref": "#/definitions/Person"
610
+ }
611
+ }
612
+ },
613
+ "required": ["person", "address"]
614
+ },
615
+ "SummaryDataPoint": {
616
+ "type": "object",
617
+ "properties": {
618
+ "dataLevel": {
619
+ "type": "string",
620
+ "description": "Indicates the data level type of the characteristic. A characteristic can be derived based on Negative, Partial or Comprehensive ",
621
+ "enum": ["Negative", "Partial", "Comprehensive"]
622
+ },
623
+ "value": {
624
+ "type": ["number", "string"],
625
+ "description": "A number will have type 'number' if valid, otherwise 'string'. Default value is 0"
626
+ },
627
+ "type": {
628
+ "type": "string",
629
+ "enum": [
630
+ "ageOfCreditFileInMths",
631
+ "openedAccounts",
632
+ "numOpenCreditCardAccounts",
633
+ "numOpenPersonalLoanAccounts",
634
+ "numOpenMortgageAccounts",
635
+ "numOpenRentalAccounts",
636
+ "numOpenOverdraftAccounts",
637
+ "numOpenChargeCardAccounts",
638
+ "numConsumerEnquiriesInLast12Months",
639
+ "numBankruptOnlyInsolvenciesOnFile",
640
+ "numJudgementsInLast60Months",
641
+ "numUnpaidOrUnsettledJudgementsInLast60Months",
642
+ "numCourtWritsInLast60Months",
643
+ "numUnpaidOrUnsettledCourtWritsInLast60Months",
644
+ "numOpenAutoAccounts",
645
+ "closedAccounts",
646
+ "creditEnquiriesInLast5Years",
647
+ "currentDirectorships",
648
+ "previousDirectorships",
649
+ "insolvenciesAndActions",
650
+ "defaultsLast6Months",
651
+ "defaultsLast12Months",
652
+ "defaultsLast5To7Years",
653
+ "worstOpenAccountStatus",
654
+ "worstClosedInLast24Months",
655
+ "worstOpenInLast12Months",
656
+ "worstOpenInLast24Months",
657
+ "consumerAdverseFlagOnFileInLast48Or84Months",
658
+ "commercialAdverseFlagOnFileInLast48Or84Months",
659
+ "financialHardshipIndicatorsInLast12Months",
660
+ "numberOfCommercialDisqualifiedDirectorshipsInLast60Months"
661
+ ]
662
+ }
663
+ },
664
+ "required": ["type", "value"]
665
+ },
666
+ "CreditReport": {
667
+ "type": "object",
668
+ "description": "The raw credit report data from the service provider that has been transformed to json",
669
+ "properties": {
670
+ "commercialEnquiries": {
671
+ "$ref": "#/definitions/CommercialCreditFile"
672
+ },
673
+ "consumerEnquiries": {
674
+ "$ref": "#/definitions/ConsumerCreditFile"
675
+ },
676
+ "courtActions": {
677
+ "type": "array",
678
+ "items": {
679
+ "$ref": "#/definitions/CourtAction"
680
+ }
681
+ },
682
+ "directorships": {
683
+ "type": "array",
684
+ "items": {
685
+ "$ref": "#/definitions/Directorship"
686
+ }
687
+ },
688
+ "disqualifiedDirectorships": {
689
+ "type": "array",
690
+ "items": {
691
+ "$ref": "#/definitions/DisqualifiedDirectorships"
692
+ }
693
+ },
694
+ "enquiryId": {
695
+ "description": "The enquiry id from the service provider.",
696
+ "type": "string"
697
+ },
698
+ "insolvencies": {
699
+ "type": "array",
700
+ "items": {
701
+ "$ref": "#/definitions/Insolvency"
702
+ }
703
+ },
704
+ "possibleMatch": {
705
+ "$ref": "#/definitions/PossibleMatch"
706
+ },
707
+ "possibleMatchReference": {
708
+ "type": "string"
709
+ },
710
+ "primaryBureauReference": {
711
+ "description": "A unique identifier for that individual, used if the individual can be explicitly identified",
712
+ "type": "string"
713
+ },
714
+ "primaryMatch": {
715
+ "$ref": "#/definitions/PrimaryMatch"
716
+ },
717
+ "scoreMasterScale": {
718
+ "description": "An overall score value.",
719
+ "type": "number"
720
+ },
721
+ "summary": {
722
+ "type": "array",
723
+ "items": {
724
+ "$ref": "#/definitions/SummaryDataPoint"
725
+ }
726
+ },
727
+ "lastRequestedAt": {
728
+ "type": "string"
729
+ },
730
+ "numberOfIdentities": {
731
+ "type": "number",
732
+ "description": "Number of identities of a person with Credit Bureau (Primary Match + Other Identities count)"
733
+ },
734
+ "creditEnquiriesLast5Years": {
735
+ "type": "number",
736
+ "description": "Number of Credit Enquiries "
737
+ }
738
+ },
739
+ "required": ["enquiryId", "scoreMasterScale", "numberOfIdentities"]
740
+ },
741
+ "TransformedConsumerEnquiryRepaymentHistory": {
742
+ "description": "Transformed repayment history of the consumer enquiries account",
743
+ "type": "object",
744
+ "properties": {
745
+ "period": {
746
+ "description": "Repayment history period.",
747
+ "type": "string"
748
+ },
749
+ "status": {
750
+ "description": "Repayment history status.",
751
+ "$ref": "#/definitions/RepaymentStatusList"
752
+ },
753
+ "code": {
754
+ "description": "Repayment history code.",
755
+ "$ref": "#/definitions/LendiRepaymentStatusCode"
756
+ }
757
+ }
758
+ },
759
+ "TransformedConsumerEnquiryAccount": {
760
+ "description": "Transformed credit report of the consumer enquiries account",
761
+ "type": "object",
762
+ "required": ["accountId"],
763
+ "properties": {
764
+ "accountId": {
765
+ "type": "string"
766
+ },
767
+ "accountType": {
768
+ "description": "Account type of the consumer enquiries that has been transformed to Lendi values",
769
+ "$ref": "#/definitions/LendiConsumerAccountTypeList"
770
+ },
771
+ "repaymentHistory": {
772
+ "description": "The repayment history of the consumer enquiries with its code has been transformed to Lendi values",
773
+ "type": "array",
774
+ "items": {
775
+ "$ref": "#/definitions/TransformedConsumerEnquiryRepaymentHistory"
776
+ }
777
+ }
778
+ }
779
+ },
780
+ "TransformedConsumerCreditFile": {
781
+ "description": "Transformed credit report of the consumer enquiries",
782
+ "type": "object",
783
+ "properties": {
784
+ "accounts": {
785
+ "type": "array",
786
+ "items": {
787
+ "$ref": "#/definitions/TransformedConsumerEnquiryAccount"
788
+ }
789
+ }
790
+ },
791
+ "required": []
792
+ },
793
+ "TransformedCreditReport": {
794
+ "type": "object",
795
+ "description": "Transformed credit report object",
796
+ "properties": {
797
+ "consumerEnquiries": {
798
+ "$ref": "#/definitions/TransformedConsumerCreditFile"
799
+ }
800
+ }
801
+ },
802
+ "Response": {
803
+ "type": "object",
804
+ "properties": {
805
+ "raw": {
806
+ "description": "Credit report raw content, compressed and 64-base encoded.",
807
+ "type": "string"
808
+ },
809
+ "transformedJson": {
810
+ "description": "The transformed credit report from the raw content. All enumerated fields are mapped to their corresponding internal Lendi values while preserving the original values wherever possible. This is a work in progress; additional fields can be added as needed.",
811
+ "$ref": "#/definitions/TransformedCreditReport"
812
+ },
813
+ "json": {
814
+ "description": "Transformed credit report in json format from the raw content. This field is deprecated and will be removed in the future. Consider to use field transformedJson instead.",
815
+ "deprecated": true,
816
+ "$ref": "#/definitions/CreditReport"
817
+ },
818
+ "isNoMatch": {
819
+ "description": "Indicate whether there is a match found or not for the customer.",
820
+ "type": "boolean",
821
+ "default": false
822
+ }
823
+ },
824
+ "required": ["raw", "json"]
825
+ },
826
+ "ResponseError": {
827
+ "type": "object",
828
+ "properties": {
829
+ "message": {
830
+ "type": "string"
831
+ },
832
+ "isNoMatch": {
833
+ "type": "boolean"
834
+ }
835
+ },
836
+ "required": ["message"]
837
+ },
838
+ "ResponseDeidentified": {
839
+ "type": "object",
840
+ "properties": {
841
+ "isDeidentified": {
842
+ "type": "boolean"
843
+ }
844
+ },
845
+ "required": ["isDeidentified"]
846
+ },
847
+ "ValidationErrors": {
848
+ "type": "object",
849
+ "properties": {
850
+ "errors": {
851
+ "type": "array",
852
+ "items": {
853
+ "$ref": "#/definitions/ValidationError"
854
+ }
855
+ }
856
+ },
857
+ "required": ["errors"]
858
+ },
859
+ "ValidationError": {
860
+ "type": "object",
861
+ "properties": {
862
+ "path": {
863
+ "type": "array",
864
+ "items": {
865
+ "type": "string"
866
+ }
867
+ },
868
+ "message": {
869
+ "description": "Validation error message",
870
+ "type": "string"
871
+ }
872
+ }
55
873
  }
56
874
  }
57
875
  }