increase 0.10.4 → 0.11.1
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 +27 -0
- package/README.md +3 -3
- package/core.d.ts.map +1 -1
- package/core.js +3 -1
- package/core.js.map +1 -1
- package/core.mjs +3 -1
- package/core.mjs.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 +0 -7
- package/index.d.ts +0 -7
- package/index.d.ts.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/index.mjs +0 -3
- package/index.mjs.map +1 -1
- package/package.json +36 -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/card-profiles.d.ts +11 -2
- 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/declined-transactions.d.ts +17 -15
- 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/index.d.ts +0 -8
- 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 +4 -0
- 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/simulations/ach-transfers.d.ts +26 -16
- 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 +21 -15
- 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 +9 -1
- 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 +26 -16
- 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 +9 -1
- 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 +9 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/src/core.ts +4 -1
- package/src/error.ts +2 -2
- package/src/index.ts +0 -8
- package/src/resources/account-numbers.ts +63 -0
- package/src/resources/card-profiles.ts +11 -2
- package/src/resources/declined-transactions.ts +19 -15
- package/src/resources/index.ts +0 -8
- package/src/resources/pending-transactions.ts +5 -0
- package/src/resources/simulations/ach-transfers.ts +30 -16
- package/src/resources/simulations/cards.ts +24 -15
- package/src/resources/simulations/interest-payments.ts +11 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +30 -16
- package/src/resources/simulations/wire-transfers.ts +11 -1
- package/src/resources/transactions.ts +11 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -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/resources/limits.ts +0 -186
|
@@ -319,12 +319,22 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
|
|
|
319
319
|
* only if `category` is equal to `card_decline`.
|
|
320
320
|
*/
|
|
321
321
|
export interface CardDecline {
|
|
322
|
+
/**
|
|
323
|
+
* The Card Decline identifier.
|
|
324
|
+
*/
|
|
325
|
+
id: string;
|
|
326
|
+
|
|
322
327
|
/**
|
|
323
328
|
* The declined amount in the minor unit of the destination account currency. For
|
|
324
329
|
* dollars, for example, this is cents.
|
|
325
330
|
*/
|
|
326
331
|
amount: number;
|
|
327
332
|
|
|
333
|
+
/**
|
|
334
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
335
|
+
*/
|
|
336
|
+
card_payment_id: string | null;
|
|
337
|
+
|
|
328
338
|
/**
|
|
329
339
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
330
340
|
* account currency.
|
|
@@ -558,38 +568,32 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
|
|
|
558
568
|
/**
|
|
559
569
|
* Why the check was declined.
|
|
560
570
|
*
|
|
561
|
-
* - `ach_route_canceled` - The account number is canceled.
|
|
562
571
|
* - `ach_route_disabled` - The account number is disabled.
|
|
572
|
+
* - `ach_route_canceled` - The account number is canceled.
|
|
563
573
|
* - `breaches_limit` - The transaction would cause a limit to be exceeded.
|
|
564
574
|
* - `entity_not_active` - The account's entity is not active.
|
|
565
575
|
* - `group_locked` - Your account is inactive.
|
|
566
576
|
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
567
|
-
* - `unable_to_locate_account` - Unable to locate account.
|
|
568
|
-
* - `not_our_item` - Routing number on the check is not ours.
|
|
569
|
-
* - `unable_to_process` - Unable to process.
|
|
570
|
-
* - `refer_to_image` - Refer to image.
|
|
571
577
|
* - `stop_payment_requested` - Stop payment requested for this check.
|
|
572
|
-
* - `returned` - Check was returned to sender.
|
|
573
578
|
* - `duplicate_presentment` - The check was a duplicate deposit.
|
|
574
|
-
* - `not_authorized` - The
|
|
575
|
-
* - `
|
|
579
|
+
* - `not_authorized` - The check was not authorized.
|
|
580
|
+
* - `amount_mismatch` - The amount the receiving bank is attempting to deposit
|
|
581
|
+
* does not match the amount on the check.
|
|
582
|
+
* - `not_our_item` - The check attempting to be deposited does not belong to
|
|
583
|
+
* Increase.
|
|
576
584
|
*/
|
|
577
585
|
reason:
|
|
578
|
-
| 'ach_route_canceled'
|
|
579
586
|
| 'ach_route_disabled'
|
|
587
|
+
| 'ach_route_canceled'
|
|
580
588
|
| 'breaches_limit'
|
|
581
589
|
| 'entity_not_active'
|
|
582
590
|
| 'group_locked'
|
|
583
591
|
| 'insufficient_funds'
|
|
584
|
-
| 'unable_to_locate_account'
|
|
585
|
-
| 'not_our_item'
|
|
586
|
-
| 'unable_to_process'
|
|
587
|
-
| 'refer_to_image'
|
|
588
592
|
| 'stop_payment_requested'
|
|
589
|
-
| 'returned'
|
|
590
593
|
| 'duplicate_presentment'
|
|
591
594
|
| 'not_authorized'
|
|
592
|
-
| '
|
|
595
|
+
| 'amount_mismatch'
|
|
596
|
+
| 'not_our_item';
|
|
593
597
|
}
|
|
594
598
|
|
|
595
599
|
/**
|
|
@@ -1799,6 +1803,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
|
|
|
1799
1803
|
*/
|
|
1800
1804
|
amount: number;
|
|
1801
1805
|
|
|
1806
|
+
/**
|
|
1807
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
1808
|
+
*/
|
|
1809
|
+
card_payment_id: string | null;
|
|
1810
|
+
|
|
1802
1811
|
/**
|
|
1803
1812
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1804
1813
|
* transaction's currency.
|
|
@@ -2447,11 +2456,16 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
|
|
|
2447
2456
|
amount: number;
|
|
2448
2457
|
|
|
2449
2458
|
/**
|
|
2450
|
-
* The Card Authorization that was created prior to this Card Settlement, if
|
|
2459
|
+
* The Card Authorization that was created prior to this Card Settlement, if one
|
|
2451
2460
|
* exists.
|
|
2452
2461
|
*/
|
|
2453
2462
|
card_authorization: string | null;
|
|
2454
2463
|
|
|
2464
|
+
/**
|
|
2465
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
2466
|
+
*/
|
|
2467
|
+
card_payment_id: string | null;
|
|
2468
|
+
|
|
2455
2469
|
/**
|
|
2456
2470
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
2457
2471
|
* transaction's settlement currency.
|
|
@@ -769,6 +769,11 @@ export namespace WireTransferSimulation {
|
|
|
769
769
|
*/
|
|
770
770
|
amount: number;
|
|
771
771
|
|
|
772
|
+
/**
|
|
773
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
774
|
+
*/
|
|
775
|
+
card_payment_id: string | null;
|
|
776
|
+
|
|
772
777
|
/**
|
|
773
778
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
774
779
|
* transaction's currency.
|
|
@@ -1417,11 +1422,16 @@ export namespace WireTransferSimulation {
|
|
|
1417
1422
|
amount: number;
|
|
1418
1423
|
|
|
1419
1424
|
/**
|
|
1420
|
-
* The Card Authorization that was created prior to this Card Settlement, if
|
|
1425
|
+
* The Card Authorization that was created prior to this Card Settlement, if one
|
|
1421
1426
|
* exists.
|
|
1422
1427
|
*/
|
|
1423
1428
|
card_authorization: string | null;
|
|
1424
1429
|
|
|
1430
|
+
/**
|
|
1431
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
1432
|
+
*/
|
|
1433
|
+
card_payment_id: string | null;
|
|
1434
|
+
|
|
1425
1435
|
/**
|
|
1426
1436
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1427
1437
|
* transaction's settlement currency.
|
|
@@ -770,6 +770,11 @@ export namespace Transaction {
|
|
|
770
770
|
*/
|
|
771
771
|
amount: number;
|
|
772
772
|
|
|
773
|
+
/**
|
|
774
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
775
|
+
*/
|
|
776
|
+
card_payment_id: string | null;
|
|
777
|
+
|
|
773
778
|
/**
|
|
774
779
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
775
780
|
* transaction's currency.
|
|
@@ -1418,11 +1423,16 @@ export namespace Transaction {
|
|
|
1418
1423
|
amount: number;
|
|
1419
1424
|
|
|
1420
1425
|
/**
|
|
1421
|
-
* The Card Authorization that was created prior to this Card Settlement, if
|
|
1426
|
+
* The Card Authorization that was created prior to this Card Settlement, if one
|
|
1422
1427
|
* exists.
|
|
1423
1428
|
*/
|
|
1424
1429
|
card_authorization: string | null;
|
|
1425
1430
|
|
|
1431
|
+
/**
|
|
1432
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
1433
|
+
*/
|
|
1434
|
+
card_payment_id: string | null;
|
|
1435
|
+
|
|
1426
1436
|
/**
|
|
1427
1437
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1428
1438
|
* transaction's settlement currency.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.11.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = '0.
|
|
1
|
+
export declare const VERSION = '0.11.1';
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.11.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/limits.d.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import * as Core from 'increase/core';
|
|
2
|
-
import { APIResource } from 'increase/resource';
|
|
3
|
-
import * as API from './index.js';
|
|
4
|
-
import { Page, PageParams } from 'increase/pagination';
|
|
5
|
-
export declare class Limits extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a Limit
|
|
8
|
-
*/
|
|
9
|
-
create(body: LimitCreateParams, options?: Core.RequestOptions): Core.APIPromise<Limit>;
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a Limit
|
|
12
|
-
*/
|
|
13
|
-
retrieve(limitId: string, options?: Core.RequestOptions): Core.APIPromise<Limit>;
|
|
14
|
-
/**
|
|
15
|
-
* Update a Limit
|
|
16
|
-
*/
|
|
17
|
-
update(limitId: string, body: LimitUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Limit>;
|
|
18
|
-
/**
|
|
19
|
-
* List Limits
|
|
20
|
-
*/
|
|
21
|
-
list(query?: LimitListParams, options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
|
|
22
|
-
list(options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
|
|
23
|
-
}
|
|
24
|
-
export declare class LimitsPage extends Page<Limit> {}
|
|
25
|
-
type _LimitsPage = LimitsPage;
|
|
26
|
-
/**
|
|
27
|
-
* You can set limits at the Account, Account Number, or Card level. Limits applied
|
|
28
|
-
* to Accounts will apply to all Account Numbers and Cards in the Account. You can
|
|
29
|
-
* specify any number of Limits and they will all be applied to inbound debits and
|
|
30
|
-
* card authorizations. Volume and count Limits are designed to prevent
|
|
31
|
-
* unauthorized debits.
|
|
32
|
-
*/
|
|
33
|
-
export interface Limit {
|
|
34
|
-
/**
|
|
35
|
-
* The Limit identifier.
|
|
36
|
-
*/
|
|
37
|
-
id: string;
|
|
38
|
-
/**
|
|
39
|
-
* The interval for the metric. This is required if `metric` is `count` or
|
|
40
|
-
* `volume`.
|
|
41
|
-
*
|
|
42
|
-
* - `transaction` - Enforce the Limit per-transaction.
|
|
43
|
-
* - `day` - Enforce the Limit based on the trailing 24 hour period.
|
|
44
|
-
* - `week` - Enforce the Limit based on the trailing seven days.
|
|
45
|
-
* - `month` - Enforce the Limit based on the trailing month, going back to the
|
|
46
|
-
* current day in the previous month, or as close as possible given month length
|
|
47
|
-
* differences.
|
|
48
|
-
* - `year` - Enforce the Limit based on the trailing 365 days.
|
|
49
|
-
* - `all_time` - Enforce the Limit for all time.
|
|
50
|
-
*/
|
|
51
|
-
interval: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time' | null;
|
|
52
|
-
/**
|
|
53
|
-
* The metric for the Limit.
|
|
54
|
-
*
|
|
55
|
-
* - `count` - The maximum number of debits allowed.
|
|
56
|
-
* - `volume` - The maximum volume of debits allowed in the minor unit of the
|
|
57
|
-
* model's currency.
|
|
58
|
-
*/
|
|
59
|
-
metric: 'count' | 'volume';
|
|
60
|
-
/**
|
|
61
|
-
* The identifier of the Account Number, Account, or Card the Limit applies to.
|
|
62
|
-
*/
|
|
63
|
-
model_id: string;
|
|
64
|
-
/**
|
|
65
|
-
* The type of the model you wish to associate the Limit with.
|
|
66
|
-
*
|
|
67
|
-
* - `account` - Enforce the Limit for the entire account.
|
|
68
|
-
* - `account_number` - Enforce the Limit for this specific route.
|
|
69
|
-
* - `card` - Enforce the Limit for this specific card.
|
|
70
|
-
*/
|
|
71
|
-
model_type: 'account' | 'account_number' | 'card';
|
|
72
|
-
/**
|
|
73
|
-
* The current status of the Limit.
|
|
74
|
-
*
|
|
75
|
-
* - `active` - The Limit is active.
|
|
76
|
-
* - `inactive` - The Limit is temporarily disabled.
|
|
77
|
-
*/
|
|
78
|
-
status: 'active' | 'inactive';
|
|
79
|
-
/**
|
|
80
|
-
* A constant representing the object's type. For this resource it will always be
|
|
81
|
-
* `limit`.
|
|
82
|
-
*/
|
|
83
|
-
type: 'limit';
|
|
84
|
-
/**
|
|
85
|
-
* The value to evaluate the Limit against.
|
|
86
|
-
*/
|
|
87
|
-
value: number;
|
|
88
|
-
}
|
|
89
|
-
export interface LimitCreateParams {
|
|
90
|
-
/**
|
|
91
|
-
* The metric for the limit.
|
|
92
|
-
*
|
|
93
|
-
* - `count` - The maximum number of debits allowed.
|
|
94
|
-
* - `volume` - The maximum volume of debits allowed in the minor unit of the
|
|
95
|
-
* model's currency.
|
|
96
|
-
*/
|
|
97
|
-
metric: 'count' | 'volume';
|
|
98
|
-
/**
|
|
99
|
-
* The identifier of the Account, Account Number, or Card you wish to associate the
|
|
100
|
-
* limit with.
|
|
101
|
-
*/
|
|
102
|
-
model_id: string;
|
|
103
|
-
/**
|
|
104
|
-
* The value to test the limit against.
|
|
105
|
-
*/
|
|
106
|
-
value: number;
|
|
107
|
-
/**
|
|
108
|
-
* The interval for the metric. Required if `metric` is `count` or `volume`.
|
|
109
|
-
*
|
|
110
|
-
* - `transaction` - Enforce the limit per-transaction.
|
|
111
|
-
* - `day` - Enforce the limit based on the previous 24 hour period.
|
|
112
|
-
* - `week` - Enforce the limit based on the previous seven days.
|
|
113
|
-
* - `month` - Enforce the limit based on the previous month, going back to the
|
|
114
|
-
* current day in the previous month, or as close as possible given month length
|
|
115
|
-
* differences.
|
|
116
|
-
* - `year` - Enforce the limit based on the previous year.
|
|
117
|
-
* - `all_time` - Enforce the limit for all time.
|
|
118
|
-
*/
|
|
119
|
-
interval?: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time';
|
|
120
|
-
}
|
|
121
|
-
export interface LimitUpdateParams {
|
|
122
|
-
/**
|
|
123
|
-
* The status to update the limit with.
|
|
124
|
-
*
|
|
125
|
-
* - `inactive` - Disable the limit temporarily.
|
|
126
|
-
* - `active` - Activate the limit.
|
|
127
|
-
*/
|
|
128
|
-
status: 'inactive' | 'active';
|
|
129
|
-
}
|
|
130
|
-
export interface LimitListParams extends PageParams {
|
|
131
|
-
/**
|
|
132
|
-
* The model to retrieve limits for.
|
|
133
|
-
*/
|
|
134
|
-
model_id?: string;
|
|
135
|
-
/**
|
|
136
|
-
* The status to retrieve limits for.
|
|
137
|
-
*/
|
|
138
|
-
status?: string;
|
|
139
|
-
}
|
|
140
|
-
export declare namespace Limits {
|
|
141
|
-
export import Limit = API.Limit;
|
|
142
|
-
type LimitsPage = _LimitsPage;
|
|
143
|
-
export import LimitCreateParams = API.LimitCreateParams;
|
|
144
|
-
export import LimitUpdateParams = API.LimitUpdateParams;
|
|
145
|
-
export import LimitListParams = API.LimitListParams;
|
|
146
|
-
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AG,GAAG,CAAC,iBAAiB,CAAC;IACxD,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;CACrD"}
|
package/resources/limits.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
exports.LimitsPage = exports.Limits = void 0;
|
|
5
|
-
const resource_1 = require('increase/resource');
|
|
6
|
-
const core_1 = require('increase/core');
|
|
7
|
-
const pagination_1 = require('increase/pagination');
|
|
8
|
-
class Limits extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a Limit
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this.post('/limits', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a Limit
|
|
17
|
-
*/
|
|
18
|
-
retrieve(limitId, options) {
|
|
19
|
-
return this.get(`/limits/${limitId}`, options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Update a Limit
|
|
23
|
-
*/
|
|
24
|
-
update(limitId, body, options) {
|
|
25
|
-
return this.patch(`/limits/${limitId}`, { body, ...options });
|
|
26
|
-
}
|
|
27
|
-
list(query = {}, options) {
|
|
28
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
29
|
-
return this.list({}, query);
|
|
30
|
-
}
|
|
31
|
-
return this.getAPIList('/limits', LimitsPage, { query, ...options });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.Limits = Limits;
|
|
35
|
-
class LimitsPage extends pagination_1.Page {}
|
|
36
|
-
exports.LimitsPage = LimitsPage;
|
|
37
|
-
(function (Limits) {})((Limits = exports.Limits || (exports.Limits = {})));
|
|
38
|
-
//# sourceMappingURL=limits.js.map
|
package/resources/limits.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/resources/limits.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAChD,wCAAiD;AAEjD,oDAAuD;AAEvD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AApCD,wBAoCC;AAED,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C;AAqI9C,WAAiB,MAAM;AAMvB,CAAC,EANgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAMtB"}
|
package/resources/limits.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from 'increase/resource';
|
|
3
|
-
import { isRequestOptions } from 'increase/core';
|
|
4
|
-
import { Page } from 'increase/pagination';
|
|
5
|
-
export class Limits extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a Limit
|
|
8
|
-
*/
|
|
9
|
-
create(body, options) {
|
|
10
|
-
return this.post('/limits', { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a Limit
|
|
14
|
-
*/
|
|
15
|
-
retrieve(limitId, options) {
|
|
16
|
-
return this.get(`/limits/${limitId}`, options);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Update a Limit
|
|
20
|
-
*/
|
|
21
|
-
update(limitId, body, options) {
|
|
22
|
-
return this.patch(`/limits/${limitId}`, { body, ...options });
|
|
23
|
-
}
|
|
24
|
-
list(query = {}, options) {
|
|
25
|
-
if (isRequestOptions(query)) {
|
|
26
|
-
return this.list({}, query);
|
|
27
|
-
}
|
|
28
|
-
return this.getAPIList('/limits', LimitsPage, { query, ...options });
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export class LimitsPage extends Page {}
|
|
32
|
-
(function (Limits) {})(Limits || (Limits = {}));
|
|
33
|
-
//# sourceMappingURL=limits.mjs.map
|
package/resources/limits.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limits.mjs","sourceRoot":"","sources":["../src/resources/limits.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OAEzC,EAAE,IAAI,EAAc,MAAM,qBAAqB;AAEtD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAED,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG;AAqI9C,WAAiB,MAAM;AAMvB,CAAC,EANgB,MAAM,KAAN,MAAM,QAMtB"}
|
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.js';
|
|
4
|
-
import { APIResource } from '../resource.js';
|
|
5
|
-
import { isRequestOptions } from '../core.js';
|
|
6
|
-
import * as API from './index.js';
|
|
7
|
-
import { Page, PageParams } from '../pagination.js';
|
|
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
|
-
}
|