mtn-momo-client
Version:
A collection of utils to interact with the mtn-momo api
19 lines (18 loc) • 785 B
TypeScript
import { AxiosInstance } from 'axios';
type CreateAPIUserOptions = {
/** The link you want some payment operations to redirect to. */
providerCallbackHost: string;
/** The client to make the api request */
client: AxiosInstance;
};
type CreateAPIUserResult = {
/** A uuid which corresponds to the id of the created user in the sandbox */
userId: string;
};
/**
* Creates a user and returns the userId of the created user in the sandbox
* @param {CreateAPIUserOptions} options properties needed to create a user id
* @returns {Promise<CreateAPIUserResult>} An object containing the userId of the created user
*/
declare const createAPIUser: ({ client, providerCallbackHost, }: CreateAPIUserOptions) => Promise<CreateAPIUserResult>;
export { createAPIUser };