2022-10-21 17:12:55 +02:00
|
|
|
|
|
|
|
components:
|
|
|
|
|
|
|
|
schemas:
|
|
|
|
|
|
|
|
HsOfficeCoopAssetsTransactionType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- ADJUSTMENT
|
|
|
|
- DEPOSIT
|
|
|
|
- DISBURSAL
|
|
|
|
- TRANSFER
|
|
|
|
- ADOPTION
|
|
|
|
- CLEARING
|
|
|
|
- LOSS
|
|
|
|
|
|
|
|
HsOfficeCoopAssetsTransaction:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopAssetsTransactionType'
|
|
|
|
assetValue:
|
|
|
|
type: number
|
|
|
|
format: currency
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
|
|
|
comment:
|
|
|
|
type: string
|
2024-04-10 12:44:56 +02:00
|
|
|
adjustedAssetTx:
|
2024-04-11 10:08:45 +02:00
|
|
|
$ref: '#/components/schemas/HsOfficeReferencedCoopAssetsTransaction'
|
|
|
|
adjustmentAssetTx:
|
|
|
|
$ref: '#/components/schemas/HsOfficeReferencedCoopAssetsTransaction'
|
2024-04-10 12:44:56 +02:00
|
|
|
|
2024-04-11 10:08:45 +02:00
|
|
|
HsOfficeReferencedCoopAssetsTransaction:
|
2024-04-10 12:44:56 +02:00
|
|
|
description:
|
2024-04-11 10:08:45 +02:00
|
|
|
Similar to `HsOfficeCoopAssetsTransaction` but without the self-referencing properties
|
|
|
|
(`adjustedAssetTx` and `adjustmentAssetTx`), to avoid recursive JSON.
|
2024-04-10 12:44:56 +02:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopAssetsTransactionType'
|
|
|
|
assetValue:
|
|
|
|
type: number
|
|
|
|
format: currency
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
|
|
|
comment:
|
|
|
|
type: string
|
2022-10-21 17:12:55 +02:00
|
|
|
|
|
|
|
HsOfficeCoopAssetsTransactionInsert:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
membershipUuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
nullable: false
|
|
|
|
transactionType:
|
|
|
|
$ref: '#/components/schemas/HsOfficeCoopAssetsTransactionType'
|
|
|
|
assetValue:
|
|
|
|
type: number
|
|
|
|
format: currency
|
|
|
|
valueDate:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
reference:
|
|
|
|
type: string
|
|
|
|
minLength: 6
|
|
|
|
maxLength: 48
|
|
|
|
comment:
|
|
|
|
type: string
|
2024-04-10 12:44:56 +02:00
|
|
|
reverseEntryUuid:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
2022-10-21 17:12:55 +02:00
|
|
|
required:
|
|
|
|
- membershipUuid
|
|
|
|
- transactionType
|
|
|
|
- assetValue
|
|
|
|
- valueDate
|
|
|
|
- reference
|
|
|
|
additionalProperties: false
|