UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

55 lines 1.32 kB
import { ApiCharge } from './api-charge'; import { ApiBase } from './api-base'; /** * Interface for browser details response. * @interface BrowserDetails * * @param {string} [name] * @param {string} [java_enabled] * @param {string} [language] * @param {string} [screen_height] * @param {string} [screen_width] * @param {string} [time_zone] * @param {string} [color_depth] * */ export interface BrowserDetails { name: string; java_enabled: string; language: string; screen_height: string; screen_width: string; time_zone: string; color_depth: string; } /** * Class Api include method for working with paydock api * @constructor * * @param {string} publicKey - PayDock users public key * @example * var api = new Api('publicKey'); * * **/ declare class Api extends ApiBase { publicKey: String; /** @constructs */ constructor(publicKey: string); /** * Method for getting browser details * * @example * api.getBrowserDetails(); * * @return {BrowserDetails} Browser details object */ getBrowserDetails(): BrowserDetails; /** * Current method allows to work with charge related endpoints * * @example * api.charge(); */ charge(): ApiCharge; } export { Api }; //# sourceMappingURL=api.d.ts.map