// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import { isRequestOptions } from 'cloudflaredev/core';
import * as HistoryAPI from 'cloudflaredev/resources/user/billing/history';
import { V4PagePaginationArray } from 'cloudflaredev/pagination';
export class History extends APIResource {
    list(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.list({}, query);
        }
        return this._client.getAPIList('/user/billing/history', BillingHistoriesV4PagePaginationArray, {
            query,
            ...options,
        });
    }
}
export class BillingHistoriesV4PagePaginationArray extends V4PagePaginationArray {
}
(function (History) {
    History.BillingHistoriesV4PagePaginationArray = HistoryAPI.BillingHistoriesV4PagePaginationArray;
})(History || (History = {}));
//# sourceMappingURL=history.mjs.map