@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,633 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"meta": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"description": "The metadata of the alieo",
|
|
7
|
+
"properties": {
|
|
8
|
+
"actionedBy": {
|
|
9
|
+
"description": "uuid of user who made the action (create/update/delete)",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"actionedByRole": {
|
|
13
|
+
"description": "role of the user that made the action",
|
|
14
|
+
"enum": ["team", "customer"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": ["actionedBy", "actionedByRole"]
|
|
18
|
+
},
|
|
19
|
+
"Ownership": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"applicantId": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "uuid"
|
|
25
|
+
},
|
|
26
|
+
"percent": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"description": "how much percent for the corresponding applicant",
|
|
29
|
+
"examples": [0.5]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"applicantOwnership": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"applicantId": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The applicant Identifier"
|
|
39
|
+
},
|
|
40
|
+
"customerId": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"percent": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "how much percent for the corresponding applicant",
|
|
46
|
+
"examples": [0.5]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["percent", "applicantId"]
|
|
50
|
+
},
|
|
51
|
+
"percentOwned": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"proportions": {
|
|
55
|
+
"enum": ["EQUAL", "SPECIFIED", "NOT_SPECIFIED"],
|
|
56
|
+
"description": "Indicate whether ownership proportions are equal, specified individually for each one or not specified."
|
|
57
|
+
},
|
|
58
|
+
"owners": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"$ref": "#/definitions/applicantOwnership"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"make": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "Make of the vehicle"
|
|
69
|
+
},
|
|
70
|
+
"model": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Model of the vehicle."
|
|
73
|
+
},
|
|
74
|
+
"year": {
|
|
75
|
+
"type": "number",
|
|
76
|
+
"description": "Year the vehicle was made."
|
|
77
|
+
},
|
|
78
|
+
"estimatedValue": {
|
|
79
|
+
"type": "number",
|
|
80
|
+
"description": "Estimated value of a given asset/liability."
|
|
81
|
+
},
|
|
82
|
+
"toBeUsedAsSecurity": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"toBePurchased": {
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"contractPriceAmount": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"description": "Price of contract."
|
|
91
|
+
},
|
|
92
|
+
"description": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Description of the entity."
|
|
95
|
+
},
|
|
96
|
+
"countries": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"example": "Australia",
|
|
99
|
+
"enum": [
|
|
100
|
+
"Afghanistan",
|
|
101
|
+
"Albania",
|
|
102
|
+
"Algeria",
|
|
103
|
+
"American Samoa",
|
|
104
|
+
"Andorra",
|
|
105
|
+
"Angola",
|
|
106
|
+
"Anguilla",
|
|
107
|
+
"Antarctica",
|
|
108
|
+
"Antigua And Barbuda",
|
|
109
|
+
"Argentina",
|
|
110
|
+
"Armenia",
|
|
111
|
+
"Aruba",
|
|
112
|
+
"Australia",
|
|
113
|
+
"Austria",
|
|
114
|
+
"Azerbaijan",
|
|
115
|
+
"Bahamas",
|
|
116
|
+
"Bahrain",
|
|
117
|
+
"Bangladesh",
|
|
118
|
+
"Barbados",
|
|
119
|
+
"Belarus",
|
|
120
|
+
"Belgium",
|
|
121
|
+
"Belize",
|
|
122
|
+
"Benin",
|
|
123
|
+
"Bermuda",
|
|
124
|
+
"Bhutan",
|
|
125
|
+
"Bolivia",
|
|
126
|
+
"Bosnia And Herzegovina",
|
|
127
|
+
"Botswana",
|
|
128
|
+
"Bouvet Island",
|
|
129
|
+
"Brazil",
|
|
130
|
+
"British Indian Ocean Territory",
|
|
131
|
+
"Brunei Darussalam",
|
|
132
|
+
"Bulgaria",
|
|
133
|
+
"Burkina Faso",
|
|
134
|
+
"Burundi",
|
|
135
|
+
"Cambodia",
|
|
136
|
+
"Cameroon",
|
|
137
|
+
"Canada",
|
|
138
|
+
"Cape Verde",
|
|
139
|
+
"Cayman Islands",
|
|
140
|
+
"Central African Republic",
|
|
141
|
+
"Chad",
|
|
142
|
+
"Chile",
|
|
143
|
+
"China",
|
|
144
|
+
"Christmas Island",
|
|
145
|
+
"Cocos (Keeling) Islands",
|
|
146
|
+
"Colombia",
|
|
147
|
+
"Comoros",
|
|
148
|
+
"Democratic People's Republic of Korea",
|
|
149
|
+
"Democratic Republic Of The Congo",
|
|
150
|
+
"Cook Islands",
|
|
151
|
+
"Costa Rica",
|
|
152
|
+
"Cote D'ivoire",
|
|
153
|
+
"Croatia",
|
|
154
|
+
"Cuba",
|
|
155
|
+
"Cyprus",
|
|
156
|
+
"Czech Republic",
|
|
157
|
+
"Denmark",
|
|
158
|
+
"Djibouti",
|
|
159
|
+
"Dominica",
|
|
160
|
+
"Dominican Republic",
|
|
161
|
+
"East Timor",
|
|
162
|
+
"Ecuador",
|
|
163
|
+
"Egypt",
|
|
164
|
+
"El Salvador",
|
|
165
|
+
"Equatorial Guinea",
|
|
166
|
+
"Eritrea",
|
|
167
|
+
"Estonia",
|
|
168
|
+
"Ethiopia",
|
|
169
|
+
"Falkland Islands",
|
|
170
|
+
"Faroe Islands",
|
|
171
|
+
"Fiji",
|
|
172
|
+
"Finland",
|
|
173
|
+
"France",
|
|
174
|
+
"French Guiana",
|
|
175
|
+
"French Polynesia",
|
|
176
|
+
"French Southern Territories",
|
|
177
|
+
"Gabon",
|
|
178
|
+
"Gambia",
|
|
179
|
+
"Georgia",
|
|
180
|
+
"Germany",
|
|
181
|
+
"Ghana",
|
|
182
|
+
"Gibraltar",
|
|
183
|
+
"Greece",
|
|
184
|
+
"Greenland",
|
|
185
|
+
"Grenada",
|
|
186
|
+
"Guadeloupe",
|
|
187
|
+
"Guam",
|
|
188
|
+
"Guatemala",
|
|
189
|
+
"Guinea",
|
|
190
|
+
"Guinea-bissau",
|
|
191
|
+
"Guyana",
|
|
192
|
+
"Haiti",
|
|
193
|
+
"Heard Island And Mcdonald Islands",
|
|
194
|
+
"Holy See (Vatican City State)",
|
|
195
|
+
"Honduras",
|
|
196
|
+
"Hong Kong",
|
|
197
|
+
"Hungary",
|
|
198
|
+
"Iceland",
|
|
199
|
+
"India",
|
|
200
|
+
"Indonesia",
|
|
201
|
+
"Iran",
|
|
202
|
+
"Iraq",
|
|
203
|
+
"Ireland",
|
|
204
|
+
"Israel",
|
|
205
|
+
"Italy",
|
|
206
|
+
"Jamaica",
|
|
207
|
+
"Japan",
|
|
208
|
+
"Jordan",
|
|
209
|
+
"Kazakstan",
|
|
210
|
+
"Kenya",
|
|
211
|
+
"Kiribati",
|
|
212
|
+
"Kosovo",
|
|
213
|
+
"Kuwait",
|
|
214
|
+
"Kyrgyzstan",
|
|
215
|
+
"Laos",
|
|
216
|
+
"Latvia",
|
|
217
|
+
"Lebanon",
|
|
218
|
+
"Lesotho",
|
|
219
|
+
"Liberia",
|
|
220
|
+
"Libyan Arab Jamahiriya",
|
|
221
|
+
"Liechtenstein",
|
|
222
|
+
"Lithuania",
|
|
223
|
+
"Luxembourg",
|
|
224
|
+
"Macau",
|
|
225
|
+
"Macedonia",
|
|
226
|
+
"Madagascar",
|
|
227
|
+
"Malawi",
|
|
228
|
+
"Malaysia",
|
|
229
|
+
"Maldives",
|
|
230
|
+
"Mali",
|
|
231
|
+
"Malta",
|
|
232
|
+
"Marshall Islands",
|
|
233
|
+
"Martinique",
|
|
234
|
+
"Mauritania",
|
|
235
|
+
"Mauritius",
|
|
236
|
+
"Mayotte",
|
|
237
|
+
"Mexico",
|
|
238
|
+
"Federated States Of Micronesia",
|
|
239
|
+
"Republic Of Moldova",
|
|
240
|
+
"Monaco",
|
|
241
|
+
"Mongolia",
|
|
242
|
+
"Montserrat",
|
|
243
|
+
"Montenegro",
|
|
244
|
+
"Morocco",
|
|
245
|
+
"Mozambique",
|
|
246
|
+
"Myanmar",
|
|
247
|
+
"Namibia",
|
|
248
|
+
"Nauru",
|
|
249
|
+
"Nepal",
|
|
250
|
+
"Netherlands",
|
|
251
|
+
"Netherlands Antilles",
|
|
252
|
+
"New Caledonia",
|
|
253
|
+
"New Zealand",
|
|
254
|
+
"Nicaragua",
|
|
255
|
+
"Niger",
|
|
256
|
+
"Nigeria",
|
|
257
|
+
"Niue",
|
|
258
|
+
"Norfolk Island",
|
|
259
|
+
"Northern Mariana Islands",
|
|
260
|
+
"Norway",
|
|
261
|
+
"Oman",
|
|
262
|
+
"Pakistan",
|
|
263
|
+
"Palau",
|
|
264
|
+
"Palestinian Territory",
|
|
265
|
+
"Panama",
|
|
266
|
+
"Papua New Guinea",
|
|
267
|
+
"Paraguay",
|
|
268
|
+
"Peru",
|
|
269
|
+
"Philippines",
|
|
270
|
+
"Pitcairn",
|
|
271
|
+
"Poland",
|
|
272
|
+
"Portugal",
|
|
273
|
+
"Puerto Rico",
|
|
274
|
+
"Qatar",
|
|
275
|
+
"Romania",
|
|
276
|
+
"Russian Federation",
|
|
277
|
+
"Rwanda",
|
|
278
|
+
"Saint Helena",
|
|
279
|
+
"Saint Kitts And Nevis",
|
|
280
|
+
"Saint Lucia",
|
|
281
|
+
"Saint Pierre And Miquelon",
|
|
282
|
+
"Saint Vincent And The Grenadines",
|
|
283
|
+
"Samoa",
|
|
284
|
+
"San Marino",
|
|
285
|
+
"Sao Tome And Principe",
|
|
286
|
+
"Saudi Arabia",
|
|
287
|
+
"Senegal",
|
|
288
|
+
"Serbia",
|
|
289
|
+
"Seychelles",
|
|
290
|
+
"Sierra Leone",
|
|
291
|
+
"Singapore",
|
|
292
|
+
"Slovakia",
|
|
293
|
+
"Slovenia",
|
|
294
|
+
"Solomon Islands",
|
|
295
|
+
"Somalia",
|
|
296
|
+
"South Africa",
|
|
297
|
+
"South Georgia And The South Sandwich Islands",
|
|
298
|
+
"The Republic of South Korea",
|
|
299
|
+
"Spain",
|
|
300
|
+
"Sri Lanka",
|
|
301
|
+
"Sudan",
|
|
302
|
+
"Suriname",
|
|
303
|
+
"Svalbard And Jan Mayen",
|
|
304
|
+
"Swaziland",
|
|
305
|
+
"Sweden",
|
|
306
|
+
"Switzerland",
|
|
307
|
+
"Syrian Arab Republic",
|
|
308
|
+
"Taiwan",
|
|
309
|
+
"Tajikistan",
|
|
310
|
+
"Tanzania",
|
|
311
|
+
"Thailand",
|
|
312
|
+
"Togo",
|
|
313
|
+
"Tokelau",
|
|
314
|
+
"Tonga",
|
|
315
|
+
"Trinidad And Tobago",
|
|
316
|
+
"Tunisia",
|
|
317
|
+
"Turkey",
|
|
318
|
+
"Turkmenistan",
|
|
319
|
+
"Turks And Caicos Islands",
|
|
320
|
+
"Tuvalu",
|
|
321
|
+
"Uganda",
|
|
322
|
+
"Ukraine",
|
|
323
|
+
"United Arab Emirates",
|
|
324
|
+
"United Kingdom",
|
|
325
|
+
"United States of America",
|
|
326
|
+
"United States Minor Outlying Islands",
|
|
327
|
+
"Uruguay",
|
|
328
|
+
"Uzbekistan",
|
|
329
|
+
"Vanuatu",
|
|
330
|
+
"Venezuela",
|
|
331
|
+
"Vietnam",
|
|
332
|
+
"British Virgin Islands",
|
|
333
|
+
"US Virgin Islands",
|
|
334
|
+
"Wallis And Futuna",
|
|
335
|
+
"Western Sahara",
|
|
336
|
+
"Yemen",
|
|
337
|
+
"Zambia",
|
|
338
|
+
"Zimbabwe"
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
"address": {
|
|
342
|
+
"type": "object",
|
|
343
|
+
"additionalProperties": false,
|
|
344
|
+
"properties": {
|
|
345
|
+
"city": {
|
|
346
|
+
"description": "The city / suburb name",
|
|
347
|
+
"type": "string",
|
|
348
|
+
"example": "Sydney"
|
|
349
|
+
},
|
|
350
|
+
"country": {
|
|
351
|
+
"$ref": "#/definitions/countries"
|
|
352
|
+
},
|
|
353
|
+
"formatted": {
|
|
354
|
+
"description": "A formatted version of the address",
|
|
355
|
+
"type": "string",
|
|
356
|
+
"example": "L 9, 50 Pitt St, Sydney, NSW 2000, Australia"
|
|
357
|
+
},
|
|
358
|
+
"postcode": {
|
|
359
|
+
"description": "N digit postcode (for AU addresses, usually 4)",
|
|
360
|
+
"type": "string",
|
|
361
|
+
"example": "2000"
|
|
362
|
+
},
|
|
363
|
+
"standard": {
|
|
364
|
+
"$ref": "#/definitions/addressStandard"
|
|
365
|
+
},
|
|
366
|
+
"state": {
|
|
367
|
+
"description": "The state name",
|
|
368
|
+
"type": "string"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"addressStandard": {
|
|
373
|
+
"type": "object",
|
|
374
|
+
"properties": {
|
|
375
|
+
"buildingName": {
|
|
376
|
+
"description": "The building name",
|
|
377
|
+
"type": "string",
|
|
378
|
+
"example": "Opera House"
|
|
379
|
+
},
|
|
380
|
+
"deliveryAddress": {
|
|
381
|
+
"description": "Postal address, usually a PO Box or Locked Bag",
|
|
382
|
+
"type": "string",
|
|
383
|
+
"example": "PO Box 1"
|
|
384
|
+
},
|
|
385
|
+
"level": {
|
|
386
|
+
"description": "The level of the unit/apartment",
|
|
387
|
+
"type": "string",
|
|
388
|
+
"example": "L 9"
|
|
389
|
+
},
|
|
390
|
+
"lotSection": {
|
|
391
|
+
"description": "The lot number",
|
|
392
|
+
"type": "string",
|
|
393
|
+
"example": "Lot 1"
|
|
394
|
+
},
|
|
395
|
+
"streetName": {
|
|
396
|
+
"description": "The street name",
|
|
397
|
+
"type": "string",
|
|
398
|
+
"example": "Pitt"
|
|
399
|
+
},
|
|
400
|
+
"streetNumber": {
|
|
401
|
+
"description": "The street number",
|
|
402
|
+
"type": "string",
|
|
403
|
+
"example": "50"
|
|
404
|
+
},
|
|
405
|
+
"streetSuffix": {
|
|
406
|
+
"description": "The street suffix",
|
|
407
|
+
"type": "string",
|
|
408
|
+
"example": "North"
|
|
409
|
+
},
|
|
410
|
+
"streetType": {
|
|
411
|
+
"description": "The type of the street i.e. road",
|
|
412
|
+
"type": "string",
|
|
413
|
+
"example": "St"
|
|
414
|
+
},
|
|
415
|
+
"unit": {
|
|
416
|
+
"description": "The unit number",
|
|
417
|
+
"type": "string",
|
|
418
|
+
"example": "U 1"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"primaryPurpose": {
|
|
423
|
+
"enum": ["INVESTMENT", "OWNER_OCCUPIED"]
|
|
424
|
+
},
|
|
425
|
+
"propertyStatus": {
|
|
426
|
+
"enum": ["ESTABLISHED", "NEW_BUILDING", "OFF_THE_PLAN", "VACANT_LAND"]
|
|
427
|
+
},
|
|
428
|
+
"zoneType": {
|
|
429
|
+
"enum": ["COMMERCIAL", "INDUSTRIAL", "RESIDENTIAL", "RURAL"]
|
|
430
|
+
},
|
|
431
|
+
"propertyType": {
|
|
432
|
+
"enum": [
|
|
433
|
+
"APARTMENT_UNIT_LESS_THAN_50M2",
|
|
434
|
+
"APARTMENT_UNIT_MORE_THAN_50M2",
|
|
435
|
+
"DUPLEX",
|
|
436
|
+
"FULLY_DETACHED_HOUSE",
|
|
437
|
+
"KIT_HOME",
|
|
438
|
+
"LAND",
|
|
439
|
+
"MULTI_DWELLING_SINGLE_TITLE",
|
|
440
|
+
"PROPERTY_OVER_10_HA",
|
|
441
|
+
"SEMI_DETACHED_HOUSE",
|
|
442
|
+
"SERVICED_APARTMENT",
|
|
443
|
+
"STUDENT_ACCOMMODATION",
|
|
444
|
+
"STUDIO",
|
|
445
|
+
"TERRACE",
|
|
446
|
+
"TOWNHOUSE",
|
|
447
|
+
"VILLA",
|
|
448
|
+
"WAREHOUSE_APARTMENT"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
"contractDetails": {
|
|
452
|
+
"type": "object",
|
|
453
|
+
"description": "Details of the purchase/sale price as specified in the Contract of Sale",
|
|
454
|
+
"properties": {
|
|
455
|
+
"contractDate": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"description": "The date of the Contract of Sale."
|
|
458
|
+
},
|
|
459
|
+
"estimatedSettlementDate": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"description": "The purchase date of the property, or the proposed settlement date for a property being purchased or sold"
|
|
462
|
+
},
|
|
463
|
+
"contractPriceAmount": {
|
|
464
|
+
"type": "number",
|
|
465
|
+
"description": "Captures the total purchase/sale price as specified in the Contract of Sale."
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"constructionDetails": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"buildPriceAmount": {
|
|
473
|
+
"type": "number"
|
|
474
|
+
},
|
|
475
|
+
"buildIn6Months": {
|
|
476
|
+
"description": "Indicates whether it should be coded as vacant land loan or a construction loan",
|
|
477
|
+
"type": "boolean"
|
|
478
|
+
},
|
|
479
|
+
"landEstimatedValue": {
|
|
480
|
+
"type": "number"
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"toBeSold": {
|
|
485
|
+
"type": "boolean"
|
|
486
|
+
},
|
|
487
|
+
"knockDownToRebuild": {
|
|
488
|
+
"description": "DEPRECATED",
|
|
489
|
+
"type": "boolean"
|
|
490
|
+
},
|
|
491
|
+
"financialInstitution": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"financialInstitutionShortName": {
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
497
|
+
"assetType": {
|
|
498
|
+
"enum": [
|
|
499
|
+
"GIFTS",
|
|
500
|
+
"HOME_CONTENTS",
|
|
501
|
+
"MANAGED_FUNDS",
|
|
502
|
+
"OTHER_ASSET",
|
|
503
|
+
"PROPERTY",
|
|
504
|
+
"SAVING_CHECK_ACCOUNT",
|
|
505
|
+
"SHARES",
|
|
506
|
+
"SUPERANNUATION",
|
|
507
|
+
"TERM_DEPOSIT",
|
|
508
|
+
"VEHICLE"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
"applicationId": {
|
|
512
|
+
"type": "string"
|
|
513
|
+
},
|
|
514
|
+
"asset": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"percentOwned": {
|
|
518
|
+
"$ref": "#/definitions/percentOwned"
|
|
519
|
+
},
|
|
520
|
+
"description": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"type": {
|
|
524
|
+
"$ref": "#/definitions/assetType"
|
|
525
|
+
},
|
|
526
|
+
"estimatedValue": {
|
|
527
|
+
"$ref": "#/definitions/estimatedValue"
|
|
528
|
+
},
|
|
529
|
+
"financialInstitution": {
|
|
530
|
+
"$ref": "#/definitions/financialInstitution"
|
|
531
|
+
},
|
|
532
|
+
"financialInstitutionShortName": {
|
|
533
|
+
"$ref": "#/definitions/financialInstitutionShortName"
|
|
534
|
+
},
|
|
535
|
+
"toBeSold": {
|
|
536
|
+
"$ref": "#/definitions/toBeSold"
|
|
537
|
+
},
|
|
538
|
+
"knockDownToRebuild": {
|
|
539
|
+
"$ref": "#/definitions/knockDownToRebuild"
|
|
540
|
+
},
|
|
541
|
+
"toBeUsedAsSecurity": {
|
|
542
|
+
"$ref": "#/definitions/toBeUsedAsSecurity"
|
|
543
|
+
},
|
|
544
|
+
"toBePurchased": {
|
|
545
|
+
"$ref": "#/definitions/toBePurchased"
|
|
546
|
+
},
|
|
547
|
+
"contractPriceAmount": {
|
|
548
|
+
"$ref": "#/definitions/contractPriceAmount"
|
|
549
|
+
},
|
|
550
|
+
"address": {
|
|
551
|
+
"$ref": "#/definitions/address"
|
|
552
|
+
},
|
|
553
|
+
"primaryPurpose": {
|
|
554
|
+
"$ref": "#/definitions/primaryPurpose"
|
|
555
|
+
},
|
|
556
|
+
"propertyStatus": {
|
|
557
|
+
"$ref": "#/definitions/propertyStatus"
|
|
558
|
+
},
|
|
559
|
+
"zoneType": {
|
|
560
|
+
"$ref": "#/definitions/zoneType"
|
|
561
|
+
},
|
|
562
|
+
"propertyType": {
|
|
563
|
+
"$ref": "#/definitions/propertyType"
|
|
564
|
+
},
|
|
565
|
+
"contractDetails": {
|
|
566
|
+
"$ref": "#/definitions/contractDetails"
|
|
567
|
+
},
|
|
568
|
+
"constructionDetails": {
|
|
569
|
+
"$ref": "#/definitions/constructionDetails"
|
|
570
|
+
},
|
|
571
|
+
"make": {
|
|
572
|
+
"$ref": "#/definitions/make"
|
|
573
|
+
},
|
|
574
|
+
"model": {
|
|
575
|
+
"$ref": "#/definitions/model"
|
|
576
|
+
},
|
|
577
|
+
"year": {
|
|
578
|
+
"$ref": "#/definitions/year"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"required": ["type"]
|
|
582
|
+
},
|
|
583
|
+
"australianStates": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"enum": ["QLD", "NSW", "VIC", "WA", "SA", "TAS", "ACT", "NT"]
|
|
586
|
+
},
|
|
587
|
+
"otherState": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"example": "Ohio"
|
|
590
|
+
},
|
|
591
|
+
"AssetDefinition": {
|
|
592
|
+
"type": "object",
|
|
593
|
+
"properties": {
|
|
594
|
+
"id": {
|
|
595
|
+
"type": "string",
|
|
596
|
+
"description": "uuid of asset"
|
|
597
|
+
},
|
|
598
|
+
"meta": {
|
|
599
|
+
"$ref": "#/definitions/meta"
|
|
600
|
+
},
|
|
601
|
+
"applicationId": {
|
|
602
|
+
"$ref": "#/definitions/applicationId"
|
|
603
|
+
},
|
|
604
|
+
"asset": {
|
|
605
|
+
"$ref": "#/definitions/asset"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"required": ["id", "applicationId", "asset"],
|
|
609
|
+
"description": "create/update Asset payload"
|
|
610
|
+
},
|
|
611
|
+
"Amount": {
|
|
612
|
+
"type": "number",
|
|
613
|
+
"example": 100000
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"type": "object",
|
|
617
|
+
"title": "The alieo asset event schema",
|
|
618
|
+
"description": "Create, update or delete",
|
|
619
|
+
"properties": {
|
|
620
|
+
"version": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"description": "schema version"
|
|
623
|
+
},
|
|
624
|
+
"type": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"enum": ["AssetCreated", "AssetUpdated"]
|
|
627
|
+
},
|
|
628
|
+
"payload": {
|
|
629
|
+
"$ref": "#/definitions/AssetDefinition"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"required": ["version", "payload", "type"]
|
|
633
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
"applicationId": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"deleteAssetAndLiabilityRelationDefinition": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"meta": {
|
|
30
|
+
"$ref": "#/definitions/meta"
|
|
31
|
+
},
|
|
32
|
+
"applicationId": {
|
|
33
|
+
"$ref": "#/definitions/applicationId"
|
|
34
|
+
},
|
|
35
|
+
"relation": {
|
|
36
|
+
"$ref": "#/definitions/relation"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["applicationId", "relation"],
|
|
40
|
+
"description": "delete Asset And Liability Relation payload"
|
|
41
|
+
},
|
|
42
|
+
"relation": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"assetId": {
|
|
46
|
+
"$ref": "#/definitions/id",
|
|
47
|
+
"description": "uuid of asset"
|
|
48
|
+
},
|
|
49
|
+
"liabilityId": {
|
|
50
|
+
"$ref": "#/definitions/id",
|
|
51
|
+
"description": "uuid of liability"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": ["assetId", "liabilityId"]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"type": "object",
|
|
58
|
+
"title": "The AssetAndLiabilityRelationDeleted event schema",
|
|
59
|
+
"description": "The AssetAndLiabilityRelationDeleted event schema",
|
|
60
|
+
"properties": {
|
|
61
|
+
"version": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "schema version"
|
|
64
|
+
},
|
|
65
|
+
"type": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["AssetAndLiabilityRelationDeleted"]
|
|
68
|
+
},
|
|
69
|
+
"payload": {
|
|
70
|
+
"$ref": "#/definitions/deleteAssetAndLiabilityRelationDefinition"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["version", "payload", "type"]
|
|
74
|
+
}
|