@zinn-digital/sdk 0.1.2022 → 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 +12 -0
- package/package.json +1 -1
|
@@ -123052,6 +123052,8 @@ export interface components {
|
|
|
123052
123052
|
auto_topup_last_run_at?: string | null;
|
|
123053
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). */
|
|
123054
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;
|
|
123055
123057
|
/**
|
|
123056
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`).
|
|
123057
123059
|
* @enum {string}
|
|
@@ -123064,6 +123066,11 @@ export interface components {
|
|
|
123064
123066
|
* @enum {string}
|
|
123065
123067
|
*/
|
|
123066
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";
|
|
123067
123074
|
/** @description Buy more credit when the balance falls below this. */
|
|
123068
123075
|
auto_topup_trigger_minor?: number;
|
|
123069
123076
|
currency: string;
|
|
@@ -123082,6 +123089,11 @@ export interface components {
|
|
|
123082
123089
|
* @enum {string}
|
|
123083
123090
|
*/
|
|
123084
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";
|
|
123085
123097
|
auto_topup_trigger_minor?: number;
|
|
123086
123098
|
low_balance_threshold_minor?: number;
|
|
123087
123099
|
};
|
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>",
|