@commet/node 7.6.0 → 7.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/dist/index.mjs CHANGED
@@ -213,7 +213,7 @@ var PaymentsResource = class {
213
213
  async create(params, options) {
214
214
  return this.httpClient.post("/payments", params, options);
215
215
  }
216
- /** Charge a customer's vaulted payment method off-session. Calculates tax, generates an invoice, and sends a receipt. No subscription or plan required. */
216
+ /** Charge a customer's vaulted payment method off-session. Calculates tax, generates an invoice, and sends a receipt. Requires the customer to have a subscription in active, trialing, or past_due state. */
217
217
  async charge(params, options) {
218
218
  return this.httpClient.post("/payments/charge", params, options);
219
219
  }
@@ -572,7 +572,7 @@ var SubscriptionsResource = class {
572
572
  options
573
573
  );
574
574
  }
575
- /** Preview proration details for an immediate plan change (an upgrade or a longer interval) without applying it. Returns credit, charge, and net amount. Downgrades — a cheaper plan in the same group, or a shorter interval — are scheduled for the end of the current period instead of being prorated, so they return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. */
575
+ /** Preview proration details for an immediate plan change (an upgrade or a longer interval) without applying it. Returns credit, charge, and net amount. The target plan must belong to the same plan group as the current plan, otherwise a 400 with code `plans_not_in_same_group` is returned. A change between two free plans has nothing to prorate and returns a zero-amount estimate. Downgrades — a cheaper plan in the same group, or a shorter interval — are scheduled for the end of the current period instead of being prorated, so they return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. */
576
576
  async previewChange(params, options) {
577
577
  const { id, ...rest } = params;
578
578
  return this.httpClient.post(
@@ -833,8 +833,8 @@ var CommetValidationError = class extends CommetError {
833
833
  };
834
834
 
835
835
  // src/version.ts
836
- var API_VERSION = "2026-06-23";
837
- var SDK_VERSION = "7.6.0";
836
+ var API_VERSION = "2026-07-11";
837
+ var SDK_VERSION = "7.7.0";
838
838
 
839
839
  // src/utils/telemetry.ts
840
840
  var registeredIntegrations = /* @__PURE__ */ new Set();