@commet/node 7.3.0 → 7.5.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.mjs CHANGED
@@ -435,7 +435,11 @@ var PromoCodesResource = class {
435
435
  const { id } = params;
436
436
  return this.httpClient.get(`/promo-codes/${id}`, void 0, options);
437
437
  }
438
- /** Create a new promo code. Optionally restrict to specific plans. */
438
+ /**
439
+ * Create a new promo code. Optionally restrict to specific plans.
440
+ *
441
+ * **100% discounts are not supported.** Percentage codes must be strictly less than 100% (`discountValue` < 10000 basis points). For full waivers, use an introductory offer on the plan instead. At checkout, any code — percentage or fixed amount — that would reduce the total below the currency's minimum charge ($0.50 USD equivalent) is silently dropped.
442
+ */
439
443
  async create(params, options) {
440
444
  return this.httpClient.post("/promo-codes", params, options);
441
445
  }
@@ -536,7 +540,7 @@ var SubscriptionsResource = class {
536
540
  const { id } = params;
537
541
  return this.httpClient.post(`/subscriptions/${id}/uncancel`, {}, options);
538
542
  }
539
- /** Retries the outstanding renewal charge for a past_due subscription. On a successful charge the subscription recovers to active and a payment.recovered webhook is delivered; a declined charge returns an error and the subscription stays past_due. */
543
+ /** Reactivates a subscription. A past_due subscription retries its outstanding renewal charge (recovering to active on success). A canceled subscription generates a fresh invoice, charges the saved card, and resets the billing period. On a successful charge the subscription becomes active; a declined charge returns an error with a recoveryUrl in the error details that can be sent to the customer to update their card. */
540
544
  async reactivate(params, options) {
541
545
  const { id } = params;
542
546
  return this.httpClient.post(`/subscriptions/${id}/reactivate`, {}, options);
@@ -829,8 +833,8 @@ var CommetValidationError = class extends CommetError {
829
833
  };
830
834
 
831
835
  // src/version.ts
832
- var API_VERSION = "2026-06-10";
833
- var SDK_VERSION = "7.3.0";
836
+ var API_VERSION = "2026-06-23";
837
+ var SDK_VERSION = "7.5.0";
834
838
 
835
839
  // src/utils/telemetry.ts
836
840
  var registeredIntegrations = /* @__PURE__ */ new Set();