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.
Files changed (175) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js +2 -2
  6. package/index.js.map +1 -1
  7. package/index.mjs +2 -2
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/alerts.d.ts +4 -4
  11. package/resources/alerts.d.ts.map +1 -1
  12. package/resources/alerts.js +4 -4
  13. package/resources/alerts.js.map +1 -1
  14. package/resources/alerts.mjs +4 -4
  15. package/resources/alerts.mjs.map +1 -1
  16. package/resources/coupons/coupons.d.ts +5 -5
  17. package/resources/coupons/coupons.d.ts.map +1 -1
  18. package/resources/coupons/coupons.js +5 -5
  19. package/resources/coupons/coupons.js.map +1 -1
  20. package/resources/coupons/coupons.mjs +5 -5
  21. package/resources/coupons/coupons.mjs.map +1 -1
  22. package/resources/coupons/subscriptions.d.ts +6 -6
  23. package/resources/coupons/subscriptions.d.ts.map +1 -1
  24. package/resources/coupons/subscriptions.js +3 -3
  25. package/resources/coupons/subscriptions.js.map +1 -1
  26. package/resources/coupons/subscriptions.mjs +3 -3
  27. package/resources/coupons/subscriptions.mjs.map +1 -1
  28. package/resources/credit-notes.d.ts +34 -34
  29. package/resources/credit-notes.d.ts.map +1 -1
  30. package/resources/credit-notes.js +4 -4
  31. package/resources/credit-notes.js.map +1 -1
  32. package/resources/credit-notes.mjs +4 -4
  33. package/resources/credit-notes.mjs.map +1 -1
  34. package/resources/customers/balance-transactions.d.ts +4 -4
  35. package/resources/customers/balance-transactions.d.ts.map +1 -1
  36. package/resources/customers/balance-transactions.js +4 -4
  37. package/resources/customers/balance-transactions.js.map +1 -1
  38. package/resources/customers/balance-transactions.mjs +4 -4
  39. package/resources/customers/balance-transactions.mjs.map +1 -1
  40. package/resources/customers/costs.d.ts +4 -4
  41. package/resources/customers/costs.d.ts.map +1 -1
  42. package/resources/customers/costs.js +2 -2
  43. package/resources/customers/costs.js.map +1 -1
  44. package/resources/customers/costs.mjs +2 -2
  45. package/resources/customers/costs.mjs.map +1 -1
  46. package/resources/customers/credits/credits.d.ts +6 -6
  47. package/resources/customers/credits/credits.d.ts.map +1 -1
  48. package/resources/customers/credits/credits.js +6 -6
  49. package/resources/customers/credits/credits.js.map +1 -1
  50. package/resources/customers/credits/credits.mjs +6 -6
  51. package/resources/customers/credits/credits.mjs.map +1 -1
  52. package/resources/customers/credits/ledger.d.ts +4 -4
  53. package/resources/customers/credits/ledger.d.ts.map +1 -1
  54. package/resources/customers/credits/ledger.js +4 -4
  55. package/resources/customers/credits/ledger.js.map +1 -1
  56. package/resources/customers/credits/ledger.mjs +4 -4
  57. package/resources/customers/credits/ledger.mjs.map +1 -1
  58. package/resources/customers/credits/top-ups.d.ts +4 -4
  59. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  60. package/resources/customers/credits/top-ups.js +4 -4
  61. package/resources/customers/credits/top-ups.js.map +1 -1
  62. package/resources/customers/credits/top-ups.mjs +4 -4
  63. package/resources/customers/credits/top-ups.mjs.map +1 -1
  64. package/resources/customers/customers.d.ts +8 -8
  65. package/resources/customers/customers.d.ts.map +1 -1
  66. package/resources/customers/customers.js +8 -8
  67. package/resources/customers/customers.js.map +1 -1
  68. package/resources/customers/customers.mjs +8 -8
  69. package/resources/customers/customers.mjs.map +1 -1
  70. package/resources/customers/usage.d.ts +3 -3
  71. package/resources/customers/usage.d.ts.map +1 -1
  72. package/resources/customers/usage.js +1 -1
  73. package/resources/customers/usage.js.map +1 -1
  74. package/resources/customers/usage.mjs +1 -1
  75. package/resources/customers/usage.mjs.map +1 -1
  76. package/resources/events/backfills.d.ts +4 -4
  77. package/resources/events/backfills.d.ts.map +1 -1
  78. package/resources/events/backfills.js +4 -4
  79. package/resources/events/backfills.js.map +1 -1
  80. package/resources/events/backfills.mjs +4 -4
  81. package/resources/events/backfills.mjs.map +1 -1
  82. package/resources/events/events.d.ts +4 -4
  83. package/resources/events/events.d.ts.map +1 -1
  84. package/resources/events/events.js +2 -2
  85. package/resources/events/events.js.map +1 -1
  86. package/resources/events/events.mjs +2 -2
  87. package/resources/events/events.mjs.map +1 -1
  88. package/resources/invoice-line-items.d.ts +5 -5
  89. package/resources/invoice-line-items.d.ts.map +1 -1
  90. package/resources/invoice-line-items.js +1 -1
  91. package/resources/invoice-line-items.js.map +1 -1
  92. package/resources/invoice-line-items.mjs +1 -1
  93. package/resources/invoice-line-items.mjs.map +1 -1
  94. package/resources/invoices.d.ts +6 -6
  95. package/resources/invoices.d.ts.map +1 -1
  96. package/resources/invoices.js +4 -4
  97. package/resources/invoices.js.map +1 -1
  98. package/resources/invoices.mjs +4 -4
  99. package/resources/invoices.mjs.map +1 -1
  100. package/resources/items.d.ts +4 -4
  101. package/resources/items.d.ts.map +1 -1
  102. package/resources/items.js +4 -4
  103. package/resources/items.js.map +1 -1
  104. package/resources/items.mjs +4 -4
  105. package/resources/items.mjs.map +1 -1
  106. package/resources/metrics.d.ts +5 -5
  107. package/resources/metrics.d.ts.map +1 -1
  108. package/resources/metrics.js +4 -4
  109. package/resources/metrics.js.map +1 -1
  110. package/resources/metrics.mjs +4 -4
  111. package/resources/metrics.mjs.map +1 -1
  112. package/resources/plans/external-plan-id.d.ts +4 -4
  113. package/resources/plans/external-plan-id.d.ts.map +1 -1
  114. package/resources/plans/external-plan-id.js +2 -2
  115. package/resources/plans/external-plan-id.js.map +1 -1
  116. package/resources/plans/external-plan-id.mjs +2 -2
  117. package/resources/plans/external-plan-id.mjs.map +1 -1
  118. package/resources/plans/plans.d.ts +7 -7
  119. package/resources/plans/plans.d.ts.map +1 -1
  120. package/resources/plans/plans.js +5 -5
  121. package/resources/plans/plans.js.map +1 -1
  122. package/resources/plans/plans.mjs +5 -5
  123. package/resources/plans/plans.mjs.map +1 -1
  124. package/resources/prices/external-price-id.d.ts +3 -3
  125. package/resources/prices/external-price-id.d.ts.map +1 -1
  126. package/resources/prices/external-price-id.js +1 -1
  127. package/resources/prices/external-price-id.js.map +1 -1
  128. package/resources/prices/external-price-id.mjs +1 -1
  129. package/resources/prices/external-price-id.mjs.map +1 -1
  130. package/resources/prices/prices.d.ts +6 -6
  131. package/resources/prices/prices.d.ts.map +1 -1
  132. package/resources/prices/prices.js +5 -5
  133. package/resources/prices/prices.js.map +1 -1
  134. package/resources/prices/prices.mjs +5 -5
  135. package/resources/prices/prices.mjs.map +1 -1
  136. package/resources/subscriptions.d.ts +8 -8
  137. package/resources/subscriptions.d.ts.map +1 -1
  138. package/resources/subscriptions.js +4 -4
  139. package/resources/subscriptions.js.map +1 -1
  140. package/resources/subscriptions.mjs +4 -4
  141. package/resources/subscriptions.mjs.map +1 -1
  142. package/resources/top-level.d.ts +3 -3
  143. package/resources/top-level.d.ts.map +1 -1
  144. package/resources/top-level.js +1 -1
  145. package/resources/top-level.js.map +1 -1
  146. package/resources/top-level.mjs +1 -1
  147. package/resources/top-level.mjs.map +1 -1
  148. package/src/index.ts +2 -2
  149. package/src/resources/alerts.ts +5 -5
  150. package/src/resources/coupons/coupons.ts +6 -6
  151. package/src/resources/coupons/subscriptions.ts +7 -7
  152. package/src/resources/credit-notes.ts +51 -51
  153. package/src/resources/customers/balance-transactions.ts +5 -5
  154. package/src/resources/customers/costs.ts +5 -5
  155. package/src/resources/customers/credits/credits.ts +7 -7
  156. package/src/resources/customers/credits/ledger.ts +5 -5
  157. package/src/resources/customers/credits/top-ups.ts +5 -5
  158. package/src/resources/customers/customers.ts +9 -9
  159. package/src/resources/customers/usage.ts +3 -3
  160. package/src/resources/events/backfills.ts +5 -5
  161. package/src/resources/events/events.ts +4 -4
  162. package/src/resources/invoice-line-items.ts +5 -5
  163. package/src/resources/invoices.ts +7 -7
  164. package/src/resources/items.ts +5 -5
  165. package/src/resources/metrics.ts +6 -6
  166. package/src/resources/plans/external-plan-id.ts +5 -5
  167. package/src/resources/plans/plans.ts +8 -8
  168. package/src/resources/prices/external-price-id.ts +3 -3
  169. package/src/resources/prices/prices.ts +7 -7
  170. package/src/resources/subscriptions.ts +9 -9
  171. package/src/resources/top-level.ts +3 -3
  172. package/src/version.ts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
