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.
49 lines (48 loc) • 1.63 kB
TypeScript
import { CreateAddressInterface, DeleteUserAddressInterface, MakeAddressPrimaryInterface, UpdateAddressInterface } from "../interfaces/bankingSystemInterface";
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
export declare const useAddresses: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
CreateAddress: (values: CreateAddressInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: any;
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
UpdateUserAddress: (values: UpdateAddressInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: any;
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
MakeUserAddressPrimary: (values: MakeAddressPrimaryInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: any;
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
DeleteUserAddress: (values: DeleteUserAddressInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: any;
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
};