974359ed85
Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
36 lines
903 B
YAML
36 lines
903 B
YAML
---
|
|
type: object
|
|
properties:
|
|
credit_type:
|
|
type: string
|
|
description: Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF', 'PROCESSING_FOUND' )
|
|
amount:
|
|
type: number
|
|
minimum: 0
|
|
description: Credit amount
|
|
library_id:
|
|
type:
|
|
- string
|
|
- "null"
|
|
description: Internal identifier for the library in which the transaction took place
|
|
account_lines_ids:
|
|
type: array
|
|
items:
|
|
type: integer
|
|
description: List of account line ids the credit goes against (optional)
|
|
payment_type:
|
|
type: string
|
|
description: Payment type (only applies when credit_type=payment)
|
|
date:
|
|
type: string
|
|
format: date
|
|
description: Date the credit was recorded (optional)
|
|
description:
|
|
type: string
|
|
description: Description
|
|
note:
|
|
type: string
|
|
description: Internal note
|
|
required:
|
|
- amount
|
|
additionalProperties: false
|