@lendi/integrations-transform 1.0.7 → 1.1.1
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/index.d.ts +7 -0
- package/lib/index.js +20 -0
- package/lib/logger.d.ts +2 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +652 -0
- package/lib/schemas/public-application-event.json +224 -0
- package/lib/schemas/public-asset-event.json +633 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +610 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +302 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +132 -0
- package/lib/schemas/public-funding-position-event.json +289 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +234 -0
- package/lib/schemas/public-required-document-event.json +98 -0
- package/lib/schemas/public-update-applicant-event.json +607 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +8 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-asset.d.ts +17 -0
- package/lib/transform-events/generate-asset.js +178 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/generate-employment.d.ts +8 -0
- package/lib/transform-events/generate-employment.js +106 -0
- package/lib/transform-events/generate-funding-position.d.ts +18 -0
- package/lib/transform-events/generate-funding-position.js +82 -0
- package/lib/transform-events/generate-income.d.ts +37 -0
- package/lib/transform-events/generate-income.js +254 -0
- package/lib/transform-events/generate-liability.d.ts +8 -0
- package/lib/transform-events/generate-liability.js +87 -0
- package/lib/transform-events/generate-lixi-percentowned.d.ts +9 -0
- package/lib/transform-events/generate-lixi-percentowned.js +24 -0
- package/lib/transform-events/generate-opportunity.d.ts +8 -0
- package/lib/transform-events/generate-opportunity.js +32 -0
- package/lib/transform-events/generate-required-document.d.ts +8 -0
- package/lib/transform-events/generate-required-document.js +54 -0
- package/lib/transform-events/transform-applicant.d.ts +33 -0
- package/lib/transform-events/transform-applicant.js +189 -0
- package/lib/transform-events/transform-application.d.ts +8 -0
- package/lib/transform-events/transform-application.js +54 -0
- package/lib/transform-events/transform-expenses.d.ts +37 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +26 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +247 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +13 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +12 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +34 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +11 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +16 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +17 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +10 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +22 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +13 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +16 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +11 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +13 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +10 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +12 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +24 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +12 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +14 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +14 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +10 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +485 -0
- package/lib/types/events/public-applicant.js +343 -0
- package/lib/types/events/public-application.d.ts +145 -0
- package/lib/types/events/public-application.js +100 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +469 -0
- package/lib/types/events/public-asset.js +319 -0
- package/lib/types/events/public-employment.d.ts +190 -0
- package/lib/types/events/public-employment.js +69 -0
- package/lib/types/events/public-expense.d.ts +83 -0
- package/lib/types/events/public-expense.js +50 -0
- package/lib/types/events/public-funding-position.d.ts +226 -0
- package/lib/types/events/public-funding-position.js +7 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +133 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +99 -0
- package/lib/types/events/public-required-document.js +44 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/utils/address-tools.d.ts +69 -0
- package/lib/utils/address-tools.js +146 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +102 -0
- package/lib/utils/get-financial-institution.d.ts +7 -0
- package/lib/utils/get-financial-institution.js +16 -0
- package/lib/utils/is-income-type.d.ts +83 -0
- package/lib/utils/is-income-type.js +166 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +10 -7
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"id": {
|
|
4
|
+
"type": "string",
|
|
5
|
+
"format": "uuid"
|
|
6
|
+
},
|
|
7
|
+
"meta": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"description": "The metadata of the alieo",
|
|
11
|
+
"properties": {
|
|
12
|
+
"actionedBy": {
|
|
13
|
+
"description": "uuid of user who made the action (create/update/delete)",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"actionedByRole": {
|
|
17
|
+
"description": "role of the user that made the action",
|
|
18
|
+
"enum": ["team", "customer"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["actionedBy", "actionedByRole"]
|
|
22
|
+
},
|
|
23
|
+
"percentOwned": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"proportions": {
|
|
27
|
+
"enum": ["EQUAL", "SPECIFIED", "NOT_SPECIFIED"],
|
|
28
|
+
"description": "Indicate whether ownership proportions are equal, specified individually for each one or not specified."
|
|
29
|
+
},
|
|
30
|
+
"owners": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"$ref": "#/definitions/applicantOwnership"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["owners"]
|
|
38
|
+
},
|
|
39
|
+
"liabilityType": {
|
|
40
|
+
"description": "LEASE_OR_HIRE_FINANCE is deprecated.",
|
|
41
|
+
"enum": [
|
|
42
|
+
"CAR_LOAN",
|
|
43
|
+
"CREDIT_CARD",
|
|
44
|
+
"HELP_HECS_DEBT",
|
|
45
|
+
"HOME_LOAN",
|
|
46
|
+
"LEASE_OR_HIRE_FINANCE",
|
|
47
|
+
"LEASE",
|
|
48
|
+
"HIRE_PURCHASE",
|
|
49
|
+
"LINE_OF_CREDIT",
|
|
50
|
+
"OTHER",
|
|
51
|
+
"OVERDRAFT",
|
|
52
|
+
"PERSONAL_LOAN",
|
|
53
|
+
"SHORT_TERM_FINANCE",
|
|
54
|
+
"STORE_CARD",
|
|
55
|
+
"TAX_DEBT"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"outstandingBalance": {
|
|
59
|
+
"type": "number"
|
|
60
|
+
},
|
|
61
|
+
"financialInstitution": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"repaymentAmount": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"repaymentFrequency": {
|
|
68
|
+
"enum": ["FORTNIGHTLY", "MONTHLY", "WEEKLY", "YEARLY"]
|
|
69
|
+
},
|
|
70
|
+
"repaymentTypeDetails": {
|
|
71
|
+
"enum": ["INTEREST_ONLY", "PRINCIPAL_AND_INTEREST"]
|
|
72
|
+
},
|
|
73
|
+
"remainingTermDuration": {
|
|
74
|
+
"type": "number"
|
|
75
|
+
},
|
|
76
|
+
"description": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Description of the entity."
|
|
79
|
+
},
|
|
80
|
+
"interestOnlyDuration": {
|
|
81
|
+
"type": "number"
|
|
82
|
+
},
|
|
83
|
+
"annualInterestRate": {
|
|
84
|
+
"type": "number"
|
|
85
|
+
},
|
|
86
|
+
"clearingFromThisLoan": {
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"clearingFromOtherSource": {
|
|
90
|
+
"enum": ["PAYING_OUT", "REDUCING"]
|
|
91
|
+
},
|
|
92
|
+
"creditLimit": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
"newLimit": {
|
|
96
|
+
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"originalBalance": {
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"applicationId": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"balloonRepaymentAmount": {
|
|
105
|
+
"type": "number"
|
|
106
|
+
},
|
|
107
|
+
"interestOnlyRemainingTerm": {
|
|
108
|
+
"type": "number"
|
|
109
|
+
},
|
|
110
|
+
"interestType": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": ["FIXED_RATE", "VARIABLE"]
|
|
113
|
+
},
|
|
114
|
+
"applicantOwnership": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"applicantId": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "The applicant Identifier"
|
|
120
|
+
},
|
|
121
|
+
"customerId": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "uuid"
|
|
124
|
+
},
|
|
125
|
+
"percent": {
|
|
126
|
+
"type": "number",
|
|
127
|
+
"description": "how much percent for the corresponding applicant",
|
|
128
|
+
"examples": [0.5]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": ["percent", "applicantId"]
|
|
132
|
+
},
|
|
133
|
+
"liability": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"percentOwned": {
|
|
137
|
+
"$ref": "#/definitions/percentOwned"
|
|
138
|
+
},
|
|
139
|
+
"type": {
|
|
140
|
+
"$ref": "#/definitions/liabilityType"
|
|
141
|
+
},
|
|
142
|
+
"outstandingBalance": {
|
|
143
|
+
"$ref": "#/definitions/outstandingBalance"
|
|
144
|
+
},
|
|
145
|
+
"financialInstitution": {
|
|
146
|
+
"$ref": "#/definitions/financialInstitution"
|
|
147
|
+
},
|
|
148
|
+
"repaymentAmount": {
|
|
149
|
+
"$ref": "#/definitions/repaymentAmount"
|
|
150
|
+
},
|
|
151
|
+
"repaymentFrequency": {
|
|
152
|
+
"$ref": "#/definitions/repaymentFrequency"
|
|
153
|
+
},
|
|
154
|
+
"repaymentTypeDetails": {
|
|
155
|
+
"$ref": "#/definitions/repaymentTypeDetails"
|
|
156
|
+
},
|
|
157
|
+
"remainingTermDuration": {
|
|
158
|
+
"$ref": "#/definitions/remainingTermDuration"
|
|
159
|
+
},
|
|
160
|
+
"interestOnlyDuration": {
|
|
161
|
+
"$ref": "#/definitions/interestOnlyDuration"
|
|
162
|
+
},
|
|
163
|
+
"annualInterestRate": {
|
|
164
|
+
"$ref": "#/definitions/annualInterestRate"
|
|
165
|
+
},
|
|
166
|
+
"clearingFromThisLoan": {
|
|
167
|
+
"$ref": "#/definitions/clearingFromThisLoan"
|
|
168
|
+
},
|
|
169
|
+
"clearingFromOtherSource": {
|
|
170
|
+
"$ref": "#/definitions/clearingFromOtherSource"
|
|
171
|
+
},
|
|
172
|
+
"creditLimit": {
|
|
173
|
+
"$ref": "#/definitions/creditLimit"
|
|
174
|
+
},
|
|
175
|
+
"newLimit": {
|
|
176
|
+
"$ref": "#/definitions/newLimit"
|
|
177
|
+
},
|
|
178
|
+
"originalBalance": {
|
|
179
|
+
"$ref": "#/definitions/originalBalance"
|
|
180
|
+
},
|
|
181
|
+
"balloonRepaymentAmount": {
|
|
182
|
+
"$ref": "#/definitions/balloonRepaymentAmount"
|
|
183
|
+
},
|
|
184
|
+
"interestOnlyRemainingTerm": {
|
|
185
|
+
"$ref": "#/definitions/interestOnlyRemainingTerm"
|
|
186
|
+
},
|
|
187
|
+
"interestType": {
|
|
188
|
+
"$ref": "#/definitions/interestType"
|
|
189
|
+
},
|
|
190
|
+
"description": {
|
|
191
|
+
"$ref": "#/definitions/description"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": ["outstandingBalance", "percentOwned", "type"]
|
|
195
|
+
},
|
|
196
|
+
"LiabilityPayload": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"id": {
|
|
200
|
+
"$ref": "#/definitions/id",
|
|
201
|
+
"description": "uuid of liability"
|
|
202
|
+
},
|
|
203
|
+
"meta": {
|
|
204
|
+
"$ref": "#/definitions/meta"
|
|
205
|
+
},
|
|
206
|
+
"applicationId": {
|
|
207
|
+
"$ref": "#/definitions/applicationId"
|
|
208
|
+
},
|
|
209
|
+
"liability": {
|
|
210
|
+
"$ref": "#/definitions/liability"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"required": ["id", "applicationId", "liability"],
|
|
214
|
+
"description": "create / update liability payload"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"type": "object",
|
|
218
|
+
"title": "The liability event schema",
|
|
219
|
+
"description": "The liability event schema",
|
|
220
|
+
"properties": {
|
|
221
|
+
"version": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "schema version"
|
|
224
|
+
},
|
|
225
|
+
"type": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": ["LiabilityCreated", "LiabilityUpdated"]
|
|
228
|
+
},
|
|
229
|
+
"payload": {
|
|
230
|
+
"$ref": "#/definitions/LiabilityPayload"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": ["version", "payload", "type"]
|
|
234
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Required Document",
|
|
4
|
+
"description": "The Required Document event schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "schema version"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": ["RequiredDocumentCreated", "RequiredDocumentUpdated"]
|
|
14
|
+
},
|
|
15
|
+
"payload": {
|
|
16
|
+
"$ref": "#/definitions/payload"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["version", "type", "payload"],
|
|
20
|
+
"additionalProperties": true,
|
|
21
|
+
"definitions": {
|
|
22
|
+
"payload": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"id": {
|
|
26
|
+
"description": "Required Document ID",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"createdAt": {
|
|
30
|
+
"description": "Created at ISO date time",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "date-time"
|
|
33
|
+
},
|
|
34
|
+
"applicationId": {
|
|
35
|
+
"description": "Application ID",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"applicantId": {
|
|
39
|
+
"description": "Application ID",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"description": "Status",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": [
|
|
46
|
+
"pending_upload",
|
|
47
|
+
"pending_verification",
|
|
48
|
+
"failed_verification",
|
|
49
|
+
"expired",
|
|
50
|
+
"not_required",
|
|
51
|
+
"verified"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"eConsent": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"hasConsented": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "eConsent"
|
|
60
|
+
},
|
|
61
|
+
"consentedAt": {
|
|
62
|
+
"description": "Consented at ISO date time",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "date-time"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": ["hasConsented"]
|
|
68
|
+
},
|
|
69
|
+
"identification": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"gender": {
|
|
73
|
+
"description": "Gender (can be null if migrated from SF as they do not have this field)",
|
|
74
|
+
"type": ["string", "null"],
|
|
75
|
+
"enum": ["MALE", "FEMALE", null]
|
|
76
|
+
},
|
|
77
|
+
"idNumber": {
|
|
78
|
+
"description": "ID Number",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"idType": {
|
|
82
|
+
"description": "ID Type",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": ["australian_driver_license", "national_id_card", "passport"]
|
|
85
|
+
},
|
|
86
|
+
"idTitle": {
|
|
87
|
+
"description": "ID Title (can be null if migrated from SF as they do not have this field)",
|
|
88
|
+
"type": ["string", "null"],
|
|
89
|
+
"enum": ["DR", "MISS", "MR", "MRS", "MS", "OTHER", "UNKNOWN", null]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["idNumber", "idType"]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["id", "applicationId", "applicantId"]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|