@zinn-digital/sdk 0.1.2037 → 0.1.2039
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.
- package/dist/generated/schema.d.ts +68 -0
- package/package.json +1 -1
|
@@ -47386,6 +47386,26 @@ export interface paths {
|
|
|
47386
47386
|
patch?: never;
|
|
47387
47387
|
trace?: never;
|
|
47388
47388
|
};
|
|
47389
|
+
"/v1/public/checkout/order-status": {
|
|
47390
|
+
parameters: {
|
|
47391
|
+
query?: never;
|
|
47392
|
+
header?: never;
|
|
47393
|
+
path?: never;
|
|
47394
|
+
cookie?: never;
|
|
47395
|
+
};
|
|
47396
|
+
get?: never;
|
|
47397
|
+
put?: never;
|
|
47398
|
+
/**
|
|
47399
|
+
* Read a guest order's real payment state back after checkout.
|
|
47400
|
+
* @description ORDERCONF-1121. The storefront's order-complete page asks this before it says anything about an order, so a buyer whose order is still `pending_payment` is told to finish paying instead of "your order is confirmed". Authorised by the `status_token` the checkout returned (never the order id alone), sent in the BODY so it stays out of access logs and `Referer`. Reads only: nothing is charged, sent or changed. A forged, foreign or unknown token and a missing order are the same `404`.
|
|
47401
|
+
*/
|
|
47402
|
+
post: operations["publicCheckoutOrderStatus"];
|
|
47403
|
+
delete?: never;
|
|
47404
|
+
options?: never;
|
|
47405
|
+
head?: never;
|
|
47406
|
+
patch?: never;
|
|
47407
|
+
trace?: never;
|
|
47408
|
+
};
|
|
47389
47409
|
"/v1/public/client-portal/{token}": {
|
|
47390
47410
|
parameters: {
|
|
47391
47411
|
query?: {
|
|
@@ -101790,6 +101810,8 @@ export interface components {
|
|
|
101790
101810
|
site_id?: string | null;
|
|
101791
101811
|
};
|
|
101792
101812
|
PartnerPayment: {
|
|
101813
|
+
/** @description The order's billing country (ISO 3166-1 alpha-2, upper case), or empty when the order holds none. Only the two-letter code — the card form opens on it rather than guessing from the IP. Never an address. */
|
|
101814
|
+
billing_country: string;
|
|
101793
101815
|
/** @description Set while payable; empty once paid. */
|
|
101794
101816
|
cancel_url: string;
|
|
101795
101817
|
currency: string;
|
|
@@ -105662,6 +105684,8 @@ export interface components {
|
|
|
105662
105684
|
order_id: components["schemas"]["Uuid"];
|
|
105663
105685
|
/** @description The organization created by this call — the customer's new tenant. */
|
|
105664
105686
|
org_id: components["schemas"]["Uuid"];
|
|
105687
|
+
/** @description ORDERCONF-1121. The capability that reads THIS order's real payment state back through `POST /v1/public/checkout/order-status`, which the confirmation page does before it says anything about the order. Opaque, signed by the engine; it reaches one order and carries no personal data. Keep it out of URLs. */
|
|
105688
|
+
status_token?: string;
|
|
105665
105689
|
/** @description The order's net amount, in minor units. */
|
|
105666
105690
|
subtotal_minor: number;
|
|
105667
105691
|
/** @description The tax computed for `billing.country`, in minor units. A guest basket has no country, so this is the first moment the tax exists — show it. */
|
|
@@ -105897,6 +105921,23 @@ export interface components {
|
|
|
105897
105921
|
/** @enum {string} */
|
|
105898
105922
|
wording_version: "news-v1";
|
|
105899
105923
|
};
|
|
105924
|
+
/** @description A guest order's payment state as the buyer must read it (ORDERCONF-1121). No personal data: who placed it is never part of the answer. */
|
|
105925
|
+
PublicOrderStatus: {
|
|
105926
|
+
/** @description ISO 4217 code of the order. */
|
|
105927
|
+
currency: string;
|
|
105928
|
+
order_id: components["schemas"]["Uuid"];
|
|
105929
|
+
/**
|
|
105930
|
+
* @description `paid` — the money is in (paid, being delivered, delivered). `payment_due` — nothing has arrived, including a card the bank wants authenticated: pay now (card, PayPal or crypto). `processing` — payment is on its way and must NOT be repeated (crypto seen and confirming, a card authorised, a PayPal payment approved and not yet settled). `failed` — the payment failed; try again or another method. `closed` — canceled (an unpaid order is canceled after 7 days) or refunded.
|
|
105931
|
+
* @enum {string}
|
|
105932
|
+
*/
|
|
105933
|
+
state: "paid" | "payment_due" | "processing" | "failed" | "closed";
|
|
105934
|
+
/** @description What the order owes, tax included, in minor units. */
|
|
105935
|
+
total_minor: number;
|
|
105936
|
+
};
|
|
105937
|
+
PublicOrderStatusRequest: {
|
|
105938
|
+
/** @description The `status_token` from `POST /v1/public/checkout`. */
|
|
105939
|
+
status_token: string;
|
|
105940
|
+
};
|
|
105900
105941
|
/** @description The cheapest figure a Zinn® Private Cloud size is sold at, at one cadence. */
|
|
105901
105942
|
PublicOwnCloudComputePrice: {
|
|
105902
105943
|
/**
|
|
@@ -204568,6 +204609,33 @@ export interface operations {
|
|
|
204568
204609
|
};
|
|
204569
204610
|
};
|
|
204570
204611
|
};
|
|
204612
|
+
publicCheckoutOrderStatus: {
|
|
204613
|
+
parameters: {
|
|
204614
|
+
query?: never;
|
|
204615
|
+
header?: never;
|
|
204616
|
+
path?: never;
|
|
204617
|
+
cookie?: never;
|
|
204618
|
+
};
|
|
204619
|
+
requestBody: {
|
|
204620
|
+
content: {
|
|
204621
|
+
"application/json": components["schemas"]["PublicOrderStatusRequest"];
|
|
204622
|
+
};
|
|
204623
|
+
};
|
|
204624
|
+
responses: {
|
|
204625
|
+
/** @description The order's payment state. */
|
|
204626
|
+
200: {
|
|
204627
|
+
headers: {
|
|
204628
|
+
[name: string]: unknown;
|
|
204629
|
+
};
|
|
204630
|
+
content: {
|
|
204631
|
+
"application/json": components["schemas"]["PublicOrderStatus"];
|
|
204632
|
+
};
|
|
204633
|
+
};
|
|
204634
|
+
404: components["responses"]["NotFound"];
|
|
204635
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
204636
|
+
429: components["responses"]["TooManyRequests"];
|
|
204637
|
+
};
|
|
204638
|
+
};
|
|
204571
204639
|
viewClientPortal: {
|
|
204572
204640
|
parameters: {
|
|
204573
204641
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2039",
|
|
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>",
|