2022-09-06 11:07:08 +02:00
|
|
|
|
|
|
|
components:
|
|
|
|
|
|
|
|
schemas:
|
|
|
|
|
2022-09-21 09:44:09 +02:00
|
|
|
HsOfficePersonTypeValues:
|
|
|
|
- NATURAL # a human
|
|
|
|
- LEGAL # e.g. Corp., Inc., AG, GmbH, eG
|
|
|
|
- SOLE_REPRESENTATION # e.g. OHG, GbR
|
|
|
|
- JOINT_REPRESENTATION # e.g. community of heirs
|
|
|
|
|
|
|
|
HsOfficePersonType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- NATURAL # a human
|
|
|
|
- LEGAL # e.g. Corp., Inc., AG, GmbH, eG
|
|
|
|
- SOLE_REPRESENTATION # e.g. OHG, GbR
|
|
|
|
- JOINT_REPRESENTATION # e.g. community of heirs
|
|
|
|
|
|
|
|
HsOfficePerson:
|
2022-09-06 11:07:08 +02:00
|
|
|
type: object
|
|
|
|
properties:
|
2022-09-21 09:44:09 +02:00
|
|
|
uuid:
|
2022-09-06 11:07:08 +02:00
|
|
|
type: string
|
2022-09-21 09:44:09 +02:00
|
|
|
format: uuid
|
|
|
|
personType:
|
|
|
|
$ref: '#/components/schemas/HsOfficePersonType'
|
2022-09-06 11:07:08 +02:00
|
|
|
tradeName:
|
|
|
|
type: string
|
|
|
|
givenName:
|
|
|
|
type: string
|
|
|
|
familyName:
|
|
|
|
type: string
|
|
|
|
|
2022-09-21 09:44:09 +02:00
|
|
|
HsOfficePersonInsert:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
personType:
|
|
|
|
$ref: '#/components/schemas/HsOfficePersonType'
|
|
|
|
tradeName:
|
|
|
|
type: string
|
|
|
|
givenName:
|
|
|
|
type: string
|
|
|
|
familyName:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- personType
|
2022-09-06 11:07:08 +02:00
|
|
|
|
2022-09-21 09:44:09 +02:00
|
|
|
HsOfficePersonPatch:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
personType:
|
|
|
|
nullable: true
|
|
|
|
$ref: '#/components/schemas/HsOfficePersonType'
|
|
|
|
tradeName:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
givenName:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
familyName:
|
|
|
|
type: string
|
|
|
|
nullable: true
|