fix pargar bugs 2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user