@zinn-digital/sdk 0.1.2021 → 0.1.2023
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 +15 -1
- package/package.json +1 -1
|
@@ -44941,6 +44941,8 @@ export interface paths {
|
|
|
44941
44941
|
* Every string in the response is already translated into the recipient's locale — the one stored on the document, not the one of whoever's browser opened the link. The page that renders this holds no copy of its own.
|
|
44942
44942
|
*
|
|
44943
44943
|
* Every refusal answers with the same sentence whatever the cause — a wrong token, a draft, a withdrawn or an unknown one. Distinguishing them would confirm to a stranger that a token is real, which is the oracle that makes a capability URL worth sweeping.
|
|
44944
|
+
*
|
|
44945
|
+
* This is also where PayPal returns the payer: a load captures an APPROVED PayPal order for this invoice (once, behind the double-charge fence) before the status is read.
|
|
44944
44946
|
*/
|
|
44945
44947
|
get: operations["getDirectInvoiceForPayer"];
|
|
44946
44948
|
put?: never;
|
|
@@ -123050,6 +123052,8 @@ export interface components {
|
|
|
123050
123052
|
auto_topup_last_run_at?: string | null;
|
|
123051
123053
|
/** @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). */
|
|
123052
123054
|
auto_topup_monthly_cap_minor?: number;
|
|
123055
|
+
/** @description When the next scheduled crypto invoice is sent; `null` without a schedule. */
|
|
123056
|
+
auto_topup_next_due_at?: string | null;
|
|
123053
123057
|
/**
|
|
123054
123058
|
* @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`).
|
|
123055
123059
|
* @enum {string}
|
|
@@ -123062,6 +123066,11 @@ export interface components {
|
|
|
123062
123066
|
* @enum {string}
|
|
123063
123067
|
*/
|
|
123064
123068
|
auto_topup_rail?: "saved_method" | "crypto" | "paypal_subscription";
|
|
123069
|
+
/**
|
|
123070
|
+
* @description `""` = top up when the balance falls below the trigger. A schedule runs on the `crypto` rail only: on each due date a crypto invoice (USD only) for `auto_topup_amount_minor` is e-mailed with a pay link, whatever the balance, plus one reminder before the next date. Nothing is ever charged automatically and a due date missed by the sweep sends ONE invoice, never a backlog.
|
|
123071
|
+
* @enum {string}
|
|
123072
|
+
*/
|
|
123073
|
+
auto_topup_schedule?: "" | "weekly" | "monthly" | "quarterly";
|
|
123065
123074
|
/** @description Buy more credit when the balance falls below this. */
|
|
123066
123075
|
auto_topup_trigger_minor?: number;
|
|
123067
123076
|
currency: string;
|
|
@@ -123080,6 +123089,11 @@ export interface components {
|
|
|
123080
123089
|
* @enum {string}
|
|
123081
123090
|
*/
|
|
123082
123091
|
auto_topup_rail?: "saved_method" | "crypto";
|
|
123092
|
+
/**
|
|
123093
|
+
* @description Absent = keep. A schedule with any rail other than `crypto` is a 422 (`refusal.wallet.scheduleCryptoOnly`); moving a scheduled rule to `saved_method` clears it. A new schedule sends its first invoice on the next sweep.
|
|
123094
|
+
* @enum {string}
|
|
123095
|
+
*/
|
|
123096
|
+
auto_topup_schedule?: "" | "weekly" | "monthly" | "quarterly";
|
|
123083
123097
|
auto_topup_trigger_minor?: number;
|
|
123084
123098
|
low_balance_threshold_minor?: number;
|
|
123085
123099
|
};
|
|
@@ -200436,7 +200450,7 @@ export interface operations {
|
|
|
200436
200450
|
"application/json": components["schemas"]["Error"];
|
|
200437
200451
|
};
|
|
200438
200452
|
};
|
|
200439
|
-
/** @description The payment cannot be started. Either this invoice is not open for payment, or the address
|
|
200453
|
+
/** @description The payment cannot be started. Either this invoice is not open for payment, or the address belongs to a different Zinn Digital® user (`account_exists`), or its existing account has not verified that exact address (`account_unverified`), or the payment method chosen is not one this invoice can be paid with (`rail_not_available` — never quietly swapped for a card). An existing account that HAS verified the address is bound to the invoice and pays here. */
|
|
200440
200454
|
409: {
|
|
200441
200455
|
headers: {
|
|
200442
200456
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2023",
|
|
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>",
|