orb-billing 2.7.0 → 2.9.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 +31 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/index.mjs +2 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +4 -4
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +4 -4
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +4 -4
- package/resources/alerts.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +5 -5
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +5 -5
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +5 -5
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +6 -6
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +3 -3
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +3 -3
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.d.ts +34 -34
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +4 -4
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +4 -4
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +4 -4
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +4 -4
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +4 -4
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +4 -4
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +2 -2
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +2 -2
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +6 -6
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +6 -6
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +6 -6
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +4 -4
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +4 -4
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +4 -4
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +4 -4
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +4 -4
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +4 -4
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +8 -8
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +8 -8
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +8 -8
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/usage.d.ts +3 -3
- package/resources/customers/usage.d.ts.map +1 -1
- package/resources/customers/usage.js +1 -1
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +1 -1
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/backfills.d.ts +4 -4
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +4 -4
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +4 -4
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +4 -4
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +2 -2
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +2 -2
- package/resources/events/events.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +5 -5
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +6 -6
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +4 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +4 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +4 -4
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +4 -4
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +4 -4
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +5 -5
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +4 -4
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +4 -4
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +4 -4
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +2 -2
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +2 -2
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/plans.d.ts +7 -7
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -5
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -5
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +3 -3
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +1 -1
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +1 -1
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/prices.d.ts +6 -6
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +5 -5
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +5 -5
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +114 -8
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +4 -4
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +4 -4
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.d.ts +3 -3
- package/resources/top-level.d.ts.map +1 -1
- package/resources/top-level.js +1 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +1 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/index.ts +2 -2
- package/src/resources/alerts.ts +5 -5
- package/src/resources/coupons/coupons.ts +6 -6
- package/src/resources/coupons/subscriptions.ts +7 -7
- package/src/resources/credit-notes.ts +51 -51
- package/src/resources/customers/balance-transactions.ts +5 -5
- package/src/resources/customers/costs.ts +5 -5
- package/src/resources/customers/credits/credits.ts +7 -7
- package/src/resources/customers/credits/ledger.ts +5 -5
- package/src/resources/customers/credits/top-ups.ts +5 -5
- package/src/resources/customers/customers.ts +9 -9
- package/src/resources/customers/usage.ts +3 -3
- package/src/resources/events/backfills.ts +5 -5
- package/src/resources/events/events.ts +4 -4
- package/src/resources/invoice-line-items.ts +5 -5
- package/src/resources/invoices.ts +7 -7
- package/src/resources/items.ts +5 -5
- package/src/resources/metrics.ts +6 -6
- package/src/resources/plans/external-plan-id.ts +5 -5
- package/src/resources/plans/plans.ts +8 -8
- package/src/resources/prices/external-price-id.ts +3 -3
- package/src/resources/prices/prices.ts +7 -7
- package/src/resources/subscriptions.ts +147 -9
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as BalanceTransactionsAPI 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 BalanceTransactionsAPI from './balance-transactions';
|
|
7
|
+
import { Page, type PageParams } from '../../pagination';
|
|
8
8
|
|
|
9
9
|
export class BalanceTransactions extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as CostsAPI from
|
|
7
|
-
import * as PricesAPI from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../core';
|
|
6
|
+
import * as CostsAPI from './costs';
|
|
7
|
+
import * as PricesAPI from '../prices/prices';
|
|
8
8
|
|
|
9
9
|
export class Costs extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as CreditsAPI from
|
|
7
|
-
import * as LedgerAPI from
|
|
8
|
-
import * as TopUpsAPI from
|
|
9
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../../../core';
|
|
4
|
+
import { APIResource } from '../../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../../core';
|
|
6
|
+
import * as CreditsAPI from './credits';
|
|
7
|
+
import * as LedgerAPI from './ledger';
|
|
8
|
+
import * as TopUpsAPI from './top-ups';
|
|
9
|
+
import { Page, type PageParams } from '../../../pagination';
|
|
10
10
|
|
|
11
11
|
export class Credits extends APIResource {
|
|
12
12
|
ledger: LedgerAPI.Ledger = new LedgerAPI.Ledger(this._client);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as LedgerAPI 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 LedgerAPI from './ledger';
|
|
7
|
+
import { Page, type PageParams } from '../../../pagination';
|
|
8
8
|
|
|
9
9
|
export class Ledger extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as TopUpsAPI 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 TopUpsAPI from './top-ups';
|
|
7
|
+
import { Page, type PageParams } from '../../../pagination';
|
|
8
8
|
|
|
9
9
|
export class TopUps extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as CustomersAPI from
|
|
7
|
-
import * as BalanceTransactionsAPI from
|
|
8
|
-
import * as CostsAPI from
|
|
9
|
-
import * as UsageAPI from
|
|
10
|
-
import * as CreditsAPI from
|
|
11
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../core';
|
|
6
|
+
import * as CustomersAPI from './customers';
|
|
7
|
+
import * as BalanceTransactionsAPI from './balance-transactions';
|
|
8
|
+
import * as CostsAPI from './costs';
|
|
9
|
+
import * as UsageAPI from './usage';
|
|
10
|
+
import * as CreditsAPI from './credits/credits';
|
|
11
|
+
import { Page, type PageParams } from '../../pagination';
|
|
12
12
|
|
|
13
13
|
export class Customers extends APIResource {
|
|
14
14
|
costs: CostsAPI.Costs = new CostsAPI.Costs(this._client);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as UsageAPI from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import * as UsageAPI from './usage';
|
|
6
6
|
|
|
7
7
|
export class Usage extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as BackfillsAPI 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 BackfillsAPI from './backfills';
|
|
7
|
+
import { Page, type PageParams } from '../../pagination';
|
|
8
8
|
|
|
9
9
|
export class Backfills extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as EventsAPI from
|
|
6
|
-
import * as BackfillsAPI from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import * as EventsAPI from './events';
|
|
6
|
+
import * as BackfillsAPI from './backfills';
|
|
7
7
|
|
|
8
8
|
export class Events extends APIResource {
|
|
9
9
|
backfills: BackfillsAPI.Backfills = new BackfillsAPI.Backfills(this._client);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as InvoiceLineItemsAPI from
|
|
6
|
-
import * as Shared from
|
|
7
|
-
import * as PricesAPI from
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import * as InvoiceLineItemsAPI from './invoice-line-items';
|
|
6
|
+
import * as Shared from './shared';
|
|
7
|
+
import * as PricesAPI from './prices/prices';
|
|
8
8
|
|
|
9
9
|
export class InvoiceLineItems extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as InvoicesAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as PricesAPI from
|
|
9
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import { isRequestOptions } from '../core';
|
|
6
|
+
import * as InvoicesAPI from './invoices';
|
|
7
|
+
import * as Shared from './shared';
|
|
8
|
+
import * as PricesAPI from './prices/prices';
|
|
9
|
+
import { Page, type PageParams } from '../pagination';
|
|
10
10
|
|
|
11
11
|
export class Invoices extends APIResource {
|
|
12
12
|
/**
|
package/src/resources/items.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
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,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as MetricsAPI from
|
|
7
|
-
import * as ItemsAPI from
|
|
8
|
-
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 * as ItemsAPI from './items';
|
|
8
|
+
import { Page, type PageParams } from '../pagination';
|
|
9
9
|
|
|
10
10
|
export class Metrics extends APIResource {
|
|
11
11
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
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
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as PlansAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as ExternalPlanIDAPI from
|
|
9
|
-
import * as PricesAPI from
|
|
10
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../core';
|
|
6
|
+
import * as PlansAPI from './plans';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import * as ExternalPlanIDAPI from './external-plan-id';
|
|
9
|
+
import * as PricesAPI from '../prices/prices';
|
|
10
|
+
import { Page, type PageParams } from '../../pagination';
|
|
11
11
|
|
|
12
12
|
export class Plans extends APIResource {
|
|
13
13
|
externalPlanId: ExternalPlanIDAPI.ExternalPlanID = new ExternalPlanIDAPI.ExternalPlanID(this._client);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as PricesAPI from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import * as PricesAPI from './prices';
|
|
6
6
|
|
|
7
7
|
export class ExternalPriceID extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as PricesAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as ExternalPriceIDAPI from
|
|
9
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../core';
|
|
6
|
+
import * as PricesAPI from './prices';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import * as ExternalPriceIDAPI from './external-price-id';
|
|
9
|
+
import { Page, type PageParams } from '../../pagination';
|
|
10
10
|
|
|
11
11
|
export class Prices extends APIResource {
|
|
12
12
|
externalPriceId: ExternalPriceIDAPI.ExternalPriceID = new ExternalPriceIDAPI.ExternalPriceID(this._client);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as SubscriptionsAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as CustomersAPI from
|
|
9
|
-
import * as PlansAPI from
|
|
10
|
-
import * as PricesAPI from
|
|
11
|
-
import { Page, type PageParams } from
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import { isRequestOptions } from '../core';
|
|
6
|
+
import * as SubscriptionsAPI from './subscriptions';
|
|
7
|
+
import * as Shared from './shared';
|
|
8
|
+
import * as CustomersAPI from './customers/customers';
|
|
9
|
+
import * as PlansAPI from './plans/plans';
|
|
10
|
+
import * as PricesAPI from './prices/prices';
|
|
11
|
+
import { Page, type PageParams } from '../pagination';
|
|
12
12
|
|
|
13
13
|
export class Subscriptions extends APIResource {
|
|
14
14
|
/**
|
|
@@ -1071,6 +1071,11 @@ export interface Subscription {
|
|
|
1071
1071
|
*/
|
|
1072
1072
|
active_plan_phase_order: number | null;
|
|
1073
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* The adjustment intervals for this subscription.
|
|
1076
|
+
*/
|
|
1077
|
+
adjustment_intervals: Array<Subscription.AdjustmentInterval>;
|
|
1078
|
+
|
|
1074
1079
|
/**
|
|
1075
1080
|
* Determines whether issued invoices for this subscription will automatically be
|
|
1076
1081
|
* charged with the saved payment method on the due date. This property defaults to
|
|
@@ -1201,6 +1206,139 @@ export interface Subscription {
|
|
|
1201
1206
|
}
|
|
1202
1207
|
|
|
1203
1208
|
export namespace Subscription {
|
|
1209
|
+
export interface AdjustmentInterval {
|
|
1210
|
+
id: string;
|
|
1211
|
+
|
|
1212
|
+
adjustment:
|
|
1213
|
+
| AdjustmentInterval.AmountDiscountAdjustment
|
|
1214
|
+
| AdjustmentInterval.PercentageDiscountAdjustment
|
|
1215
|
+
| AdjustmentInterval.UsageDiscountAdjustment
|
|
1216
|
+
| AdjustmentInterval.MinimumAdjustment
|
|
1217
|
+
| AdjustmentInterval.MaximumAdjustment;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* The price interval IDs that this adjustment applies to.
|
|
1221
|
+
*/
|
|
1222
|
+
applies_to_price_interval_ids: Array<string>;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The end date of the adjustment interval.
|
|
1226
|
+
*/
|
|
1227
|
+
end_date: string | null;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* The start date of the adjustment interval.
|
|
1231
|
+
*/
|
|
1232
|
+
start_date: string;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export namespace AdjustmentInterval {
|
|
1236
|
+
export interface AmountDiscountAdjustment {
|
|
1237
|
+
adjustment_type: 'amount_discount';
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* The amount by which to discount the prices this adjustment applies to in a given
|
|
1241
|
+
* billing period.
|
|
1242
|
+
*/
|
|
1243
|
+
amount_discount: string;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* The price IDs that this adjustment applies to.
|
|
1247
|
+
*/
|
|
1248
|
+
applies_to_price_ids: Array<string>;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* The reason for the adjustment.
|
|
1252
|
+
*/
|
|
1253
|
+
reason: string | null;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export interface PercentageDiscountAdjustment {
|
|
1257
|
+
adjustment_type: 'percentage_discount';
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* The price IDs that this adjustment applies to.
|
|
1261
|
+
*/
|
|
1262
|
+
applies_to_price_ids: Array<string>;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* The percentage (as a value between 0 and 1) by which to discount the price
|
|
1266
|
+
* intervals this adjustment applies to in a given billing period.
|
|
1267
|
+
*/
|
|
1268
|
+
percentage_discount: number;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* The reason for the adjustment.
|
|
1272
|
+
*/
|
|
1273
|
+
reason: string | null;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
export interface UsageDiscountAdjustment {
|
|
1277
|
+
adjustment_type: 'usage_discount';
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* The price IDs that this adjustment applies to.
|
|
1281
|
+
*/
|
|
1282
|
+
applies_to_price_ids: Array<string>;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* The reason for the adjustment.
|
|
1286
|
+
*/
|
|
1287
|
+
reason: string | null;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* The number of usage units by which to discount the price this adjustment applies
|
|
1291
|
+
* to in a given billing period.
|
|
1292
|
+
*/
|
|
1293
|
+
usage_discount: number;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export interface MinimumAdjustment {
|
|
1297
|
+
adjustment_type: 'minimum';
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* The price IDs that this adjustment applies to.
|
|
1301
|
+
*/
|
|
1302
|
+
applies_to_price_ids: Array<string>;
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* The item ID that revenue from this minimum will be attributed to.
|
|
1306
|
+
*/
|
|
1307
|
+
item_id: string;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* The minimum amount to charge in a given billing period for the prices this
|
|
1311
|
+
* adjustment applies to.
|
|
1312
|
+
*/
|
|
1313
|
+
minimum_amount: string;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* The reason for the adjustment.
|
|
1317
|
+
*/
|
|
1318
|
+
reason: string | null;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export interface MaximumAdjustment {
|
|
1322
|
+
adjustment_type: 'maximum';
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* The price IDs that this adjustment applies to.
|
|
1326
|
+
*/
|
|
1327
|
+
applies_to_price_ids: Array<string>;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* The maximum amount to charge in a given billing period for the prices this
|
|
1331
|
+
* adjustment applies to.
|
|
1332
|
+
*/
|
|
1333
|
+
maximum_amount: string;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* The reason for the adjustment.
|
|
1337
|
+
*/
|
|
1338
|
+
reason: string | null;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1204
1342
|
export interface AmountDiscountInterval {
|
|
1205
1343
|
/**
|
|
1206
1344
|
* Only available if discount_type is `amount`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as TopLevelAPI from
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import * as TopLevelAPI from './top-level';
|
|
6
6
|
|
|
7
7
|
export class TopLevel extends APIResource {
|
|
8
8
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.9.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|