orb-billing 6.8.0 → 6.9.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 +14 -0
- package/package.json +1 -1
- package/resources/customers/costs.d.mts +20 -0
- package/resources/customers/costs.d.mts.map +1 -1
- package/resources/customers/costs.d.ts +20 -0
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +20 -0
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +20 -0
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/invoices.d.mts +9 -9
- package/resources/invoices.d.ts +9 -9
- package/resources/licenses/external-licenses.d.mts +7 -0
- package/resources/licenses/external-licenses.d.mts.map +1 -1
- package/resources/licenses/external-licenses.d.ts +7 -0
- package/resources/licenses/external-licenses.d.ts.map +1 -1
- package/resources/licenses/external-licenses.js +7 -0
- package/resources/licenses/external-licenses.js.map +1 -1
- package/resources/licenses/external-licenses.mjs +7 -0
- package/resources/licenses/external-licenses.mjs.map +1 -1
- package/resources/licenses/usage.d.mts +3 -0
- package/resources/licenses/usage.d.mts.map +1 -1
- package/resources/licenses/usage.d.ts +3 -0
- package/resources/licenses/usage.d.ts.map +1 -1
- package/resources/licenses/usage.js +3 -0
- package/resources/licenses/usage.js.map +1 -1
- package/resources/licenses/usage.mjs +3 -0
- package/resources/licenses/usage.mjs.map +1 -1
- package/resources/shared.d.mts +6 -6
- package/resources/shared.d.ts +6 -6
- package/src/resources/customers/costs.ts +20 -0
- package/src/resources/invoices.ts +9 -9
- package/src/resources/licenses/external-licenses.ts +7 -0
- package/src/resources/licenses/usage.ts +3 -0
- package/src/resources/shared.ts +6 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.9.0](https://github.com/orbcorp/orb-typescript/compare/v6.8.0...v6.9.0) (2026-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([5db204a](https://github.com/orbcorp/orb-typescript/commit/5db204a08d97ba6755774a8bc0f814ac664a154b))
|
|
9
|
+
* **api:** api update ([5db204a](https://github.com/orbcorp/orb-typescript/commit/5db204a08d97ba6755774a8bc0f814ac664a154b))
|
|
10
|
+
* **api:** api update ([5db204a](https://github.com/orbcorp/orb-typescript/commit/5db204a08d97ba6755774a8bc0f814ac664a154b))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **api:** correct next_attempt_at accuracy in invoice auto-collection response ([5db204a](https://github.com/orbcorp/orb-typescript/commit/5db204a08d97ba6755774a8bc0f814ac664a154b))
|
|
16
|
+
|
|
3
17
|
## [6.8.0](https://github.com/orbcorp/orb-typescript/compare/v6.7.0...v6.8.0) (2026-08-01)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -137,6 +137,16 @@ export declare class Costs extends APIResource {
|
|
|
137
137
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
138
138
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
139
139
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
140
|
+
*
|
|
141
|
+
* ## Trials
|
|
142
|
+
*
|
|
143
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
144
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
145
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
146
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
147
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
148
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
149
|
+
* charged during a trial.
|
|
140
150
|
*/
|
|
141
151
|
list(customerID: string, query?: CostListParams | null | undefined, options?: RequestOptions): APIPromise<CostListResponse>;
|
|
142
152
|
/**
|
|
@@ -257,6 +267,16 @@ export declare class Costs extends APIResource {
|
|
|
257
267
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
258
268
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
259
269
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
270
|
+
*
|
|
271
|
+
* ## Trials
|
|
272
|
+
*
|
|
273
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
274
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
275
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
276
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
277
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
278
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
279
|
+
* charged during a trial.
|
|
260
280
|
*/
|
|
261
281
|
listByExternalID(externalCustomerID: string, query?: CostListByExternalIDParams | null | undefined, options?: RequestOptions): APIPromise<CostListByExternalIDResponse>;
|
|
262
282
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"costs.d.mts","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"costs.d.mts","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EA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;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -137,6 +137,16 @@ export declare class Costs extends APIResource {
|
|
|
137
137
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
138
138
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
139
139
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
140
|
+
*
|
|
141
|
+
* ## Trials
|
|
142
|
+
*
|
|
143
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
144
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
145
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
146
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
147
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
148
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
149
|
+
* charged during a trial.
|
|
140
150
|
*/
|
|
141
151
|
list(customerID: string, query?: CostListParams | null | undefined, options?: RequestOptions): APIPromise<CostListResponse>;
|
|
142
152
|
/**
|
|
@@ -257,6 +267,16 @@ export declare class Costs extends APIResource {
|
|
|
257
267
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
258
268
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
259
269
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
270
|
+
*
|
|
271
|
+
* ## Trials
|
|
272
|
+
*
|
|
273
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
274
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
275
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
276
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
277
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
278
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
279
|
+
* charged during a trial.
|
|
260
280
|
*/
|
|
261
281
|
listByExternalID(externalCustomerID: string, query?: CostListByExternalIDParams | null | undefined, options?: RequestOptions): APIPromise<CostListByExternalIDResponse>;
|
|
262
282
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"costs.d.ts","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"costs.d.ts","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -139,6 +139,16 @@ class Costs extends resource_1.APIResource {
|
|
|
139
139
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
140
140
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
141
141
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
142
|
+
*
|
|
143
|
+
* ## Trials
|
|
144
|
+
*
|
|
145
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
146
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
147
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
148
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
149
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
150
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
151
|
+
* charged during a trial.
|
|
142
152
|
*/
|
|
143
153
|
list(customerID, query = {}, options) {
|
|
144
154
|
return this._client.get((0, path_1.path) `/customers/${customerID}/costs`, { query, ...options });
|
|
@@ -261,6 +271,16 @@ class Costs extends resource_1.APIResource {
|
|
|
261
271
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
262
272
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
263
273
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
274
|
+
*
|
|
275
|
+
* ## Trials
|
|
276
|
+
*
|
|
277
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
278
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
279
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
280
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
281
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
282
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
283
|
+
* charged during a trial.
|
|
264
284
|
*/
|
|
265
285
|
listByExternalID(externalCustomerID, query = {}, options) {
|
|
266
286
|
return this._client.get((0, path_1.path) `/customers/external_customer_id/${externalCustomerID}/costs`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"costs.js","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"costs.js","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgIG;IACH,IAAI,CACF,UAAkB,EAClB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,UAAU,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgIG;IACH,gBAAgB,CACd,kBAA0B,EAC1B,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mCAAmC,kBAAkB,QAAQ,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AArRD,sBAqRC"}
|
|
@@ -136,6 +136,16 @@ export class Costs extends APIResource {
|
|
|
136
136
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
137
137
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
138
138
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
139
|
+
*
|
|
140
|
+
* ## Trials
|
|
141
|
+
*
|
|
142
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
143
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
144
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
145
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
146
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
147
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
148
|
+
* charged during a trial.
|
|
139
149
|
*/
|
|
140
150
|
list(customerID, query = {}, options) {
|
|
141
151
|
return this._client.get(path `/customers/${customerID}/costs`, { query, ...options });
|
|
@@ -258,6 +268,16 @@ export class Costs extends APIResource {
|
|
|
258
268
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
259
269
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
260
270
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
271
|
+
*
|
|
272
|
+
* ## Trials
|
|
273
|
+
*
|
|
274
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
275
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
276
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
277
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
278
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
279
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
280
|
+
* charged during a trial.
|
|
261
281
|
*/
|
|
262
282
|
listByExternalID(externalCustomerID, query = {}, options) {
|
|
263
283
|
return this._client.get(path `/customers/external_customer_id/${externalCustomerID}/costs`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"costs.mjs","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"costs.mjs","sourceRoot":"","sources":["../../src/resources/customers/costs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgIG;IACH,IAAI,CACF,UAAkB,EAClB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,UAAU,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgIG;IACH,gBAAgB,CACd,kBAA0B,EAC1B,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mCAAmC,kBAAkB,QAAQ,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/invoices.d.mts
CHANGED
|
@@ -608,9 +608,9 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
608
608
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
609
609
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
610
610
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
611
|
-
* `previously_attempted_at` is non-null, and `
|
|
612
|
-
*
|
|
613
|
-
* `
|
|
611
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
612
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
613
|
+
* `next_attempt_at` is null).
|
|
614
614
|
*/
|
|
615
615
|
previously_attempted_at: string | null;
|
|
616
616
|
}
|
|
@@ -1159,9 +1159,9 @@ export declare namespace InvoiceIssueSummaryResponse {
|
|
|
1159
1159
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1160
1160
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1161
1161
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1162
|
-
* `previously_attempted_at` is non-null, and `
|
|
1163
|
-
*
|
|
1164
|
-
* `
|
|
1162
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1163
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1164
|
+
* `next_attempt_at` is null).
|
|
1165
1165
|
*/
|
|
1166
1166
|
previously_attempted_at: string | null;
|
|
1167
1167
|
}
|
|
@@ -1547,9 +1547,9 @@ export declare namespace InvoiceListSummaryResponse {
|
|
|
1547
1547
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1548
1548
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1549
1549
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1550
|
-
* `previously_attempted_at` is non-null, and `
|
|
1551
|
-
*
|
|
1552
|
-
* `
|
|
1550
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1551
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1552
|
+
* `next_attempt_at` is null).
|
|
1553
1553
|
*/
|
|
1554
1554
|
previously_attempted_at: string | null;
|
|
1555
1555
|
}
|
package/resources/invoices.d.ts
CHANGED
|
@@ -608,9 +608,9 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
608
608
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
609
609
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
610
610
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
611
|
-
* `previously_attempted_at` is non-null, and `
|
|
612
|
-
*
|
|
613
|
-
* `
|
|
611
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
612
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
613
|
+
* `next_attempt_at` is null).
|
|
614
614
|
*/
|
|
615
615
|
previously_attempted_at: string | null;
|
|
616
616
|
}
|
|
@@ -1159,9 +1159,9 @@ export declare namespace InvoiceIssueSummaryResponse {
|
|
|
1159
1159
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1160
1160
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1161
1161
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1162
|
-
* `previously_attempted_at` is non-null, and `
|
|
1163
|
-
*
|
|
1164
|
-
* `
|
|
1162
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1163
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1164
|
+
* `next_attempt_at` is null).
|
|
1165
1165
|
*/
|
|
1166
1166
|
previously_attempted_at: string | null;
|
|
1167
1167
|
}
|
|
@@ -1547,9 +1547,9 @@ export declare namespace InvoiceListSummaryResponse {
|
|
|
1547
1547
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1548
1548
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1549
1549
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1550
|
-
* `previously_attempted_at` is non-null, and `
|
|
1551
|
-
*
|
|
1552
|
-
* `
|
|
1550
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1551
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1552
|
+
* `next_attempt_at` is null).
|
|
1553
1553
|
*/
|
|
1554
1554
|
previously_attempted_at: string | null;
|
|
1555
1555
|
}
|
|
@@ -7,6 +7,13 @@ export declare class ExternalLicenses extends APIResource {
|
|
|
7
7
|
* Returns usage and remaining credits for a license identified by its external
|
|
8
8
|
* license ID.
|
|
9
9
|
*
|
|
10
|
+
* Resolves the currently active license with this external ID, i.e. the license
|
|
11
|
+
* whose active window contains the current time. An external license ID can map to
|
|
12
|
+
* multiple licenses over time, so if none is currently active (deactivated, window
|
|
13
|
+
* ended, or not yet started) this returns a 404. To fetch usage for a license
|
|
14
|
+
* regardless of active state, use the endpoint that takes Orb's internal license
|
|
15
|
+
* ID.
|
|
16
|
+
*
|
|
10
17
|
* Date range defaults to the current billing period if not specified.
|
|
11
18
|
*
|
|
12
19
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-licenses.d.mts","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"external-licenses.d.mts","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAM/C;AAED,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,KAAK,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAElD,mBAAmB,EAAE,MAAM,CAAC,kBAAkB,CAAC;CAChD;AAED,yBAAiB,+BAA+B,CAAC;IAC/C;;;;;;OAMG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5C;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpC;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -7,6 +7,13 @@ export declare class ExternalLicenses extends APIResource {
|
|
|
7
7
|
* Returns usage and remaining credits for a license identified by its external
|
|
8
8
|
* license ID.
|
|
9
9
|
*
|
|
10
|
+
* Resolves the currently active license with this external ID, i.e. the license
|
|
11
|
+
* whose active window contains the current time. An external license ID can map to
|
|
12
|
+
* multiple licenses over time, so if none is currently active (deactivated, window
|
|
13
|
+
* ended, or not yet started) this returns a 404. To fetch usage for a license
|
|
14
|
+
* regardless of active state, use the endpoint that takes Orb's internal license
|
|
15
|
+
* ID.
|
|
16
|
+
*
|
|
10
17
|
* Date range defaults to the current billing period if not specified.
|
|
11
18
|
*
|
|
12
19
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-licenses.d.ts","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"external-licenses.d.ts","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAM/C;AAED,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,KAAK,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAElD,mBAAmB,EAAE,MAAM,CAAC,kBAAkB,CAAC;CAChD;AAED,yBAAiB,+BAA+B,CAAC;IAC/C;;;;;;OAMG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5C;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpC;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -9,6 +9,13 @@ class ExternalLicenses extends resource_1.APIResource {
|
|
|
9
9
|
* Returns usage and remaining credits for a license identified by its external
|
|
10
10
|
* license ID.
|
|
11
11
|
*
|
|
12
|
+
* Resolves the currently active license with this external ID, i.e. the license
|
|
13
|
+
* whose active window contains the current time. An external license ID can map to
|
|
14
|
+
* multiple licenses over time, so if none is currently active (deactivated, window
|
|
15
|
+
* ended, or not yet started) this returns a 404. To fetch usage for a license
|
|
16
|
+
* regardless of active state, use the endpoint that takes Orb's internal license
|
|
17
|
+
* ID.
|
|
18
|
+
*
|
|
12
19
|
* Date range defaults to the current billing period if not specified.
|
|
13
20
|
*
|
|
14
21
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-licenses.js","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"external-licenses.js","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CACN,iBAAyB,EACzB,KAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,iBAAiB,QAAQ,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AApCD,4CAoCC"}
|
|
@@ -6,6 +6,13 @@ export class ExternalLicenses extends APIResource {
|
|
|
6
6
|
* Returns usage and remaining credits for a license identified by its external
|
|
7
7
|
* license ID.
|
|
8
8
|
*
|
|
9
|
+
* Resolves the currently active license with this external ID, i.e. the license
|
|
10
|
+
* whose active window contains the current time. An external license ID can map to
|
|
11
|
+
* multiple licenses over time, so if none is currently active (deactivated, window
|
|
12
|
+
* ended, or not yet started) this returns a 404. To fetch usage for a license
|
|
13
|
+
* regardless of active state, use the endpoint that takes Orb's internal license
|
|
14
|
+
* ID.
|
|
15
|
+
*
|
|
9
16
|
* Date range defaults to the current billing period if not specified.
|
|
10
17
|
*
|
|
11
18
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-licenses.mjs","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"external-licenses.mjs","sourceRoot":"","sources":["../../src/resources/licenses/external-licenses.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CACN,iBAAyB,EACzB,KAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,iBAAiB,QAAQ,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -21,6 +21,9 @@ export declare class Usage extends APIResource {
|
|
|
21
21
|
/**
|
|
22
22
|
* Returns usage and remaining credits for a specific license over a date range.
|
|
23
23
|
*
|
|
24
|
+
* Resolves the license by ID regardless of whether it is currently active, unlike
|
|
25
|
+
* the external-license-ID variant, which only resolves a currently active license.
|
|
26
|
+
*
|
|
24
27
|
* Date range defaults to the current billing period if not specified.
|
|
25
28
|
*
|
|
26
29
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAA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MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -21,6 +21,9 @@ export declare class Usage extends APIResource {
|
|
|
21
21
|
/**
|
|
22
22
|
* Returns usage and remaining credits for a specific license over a date range.
|
|
23
23
|
*
|
|
24
|
+
* Resolves the license by ID regardless of whether it is currently active, unlike
|
|
25
|
+
* the external-license-ID variant, which only resolves a currently active license.
|
|
26
|
+
*
|
|
24
27
|
* Date range defaults to the current billing period if not specified.
|
|
25
28
|
*
|
|
26
29
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE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;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -25,6 +25,9 @@ class Usage extends resource_1.APIResource {
|
|
|
25
25
|
/**
|
|
26
26
|
* Returns usage and remaining credits for a specific license over a date range.
|
|
27
27
|
*
|
|
28
|
+
* Resolves the license by ID regardless of whether it is currently active, unlike
|
|
29
|
+
* the external-license-ID variant, which only resolves a currently active license.
|
|
30
|
+
*
|
|
28
31
|
* Date range defaults to the current billing period if not specified.
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,KAA6B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,KAA6B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,SAAiB,EACjB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAzCD,sBAyCC"}
|
|
@@ -22,6 +22,9 @@ export class Usage extends APIResource {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns usage and remaining credits for a specific license over a date range.
|
|
24
24
|
*
|
|
25
|
+
* Resolves the license by ID regardless of whether it is currently active, unlike
|
|
26
|
+
* the external-license-ID variant, which only resolves a currently active license.
|
|
27
|
+
*
|
|
25
28
|
* Date range defaults to the current billing period if not specified.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,KAA6B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,KAA6B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,SAAiB,EACjB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -599,9 +599,9 @@ export declare namespace ChangedSubscriptionResources {
|
|
|
599
599
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
600
600
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
601
601
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
602
|
-
* `previously_attempted_at` is non-null, and `
|
|
603
|
-
*
|
|
604
|
-
* `
|
|
602
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
603
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
604
|
+
* `next_attempt_at` is null).
|
|
605
605
|
*/
|
|
606
606
|
previously_attempted_at: string | null;
|
|
607
607
|
}
|
|
@@ -1596,9 +1596,9 @@ export declare namespace Invoice {
|
|
|
1596
1596
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1597
1597
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1598
1598
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1599
|
-
* `previously_attempted_at` is non-null, and `
|
|
1600
|
-
*
|
|
1601
|
-
* `
|
|
1599
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1600
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1601
|
+
* `next_attempt_at` is null).
|
|
1602
1602
|
*/
|
|
1603
1603
|
previously_attempted_at: string | null;
|
|
1604
1604
|
}
|
package/resources/shared.d.ts
CHANGED
|
@@ -599,9 +599,9 @@ export declare namespace ChangedSubscriptionResources {
|
|
|
599
599
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
600
600
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
601
601
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
602
|
-
* `previously_attempted_at` is non-null, and `
|
|
603
|
-
*
|
|
604
|
-
* `
|
|
602
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
603
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
604
|
+
* `next_attempt_at` is null).
|
|
605
605
|
*/
|
|
606
606
|
previously_attempted_at: string | null;
|
|
607
607
|
}
|
|
@@ -1596,9 +1596,9 @@ export declare namespace Invoice {
|
|
|
1596
1596
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1597
1597
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1598
1598
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1599
|
-
* `previously_attempted_at` is non-null, and `
|
|
1600
|
-
*
|
|
1601
|
-
* `
|
|
1599
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1600
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1601
|
+
* `next_attempt_at` is null).
|
|
1602
1602
|
*/
|
|
1603
1603
|
previously_attempted_at: string | null;
|
|
1604
1604
|
}
|
|
@@ -141,6 +141,16 @@ export class Costs extends APIResource {
|
|
|
141
141
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
142
142
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
143
143
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
144
|
+
*
|
|
145
|
+
* ## Trials
|
|
146
|
+
*
|
|
147
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
148
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
149
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
150
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
151
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
152
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
153
|
+
* charged during a trial.
|
|
144
154
|
*/
|
|
145
155
|
list(
|
|
146
156
|
customerID: string,
|
|
@@ -268,6 +278,16 @@ export class Costs extends APIResource {
|
|
|
268
278
|
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
269
279
|
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
270
280
|
* `grouping_value` and `secondary_grouping_value` available.
|
|
281
|
+
*
|
|
282
|
+
* ## Trials
|
|
283
|
+
*
|
|
284
|
+
* During a trial, usage prices carry a trial discount, capped at the plan's trial
|
|
285
|
+
* maximum amount (or 100% when no maximum is set), and the trial period is billed
|
|
286
|
+
* as a single invoice dated at the trial's end. In the costs response,
|
|
287
|
+
* trial-period usage appears at full list price in `subtotal`, with the trial
|
|
288
|
+
* discount reflected in `total`: `total` is \$0 as long as usage stays within the
|
|
289
|
+
* trial maximum, and usage beyond the maximum bills normally. Fixed fees are not
|
|
290
|
+
* charged during a trial.
|
|
271
291
|
*/
|
|
272
292
|
listByExternalID(
|
|
273
293
|
externalCustomerID: string,
|
|
@@ -730,9 +730,9 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
730
730
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
731
731
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
732
732
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
733
|
-
* `previously_attempted_at` is non-null, and `
|
|
734
|
-
*
|
|
735
|
-
* `
|
|
733
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
734
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
735
|
+
* `next_attempt_at` is null).
|
|
736
736
|
*/
|
|
737
737
|
previously_attempted_at: string | null;
|
|
738
738
|
}
|
|
@@ -1389,9 +1389,9 @@ export namespace InvoiceIssueSummaryResponse {
|
|
|
1389
1389
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1390
1390
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1391
1391
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1392
|
-
* `previously_attempted_at` is non-null, and `
|
|
1393
|
-
*
|
|
1394
|
-
* `
|
|
1392
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1393
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1394
|
+
* `next_attempt_at` is null).
|
|
1395
1395
|
*/
|
|
1396
1396
|
previously_attempted_at: string | null;
|
|
1397
1397
|
}
|
|
@@ -1846,9 +1846,9 @@ export namespace InvoiceListSummaryResponse {
|
|
|
1846
1846
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
1847
1847
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
1848
1848
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
1849
|
-
* `previously_attempted_at` is non-null, and `
|
|
1850
|
-
*
|
|
1851
|
-
* `
|
|
1849
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
1850
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
1851
|
+
* `next_attempt_at` is null).
|
|
1852
1852
|
*/
|
|
1853
1853
|
previously_attempted_at: string | null;
|
|
1854
1854
|
}
|
|
@@ -11,6 +11,13 @@ export class ExternalLicenses extends APIResource {
|
|
|
11
11
|
* Returns usage and remaining credits for a license identified by its external
|
|
12
12
|
* license ID.
|
|
13
13
|
*
|
|
14
|
+
* Resolves the currently active license with this external ID, i.e. the license
|
|
15
|
+
* whose active window contains the current time. An external license ID can map to
|
|
16
|
+
* multiple licenses over time, so if none is currently active (deactivated, window
|
|
17
|
+
* ended, or not yet started) this returns a 404. To fetch usage for a license
|
|
18
|
+
* regardless of active state, use the endpoint that takes Orb's internal license
|
|
19
|
+
* ID.
|
|
20
|
+
*
|
|
14
21
|
* Date range defaults to the current billing period if not specified.
|
|
15
22
|
*
|
|
16
23
|
* @example
|
|
@@ -28,6 +28,9 @@ export class Usage extends APIResource {
|
|
|
28
28
|
/**
|
|
29
29
|
* Returns usage and remaining credits for a specific license over a date range.
|
|
30
30
|
*
|
|
31
|
+
* Resolves the license by ID regardless of whether it is currently active, unlike
|
|
32
|
+
* the external-license-ID variant, which only resolves a currently active license.
|
|
33
|
+
*
|
|
31
34
|
* Date range defaults to the current billing period if not specified.
|
|
32
35
|
*
|
|
33
36
|
* @example
|
package/src/resources/shared.ts
CHANGED
|
@@ -721,9 +721,9 @@ export namespace ChangedSubscriptionResources {
|
|
|
721
721
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
722
722
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
723
723
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
724
|
-
* `previously_attempted_at` is non-null, and `
|
|
725
|
-
*
|
|
726
|
-
* `
|
|
724
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
725
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
726
|
+
* `next_attempt_at` is null).
|
|
727
727
|
*/
|
|
728
728
|
previously_attempted_at: string | null;
|
|
729
729
|
}
|
|
@@ -2155,9 +2155,9 @@ export namespace Invoice {
|
|
|
2155
2155
|
* If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
2156
2156
|
* will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
2157
2157
|
* this can be used to tell whether the invoice is currently in dunning (that is,
|
|
2158
|
-
* `previously_attempted_at` is non-null, and `
|
|
2159
|
-
*
|
|
2160
|
-
* `
|
|
2158
|
+
* `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
2159
|
+
* dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
2160
|
+
* `next_attempt_at` is null).
|
|
2161
2161
|
*/
|
|
2162
2162
|
previously_attempted_at: string | null;
|
|
2163
2163
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.9.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|