orb-billing 4.73.0 → 5.0.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 (141) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +18 -30
  3. package/index.d.mts +148 -14
  4. package/index.d.ts +148 -14
  5. package/index.d.ts.map +1 -1
  6. package/index.js +0 -3
  7. package/index.js.map +1 -1
  8. package/index.mjs +3 -6
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/alerts.d.ts +20 -88
  12. package/resources/alerts.d.ts.map +1 -1
  13. package/resources/alerts.js.map +1 -1
  14. package/resources/alerts.mjs.map +1 -1
  15. package/resources/beta/beta.d.ts +9 -7313
  16. package/resources/beta/beta.d.ts.map +1 -1
  17. package/resources/beta/beta.js.map +1 -1
  18. package/resources/beta/beta.mjs.map +1 -1
  19. package/resources/beta/external-plan-id.d.ts +7 -7074
  20. package/resources/beta/external-plan-id.d.ts.map +1 -1
  21. package/resources/beta/external-plan-id.js.map +1 -1
  22. package/resources/beta/external-plan-id.mjs.map +1 -1
  23. package/resources/credit-notes.d.ts +9 -163
  24. package/resources/credit-notes.d.ts.map +1 -1
  25. package/resources/credit-notes.js +3 -6
  26. package/resources/credit-notes.js.map +1 -1
  27. package/resources/credit-notes.mjs +2 -4
  28. package/resources/credit-notes.mjs.map +1 -1
  29. package/resources/customers/balance-transactions.d.ts +5 -32
  30. package/resources/customers/balance-transactions.d.ts.map +1 -1
  31. package/resources/customers/balance-transactions.js.map +1 -1
  32. package/resources/customers/balance-transactions.mjs.map +1 -1
  33. package/resources/customers/costs.d.ts +3 -81
  34. package/resources/customers/costs.d.ts.map +1 -1
  35. package/resources/customers/credits/credits.d.ts +4 -4
  36. package/resources/customers/credits/credits.d.ts.map +1 -1
  37. package/resources/customers/credits/credits.js.map +1 -1
  38. package/resources/customers/credits/credits.mjs.map +1 -1
  39. package/resources/customers/credits/index.d.ts +2 -2
  40. package/resources/customers/credits/index.d.ts.map +1 -1
  41. package/resources/customers/credits/index.js.map +1 -1
  42. package/resources/customers/credits/index.mjs.map +1 -1
  43. package/resources/customers/credits/ledger.d.ts +171 -962
  44. package/resources/customers/credits/ledger.d.ts.map +1 -1
  45. package/resources/customers/credits/ledger.js.map +1 -1
  46. package/resources/customers/credits/ledger.mjs.map +1 -1
  47. package/resources/customers/credits/top-ups.d.ts +37 -117
  48. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  49. package/resources/customers/credits/top-ups.js.map +1 -1
  50. package/resources/customers/credits/top-ups.mjs.map +1 -1
  51. package/resources/customers/customers.d.ts +72 -678
  52. package/resources/customers/customers.d.ts.map +1 -1
  53. package/resources/customers/customers.js.map +1 -1
  54. package/resources/customers/customers.mjs.map +1 -1
  55. package/resources/customers/index.d.ts +1 -1
  56. package/resources/customers/index.d.ts.map +1 -1
  57. package/resources/customers/index.js.map +1 -1
  58. package/resources/customers/index.mjs.map +1 -1
  59. package/resources/events/events.d.ts +3 -3
  60. package/resources/events/events.d.ts.map +1 -1
  61. package/resources/index.d.ts +7 -7
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +1 -4
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +3 -3
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/invoice-line-items.d.ts +6 -395
  68. package/resources/invoice-line-items.d.ts.map +1 -1
  69. package/resources/invoice-line-items.js.map +1 -1
  70. package/resources/invoice-line-items.mjs.map +1 -1
  71. package/resources/invoices.d.ts +30 -1700
  72. package/resources/invoices.d.ts.map +1 -1
  73. package/resources/invoices.js +3 -6
  74. package/resources/invoices.js.map +1 -1
  75. package/resources/invoices.mjs +2 -4
  76. package/resources/invoices.mjs.map +1 -1
  77. package/resources/plans/plans.d.ts +7 -3801
  78. package/resources/plans/plans.d.ts.map +1 -1
  79. package/resources/plans/plans.js.map +1 -1
  80. package/resources/plans/plans.mjs.map +1 -1
  81. package/resources/prices/external-price-id.d.ts +3 -3
  82. package/resources/prices/external-price-id.d.ts.map +1 -1
  83. package/resources/prices/index.d.ts +1 -1
  84. package/resources/prices/index.d.ts.map +1 -1
  85. package/resources/prices/index.js +1 -2
  86. package/resources/prices/index.js.map +1 -1
  87. package/resources/prices/index.mjs +1 -1
  88. package/resources/prices/index.mjs.map +1 -1
  89. package/resources/prices/prices.d.ts +347 -9373
  90. package/resources/prices/prices.d.ts.map +1 -1
  91. package/resources/prices/prices.js +39 -20
  92. package/resources/prices/prices.js.map +1 -1
  93. package/resources/prices/prices.mjs +38 -18
  94. package/resources/prices/prices.mjs.map +1 -1
  95. package/resources/shared.d.ts +7269 -9
  96. package/resources/shared.d.ts.map +1 -1
  97. package/resources/shared.js +11 -0
  98. package/resources/shared.js.map +1 -1
  99. package/resources/shared.mjs +7 -1
  100. package/resources/shared.mjs.map +1 -1
  101. package/resources/subscription-changes.d.ts +138 -2158
  102. package/resources/subscription-changes.d.ts.map +1 -1
  103. package/resources/subscription-changes.js.map +1 -1
  104. package/resources/subscription-changes.mjs.map +1 -1
  105. package/resources/subscriptions.d.ts +2722 -26580
  106. package/resources/subscriptions.d.ts.map +1 -1
  107. package/resources/subscriptions.js +7 -1
  108. package/resources/subscriptions.js.map +1 -1
  109. package/resources/subscriptions.mjs +7 -1
  110. package/resources/subscriptions.mjs.map +1 -1
  111. package/src/index.ts +221 -40
  112. package/src/resources/alerts.ts +20 -94
  113. package/src/resources/beta/beta.ts +124 -8892
  114. package/src/resources/beta/external-plan-id.ts +118 -8593
  115. package/src/resources/credit-notes.ts +10 -217
  116. package/src/resources/customers/balance-transactions.ts +5 -36
  117. package/src/resources/customers/costs.ts +3 -101
  118. package/src/resources/customers/credits/credits.ts +18 -0
  119. package/src/resources/customers/credits/index.ts +9 -0
  120. package/src/resources/customers/credits/ledger.ts +212 -1435
  121. package/src/resources/customers/credits/top-ups.ts +41 -132
  122. package/src/resources/customers/customers.ts +162 -1454
  123. package/src/resources/customers/index.ts +8 -0
  124. package/src/resources/events/events.ts +3 -3
  125. package/src/resources/index.ts +43 -21
  126. package/src/resources/invoice-line-items.ts +10 -501
  127. package/src/resources/invoices.ts +60 -2394
  128. package/src/resources/plans/plans.ts +38 -4588
  129. package/src/resources/prices/external-price-id.ts +3 -3
  130. package/src/resources/prices/index.ts +2 -2
  131. package/src/resources/prices/prices.ts +501 -11811
  132. package/src/resources/shared.ts +9582 -22
  133. package/src/resources/subscription-changes.ts +171 -2670
  134. package/src/resources/subscriptions.ts +3175 -31993
  135. package/src/version.ts +1 -1
  136. package/version.d.ts +1 -1
  137. package/version.d.ts.map +1 -1
  138. package/version.js +1 -1
  139. package/version.js.map +1 -1
  140. package/version.mjs +1 -1
  141. package/version.mjs.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.0.0 (2025-06-09)
