@zinn-digital/sdk 0.1.1634 → 0.1.1635
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 +19 -0
- 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. */
|
|
@@ -92885,6 +92887,8 @@ export interface components {
|
|
|
92885
92887
|
id: components["schemas"]["Uuid"];
|
|
92886
92888
|
lines: components["schemas"]["OrderLine"][];
|
|
92887
92889
|
org_id: components["schemas"]["Uuid"];
|
|
92890
|
+
/** @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). */
|
|
92891
|
+
payment_failure?: components["schemas"]["PaymentFailure"] | null;
|
|
92888
92892
|
payments: components["schemas"]["Payment"][];
|
|
92889
92893
|
/** Format: date-time */
|
|
92890
92894
|
placed_at?: string | null;
|
|
@@ -95037,6 +95041,8 @@ export interface components {
|
|
|
95037
95041
|
/** Format: date-time */
|
|
95038
95042
|
created_at?: string;
|
|
95039
95043
|
currency: components["schemas"]["CurrencyCode"];
|
|
95044
|
+
/** @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. */
|
|
95045
|
+
decline_class?: components["schemas"]["PaymentDeclineClass"] | "";
|
|
95040
95046
|
failure_reason?: string;
|
|
95041
95047
|
id: components["schemas"]["Uuid"];
|
|
95042
95048
|
/** Format: int64 */
|
|
@@ -95093,6 +95099,19 @@ export interface components {
|
|
|
95093
95099
|
services_resume: boolean;
|
|
95094
95100
|
subscription_id: components["schemas"]["Uuid"];
|
|
95095
95101
|
};
|
|
95102
|
+
/**
|
|
95103
|
+
* @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.
|
|
95104
|
+
* @enum {string}
|
|
95105
|
+
*/
|
|
95106
|
+
PaymentDeclineClass: "bank_declined" | "insufficient_funds" | "limit" | "authentication" | "card_expired" | "card_details" | "card_unusable" | "crypto_expired" | "no_method" | "processing" | "unknown";
|
|
95107
|
+
/** @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). */
|
|
95108
|
+
PaymentFailure: {
|
|
95109
|
+
decline_class: components["schemas"]["PaymentDeclineClass"];
|
|
95110
|
+
/** Format: date-time */
|
|
95111
|
+
failed_at: string;
|
|
95112
|
+
/** @description The payment rail of the failed attempt (`stripe`, `paypal`, `nowpayments`, …). */
|
|
95113
|
+
rail: string;
|
|
95114
|
+
};
|
|
95096
95115
|
/** @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
95116
|
PaymentFormFailure: {
|
|
95098
95117
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1635",
|
|
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>",
|