orb-billing 2.6.0 → 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 +27 -0
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +36 -122
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +17 -42
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +17 -42
- package/resources/alerts.mjs.map +1 -1
- package/resources/customers/costs.d.ts +10 -10
- package/resources/events/backfills.d.ts +4 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +4 -0
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +4 -0
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +7 -7
- package/resources/events/events.js +7 -7
- package/resources/events/events.mjs +7 -7
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/subscriptions.d.ts +2 -2
- package/src/index.ts +0 -3
- package/src/resources/alerts.ts +42 -176
- package/src/resources/customers/costs.ts +10 -10
- package/src/resources/events/backfills.ts +4 -0
- package/src/resources/events/events.ts +7 -7
- package/src/resources/index.ts +0 -3
- 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
|
@@ -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).
|
|
@@ -241,7 +239,9 @@ export class Events extends APIResource {
|
|
|
241
239
|
* Orb's idempotency guarantees allow you to implement safe retry logic in the
|
|
242
240
|
* event of network or machine failures, ensuring data fidelity. Each event in the
|
|
243
241
|
* request payload is associated with an idempotency key, and Orb guarantees that a
|
|
244
|
-
* single idempotency key will be successfully ingested at most once.
|
|
242
|
+
* single idempotency key will be successfully ingested at most once. Note that
|
|
243
|
+
* when Orb encounters events with duplicate idempotency keys and differing event
|
|
244
|
+
* bodies in a batch of events, the entire batch will be rejected.
|
|
245
245
|
*
|
|
246
246
|
* - Successful responses return a 200 HTTP status code. The response contains
|
|
247
247
|
* information about previously processed events.
|
package/src/resources/index.ts
CHANGED
|
@@ -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
|