1asyncapi: 2.6.0
2info: { title: Posted transactions (from TXNSUM01), version: 1.0.0 }
3channels:
4 ledger.transactions.posted:
5 description: Replaces detail records of PRD.TXN.DAILY
6 subscribe:
7 operationId: onTransactionPosted
8 message:
9 name: TransactionPosted
10 bindings:
11 kafka:
12 key: { type: string, description: acctNo, keeps per-account order }
13 payload:
14 type: object
15 required: [txnId, acctNo, txnType, amount, businessDate]
16 properties:
17 txnId: { type: string, description: idempotency key }
18 acctNo: { type: string, maxLength: 12 }
19 txnType: { type: string, description: "D debit; any other code adds" }
20 amount: { type: string, pattern: "^\\d+\\.\\d{2}$" }
21 businessDate: { type: string, format: date }
22x-pyd-source: TXNSUM01.cbl:210-232
23x-pyd-rules:
24 - "TXN-SUM-01: delta = -amount if D, else +amount"
25 - "TXN-REC-02: trailer count and hash total per businessDate"