Admin : Investasi integarsi API

### NO Issue
This commit is contained in:
2025-11-03 11:41:31 +08:00
parent 4625831377
commit f9f996f195
4 changed files with 162 additions and 28 deletions

View File

@@ -86,3 +86,28 @@ export async function apiAdminInvestmentGetOneInvoiceById({
throw error;
}
}
export async function apiAdminInvestmentUpdateInvoice({
id,
category,
data,
}: {
id: string;
category: "deny" | "accept";
data: {
investasiId: string;
lembarTerbeli: number;
};
}) {
try {
const response = await apiConfig.put(
`/mobile/admin/investment/${id}/invoice?category=${category}`,
{
data: data,
}
);
return response.data;
} catch (error) {
throw error;
}
}