@zinn-digital/sdk 0.1.1551 → 0.1.1552
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.
|
@@ -39132,7 +39132,7 @@ export interface paths {
|
|
|
39132
39132
|
*
|
|
39133
39133
|
* **Idempotent without an `Idempotency-Key`**, unlike checkout. The order already exists and is itself the dedup scope, so a double-submit records the same capture rather than taking a second one. A pay attempt against an already-paid order returns that order unchanged rather than an error.
|
|
39134
39134
|
*
|
|
39135
|
-
* A **declined card answers 200**, not 402: the attempt was processed exactly as asked and the order comes back `payment_failed` for the caller to read. Only the platform being unable to charge at all — no gateway configured, or one an operator has deliberately disabled — is a 503.
|
|
39135
|
+
* A **declined card answers 200**, not 402: the attempt was processed exactly as asked and the order comes back `payment_failed` for the caller to read. Only the platform being unable to charge at all — no gateway configured, or one an operator has deliberately disabled — is a 503. A decline on the customer's side (their bank said no, 3-D Secure not completed, card details wrong) arms ONE short help e-mail (`order.payment_help`) an hour later, tailored to the cause and the card's country, and sent only if nothing has been paid by then; a failure on our side never does.
|
|
39136
39136
|
*
|
|
39137
39137
|
* **Choosing a gateway.** Send `gateway` to settle this order on a specific rail rather than the org's default mandate — the owner's *"settle overdue bills with any gateway they like"*. It must be one of `getOrderPaymentOptions`'s entries, which is why a reseller's client (who has exactly one) cannot be re-routed. Rails that finish in the browser — PayPal approval, a crypto invoice — answer `200` with the order still `pending_payment` and a `customer_action` carrying the URL to send the customer to; the order settles when the gateway's webhook confirms it.
|
|
39138
39138
|
*/
|
|
@@ -39236,7 +39236,7 @@ export interface paths {
|
|
|
39236
39236
|
*
|
|
39237
39237
|
* ⛔ **The browser is not believed.** It reports that the buyer finished; only PayPal's capture response says money moved, and only the engine writes a payment. Posting an invented `paypal_order_id` produces a gateway error, never a paid order.
|
|
39238
39238
|
*
|
|
39239
|
-
* A **declined card answers 200** with the order `payment_failed`, for the same reason `payOrder` does — the attempt was processed exactly as asked.
|
|
39239
|
+
* A **declined card answers 200** with the order `payment_failed`, for the same reason `payOrder` does — the attempt was processed exactly as asked. A decline on the customer's side (e.g. `INSTRUMENT_DECLINED`) also arms a one-hour help e-mail (`order.payment_help`), sent only if nothing is paid by then.
|
|
39240
39240
|
*/
|
|
39241
39241
|
post: operations["capturePayPalOrder"];
|
|
39242
39242
|
delete?: never;
|
|
@@ -57663,7 +57663,7 @@ export interface paths {
|
|
|
57663
57663
|
put?: never;
|
|
57664
57664
|
/**
|
|
57665
57665
|
* Ingest a signed NOWPayments IPN.
|
|
57666
|
-
* @description **Unauthenticated by design** — NOWPayments holds no Zinn® credential, so the `x-nowpayments-sig` HMAC-SHA512 over the raw request body *is* the authentication. Crypto holds no mandate, so this path only ever **confirms an async (invoice-ahead) payment** (ADR 0011 §6) — it never creates a chargeable mandate. The tenant is recovered from the `order_id` Zinn® packed on the outbound invoice, since the IPN carries no principal. Replays are expected and converge; a status Zinn® does not act on (still pending, or terminally failed) is acknowledged with 200 (a non-2xx would make NOWPayments retry it for days).
|
|
57666
|
+
* @description **Unauthenticated by design** — NOWPayments holds no Zinn® credential, so the `x-nowpayments-sig` HMAC-SHA512 over the raw request body *is* the authentication. Crypto holds no mandate, so this path only ever **confirms an async (invoice-ahead) payment** (ADR 0011 §6) — it never creates a chargeable mandate. The tenant is recovered from the `order_id` Zinn® packed on the outbound invoice, since the IPN carries no principal. Replays are expected and converge; a status Zinn® does not act on (still pending, or terminally failed) is acknowledged with 200 (a non-2xx would make NOWPayments retry it for days). An `expired` invoice on a checkout order arms the customer's one-hour payment-help e-mail (`order.payment_help`, sent only if nothing is paid by then); the order's state is not changed.
|
|
57667
57667
|
*/
|
|
57668
57668
|
post: operations["receiveNowPaymentsWebhook"];
|
|
57669
57669
|
delete?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1552",
|
|
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>",
|