2022-10-03 11:09:36 +02:00
|
|
|
|
|
|
|
components:
|
|
|
|
|
|
|
|
schemas:
|
|
|
|
|
|
|
|
HsOfficeDebitor:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
2024-03-28 12:15:13 +01:00
|
|
|
debitorRel:
|
|
|
|
$ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation'
|
2022-10-03 11:09:36 +02:00
|
|
|
debitorNumber:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-01-23 15:11:23 +01:00
|
|
|
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'
|
2024-01-23 15:11:23 +01:00
|
|
|
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
|
2024-01-23 15:11:23 +01:00
|
|
|
vatReverseCharge:
|
|
|
|
type: boolean
|
2022-10-05 17:22:33 +02:00
|
|
|
refundBankAccount:
|
|
|
|
$ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount'
|
2024-01-23 15:11:23 +01:00
|
|
|
defaultPrefix:
|
|
|
|
type: string
|
|
|
|
pattern: '^[a-z0-9]{3}$'
|
2022-10-03 11:09:36 +02:00
|
|
|
|
|
|
|
HsOfficeDebitorPatch:
|
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-28 12:15:13 +01:00
|
|
|
debitorRelUuid:
|
2022-10-03 11:09:36 +02:00
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
nullable: true
|
2024-01-23 15:11:23 +01:00
|
|
|
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
|
2024-01-23 15:11:23 +01:00
|
|
|
nullable: false
|
|
|
|
vatReverseCharge:
|
|
|
|
type: boolean
|
|
|
|
nullable: false
|
2022-10-05 17:22:33 +02:00
|
|
|
refundBankAccountUuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
nullable: true
|
2024-01-23 15:11:23 +01:00
|
|
|
defaultPrefix:
|
|
|
|
type: string
|
|
|
|
pattern: '^[a-z0-9]{3}$'
|
|
|
|
nullable: true
|
2022-10-03 11:09:36 +02:00
|
|
|
|
|
|
|
HsOfficeDebitorInsert:
|
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-28 12:15:13 +01:00
|
|
|
debitorRel:
|
|
|
|
$ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert'
|
|
|
|
debitorRelUuid:
|
2022-10-03 11:09:36 +02:00
|
|
|
type: string
|
|
|
|
format: uuid
|
2024-01-23 15:11:23 +01:00
|
|
|
debitorNumberSuffix:
|
2022-10-03 11:09:36 +02:00
|
|
|
type: integer
|
2024-01-23 15:11:23 +01:00
|
|
|
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
|
2024-01-23 15:11:23 +01:00
|
|
|
vatReverseCharge:
|
|
|
|
type: boolean
|
2022-10-05 17:22:33 +02:00
|
|
|
refundBankAccountUuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
2024-01-23 15:11:23 +01:00
|
|
|
defaultPrefix:
|
|
|
|
type: string
|
|
|
|
pattern: '^[a-z]{3}$'
|
2022-10-03 11:09:36 +02:00
|
|
|
required:
|
2024-03-28 12:15:13 +01:00
|
|
|
- debitorNumberSuffix
|
2024-01-23 15:11:23 +01:00
|
|
|
- defaultPrefix
|
|
|
|
- billable
|