@zinn-digital/sdk 0.1.1926 → 0.1.1928

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.
@@ -43901,6 +43901,8 @@ export interface paths {
43901
43901
  * The response carries whichever credential the chosen rail needs: `client_token` is a card intent's client secret for the browser SDK, `redirect_url` is an approval page for PayPal or a crypto invoice. `settled: true` means the total was zero and the order completed with no gateway at all.
43902
43902
  *
43903
43903
  * ⛔ Nothing here captures money and nothing here decides an order is paid. The gateway's webhook does both, exactly as it does for every other order on the platform.
43904
+ *
43905
+ * ⛔ This link needs no sign-in, so it never charges a payment method the payer org stored earlier, on any rail (a saved card, a saved PayPal account), and never draws the org's account credit: the first press always answers with the step where the payer presents a payment. A refusal carries its code in `error.details[].code` (`field: payment`) and is recorded on the audit log.
43904
43906
  */
43905
43907
  post: operations["startDirectInvoicePayment"];
43906
43908
  delete?: never;
@@ -43920,11 +43922,11 @@ export interface paths {
43920
43922
  put?: never;
43921
43923
  /**
43922
43924
  * The payer entered a card — record it and take the money. Unauthenticated.
43923
- * @description The second half of a two-step that cannot be collapsed into one. A payer with no card on file gets a **SetupIntent** from `/checkout`, confirms it in the browser, and lands here; this records the mandate and then charges the order.
43925
+ * @description The second half of a two-step that cannot be collapsed into one. The card rail of `/checkout` always answers with a **SetupIntent** (`status: setup_required`, nothing charged), whether or not the payer's organization already has a saved card: this link is public, so a saved card is never charged from it. The payer confirms the intent in the browser and lands here; this records the mandate and charges ONLY that card (never a saved one, and never another saved one after this card is declined).
43924
43926
  *
43925
43927
  * Charging on the first call instead would put a failed payment on the order — this platform classifies a mandate-less charge as *nothing was presented* — and the capture webhook refuses to settle one of those, so the money would be taken and never recorded.
43926
43928
  *
43927
- * `setup_intent_id` is an id and not a credential. The mandate behind it is re-read from the gateway and refused unless the gateway itself says it belongs to this invoice's payer, so holding one pay link cannot attach a stranger's saved card.
43929
+ * `setup_intent_id` is an id and not a credential. The mandate behind it is re-read from the gateway and refused unless the gateway itself says it belongs to this invoice's payer, so holding one pay link cannot attach a stranger's saved card. It must also be the intent THIS link opened (an intent of the same organization opened elsewhere is refused with the same `409`), and it must have succeeded at the gateway: an intent still awaiting authentication is not a card yet and nothing is recorded or charged.
43928
43930
  */
43929
43931
  post: operations["confirmDirectInvoicePayment"];
43930
43932
  delete?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1926",
3
+ "version": "0.1.1928",
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>",