UNPKG

orb-billing

Version:

The official TypeScript library for the Orb API

25 lines 991 B
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Costs = void 0; const resource_1 = require("../../resource.js"); const core_1 = require("../../core.js"); class Costs extends resource_1.APIResource { list(customerId, query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.list(customerId, {}, query); } return this._client.get(`/customers/${customerId}/costs`, { query, ...options }); } listByExternalId(externalCustomerId, query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.listByExternalId(externalCustomerId, {}, query); } return this._client.get(`/customers/external_customer_id/${externalCustomerId}/costs`, { query, ...options, }); } } exports.Costs = Costs; //# sourceMappingURL=costs.js.map