4
+
5
+ Full Changelog: [v4.74.0...v5.0.0](https://github.com/orbcorp/orb-node/compare/v4.74.0...v5.0.0)
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ * **client:** breaking change to re-use types
10
+
11
+ ### Features
12
+
13
+ * **api:** api update ([f568653](https://github.com/orbcorp/orb-node/commit/f5686531660890c996aed2bcd3fbfdbf6ba71013))
14
+ * **api:** api update ([4c28249](https://github.com/orbcorp/orb-node/commit/4c28249f71e8a9aa3d75ac9a448ebb6f70301af2))
15
+ * **api:** api update ([9dc5bb3](https://github.com/orbcorp/orb-node/commit/9dc5bb3e4d0e2005691b3a886591a317bd84a60a))
16
+ * **api:** api update ([9328fae](https://github.com/orbcorp/orb-node/commit/9328faed43114dfe9f4fead3e6da314f6e626d33))
17
+ * **api:** api update ([44e9c35](https://github.com/orbcorp/orb-node/commit/44e9c35fb3b805cccb264647d7686fa00dd2a71b))
18
+ * **api:** manual updates ([8cc1c0b](https://github.com/orbcorp/orb-node/commit/8cc1c0bfb17d0ec2537e9470340a7926df177a28))
19
+ * **client:** breaking change to re-use types ([17a06ae](https://github.com/orbcorp/orb-node/commit/17a06aea5f1edb125fb033156a8eb76c6510cd76))
20
+
21
+
22
+ ### Chores
23
+
24
+ * **internal:** codegen related update ([89ce8ec](https://github.com/orbcorp/orb-node/commit/89ce8ecf96b39394f17eb8b7735cc710d0e50cc4))
25
+
26
+ ## 4.74.0 (2025-06-03)
27
+
28
+ Full Changelog: [v4.73.0...v4.74.0](https://github.com/orbcorp/orb-node/compare/v4.73.0...v4.74.0)
29
+
30
+ ### Features
31
+
32
+ * **api:** api update ([011d28e](https://github.com/orbcorp/orb-node/commit/011d28ea580b817c6ddfed2189784f3e96298a2e))
33
+ * **api:** api update ([7e37115](https://github.com/orbcorp/orb-node/commit/7e3711516a3d51a16c8aac0e821eae40ab73815b))
34
+
35
+
36
+ ### Chores
37
+
38
+ * **docs:** use top-level-await in example snippets ([28bedd6](https://github.com/orbcorp/orb-node/commit/28bedd68f0eac7f3cc10ff55bb4a0afb46c9294a))
39
+
3
40
  ## 4.73.0 (2025-05-28)
4
41
 
5
42
  Full Changelog: [v4.72.3...v4.73.0](https://github.com/orbcorp/orb-node/compare/v4.72.3...v4.73.0)
package/README.md CHANGED
@@ -24,16 +24,12 @@ const client = new Orb({
24
24
  apiKey: process.env['ORB_API_KEY'], // This is the default and can be omitted
25
25
  });
26
26
 
27
- async function main() {
28
- const customer = await client.customers.create({
29
- email: 'example-customer@withorb.com',
30
- name: 'My Customer',
31
- });
32
-
33
- console.log(customer.id);
34
- }
27
+ const customer = await client.customers.create({
28
+ email: 'example-customer@withorb.com',
29
+ name: 'My Customer',
30
+ });
35
31
 
36
- main();
32
+ console.log(customer.id);
37
33
  ```
38
34
 
39
35
  ### Request & Response types
@@ -48,12 +44,8 @@ const client = new Orb({
48
44
  apiKey: process.env['ORB_API_KEY'], // This is the default and can be omitted
49
45
  });
50
46
 
51
- async function main() {
52
- const params: Orb.CustomerCreateParams = { email: 'example-customer@withorb.com', name: 'My Customer' };
53
- const customer: Orb.Customer = await client.customers.create(params);
54
- }
55
-
56
- main();
47
+ const params: Orb.CustomerCreateParams = { email: 'example-customer@withorb.com', name: 'My Customer' };
48
+ const customer: Orb.Customer = await client.customers.create(params);
57
49
  ```
58
50
 
59
51
  Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
@@ -66,21 +58,17 @@ a subclass of `APIError` will be thrown:
66
58
 
67
59
  <!-- prettier-ignore -->
68
60
  ```ts
69
- async function main() {
70
- const customer = await client.customers
71
- .create({ email: 'example-customer@withorb.com', name: 'My Customer' })
72
- .catch(async (err) => {
73
- if (err instanceof Orb.APIError) {
74
- console.log(err.status); // 400
75
- console.log(err.name); // BadRequestError
76
- console.log(err.headers); // {server: 'nginx', ...}
77
- } else {
78
- throw err;
79
- }
80
- });
81
- }
82
-
83
- main();
61
+ const customer = await client.customers
62
+ .create({ email: 'example-customer@withorb.com', name: 'My Customer' })
63
+ .catch(async (err) => {
64
+ if (err instanceof Orb.APIError) {
65
+ console.log(err.status); // 400
66
+ console.log(err.name); // BadRequestError
67
+ console.log(err.headers); // {server: 'nginx', ...}
68
+ } else {
69
+ throw err;
70
+ }
71
+ });
84
72
  ```
85
73
 
86
74
  Error codes are as follows:
package/index.d.mts CHANGED
@@ -5,22 +5,22 @@ import * as Pagination from "./pagination.js";
5
5
  import { type PageParams, PageResponse } from "./pagination.js";
6
6
  import * as Uploads from "./uploads.js";
7
7
  import * as API from "./resources/index.js";
8
- import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage } from "./resources/alerts.js";
9
- import { CreditNote, CreditNoteCreateParams, CreditNoteListParams, CreditNotes, CreditNotesPage } from "./resources/credit-notes.js";
8
+ import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage, Threshold } from "./resources/alerts.js";
9
+ import { CreditNoteCreateParams, CreditNoteListParams, CreditNotes } from "./resources/credit-notes.js";
10
10
  import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
11
- import { Invoice, InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices, InvoicesPage } from "./resources/invoices.js";
11
+ import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
12
12
  import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
13
13
  import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
14
- import { SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
15
- import { Subscription, SubscriptionCancelParams, SubscriptionCancelResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionPriceIntervalsResponse, SubscriptionSchedulePlanChangeParams, SubscriptionSchedulePlanChangeResponse, SubscriptionTriggerPhaseParams, SubscriptionTriggerPhaseResponse, SubscriptionUnscheduleCancellationResponse, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, SubscriptionUnschedulePendingPlanChangesResponse, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateFixedFeeQuantityResponse, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUpdateTrialResponse, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
14
+ import { MutatedSubscription, SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
15
+ import { DiscountOverride, NewSubscriptionBPSPrice, NewSubscriptionBulkBPSPrice, NewSubscriptionBulkPrice, NewSubscriptionBulkWithProrationPrice, NewSubscriptionCumulativeGroupedBulkPrice, NewSubscriptionGroupedAllocationPrice, NewSubscriptionGroupedTieredPackagePrice, NewSubscriptionGroupedTieredPrice, NewSubscriptionGroupedWithMeteredMinimumPrice, NewSubscriptionGroupedWithProratedMinimumPrice, NewSubscriptionMatrixPrice, NewSubscriptionMatrixWithAllocationPrice, NewSubscriptionMatrixWithDisplayNamePrice, NewSubscriptionMaxGroupTieredPackagePrice, NewSubscriptionPackagePrice, NewSubscriptionPackageWithAllocationPrice, NewSubscriptionScalableMatrixWithTieredPricingPrice, NewSubscriptionScalableMatrixWithUnitPricingPrice, NewSubscriptionThresholdTotalAmountPrice, NewSubscriptionTierWithProrationPrice, NewSubscriptionTieredBPSPrice, NewSubscriptionTieredPackagePrice, NewSubscriptionTieredPackageWithMinimumPrice, NewSubscriptionTieredPrice, NewSubscriptionTieredWithMinimumPrice, NewSubscriptionUnitPrice, NewSubscriptionUnitWithPercentPrice, NewSubscriptionUnitWithProrationPrice, Subscription, SubscriptionCancelParams, SubscriptionCreateParams, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionRedeemCouponParams, SubscriptionSchedulePlanChangeParams, SubscriptionTriggerPhaseParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
16
16
  import { TopLevel, TopLevelPingResponse } from "./resources/top-level.js";
17
17
  import { Beta, BetaCreatePlanVersionParams, BetaSetDefaultPlanVersionParams, PlanVersion, PlanVersionPhase } from "./resources/beta/beta.js";
18
18
  import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } from "./resources/coupons/coupons.js";
19
- import { Customer, CustomerCreateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage } from "./resources/customers/customers.js";
19
+ import { AccountingProviderConfig, AddressInput, Customer, CustomerCreateParams, CustomerHierarchyConfig, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage, NewAccountingSyncConfiguration, NewAvalaraTaxConfiguration, NewReportingConfiguration, NewSphereConfiguration, NewTaxJarConfiguration } from "./resources/customers/customers.js";
20
20
  import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
21
21
  import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
22
22
  import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
23
- import { EvaluatePriceGroup, Price, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices, PricesPage } from "./resources/prices/prices.js";
23
+ import { EvaluatePriceGroup, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluatePreviewEventsParams, PriceEvaluatePreviewEventsResponse, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices } from "./resources/prices/prices.js";
24
24
  export interface ClientOptions {
25
25
  /**
26
26
  * Defaults to process.env['ORB_API_KEY'].
@@ -159,27 +159,161 @@ export declare namespace Orb {
159
159
  export { TopLevel as TopLevel, type TopLevelPingResponse as TopLevelPingResponse };
160
160
  export { Beta as Beta, type PlanVersion as PlanVersion, type PlanVersionPhase as PlanVersionPhase, type BetaCreatePlanVersionParams as BetaCreatePlanVersionParams, type BetaSetDefaultPlanVersionParams as BetaSetDefaultPlanVersionParams, };
161
161
  export { Coupons as Coupons, type Coupon as Coupon, CouponsPage as CouponsPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
162
- export { CreditNotes as CreditNotes, type CreditNote as CreditNote, CreditNotesPage as CreditNotesPage, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
163
- export { Customers as Customers, type Customer as Customer, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
162
+ export { CreditNotes as CreditNotes, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
163
+ export { Customers as Customers, type AccountingProviderConfig as AccountingProviderConfig, type AddressInput as AddressInput, type Customer as Customer, type CustomerHierarchyConfig as CustomerHierarchyConfig, type NewAccountingSyncConfiguration as NewAccountingSyncConfiguration, type NewAvalaraTaxConfiguration as NewAvalaraTaxConfiguration, type NewReportingConfiguration as NewReportingConfiguration, type NewSphereConfiguration as NewSphereConfiguration, type NewTaxJarConfiguration as NewTaxJarConfiguration, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
164
164
  export { Events as Events, type EventUpdateResponse as EventUpdateResponse, type EventDeprecateResponse as EventDeprecateResponse, type EventIngestResponse as EventIngestResponse, type EventSearchResponse as EventSearchResponse, type EventUpdateParams as EventUpdateParams, type EventIngestParams as EventIngestParams, type EventSearchParams as EventSearchParams, };
165
165
  export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
166
- export { Invoices as Invoices, type Invoice as Invoice, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, InvoicesPage as InvoicesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
166
+ export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
167
167
  export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
168
168
  export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
169
169
  export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
170
- export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type Price as Price, type PriceEvaluateResponse as PriceEvaluateResponse, type PriceEvaluateMultipleResponse as PriceEvaluateMultipleResponse, PricesPage as PricesPage, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, type PriceEvaluateMultipleParams as PriceEvaluateMultipleParams, };
171
- export { type Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionCancelResponse as SubscriptionCancelResponse, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse, type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse, type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse, type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse, type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse as SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, type SubscriptionUnschedulePendingPlanChangesResponse as SubscriptionUnschedulePendingPlanChangesResponse, type SubscriptionUpdateFixedFeeQuantityResponse as SubscriptionUpdateFixedFeeQuantityResponse, type SubscriptionUpdateTrialResponse as SubscriptionUpdateTrialResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
172
- export { Alerts as Alerts, type Alert as Alert, AlertsPage as AlertsPage, type AlertUpdateParams as AlertUpdateParams, type AlertListParams as AlertListParams, type AlertCreateForCustomerParams as AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams as AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams, type AlertDisableParams as AlertDisableParams, type AlertEnableParams as AlertEnableParams, };
170
+ export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type PriceEvaluateResponse as PriceEvaluateResponse, type PriceEvaluateMultipleResponse as PriceEvaluateMultipleResponse, type PriceEvaluatePreviewEventsResponse as PriceEvaluatePreviewEventsResponse, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, type PriceEvaluateMultipleParams as PriceEvaluateMultipleParams, type PriceEvaluatePreviewEventsParams as PriceEvaluatePreviewEventsParams, };
171
+ export { type Subscriptions as Subscriptions, type DiscountOverride as DiscountOverride, type NewSubscriptionBPSPrice as NewSubscriptionBPSPrice, type NewSubscriptionBulkBPSPrice as NewSubscriptionBulkBPSPrice, type NewSubscriptionBulkPrice as NewSubscriptionBulkPrice, type NewSubscriptionBulkWithProrationPrice as NewSubscriptionBulkWithProrationPrice, type NewSubscriptionCumulativeGroupedBulkPrice as NewSubscriptionCumulativeGroupedBulkPrice, type NewSubscriptionGroupedAllocationPrice as NewSubscriptionGroupedAllocationPrice, type NewSubscriptionGroupedTieredPackagePrice as NewSubscriptionGroupedTieredPackagePrice, type NewSubscriptionGroupedTieredPrice as NewSubscriptionGroupedTieredPrice, type NewSubscriptionGroupedWithMeteredMinimumPrice as NewSubscriptionGroupedWithMeteredMinimumPrice, type NewSubscriptionGroupedWithProratedMinimumPrice as NewSubscriptionGroupedWithProratedMinimumPrice, type NewSubscriptionMatrixPrice as NewSubscriptionMatrixPrice, type NewSubscriptionMatrixWithAllocationPrice as NewSubscriptionMatrixWithAllocationPrice, type NewSubscriptionMatrixWithDisplayNamePrice as NewSubscriptionMatrixWithDisplayNamePrice, type NewSubscriptionMaxGroupTieredPackagePrice as NewSubscriptionMaxGroupTieredPackagePrice, type NewSubscriptionPackagePrice as NewSubscriptionPackagePrice, type NewSubscriptionPackageWithAllocationPrice as NewSubscriptionPackageWithAllocationPrice, type NewSubscriptionScalableMatrixWithTieredPricingPrice as NewSubscriptionScalableMatrixWithTieredPricingPrice, type NewSubscriptionScalableMatrixWithUnitPricingPrice as NewSubscriptionScalableMatrixWithUnitPricingPrice, type NewSubscriptionThresholdTotalAmountPrice as NewSubscriptionThresholdTotalAmountPrice, type NewSubscriptionTierWithProrationPrice as NewSubscriptionTierWithProrationPrice, type NewSubscriptionTieredBPSPrice as NewSubscriptionTieredBPSPrice, type NewSubscriptionTieredPackagePrice as NewSubscriptionTieredPackagePrice, type NewSubscriptionTieredPackageWithMinimumPrice as NewSubscriptionTieredPackageWithMinimumPrice, type NewSubscriptionTieredPrice as NewSubscriptionTieredPrice, type NewSubscriptionTieredWithMinimumPrice as NewSubscriptionTieredWithMinimumPrice, type NewSubscriptionUnitPrice as NewSubscriptionUnitPrice, type NewSubscriptionUnitWithPercentPrice as NewSubscriptionUnitWithPercentPrice, type NewSubscriptionUnitWithProrationPrice as NewSubscriptionUnitWithProrationPrice, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionRedeemCouponParams as SubscriptionRedeemCouponParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
172
+ export { Alerts as Alerts, type Alert as Alert, type Threshold as Threshold, AlertsPage as AlertsPage, type AlertUpdateParams as AlertUpdateParams, type AlertListParams as AlertListParams, type AlertCreateForCustomerParams as AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams as AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams, type AlertDisableParams as AlertDisableParams, type AlertEnableParams as AlertEnableParams, };
173
173
  export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
174
- export { SubscriptionChanges as SubscriptionChanges, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
174
+ export { SubscriptionChanges as SubscriptionChanges, type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
175
+ export type Address = API.Address;
176
+ export type AdjustmentInterval = API.AdjustmentInterval;
177
+ export type AggregatedCost = API.AggregatedCost;
178
+ export type Allocation = API.Allocation;
175
179
  export type AmountDiscount = API.AmountDiscount;
180
+ export type AmountDiscountInterval = API.AmountDiscountInterval;
181
+ export type BillableMetricTiny = API.BillableMetricTiny;
182
+ export type BillingCycleAnchorConfiguration = API.BillingCycleAnchorConfiguration;
183
+ export type BillingCycleConfiguration = API.BillingCycleConfiguration;
176
184
  export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
185
+ export type BPSConfig = API.BPSConfig;
186
+ export type BPSTier = API.BPSTier;
187
+ export type BulkBPSConfig = API.BulkBPSConfig;
188
+ export type BulkBPSTier = API.BulkBPSTier;
189
+ export type BulkConfig = API.BulkConfig;
190
+ export type BulkTier = API.BulkTier;
191
+ export type ChangedSubscriptionResources = API.ChangedSubscriptionResources;
192
+ export type ConversionRateTier = API.ConversionRateTier;
193
+ export type ConversionRateTieredConfig = API.ConversionRateTieredConfig;
194
+ export type ConversionRateUnitConfig = API.ConversionRateUnitConfig;
195
+ export type CouponRedemption = API.CouponRedemption;
196
+ export type CreditNote = API.CreditNote;
197
+ export type CreditNoteTiny = API.CreditNoteTiny;
198
+ export type CustomExpiration = API.CustomExpiration;
199
+ export type CustomerMinified = API.CustomerMinified;
200
+ export type CustomerTaxID = API.CustomerTaxID;
201
+ export type DimensionalPriceConfiguration = API.DimensionalPriceConfiguration;
177
202
  export type Discount = API.Discount;
203
+ export type FixedFeeQuantityScheduleEntry = API.FixedFeeQuantityScheduleEntry;
204
+ export type FixedFeeQuantityTransition = API.FixedFeeQuantityTransition;
205
+ export type Invoice = API.Invoice;
178
206
  export type InvoiceLevelDiscount = API.InvoiceLevelDiscount;
207
+ export type InvoiceTiny = API.InvoiceTiny;
208
+ export type ItemSlim = API.ItemSlim;
209
+ export type MatrixConfig = API.MatrixConfig;
210
+ export type MatrixSubLineItem = API.MatrixSubLineItem;
211
+ export type MatrixValue = API.MatrixValue;
212
+ export type MatrixWithAllocationConfig = API.MatrixWithAllocationConfig;
213
+ export type Maximum = API.Maximum;
214
+ export type MaximumInterval = API.MaximumInterval;
215
+ export type Minimum = API.Minimum;
216
+ export type MinimumInterval = API.MinimumInterval;
217
+ export type MonetaryAmountDiscountAdjustment = API.MonetaryAmountDiscountAdjustment;
218
+ export type MonetaryMaximumAdjustment = API.MonetaryMaximumAdjustment;
219
+ export type MonetaryMinimumAdjustment = API.MonetaryMinimumAdjustment;
220
+ export type MonetaryPercentageDiscountAdjustment = API.MonetaryPercentageDiscountAdjustment;
221
+ export type MonetaryUsageDiscountAdjustment = API.MonetaryUsageDiscountAdjustment;
222
+ export type NewAllocationPrice = API.NewAllocationPrice;
223
+ export type NewAmountDiscount = API.NewAmountDiscount;
224
+ export type NewBillingCycleConfiguration = API.NewBillingCycleConfiguration;
225
+ export type NewDimensionalPriceConfiguration = API.NewDimensionalPriceConfiguration;
226
+ export type NewFloatingBPSPrice = API.NewFloatingBPSPrice;
227
+ export type NewFloatingBulkBPSPrice = API.NewFloatingBulkBPSPrice;
228
+ export type NewFloatingBulkPrice = API.NewFloatingBulkPrice;
229
+ export type NewFloatingBulkWithProrationPrice = API.NewFloatingBulkWithProrationPrice;
230
+ export type NewFloatingCumulativeGroupedBulkPrice = API.NewFloatingCumulativeGroupedBulkPrice;
231
+ export type NewFloatingGroupedAllocationPrice = API.NewFloatingGroupedAllocationPrice;
232
+ export type NewFloatingGroupedTieredPackagePrice = API.NewFloatingGroupedTieredPackagePrice;
233
+ export type NewFloatingGroupedTieredPrice = API.NewFloatingGroupedTieredPrice;
234
+ export type NewFloatingGroupedWithMeteredMinimumPrice = API.NewFloatingGroupedWithMeteredMinimumPrice;
235
+ export type NewFloatingGroupedWithProratedMinimumPrice = API.NewFloatingGroupedWithProratedMinimumPrice;
236
+ export type NewFloatingMatrixPrice = API.NewFloatingMatrixPrice;
237
+ export type NewFloatingMatrixWithAllocationPrice = API.NewFloatingMatrixWithAllocationPrice;
238
+ export type NewFloatingMatrixWithDisplayNamePrice = API.NewFloatingMatrixWithDisplayNamePrice;
239
+ export type NewFloatingMaxGroupTieredPackagePrice = API.NewFloatingMaxGroupTieredPackagePrice;
240
+ export type NewFloatingPackagePrice = API.NewFloatingPackagePrice;
241
+ export type NewFloatingPackageWithAllocationPrice = API.NewFloatingPackageWithAllocationPrice;
242
+ export type NewFloatingScalableMatrixWithTieredPricingPrice = API.NewFloatingScalableMatrixWithTieredPricingPrice;
243
+ export type NewFloatingScalableMatrixWithUnitPricingPrice = API.NewFloatingScalableMatrixWithUnitPricingPrice;
244
+ export type NewFloatingThresholdTotalAmountPrice = API.NewFloatingThresholdTotalAmountPrice;
245
+ export type NewFloatingTieredBPSPrice = API.NewFloatingTieredBPSPrice;
246
+ export type NewFloatingTieredPackagePrice = API.NewFloatingTieredPackagePrice;
247
+ export type NewFloatingTieredPackageWithMinimumPrice = API.NewFloatingTieredPackageWithMinimumPrice;
248
+ export type NewFloatingTieredPrice = API.NewFloatingTieredPrice;
249
+ export type NewFloatingTieredWithMinimumPrice = API.NewFloatingTieredWithMinimumPrice;
250
+ export type NewFloatingTieredWithProrationPrice = API.NewFloatingTieredWithProrationPrice;
251
+ export type NewFloatingUnitPrice = API.NewFloatingUnitPrice;
252
+ export type NewFloatingUnitWithPercentPrice = API.NewFloatingUnitWithPercentPrice;
253
+ export type NewFloatingUnitWithProrationPrice = API.NewFloatingUnitWithProrationPrice;
254
+ export type NewMaximum = API.NewMaximum;
255
+ export type NewMinimum = API.NewMinimum;
256
+ export type NewPercentageDiscount = API.NewPercentageDiscount;
257
+ export type NewPlanBPSPrice = API.NewPlanBPSPrice;
258
+ export type NewPlanBulkBPSPrice = API.NewPlanBulkBPSPrice;
259
+ export type NewPlanBulkPrice = API.NewPlanBulkPrice;
260
+ export type NewPlanBulkWithProrationPrice = API.NewPlanBulkWithProrationPrice;
261
+ export type NewPlanCumulativeGroupedBulkPrice = API.NewPlanCumulativeGroupedBulkPrice;
262
+ export type NewPlanGroupedAllocationPrice = API.NewPlanGroupedAllocationPrice;
263
+ export type NewPlanGroupedTieredPackagePrice = API.NewPlanGroupedTieredPackagePrice;
264
+ export type NewPlanGroupedTieredPrice = API.NewPlanGroupedTieredPrice;
265
+ export type NewPlanGroupedWithMeteredMinimumPrice = API.NewPlanGroupedWithMeteredMinimumPrice;
266
+ export type NewPlanGroupedWithProratedMinimumPrice = API.NewPlanGroupedWithProratedMinimumPrice;
267
+ export type NewPlanMatrixPrice = API.NewPlanMatrixPrice;
268
+ export type NewPlanMatrixWithAllocationPrice = API.NewPlanMatrixWithAllocationPrice;
269
+ export type NewPlanMatrixWithDisplayNamePrice = API.NewPlanMatrixWithDisplayNamePrice;
270
+ export type NewPlanMaxGroupTieredPackagePrice = API.NewPlanMaxGroupTieredPackagePrice;
271
+ export type NewPlanPackagePrice = API.NewPlanPackagePrice;
272
+ export type NewPlanPackageWithAllocationPrice = API.NewPlanPackageWithAllocationPrice;
273
+ export type NewPlanScalableMatrixWithTieredPricingPrice = API.NewPlanScalableMatrixWithTieredPricingPrice;
274
+ export type NewPlanScalableMatrixWithUnitPricingPrice = API.NewPlanScalableMatrixWithUnitPricingPrice;
275
+ export type NewPlanThresholdTotalAmountPrice = API.NewPlanThresholdTotalAmountPrice;
276
+ export type NewPlanTierWithProrationPrice = API.NewPlanTierWithProrationPrice;
277
+ export type NewPlanTieredBPSPrice = API.NewPlanTieredBPSPrice;
278
+ export type NewPlanTieredPackagePrice = API.NewPlanTieredPackagePrice;
279
+ export type NewPlanTieredPackageWithMinimumPrice = API.NewPlanTieredPackageWithMinimumPrice;
280
+ export type NewPlanTieredPrice = API.NewPlanTieredPrice;
281
+ export type NewPlanTieredWithMinimumPrice = API.NewPlanTieredWithMinimumPrice;
282
+ export type NewPlanUnitPrice = API.NewPlanUnitPrice;
283
+ export type NewPlanUnitWithPercentPrice = API.NewPlanUnitWithPercentPrice;
284
+ export type NewPlanUnitWithProrationPrice = API.NewPlanUnitWithProrationPrice;
285
+ export type NewUsageDiscount = API.NewUsageDiscount;
286
+ export type OtherSubLineItem = API.OtherSubLineItem;
287
+ export type PackageConfig = API.PackageConfig;
179
288
  export type PaginationMetadata = API.PaginationMetadata;
289
+ export type PerPriceCost = API.PerPriceCost;
180
290
  export type PercentageDiscount = API.PercentageDiscount;
291
+ export type PercentageDiscountInterval = API.PercentageDiscountInterval;
292
+ export type PlanPhaseAmountDiscountAdjustment = API.PlanPhaseAmountDiscountAdjustment;
293
+ export type PlanPhaseMaximumAdjustment = API.PlanPhaseMaximumAdjustment;
294
+ export type PlanPhaseMinimumAdjustment = API.PlanPhaseMinimumAdjustment;
295
+ export type PlanPhasePercentageDiscountAdjustment = API.PlanPhasePercentageDiscountAdjustment;
296
+ export type PlanPhaseUsageDiscountAdjustment = API.PlanPhaseUsageDiscountAdjustment;
297
+ export type Price = API.Price;
298
+ export type PriceInterval = API.PriceInterval;
299
+ export type SubLineItemGrouping = API.SubLineItemGrouping;
300
+ export type SubLineItemMatrixConfig = API.SubLineItemMatrixConfig;
301
+ export type SubscriptionChangeMinified = API.SubscriptionChangeMinified;
302
+ export type SubscriptionMinified = API.SubscriptionMinified;
303
+ export type SubscriptionTrialInfo = API.SubscriptionTrialInfo;
304
+ export type TaxAmount = API.TaxAmount;
305
+ export type Tier = API.Tier;
306
+ export type TierConfig = API.TierConfig;
307
+ export type TierSubLineItem = API.TierSubLineItem;
308
+ export type TieredBPSConfig = API.TieredBPSConfig;
309
+ export type TieredConfig = API.TieredConfig;
310
+ export type TieredConversionRateConfig = API.TieredConversionRateConfig;
311
+ export type TransformPriceFilter = API.TransformPriceFilter;
181
312
  export type TrialDiscount = API.TrialDiscount;
313
+ export type UnitConfig = API.UnitConfig;
314
+ export type UnitConversionRateConfig = API.UnitConversionRateConfig;
182
315
  export type UsageDiscount = API.UsageDiscount;
316
+ export type UsageDiscountInterval = API.UsageDiscountInterval;
183
317
  }
184
318
  export { toFile, fileFromPath } from "./uploads.js";
185
319
  export { OrbError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, URLNotFound, NotFoundError, ConflictError, RateLimitError, BadRequestError, RequestTooLarge, TooManyRequests, ResourceNotFound, ResourceConflict, ResourceTooLarge, AuthenticationError, InternalServerError, ConstraintViolation, FeatureNotAvailable, PermissionDeniedError, RequestValidationError, OrbAuthenticationError, OrbInternalServerError, UnprocessableEntityError, DuplicateResourceCreation, } from "./error.js";
package/index.d.ts CHANGED
@@ -5,22 +5,22 @@ import * as Pagination from "./pagination.js";
5
5
  import { type PageParams, PageResponse } from "./pagination.js";
6
6
  import * as Uploads from "./uploads.js";
7
7
  import * as API from "./resources/index.js";
8
- import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage } from "./resources/alerts.js";
9
- import { CreditNote, CreditNoteCreateParams, CreditNoteListParams, CreditNotes, CreditNotesPage } from "./resources/credit-notes.js";
8
+ import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage, Threshold } from "./resources/alerts.js";
9
+ import { CreditNoteCreateParams, CreditNoteListParams, CreditNotes } from "./resources/credit-notes.js";
10
10
  import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
11
- import { Invoice, InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices, InvoicesPage } from "./resources/invoices.js";
11
+ import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
12
12
  import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
13
13
  import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
14
- import { SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
15
- import { Subscription, SubscriptionCancelParams, SubscriptionCancelResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionPriceIntervalsResponse, SubscriptionSchedulePlanChangeParams, SubscriptionSchedulePlanChangeResponse, SubscriptionTriggerPhaseParams, SubscriptionTriggerPhaseResponse, SubscriptionUnscheduleCancellationResponse, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, SubscriptionUnschedulePendingPlanChangesResponse, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateFixedFeeQuantityResponse, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUpdateTrialResponse, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
14
+ import { MutatedSubscription, SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
15
+ import { DiscountOverride, NewSubscriptionBPSPrice, NewSubscriptionBulkBPSPrice, NewSubscriptionBulkPrice, NewSubscriptionBulkWithProrationPrice, NewSubscriptionCumulativeGroupedBulkPrice, NewSubscriptionGroupedAllocationPrice, NewSubscriptionGroupedTieredPackagePrice, NewSubscriptionGroupedTieredPrice, NewSubscriptionGroupedWithMeteredMinimumPrice, NewSubscriptionGroupedWithProratedMinimumPrice, NewSubscriptionMatrixPrice, NewSubscriptionMatrixWithAllocationPrice, NewSubscriptionMatrixWithDisplayNamePrice, NewSubscriptionMaxGroupTieredPackagePrice, NewSubscriptionPackagePrice, NewSubscriptionPackageWithAllocationPrice, NewSubscriptionScalableMatrixWithTieredPricingPrice, NewSubscriptionScalableMatrixWithUnitPricingPrice, NewSubscriptionThresholdTotalAmountPrice, NewSubscriptionTierWithProrationPrice, NewSubscriptionTieredBPSPrice, NewSubscriptionTieredPackagePrice, NewSubscriptionTieredPackageWithMinimumPrice, NewSubscriptionTieredPrice, NewSubscriptionTieredWithMinimumPrice, NewSubscriptionUnitPrice, NewSubscriptionUnitWithPercentPrice, NewSubscriptionUnitWithProrationPrice, Subscription, SubscriptionCancelParams, SubscriptionCreateParams, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionRedeemCouponParams, SubscriptionSchedulePlanChangeParams, SubscriptionTriggerPhaseParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
16
16
  import { TopLevel, TopLevelPingResponse } from "./resources/top-level.js";
17
17
  import { Beta, BetaCreatePlanVersionParams, BetaSetDefaultPlanVersionParams, PlanVersion, PlanVersionPhase } from "./resources/beta/beta.js";
18
18
  import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } from "./resources/coupons/coupons.js";
19
- import { Customer, CustomerCreateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage } from "./resources/customers/customers.js";
19
+ import { AccountingProviderConfig, AddressInput, Customer, CustomerCreateParams, CustomerHierarchyConfig, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage, NewAccountingSyncConfiguration, NewAvalaraTaxConfiguration, NewReportingConfiguration, NewSphereConfiguration, NewTaxJarConfiguration } from "./resources/customers/customers.js";
20
20
  import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
21
21
  import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
22
22
  import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
23
- import { EvaluatePriceGroup, Price, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices, PricesPage } from "./resources/prices/prices.js";
23
+ import { EvaluatePriceGroup, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluatePreviewEventsParams, PriceEvaluatePreviewEventsResponse, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices } from "./resources/prices/prices.js";
24
24
  export interface ClientOptions {
25
25
  /**
26
26
  * Defaults to process.env['ORB_API_KEY'].
@@ -159,27 +159,161 @@ export declare namespace Orb {
159
159
  export { TopLevel as TopLevel, type TopLevelPingResponse as TopLevelPingResponse };
160
160
  export { Beta as Beta, type PlanVersion as PlanVersion, type PlanVersionPhase as PlanVersionPhase, type BetaCreatePlanVersionParams as BetaCreatePlanVersionParams, type BetaSetDefaultPlanVersionParams as BetaSetDefaultPlanVersionParams, };
161
161
  export { Coupons as Coupons, type Coupon as Coupon, CouponsPage as CouponsPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
162
- export { CreditNotes as CreditNotes, type CreditNote as CreditNote, CreditNotesPage as CreditNotesPage, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
163
- export { Customers as Customers, type Customer as Customer, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
162
+ export { CreditNotes as CreditNotes, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
163
+ export { Customers as Customers, type AccountingProviderConfig as AccountingProviderConfig, type AddressInput as AddressInput, type Customer as Customer, type CustomerHierarchyConfig as CustomerHierarchyConfig, type NewAccountingSyncConfiguration as NewAccountingSyncConfiguration, type NewAvalaraTaxConfiguration as NewAvalaraTaxConfiguration, type NewReportingConfiguration as NewReportingConfiguration, type NewSphereConfiguration as NewSphereConfiguration, type NewTaxJarConfiguration as NewTaxJarConfiguration, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
164
164
  export { Events as Events, type EventUpdateResponse as EventUpdateResponse, type EventDeprecateResponse as EventDeprecateResponse, type EventIngestResponse as EventIngestResponse, type EventSearchResponse as EventSearchResponse, type EventUpdateParams as EventUpdateParams, type EventIngestParams as EventIngestParams, type EventSearchParams as EventSearchParams, };
165
165
  export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
166
- export { Invoices as Invoices, type Invoice as Invoice, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, InvoicesPage as InvoicesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
166
+ export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
167
167
  export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
168
168
  export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
169
169
  export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
170
- export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type Price as Price, type PriceEvaluateResponse as PriceEvaluateResponse, type PriceEvaluateMultipleResponse as PriceEvaluateMultipleResponse, PricesPage as PricesPage, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, type PriceEvaluateMultipleParams as PriceEvaluateMultipleParams, };
171
- export { type Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionCancelResponse as SubscriptionCancelResponse, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse, type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse, type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse, type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse, type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse as SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, type SubscriptionUnschedulePendingPlanChangesResponse as SubscriptionUnschedulePendingPlanChangesResponse, type SubscriptionUpdateFixedFeeQuantityResponse as SubscriptionUpdateFixedFeeQuantityResponse, type SubscriptionUpdateTrialResponse as SubscriptionUpdateTrialResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
172
- export { Alerts as Alerts, type Alert as Alert, AlertsPage as AlertsPage, type AlertUpdateParams as AlertUpdateParams, type AlertListParams as AlertListParams, type AlertCreateForCustomerParams as AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams as AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams, type AlertDisableParams as AlertDisableParams, type AlertEnableParams as AlertEnableParams, };
170
+ export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type PriceEvaluateResponse as PriceEvaluateResponse, type PriceEvaluateMultipleResponse as PriceEvaluateMultipleResponse, type PriceEvaluatePreviewEventsResponse as PriceEvaluatePreviewEventsResponse, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, type PriceEvaluateMultipleParams as PriceEvaluateMultipleParams, type PriceEvaluatePreviewEventsParams as PriceEvaluatePreviewEventsParams, };
171
+ export { type Subscriptions as Subscriptions, type DiscountOverride as DiscountOverride, type NewSubscriptionBPSPrice as NewSubscriptionBPSPrice, type NewSubscriptionBulkBPSPrice as NewSubscriptionBulkBPSPrice, type NewSubscriptionBulkPrice as NewSubscriptionBulkPrice, type NewSubscriptionBulkWithProrationPrice as NewSubscriptionBulkWithProrationPrice, type NewSubscriptionCumulativeGroupedBulkPrice as NewSubscriptionCumulativeGroupedBulkPrice, type NewSubscriptionGroupedAllocationPrice as NewSubscriptionGroupedAllocationPrice, type NewSubscriptionGroupedTieredPackagePrice as NewSubscriptionGroupedTieredPackagePrice, type NewSubscriptionGroupedTieredPrice as NewSubscriptionGroupedTieredPrice, type NewSubscriptionGroupedWithMeteredMinimumPrice as NewSubscriptionGroupedWithMeteredMinimumPrice, type NewSubscriptionGroupedWithProratedMinimumPrice as NewSubscriptionGroupedWithProratedMinimumPrice, type NewSubscriptionMatrixPrice as NewSubscriptionMatrixPrice, type NewSubscriptionMatrixWithAllocationPrice as NewSubscriptionMatrixWithAllocationPrice, type NewSubscriptionMatrixWithDisplayNamePrice as NewSubscriptionMatrixWithDisplayNamePrice, type NewSubscriptionMaxGroupTieredPackagePrice as NewSubscriptionMaxGroupTieredPackagePrice, type NewSubscriptionPackagePrice as NewSubscriptionPackagePrice, type NewSubscriptionPackageWithAllocationPrice as NewSubscriptionPackageWithAllocationPrice, type NewSubscriptionScalableMatrixWithTieredPricingPrice as NewSubscriptionScalableMatrixWithTieredPricingPrice, type NewSubscriptionScalableMatrixWithUnitPricingPrice as NewSubscriptionScalableMatrixWithUnitPricingPrice, type NewSubscriptionThresholdTotalAmountPrice as NewSubscriptionThresholdTotalAmountPrice, type NewSubscriptionTierWithProrationPrice as NewSubscriptionTierWithProrationPrice, type NewSubscriptionTieredBPSPrice as NewSubscriptionTieredBPSPrice, type NewSubscriptionTieredPackagePrice as NewSubscriptionTieredPackagePrice, type NewSubscriptionTieredPackageWithMinimumPrice as NewSubscriptionTieredPackageWithMinimumPrice, type NewSubscriptionTieredPrice as NewSubscriptionTieredPrice, type NewSubscriptionTieredWithMinimumPrice as NewSubscriptionTieredWithMinimumPrice, type NewSubscriptionUnitPrice as NewSubscriptionUnitPrice, type NewSubscriptionUnitWithPercentPrice as NewSubscriptionUnitWithPercentPrice, type NewSubscriptionUnitWithProrationPrice as NewSubscriptionUnitWithProrationPrice, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionRedeemCouponParams as SubscriptionRedeemCouponParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
172
+ export { Alerts as Alerts, type Alert as Alert, type Threshold as Threshold, AlertsPage as AlertsPage, type AlertUpdateParams as AlertUpdateParams, type AlertListParams as AlertListParams, type AlertCreateForCustomerParams as AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams as AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams, type AlertDisableParams as AlertDisableParams, type AlertEnableParams as AlertEnableParams, };
173
173
  export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
174
- export { SubscriptionChanges as SubscriptionChanges, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
174
+ export { SubscriptionChanges as SubscriptionChanges, type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
175
+ export type Address = API.Address;
176
+ export type AdjustmentInterval = API.AdjustmentInterval;
177
+ export type AggregatedCost = API.AggregatedCost;
178
+ export type Allocation = API.Allocation;
175
179
  export type AmountDiscount = API.AmountDiscount;
180
+ export type AmountDiscountInterval = API.AmountDiscountInterval;
181
+ export type BillableMetricTiny = API.BillableMetricTiny;
182
+ export type BillingCycleAnchorConfiguration = API.BillingCycleAnchorConfiguration;
183
+ export type BillingCycleConfiguration = API.BillingCycleConfiguration;
176
184
  export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
185
+ export type BPSConfig = API.BPSConfig;
186
+ export type BPSTier = API.BPSTier;
187
+ export type BulkBPSConfig = API.BulkBPSConfig;
188
+ export type BulkBPSTier = API.BulkBPSTier;
189
+ export type BulkConfig = API.BulkConfig;
190
+ export type BulkTier = API.BulkTier;
191
+ export type ChangedSubscriptionResources = API.ChangedSubscriptionResources;
192
+ export type ConversionRateTier = API.ConversionRateTier;
193
+ export type ConversionRateTieredConfig = API.ConversionRateTieredConfig;
194
+ export type ConversionRateUnitConfig = API.ConversionRateUnitConfig;
195
+ export type CouponRedemption = API.CouponRedemption;
196
+ export type CreditNote = API.CreditNote;
197
+ export type CreditNoteTiny = API.CreditNoteTiny;
198
+ export type CustomExpiration = API.CustomExpiration;
199
+ export type CustomerMinified = API.CustomerMinified;
200
+ export type CustomerTaxID = API.CustomerTaxID;
201
+ export type DimensionalPriceConfiguration = API.DimensionalPriceConfiguration;
177
202
  export type Discount = API.Discount;
203
+ export type FixedFeeQuantityScheduleEntry = API.FixedFeeQuantityScheduleEntry;
204
+ export type FixedFeeQuantityTransition = API.FixedFeeQuantityTransition;
205
+ export type Invoice = API.Invoice;
178
206
  export type InvoiceLevelDiscount = API.InvoiceLevelDiscount;
207
+ export type InvoiceTiny = API.InvoiceTiny;
208
+ export type ItemSlim = API.ItemSlim;
209
+ export type MatrixConfig = API.MatrixConfig;
210
+ export type MatrixSubLineItem = API.MatrixSubLineItem;
211
+ export type MatrixValue = API.MatrixValue;
212
+ export type MatrixWithAllocationConfig = API.MatrixWithAllocationConfig;
213
+ export type Maximum = API.Maximum;
214
+ export type MaximumInterval = API.MaximumInterval;
215
+ export type Minimum = API.Minimum;
216
+ export type MinimumInterval = API.MinimumInterval;
217
+ export type MonetaryAmountDiscountAdjustment = API.MonetaryAmountDiscountAdjustment;
218
+ export type MonetaryMaximumAdjustment = API.MonetaryMaximumAdjustment;
219
+ export type MonetaryMinimumAdjustment = API.MonetaryMinimumAdjustment;
220
+ export type MonetaryPercentageDiscountAdjustment = API.MonetaryPercentageDiscountAdjustment;
221
+ export type MonetaryUsageDiscountAdjustment = API.MonetaryUsageDiscountAdjustment;
222
+ export type NewAllocationPrice = API.NewAllocationPrice;
223
+ export type NewAmountDiscount = API.NewAmountDiscount;
224
+ export type NewBillingCycleConfiguration = API.NewBillingCycleConfiguration;
225
+ export type NewDimensionalPriceConfiguration = API.NewDimensionalPriceConfiguration;
226
+ export type NewFloatingBPSPrice = API.NewFloatingBPSPrice;
227
+ export type NewFloatingBulkBPSPrice = API.NewFloatingBulkBPSPrice;
228
+ export type NewFloatingBulkPrice = API.NewFloatingBulkPrice;
229
+ export type NewFloatingBulkWithProrationPrice = API.NewFloatingBulkWithProrationPrice;
230
+ export type NewFloatingCumulativeGroupedBulkPrice = API.NewFloatingCumulativeGroupedBulkPrice;
231
+ export type NewFloatingGroupedAllocationPrice = API.NewFloatingGroupedAllocationPrice;
232
+ export type NewFloatingGroupedTieredPackagePrice = API.NewFloatingGroupedTieredPackagePrice;
233
+ export type NewFloatingGroupedTieredPrice = API.NewFloatingGroupedTieredPrice;
234
+ export type NewFloatingGroupedWithMeteredMinimumPrice = API.NewFloatingGroupedWithMeteredMinimumPrice;
235
+ export type NewFloatingGroupedWithProratedMinimumPrice = API.NewFloatingGroupedWithProratedMinimumPrice;
236
+ export type NewFloatingMatrixPrice = API.NewFloatingMatrixPrice;
237
+ export type NewFloatingMatrixWithAllocationPrice = API.NewFloatingMatrixWithAllocationPrice;
238
+ export type NewFloatingMatrixWithDisplayNamePrice = API.NewFloatingMatrixWithDisplayNamePrice;
239
+ export type NewFloatingMaxGroupTieredPackagePrice = API.NewFloatingMaxGroupTieredPackagePrice;
240
+ export type NewFloatingPackagePrice = API.NewFloatingPackagePrice;
241
+ export type NewFloatingPackageWithAllocationPrice = API.NewFloatingPackageWithAllocationPrice;
242
+ export type NewFloatingScalableMatrixWithTieredPricingPrice = API.NewFloatingScalableMatrixWithTieredPricingPrice;
243
+ export type NewFloatingScalableMatrixWithUnitPricingPrice = API.NewFloatingScalableMatrixWithUnitPricingPrice;
244
+ export type NewFloatingThresholdTotalAmountPrice = API.NewFloatingThresholdTotalAmountPrice;
245
+ export type NewFloatingTieredBPSPrice = API.NewFloatingTieredBPSPrice;
246
+ export type NewFloatingTieredPackagePrice = API.NewFloatingTieredPackagePrice;
247
+ export type NewFloatingTieredPackageWithMinimumPrice = API.NewFloatingTieredPackageWithMinimumPrice;
248
+ export type NewFloatingTieredPrice = API.NewFloatingTieredPrice;
249
+ export type NewFloatingTieredWithMinimumPrice = API.NewFloatingTieredWithMinimumPrice;
250
+ export type NewFloatingTieredWithProrationPrice = API.NewFloatingTieredWithProrationPrice;
251
+ export type NewFloatingUnitPrice = API.NewFloatingUnitPrice;
252
+ export type NewFloatingUnitWithPercentPrice = API.NewFloatingUnitWithPercentPrice;
253
+ export type NewFloatingUnitWithProrationPrice = API.NewFloatingUnitWithProrationPrice;
254
+ export type NewMaximum = API.NewMaximum;
255
+ export type NewMinimum = API.NewMinimum;
256
+ export type NewPercentageDiscount = API.NewPercentageDiscount;
257
+ export type NewPlanBPSPrice = API.NewPlanBPSPrice;
258
+ export type NewPlanBulkBPSPrice = API.NewPlanBulkBPSPrice;
259
+ export type NewPlanBulkPrice = API.NewPlanBulkPrice;
260
+ export type NewPlanBulkWithProrationPrice = API.NewPlanBulkWithProrationPrice;
261
+ export type NewPlanCumulativeGroupedBulkPrice = API.NewPlanCumulativeGroupedBulkPrice;
262
+ export type NewPlanGroupedAllocationPrice = API.NewPlanGroupedAllocationPrice;
263
+ export type NewPlanGroupedTieredPackagePrice = API.NewPlanGroupedTieredPackagePrice;
264
+ export type NewPlanGroupedTieredPrice = API.NewPlanGroupedTieredPrice;
265
+ export type NewPlanGroupedWithMeteredMinimumPrice = API.NewPlanGroupedWithMeteredMinimumPrice;
266
+ export type NewPlanGroupedWithProratedMinimumPrice = API.NewPlanGroupedWithProratedMinimumPrice;
267
+ export type NewPlanMatrixPrice = API.NewPlanMatrixPrice;
268
+ export type NewPlanMatrixWithAllocationPrice = API.NewPlanMatrixWithAllocationPrice;
269
+ export type NewPlanMatrixWithDisplayNamePrice = API.NewPlanMatrixWithDisplayNamePrice;
270
+ export type NewPlanMaxGroupTieredPackagePrice = API.NewPlanMaxGroupTieredPackagePrice;
271
+ export type NewPlanPackagePrice = API.NewPlanPackagePrice;
272
+ export type NewPlanPackageWithAllocationPrice = API.NewPlanPackageWithAllocationPrice;
273
+ export type NewPlanScalableMatrixWithTieredPricingPrice = API.NewPlanScalableMatrixWithTieredPricingPrice;
274
+ export type NewPlanScalableMatrixWithUnitPricingPrice = API.NewPlanScalableMatrixWithUnitPricingPrice;
275
+ export type NewPlanThresholdTotalAmountPrice = API.NewPlanThresholdTotalAmountPrice;
276
+ export type NewPlanTierWithProrationPrice = API.NewPlanTierWithProrationPrice;
277
+ export type NewPlanTieredBPSPrice = API.NewPlanTieredBPSPrice;
278
+ export type NewPlanTieredPackagePrice = API.NewPlanTieredPackagePrice;
279
+ export type NewPlanTieredPackageWithMinimumPrice = API.NewPlanTieredPackageWithMinimumPrice;
280
+ export type NewPlanTieredPrice = API.NewPlanTieredPrice;
281
+ export type NewPlanTieredWithMinimumPrice = API.NewPlanTieredWithMinimumPrice;
282
+ export type NewPlanUnitPrice = API.NewPlanUnitPrice;
283
+ export type NewPlanUnitWithPercentPrice = API.NewPlanUnitWithPercentPrice;
284
+ export type NewPlanUnitWithProrationPrice = API.NewPlanUnitWithProrationPrice;
285
+ export type NewUsageDiscount = API.NewUsageDiscount;
286
+ export type OtherSubLineItem = API.OtherSubLineItem;
287
+ export type PackageConfig = API.PackageConfig;
179
288
  export type PaginationMetadata = API.PaginationMetadata;
289
+ export type PerPriceCost = API.PerPriceCost;
180
290
  export type PercentageDiscount = API.PercentageDiscount;
291
+ export type PercentageDiscountInterval = API.PercentageDiscountInterval;
292
+ export type PlanPhaseAmountDiscountAdjustment = API.PlanPhaseAmountDiscountAdjustment;
293
+ export type PlanPhaseMaximumAdjustment = API.PlanPhaseMaximumAdjustment;
294
+ export type PlanPhaseMinimumAdjustment = API.PlanPhaseMinimumAdjustment;
295
+ export type PlanPhasePercentageDiscountAdjustment = API.PlanPhasePercentageDiscountAdjustment;
296
+ export type PlanPhaseUsageDiscountAdjustment = API.PlanPhaseUsageDiscountAdjustment;
297
+ export type Price = API.Price;
298
+ export type PriceInterval = API.PriceInterval;
299
+ export type SubLineItemGrouping = API.SubLineItemGrouping;
300
+ export type SubLineItemMatrixConfig = API.SubLineItemMatrixConfig;
301
+ export type SubscriptionChangeMinified = API.SubscriptionChangeMinified;
302
+ export type SubscriptionMinified = API.SubscriptionMinified;
303
+ export type SubscriptionTrialInfo = API.SubscriptionTrialInfo;
304
+ export type TaxAmount = API.TaxAmount;
305
+ export type Tier = API.Tier;
306
+ export type TierConfig = API.TierConfig;
307
+ export type TierSubLineItem = API.TierSubLineItem;
308
+ export type TieredBPSConfig = API.TieredBPSConfig;
309
+ export type TieredConfig = API.TieredConfig;
310
+ export type TieredConversionRateConfig = API.TieredConversionRateConfig;
311
+ export type TransformPriceFilter = API.TransformPriceFilter;
181
312
  export type TrialDiscount = API.TrialDiscount;
313
+ export type UnitConfig = API.UnitConfig;
314
+ export type UnitConversionRateConfig = API.UnitConversionRateConfig;
182
315
  export type UsageDiscount = API.UsageDiscount;
316
+ export type UsageDiscountInterval = API.UsageDiscountInterval;
183
317
  }
184
318
  export { toFile, fileFromPath } from "./uploads.js";
185
319
  export { OrbError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, URLNotFound, NotFoundError, ConflictError, RateLimitError, BadRequestError, RequestTooLarge, TooManyRequests, ResourceNotFound, ResourceConflict, ResourceTooLarge, AuthenticationError, InternalServerError, ConstraintViolation, FeatureNotAvailable, PermissionDeniedError, RequestValidationError, OrbAuthenticationError, OrbInternalServerError, UnprocessableEntityError, DuplicateResourceCreation, } from "./error.js";