@spreeloop/orange_money
Version:
A orange money api integration package
28 lines • 990 B
TypeScript
import { OperationResponse } from '../../utils/operation_response';
import { DisbursementServiceConfig } from '../implementations/disbursement_service';
export declare type Token = {
/**
* The requested token.
*/
access_token: string;
scope?: string;
/**
* The type of the requested token.
*/
token_type: string;
/** The time to live in seconds. */
expires_in: string;
};
export declare type CreateAccessTokenResponse = OperationResponse<string, Token>;
/**
* Creates an access token.
*
* @param {CreateAccessTokenRequest} configs - The disbursement service config.
* @param {string} endPoint - The end point.
* @return {CreateAccessTokenResponse} The method response containing the access token and raw response.
*/
export declare function createAccessToken({ configs, endPoint, }: {
configs: DisbursementServiceConfig;
endPoint: string;
}): Promise<CreateAccessTokenResponse>;
//# sourceMappingURL=create_access_token.d.ts.map