hs.hsadmin.ng/src/main/resources/api-definition/hs-admin/hs-admin-person-schemas.yaml

34 lines
1013 B
YAML
Raw Normal View History

components:
schemas:
HsAdminPersonBase:
type: object
properties:
personType:
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
tradeName:
type: string
givenName:
type: string
familyName:
type: string
HsAdminPerson:
allOf:
- type: object
properties:
uuid:
type: string
format: uuid
- $ref: '#/components/schemas/HsAdminPersonBase'
HsAdminPersonUpdate:
$ref: '#/components/schemas/HsAdminPersonBase'