orb-billing 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/core.d.ts.map +1 -1
- package/core.js +8 -10
- package/core.js.map +1 -1
- package/core.mjs +8 -10
- package/core.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -1
- package/package.json +3 -1
- package/resources/coupons/coupons.d.ts +60 -2
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/credit-notes.d.ts +57 -5
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +2 -2
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/customers.d.ts +696 -8
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/usage.d.ts +74 -58
- package/resources/customers/usage.d.ts.map +1 -1
- package/resources/customers/usage.js +14 -14
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +14 -14
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/events.d.ts +40 -40
- package/resources/events/events.js +40 -40
- package/resources/events/events.mjs +40 -40
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +2 -2
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +358 -71
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +648 -4
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +3 -3
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +56 -83
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +62 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/subscriptions.d.ts +1084 -241
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/index.mjs +1 -1
- package/src/core.ts +8 -12
- package/src/index.ts +8 -3
- package/src/resources/coupons/coupons.ts +82 -8
- package/src/resources/coupons/subscriptions.ts +7 -7
- package/src/resources/credit-notes.ts +86 -10
- package/src/resources/customers/balance-transactions.ts +23 -7
- package/src/resources/customers/costs.ts +5 -5
- package/src/resources/customers/credits/credits.ts +6 -6
- package/src/resources/customers/credits/ledger.ts +5 -5
- package/src/resources/customers/customers.ts +1153 -21
- package/src/resources/customers/usage.ts +83 -65
- package/src/resources/events/backfills.ts +5 -5
- package/src/resources/events/events.ts +45 -45
- package/src/resources/index.ts +3 -3
- package/src/resources/invoice-line-items.ts +6 -6
- package/src/resources/invoices.ts +604 -97
- package/src/resources/items.ts +5 -5
- package/src/resources/metrics.ts +5 -5
- package/src/resources/plans/external-plan-id.ts +5 -5
- package/src/resources/plans/plans.ts +817 -11
- package/src/resources/prices/external-price-id.ts +3 -3
- package/src/resources/prices/index.ts +1 -1
- package/src/resources/prices/prices.ts +73 -106
- package/src/resources/shared.ts +84 -0
- package/src/resources/subscriptions.ts +1299 -287
- package/src/resources/top-level.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/items.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as ItemsAPI from "
|
|
7
|
-
import { Page, type PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as ItemsAPI from "./items";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class Items extends APIResource {
|
|
10
10
|
/**
|
package/src/resources/metrics.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as MetricsAPI from "
|
|
7
|
-
import { Page, type PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as MetricsAPI from "./metrics";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class Metrics extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../../
|
|
4
|
-
import { APIResource } from "../../
|
|
5
|
-
import { isRequestOptions } from "../../
|
|
6
|
-
import * as ExternalPlanIDAPI from "
|
|
7
|
-
import * as PlansAPI from "
|
|
3
|
+
import * as Core from "../../core";
|
|
4
|
+
import { APIResource } from "../../resource";
|
|
5
|
+
import { isRequestOptions } from "../../core";
|
|
6
|
+
import * as ExternalPlanIDAPI from "./external-plan-id";
|
|
7
|
+
import * as PlansAPI from "./plans";
|
|
8
8
|
|
|
9
9
|
export class ExternalPlanID extends APIResource {
|
|
10
10
|
/**
|