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

109 lines
3.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
debitorRel:
$ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation'
2022-10-03 11:09:36 +02:00
debitorNumber:
type: integer
format: int32
minimum: 1000000
maximum: 9999999
debitorNumberSuffix:
type: integer
format: int8
minimum: 00
maximum: 99
2022-10-03 11:09:36 +02:00
partner:
$ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner'
billable:
type: boolean
2022-10-03 11:09:36 +02:00
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
vatReverseCharge:
type: boolean
refundBankAccount:
$ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount'
defaultPrefix:
type: string
pattern: '^[a-z0-9]{3}$'
2022-10-03 11:09:36 +02:00
HsOfficeDebitorPatch:
type: object
properties:
debitorRelUuid:
2022-10-03 11:09:36 +02:00
type: string
format: uuid
nullable: true
billable:
type: boolean
nullable: false
2022-10-03 11:09:36 +02:00
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: false
vatReverseCharge:
type: boolean
nullable: false
refundBankAccountUuid:
type: string
format: uuid
nullable: true
defaultPrefix:
type: string
pattern: '^[a-z0-9]{3}$'
nullable: true
2022-10-03 11:09:36 +02:00
HsOfficeDebitorInsert:
type: object
properties:
debitorRel:
$ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert'
debitorRelUuid:
2022-10-03 11:09:36 +02:00
type: string
format: uuid
debitorNumberSuffix:
2022-10-03 11:09:36 +02:00
type: integer
format: int8
minimum: 00
maximum: 99
billable:
type: boolean
2022-10-03 11:09:36 +02:00
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
vatReverseCharge:
type: boolean
refundBankAccountUuid:
type: string
format: uuid
defaultPrefix:
type: string
pattern: '^[a-z]{3}$'
2022-10-03 11:09:36 +02:00
required:
- debitorNumberSuffix
- defaultPrefix
- billable