orb-billing 5.44.0 → 5.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +8 -17
- package/core.js.map +1 -1
- package/core.mjs +8 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +91 -5
- package/index.d.ts +91 -5
- package/index.d.ts.map +1 -1
- package/index.js +90 -2
- package/index.js.map +1 -1
- package/index.mjs +91 -3
- package/index.mjs.map +1 -1
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +33 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/alerts.d.ts +21 -0
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +6 -0
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +6 -0
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +8293 -140
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +5 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +5 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +8293 -140
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/beta/external-plan-id.js +5 -0
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs +5 -0
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +3 -0
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +3 -0
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +3 -0
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +3 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +3 -0
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +3 -0
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-blocks.d.ts +85 -1
- package/resources/credit-blocks.d.ts.map +1 -1
- package/resources/credit-blocks.js +22 -0
- package/resources/credit-blocks.js.map +1 -1
- package/resources/credit-blocks.mjs +22 -0
- package/resources/credit-blocks.mjs.map +1 -1
- package/resources/credit-notes.d.ts +4 -0
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +4 -0
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +4 -0
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +16 -0
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +16 -0
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +16 -0
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +16 -0
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +16 -0
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +16 -0
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +39 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +3 -0
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +3 -0
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +31 -4
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +19 -2
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +19 -2
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +3 -0
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +3 -0
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +3 -0
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +33 -12
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +20 -3
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +20 -3
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
- package/resources/events/backfills.d.ts +5 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +5 -0
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -0
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +5 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +5 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +5 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/volume.d.ts +5 -0
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +5 -0
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +5 -0
- package/resources/events/volume.mjs.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +6 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +6 -0
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +6 -0
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +432 -7
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +18 -5
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +18 -5
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +6 -2
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +4 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +4 -0
- package/resources/items.mjs.map +1 -1
- package/resources/license-types.d.ts +113 -0
- package/resources/license-types.d.ts.map +1 -0
- package/resources/license-types.js +44 -0
- package/resources/license-types.js.map +1 -0
- package/resources/license-types.mjs +39 -0
- package/resources/license-types.mjs.map +1 -0
- package/resources/licenses/external-licenses.d.ts +114 -0
- package/resources/licenses/external-licenses.d.ts.map +1 -0
- package/resources/licenses/external-licenses.js +18 -0
- package/resources/licenses/external-licenses.js.map +1 -0
- package/resources/licenses/external-licenses.mjs +14 -0
- package/resources/licenses/external-licenses.mjs.map +1 -0
- package/resources/licenses/index.d.ts +4 -0
- package/resources/licenses/index.d.ts.map +1 -0
- package/resources/licenses/index.js +12 -0
- package/resources/licenses/index.js.map +1 -0
- package/resources/licenses/index.mjs +5 -0
- package/resources/licenses/index.mjs.map +1 -0
- package/resources/licenses/licenses.d.ts +133 -0
- package/resources/licenses/licenses.d.ts.map +1 -0
- package/resources/licenses/licenses.js +86 -0
- package/resources/licenses/licenses.js.map +1 -0
- package/resources/licenses/licenses.mjs +58 -0
- package/resources/licenses/licenses.mjs.map +1 -0
- package/resources/licenses/usage.d.ts +211 -0
- package/resources/licenses/usage.d.ts.map +1 -0
- package/resources/licenses/usage.js +25 -0
- package/resources/licenses/usage.js.map +1 -0
- package/resources/licenses/usage.mjs +21 -0
- package/resources/licenses/usage.mjs.map +1 -0
- package/resources/licenses.d.ts +2 -0
- package/resources/licenses.d.ts.map +1 -0
- package/resources/licenses.js +19 -0
- package/resources/licenses.js.map +1 -0
- package/resources/licenses.mjs +3 -0
- package/resources/licenses.mjs.map +1 -0
- package/resources/metrics.d.ts +7 -0
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +4 -0
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +4 -0
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +5 -0
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +5 -0
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +5 -0
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/migrations.d.ts +5 -0
- package/resources/plans/migrations.d.ts.map +1 -1
- package/resources/plans/migrations.js +5 -0
- package/resources/plans/migrations.js.map +1 -1
- package/resources/plans/migrations.mjs +5 -0
- package/resources/plans/migrations.mjs.map +1 -1
- package/resources/plans/plans.d.ts +4200 -121
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -0
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -0
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +9 -0
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +9 -0
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +9 -0
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/prices.d.ts +198 -0
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +9 -0
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +9 -0
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +1040 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +262 -0
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/core.ts +10 -21
- package/src/index.ts +149 -5
- package/src/internal/utils/query.ts +7 -0
- package/src/resources/alerts.ts +24 -0
- package/src/resources/beta/beta.ts +9945 -194
- package/src/resources/beta/external-plan-id.ts +9945 -194
- package/src/resources/coupons/coupons.ts +3 -0
- package/src/resources/coupons/subscriptions.ts +3 -0
- package/src/resources/credit-blocks.ts +110 -1
- package/src/resources/credit-notes.ts +4 -0
- package/src/resources/customers/balance-transactions.ts +16 -0
- package/src/resources/customers/costs.ts +16 -0
- package/src/resources/customers/credits/credits.ts +45 -0
- package/src/resources/customers/credits/ledger.ts +33 -4
- package/src/resources/customers/credits/top-ups.ts +3 -0
- package/src/resources/customers/customers.ts +61 -12
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +1 -1
- package/src/resources/events/backfills.ts +5 -0
- package/src/resources/events/events.ts +5 -0
- package/src/resources/events/volume.ts +5 -0
- package/src/resources/index.ts +29 -1
- package/src/resources/invoice-line-items.ts +6 -0
- package/src/resources/invoices.ts +523 -6
- package/src/resources/items.ts +8 -2
- package/src/resources/license-types.ts +163 -0
- package/src/resources/licenses/external-licenses.ts +147 -0
- package/src/resources/licenses/index.ts +27 -0
- package/src/resources/licenses/licenses.ts +248 -0
- package/src/resources/licenses/usage.ts +280 -0
- package/src/resources/licenses.ts +3 -0
- package/src/resources/metrics.ts +6 -0
- package/src/resources/plans/external-plan-id.ts +5 -0
- package/src/resources/plans/migrations.ts +5 -0
- package/src/resources/plans/plans.ts +5004 -126
- package/src/resources/prices/external-price-id.ts +9 -0
- package/src/resources/prices/prices.ts +237 -0
- package/src/resources/shared.ts +1213 -0
- package/src/resources/subscriptions.ts +311 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/index.d.mts
CHANGED
|
@@ -6,11 +6,12 @@ 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
8
|
import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage, Threshold } from "./resources/alerts.js";
|
|
9
|
-
import { CreditBlockRetrieveResponse, CreditBlocks } from "./resources/credit-blocks.js";
|
|
9
|
+
import { CreditBlockListInvoicesResponse, CreditBlockRetrieveResponse, CreditBlocks } from "./resources/credit-blocks.js";
|
|
10
10
|
import { CreditNoteCreateParams, CreditNoteListParams, CreditNotes } from "./resources/credit-notes.js";
|
|
11
11
|
import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
|
|
12
|
-
import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceListSummaryParams, InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
|
|
12
|
+
import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceIssueSummaryParams, InvoiceIssueSummaryResponse, InvoiceListParams, InvoiceListSummaryParams, InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
|
|
13
13
|
import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
|
|
14
|
+
import { LicenseTypeCreateParams, LicenseTypeCreateResponse, LicenseTypeListParams, LicenseTypeListResponse, LicenseTypeListResponsesPage, LicenseTypeRetrieveResponse, LicenseTypes } from "./resources/license-types.js";
|
|
14
15
|
import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
|
|
15
16
|
import { MutatedSubscription, SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeListParams, SubscriptionChangeListResponse, SubscriptionChangeListResponsesPage, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
|
|
16
17
|
import { DiscountOverride, NewSubscriptionBulkPrice, NewSubscriptionBulkWithProrationPrice, NewSubscriptionCumulativeGroupedBulkPrice, NewSubscriptionGroupedAllocationPrice, NewSubscriptionGroupedTieredPackagePrice, NewSubscriptionGroupedTieredPrice, NewSubscriptionGroupedWithMeteredMinimumPrice, NewSubscriptionGroupedWithProratedMinimumPrice, NewSubscriptionMatrixPrice, NewSubscriptionMatrixWithAllocationPrice, NewSubscriptionMatrixWithDisplayNamePrice, NewSubscriptionMaxGroupTieredPackagePrice, NewSubscriptionMinimumCompositePrice, NewSubscriptionPackagePrice, NewSubscriptionPackageWithAllocationPrice, NewSubscriptionScalableMatrixWithTieredPricingPrice, NewSubscriptionScalableMatrixWithUnitPricingPrice, NewSubscriptionThresholdTotalAmountPrice, 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";
|
|
@@ -20,6 +21,7 @@ import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } fr
|
|
|
20
21
|
import { AccountingProviderConfig, AddressInput, Customer, CustomerCreateParams, CustomerHierarchyConfig, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage, NewAccountingSyncConfiguration, NewAvalaraTaxConfiguration, NewReportingConfiguration, NewSphereConfiguration, NewTaxJarConfiguration } from "./resources/customers/customers.js";
|
|
21
22
|
import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroupUpdateParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
|
|
22
23
|
import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
|
|
24
|
+
import { LicenseCreateParams, LicenseCreateResponse, LicenseDeactivateParams, LicenseDeactivateResponse, LicenseListParams, LicenseListResponse, LicenseListResponsesPage, LicenseRetrieveByExternalIDParams, LicenseRetrieveByExternalIDResponse, LicenseRetrieveResponse, Licenses } from "./resources/licenses/licenses.js";
|
|
23
25
|
import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
|
|
24
26
|
import { EvaluatePriceGroup, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluatePreviewEventsParams, PriceEvaluatePreviewEventsResponse, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices } from "./resources/prices/prices.js";
|
|
25
27
|
export interface ClientOptions {
|
|
@@ -106,27 +108,109 @@ export declare class Orb extends Core.APIClient {
|
|
|
106
108
|
*/
|
|
107
109
|
constructor({ baseURL, apiKey, webhookSecret, ...opts }?: ClientOptions);
|
|
108
110
|
topLevel: API.TopLevel;
|
|
111
|
+
/**
|
|
112
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
113
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
114
|
+
* in the [Price resource](/reference/price).
|
|
115
|
+
*/
|
|
109
116
|
beta: API.Beta;
|
|
117
|
+
/**
|
|
118
|
+
* A coupon represents a reusable discount configuration that can be applied either as a fixed or percentage amount to an invoice or subscription. Coupons are activated using a redemption code, which applies the discount to a subscription or invoice. The duration of a coupon determines how long it remains available for use by end users.
|
|
119
|
+
*/
|
|
110
120
|
coupons: API.Coupons;
|
|
121
|
+
/**
|
|
122
|
+
* The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a
|
|
123
|
+
* particular invoice.
|
|
124
|
+
*/
|
|
111
125
|
creditNotes: API.CreditNotes;
|
|
126
|
+
/**
|
|
127
|
+
* A customer is a buyer of your products, and the other party to the billing relationship.
|
|
128
|
+
*
|
|
129
|
+
* In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
|
|
130
|
+
* match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
|
|
131
|
+
* `external_customer_id` with your own identifier. See
|
|
132
|
+
* [Customer ID Aliases](/events-and-metrics/customer-aliases) for further information about how these
|
|
133
|
+
* aliases work in Orb.
|
|
134
|
+
*
|
|
135
|
+
* In addition to having an identifier in your system, a customer may exist in a payment provider solution like
|
|
136
|
+
* Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
|
|
137
|
+
*
|
|
138
|
+
* A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
|
|
139
|
+
* defaults to your account's timezone. See [Timezone localization](/essentials/timezones) for
|
|
140
|
+
* information on what this timezone parameter influences within Orb.
|
|
141
|
+
*/
|
|
112
142
|
customers: API.Customers;
|
|
143
|
+
/**
|
|
144
|
+
* The [Event](/core-concepts#event) resource represents a usage event that has been created for a
|
|
145
|
+
* customer. Events are the core of Orb's usage-based billing model, and are used to calculate the usage charges for
|
|
146
|
+
* a given billing period.
|
|
147
|
+
*/
|
|
113
148
|
events: API.Events;
|
|
149
|
+
/**
|
|
150
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
151
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
152
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
153
|
+
* the result of an action, such as a cancellation.
|
|
154
|
+
*/
|
|
114
155
|
invoiceLineItems: API.InvoiceLineItems;
|
|
156
|
+
/**
|
|
157
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
158
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
159
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
160
|
+
* the result of an action, such as a cancellation.
|
|
161
|
+
*/
|
|
115
162
|
invoices: API.Invoices;
|
|
163
|
+
/**
|
|
164
|
+
* The Item resource represents a sellable product or good. Items are associated with all line items, billable metrics,
|
|
165
|
+
* and prices and are used for defining external sync behavior for invoices and tax calculation purposes.
|
|
166
|
+
*/
|
|
116
167
|
items: API.Items;
|
|
168
|
+
/**
|
|
169
|
+
* The Metric resource represents a calculation of a quantity based on events.
|
|
170
|
+
* Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.
|
|
171
|
+
*/
|
|
117
172
|
metrics: API.Metrics;
|
|
173
|
+
/**
|
|
174
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
175
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
176
|
+
* in the [Price resource](/reference/price).
|
|
177
|
+
*/
|
|
118
178
|
plans: API.Plans;
|
|
179
|
+
/**
|
|
180
|
+
* The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
|
|
181
|
+
* the form of an invoice line item. Prices take a quantity and determine an amount to bill.
|
|
182
|
+
*
|
|
183
|
+
* Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
|
|
184
|
+
* given Price object. The model_type field determines the key for the configuration object that is present.
|
|
185
|
+
*
|
|
186
|
+
* For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
|
|
187
|
+
*/
|
|
119
188
|
prices: API.Prices;
|
|
120
189
|
subscriptions: API.Subscriptions;
|
|
121
190
|
webhooks: API.Webhooks;
|
|
191
|
+
/**
|
|
192
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
193
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
194
|
+
*
|
|
195
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
196
|
+
*/
|
|
122
197
|
alerts: API.Alerts;
|
|
123
198
|
dimensionalPriceGroups: API.DimensionalPriceGroups;
|
|
124
199
|
subscriptionChanges: API.SubscriptionChanges;
|
|
200
|
+
/**
|
|
201
|
+
* The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid credits within Orb.
|
|
202
|
+
*/
|
|
125
203
|
creditBlocks: API.CreditBlocks;
|
|
204
|
+
/**
|
|
205
|
+
* The LicenseType resource represents a type of license that can be assigned to users.
|
|
206
|
+
* License types are used during billing by grouping metrics on the configured grouping key.
|
|
207
|
+
*/
|
|
208
|
+
licenseTypes: API.LicenseTypes;
|
|
209
|
+
licenses: API.Licenses;
|
|
126
210
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
127
211
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
128
212
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
129
|
-
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
213
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
130
214
|
static Orb: typeof Orb;
|
|
131
215
|
static DEFAULT_TIMEOUT: number;
|
|
132
216
|
static OrbError: typeof Errors.OrbError;
|
|
@@ -168,7 +252,7 @@ export declare namespace Orb {
|
|
|
168
252
|
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, };
|
|
169
253
|
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, };
|
|
170
254
|
export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
|
|
171
|
-
export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceListSummaryResponse as InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage as InvoiceListSummaryResponsesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceListSummaryParams as InvoiceListSummaryParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
255
|
+
export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceIssueSummaryResponse as InvoiceIssueSummaryResponse, type InvoiceListSummaryResponse as InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage as InvoiceListSummaryResponsesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceIssueSummaryParams as InvoiceIssueSummaryParams, type InvoiceListSummaryParams as InvoiceListSummaryParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
172
256
|
export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
|
|
173
257
|
export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
|
|
174
258
|
export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
|
|
@@ -177,7 +261,9 @@ export declare namespace Orb {
|
|
|
177
261
|
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, };
|
|
178
262
|
export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupUpdateParams as DimensionalPriceGroupUpdateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
|
|
179
263
|
export { SubscriptionChanges as SubscriptionChanges, type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeListResponse as SubscriptionChangeListResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, SubscriptionChangeListResponsesPage as SubscriptionChangeListResponsesPage, type SubscriptionChangeListParams as SubscriptionChangeListParams, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
|
|
180
|
-
export { CreditBlocks as CreditBlocks, type CreditBlockRetrieveResponse as CreditBlockRetrieveResponse };
|
|
264
|
+
export { CreditBlocks as CreditBlocks, type CreditBlockRetrieveResponse as CreditBlockRetrieveResponse, type CreditBlockListInvoicesResponse as CreditBlockListInvoicesResponse, };
|
|
265
|
+
export { LicenseTypes as LicenseTypes, type LicenseTypeCreateResponse as LicenseTypeCreateResponse, type LicenseTypeRetrieveResponse as LicenseTypeRetrieveResponse, type LicenseTypeListResponse as LicenseTypeListResponse, LicenseTypeListResponsesPage as LicenseTypeListResponsesPage, type LicenseTypeCreateParams as LicenseTypeCreateParams, type LicenseTypeListParams as LicenseTypeListParams, };
|
|
266
|
+
export { Licenses as Licenses, type LicenseCreateResponse as LicenseCreateResponse, type LicenseRetrieveResponse as LicenseRetrieveResponse, type LicenseListResponse as LicenseListResponse, type LicenseDeactivateResponse as LicenseDeactivateResponse, type LicenseRetrieveByExternalIDResponse as LicenseRetrieveByExternalIDResponse, LicenseListResponsesPage as LicenseListResponsesPage, type LicenseCreateParams as LicenseCreateParams, type LicenseListParams as LicenseListParams, type LicenseDeactivateParams as LicenseDeactivateParams, type LicenseRetrieveByExternalIDParams as LicenseRetrieveByExternalIDParams, };
|
|
181
267
|
export type Address = API.Address;
|
|
182
268
|
export type AdjustmentInterval = API.AdjustmentInterval;
|
|
183
269
|
export type AggregatedCost = API.AggregatedCost;
|
package/index.d.ts
CHANGED
|
@@ -6,11 +6,12 @@ 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
8
|
import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage, Threshold } from "./resources/alerts.js";
|
|
9
|
-
import { CreditBlockRetrieveResponse, CreditBlocks } from "./resources/credit-blocks.js";
|
|
9
|
+
import { CreditBlockListInvoicesResponse, CreditBlockRetrieveResponse, CreditBlocks } from "./resources/credit-blocks.js";
|
|
10
10
|
import { CreditNoteCreateParams, CreditNoteListParams, CreditNotes } from "./resources/credit-notes.js";
|
|
11
11
|
import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
|
|
12
|
-
import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceListSummaryParams, InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
|
|
12
|
+
import { InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceIssueSummaryParams, InvoiceIssueSummaryResponse, InvoiceListParams, InvoiceListSummaryParams, InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices } from "./resources/invoices.js";
|
|
13
13
|
import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
|
|
14
|
+
import { LicenseTypeCreateParams, LicenseTypeCreateResponse, LicenseTypeListParams, LicenseTypeListResponse, LicenseTypeListResponsesPage, LicenseTypeRetrieveResponse, LicenseTypes } from "./resources/license-types.js";
|
|
14
15
|
import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
|
|
15
16
|
import { MutatedSubscription, SubscriptionChangeApplyParams, SubscriptionChangeApplyResponse, SubscriptionChangeCancelResponse, SubscriptionChangeListParams, SubscriptionChangeListResponse, SubscriptionChangeListResponsesPage, SubscriptionChangeRetrieveResponse, SubscriptionChanges } from "./resources/subscription-changes.js";
|
|
16
17
|
import { DiscountOverride, NewSubscriptionBulkPrice, NewSubscriptionBulkWithProrationPrice, NewSubscriptionCumulativeGroupedBulkPrice, NewSubscriptionGroupedAllocationPrice, NewSubscriptionGroupedTieredPackagePrice, NewSubscriptionGroupedTieredPrice, NewSubscriptionGroupedWithMeteredMinimumPrice, NewSubscriptionGroupedWithProratedMinimumPrice, NewSubscriptionMatrixPrice, NewSubscriptionMatrixWithAllocationPrice, NewSubscriptionMatrixWithDisplayNamePrice, NewSubscriptionMaxGroupTieredPackagePrice, NewSubscriptionMinimumCompositePrice, NewSubscriptionPackagePrice, NewSubscriptionPackageWithAllocationPrice, NewSubscriptionScalableMatrixWithTieredPricingPrice, NewSubscriptionScalableMatrixWithUnitPricingPrice, NewSubscriptionThresholdTotalAmountPrice, 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";
|
|
@@ -20,6 +21,7 @@ import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } fr
|
|
|
20
21
|
import { AccountingProviderConfig, AddressInput, Customer, CustomerCreateParams, CustomerHierarchyConfig, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage, NewAccountingSyncConfiguration, NewAvalaraTaxConfiguration, NewReportingConfiguration, NewSphereConfiguration, NewTaxJarConfiguration } from "./resources/customers/customers.js";
|
|
21
22
|
import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroupUpdateParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
|
|
22
23
|
import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
|
|
24
|
+
import { LicenseCreateParams, LicenseCreateResponse, LicenseDeactivateParams, LicenseDeactivateResponse, LicenseListParams, LicenseListResponse, LicenseListResponsesPage, LicenseRetrieveByExternalIDParams, LicenseRetrieveByExternalIDResponse, LicenseRetrieveResponse, Licenses } from "./resources/licenses/licenses.js";
|
|
23
25
|
import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
|
|
24
26
|
import { EvaluatePriceGroup, PriceCreateParams, PriceEvaluateMultipleParams, PriceEvaluateMultipleResponse, PriceEvaluateParams, PriceEvaluatePreviewEventsParams, PriceEvaluatePreviewEventsResponse, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices } from "./resources/prices/prices.js";
|
|
25
27
|
export interface ClientOptions {
|
|
@@ -106,27 +108,109 @@ export declare class Orb extends Core.APIClient {
|
|
|
106
108
|
*/
|
|
107
109
|
constructor({ baseURL, apiKey, webhookSecret, ...opts }?: ClientOptions);
|
|
108
110
|
topLevel: API.TopLevel;
|
|
111
|
+
/**
|
|
112
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
113
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
114
|
+
* in the [Price resource](/reference/price).
|
|
115
|
+
*/
|
|
109
116
|
beta: API.Beta;
|
|
117
|
+
/**
|
|
118
|
+
* A coupon represents a reusable discount configuration that can be applied either as a fixed or percentage amount to an invoice or subscription. Coupons are activated using a redemption code, which applies the discount to a subscription or invoice. The duration of a coupon determines how long it remains available for use by end users.
|
|
119
|
+
*/
|
|
110
120
|
coupons: API.Coupons;
|
|
121
|
+
/**
|
|
122
|
+
* The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a
|
|
123
|
+
* particular invoice.
|
|
124
|
+
*/
|
|
111
125
|
creditNotes: API.CreditNotes;
|
|
126
|
+
/**
|
|
127
|
+
* A customer is a buyer of your products, and the other party to the billing relationship.
|
|
128
|
+
*
|
|
129
|
+
* In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
|
|
130
|
+
* match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
|
|
131
|
+
* `external_customer_id` with your own identifier. See
|
|
132
|
+
* [Customer ID Aliases](/events-and-metrics/customer-aliases) for further information about how these
|
|
133
|
+
* aliases work in Orb.
|
|
134
|
+
*
|
|
135
|
+
* In addition to having an identifier in your system, a customer may exist in a payment provider solution like
|
|
136
|
+
* Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
|
|
137
|
+
*
|
|
138
|
+
* A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
|
|
139
|
+
* defaults to your account's timezone. See [Timezone localization](/essentials/timezones) for
|
|
140
|
+
* information on what this timezone parameter influences within Orb.
|
|
141
|
+
*/
|
|
112
142
|
customers: API.Customers;
|
|
143
|
+
/**
|
|
144
|
+
* The [Event](/core-concepts#event) resource represents a usage event that has been created for a
|
|
145
|
+
* customer. Events are the core of Orb's usage-based billing model, and are used to calculate the usage charges for
|
|
146
|
+
* a given billing period.
|
|
147
|
+
*/
|
|
113
148
|
events: API.Events;
|
|
149
|
+
/**
|
|
150
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
151
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
152
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
153
|
+
* the result of an action, such as a cancellation.
|
|
154
|
+
*/
|
|
114
155
|
invoiceLineItems: API.InvoiceLineItems;
|
|
156
|
+
/**
|
|
157
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
158
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
159
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
160
|
+
* the result of an action, such as a cancellation.
|
|
161
|
+
*/
|
|
115
162
|
invoices: API.Invoices;
|
|
163
|
+
/**
|
|
164
|
+
* The Item resource represents a sellable product or good. Items are associated with all line items, billable metrics,
|
|
165
|
+
* and prices and are used for defining external sync behavior for invoices and tax calculation purposes.
|
|
166
|
+
*/
|
|
116
167
|
items: API.Items;
|
|
168
|
+
/**
|
|
169
|
+
* The Metric resource represents a calculation of a quantity based on events.
|
|
170
|
+
* Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.
|
|
171
|
+
*/
|
|
117
172
|
metrics: API.Metrics;
|
|
173
|
+
/**
|
|
174
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
175
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
176
|
+
* in the [Price resource](/reference/price).
|
|
177
|
+
*/
|
|
118
178
|
plans: API.Plans;
|
|
179
|
+
/**
|
|
180
|
+
* The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
|
|
181
|
+
* the form of an invoice line item. Prices take a quantity and determine an amount to bill.
|
|
182
|
+
*
|
|
183
|
+
* Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
|
|
184
|
+
* given Price object. The model_type field determines the key for the configuration object that is present.
|
|
185
|
+
*
|
|
186
|
+
* For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
|
|
187
|
+
*/
|
|
119
188
|
prices: API.Prices;
|
|
120
189
|
subscriptions: API.Subscriptions;
|
|
121
190
|
webhooks: API.Webhooks;
|
|
191
|
+
/**
|
|
192
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
193
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
194
|
+
*
|
|
195
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
196
|
+
*/
|
|
122
197
|
alerts: API.Alerts;
|
|
123
198
|
dimensionalPriceGroups: API.DimensionalPriceGroups;
|
|
124
199
|
subscriptionChanges: API.SubscriptionChanges;
|
|
200
|
+
/**
|
|
201
|
+
* The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid credits within Orb.
|
|
202
|
+
*/
|
|
125
203
|
creditBlocks: API.CreditBlocks;
|
|
204
|
+
/**
|
|
205
|
+
* The LicenseType resource represents a type of license that can be assigned to users.
|
|
206
|
+
* License types are used during billing by grouping metrics on the configured grouping key.
|
|
207
|
+
*/
|
|
208
|
+
licenseTypes: API.LicenseTypes;
|
|
209
|
+
licenses: API.Licenses;
|
|
126
210
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
127
211
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
128
212
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
129
|
-
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
213
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
130
214
|
static Orb: typeof Orb;
|
|
131
215
|
static DEFAULT_TIMEOUT: number;
|
|
132
216
|
static OrbError: typeof Errors.OrbError;
|
|
@@ -168,7 +252,7 @@ export declare namespace Orb {
|
|
|
168
252
|
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, };
|
|
169
253
|
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, };
|
|
170
254
|
export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
|
|
171
|
-
export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceListSummaryResponse as InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage as InvoiceListSummaryResponsesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceListSummaryParams as InvoiceListSummaryParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
255
|
+
export { Invoices as Invoices, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, type InvoiceIssueSummaryResponse as InvoiceIssueSummaryResponse, type InvoiceListSummaryResponse as InvoiceListSummaryResponse, InvoiceListSummaryResponsesPage as InvoiceListSummaryResponsesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceIssueSummaryParams as InvoiceIssueSummaryParams, type InvoiceListSummaryParams as InvoiceListSummaryParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
172
256
|
export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
|
|
173
257
|
export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
|
|
174
258
|
export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
|
|
@@ -177,7 +261,9 @@ export declare namespace Orb {
|
|
|
177
261
|
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, };
|
|
178
262
|
export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupUpdateParams as DimensionalPriceGroupUpdateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
|
|
179
263
|
export { SubscriptionChanges as SubscriptionChanges, type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeListResponse as SubscriptionChangeListResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, SubscriptionChangeListResponsesPage as SubscriptionChangeListResponsesPage, type SubscriptionChangeListParams as SubscriptionChangeListParams, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
|
|
180
|
-
export { CreditBlocks as CreditBlocks, type CreditBlockRetrieveResponse as CreditBlockRetrieveResponse };
|
|
264
|
+
export { CreditBlocks as CreditBlocks, type CreditBlockRetrieveResponse as CreditBlockRetrieveResponse, type CreditBlockListInvoicesResponse as CreditBlockListInvoicesResponse, };
|
|
265
|
+
export { LicenseTypes as LicenseTypes, type LicenseTypeCreateResponse as LicenseTypeCreateResponse, type LicenseTypeRetrieveResponse as LicenseTypeRetrieveResponse, type LicenseTypeListResponse as LicenseTypeListResponse, LicenseTypeListResponsesPage as LicenseTypeListResponsesPage, type LicenseTypeCreateParams as LicenseTypeCreateParams, type LicenseTypeListParams as LicenseTypeListParams, };
|
|
266
|
+
export { Licenses as Licenses, type LicenseCreateResponse as LicenseCreateResponse, type LicenseRetrieveResponse as LicenseRetrieveResponse, type LicenseListResponse as LicenseListResponse, type LicenseDeactivateResponse as LicenseDeactivateResponse, type LicenseRetrieveByExternalIDResponse as LicenseRetrieveByExternalIDResponse, LicenseListResponsesPage as LicenseListResponsesPage, type LicenseCreateParams as LicenseCreateParams, type LicenseListParams as LicenseListParams, type LicenseDeactivateParams as LicenseDeactivateParams, type LicenseRetrieveByExternalIDParams as LicenseRetrieveByExternalIDParams, };
|
|
181
267
|
export type Address = API.Address;
|
|
182
268
|
export type AdjustmentInterval = API.AdjustmentInterval;
|
|
183
269
|
export type AggregatedCost = API.AggregatedCost;
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK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C;IAClD,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAC5C,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,0BAA0B,CAAC;IACxE,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IAC9C,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IACxC,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,wBAAwB,CAAC;IACpE,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IAC9C,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;CAC/D;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,eAAe,GAAG,CAAC"}
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
var _Orb_instances, _a, _Orb_baseURLOverridden;
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.DuplicateResourceCreation = exports.UnprocessableEntityError = exports.OrbInternalServerError = exports.OrbAuthenticationError = exports.RequestValidationError = exports.PermissionDeniedError = exports.FeatureNotAvailable = exports.ConstraintViolation = exports.InternalServerError = exports.AuthenticationError = exports.ResourceTooLarge = exports.ResourceConflict = exports.ResourceNotFound = exports.TooManyRequests = exports.RequestTooLarge = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.URLNotFound = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.OrbError = exports.fileFromPath = exports.toFile = exports.Orb = void 0;
|
|
29
|
-
const
|
|
29
|
+
const query_1 = require("./internal/utils/query.js");
|
|
30
30
|
const Core = __importStar(require("./core.js"));
|
|
31
31
|
const Errors = __importStar(require("./error.js"));
|
|
32
32
|
const Pagination = __importStar(require("./pagination.js"));
|
|
@@ -38,6 +38,7 @@ const credit_notes_1 = require("./resources/credit-notes.js");
|
|
|
38
38
|
const invoice_line_items_1 = require("./resources/invoice-line-items.js");
|
|
39
39
|
const invoices_1 = require("./resources/invoices.js");
|
|
40
40
|
const items_1 = require("./resources/items.js");
|
|
41
|
+
const license_types_1 = require("./resources/license-types.js");
|
|
41
42
|
const metrics_1 = require("./resources/metrics.js");
|
|
42
43
|
const subscription_changes_1 = require("./resources/subscription-changes.js");
|
|
43
44
|
const subscriptions_1 = require("./resources/subscriptions.js");
|
|
@@ -47,6 +48,7 @@ const coupons_1 = require("./resources/coupons/coupons.js");
|
|
|
47
48
|
const customers_1 = require("./resources/customers/customers.js");
|
|
48
49
|
const dimensional_price_groups_1 = require("./resources/dimensional-price-groups/dimensional-price-groups.js");
|
|
49
50
|
const events_1 = require("./resources/events/events.js");
|
|
51
|
+
const licenses_1 = require("./resources/licenses/licenses.js");
|
|
50
52
|
const plans_1 = require("./resources/plans/plans.js");
|
|
51
53
|
const prices_1 = require("./resources/prices/prices.js");
|
|
52
54
|
/**
|
|
@@ -86,23 +88,105 @@ class Orb extends Core.APIClient {
|
|
|
86
88
|
});
|
|
87
89
|
_Orb_instances.add(this);
|
|
88
90
|
this.topLevel = new API.TopLevel(this);
|
|
91
|
+
/**
|
|
92
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
93
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
94
|
+
* in the [Price resource](/reference/price).
|
|
95
|
+
*/
|
|
89
96
|
this.beta = new API.Beta(this);
|
|
97
|
+
/**
|
|
98
|
+
* A coupon represents a reusable discount configuration that can be applied either as a fixed or percentage amount to an invoice or subscription. Coupons are activated using a redemption code, which applies the discount to a subscription or invoice. The duration of a coupon determines how long it remains available for use by end users.
|
|
99
|
+
*/
|
|
90
100
|
this.coupons = new API.Coupons(this);
|
|
101
|
+
/**
|
|
102
|
+
* The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a
|
|
103
|
+
* particular invoice.
|
|
104
|
+
*/
|
|
91
105
|
this.creditNotes = new API.CreditNotes(this);
|
|
106
|
+
/**
|
|
107
|
+
* A customer is a buyer of your products, and the other party to the billing relationship.
|
|
108
|
+
*
|
|
109
|
+
* In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
|
|
110
|
+
* match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
|
|
111
|
+
* `external_customer_id` with your own identifier. See
|
|
112
|
+
* [Customer ID Aliases](/events-and-metrics/customer-aliases) for further information about how these
|
|
113
|
+
* aliases work in Orb.
|
|
114
|
+
*
|
|
115
|
+
* In addition to having an identifier in your system, a customer may exist in a payment provider solution like
|
|
116
|
+
* Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
|
|
117
|
+
*
|
|
118
|
+
* A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
|
|
119
|
+
* defaults to your account's timezone. See [Timezone localization](/essentials/timezones) for
|
|
120
|
+
* information on what this timezone parameter influences within Orb.
|
|
121
|
+
*/
|
|
92
122
|
this.customers = new API.Customers(this);
|
|
123
|
+
/**
|
|
124
|
+
* The [Event](/core-concepts#event) resource represents a usage event that has been created for a
|
|
125
|
+
* customer. Events are the core of Orb's usage-based billing model, and are used to calculate the usage charges for
|
|
126
|
+
* a given billing period.
|
|
127
|
+
*/
|
|
93
128
|
this.events = new API.Events(this);
|
|
129
|
+
/**
|
|
130
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
131
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
132
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
133
|
+
* the result of an action, such as a cancellation.
|
|
134
|
+
*/
|
|
94
135
|
this.invoiceLineItems = new API.InvoiceLineItems(this);
|
|
136
|
+
/**
|
|
137
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
138
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
139
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
140
|
+
* the result of an action, such as a cancellation.
|
|
141
|
+
*/
|
|
95
142
|
this.invoices = new API.Invoices(this);
|
|
143
|
+
/**
|
|
144
|
+
* The Item resource represents a sellable product or good. Items are associated with all line items, billable metrics,
|
|
145
|
+
* and prices and are used for defining external sync behavior for invoices and tax calculation purposes.
|
|
146
|
+
*/
|
|
96
147
|
this.items = new API.Items(this);
|
|
148
|
+
/**
|
|
149
|
+
* The Metric resource represents a calculation of a quantity based on events.
|
|
150
|
+
* Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.
|
|
151
|
+
*/
|
|
97
152
|
this.metrics = new API.Metrics(this);
|
|
153
|
+
/**
|
|
154
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
155
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
156
|
+
* in the [Price resource](/reference/price).
|
|
157
|
+
*/
|
|
98
158
|
this.plans = new API.Plans(this);
|
|
159
|
+
/**
|
|
160
|
+
* The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
|
|
161
|
+
* the form of an invoice line item. Prices take a quantity and determine an amount to bill.
|
|
162
|
+
*
|
|
163
|
+
* Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
|
|
164
|
+
* given Price object. The model_type field determines the key for the configuration object that is present.
|
|
165
|
+
*
|
|
166
|
+
* For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
|
|
167
|
+
*/
|
|
99
168
|
this.prices = new API.Prices(this);
|
|
100
169
|
this.subscriptions = new API.Subscriptions(this);
|
|
101
170
|
this.webhooks = new API.Webhooks(this);
|
|
171
|
+
/**
|
|
172
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
173
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
174
|
+
*
|
|
175
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
176
|
+
*/
|
|
102
177
|
this.alerts = new API.Alerts(this);
|
|
103
178
|
this.dimensionalPriceGroups = new API.DimensionalPriceGroups(this);
|
|
104
179
|
this.subscriptionChanges = new API.SubscriptionChanges(this);
|
|
180
|
+
/**
|
|
181
|
+
* The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid credits within Orb.
|
|
182
|
+
*/
|
|
105
183
|
this.creditBlocks = new API.CreditBlocks(this);
|
|
184
|
+
/**
|
|
185
|
+
* The LicenseType resource represents a type of license that can be assigned to users.
|
|
186
|
+
* License types are used during billing by grouping metrics on the configured grouping key.
|
|
187
|
+
*/
|
|
188
|
+
this.licenseTypes = new API.LicenseTypes(this);
|
|
189
|
+
this.licenses = new API.Licenses(this);
|
|
106
190
|
this._options = options;
|
|
107
191
|
this.idempotencyHeader = 'Idempotency-Key';
|
|
108
192
|
this.apiKey = apiKey;
|
|
@@ -121,7 +205,7 @@ class Orb extends Core.APIClient {
|
|
|
121
205
|
return { Authorization: `Bearer ${this.apiKey}` };
|
|
122
206
|
}
|
|
123
207
|
stringifyQuery(query) {
|
|
124
|
-
return
|
|
208
|
+
return (0, query_1.stringifyQuery)(query);
|
|
125
209
|
}
|
|
126
210
|
}
|
|
127
211
|
exports.Orb = Orb;
|
|
@@ -183,6 +267,10 @@ Orb.DimensionalPriceGroupsPage = dimensional_price_groups_1.DimensionalPriceGrou
|
|
|
183
267
|
Orb.SubscriptionChanges = subscription_changes_1.SubscriptionChanges;
|
|
184
268
|
Orb.SubscriptionChangeListResponsesPage = subscription_changes_1.SubscriptionChangeListResponsesPage;
|
|
185
269
|
Orb.CreditBlocks = credit_blocks_1.CreditBlocks;
|
|
270
|
+
Orb.LicenseTypes = license_types_1.LicenseTypes;
|
|
271
|
+
Orb.LicenseTypeListResponsesPage = license_types_1.LicenseTypeListResponsesPage;
|
|
272
|
+
Orb.Licenses = licenses_1.Licenses;
|
|
273
|
+
Orb.LicenseListResponsesPage = licenses_1.LicenseListResponsesPage;
|
|
186
274
|
var uploads_1 = require("./uploads.js");
|
|
187
275
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
188
276
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,qDAAwD;AACxD,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,kDAY4B;AAC5B,gEAImC;AACnC,8DAAqG;AACrG,0EAIwC;AACxC,sDAc8B;AAC9B,gDAO2B;AAC3B,gEAQmC;AACnC,oDAO6B;AAC7B,8EAU0C;AAC1C,gEAgDmC;AACnC,wDAAuE;AACvE,mDAM+B;AAC/B,4DAMqC;AACrC,kEAgByC;AACzC,+GAOuE;AACvE,yDASmC;AACnC,+DAYuC;AACvC,sDAOiC;AACjC,yDAYmC;AAwEnC;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