UNPKG

orb-billing

Version:

The official TypeScript library for the Orb API

21 lines 851 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../resource.mjs"; import { isRequestOptions } from "../../core.mjs"; export class Costs extends APIResource { list(customerId, query = {}, options) { if (isRequestOptions(query)) { return this.list(customerId, {}, query); } return this._client.get(`/customers/${customerId}/costs`, { query, ...options }); } listByExternalId(externalCustomerId, query = {}, options) { if (isRequestOptions(query)) { return this.listByExternalId(externalCustomerId, {}, query); } return this._client.get(`/customers/external_customer_id/${externalCustomerId}/costs`, { query, ...options, }); } } //# sourceMappingURL=costs.mjs.map