@@ -1,6 +1,6 @@
1
- import * as Core from 'orb-billing/core';
2
- import { APIResource } from 'orb-billing/resource';
3
- import * as TopLevelAPI from 'orb-billing/resources/top-level';
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,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAE/D,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"}
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"}
@@ -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("orb-billing/resource");
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,mDAAmD;AAGnD,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"}
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"}
@@ -1,5 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from 'orb-billing/resource';
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,MAAM,sBAAsB;AAGlD,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"}
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 "./pagination";
9
- import * as API from "./resources/index";
8
+ import * as Pagination from './pagination';
9
+ import * as API from './resources/index';
10
10
 
11
11
  export interface ClientOptions {
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 "../core";
4
- import { APIResource } from "../resource";
5
- import { isRequestOptions } from "../core";
6
- import * as AlertsAPI from "./alerts";
7
- import { Page, type PageParams } from "../pagination";
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 "../../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";
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 "../../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";
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 "../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";
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 "../../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";
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 "../../core";
4
- import { APIResource } from "../../resource";
5
- import { isRequestOptions } from "../../core";
6
- import * as CostsAPI from "./costs";
7
- import * as PricesAPI from "../prices/prices";
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 "../../../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";
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 "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import * as LedgerAPI from "./ledger";
7
- import { Page, type PageParams } from "../../../pagination";
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 "../../../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";
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 "../../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";
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 "../../core";
4
- import { APIResource } from "../../resource";
5
- import * as UsageAPI from "./usage";
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 "../../core";
4
- import { APIResource } from "../../resource";
5
- import { isRequestOptions } from "../../core";
6
- import * as BackfillsAPI from "./backfills";
7
- import { Page, type PageParams } from "../../pagination";
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 "../../core";
4
- import { APIResource } from "../../resource";
5
- import * as EventsAPI from "./events";
6
- import * as BackfillsAPI from "./backfills";
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 "../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";
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 "../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";
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
  /**
@@ -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 "../core";
4
- import { APIResource } from "../resource";
5
- import { isRequestOptions } from "../core";
6
- import * as ItemsAPI from "./items";
7
- import { Page, type PageParams } from "../pagination";
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
  /**
@@ -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 "../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";
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 "../../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";
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 "../../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";
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 "../../core";
4
- import { APIResource } from "../../resource";
5
- import * as PricesAPI from "./prices";
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 "../../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";
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 "../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";
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 "../core";
4
- import { APIResource } from "../resource";
5
- import * as TopLevelAPI from "./top-level";
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.7.0'; // x-release-please-version
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.7.0";
1
+ export declare const VERSION = "2.8.0";
2
2
  //# sourceMappingURL=version.d.ts.map