orb-billing 2.7.0 → 2.8.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 +13 -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 +8 -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 +9 -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
package/resources/top-level.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Core from
|
|
2
|
-
import { APIResource } from
|
|
3
|
-
import * as TopLevelAPI from
|
|
1
|
+
import * as Core from "../core.js";
|
|
2
|
+
import { APIResource } from "../resource.js";
|
|
3
|
+
import * as TopLevelAPI from "./top-level.js";
|
|
4
4
|
export declare class TopLevel extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint allows you to test your connection to the Orb API and check the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-level.d.ts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"top-level.d.ts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAG3E;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,QAAQ,CAAC;IACxB,MAAM,QAAQ,oBAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAC;CACvE"}
|
package/resources/top-level.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.TopLevel = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
6
|
class TopLevel extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* This endpoint allows you to test your connection to the Orb API and check the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-level.js","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,
|
|
1
|
+
{"version":3,"file":"top-level.js","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF;AAZD,4BAYC;AAMD,WAAiB,QAAQ;AAEzB,CAAC,EAFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAExB"}
|
package/resources/top-level.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class TopLevel extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* This endpoint allows you to test your connection to the Orb API and check the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-level.mjs","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"top-level.mjs","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF;AAMD,WAAiB,QAAQ;AAEzB,CAAC,EAFgB,QAAQ,KAAR,QAAQ,QAExB"}
|
package/src/index.ts
CHANGED
|
@@ -5,8 +5,8 @@ import * as Errors from './error';
|
|
|
5
5
|
import { type Agent } from './_shims/index';
|
|
6
6
|
import * as Uploads from './uploads';
|
|
7
7
|
import * as qs from 'qs';
|
|
8
|
-
import * as Pagination from
|
|
9
|
-
import * as API from
|
|
8
|
+
import * as Pagination from './pagination';
|
|
9
|
+
import * as API from './resources/index';
|
|
10
10
|
|
|
11
11
|
export interface ClientOptions {
|
|
12
12
|
/**
|
package/src/resources/alerts.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 AlertsAPI 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 AlertsAPI from './alerts';
|
|
7
|
+
import { Page, type PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Alerts extends APIResource {
|
|
10
10
|
/**
|
|
@@ -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 CouponsAPI from
|
|
7
|
-
import * as SubscriptionsAPI 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 CouponsAPI from './coupons';
|
|
7
|
+
import * as SubscriptionsAPI from './subscriptions';
|
|
8
|
+
import { Page, type PageParams } from '../../pagination';
|
|
9
9
|
|
|
10
10
|
export class Coupons extends APIResource {
|
|
11
11
|
subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
@@ -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 CouponsSubscriptionsAPI from
|
|
7
|
-
import * as SubscriptionsAPI from
|
|
8
|
-
import { SubscriptionsPage } from
|
|
9
|
-
import { type PageParams } from
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import { isRequestOptions } from '../../core';
|
|
6
|
+
import * as CouponsSubscriptionsAPI from './subscriptions';
|
|
7
|
+
import * as SubscriptionsAPI from '../subscriptions';
|
|
8
|
+
import { SubscriptionsPage } from '../subscriptions';
|
|
9
|
+
import { type PageParams } from '../../pagination';
|
|
10
10
|
|
|
11
11
|
export class Subscriptions extends APIResource {
|
|
12
12
|
/**
|
|
@@ -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 CreditNotesAPI 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 CreditNotesAPI from './credit-notes';
|
|
7
|
+
import { Page, type PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class CreditNotes extends APIResource {
|
|
10
10
|
/**
|
|
@@ -65,11 +65,6 @@ export interface CreditNote {
|
|
|
65
65
|
|
|
66
66
|
customer: CreditNote.Customer;
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* Any discounts applied on the original invoice.
|
|
70
|
-
*/
|
|
71
|
-
discounts: Array<CreditNote.Discount>;
|
|
72
|
-
|
|
73
68
|
/**
|
|
74
69
|
* The id of the invoice resource that this credit note is applied to.
|
|
75
70
|
*/
|
|
@@ -113,6 +108,11 @@ export interface CreditNote {
|
|
|
113
108
|
* The time at which the credit note was voided in Orb, if applicable.
|
|
114
109
|
*/
|
|
115
110
|
voided_at: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Any discounts applied on the original invoice.
|
|
114
|
+
*/
|
|
115
|
+
discounts?: Array<CreditNote.Discount>;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export namespace CreditNote {
|
|
@@ -122,26 +122,6 @@ export namespace CreditNote {
|
|
|
122
122
|
external_customer_id: string | null;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
export interface Discount {
|
|
126
|
-
amount_applied: string;
|
|
127
|
-
|
|
128
|
-
discount_type: 'percentage';
|
|
129
|
-
|
|
130
|
-
percentage_discount: number;
|
|
131
|
-
|
|
132
|
-
applies_to_prices?: Array<Discount.AppliesToPrice> | null;
|
|
133
|
-
|
|
134
|
-
reason?: string | null;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export namespace Discount {
|
|
138
|
-
export interface AppliesToPrice {
|
|
139
|
-
id: string;
|
|
140
|
-
|
|
141
|
-
name: string;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
125
|
export interface LineItem {
|
|
146
126
|
/**
|
|
147
127
|
* The Orb id of this resource.
|
|
@@ -153,11 +133,6 @@ export namespace CreditNote {
|
|
|
153
133
|
*/
|
|
154
134
|
amount: string;
|
|
155
135
|
|
|
156
|
-
/**
|
|
157
|
-
* Any line item discounts from the invoice's line item.
|
|
158
|
-
*/
|
|
159
|
-
discounts: Array<LineItem.Discount>;
|
|
160
|
-
|
|
161
136
|
/**
|
|
162
137
|
* The name of the corresponding invoice line item.
|
|
163
138
|
*/
|
|
@@ -177,25 +152,14 @@ export namespace CreditNote {
|
|
|
177
152
|
* Any tax amounts applied onto the line item.
|
|
178
153
|
*/
|
|
179
154
|
tax_amounts: Array<LineItem.TaxAmount>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Any line item discounts from the invoice's line item.
|
|
158
|
+
*/
|
|
159
|
+
discounts?: Array<LineItem.Discount>;
|
|
180
160
|
}
|
|
181
161
|
|
|
182
162
|
export namespace LineItem {
|
|
183
|
-
export interface Discount {
|
|
184
|
-
id: string;
|
|
185
|
-
|
|
186
|
-
amount_applied: string;
|
|
187
|
-
|
|
188
|
-
applies_to_price_ids: Array<string>;
|
|
189
|
-
|
|
190
|
-
discount_type: 'percentage' | 'amount';
|
|
191
|
-
|
|
192
|
-
percentage_discount: number;
|
|
193
|
-
|
|
194
|
-
amount_discount?: string | null;
|
|
195
|
-
|
|
196
|
-
reason?: string | null;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
163
|
export interface TaxAmount {
|
|
200
164
|
/**
|
|
201
165
|
* The amount of additional tax incurred by this tax rate.
|
|
@@ -212,6 +176,22 @@ export namespace CreditNote {
|
|
|
212
176
|
*/
|
|
213
177
|
tax_rate_percentage: string | null;
|
|
214
178
|
}
|
|
179
|
+
|
|
180
|
+
export interface Discount {
|
|
181
|
+
id: string;
|
|
182
|
+
|
|
183
|
+
amount_applied: string;
|
|
184
|
+
|
|
185
|
+
applies_to_price_ids: Array<string>;
|
|
186
|
+
|
|
187
|
+
discount_type: 'percentage' | 'amount';
|
|
188
|
+
|
|
189
|
+
percentage_discount: number;
|
|
190
|
+
|
|
191
|
+
amount_discount?: string | null;
|
|
192
|
+
|
|
193
|
+
reason?: string | null;
|
|
194
|
+
}
|
|
215
195
|
}
|
|
216
196
|
|
|
217
197
|
/**
|
|
@@ -236,6 +216,26 @@ export namespace CreditNote {
|
|
|
236
216
|
name: string;
|
|
237
217
|
}
|
|
238
218
|
}
|
|
219
|
+
|
|
220
|
+
export interface Discount {
|
|
221
|
+
amount_applied: string;
|
|
222
|
+
|
|
223
|
+
discount_type: 'percentage';
|
|
224
|
+
|
|
225
|
+
percentage_discount: number;
|
|
226
|
+
|
|
227
|
+
applies_to_prices?: Array<Discount.AppliesToPrice> | null;
|
|
228
|
+
|
|
229
|
+
reason?: string | null;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export namespace Discount {
|
|
233
|
+
export interface AppliesToPrice {
|
|
234
|
+
id: string;
|
|
235
|
+
|
|
236
|
+
name: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export interface CreditNoteListParams extends PageParams {}
|
|
@@ -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
|
/**
|
|
@@ -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.8.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.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|