orb-billing 1.23.0 → 1.24.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 +8 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -1
- package/package.json +3 -1
- package/resources/coupons/coupons.d.ts +60 -2
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/credit-notes.d.ts +57 -5
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +2 -2
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/customers.d.ts +696 -8
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/usage.d.ts +74 -58
- package/resources/customers/usage.d.ts.map +1 -1
- package/resources/customers/usage.js +14 -14
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +14 -14
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/events.d.ts +40 -40
- package/resources/events/events.js +40 -40
- package/resources/events/events.mjs +40 -40
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +2 -2
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +358 -71
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +648 -4
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +3 -3
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +56 -83
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +62 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/subscriptions.d.ts +1084 -241
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +7 -2
- package/src/resources/coupons/coupons.ts +76 -2
- package/src/resources/credit-notes.ts +81 -5
- package/src/resources/customers/balance-transactions.ts +18 -2
- package/src/resources/customers/customers.ts +1144 -12
- package/src/resources/customers/usage.ts +80 -62
- package/src/resources/events/events.ts +40 -40
- package/src/resources/index.ts +3 -3
- package/src/resources/invoice-line-items.ts +2 -2
- package/src/resources/invoices.ts +598 -91
- package/src/resources/plans/plans.ts +810 -4
- package/src/resources/prices/index.ts +1 -1
- package/src/resources/prices/prices.ts +67 -100
- package/src/resources/shared.ts +84 -0
- package/src/resources/subscriptions.ts +1291 -279
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -138,47 +138,47 @@ class Events extends resource_1.APIResource {
|
|
|
138
138
|
* Events are the starting point for all usage calculations in the system, and are
|
|
139
139
|
* simple at their core:
|
|
140
140
|
*
|
|
141
|
-
* ```
|
|
141
|
+
* ```ts
|
|
142
142
|
* {
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
143
|
+
* // customer_id and external_customer_id are used to
|
|
144
|
+
* // attribute usage to a given Customer. Exactly one of these
|
|
145
|
+
* // should be specified in a given ingestion event.
|
|
146
|
+
*
|
|
147
|
+
* // `customer_id` is the Orb generated identifier for the Customer,
|
|
148
|
+
* // which is returned from the Create customer API call.
|
|
149
|
+
* customer_id: string,
|
|
150
|
+
*
|
|
151
|
+
* // external_customer_id is an alternate identifier which is associated
|
|
152
|
+
* // with a Customer at creation time. This is treated as an alias for
|
|
153
|
+
* // customer_id, and is usually set to an identifier native to your system.
|
|
154
|
+
* external_customer_id: string,
|
|
155
|
+
*
|
|
156
|
+
* // A string name identifying the event, usually a usage
|
|
157
|
+
* // action. By convention, this should not contain any whitespace.
|
|
158
|
+
* event_name: string,
|
|
159
|
+
*
|
|
160
|
+
* // An ISO 8601 format date with no timezone offset.
|
|
161
|
+
* // This should represent the time that usage occurred
|
|
162
|
+
* // and is important to attribute usage to a given
|
|
163
|
+
* // billing period. See the notes below on determining the timestamp.
|
|
164
|
+
* // e.g. 2020-12-09T16:09:53Z
|
|
165
|
+
* timestamp: string,
|
|
166
|
+
*
|
|
167
|
+
* // A unique value, generated by the client, that is
|
|
168
|
+
* // used to de-duplicate events.
|
|
169
|
+
* // Exactly one event with a given
|
|
170
|
+
* // idempotency key will be ingested, which allows for
|
|
171
|
+
* // safe request retries.
|
|
172
|
+
* idempotency_key: string
|
|
173
|
+
*
|
|
174
|
+
* // Optional custom metadata to attach to the event.
|
|
175
|
+
* // This might include a numeric value used for aggregation,
|
|
176
|
+
* // or a string/boolean value used for filtering.
|
|
177
|
+
* // The schema of this dictionary need not be pre-declared, and
|
|
178
|
+
* // properties can be added at any time.
|
|
179
|
+
* properties: {
|
|
180
|
+
* [key: string]?: string | number | boolean,
|
|
181
|
+
* },
|
|
182
182
|
* }
|
|
183
183
|
* ```
|
|
184
184
|
*
|
|
@@ -112,47 +112,47 @@ export class Events extends APIResource {
|
|
|
112
112
|
* Events are the starting point for all usage calculations in the system, and are
|
|
113
113
|
* simple at their core:
|
|
114
114
|
*
|
|
115
|
-
* ```
|
|
115
|
+
* ```ts
|
|
116
116
|
* {
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
117
|
+
* // customer_id and external_customer_id are used to
|
|
118
|
+
* // attribute usage to a given Customer. Exactly one of these
|
|
119
|
+
* // should be specified in a given ingestion event.
|
|
120
|
+
*
|
|
121
|
+
* // `customer_id` is the Orb generated identifier for the Customer,
|
|
122
|
+
* // which is returned from the Create customer API call.
|
|
123
|
+
* customer_id: string,
|
|
124
|
+
*
|
|
125
|
+
* // external_customer_id is an alternate identifier which is associated
|
|
126
|
+
* // with a Customer at creation time. This is treated as an alias for
|
|
127
|
+
* // customer_id, and is usually set to an identifier native to your system.
|
|
128
|
+
* external_customer_id: string,
|
|
129
|
+
*
|
|
130
|
+
* // A string name identifying the event, usually a usage
|
|
131
|
+
* // action. By convention, this should not contain any whitespace.
|
|
132
|
+
* event_name: string,
|
|
133
|
+
*
|
|
134
|
+
* // An ISO 8601 format date with no timezone offset.
|
|
135
|
+
* // This should represent the time that usage occurred
|
|
136
|
+
* // and is important to attribute usage to a given
|
|
137
|
+
* // billing period. See the notes below on determining the timestamp.
|
|
138
|
+
* // e.g. 2020-12-09T16:09:53Z
|
|
139
|
+
* timestamp: string,
|
|
140
|
+
*
|
|
141
|
+
* // A unique value, generated by the client, that is
|
|
142
|
+
* // used to de-duplicate events.
|
|
143
|
+
* // Exactly one event with a given
|
|
144
|
+
* // idempotency key will be ingested, which allows for
|
|
145
|
+
* // safe request retries.
|
|
146
|
+
* idempotency_key: string
|
|
147
|
+
*
|
|
148
|
+
* // Optional custom metadata to attach to the event.
|
|
149
|
+
* // This might include a numeric value used for aggregation,
|
|
150
|
+
* // or a string/boolean value used for filtering.
|
|
151
|
+
* // The schema of this dictionary need not be pre-declared, and
|
|
152
|
+
* // properties can be added at any time.
|
|
153
|
+
* properties: {
|
|
154
|
+
* [key: string]?: string | number | boolean,
|
|
155
|
+
* },
|
|
156
156
|
* }
|
|
157
157
|
* ```
|
|
158
158
|
*
|
package/resources/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
export * from "./shared.js";
|
|
1
2
|
export { Coupon, CouponCreateParams, CouponListParams, CouponsPage, Coupons } from "./coupons/coupons.js";
|
|
2
3
|
export { CreditNote, CreditNoteListParams, CreditNotesPage, CreditNotes } from "./credit-notes.js";
|
|
3
4
|
export { Customer, CustomerCreateParams, CustomerUpdateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomersPage, Customers, } from "./customers/customers.js";
|
|
4
|
-
export { Discount, Price, PriceCreateParams, PriceListParams, PricesPage, Prices } from "./prices/prices.js";
|
|
5
5
|
export { EventUpdateResponse, EventDeprecateResponse, EventIngestResponse, EventSearchResponse, EventUpdateParams, EventIngestParams, EventSearchParams, Events, } from "./events/events.js";
|
|
6
|
-
export { Invoice,
|
|
6
|
+
export { Invoice, InvoiceFetchUpcomingResponse, InvoiceCreateParams, InvoiceListParams, InvoiceFetchUpcomingParams, InvoiceMarkPaidParams, InvoicesPage, Invoices, } from "./invoices.js";
|
|
7
7
|
export { InvoiceLineItemCreateResponse, InvoiceLineItemCreateParams, InvoiceLineItems, } from "./invoice-line-items.js";
|
|
8
8
|
export { ItemListResponse, ItemFetchResponse, ItemListParams, ItemListResponsesPage, Items } from "./items.js";
|
|
9
9
|
export { MetricCreateResponse, MetricListResponse, MetricFetchResponse, MetricCreateParams, MetricListParams, MetricListResponsesPage, Metrics, } from "./metrics.js";
|
|
10
10
|
export { Plan, PlanCreateParams, PlanUpdateParams, PlanListParams, PlansPage, Plans } from "./plans/plans.js";
|
|
11
|
-
export {
|
|
11
|
+
export { Price, PriceCreateParams, PriceListParams, PricesPage, Prices } from "./prices/prices.js";
|
|
12
|
+
export { Subscription, SubscriptionUsage, Subscriptions, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleResponse, SubscriptionCreateParams, SubscriptionListParams, SubscriptionCancelParams, SubscriptionFetchCostsParams, SubscriptionFetchScheduleParams, SubscriptionFetchUsageParams, SubscriptionPriceIntervalsParams, SubscriptionSchedulePlanChangeParams, SubscriptionTriggerPhaseParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, } from "./subscriptions.js";
|
|
12
13
|
export { TopLevelPingResponse, TopLevel } from "./top-level.js";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,aAAa,EACb,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,aAAa,EACb,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,mBAAmB,EACnB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,QAAQ,GACT,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC5G,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,OAAO,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,8BAA8B,EAC9B,iCAAiC,EACjC,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,gCAAgC,EAChC,oCAAoC,EACpC,8BAA8B,EAC9B,mDAAmD,EACnD,wCAAwC,EACxC,iBAAiB,EACjB,sCAAsC,GACvC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
3
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.TopLevel = exports.SubscriptionFetchScheduleResponsesPage = exports.SubscriptionsPage = exports.Subscriptions = exports.Plans = exports.PlansPage = exports.Metrics = exports.MetricListResponsesPage = exports.Items = exports.ItemListResponsesPage = exports.InvoiceLineItems = exports.Invoices = exports.InvoicesPage = exports.Events = exports.
|
|
18
|
+
exports.TopLevel = exports.SubscriptionFetchScheduleResponsesPage = exports.SubscriptionsPage = exports.Subscriptions = exports.Prices = exports.PricesPage = exports.Plans = exports.PlansPage = exports.Metrics = exports.MetricListResponsesPage = exports.Items = exports.ItemListResponsesPage = exports.InvoiceLineItems = exports.Invoices = exports.InvoicesPage = exports.Events = exports.Customers = exports.CustomersPage = exports.CreditNotes = exports.CreditNotesPage = exports.Coupons = exports.CouponsPage = void 0;
|
|
19
|
+
__exportStar(require("./shared.js"), exports);
|
|
5
20
|
var coupons_1 = require("./coupons/coupons.js");
|
|
6
21
|
Object.defineProperty(exports, "CouponsPage", { enumerable: true, get: function () { return coupons_1.CouponsPage; } });
|
|
7
22
|
Object.defineProperty(exports, "Coupons", { enumerable: true, get: function () { return coupons_1.Coupons; } });
|
|
@@ -11,9 +26,6 @@ Object.defineProperty(exports, "CreditNotes", { enumerable: true, get: function
|
|
|
11
26
|
var customers_1 = require("./customers/customers.js");
|
|
12
27
|
Object.defineProperty(exports, "CustomersPage", { enumerable: true, get: function () { return customers_1.CustomersPage; } });
|
|
13
28
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
14
|
-
var prices_1 = require("./prices/prices.js");
|
|
15
|
-
Object.defineProperty(exports, "PricesPage", { enumerable: true, get: function () { return prices_1.PricesPage; } });
|
|
16
|
-
Object.defineProperty(exports, "Prices", { enumerable: true, get: function () { return prices_1.Prices; } });
|
|
17
29
|
var events_1 = require("./events/events.js");
|
|
18
30
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
19
31
|
var invoices_1 = require("./invoices.js");
|
|
@@ -30,6 +42,9 @@ Object.defineProperty(exports, "Metrics", { enumerable: true, get: function () {
|
|
|
30
42
|
var plans_1 = require("./plans/plans.js");
|
|
31
43
|
Object.defineProperty(exports, "PlansPage", { enumerable: true, get: function () { return plans_1.PlansPage; } });
|
|
32
44
|
Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return plans_1.Plans; } });
|
|
45
|
+
var prices_1 = require("./prices/prices.js");
|
|
46
|
+
Object.defineProperty(exports, "PricesPage", { enumerable: true, get: function () { return prices_1.PricesPage; } });
|
|
47
|
+
Object.defineProperty(exports, "Prices", { enumerable: true, get: function () { return prices_1.Prices; } });
|
|
33
48
|
var subscriptions_1 = require("./subscriptions.js");
|
|
34
49
|
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
35
50
|
Object.defineProperty(exports, "SubscriptionsPage", { enumerable: true, get: function () { return subscriptions_1.SubscriptionsPage; } });
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;AAErD,8CAAyB;AACzB,gDAAuG;AAAhD,sGAAA,WAAW,OAAA;AAAE,kGAAA,OAAO,OAAA;AAC3E,kDAAgG;AAArD,+GAAA,eAAe,OAAA;AAAE,2GAAA,WAAW,OAAA;AACvE,sDAQ+B;AAF7B,0GAAA,aAAa,OAAA;AACb,sGAAA,SAAS,OAAA;AAEX,6CASyB;AADvB,gGAAA,MAAM,OAAA;AAER,0CASoB;AAFlB,wGAAA,YAAY,OAAA;AACZ,oGAAA,QAAQ,OAAA;AAEV,8DAI8B;AAD5B,sHAAA,gBAAgB,OAAA;AAElB,oCAA4G;AAA9C,8GAAA,qBAAqB,OAAA;AAAE,8FAAA,KAAK,OAAA;AAC1F,wCAQmB;AAFjB,kHAAA,uBAAuB,OAAA;AACvB,kGAAA,OAAO,OAAA;AAET,0CAA2G;AAAxC,kGAAA,SAAS,OAAA;AAAE,8FAAA,KAAK,OAAA;AACnF,6CAAgG;AAA5C,oGAAA,UAAU,OAAA;AAAE,gGAAA,MAAM,OAAA;AACtE,oDAmByB;AAhBvB,8GAAA,aAAa,OAAA;AAcb,kHAAA,iBAAiB,OAAA;AACjB,uIAAA,sCAAsC,OAAA;AAExC,4CAA6D;AAA9B,qGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
export * from "./shared.mjs";
|
|
2
3
|
export { CouponsPage, Coupons } from "./coupons/coupons.mjs";
|
|
3
4
|
export { CreditNotesPage, CreditNotes } from "./credit-notes.mjs";
|
|
4
5
|
export { CustomersPage, Customers, } from "./customers/customers.mjs";
|
|
5
|
-
export { PricesPage, Prices } from "./prices/prices.mjs";
|
|
6
6
|
export { Events, } from "./events/events.mjs";
|
|
7
7
|
export { InvoicesPage, Invoices, } from "./invoices.mjs";
|
|
8
8
|
export { InvoiceLineItems, } from "./invoice-line-items.mjs";
|
|
9
9
|
export { ItemListResponsesPage, Items } from "./items.mjs";
|
|
10
10
|
export { MetricListResponsesPage, Metrics, } from "./metrics.mjs";
|
|
11
11
|
export { PlansPage, Plans } from "./plans/plans.mjs";
|
|
12
|
+
export { PricesPage, Prices } from "./prices/prices.mjs";
|
|
12
13
|
export { Subscriptions, SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, } from "./subscriptions.mjs";
|
|
13
14
|
export { TopLevel } from "./top-level.mjs";
|
|
14
15
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;;OAG9C,EAAgD,WAAW,EAAE,OAAO,EAAE;OACtE,EAAoC,eAAe,EAAE,WAAW,EAAE;OAClE,EAML,aAAa,EACb,SAAS,GACV;OACM,EAQL,MAAM,GACP;OACM,EAOL,YAAY,EACZ,QAAQ,GACT;OACM,EAGL,gBAAgB,GACjB;OACM,EAAuD,qBAAqB,EAAE,KAAK,EAAE;OACrF,EAML,uBAAuB,EACvB,OAAO,GACR;OACM,EAA4D,SAAS,EAAE,KAAK,EAAE;OAC9E,EAA6C,UAAU,EAAE,MAAM,EAAE;OACjE,EAGL,aAAa,EAcb,iBAAiB,EACjB,sCAAsC,GACvC;OACM,EAAwB,QAAQ,EAAE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Core from 'orb-billing/core';
|
|
2
2
|
import { APIResource } from 'orb-billing/resource';
|
|
3
3
|
import * as InvoiceLineItemsAPI from 'orb-billing/resources/invoice-line-items';
|
|
4
|
-
import * as
|
|
4
|
+
import * as Shared from 'orb-billing/resources/shared';
|
|
5
5
|
import * as PricesAPI from 'orb-billing/resources/prices/prices';
|
|
6
6
|
export declare class InvoiceLineItems extends APIResource {
|
|
7
7
|
/**
|
|
@@ -19,7 +19,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
19
19
|
* The final amount after any discounts or minimums.
|
|
20
20
|
*/
|
|
21
21
|
amount: string;
|
|
22
|
-
discount:
|
|
22
|
+
discount: Shared.Discount | null;
|
|
23
23
|
/**
|
|
24
24
|
* The end date of the range of time applied for this line item's price.
|
|
25
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-line-items.d.ts","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,mBAAmB,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"invoice-line-items.d.ts","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,mBAAmB,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,qCAAqC,CAAC;AAEjE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CA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