@buckaroo/buckaroo_sdk
Version:
Buckaroo payment SDK
22 lines (21 loc) • 774 B
TypeScript
import { ICredentials } from '../../Utils';
import { AxiosResponse } from 'axios';
export interface HttpResponseConstructor {
new (httpResponse: AxiosResponse, data: object): IHttpClientResponse;
}
export interface IHttpClientResponse {
httpResponse: AxiosResponse;
data: object;
rawData: string;
validateResponse(credentials: ICredentials): boolean;
}
export declare class HttpClientResponse implements IHttpClientResponse {
protected readonly _httpResponse: AxiosResponse;
protected readonly _data: object;
protected readonly _rawData: string;
constructor(httpResponse: AxiosResponse);
get httpResponse(): AxiosResponse;
get rawData(): string;
get data(): object;
validateResponse(credentials: ICredentials): boolean;
}