@commet/node 7.3.0 → 7.4.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.js CHANGED
@@ -481,7 +481,11 @@ var PromoCodesResource = class {
481
481
  const { id } = params;
482
482
  return this.httpClient.get(`/promo-codes/${id}`, void 0, options);
483
483
  }
484
- /** Create a new promo code. Optionally restrict to specific plans. */
484
+ /**
485
+ * Create a new promo code. Optionally restrict to specific plans.
486
+ *
487
+ * **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.
488
+ */
485
489
  async create(params, options) {
486
490
  return this.httpClient.post("/promo-codes", params, options);
487
491
  }
@@ -582,7 +586,7 @@ var SubscriptionsResource = class {
582
586
  const { id } = params;
583
587
  return this.httpClient.post(`/subscriptions/${id}/uncancel`, {}, options);
584
588
  }
585
- /** 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. */
589
+ /** 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. */
586
590
  async reactivate(params, options) {
587
591
  const { id } = params;
588
592
  return this.httpClient.post(`/subscriptions/${id}/reactivate`, {}, options);
@@ -875,8 +879,8 @@ var CommetValidationError = class extends CommetError {
875
879
  };
876
880
 
877
881
  // src/version.ts
878
- var API_VERSION = "2026-06-10";
879
- var SDK_VERSION = "7.3.0";
882
+ var API_VERSION = "2026-06-23";
883
+ var SDK_VERSION = "7.4.0";
880
884
 
881
885
  // src/utils/telemetry.ts
882
886
  var registeredIntegrations = /* @__PURE__ */ new Set();