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

82 lines
2.5 KiB
YAML
Raw Normal View History

2022-10-03 11:09:36 +02:00
components:
schemas:
HsOfficeDebitor:
type: object
properties:
uuid:
type: string
format: uuid
debitorNumber:
type: integer
format: int32
minimum: 10000
maximum: 99999
partner:
$ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner'
billingContact:
$ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact'
vatId:
type: string
vatCountryCode:
type: string
2022-10-15 11:29:56 +02:00
pattern: '^[A-Z][A-Z]$'
2022-10-03 11:09:36 +02:00
vatBusiness:
type: boolean
refundBankAccount:
$ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount'
2022-10-03 11:09:36 +02:00
HsOfficeDebitorPatch:
type: object
properties:
billingContactUuid:
type: string
format: uuid
nullable: true
vatId:
type: string
nullable: true
vatCountryCode:
type: string
2022-10-15 11:29:56 +02:00
pattern: '^[A-Z][A-Z]$'
2022-10-03 11:09:36 +02:00
nullable: true
vatBusiness:
type: boolean
nullable: true
refundBankAccountUuid:
type: string
format: uuid
nullable: true
2022-10-03 11:09:36 +02:00
HsOfficeDebitorInsert:
type: object
properties:
partnerUuid:
type: string
format: uuid
2022-10-15 11:29:56 +02:00
nullable: false
2022-10-03 11:09:36 +02:00
billingContactUuid:
type: string
format: uuid
2022-10-15 11:29:56 +02:00
nullable: false
2022-10-03 11:09:36 +02:00
debitorNumber:
type: integer
format: int32
minimum: 10000
maximum: 99999
vatId:
type: string
vatCountryCode:
type: string
2022-10-15 11:29:56 +02:00
pattern: '^[A-Z][A-Z]$'
2022-10-03 11:09:36 +02:00
vatBusiness:
type: boolean
refundBankAccountUuid:
type: string
format: uuid
2022-10-03 11:09:36 +02:00
required:
- partnerUuid
- billingContactUuid