@zinn-digital/sdk 0.1.1960 → 0.1.1964
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 +18 -5
- package/package.json +1 -1
|
@@ -41966,7 +41966,7 @@ export interface paths {
|
|
|
41966
41966
|
*
|
|
41967
41967
|
* Account credit pays first, exactly as on `payOrder`: the card is asked only for the remainder, and the credit is drawn only when the card part is confirmed captured, so an abandoned or failed challenge costs no credit. When credit pays the whole order no card payment is opened and `status` is `covered_by_credit`: settle with `payOrder`.
|
|
41968
41968
|
*
|
|
41969
|
-
*
|
|
41969
|
+
* The card is kept for renewals only when `save_card` is true AND the account's market lets a card renew unattended (`CardReuseOffer.shown`); otherwise it pays once. The pay step starts with "Renew automatically" ticked (owner, 2026-11-21). After a `payment_failed` with `recurring_refused`, opening again with `save_card` false cancels the declined card-keeping payment and opens a one-time one.
|
|
41970
41970
|
*
|
|
41971
41971
|
* Opens are limited per organisation and per order (each one reads the processor); over the limit the answer is `429` with `Retry-After`. A repeated call for the same order within the limit returns the same open payment.
|
|
41972
41972
|
*/
|
|
@@ -80642,9 +80642,16 @@ export interface components {
|
|
|
80642
80642
|
mrr_minor: number;
|
|
80643
80643
|
/** Format: int64 */
|
|
80644
80644
|
revenue_minor: number;
|
|
80645
|
+
/** @description Decimal STRING: converted / (converted + ended unpaid) over the window's trial cohort; running trials are in neither side. Zero when there is nothing to divide. */
|
|
80645
80646
|
trial_conversion_rate: string;
|
|
80647
|
+
/** @description Trials running now (`billing.Trial` ACTIVE). */
|
|
80646
80648
|
trialing: number;
|
|
80649
|
+
/** @description Of the window's trial cohort, trials that turned paid (converted at expiry, bought during the trial, or bought after it ended). */
|
|
80647
80650
|
trials_converted: number;
|
|
80651
|
+
/** @description Of the window's trial cohort, trials that expired or were cancelled unpaid. */
|
|
80652
|
+
trials_ended_unpaid: number;
|
|
80653
|
+
/** @description Trials STARTED in the window (the window's trial cohort, DAY-0724). */
|
|
80654
|
+
trials_started: number;
|
|
80648
80655
|
upgrades: number;
|
|
80649
80656
|
};
|
|
80650
80657
|
/** @description Customers who cannot be auto-renewed, split by CAUSE so each half has a remedy. Three genuinely different situations that a single count would blur. */
|
|
@@ -81025,7 +81032,7 @@ export interface components {
|
|
|
81025
81032
|
state: "queued" | "unavailable";
|
|
81026
81033
|
};
|
|
81027
81034
|
/**
|
|
81028
|
-
* @description A preference between paying once (`once`) and saving the card for automatic renewal (`save_for_renewals`)
|
|
81035
|
+
* @description A preference between paying once (`once`) and saving the card for automatic renewal (`save_for_renewals`), stored as the account's preference (`card_reuse_default`). An order card payment (`startOrderCardPayment`) resolves the request's `save_card` through the same rule: the card is kept only when the request asks for it and the account's market lets a card renew unattended; otherwise the payment is one-time.
|
|
81029
81036
|
* @example once
|
|
81030
81037
|
* @enum {string}
|
|
81031
81038
|
*/
|
|
@@ -81043,7 +81050,9 @@ export interface components {
|
|
|
81043
81050
|
*/
|
|
81044
81051
|
country: string;
|
|
81045
81052
|
default: components["schemas"]["CardReuse"];
|
|
81046
|
-
/** @description
|
|
81053
|
+
/** @description The non-card methods that can renew automatically on this platform right now (PayPal when its gateway is enabled; crypto when crypto auto-renew is switched on and NOWPayments is configured). The card step names them in its one-line warning when a card cannot renew (`shown: false`) or the bank refused the recurring mandate. */
|
|
81054
|
+
other_auto_renew?: ("paypal" | "crypto")[];
|
|
81055
|
+
/** @description Whether this account's market allows an unattended card charge, so "Renew automatically" is offered for a card. `false` in a market where it cannot be made (the `BillingMarketRule` table): the card pays once, and PayPal or crypto may still renew automatically. */
|
|
81047
81056
|
shown: boolean;
|
|
81048
81057
|
};
|
|
81049
81058
|
Cart: {
|
|
@@ -82275,6 +82284,8 @@ export interface components {
|
|
|
82275
82284
|
* @example paypal
|
|
82276
82285
|
*/
|
|
82277
82286
|
gateway?: string | null;
|
|
82287
|
+
/** @description The customer pays with a card they enter **after** the order is placed (DAY-0718). `true`: the order is placed `pending_payment` and **nothing is charged**, not even a saved card (it wins over `payment_method_id`); a replay with the same `Idempotency-Key` charges nothing either. The browser then pays it with `createOrderCardPayment`, which handles 3-D Secure in the page and keeps the card for renewals only when the customer leaves "Renew automatically" ticked. A free order settles as before. Omitted or `false`: the behaviour described for `gateway`. ⛔ No schema `default` (a defaulted property becomes REQUIRED in the generated TypeScript). */
|
|
82288
|
+
new_card?: boolean;
|
|
82278
82289
|
/**
|
|
82279
82290
|
* Format: uuid
|
|
82280
82291
|
* @description Which of the organisation's **own saved cards** pays (row 1107#10, owner 2026-11-07: *"they can save more than one card right so if so can they select it"*). An `id` from `listPaymentMethods` that is active, confirmed, unexpired and on the chosen `gateway`. The charge is pinned to that card for this order only; the account's primary and backup roles are not changed. Omit it (or send `null`) and the primary is tried first, then the backup, as before. Any other id (another organisation's, a revoked or expired card, a card on another rail) is refused `422` with `details[0].field = payment_method_id` before any order is placed.
|
|
@@ -98220,6 +98231,8 @@ export interface components {
|
|
|
98220
98231
|
order_status?: string;
|
|
98221
98232
|
/** @description The other gateways this order may be paid on (`getOrderPaymentOptions`). */
|
|
98222
98233
|
other_rails?: string[];
|
|
98234
|
+
/** @description On `payment_failed` only. The declined payment asked to keep the card and the bank refused it in a way that can mean it refused automatic renewal (`bank_declined`, `card_unusable`). The pay step switches to a one-time payment, says why, and offers PayPal or crypto to renew automatically. */
|
|
98235
|
+
recurring_refused?: boolean;
|
|
98223
98236
|
settled: boolean;
|
|
98224
98237
|
/** @enum {string} */
|
|
98225
98238
|
status: "paid" | "requires_action" | "processing" | "held" | "payment_failed";
|
|
@@ -98231,7 +98244,7 @@ export interface components {
|
|
|
98231
98244
|
* @description What the card is asked for, in minor units (the order total less credit).
|
|
98232
98245
|
*/
|
|
98233
98246
|
amount_minor: number;
|
|
98234
|
-
/** @description True only when the customer
|
|
98247
|
+
/** @description True only when the customer asked to renew automatically and the market allows it: the processor keeps the card for off-session renewals. False is pay once; nothing is kept. */
|
|
98235
98248
|
card_reuse_applied?: boolean;
|
|
98236
98249
|
/** @description The processor's client secret, for `confirmPayment` in the browser only. Never stored or logged by the client. Absent when `status` is `covered_by_credit`. */
|
|
98237
98250
|
client_token?: string;
|
|
@@ -193734,7 +193747,7 @@ export interface operations {
|
|
|
193734
193747
|
content: {
|
|
193735
193748
|
"application/json": {
|
|
193736
193749
|
/**
|
|
193737
|
-
* @description The customer
|
|
193750
|
+
* @description The customer left "Renew automatically" ticked (it starts ticked). Ignored where the market does not let a card renew unattended.
|
|
193738
193751
|
* @default false
|
|
193739
193752
|
*/
|
|
193740
193753
|
save_card?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1964",
|
|
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>",
|