@zinn-digital/sdk 0.1.1630 → 0.1.1632
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 `
|
|
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 `
|
|
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
|
*/
|
|
@@ -162740,7 +162742,7 @@ export interface operations {
|
|
|
162740
162742
|
"application/json": components["schemas"]["Error"];
|
|
162741
162743
|
};
|
|
162742
162744
|
};
|
|
162743
|
-
/** @description The cart is not open, or `gateway` names a rail this purchase cannot be settled on, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry (one `details[]` entry per `domain` + `field` + `code`), or (`error.code` `REGISTRANT_REQUIRED`) a domain in the basket has no owner — send `registrant` or set the default registrant, then retry with the same `Idempotency-Key`. `error.details` names each domain. Or (`error.code` `REFUND_TERMS_REQUIRED`) the organisation has not agreed that refunds are issued as Zinn® credit — ask the customer, then retry with `accept_refund_terms: true`. Nothing was placed and nothing was charged. */
|
|
162745
|
+
/** @description The cart is not open, or `gateway` names a rail this purchase cannot be settled on, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry (one `details[]` entry per `domain` + `field` + `code`), or (`error.code` `REGISTRANT_REQUIRED`) a domain in the basket has no owner — send `registrant` or set the default registrant, then retry with the same `Idempotency-Key`. `error.details` names each domain. Or (`error.code` `REFUND_TERMS_REQUIRED`) the organisation has not agreed that refunds are issued as Zinn® credit — ask the customer, then retry with `accept_refund_terms: true`. Nothing was placed and nothing was charged. Or the card's share of the order is under the payment gateway's smallest charge and account credit cannot cover the whole order (docs/31 §4.4; no credit drawn), or the gateway answered and refused the charge (any credit drawn for it was given back). */
|
|
162744
162746
|
422: {
|
|
162745
162747
|
headers: {
|
|
162746
162748
|
[name: string]: unknown;
|
|
@@ -182866,7 +182868,7 @@ export interface operations {
|
|
|
182866
182868
|
401: components["responses"]["Unauthorized"];
|
|
182867
182869
|
403: components["responses"]["Forbidden"];
|
|
182868
182870
|
404: components["responses"]["NotFound"];
|
|
182869
|
-
/** @description The order is in a state that cannot be paid (canceled, refunding, draft), or `gateway` names a rail this order may not be settled on. */
|
|
182871
|
+
/** @description The order is in a state that cannot be paid (canceled, refunding, draft), or `gateway` names a rail this order may not be settled on, or the card's share is under the gateway's smallest charge and account credit cannot cover the whole order (docs/31 §4.4), or the gateway answered and refused the charge. Nothing was charged and any account credit drawn was given back. */
|
|
182870
182872
|
422: {
|
|
182871
182873
|
headers: {
|
|
182872
182874
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1632",
|
|
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>",
|