orb-billing 2.6.1 → 2.7.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 +13 -0
- package/package.json +1 -1
- package/resources/events/events.d.ts +4 -6
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +4 -6
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +4 -6
- package/resources/events/events.mjs.map +1 -1
- package/resources/subscriptions.d.ts +2 -2
- package/src/resources/events/events.ts +4 -6
- package/src/resources/subscriptions.ts +2 -2
- package/src/version.ts +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,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.7.0 (2024-05-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.6.1...v2.7.0](https://github.com/orbcorp/orb-node/compare/v2.6.1...v2.7.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updates ([#200](https://github.com/orbcorp/orb-node/issues/200)) ([61505d5](https://github.com/orbcorp/orb-node/commit/61505d5f0beaa363f95c797a73f135c4da9a0735))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **docs:** add SECURITY.md ([#198](https://github.com/orbcorp/orb-node/issues/198)) ([794c13f](https://github.com/orbcorp/orb-node/commit/794c13f0928bdec7dce33e57fc08150a79ee2c8a))
|
|
15
|
+
|
|
3
16
|
## 2.6.1 (2024-05-10)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v2.6.0...v2.6.1](https://github.com/orbcorp/orb-node/compare/v2.6.0...v2.6.1)
|
package/package.json
CHANGED
|
@@ -212,12 +212,10 @@ export declare class Events extends APIResource {
|
|
|
212
212
|
* We validate the following:
|
|
213
213
|
*
|
|
214
214
|
* - Exactly one of `customer_id` and `external_customer_id` should be specified.
|
|
215
|
-
* - If
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* period, this enforcement will be temporarily turned into a warning to ensure
|
|
220
|
-
* smooth customer migration.
|
|
215
|
+
* - If the `customer_id` is specified, the customer in Orb must exist.
|
|
216
|
+
* - If the `external_customer_id` is specified, the customer in Orb does not need
|
|
217
|
+
* to exist. Events will be attributed to any future customers with the
|
|
218
|
+
* `external_customer_id` on subscription creation.
|
|
221
219
|
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour
|
|
222
220
|
* in the future. This timestamp should be sent in UTC timezone (no timezone
|
|
223
221
|
* offset).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,SAAS,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,YAAY,MAAM,wCAAwC,CAAC;AAEvE,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAIlG
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":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Q,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IAC9D,MAAM,QAAQ,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IAC9D,MAAM,QAAQ,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IAC9D,MAAM,QAAQ,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IACjD,MAAM,QAAQ,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAC3E,MAAM,QAAQ,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;IACvE,MAAM,QAAQ,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;IACzE,MAAM,QAAQ,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;IACzE,MAAM,QAAQ,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAC3E,MAAM,QAAQ,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;IACjF,MAAM,QAAQ,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;IACvE,MAAM,QAAQ,kBAAkB,GAAG,YAAY,CAAC,kBAAkB,CAAC;CACpE"}
|
|
@@ -244,12 +244,10 @@ class Events extends resource_1.APIResource {
|
|
|
244
244
|
* We validate the following:
|
|
245
245
|
*
|
|
246
246
|
* - Exactly one of `customer_id` and `external_customer_id` should be specified.
|
|
247
|
-
* - If
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* period, this enforcement will be temporarily turned into a warning to ensure
|
|
252
|
-
* smooth customer migration.
|
|
247
|
+
* - If the `customer_id` is specified, the customer in Orb must exist.
|
|
248
|
+
* - If the `external_customer_id` is specified, the customer in Orb does not need
|
|
249
|
+
* to exist. Events will be attributed to any future customers with the
|
|
250
|
+
* `external_customer_id` on subscription creation.
|
|
253
251
|
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour
|
|
254
252
|
* in the future. This timestamp should be sent in UTC timezone (no timezone
|
|
255
253
|
* offset).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,mDAAmD;AAEnD,qFAAuE;AAEvE,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,mDAAmD;AAEnD,qFAAuE;AAEvE,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmU/E,CAAC;IAjUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,SAAS,CAAC,OAAe,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuMG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AApUD,wBAoUC;AAyND,WAAiB,MAAM;IAQP,gBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAMnC,gCAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;AAGnF,CAAC,EAjBgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAiBtB"}
|
|
@@ -218,12 +218,10 @@ export class Events extends APIResource {
|
|
|
218
218
|
* We validate the following:
|
|
219
219
|
*
|
|
220
220
|
* - Exactly one of `customer_id` and `external_customer_id` should be specified.
|
|
221
|
-
* - If
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* period, this enforcement will be temporarily turned into a warning to ensure
|
|
226
|
-
* smooth customer migration.
|
|
221
|
+
* - If the `customer_id` is specified, the customer in Orb must exist.
|
|
222
|
+
* - If the `external_customer_id` is specified, the customer in Orb does not need
|
|
223
|
+
* to exist. Events will be attributed to any future customers with the
|
|
224
|
+
* `external_customer_id` on subscription creation.
|
|
227
225
|
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour
|
|
228
226
|
* in the future. This timestamp should be sent in UTC timezone (no timezone
|
|
229
227
|
* offset).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,sBAAsB;OAE3C,KAAK,YAAY,MAAM,wCAAwC;AAEtE,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,sBAAsB;OAE3C,KAAK,YAAY,MAAM,wCAAwC;AAEtE,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmU/E,CAAC;IAjUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,SAAS,CAAC,OAAe,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuMG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAyND,WAAiB,MAAM;IAQP,gBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAMnC,gCAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;AAGnF,CAAC,EAjBgB,MAAM,KAAN,MAAM,QAiBtB"}
|
|
@@ -1777,7 +1777,7 @@ export interface SubscriptionCreateParams {
|
|
|
1777
1777
|
*/
|
|
1778
1778
|
metadata?: Record<string, string | null> | null;
|
|
1779
1779
|
net_terms?: number | null;
|
|
1780
|
-
per_credit_overage_amount?:
|
|
1780
|
+
per_credit_overage_amount?: number | null;
|
|
1781
1781
|
/**
|
|
1782
1782
|
* The plan that the given subscription should be switched to. Note that either
|
|
1783
1783
|
* this property or `external_plan_id` must be specified.
|
|
@@ -3965,7 +3965,7 @@ export interface SubscriptionSchedulePlanChangeParams {
|
|
|
3965
3965
|
* at the end of the billing period.
|
|
3966
3966
|
*/
|
|
3967
3967
|
invoicing_threshold?: string | null;
|
|
3968
|
-
per_credit_overage_amount?:
|
|
3968
|
+
per_credit_overage_amount?: number | null;
|
|
3969
3969
|
/**
|
|
3970
3970
|
* The plan that the given subscription should be switched to. Note that either
|
|
3971
3971
|
* this property or `external_plan_id` must be specified.
|
|
@@ -226,12 +226,10 @@ export class Events extends APIResource {
|
|
|
226
226
|
* We validate the following:
|
|
227
227
|
*
|
|
228
228
|
* - Exactly one of `customer_id` and `external_customer_id` should be specified.
|
|
229
|
-
* - If
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* period, this enforcement will be temporarily turned into a warning to ensure
|
|
234
|
-
* smooth customer migration.
|
|
229
|
+
* - If the `customer_id` is specified, the customer in Orb must exist.
|
|
230
|
+
* - If the `external_customer_id` is specified, the customer in Orb does not need
|
|
231
|
+
* to exist. Events will be attributed to any future customers with the
|
|
232
|
+
* `external_customer_id` on subscription creation.
|
|
235
233
|
* - `timestamp` must conform to ISO 8601 and represent a timestamp at most 1 hour
|
|
236
234
|
* in the future. This timestamp should be sent in UTC timezone (no timezone
|
|
237
235
|
* offset).
|
|
@@ -2087,7 +2087,7 @@ export interface SubscriptionCreateParams {
|
|
|
2087
2087
|
|
|
2088
2088
|
net_terms?: number | null;
|
|
2089
2089
|
|
|
2090
|
-
per_credit_overage_amount?:
|
|
2090
|
+
per_credit_overage_amount?: number | null;
|
|
2091
2091
|
|
|
2092
2092
|
/**
|
|
2093
2093
|
* The plan that the given subscription should be switched to. Note that either
|
|
@@ -4827,7 +4827,7 @@ export interface SubscriptionSchedulePlanChangeParams {
|
|
|
4827
4827
|
*/
|
|
4828
4828
|
invoicing_threshold?: string | null;
|
|
4829
4829
|
|
|
4830
|
-
per_credit_overage_amount?:
|
|
4830
|
+
per_credit_overage_amount?: number | null;
|
|
4831
4831
|
|
|
4832
4832
|
/**
|
|
4833
4833
|
* The plan that the given subscription should be switched to. Note that either
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.7.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|