UNPKG

amazon-pay-async

Version:

API wrapper for Amazon Pay using promises and defining types

40 lines (39 loc) 1.09 kB
declare class AmazonError extends Error { private type; constructor(type: string, message: string); } export declare class ApiError extends AmazonError { private body; constructor(type: string, message: string, body: any); } export declare class BadToken extends Error { message: string; private readonly type; private body; constructor(message: string, body?: any); } export declare class ParseError extends Error { message: string; private readonly type; private body; constructor(message: string, body?: any); } export declare class InvalidCertificateDomain extends Error { message: string; private readonly type; private body; constructor(message: string, body?: any); } export declare class SignatureMismatch extends Error { message: string; private readonly type; private body; constructor(message: string, body?: any); } export declare class InvalidSignatureVersion extends Error { message: string; private readonly type; private body; constructor(message: string, body?: any); } export {};