@zinn-digital/sdk 0.1.2019 → 0.1.2022

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.
@@ -44941,6 +44941,8 @@ export interface paths {
44941
44941
  * Every string in the response is already translated into the recipient's locale — the one stored on the document, not the one of whoever's browser opened the link. The page that renders this holds no copy of its own.
44942
44942
  *
44943
44943
  * Every refusal answers with the same sentence whatever the cause — a wrong token, a draft, a withdrawn or an unknown one. Distinguishing them would confirm to a stranger that a token is real, which is the oracle that makes a capability URL worth sweeping.
44944
+ *
44945
+ * This is also where PayPal returns the payer: a load captures an APPROVED PayPal order for this invoice (once, behind the double-charge fence) before the status is read.
44944
44946
  */
44945
44947
  get: operations["getDirectInvoiceForPayer"];
44946
44948
  put?: never;
@@ -119754,7 +119756,7 @@ export interface components {
119754
119756
  }[];
119755
119757
  /**
119756
119758
  * Format: uuid
119757
- * @description Signed-in route only, optional (the public route ignores it). The caller's ACTIVE organisation, as the dashboard's org switcher scopes every read: the quote is rated on that org's stored billing country and VAT status. Honoured only when the caller is a member of it; any other id is ignored (never looked up, never a 403), so a quote can never reveal another organisation's country. Without it, a caller with more than one membership is rated as a guest (CARTVAT-1121).
119759
+ * @description Signed-in route only, optional (the public route ignores it). The caller's ACTIVE organisation, as the dashboard's org switcher scopes every read: the quote is rated on that org's stored billing country and VAT status, and sold by that org's seller (a reseller's client is rated under its reseller, exactly as checkout rates it). Honoured only when the caller is a member of it or may pay for it (`billing.payment.manage`, which includes a reseller admin's client orgs); any other id is ignored (never looked up, never a 403), so a quote can never reveal another organisation's country. Without it, a caller with more than one membership is rated as a guest (CARTVAT-1121, RESELLERPAY C17).
119758
119760
  */
119759
119761
  org_id?: string;
119760
119762
  /** @description Absent means false. Which question is asked. `false` prices a BASKET exactly as its invoice will be rounded (VAT once per rate group, leftover cents by largest remainder), so the totals are what checkout charges: use it for a cart or checkout. `true` prices a LIST of independent items, each rated as its own one-item invoice, so an item shows the same cents whatever else is in the request: use it for a price list or plan table. The totals of a `per_item` quote are a sum of standalone prices, not a basket. Only a literal `true` enables it. */
@@ -197390,7 +197392,7 @@ export interface operations {
197390
197392
  401: components["responses"]["Unauthorized"];
197391
197393
  403: components["responses"]["Forbidden"];
197392
197394
  404: components["responses"]["NotFound"];
197393
- /** @description There is nothing for the customer to do — the order is already paid, is in a state that cannot be paid, has no payment in progress yet, or its checkout can no longer be reopened. The message says which, and is safe to show. */
197395
+ /** @description There is nothing for the customer to do — the order is already paid, is in a state that cannot be paid, has no payment in progress yet, or its checkout can no longer be reopened. The message says which, and is safe to show. A browser card payment whose card form was closed before any card was submitted has no next action: it is retired at the processor (it can take no money) and answered as "no payment in progress", so the order can be paid again from the start. */
197394
197396
  422: {
197395
197397
  headers: {
197396
197398
  [name: string]: unknown;
@@ -200436,7 +200438,7 @@ export interface operations {
200436
200438
  "application/json": components["schemas"]["Error"];
200437
200439
  };
200438
200440
  };
200439
- /** @description The payment cannot be started. Either this invoice is not open for payment, or the address already has a Zinn Digital® account and the invoice is waiting on their billing page, or the payment method chosen is not one this invoice can be paid with (`rail_not_available` — never quietly swapped for a card). */
200441
+ /** @description The payment cannot be started. Either this invoice is not open for payment, or the address belongs to a different Zinn Digital® user (`account_exists`), or its existing account has not verified that exact address (`account_unverified`), or the payment method chosen is not one this invoice can be paid with (`rail_not_available` — never quietly swapped for a card). An existing account that HAS verified the address is bound to the invoice and pays here. */
200440
200442
  409: {
200441
200443
  headers: {
200442
200444
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2019",
3
+ "version": "0.1.2022",
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>",