@zinn-digital/sdk 0.1.1626 → 0.1.1628
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.
|
@@ -58139,7 +58139,7 @@ export interface paths {
|
|
|
58139
58139
|
put?: never;
|
|
58140
58140
|
/**
|
|
58141
58141
|
* Add credit to your balance.
|
|
58142
|
-
* @description Charged on **your provider's own** payment account when you are a reseller's client, and on Zinn®'s when you buy directly. The credit is written when the payment **captures**: a crypto invoice awaiting confirmation (`pending`), a card awaiting 3-D Secure or a PayPal payment awaiting your approval at `action_url` (`requires_action`) returns 201 with that status and **no** balance change, because the money has not arrived. An approved PayPal top-up is captured and credited when PayPal reports the approval. 422 when your provider has not finished connecting a payment account — the charge is refused rather than settled somewhere else.
|
|
58142
|
+
* @description Charged on **your provider's own** payment account when you are a reseller's client, and on Zinn®'s when you buy directly. The credit is written when the payment **captures**: a crypto invoice awaiting confirmation (`pending`), a card awaiting 3-D Secure or a PayPal payment awaiting your approval at `action_url` (`requires_action`) returns 201 with that status and **no** balance change, because the money has not arrived. An approved PayPal top-up is captured and credited when PayPal reports the approval. 422 when your provider has not finished connecting a payment account — the charge is refused rather than settled somewhere else. 422 `PAYMENT_METHOD_REQUIRED` (refusal `refusal.wallet.topUpPaymentStep`) when a card top-up is bought from Zinn® with no saved card: nothing is written and no gateway is asked. Show the customer a choice of card, PayPal or crypto for the same amount, then repeat the request on the chosen `gateway` (1108#13).
|
|
58143
58143
|
*
|
|
58144
58144
|
* ⚖️ **Credit bought from Zinn® is never refundable, including on account closure, and never expires** (owner ruling 2026-08-22). Call `GET /v1/wallet/top-ups/estimate` first and show the customer what they will actually receive — on a crypto rail that can be less than the amount quoted, because we credit what settles rather than what was asked for. Requires `billing.payment.manage`.
|
|
58145
58145
|
*/
|
|
@@ -82446,10 +82446,10 @@ export interface components {
|
|
|
82446
82446
|
/** @description `zinn`, `locked`, `connected_unknown`, `none`, or the vendor slug of the linked registrar account holding the domain (`godaddy`, `namecheap`, `porkbun`, `namecom`, `gandi`, `spaceship`, `namesilo`, `hostinger`, `ovh`). */
|
|
82447
82447
|
holder: string;
|
|
82448
82448
|
/**
|
|
82449
|
-
* @description `null` means never resynced. `aligned` moved it; `already` it was right; `byo` no connected registrar could move it; `failed` the registrar refused; `unknown` the authority could not be read, so nothing was written; `zone_prepared` a domain with no site had its zone on our DNS prepared and nothing moved at the registrar yet; `zone_not_answering` our zone was not yet seen answering on its own nameservers, so the delegation was NOT switched (a live site must not go dark); `kept_dns` (Q464) a partner moved the site here, so its DNS stays where it is and nothing was moved.
|
|
82449
|
+
* @description `null` means never resynced. `aligned` moved it; `already` it was right; `byo` no connected registrar could move it; `failed` the registrar refused; `unknown` the authority could not be read, so nothing was written; `zone_prepared` a domain with no site had its zone on our DNS prepared and nothing moved at the registrar yet; `zone_not_answering` our zone was not yet seen answering on its own nameservers, so the delegation was NOT switched (a live site must not go dark); `kept_dns` (Q464) a partner moved the site here, so its DNS stays where it is and nothing was moved; `deferred` (D75228) the new nameservers could not be asked whether they publish the apex, so nothing moved (the site keeps serving) and the move is retried with backoff.
|
|
82450
82450
|
* @enum {string|null}
|
|
82451
82451
|
*/
|
|
82452
|
-
last_outcome: "aligned" | "already" | "byo" | "no_registrar" | "unknown" | "failed" | "locked" | "no_site" | "missing" | "zone_prepared" | "zone_not_answering" | "kept_dns" | null;
|
|
82452
|
+
last_outcome: "aligned" | "already" | "byo" | "no_registrar" | "unknown" | "failed" | "locked" | "no_site" | "missing" | "zone_prepared" | "zone_not_answering" | "kept_dns" | "deferred" | null;
|
|
82453
82453
|
/** Format: date-time */
|
|
82454
82454
|
last_synced_at: string | null;
|
|
82455
82455
|
/** @enum {string|null} */
|
|
@@ -95258,9 +95258,9 @@ export interface components {
|
|
|
95258
95258
|
order_ref: string;
|
|
95259
95259
|
/**
|
|
95260
95260
|
* Format: uuid
|
|
95261
|
-
* @description The waiting `ExtraPurchase
|
|
95261
|
+
* @description The waiting `ExtraPurchase`, or null when the step is for a cart or order with no add-on purchase behind it (cart checkout and order Pay with nothing stored that can settle it, 1108#13).
|
|
95262
95262
|
*/
|
|
95263
|
-
purchase_id: string;
|
|
95263
|
+
purchase_id: string | null;
|
|
95264
95264
|
/** @description The order total in minor units, tax included. */
|
|
95265
95265
|
total_minor: number;
|
|
95266
95266
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1628",
|
|
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>",
|