Update mockDb.ts
This commit is contained in:
@@ -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' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user