fix pargar bugs 2

This commit is contained in:
2026-07-21 13:26:04 +03:30
parent c1c1ab501d
commit cb50119f56
2 changed files with 62 additions and 2 deletions
+12
View File
@@ -35,6 +35,18 @@ export const registerCustomerInPargar = async (customerId: number) =>
`/admin/customer/${customerId}/pargar/register`
)
export interface PargarSyncWalletResult {
ok: boolean
message: string
result?: {
documents: { applied: number; skipped: number; errors: string[]; logs: number[] }
mande: { applied: boolean; gold_delta?: number; rial_delta?: number; message: string }
}
}
export const syncCustomerWalletFromPargar = async (customerId: number) =>
await useAxios.post<PargarSyncWalletResult>(`/admin/customer/${customerId}/pargar/sync-wallet`)
export interface PanelOnlyCustomer {
id: number
name: string