@hachther/mesomb
Version:
JS client for browser to perform mobile payment operation with MeSomb
33 lines (32 loc) • 1.11 kB
TypeScript
export declare abstract class AOperation {
/**
* Your target service key (application, fund, provider) on MeSomb
*
* @private
*/
protected readonly target: string;
/**
* Your access key provided by MeSomb
*
* @private
*/
protected readonly accessKey: string;
/**
* Your secret key provided by MeSomb
*
* @private
*/
protected readonly secretKey: string;
protected readonly language: string;
protected service: string;
constructor({ target, accessKey, secretKey, language, }: {
target: string;
accessKey: string;
secretKey: string;
language?: string;
});
protected _buildUrl(endpoint: string): string;
protected _getAuthorization(method: string, endpoint: string, date: Date, nonce: string, headers?: Record<string, string>, body?: Record<string, any> | undefined): string;
private _processClientException;
protected executeRequest(method: string, endpoint: string, date: Date, nonce: string, body?: Record<string, any> | null, mode?: string): Promise<any>;
}