@zinn-digital/sdk 0.1.2016 → 0.1.2019
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 +17 -4
- package/package.json +1 -1
|
@@ -43041,7 +43041,7 @@ export interface paths {
|
|
|
43041
43041
|
put?: never;
|
|
43042
43042
|
/**
|
|
43043
43043
|
* Open a PayPal order for the browser to complete.
|
|
43044
|
-
* @description Returns the PayPal order id the JS SDK attaches to
|
|
43044
|
+
* @description Returns the PayPal order id the JS SDK attaches to, for the rail named in the body: the PayPal wallet via Buttons (the default) or a card entered into PayPal's hosted Advanced card fields (`rail: card`). A card-rail order asks PayPal for 3-D Secure whenever the issuer or regulation requires it (`SCA_WHEN_REQUIRED`), and its capture is refused, with nothing charged, when PayPal's authentication result says not to continue (`liability_shift` `NO` on an enrolled card, or `UNKNOWN`). Idempotent per Zinn® order and rail: reloading the checkout page returns the same PayPal order rather than opening a second one.
|
|
43045
43045
|
*
|
|
43046
43046
|
* When the order lets account credit pay first (`use_credit`, row 1106#49) the PayPal order is opened for the total **less** that credit; the credit is debited just before capture and given back if the capture is declined or the approval abandoned.
|
|
43047
43047
|
*/
|
|
@@ -84655,7 +84655,7 @@ export interface components {
|
|
|
84655
84655
|
};
|
|
84656
84656
|
ComputeAddPanelStatus: {
|
|
84657
84657
|
available: boolean;
|
|
84658
|
-
/** @description The Zinn panel's access key, PUBLIC line only (`ssh-ed25519 AAAA… comment`), for a server we did not build with it (bought bare). The customer adds it to `key_path` before pressing Add, because the enrolment signs in with that key; without it the enrolment ends `refusal.enrol.keyNotInstalled`. `""` when no step is needed (a server built with our key, a panel being added or already on) or the key cannot be read right now. Never the private half, never the customer's own key. */
|
|
84658
|
+
/** @description The Zinn® panel's access key, PUBLIC line only (`ssh-ed25519 AAAA… comment`), for a server we did not build with it (bought bare). The customer adds it to `key_path` before pressing Add, because the enrolment signs in with that key; without it the enrolment ends `refusal.enrol.keyNotInstalled`. `""` when no step is needed (a server built with our key, a panel being added or already on) or the key cannot be read right now. Never the private half, never the customer's own key. */
|
|
84659
84659
|
key_line: string;
|
|
84660
84660
|
/** @description The file `key_line` goes in on the server: the `authorized_keys` of the account the enrolment signs in as, the box's own login user (`/home/admin/.ssh/authorized_keys` on a box built with the access model), never a fixed `/root` path; `""` exactly when `key_line` is. */
|
|
84661
84661
|
key_path: string;
|
|
@@ -86218,7 +86218,9 @@ export interface components {
|
|
|
86218
86218
|
connected_at?: string | null;
|
|
86219
86219
|
/** Format: date-time */
|
|
86220
86220
|
created_at?: string;
|
|
86221
|
+
/** @description ISO 4217 code of price_minor. Empty string until the agent enrols (state awaiting_install, or refused/expired before enrolling); a client must not format money while it is empty. */
|
|
86221
86222
|
currency: string;
|
|
86223
|
+
/** @description True when this is the org's free connected server. Unset (false) until the agent enrols; the price is fixed at enrolment, so an awaiting_install row is not yet priced. */
|
|
86222
86224
|
free: boolean;
|
|
86223
86225
|
hostname?: string;
|
|
86224
86226
|
/** Format: uuid */
|
|
@@ -86236,7 +86238,7 @@ export interface components {
|
|
|
86236
86238
|
/** @enum {string} */
|
|
86237
86239
|
os_family: "almalinux" | "rocky" | "ubuntu";
|
|
86238
86240
|
os_name?: string;
|
|
86239
|
-
/** @description Monthly price in minor units; 0 when free. */
|
|
86241
|
+
/** @description Monthly price in minor units; 0 when free. Unset (0) until the agent enrols: read it together with currency, which is empty until then. */
|
|
86240
86242
|
price_minor: number;
|
|
86241
86243
|
/** @description Machine code when refused (unsupported_os */
|
|
86242
86244
|
reason?: string;
|
|
@@ -197550,7 +197552,18 @@ export interface operations {
|
|
|
197550
197552
|
};
|
|
197551
197553
|
cookie?: never;
|
|
197552
197554
|
};
|
|
197553
|
-
requestBody?:
|
|
197555
|
+
requestBody?: {
|
|
197556
|
+
content: {
|
|
197557
|
+
"application/json": {
|
|
197558
|
+
/**
|
|
197559
|
+
* @description `card` for PayPal's Advanced card fields (3-D Secure when required); `wallet` (or absent) for the PayPal Buttons.
|
|
197560
|
+
* @default wallet
|
|
197561
|
+
* @enum {string}
|
|
197562
|
+
*/
|
|
197563
|
+
rail?: "wallet" | "card";
|
|
197564
|
+
};
|
|
197565
|
+
};
|
|
197566
|
+
};
|
|
197554
197567
|
responses: {
|
|
197555
197568
|
/** @description The PayPal order to complete in the browser. */
|
|
197556
197569
|
200: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2019",
|
|
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>",
|