mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-07 06:36:30 +00:00
feat: implement topup functionality with create, get, and cancel operations ✨
This commit is contained in:
14
lib/types.ts
14
lib/types.ts
@ -1,9 +1,19 @@
|
||||
export type TopupType = {
|
||||
amount: number;
|
||||
userId: string;
|
||||
paid: boolean;
|
||||
};
|
||||
|
||||
export type Transaction = {
|
||||
ref: string;
|
||||
sourceBank: string;
|
||||
trxDate: string;
|
||||
}
|
||||
|
||||
export type TopupResponse = {
|
||||
status: boolean;
|
||||
message: string;
|
||||
transaction?: Transaction
|
||||
}
|
||||
|
||||
interface IpAddress {
|
||||
ip: string;
|
||||
mask: number;
|
||||
|
Reference in New Issue
Block a user