2022-10-19 10:27:10 +02:00
|
|
|
|
|
|
|
components:
|
|
|
|
|
|
|
|
schemas:
|
|
|
|
|
|
|
|
HsOfficeCoopSharesTransactionType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- ADJUSTMENT
|
|
|
|
- SUBSCRIPTION
|
2022-10-20 07:41:48 +02:00
|
|
|
- CANCELLATION
|
2022-10-19 10:27:10 +02:00
|
|
|
|
|
|
|
HsOfficeCoopSharesTransaction:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopSharesTransactionType'
|
2022-10-20 14:08:19 +02:00
|
|
|
shareCount:
|
2022-10-19 10:27:10 +02:00
|
|
|
type: integer
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
|
|
|
comment:
|
|
|
|
type: string
|
2024-04-12 11:29:26 +02:00
|
|
|
adjustedShareTx:
|
|
|
|
$ref: '#/components/schemas/HsOfficeReferencedCoopSharesTransaction'
|
|
|
|
adjustmentShareTx:
|
|
|
|
$ref: '#/components/schemas/HsOfficeReferencedCoopSharesTransaction'
|
|
|
|
|
|
|
|
HsOfficeReferencedCoopSharesTransaction:
|
|
|
|
description:
|
|
|
|
Similar to `HsOfficeCoopSharesTransaction` but without the self-referencing properties
|
|
|
|
(`adjustedShareTx` and `adjustmentShareTx`), to avoid recursive JSON.
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopSharesTransactionType'
|
|
|
|
shareCount:
|
|
|
|
type: integer
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
|
|
|
comment:
|
|
|
|
type: string
|
2022-10-19 10:27:10 +02:00
|
|
|
|
|
|
|
HsOfficeCoopSharesTransactionInsert:
|
|
|
|
type: object
|
|
|
|
properties:
|
2024-11-11 11:25:42 +01:00
|
|
|
membership.uuid:
|
2022-10-19 10:27:10 +02:00
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
nullable: false
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopSharesTransactionType'
|
2022-10-20 14:08:19 +02:00
|
|
|
shareCount:
|
2022-10-19 10:27:10 +02:00
|
|
|
type: integer
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
2022-10-20 07:41:48 +02:00
|
|
|
minLength: 6
|
|
|
|
maxLength: 48
|
2022-10-19 10:27:10 +02:00
|
|
|
comment:
|
|
|
|
type: string
|
2024-11-11 11:25:42 +01:00
|
|
|
adjustedShareTx.uuid:
|
2024-04-12 11:29:26 +02:00
|
|
|
type: string
|
|
|
|
format: uuid
|
2022-10-19 10:27:10 +02:00
|
|
|
required:
|
2024-11-11 11:25:42 +01:00
|
|
|
- membership.uuid
|
2022-10-19 10:27:10 +02:00
|
|
|
- transactionType
|
2022-10-20 14:08:19 +02:00
|
|
|
- shareCount
|
2022-10-19 10:27:10 +02:00
|
|
|
- valueDate
|
|
|
|
- reference
|
|
|
|
additionalProperties: false
|