feat: add credit cards endpoint

This commit is contained in:
Matilda Landström
2024-06-18 15:48:50 +02:00
parent 9931d9edef
commit fa5638aaed
6 changed files with 79 additions and 2 deletions

View File

@@ -166,3 +166,17 @@ export const getFriendTransactionsSchema = z.object({
})
.nullable(),
})
export const getCreditCardsSchema = z.object({
data: z.array(
z.object({
attribute: z.object({
cardName: z.string().optional(),
alias: z.string(),
truncatedNumber: z.string(),
expirationDate: z.string(),
cardType: z.string(),
}),
})
),
})