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
|
2022-10-05 17:22:33 +02:00
|
|
|
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
|
2022-10-05 17:22:33 +02:00
|
|
|
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
|
2022-10-05 17:22:33 +02:00
|
|
|
refundBankAccountUuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
2022-10-03 11:09:36 +02:00
|
|
|
required:
|
|
|
|
- partnerUuid
|
|
|
|
- billingContactUuid
|