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

74 lines
2.0 KiB
YAML
Raw Normal View History

components:
schemas:
2022-09-21 09:44:09 +02:00
HsOfficePersonType:
type: string
enum:
- UNKNOWN_PERSON
- NATURAL_PERSON
- LEGAL_PERSON
- INCORPORATED_FIRM
- UNINCORPORATED_FIRM
- PUBLIC_INSTITUTION
2022-09-21 09:44:09 +02:00
HsOfficePerson:
type: object
properties:
2022-09-21 09:44:09 +02:00
uuid:
type: string
2022-09-21 09:44:09 +02:00
format: uuid
personType:
$ref: '#/components/schemas/HsOfficePersonType'
tradeName:
type: string
2024-02-02 09:02:28 +01:00
salutation:
type: string
title:
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
2024-02-02 09:02:28 +01:00
salutation:
type: string
title:
type: string
2022-09-21 09:44:09 +02:00
givenName:
type: string
familyName:
type: string
required:
- personType
2022-09-21 09:44:09 +02:00
HsOfficePersonPatch:
type: object
properties:
personType:
nullable: true
$ref: '#/components/schemas/HsOfficePersonType'
tradeName:
type: string
nullable: true
2024-02-02 09:02:28 +01:00
salutation:
type: string
nullable: true
title:
type: string
nullable: true
2022-09-21 09:44:09 +02:00
givenName:
type: string
nullable: true
familyName:
type: string
nullable: true