@zinn-digital/sdk 0.1.1877 → 0.1.1878

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.
@@ -28362,7 +28362,7 @@ export interface paths {
28362
28362
  put?: never;
28363
28363
  /**
28364
28364
  * Add a line to a cart.
28365
- * @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`, `details[0].sites_possible`).
28365
+ * @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`, `details[0].sites_possible`). A `domain_transfer` line that would be free under the transfer offer is also a `422` when a guard on the offer refuses it; `error.code` is one of `EMAIL_NOT_VERIFIED`, `NOT_IN_GOOD_STANDING`, `PREMIUM_NAME`, `CHECK_FAILED` or `FREE_TRANSFER_LIMIT`, and `error.refusal.key` (`refusal.freeTransfer.*`) is the sentence to show in the reader's language. Nothing is added to the cart by a refused call.
28366
28366
  */
28367
28367
  post: operations["addCartLine"];
28368
28368
  delete?: never;
@@ -42878,7 +42878,7 @@ export interface paths {
42878
42878
  put?: never;
42879
42879
  /**
42880
42880
  * Place a domain order for one of your customers, unpaid.
42881
- * @description Prices every line from our catalogue, re-verifies every availability token and places the order `pending_payment`. A line may be a registration or, with `kind: domain_transfer` and the `auth_code`, a transfer-in of a name held at another registrar — checked and priced exactly as `POST /v1/domains/transfer/preflight` quotes it, and refused with that check's reason when it is not eligible. ⛔ Nothing is charged here and no payment method is touched: the customer pays on the hosted page named by `pay_url`, and their browser is sent back to `return_url` (or `cancel_url`) with only `?order=<human_ref>&status=paid` (or `cancelled`) appended. Both URLs must be `https` on a host allowlisted for your programme, matched exactly — anything else is a `422` and no order is placed. `pay_url` carries a secret that is stored nowhere and shown only in this response; it lives 24 hours. `Idempotency-Key` is **required** — a retry returns the same order with a fresh `pay_url` rather than buying the name twice. Requires `partner.domains`.
42881
+ * @description Prices every line from our catalogue, re-verifies every availability token and places the order `pending_payment`. A line may be a registration or, with `kind: domain_transfer` and the `auth_code`, a transfer-in of a name held at another registrar — checked and priced exactly as `POST /v1/domains/transfer/preflight` quotes it, and refused with that check's reason when it is not eligible. A free transfer-in that a guard on the offer refuses is a `422` whose message is `"<fqdn>: <reason>"` and whose `details` carry `{field: "fqdn", code, message}` with code `PREMIUM_NAME` (a premium-priced name is never transferred free), `CHECK_FAILED` (try again shortly) or `FREE_TRANSFER_LIMIT` (the daily bound on free transfers, per order, per customer and across your programme); `NOT_IN_GOOD_STANDING` is returned only when that check is switched on for partner orders (off by default). No order is placed. ⛔ Nothing is charged here and no payment method is touched: the customer pays on the hosted page named by `pay_url`, and their browser is sent back to `return_url` (or `cancel_url`) with only `?order=<human_ref>&status=paid` (or `cancelled`) appended. Both URLs must be `https` on a host allowlisted for your programme, matched exactly — anything else is a `422` and no order is placed. `pay_url` carries a secret that is stored nowhere and shown only in this response; it lives 24 hours. `Idempotency-Key` is **required** — a retry returns the same order with a fresh `pay_url` rather than buying the name twice. Requires `partner.domains`.
42882
42882
  */
42883
42883
  post: operations["createPartnerDomainOrder"];
42884
42884
  delete?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1877",
3
+ "version": "0.1.1878",
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>",