@zinn-digital/sdk 0.1.1627 → 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
|
*/
|
|
@@ -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>",
|