@getlatedev/node 0.2.1677 → 0.2.1679
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/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -4
- package/src/generated/types.gen.ts +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -7159,11 +7159,11 @@ type AutoRecharge = {
|
|
|
7159
7159
|
*/
|
|
7160
7160
|
enabled: boolean;
|
|
7161
7161
|
/**
|
|
7162
|
-
*
|
|
7162
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents.
|
|
7163
7163
|
*/
|
|
7164
7164
|
belowCents: number;
|
|
7165
7165
|
/**
|
|
7166
|
-
*
|
|
7166
|
+
* The back-to amount, in cents. The charge is toCents minus the balance, plus tax.
|
|
7167
7167
|
*/
|
|
7168
7168
|
toCents: number;
|
|
7169
7169
|
/**
|
|
@@ -31190,15 +31190,15 @@ type UpdateAutoRechargeData = {
|
|
|
31190
31190
|
*/
|
|
31191
31191
|
enabled?: boolean;
|
|
31192
31192
|
/**
|
|
31193
|
-
*
|
|
31193
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents. At least $5.
|
|
31194
31194
|
*/
|
|
31195
31195
|
belowCents?: number;
|
|
31196
31196
|
/**
|
|
31197
|
-
*
|
|
31197
|
+
* The back-to amount, in cents. At least $5 above belowCents, so at least $10.
|
|
31198
31198
|
*/
|
|
31199
31199
|
toCents?: number;
|
|
31200
31200
|
/**
|
|
31201
|
-
* Most auto top-up may add per calendar month (UTC), before tax. At least toCents while auto top-up is on. Null for no limit.
|
|
31201
|
+
* Most auto top-up may add per calendar month (UTC), before tax. At least the back-to amount (toCents) while auto top-up is on. Null for no limit.
|
|
31202
31202
|
*/
|
|
31203
31203
|
monthlyLimitCents?: (number) | null;
|
|
31204
31204
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -7159,11 +7159,11 @@ type AutoRecharge = {
|
|
|
7159
7159
|
*/
|
|
7160
7160
|
enabled: boolean;
|
|
7161
7161
|
/**
|
|
7162
|
-
*
|
|
7162
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents.
|
|
7163
7163
|
*/
|
|
7164
7164
|
belowCents: number;
|
|
7165
7165
|
/**
|
|
7166
|
-
*
|
|
7166
|
+
* The back-to amount, in cents. The charge is toCents minus the balance, plus tax.
|
|
7167
7167
|
*/
|
|
7168
7168
|
toCents: number;
|
|
7169
7169
|
/**
|
|
@@ -31190,15 +31190,15 @@ type UpdateAutoRechargeData = {
|
|
|
31190
31190
|
*/
|
|
31191
31191
|
enabled?: boolean;
|
|
31192
31192
|
/**
|
|
31193
|
-
*
|
|
31193
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents. At least $5.
|
|
31194
31194
|
*/
|
|
31195
31195
|
belowCents?: number;
|
|
31196
31196
|
/**
|
|
31197
|
-
*
|
|
31197
|
+
* The back-to amount, in cents. At least $5 above belowCents, so at least $10.
|
|
31198
31198
|
*/
|
|
31199
31199
|
toCents?: number;
|
|
31200
31200
|
/**
|
|
31201
|
-
* Most auto top-up may add per calendar month (UTC), before tax. At least toCents while auto top-up is on. Null for no limit.
|
|
31201
|
+
* Most auto top-up may add per calendar month (UTC), before tax. At least the back-to amount (toCents) while auto top-up is on. Null for no limit.
|
|
31202
31202
|
*/
|
|
31203
31203
|
monthlyLimitCents?: (number) | null;
|
|
31204
31204
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1679",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1679",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -735,13 +735,13 @@ export const getBalance = <ThrowOnError extends boolean = false>(options?: Optio
|
|
|
735
735
|
|
|
736
736
|
/**
|
|
737
737
|
* Get auto top-up settings
|
|
738
|
-
* Your balance's auto top-up rule: when
|
|
738
|
+
* Your balance's auto top-up rule: when your balance drops below `belowCents`, we bring it back to `toCents` from the billing owner's saved card, tax added on top as for any top-up.
|
|
739
739
|
*
|
|
740
740
|
* Account credit you held when you moved to the balance pays an auto top-up first, without a card charge or invoice (see `recentCreditRecharges` on `GET /v1/balance`). The card is charged only once that credit is used up, and only while the balance is still below `belowCents`.
|
|
741
741
|
*
|
|
742
742
|
* The first read gives the default rule, sized from your last 30 days of pay-per-use: below about a week of spend (at least $5), back up by about two more weeks (at least $20).
|
|
743
743
|
*
|
|
744
|
-
* - 409 `balance_billing_required`: the account is not on the prepaid balance.
|
|
744
|
+
* - 409 `balance_billing_required`: the account is not on the prepaid balance, nor moved onto it at a date still ahead. An account moved onto it can read and change its rule before that date; nothing is charged until it.
|
|
745
745
|
*
|
|
746
746
|
* A profile-scoped key answers 403.
|
|
747
747
|
*
|
|
@@ -765,8 +765,8 @@ export const getAutoRecharge = <ThrowOnError extends boolean = false>(options?:
|
|
|
765
765
|
*
|
|
766
766
|
* When this month's auto top-ups plus the next one would pass `monthlyLimitCents`, the card is not charged and you get one email that month. At $0, pay-per-use then answers 402 `usage_limit_reached`.
|
|
767
767
|
*
|
|
768
|
-
* - 400: a field is out of range, `toCents` is
|
|
769
|
-
* - 409 `balance_billing_required`: the account is not on the prepaid balance.
|
|
768
|
+
* - 400: a field is out of range, `toCents` is not at least $5 above `belowCents`, or, while auto top-up is on, `monthlyLimitCents` is lower than the back-to amount `toCents` (one top-up from $0 would pass it, so it could never charge). Omitted fields are checked with their stored values.
|
|
769
|
+
* - 409 `balance_billing_required`: the account is not on the prepaid balance, nor moved onto it at a date still ahead. An account moved onto it can read and change its rule before that date; nothing is charged until it.
|
|
770
770
|
*
|
|
771
771
|
* Needs an owner, admin or billing admin, signed in or through a full-access key they created.
|
|
772
772
|
*
|
|
@@ -4842,11 +4842,11 @@ export type AutoRecharge = {
|
|
|
4842
4842
|
*/
|
|
4843
4843
|
enabled: boolean;
|
|
4844
4844
|
/**
|
|
4845
|
-
*
|
|
4845
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents.
|
|
4846
4846
|
*/
|
|
4847
4847
|
belowCents: number;
|
|
4848
4848
|
/**
|
|
4849
|
-
*
|
|
4849
|
+
* The back-to amount, in cents. The charge is toCents minus the balance, plus tax.
|
|
4850
4850
|
*/
|
|
4851
4851
|
toCents: number;
|
|
4852
4852
|
/**
|
|
@@ -29996,15 +29996,15 @@ export type UpdateAutoRechargeData = {
|
|
|
29996
29996
|
*/
|
|
29997
29997
|
enabled?: boolean;
|
|
29998
29998
|
/**
|
|
29999
|
-
*
|
|
29999
|
+
* The below amount, in cents: when the balance drops below this, auto top-up brings it back to toCents. At least $5.
|
|
30000
30000
|
*/
|
|
30001
30001
|
belowCents?: number;
|
|
30002
30002
|
/**
|
|
30003
|
-
*
|
|
30003
|
+
* The back-to amount, in cents. At least $5 above belowCents, so at least $10.
|
|
30004
30004
|
*/
|
|
30005
30005
|
toCents?: number;
|
|
30006
30006
|
/**
|
|
30007
|
-
* Most auto top-up may add per calendar month (UTC), before tax. At least toCents while auto top-up is on. Null for no limit.
|
|
30007
|
+
* Most auto top-up may add per calendar month (UTC), before tax. At least the back-to amount (toCents) while auto top-up is on. Null for no limit.
|
|
30008
30008
|
*/
|
|
30009
30009
|
monthlyLimitCents?: (number) | null;
|
|
30010
30010
|
/**
|