cloudflare
Version:
The official TypeScript library for the Cloudflare API
18 lines • 726 B
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.History = void 0;
const resource_1 = require("cloudflare/resource");
const core_1 = require("cloudflare/core");
class History extends resource_1.APIResource {
get(query = {}, options) {
if ((0, core_1.isRequestOptions)(query)) {
return this.get({}, query);
}
return this._client.get('/user/billing/history', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
exports.History = History;
(function (History) {
})(History = exports.History || (exports.History = {}));
//# sourceMappingURL=history.js.map