feat: add currency assertion to account creation
This commit is contained in:
@@ -14,7 +14,7 @@ import { CurrencySchema } from "./currency.ts";
|
||||
export const LedgerSchema = z.strictObject({
|
||||
_id: z.uuid().describe("Primary identifier of the ledger"),
|
||||
beneficiaryId: z.uuid().describe("Identifier of the beneficiary this ledger belongs to"),
|
||||
label: z.string().optional().describe("Human-readable identifier for the ledger"),
|
||||
label: z.string().nullable().optional().describe("Human-readable identifier for the ledger"),
|
||||
currencies: z.array(CurrencySchema).describe("Currency this ledger trades in"),
|
||||
createdAt: z.coerce.date().describe("Timestamp the ledger was created"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user