increase 0.10.3 → 0.11.0
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/CHANGELOG.md +43 -0
- package/README.md +4 -0
- package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
- package/_shims/ReadableStream-node.d.ts.map +1 -0
- package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
- package/_shims/ReadableStream-node.js.map +1 -0
- package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
- package/_shims/ReadableStream-node.mjs.map +1 -0
- package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
- package/_shims/agent-node.d.ts.map +1 -0
- package/_shims/{agent.node.js → agent-node.js} +1 -1
- package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
- package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
- package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
- package/_shims/agent.d.ts +1 -1
- package/_shims/agent.js +1 -1
- package/_shims/agent.mjs +1 -1
- package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
- package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
- package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
- package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
- package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
- package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
- package/_shims/fileFromPath.d.ts +2 -2
- package/_shims/fileFromPath.d.ts.map +1 -1
- package/_shims/fileFromPath.js +1 -1
- package/_shims/fileFromPath.mjs +1 -1
- package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
- package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
- package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
- package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
- package/_shims/getMultipartRequestOptions.d.ts +1 -1
- package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
- package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
- package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
- package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
- package/_shims/node-readable-node.js.map +1 -0
- package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
- package/_shims/node-readable-node.mjs.map +1 -0
- package/core.d.ts +2 -1
- package/core.d.ts.map +1 -1
- package/core.js +3 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -1
- package/error.d.ts.map +1 -1
- package/error.js +2 -2
- package/error.js.map +1 -1
- package/error.mjs +2 -2
- package/error.mjs.map +1 -1
- package/index.d.mts +2 -7
- package/index.d.ts +2 -7
- package/index.d.ts.map +1 -1
- package/index.js +3 -6
- package/index.js.map +1 -1
- package/index.mjs +3 -6
- package/index.mjs.map +1 -1
- package/package.json +9 -4
- package/pagination.d.ts +1 -1
- package/resources/account-numbers.d.ts +57 -0
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/ach-prenotifications.d.ts +219 -3
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +14 -9
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +1 -1
- package/resources/card-profiles.d.ts +12 -3
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +2 -2
- package/resources/check-deposits.d.ts +3 -0
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +6 -0
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +289 -32
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.ts +2 -1
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +51 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.js +6 -0
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs +6 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts +45 -1
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +6 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +6 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +9 -1
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs.map +1 -1
- package/resources/external-accounts.d.ts +4 -0
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +56 -8
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +9 -0
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +9 -0
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +0 -15
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +19 -6
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +11 -9
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +693 -48
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/cards.d.ts +308 -38
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +402 -14
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +691 -46
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +402 -14
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +402 -14
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +7 -5
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/_shims/ReadableStream.d.ts +5 -5
- package/src/_shims/agent.ts +1 -1
- package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
- package/src/_shims/fetch.d.ts +10 -10
- package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
- package/src/_shims/fileFromPath.ts +2 -2
- package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
- package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
- package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
- package/src/_shims/getMultipartRequestOptions.ts +3 -3
- package/src/core.ts +11 -10
- package/src/error.ts +3 -3
- package/src/index.ts +9 -15
- package/src/pagination.ts +2 -2
- package/src/resource.ts +1 -1
- package/src/resources/account-numbers.ts +68 -5
- package/src/resources/account-statements.ts +5 -5
- package/src/resources/account-transfers.ts +5 -5
- package/src/resources/accounts.ts +5 -5
- package/src/resources/ach-prenotifications.ts +224 -8
- package/src/resources/ach-transfers.ts +19 -14
- package/src/resources/balance-lookups.ts +3 -3
- package/src/resources/bookkeeping-accounts.ts +5 -5
- package/src/resources/bookkeeping-entries.ts +5 -5
- package/src/resources/bookkeeping-entry-sets.ts +4 -4
- package/src/resources/card-disputes.ts +5 -5
- package/src/resources/card-profiles.ts +17 -8
- package/src/resources/card-purchase-supplements.ts +7 -7
- package/src/resources/cards.ts +5 -5
- package/src/resources/check-deposits.ts +8 -5
- package/src/resources/check-transfers.ts +12 -5
- package/src/resources/declined-transactions.ts +294 -37
- package/src/resources/digital-wallet-tokens.ts +7 -6
- package/src/resources/documents.ts +5 -5
- package/src/resources/entities/beneficial-owners.ts +66 -4
- package/src/resources/entities/entities.ts +61 -8
- package/src/resources/entities/index.ts +11 -3
- package/src/resources/entities/supplemental-documents.ts +5 -5
- package/src/resources/event-subscriptions.ts +5 -5
- package/src/resources/events.ts +5 -5
- package/src/resources/exports.ts +5 -5
- package/src/resources/external-accounts.ts +10 -5
- package/src/resources/files.ts +6 -6
- package/src/resources/groups.ts +3 -3
- package/src/resources/inbound-ach-transfers.ts +73 -13
- package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
- package/src/resources/index.ts +46 -39
- package/src/resources/oauth-connections.ts +5 -5
- package/src/resources/pending-transactions.ts +24 -11
- package/src/resources/programs.ts +5 -5
- package/src/resources/real-time-decisions.ts +14 -12
- package/src/resources/real-time-payments-transfers.ts +5 -5
- package/src/resources/routing-numbers.ts +4 -4
- package/src/resources/simulations/account-statements.ts +4 -4
- package/src/resources/simulations/account-transfers.ts +3 -3
- package/src/resources/simulations/ach-transfers.ts +706 -54
- package/src/resources/simulations/card-disputes.ts +4 -4
- package/src/resources/simulations/card-profiles.ts +3 -3
- package/src/resources/simulations/card-refunds.ts +4 -4
- package/src/resources/simulations/cards.ts +313 -43
- package/src/resources/simulations/check-deposits.ts +3 -3
- package/src/resources/simulations/check-transfers.ts +3 -3
- package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
- package/src/resources/simulations/documents.ts +4 -4
- package/src/resources/simulations/inbound-funds-holds.ts +3 -3
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
- package/src/resources/simulations/index.ts +18 -18
- package/src/resources/simulations/interest-payments.ts +413 -18
- package/src/resources/simulations/programs.ts +4 -4
- package/src/resources/simulations/real-time-payments-transfers.ts +704 -52
- package/src/resources/simulations/simulations.ts +19 -19
- package/src/resources/simulations/wire-transfers.ts +413 -18
- package/src/resources/transactions.ts +415 -20
- package/src/resources/wire-drawdown-requests.ts +5 -5
- package/src/resources/wire-transfers.ts +12 -10
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +6 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +4 -4
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/ReadableStream.node.d.ts.map +0 -1
- package/_shims/ReadableStream.node.js.map +0 -1
- package/_shims/ReadableStream.node.mjs.map +0 -1
- package/_shims/agent.node.d.ts.map +0 -1
- package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
- package/_shims/node-readable.node.js.map +0 -1
- package/_shims/node-readable.node.mjs.map +0 -1
- package/resources/limits.d.ts +0 -148
- package/resources/limits.d.ts.map +0 -1
- package/resources/limits.js +0 -38
- package/resources/limits.js.map +0 -1
- package/resources/limits.mjs +0 -33
- package/resources/limits.mjs.map +0 -1
- package/src/_shims/fetch.deno.ts +0 -23
- package/src/_shims/formdata.deno.ts +0 -16
- package/src/resources/limits.ts +0 -186
- /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
- /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
- /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
- /package/_shims/{formdata.js → form-data.js} +0 -0
- /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
- /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
- /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
- /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/src/_shims/{formdata.js → form-data.js} +0 -0
- /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
- /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
package/src/resources/limits.ts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from './index';
|
|
7
|
-
import { Page, PageParams } from '../pagination';
|
|
8
|
-
|
|
9
|
-
export class Limits extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Limit
|
|
12
|
-
*/
|
|
13
|
-
create(body: LimitCreateParams, options?: Core.RequestOptions): Core.APIPromise<Limit> {
|
|
14
|
-
return this.post('/limits', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve a Limit
|
|
19
|
-
*/
|
|
20
|
-
retrieve(limitId: string, options?: Core.RequestOptions): Core.APIPromise<Limit> {
|
|
21
|
-
return this.get(`/limits/${limitId}`, options);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Update a Limit
|
|
26
|
-
*/
|
|
27
|
-
update(limitId: string, body: LimitUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Limit> {
|
|
28
|
-
return this.patch(`/limits/${limitId}`, { body, ...options });
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* List Limits
|
|
33
|
-
*/
|
|
34
|
-
list(query?: LimitListParams, options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
|
|
35
|
-
list(options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
|
|
36
|
-
list(
|
|
37
|
-
query: LimitListParams | Core.RequestOptions = {},
|
|
38
|
-
options?: Core.RequestOptions,
|
|
39
|
-
): Core.PagePromise<LimitsPage, Limit> {
|
|
40
|
-
if (isRequestOptions(query)) {
|
|
41
|
-
return this.list({}, query);
|
|
42
|
-
}
|
|
43
|
-
return this.getAPIList('/limits', LimitsPage, { query, ...options });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export class LimitsPage extends Page<Limit> {}
|
|
48
|
-
// alias so we can export it in the namespace
|
|
49
|
-
type _LimitsPage = LimitsPage;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* You can set limits at the Account, Account Number, or Card level. Limits applied
|
|
53
|
-
* to Accounts will apply to all Account Numbers and Cards in the Account. You can
|
|
54
|
-
* specify any number of Limits and they will all be applied to inbound debits and
|
|
55
|
-
* card authorizations. Volume and count Limits are designed to prevent
|
|
56
|
-
* unauthorized debits.
|
|
57
|
-
*/
|
|
58
|
-
export interface Limit {
|
|
59
|
-
/**
|
|
60
|
-
* The Limit identifier.
|
|
61
|
-
*/
|
|
62
|
-
id: string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* The interval for the metric. This is required if `metric` is `count` or
|
|
66
|
-
* `volume`.
|
|
67
|
-
*
|
|
68
|
-
* - `transaction` - Enforce the Limit per-transaction.
|
|
69
|
-
* - `day` - Enforce the Limit based on the trailing 24 hour period.
|
|
70
|
-
* - `week` - Enforce the Limit based on the trailing seven days.
|
|
71
|
-
* - `month` - Enforce the Limit based on the trailing month, going back to the
|
|
72
|
-
* current day in the previous month, or as close as possible given month length
|
|
73
|
-
* differences.
|
|
74
|
-
* - `year` - Enforce the Limit based on the trailing 365 days.
|
|
75
|
-
* - `all_time` - Enforce the Limit for all time.
|
|
76
|
-
*/
|
|
77
|
-
interval: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time' | null;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* The metric for the Limit.
|
|
81
|
-
*
|
|
82
|
-
* - `count` - The maximum number of debits allowed.
|
|
83
|
-
* - `volume` - The maximum volume of debits allowed in the minor unit of the
|
|
84
|
-
* model's currency.
|
|
85
|
-
*/
|
|
86
|
-
metric: 'count' | 'volume';
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The identifier of the Account Number, Account, or Card the Limit applies to.
|
|
90
|
-
*/
|
|
91
|
-
model_id: string;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The type of the model you wish to associate the Limit with.
|
|
95
|
-
*
|
|
96
|
-
* - `account` - Enforce the Limit for the entire account.
|
|
97
|
-
* - `account_number` - Enforce the Limit for this specific route.
|
|
98
|
-
* - `card` - Enforce the Limit for this specific card.
|
|
99
|
-
*/
|
|
100
|
-
model_type: 'account' | 'account_number' | 'card';
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The current status of the Limit.
|
|
104
|
-
*
|
|
105
|
-
* - `active` - The Limit is active.
|
|
106
|
-
* - `inactive` - The Limit is temporarily disabled.
|
|
107
|
-
*/
|
|
108
|
-
status: 'active' | 'inactive';
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* A constant representing the object's type. For this resource it will always be
|
|
112
|
-
* `limit`.
|
|
113
|
-
*/
|
|
114
|
-
type: 'limit';
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The value to evaluate the Limit against.
|
|
118
|
-
*/
|
|
119
|
-
value: number;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface LimitCreateParams {
|
|
123
|
-
/**
|
|
124
|
-
* The metric for the limit.
|
|
125
|
-
*
|
|
126
|
-
* - `count` - The maximum number of debits allowed.
|
|
127
|
-
* - `volume` - The maximum volume of debits allowed in the minor unit of the
|
|
128
|
-
* model's currency.
|
|
129
|
-
*/
|
|
130
|
-
metric: 'count' | 'volume';
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The identifier of the Account, Account Number, or Card you wish to associate the
|
|
134
|
-
* limit with.
|
|
135
|
-
*/
|
|
136
|
-
model_id: string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The value to test the limit against.
|
|
140
|
-
*/
|
|
141
|
-
value: number;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* The interval for the metric. Required if `metric` is `count` or `volume`.
|
|
145
|
-
*
|
|
146
|
-
* - `transaction` - Enforce the limit per-transaction.
|
|
147
|
-
* - `day` - Enforce the limit based on the previous 24 hour period.
|
|
148
|
-
* - `week` - Enforce the limit based on the previous seven days.
|
|
149
|
-
* - `month` - Enforce the limit based on the previous month, going back to the
|
|
150
|
-
* current day in the previous month, or as close as possible given month length
|
|
151
|
-
* differences.
|
|
152
|
-
* - `year` - Enforce the limit based on the previous year.
|
|
153
|
-
* - `all_time` - Enforce the limit for all time.
|
|
154
|
-
*/
|
|
155
|
-
interval?: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface LimitUpdateParams {
|
|
159
|
-
/**
|
|
160
|
-
* The status to update the limit with.
|
|
161
|
-
*
|
|
162
|
-
* - `inactive` - Disable the limit temporarily.
|
|
163
|
-
* - `active` - Activate the limit.
|
|
164
|
-
*/
|
|
165
|
-
status: 'inactive' | 'active';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface LimitListParams extends PageParams {
|
|
169
|
-
/**
|
|
170
|
-
* The model to retrieve limits for.
|
|
171
|
-
*/
|
|
172
|
-
model_id?: string;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* The status to retrieve limits for.
|
|
176
|
-
*/
|
|
177
|
-
status?: string;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export namespace Limits {
|
|
181
|
-
export import Limit = API.Limit;
|
|
182
|
-
export type LimitsPage = _LimitsPage;
|
|
183
|
-
export import LimitCreateParams = API.LimitCreateParams;
|
|
184
|
-
export import LimitUpdateParams = API.LimitUpdateParams;
|
|
185
|
-
export import LimitListParams = API.LimitListParams;
|
|
186
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|