Template
1
0
Files
boilerplate/modules/payment/schemas/transaction-participant.ts
2025-12-05 01:56:42 +01:00

18 lines
600 B
TypeScript

import z from "zod";
/*
|--------------------------------------------------------------------------------
| Transaction Participant
|--------------------------------------------------------------------------------
|
| A participant is either an internal account or an external entity.
|
*/
export const TransactionParticipantType = z.union([
z.literal("account").describe("Participant is an internal account on the ledger"),
z.literal("external").describe("Participant is a opaque external entity"),
]);
export type TransactionParticipant = z.output<typeof TransactionParticipantType>;