UNPKG

chargebee

Version:

A library for integrating with Chargebee.

22 lines (21 loc) 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpClient = void 0; const chargebeeError_js_1 = require("../chargebeeError.js"); class HttpClient { async makeApiRequest(props, timeout) { throw new Error('makeApiRequest is not implemented'); } static timeOutError() { const error = new chargebeeError_js_1.ChargebeeError({ message: 'io_error', type: 'timeout', api_error_code: 'request aborted due to timeout.', http_status_code: 504, http_code: 504, error_code: 'request aborted due to timeout.', }, null); return error; } } exports.HttpClient = HttpClient;