UNPKG

uz-booking-client

Version:
21 lines (20 loc) 867 B
import Requestable from '../lib/requestable'; export default class Wagon extends Requestable { /** * Construct wagon class. * @constructor * @param {string} [lang] - language * @param {auth} [auth] - the credentials to authenticate to UzBoojking. If auth is * not provided requests will be made unauthenticated * @param {string} [apiBase] - the base UzBooking API URL */ constructor(lang: string, auth: any, apiBase: string); /** * List wagons by type * @param {number} tripId * @param {string} wagonType - wagon type * @param {Function} [callback] - callback function * @returns {Promise} - the promise for the http request */ list(tripId: string, wagonType: string, callback?: (error: Error, data?: object, response?: object) => any): Promise<any>; }