amazon-pay-async
Version:
API wrapper for Amazon Pay using promises and defining types
18 lines (17 loc) • 593 B
TypeScript
import { Config, IConfiguration } from '../classes/config';
import { ISNSResponse } from '../types';
interface IObject {
[key: string]: any;
}
export declare class Amazon {
config: Config;
constructor(config: IConfiguration);
callApiMethod(action: string, params?: IObject, bearer?: string): Promise<any>;
callMwsMethod(method: string, version: string, params?: IObject): Promise<any>;
parseSNSResponse(response: ISNSResponse): Promise<any>;
private parseMwsResponse;
private parseIPNMessage;
private parseApiResponse;
private parseString;
}
export {};