feat: implement topup functionality with create, get, and cancel operations

This commit is contained in:
2025-07-04 23:06:13 +05:00
parent 89a35a9674
commit ee461bbbf8
3 changed files with 135 additions and 9 deletions

View File

@ -57,6 +57,20 @@ export interface ApiError {
detail?: string;
}
export interface Topup {
id: string;
amount: number;
user: Pick<User, "id" | "id_card" | "mobile"> & {
name: string;
};
paid: boolean;
mib_reference: string | null;
expires_at: string;
is_expired: boolean;
created_at: string;
updated_at: string;
}
export interface Payment {
id: string;
devices: Device[];