ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
40 lines (39 loc) • 1.29 kB
TypeScript
import { DoTransactionInterface, GetTransactionInterface, GetAccountLimit } from "../interfaces/accountInterface";
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
export declare const useAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
GetTransactionByUserId: (values: GetTransactionInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: any;
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
GetUserAccounts: (installationId?: string) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
GetAccountData: (accountId: number) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
DoTransaction: (values: DoTransactionInterface) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
GetAccountLimit: (values: GetAccountLimit) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
};