ts-midtrans-client
Version:
This library is an UNOFFICIAL TypeScript version of the Midtrans Client - Node.js.
13 lines (12 loc) • 483 B
TypeScript
/**
* Wrapper of Axios to do API request to Midtrans API
* @return {Promise} of API response, or exception during request
* capable to do HTTP `request`
* @see https://docs.midtrans.com/reference/code-2xx
*/
export declare class HttpClient {
private parent;
private http_client;
constructor(parentObj?: any);
request(httpMethod: string, serverKey: string, requestUrl: string, firstParam?: Record<string, any>, secondParam?: Record<string, any>): Promise<any>;
}