@commet/node 9.1.1 → 9.3.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/dist/index.d.mts +274 -11
- package/dist/index.d.ts +274 -11
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/docs/api-reference/customers.md +1 -1
- package/docs/api-reference/generated-webhooks.md +2 -2
- package/docs/api-reference/plans.md +3 -3
- package/docs/api-reference/subscriptions.md +1 -1
- package/docs/documentation/sales/promotional-offers.md +18 -1
- package/docs/manifest.json +9 -1
- package/docs/platform-documentation.md +4 -0
- package/docs/schemas.md +19 -5
- package/docs/webhooks/meta.json +5 -0
- package/docs/webhooks/plan-grant-created.md +74 -0
- package/docs/webhooks/plan-grant-expired.md +86 -0
- package/docs/webhooks/plan-grant-revoked.md +86 -0
- package/docs/webhooks/plan-grant-updated.md +86 -0
- package/docs/webhooks.md +96 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -676,7 +676,7 @@ var SubscriptionsResource = class {
|
|
|
676
676
|
const { id, ...rest } = params;
|
|
677
677
|
return this.httpClient.post(`/subscriptions/${id}/credits`, rest, options);
|
|
678
678
|
}
|
|
679
|
-
/** Apply
|
|
679
|
+
/** Apply a direct Offer to a subscription. On a pending payment checkout it quotes or replaces the checkout discount and the existing checkout URL remains unchanged. On an active subscription it applies the Offer immediately with its discount phases starting at the next billing cycle; the call is rejected while another applied Offer still has active or upcoming discount phases. Offers with a free trial phase cannot be applied after checkout creation. */
|
|
680
680
|
async applyOffer(params, options) {
|
|
681
681
|
const { id, ...rest } = params;
|
|
682
682
|
return this.httpClient.put(`/subscriptions/${id}/offer`, rest, options);
|
|
@@ -991,7 +991,7 @@ var CommetValidationError = class extends CommetAPIError {
|
|
|
991
991
|
|
|
992
992
|
// src/version.ts
|
|
993
993
|
var API_VERSION = "2026-07-31";
|
|
994
|
-
var SDK_VERSION = "9.
|
|
994
|
+
var SDK_VERSION = "9.3.0";
|
|
995
995
|
|
|
996
996
|
// src/utils/telemetry.ts
|
|
997
997
|
var registeredIntegrations = /* @__PURE__ */ new Set();
|