@spreeloop/orange_money
Version:
A orange money api integration package
48 lines • 1.35 kB
TypeScript
/**
* Orange Money API routes builder.
* @class
*/
export declare class Routes {
private readonly version?;
/**
* Creates a new instance of the class route.
*
* @param {string} version - The version of the instance. Optional.
*/
constructor(version?: string | undefined);
/**
* Returns the base route for the API.
*
* @return {string} The base route for the API.
*/
baseRoute: () => string;
/**
* Initializes the live payment.
*
* @return {string} The endpoint URL for the live payment.
*/
mobileInitPayment(): string;
/**
* Generates the payment status URL based on the provided parameters.
*
* @param {object} params - The parameters for generating the payment status URL.
* - {string} params.payToken - The pay token.
* @return {string} The generated payment status URL.
*/
mobilePaymentStatus(params: {
payToken: string;
}): string;
/**
* Generates the URL for the Mobile Pay token.
*
* @return {string} The URL for the Mobile Pay token.
*/
mobilePayToken(): string;
/**
* Generates the mobile access token endpoint.
*
* @return {string} The generated mobile access token endpoint.
*/
mobileAccessToken(): string;
}
//# sourceMappingURL=routes.d.ts.map