Update mockDb.ts

This commit is contained in:
2025-12-11 00:14:37 +01:00
committed by GitHub
parent d68c5473ff
commit 4b63183003

View File

@@ -382,5 +382,13 @@ export const CondoService = {
method: 'POST', method: 'POST',
body: JSON.stringify({ amount, notes: 'PayPal / Manual Payment', familyId }) body: JSON.stringify({ amount, notes: 'PayPal / Manual Payment', familyId })
}); });
},
getExpensePayments: async (expenseId: string, familyId: string): Promise<any[]> => {
return request<any[]>(`/expenses/${expenseId}/shares/${familyId}/payments`);
},
deleteExpensePayment: async (paymentId: string): Promise<void> => {
return request(`/expenses/payments/${paymentId}`, { method: 'DELETE' });
} }
}; };