@zinn-digital/sdk 0.1.1630 → 0.1.1631

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.
@@ -27535,6 +27535,8 @@ export interface paths {
27535
27535
  /**
27536
27536
  * Check out a cart — place and charge an order.
27537
27537
  * @description Converts the cart to an **immutable order**: re-prices every line, re-verifies each domain availability token (a stale/taken one is a `409`, with no charge), computes tax, places the order and charges it **wallet-first**. Fulfilment (provisioning/registration) then runs asynchronously as a Temporal workflow — this call never blocks on it (§2.9); poll the order `status` or the resource it produces. An **`Idempotency-Key` header is required**: a retried checkout returns the same order and never charges twice. Requires `billing.payment.manage`.
27538
+ *
27539
+ * **Pay first.** A cart carrying a new plan (`hosting_plan`, `compute_server`, `managed_database` or `boards_plan`) is refused with a `422` and the refusal `refusal.billing.renewalUnpaidNewPlan` while any subscription of the organisation owes an unpaid renewal, before tax is computed and before any order row or charge. Pay the renewal on the billing page, then check out.
27538
27540
  */
27539
27541
  post: operations["checkoutCart"];
27540
27542
  delete?: never;
@@ -46385,7 +46387,7 @@ export interface paths {
46385
46387
  *
46386
46388
  * `blocked_reason` is a **stable code, never prose**: `usage_exceeds` · `account_over_limit` · `platform_mismatch` · `no_price` · `unknown_package_type` · `different_target` · `no_package_type`. Your panel renders it in your own language. `blocked_detail` carries the numbers behind `usage_exceeds` so a screen can say which limit and by how much.
46387
46389
  *
46388
- * `changeable: false` means the **surface** is shut whatever plan is chosen, and `reason` says which: `no_subscription`, `not_billable`, `no_package_type`, or `subscription_not_live`.
46390
+ * `changeable: false` means the **surface** is shut whatever plan is chosen, and `reason` says which: `no_subscription`, `not_billable`, `no_package_type`, `subscription_not_live`, or `renewal_unpaid` (pay first: a renewal is unpaid, so a plan change is refused until it is paid).
46389
46391
  *
46390
46392
  * ⛔ `shared_subscription` is **retired** (2026-09-08) and this surface no longer returns it. It shut the screen whenever one subscription covered several of a client's sites — which is what a multi-site plan is — so a reseller's panel could not offer an upgrade to exactly the clients most likely to want one. A plan covering several sites is now moved for all of them together.
46391
46393
  */
@@ -56238,7 +56240,7 @@ export interface paths {
56238
56240
  *
56239
56241
  * Switching **away** cancels the agreement at PayPal first and unbinds second. The reverse order would hand the subscription back to the engine's renewal sweep while PayPal was still entitled to charge it — a double charge for the window between the two calls.
56240
56242
  *
56241
- * Requires `billing.payment.manage`. `422` carries a `code`: `ALREADY_ON_RAIL`, `NO_CATALOGUE_PRICE`, `PRICE_WOULD_CHANGE` (the subscription is on a price that differs from the published one, so switching would change what the customer pays — refused rather than done quietly), `NOT_SWITCHABLE`, or `PAYPAL_REFUSED`.
56243
+ * Requires `billing.payment.manage`. `422` carries a `code`: `ALREADY_ON_RAIL`, `NO_CATALOGUE_PRICE`, `PRICE_WOULD_CHANGE` (the subscription is on a price that differs from the published one, so switching would change what the customer pays — refused rather than done quietly), `NOT_SWITCHABLE`, `PAYPAL_REFUSED`, or `RENEWAL_UNPAID` (pay first: a renewal of this subscription is unpaid, so the switch onto PayPal is refused before PayPal is called; pay it on the billing page, then switch).
56242
56244
  */
56243
56245
  post: operations["setSubscriptionBillingRail"];
56244
56246
  delete?: never;
@@ -100139,7 +100141,7 @@ export interface components {
100139
100141
  current_plan_name?: string | null;
100140
100142
  options: components["schemas"]["ResellerServicePackageOption"][];
100141
100143
  /**
100142
- * @description Why, when `changeable` is false. A stable code: `no_subscription` · `not_billable` · `no_package_type` · `subscription_not_live`.
100144
+ * @description Why, when `changeable` is false. A stable code: `no_subscription` · `not_billable` · `no_package_type` · `subscription_not_live` · `renewal_unpaid` (the subscription owes an unpaid renewal; pay it first, then change plan).
100143
100145
  *
100144
100146
  * ⛔ `shared_subscription` is retired (2026-09-08) and is never returned again — a plan covering several sites is changed for all of them rather than declined.
100145
100147
  */
@@ -106900,7 +106902,7 @@ export interface components {
106900
106902
  /** @description The plans the site could move to, each already scored. */
106901
106903
  options: components["schemas"]["SitePlanOption"][];
106902
106904
  /**
106903
- * @description Why the whole surface is closed, as a **code** — `subscription_not_live` when the governing subscription is cancelled or expired and so is not a sale to change, `no_eligible_plan` when nothing in the catalogue is a legal move. Empty when it is open.
106905
+ * @description Why the whole surface is closed, as a **code** — `subscription_not_live` when the governing subscription is cancelled or expired and so is not a sale to change, `renewal_unpaid` when that subscription owes an unpaid renewal (pay first: pay it, then change plan), `no_eligible_plan` when nothing in the catalogue is a legal move. Empty when it is open.
106904
106906
  *
106905
106907
  * ⛔ `shared_subscription` is **retired** and this field never carries it again. It closed the surface whenever a subscription covered more than one site, which is what a multi-site plan IS, so a customer on PBN 25 had no upgrade path at all and was routed to support to buy something we were willing to sell. A plan covering several sites is now changed for all of them together; `coverage` says which.
106906
106908
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1630",
3
+ "version": "0.1.1631",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",