@zinn-digital/sdk 0.1.1993 → 0.1.1999

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.
@@ -62181,7 +62181,7 @@ export interface paths {
62181
62181
  * Add credit to your balance.
62182
62182
  * @description Charged on **your provider's own** payment account when you are a reseller's client, and on Zinn®'s when you buy directly. The credit is written when the payment **captures**: a crypto invoice awaiting confirmation (`pending`), a card awaiting 3-D Secure or a PayPal payment awaiting your approval at `action_url` (`requires_action`) returns 201 with that status and **no** balance change, because the money has not arrived. An approved PayPal top-up is captured and credited when PayPal reports the approval. 422 when your provider has not finished connecting a payment account — the charge is refused rather than settled somewhere else. 422 `PAYMENT_METHOD_REQUIRED` (refusal `refusal.wallet.topUpPaymentStep`) when a card top-up is bought from Zinn® with no saved card: nothing is written and no gateway is asked. Show the customer a choice of card, PayPal or crypto for the same amount, then repeat the request on the chosen `gateway` (1108#13).
62183
62183
  *
62184
- * ⚖️ **Credit bought from Zinn® is never refundable, including on account closure, and never expires** (owner ruling 2026-08-22). Call `GET /v1/wallet/top-ups/estimate` first and show the customer what they will actually receive — on a crypto rail that can be less than the amount quoted, because we credit what settles rather than what was asked for. Requires `billing.payment.manage`.
62184
+ * ⚖️ **Credit bought from Zinn® is never refundable, including on account closure, and never expires** (owner ruling 2026-08-22). Call `GET /v1/wallet/top-ups/estimate` first and show the customer what they will receive. ⚖️ We absorb the top-up fee on every rail (owner ruling 2026-11-21, "top up 50, get 50"): a top-up paid in full credits the full amount; a crypto invoice paid only in part credits what was sent. Requires `billing.payment.manage`.
62185
62185
  */
62186
62186
  post: operations["createClientWalletTopUp"];
62187
62187
  delete?: never;
@@ -62201,7 +62201,7 @@ export interface paths {
62201
62201
  * What a top-up will actually credit, before you pay.
62202
62202
  * @description The **pre-purchase disclosure**. Returns what we expect to put in your balance for a given amount and rail, and whether that figure can still move.
62203
62203
  *
62204
- * ⚖️ Zinn® credits **what actually settles**, net of fees, at the real settlement rate (owner ruling 2026-08-22). On a card that is exactly the amount you asked for. On a crypto rail it can be less, because the value of the coin moves between the quote and the confirmation and the network takes a fee — so `is_estimate` is `true` and the figure is indicative.
62204
+ * ⚖️ Zinn® **absorbs the top-up fee** on every rail (owner ruling 2026-11-21, "top up 50, get 50"; supersedes the 2026-08-22 "credit what settles, net of fees"). A top-up paid in full credits exactly the amount you asked for, by card, PayPal or crypto, so `is_estimate` is `false` on every rail today. A crypto invoice paid only in part credits the part that was sent.
62205
62205
  *
62206
62206
  * ⛔ A screen that renders `expected_credit_minor` without also reading `is_estimate` turns a disclosure into a promise. `refundable` and `expires` are both always `false` and are returned here, at the point of sale, because that is where a non-refundable purchase has to be disclosed. Requires `billing.view`.
62207
62207
  */
@@ -80144,9 +80144,16 @@ export interface components {
80144
80144
  BillingInterval: "monthly" | "annual";
80145
80145
  /** @description One market's rebilling policy — the operator-editable manual-renewal table (W26-K, owner ruling 2026-08-24). Every row is a claim about payment regulation frozen at the moment it was written, so it carries the reason and the source that let a later reader re-check it. */
80146
80146
  BillingMarketRule: {
80147
+ /**
80148
+ * @description Whether the card step offers "save this card and renew automatically" in this market. A market on a manual-renewal policy is never offered it, whatever this says. A country with no row is offered it.
80149
+ * @enum {string}
80150
+ */
80151
+ auto_renew_offer: "offered" | "not_offered";
80147
80152
  country: string;
80148
80153
  notice_days_before_due: number;
80149
80154
  notify_customer: boolean;
80155
+ /** @description Where a `not_offered` decision comes from (a URL or a note). */
80156
+ offer_source: string;
80150
80157
  /** @description How many organisations this rule currently governs — sent WITH the rule, because an operator about to restrict a market needs to know how many paying customers they are moving onto manual renewal BEFORE they press save. */
80151
80158
  orgs_affected: number;
80152
80159
  /**
@@ -80155,6 +80162,11 @@ export interface components {
80155
80162
  */
80156
80163
  policy: "automatic" | "manual_only" | "requires_mandate_registration";
80157
80164
  reason: string;
80165
+ /**
80166
+ * Format: date
80167
+ * @description The date the source must be read again. Null only while the offer is on.
80168
+ */
80169
+ recheck_on: string | null;
80158
80170
  source_url: string;
80159
80171
  /** Format: date-time */
80160
80172
  updated_at: string;
@@ -80164,15 +80176,23 @@ export interface components {
80164
80176
  rules: components["schemas"]["BillingMarketRule"][];
80165
80177
  };
80166
80178
  BillingMarketRuleWrite: {
80179
+ /**
80180
+ * @description Optional. Omit all three offer fields to leave the stored offer of an existing market unchanged. When the write creates a NEW market on a manual-renewal policy and omits them, the row is stored `not_offered` with the rule's `source_url` as its source and a re-check date six months out. `not_offered` requires `offer_source` and a future `recheck_on`.
80181
+ * @enum {string}
80182
+ */
80183
+ auto_renew_offer?: "offered" | "not_offered";
80167
80184
  country: string;
80168
80185
  /** @default 14 */
80169
80186
  notice_days_before_due: number;
80170
80187
  /** @default true */
80171
80188
  notify_customer: boolean;
80189
+ offer_source?: string;
80172
80190
  /** @enum {string} */
80173
80191
  policy: "automatic" | "manual_only" | "requires_mandate_registration";
80174
80192
  /** @description Required and never blank. A market restriction with no stated reason is correct on the day it is written, unfalsifiable a year later, and nobody dares remove it. */
80175
80193
  reason: string;
80194
+ /** Format: date */
80195
+ recheck_on?: string | null;
80176
80196
  source_url?: string;
80177
80197
  };
80178
80198
  /** @description The organization's one "Bill to" block — what renders on its next invoice (docs/34 §2.5). Org-scoped. `vat_status` is read-only (the validate-not-trust flow, §2.3, owns it). */
@@ -122624,8 +122644,20 @@ export interface components {
122624
122644
  /** @description Why the last attempt failed, in words safe to show the customer. */
122625
122645
  auto_topup_last_failure?: string;
122626
122646
  auto_topup_last_run_at?: string | null;
122647
+ /** @description The most automatic top-ups may buy in one calendar month (UTC), in minor units; `0` means no monthly limit. A top-up that would pass it is skipped, never charged. A saved card from a market that forbids unattended card charges is likewise never charged automatically (PayPal still is). */
122648
+ auto_topup_monthly_cap_minor?: number;
122649
+ /**
122650
+ * @description Derived. Non-empty when the rule's rail cannot run in this currency, so the rule is PAUSED: nothing is charged and no other method is substituted. `crypto_usd_only` = the account switched off USD while the rule pays in crypto; choosing another rail (or switching back to USD) resumes it. The customer is e-mailed once per switch (`wallet.auto_topup_paused`).
122651
+ * @enum {string}
122652
+ */
122653
+ auto_topup_paused_reason?: "" | "crypto_usd_only";
122627
122654
  /** @description Which saved method to charge. `null` uses the account's default. */
122628
122655
  auto_topup_payment_method_id?: components["schemas"]["Uuid"] | null;
122656
+ /**
122657
+ * @description How the automatic top-up is paid. `saved_method` charges the saved card when the balance falls below the trigger. `crypto` SENDS a crypto invoice (USD only) for the amount at the trigger, plus one reminder; nothing is credited until it is paid, and then the full amount is. `paypal_subscription` is a PayPal Subscription for a fixed amount on a schedule, never charged by the balance trigger.
122658
+ * @enum {string}
122659
+ */
122660
+ auto_topup_rail?: "saved_method" | "crypto" | "paypal_subscription";
122629
122661
  /** @description Buy more credit when the balance falls below this. */
122630
122662
  auto_topup_trigger_minor?: number;
122631
122663
  currency: string;
@@ -122637,7 +122669,13 @@ export interface components {
122637
122669
  WalletSettingsUpdate: {
122638
122670
  auto_topup_amount_minor?: number;
122639
122671
  auto_topup_enabled?: boolean;
122672
+ auto_topup_monthly_cap_minor?: number;
122640
122673
  auto_topup_payment_method_id?: components["schemas"]["Uuid"] | null;
122674
+ /**
122675
+ * @description Absent = keep. `crypto` is a 422 outside USD. `paypal_subscription` is set by the customer's PayPal approval, never by this request.
122676
+ * @enum {string}
122677
+ */
122678
+ auto_topup_rail?: "saved_method" | "crypto";
122641
122679
  auto_topup_trigger_minor?: number;
122642
122680
  low_balance_threshold_minor?: number;
122643
122681
  };
@@ -122649,7 +122687,7 @@ export interface components {
122649
122687
  /** @description ⚖️ Always `false`. Credit never expires — the deliberate other half of never refundable: *"you cannot have it back"* is only defensible alongside *"and you never lose it"*. */
122650
122688
  expires: boolean;
122651
122689
  gateway: string;
122652
- /** @description ⛔ **Not decoration.** `true` on a rail that settles at a moving rate (crypto), where the amount credited can be less than the amount quoted because we credit what actually settles. A client that renders `expected_credit_minor` without reading this turns a disclosure into a promise we did not make. */
122690
+ /** @description ⛔ **Not decoration.** `true` only on a rail whose credit could still move after the customer paid in full. While the top-up fee is absorbed (owner 2026-11-21) no rail has that property, so this is `false` everywhere; a client must still read it before rendering `expected_credit_minor` as a promise. */
122653
122691
  is_estimate: boolean;
122654
122692
  /** @description What the customer asked to add. */
122655
122693
  quoted_minor: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1993",
3
+ "version": "0.1.1999",
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>",