Skip to content

Commit 9b0fd6a

Browse files
authored
Removal of the remaining trust related functionality (#94)
1 parent 76f97c9 commit 9b0fd6a

File tree

4 files changed

+28
-172
lines changed

4 files changed

+28
-172
lines changed

schemas/application/application.json

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
}
241241
}
242242
},
243-
"ApplicationRelationships": {
243+
"IndividualApplicationRelationships": {
244244
"allOf": [
245245
{
246246
"type": "object",
@@ -254,14 +254,37 @@
254254
"$ref": "../relationships.json#/components/schemas/DocumentsRelationship"
255255
},
256256
{
257-
"$ref": "../relationships.json#/components/schemas/TrusteesRelationship"
257+
"$ref": "../relationships.json#/components/schemas/OrgRelationship"
258258
},
259259
{
260-
"$ref": "../relationships.json#/components/schemas/BeneficiariesRelationship"
260+
"type": "object",
261+
"properties": {
262+
"applicationForm": {
263+
"$ref": "../relationships.json#/components/schemas/Relationship"
264+
}
265+
}
266+
}
267+
]
268+
},
269+
"BusinessApplicationRelationships": {
270+
"allOf": [
271+
{
272+
"type": "object",
273+
"title": "Application Relationships",
274+
"additionalProperties": false
275+
},
276+
{
277+
"$ref": "../relationships.json#/components/schemas/CustomerRelationship"
278+
},
279+
{
280+
"$ref": "../relationships.json#/components/schemas/DocumentsRelationship"
261281
},
262282
{
263283
"$ref": "../relationships.json#/components/schemas/BeneficialOwnersRelationship"
264284
},
285+
{
286+
"$ref": "../relationships.json#/components/schemas/OrgRelationship"
287+
},
265288
{
266289
"type": "object",
267290
"properties": {
@@ -434,7 +457,7 @@
434457
]
435458
},
436459
"relationships": {
437-
"$ref": "#/components/schemas/ApplicationRelationships"
460+
"$ref": "#/components/schemas/BusinessApplicationRelationships"
438461
}
439462
},
440463
"additionalProperties": false,
@@ -605,7 +628,7 @@
605628
"required": ["createdAt", "status", "fullName"]
606629
},
607630
"relationships": {
608-
"$ref": "#/components/schemas/ApplicationRelationships"
631+
"$ref": "#/components/schemas/IndividualApplicationRelationships"
609632
}
610633
},
611634
"additionalProperties": false,

schemas/customer/customerPaths.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"get": {
1717
"tags": ["unit"],
1818
"operationId": "getCustomer",
19-
2019
"parameters": [
2120
{
2221
"schema": {
@@ -162,7 +161,6 @@
162161
"post": {
163162
"tags": ["unit"],
164163
"operationId": "archiveCustomer",
165-
166164
"parameters": [
167165
{
168166
"schema": {

schemas/relationships.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -229,34 +229,6 @@
229229
"additionalProperties": true,
230230
"required": ["data"]
231231
},
232-
"TrusteesRelationship": {
233-
"type": "object",
234-
"properties": {
235-
"trustees": {
236-
"type": "object",
237-
"title": "Trustees Relationship",
238-
"properties": {
239-
"data": {
240-
"type": "array",
241-
"items": {
242-
"type": "object",
243-
"properties": {
244-
"type": {
245-
"type": "string",
246-
"default": "trustee"
247-
},
248-
"id": {
249-
"$ref": "./types.json#/components/schemas/Identifier"
250-
}
251-
},
252-
"additionalProperties": false
253-
}
254-
}
255-
},
256-
"additionalProperties": false
257-
}
258-
}
259-
},
260232
"BeneficiariesRelationship": {
261233
"type": "object",
262234
"properties": {

schemas/types.json

Lines changed: 0 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -81,143 +81,6 @@
8181
"additionalProperties": false,
8282
"required": ["fullName", "email", "phone"]
8383
},
84-
"TrustContact": {
85-
"title": "TrustContact",
86-
"type": "object",
87-
"properties": {
88-
"fullName": {
89-
"$ref": "#/components/schemas/FullName"
90-
},
91-
"email": {
92-
"$ref": "#/components/schemas/Email"
93-
},
94-
"phone": {
95-
"$ref": "#/components/schemas/Phone"
96-
},
97-
"address": {
98-
"$ref": "#/components/schemas/Address"
99-
},
100-
"jwtSubject": {
101-
"$ref": "#/components/schemas/JwtSubject"
102-
}
103-
},
104-
"additionalProperties": false
105-
},
106-
"Trustee": {
107-
"title": "Trustee",
108-
"type": "object",
109-
"properties": {
110-
"fullName": {
111-
"$ref": "#/components/schemas/FullName"
112-
},
113-
"email": {
114-
"$ref": "#/components/schemas/Email"
115-
},
116-
"phone": {
117-
"$ref": "#/components/schemas/Phone"
118-
},
119-
"ssn": {
120-
"$ref": "#/components/schemas/Ssn"
121-
},
122-
"passport": {
123-
"type": "string"
124-
},
125-
"nationality": {
126-
"$ref": "#/components/schemas/Country"
127-
},
128-
"matriculaConsular": {
129-
"type": "string"
130-
},
131-
"address": {
132-
"$ref": "#/components/schemas/Address"
133-
},
134-
"dateOfBirth": {
135-
"type": "string",
136-
"format": "date"
137-
}
138-
},
139-
"additionalProperties": false,
140-
"required": [
141-
"fullName",
142-
"email",
143-
"phone",
144-
"address",
145-
"dateOfBirth"
146-
]
147-
},
148-
"Grantor": {
149-
"title": "Grantor",
150-
"type": "object",
151-
"properties": {
152-
"fullName": {
153-
"$ref": "#/components/schemas/FullName"
154-
},
155-
"email": {
156-
"$ref": "#/components/schemas/Email"
157-
},
158-
"phone": {
159-
"$ref": "#/components/schemas/Phone"
160-
},
161-
"ssn": {
162-
"$ref": "#/components/schemas/Ssn"
163-
},
164-
"passport": {
165-
"type": "string"
166-
},
167-
"matriculaConsular": {
168-
"type": "string"
169-
},
170-
"nationality": {
171-
"$ref": "#/components/schemas/Country"
172-
},
173-
"address": {
174-
"$ref": "#/components/schemas/Address"
175-
},
176-
"dateOfBirth": {
177-
"type": "string",
178-
"format": "date"
179-
},
180-
"evaluationId": {
181-
"type": "string"
182-
},
183-
"evaluationFlags": {
184-
"type": "array",
185-
"items": {
186-
"type": "string"
187-
}
188-
},
189-
"status": {
190-
"type": "string"
191-
},
192-
"maskedSSN": {
193-
"type": "string",
194-
"pattern": "^\\*{5}\\d{4}$"
195-
}
196-
},
197-
"additionalProperties": false,
198-
"required": [
199-
"fullName",
200-
"email",
201-
"phone",
202-
"address",
203-
"dateOfBirth"
204-
]
205-
},
206-
"Beneficiary": {
207-
"title": "Beneficiary",
208-
"type": "object",
209-
"properties": {
210-
"fullName": {
211-
"$ref": "#/components/schemas/FullName"
212-
},
213-
"dateOfBirth": {
214-
"type": "string",
215-
"format": "date"
216-
}
217-
},
218-
"additionalProperties": false,
219-
"required": ["fullName", "dateOfBirth"]
220-
},
22184
"Revocability": {
22285
"type": "string",
22386
"enum": ["Revocable", "Irrevocable"]

0 commit comments

Comments
 (0)