@zinn-digital/sdk 0.1.1634 → 0.1.1636
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 +47 -3
- package/package.json +1 -1
|
@@ -78691,6 +78691,8 @@ export interface components {
|
|
|
78691
78691
|
/** @description What went into the balance — `settled_minor - fee_minor`. */
|
|
78692
78692
|
credited_minor?: number;
|
|
78693
78693
|
currency: string;
|
|
78694
|
+
/** @description Zinn® credit only (`/v1/wallet/top-ups`): the class of a REFUSED top-up (PAYNOTICE, row 1108#29), so the screen says what happened and what to do. Empty when it did not fail, failed for a reason that is no decline, or predates the class. */
|
|
78695
|
+
decline_class?: components["schemas"]["PaymentDeclineClass"] | "";
|
|
78694
78696
|
/** @description The gateway's refusal, in words the customer can act on. */
|
|
78695
78697
|
error?: string;
|
|
78696
78698
|
/** @description What the provider kept out of the settlement. **`null` = not known**, never zero — recording an unknown as `0` would credit the customer the shortfall. */
|
|
@@ -83193,6 +83195,8 @@ export interface components {
|
|
|
83193
83195
|
ab_wait_minutes: number;
|
|
83194
83196
|
/** @enum {string|null} */
|
|
83195
83197
|
ab_winner: "a" | "b" | null;
|
|
83198
|
+
/** @description F32 block designer layout (cleaned); null when the campaign was never designed in blocks. */
|
|
83199
|
+
blocks?: components["schemas"]["EmailMarketingCampaignBlock"][] | null;
|
|
83196
83200
|
/** Format: date-time */
|
|
83197
83201
|
created_at: string;
|
|
83198
83202
|
/** Format: date-time */
|
|
@@ -83223,11 +83227,29 @@ export interface components {
|
|
|
83223
83227
|
subject: string;
|
|
83224
83228
|
subject_b: string;
|
|
83225
83229
|
/** @enum {string} */
|
|
83226
|
-
template: "basic" | "raw";
|
|
83230
|
+
template: "basic" | "raw" | "blocks";
|
|
83227
83231
|
text: string;
|
|
83228
83232
|
/** Format: date-time */
|
|
83229
83233
|
updated_at: string;
|
|
83230
83234
|
};
|
|
83235
|
+
/** @description One F32 designer block. `heading` (text, level 1-3), `text` (text; a blank line starts a paragraph), `button` (label, url https or mailto, color #rrggbb or blank for the brand colour), `image` (src https, alt, url, width 40-552), `divider`, `spacer` (size). `align` is `start` (follows the language direction) or `center`. */
|
|
83236
|
+
EmailMarketingCampaignBlock: {
|
|
83237
|
+
/** @enum {string} */
|
|
83238
|
+
align?: "start" | "center";
|
|
83239
|
+
alt?: string;
|
|
83240
|
+
color?: string;
|
|
83241
|
+
label?: string;
|
|
83242
|
+
/** @enum {integer} */
|
|
83243
|
+
level?: 1 | 2 | 3;
|
|
83244
|
+
/** @enum {integer} */
|
|
83245
|
+
size?: 8 | 16 | 24 | 32 | 48 | 64;
|
|
83246
|
+
src?: string;
|
|
83247
|
+
text?: string;
|
|
83248
|
+
/** @enum {string} */
|
|
83249
|
+
type: "heading" | "text" | "button" | "image" | "divider" | "spacer";
|
|
83250
|
+
url?: string;
|
|
83251
|
+
width?: number;
|
|
83252
|
+
};
|
|
83231
83253
|
EmailMarketingCampaignPage: {
|
|
83232
83254
|
data: components["schemas"]["EmailMarketingCampaign"][];
|
|
83233
83255
|
/** Format: uuid */
|
|
@@ -83284,6 +83306,8 @@ export interface components {
|
|
|
83284
83306
|
ab_test_pct?: number;
|
|
83285
83307
|
/** @description A/B test: minutes from the start before the winner is chosen. Clamped to 30-2880. */
|
|
83286
83308
|
ab_wait_minutes?: number;
|
|
83309
|
+
/** @description F32 block designer layout. Cleaned on save: an unknown type, an empty block or an unsafe address is dropped, at most 60 kept. */
|
|
83310
|
+
blocks?: components["schemas"]["EmailMarketingCampaignBlock"][] | null;
|
|
83287
83311
|
from_name?: string;
|
|
83288
83312
|
html?: string;
|
|
83289
83313
|
/** Format: uuid */
|
|
@@ -83304,8 +83328,11 @@ export interface components {
|
|
|
83304
83328
|
subject?: string;
|
|
83305
83329
|
/** @description A/B test: the second subject line. Blank = no test. */
|
|
83306
83330
|
subject_b?: string;
|
|
83307
|
-
/**
|
|
83308
|
-
|
|
83331
|
+
/**
|
|
83332
|
+
* @description `basic` wraps the body in our layout; `raw` sends the HTML as written; `blocks` (F32 designer) is `basic` with `html` and `text` COMPILED by the server from `blocks` on every save (any `html`/`text` sent with it is ignored).
|
|
83333
|
+
* @enum {string}
|
|
83334
|
+
*/
|
|
83335
|
+
template?: "basic" | "raw" | "blocks";
|
|
83309
83336
|
text?: string;
|
|
83310
83337
|
};
|
|
83311
83338
|
EmailMarketingContact: {
|
|
@@ -92885,6 +92912,8 @@ export interface components {
|
|
|
92885
92912
|
id: components["schemas"]["Uuid"];
|
|
92886
92913
|
lines: components["schemas"]["OrderLine"][];
|
|
92887
92914
|
org_id: components["schemas"]["Uuid"];
|
|
92915
|
+
/** @description Present only on an unpaid order (`pending_payment` / `payment_failed`) whose latest payment attempt FAILED; `null` otherwise. Says why, so the customer is told plainly and offered another card, a retry or another way to pay (row 1108#29). */
|
|
92916
|
+
payment_failure?: components["schemas"]["PaymentFailure"] | null;
|
|
92888
92917
|
payments: components["schemas"]["Payment"][];
|
|
92889
92918
|
/** Format: date-time */
|
|
92890
92919
|
placed_at?: string | null;
|
|
@@ -95037,6 +95066,8 @@ export interface components {
|
|
|
95037
95066
|
/** Format: date-time */
|
|
95038
95067
|
created_at?: string;
|
|
95039
95068
|
currency: components["schemas"]["CurrencyCode"];
|
|
95069
|
+
/** @description The class of this attempt's failure (PAYNOTICE, row 1108#29), decided from the gateway's machine codes when it failed. Empty when the attempt did not fail or was recorded before the class existed. */
|
|
95070
|
+
decline_class?: components["schemas"]["PaymentDeclineClass"] | "";
|
|
95040
95071
|
failure_reason?: string;
|
|
95041
95072
|
id: components["schemas"]["Uuid"];
|
|
95042
95073
|
/** Format: int64 */
|
|
@@ -95093,6 +95124,19 @@ export interface components {
|
|
|
95093
95124
|
services_resume: boolean;
|
|
95094
95125
|
subscription_id: components["schemas"]["Uuid"];
|
|
95095
95126
|
};
|
|
95127
|
+
/**
|
|
95128
|
+
* @description Why a payment did not go through, named for what the customer can do about it (`engine.commerce.payment_help.NoticeClass`). `processing`: our side or the gateway's, not the customer's card. `unknown`: not positively identified, so nothing is guessed.
|
|
95129
|
+
* @enum {string}
|
|
95130
|
+
*/
|
|
95131
|
+
PaymentDeclineClass: "bank_declined" | "insufficient_funds" | "limit" | "authentication" | "card_expired" | "card_details" | "card_unusable" | "crypto_expired" | "no_method" | "processing" | "unknown";
|
|
95132
|
+
/** @description Why the latest payment attempt on an UNPAID order failed, so every surface that shows the order can say what happened and what to do (owner 2026-11-08, row 1108#29). */
|
|
95133
|
+
PaymentFailure: {
|
|
95134
|
+
decline_class: components["schemas"]["PaymentDeclineClass"];
|
|
95135
|
+
/** Format: date-time */
|
|
95136
|
+
failed_at: string;
|
|
95137
|
+
/** @description The payment rail of the failed attempt (`stripe`, `paypal`, `nowpayments`, …). */
|
|
95138
|
+
rail: string;
|
|
95139
|
+
};
|
|
95096
95140
|
/** @description What broke in the customer's browser on the add-a-payment-method form. `reason` is the SDK's own short message (for example `Failed to load Stripe.js`), never card data. */
|
|
95097
95141
|
PaymentFormFailure: {
|
|
95098
95142
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1636",
|
|
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>",
|