increase 0.59.1 → 0.61.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 +31 -0
- package/README.md +41 -17
- package/error.d.ts.map +1 -1
- package/error.js +0 -3
- package/error.js.map +1 -1
- package/error.mjs +0 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +190 -172
- package/index.d.ts +190 -172
- package/index.d.ts.map +1 -1
- package/index.js +96 -87
- package/index.js.map +1 -1
- package/index.mjs +96 -87
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/cards.d.ts +1 -1
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +2 -231
- 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/{entities/entities.d.ts → entities.d.ts} +276 -46
- package/resources/entities.d.ts.map +1 -0
- package/resources/{entities/entities.js → entities.js} +28 -17
- package/resources/entities.js.map +1 -0
- package/resources/{entities/entities.mjs → entities.mjs} +28 -17
- package/resources/entities.mjs.map +1 -0
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +218 -7
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -8
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -8
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-check-deposits.d.ts +25 -1
- package/resources/inbound-check-deposits.d.ts.map +1 -1
- package/resources/inbound-check-deposits.js +6 -0
- package/resources/inbound-check-deposits.js.map +1 -1
- package/resources/inbound-check-deposits.mjs +6 -0
- package/resources/inbound-check-deposits.mjs.map +1 -1
- package/resources/inbound-mail-items.d.ts +0 -14
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -4
- package/resources/index.mjs.map +1 -1
- package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
- package/resources/intrafi-account-enrollments.d.ts.map +1 -0
- package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
- package/resources/intrafi-account-enrollments.js.map +1 -0
- package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
- package/resources/intrafi-account-enrollments.mjs.map +1 -0
- package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
- package/resources/intrafi-balances.d.ts.map +1 -0
- package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
- package/resources/intrafi-balances.js.map +1 -0
- package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
- package/resources/intrafi-balances.mjs.map +1 -0
- package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
- package/resources/intrafi-exclusions.d.ts.map +1 -0
- package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
- package/resources/intrafi-exclusions.js.map +1 -0
- package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
- package/resources/intrafi-exclusions.mjs.map +1 -0
- package/resources/lockboxes.d.ts +0 -14
- package/resources/lockboxes.d.ts.map +1 -1
- package/resources/lockboxes.js.map +1 -1
- package/resources/lockboxes.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +5 -5
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js +5 -5
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +3 -3
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +10 -61
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +10 -14
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +10 -14
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-authorization-expirations.d.ts +20 -0
- package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
- package/resources/simulations/card-authorization-expirations.js +17 -0
- package/resources/simulations/card-authorization-expirations.js.map +1 -0
- package/resources/simulations/card-authorization-expirations.mjs +13 -0
- package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
- package/resources/simulations/card-authorizations.d.ts +91 -0
- package/resources/simulations/card-authorizations.d.ts.map +1 -0
- package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
- package/resources/simulations/card-authorizations.js.map +1 -0
- package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
- package/resources/simulations/card-authorizations.mjs.map +1 -0
- package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
- package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
- package/resources/simulations/card-fuel-confirmations.js +19 -0
- package/resources/simulations/card-fuel-confirmations.js.map +1 -0
- package/resources/simulations/card-fuel-confirmations.mjs +15 -0
- package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
- package/resources/simulations/card-increments.d.ts +32 -0
- package/resources/simulations/card-increments.d.ts.map +1 -0
- package/resources/simulations/card-increments.js +18 -0
- package/resources/simulations/card-increments.js.map +1 -0
- package/resources/simulations/card-increments.mjs +14 -0
- package/resources/simulations/card-increments.mjs.map +1 -0
- package/resources/simulations/card-reversals.d.ts +28 -0
- package/resources/simulations/card-reversals.d.ts.map +1 -0
- package/resources/simulations/card-reversals.js +20 -0
- package/resources/simulations/card-reversals.js.map +1 -0
- package/resources/simulations/card-reversals.mjs +16 -0
- package/resources/simulations/card-reversals.mjs.map +1 -0
- package/resources/simulations/card-settlements.d.ts +34 -0
- package/resources/simulations/card-settlements.d.ts.map +1 -0
- package/resources/simulations/card-settlements.js +21 -0
- package/resources/simulations/card-settlements.js.map +1 -0
- package/resources/simulations/card-settlements.mjs +17 -0
- package/resources/simulations/card-settlements.mjs.map +1 -0
- package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
- package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-ach-transfers.js +26 -0
- package/resources/simulations/inbound-ach-transfers.js.map +1 -0
- package/resources/simulations/inbound-ach-transfers.mjs +22 -0
- package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
- package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-wire-transfers.js +17 -0
- package/resources/simulations/inbound-wire-transfers.js.map +1 -0
- package/resources/simulations/inbound-wire-transfers.mjs +13 -0
- package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
- package/resources/simulations/index.d.ts +14 -7
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +21 -7
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +11 -4
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts +3 -3
- package/resources/simulations/physical-cards.js +2 -2
- package/resources/simulations/physical-cards.mjs +2 -2
- package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +0 -7
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +0 -7
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +67 -118
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +45 -54
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +45 -54
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +10 -85
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +14 -5
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +14 -5
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
- package/resources/supplemental-documents.d.ts.map +1 -0
- package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
- package/resources/supplemental-documents.js.map +1 -0
- package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
- package/resources/supplemental-documents.mjs.map +1 -0
- package/resources/transactions.d.ts +6 -276
- 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 +4 -13
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +0 -17
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +0 -17
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/error.ts +0 -8
- package/src/index.ts +210 -189
- package/src/resources/cards.ts +1 -1
- package/src/resources/declined-transactions.ts +0 -297
- package/src/resources/{entities/entities.ts → entities.ts} +351 -56
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +288 -13
- package/src/resources/inbound-check-deposits.ts +34 -1
- package/src/resources/inbound-mail-items.ts +0 -16
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +32 -14
- package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
- package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
- package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
- package/src/resources/lockboxes.ts +0 -16
- package/src/resources/routing-numbers.ts +6 -6
- package/src/resources/simulations/ach-transfers.ts +15 -76
- package/src/resources/simulations/card-authorization-expirations.ts +29 -0
- package/src/resources/simulations/card-authorizations.ts +112 -0
- package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
- package/src/resources/simulations/card-increments.ts +43 -0
- package/src/resources/simulations/card-reversals.ts +38 -0
- package/src/resources/simulations/card-settlements.ts +45 -0
- package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
- package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
- package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
- package/src/resources/simulations/index.ts +26 -21
- package/src/resources/simulations/interest-payments.ts +1 -1
- package/src/resources/simulations/physical-cards.ts +5 -5
- package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
- package/src/resources/simulations/simulations.ts +80 -157
- package/src/resources/simulations/wire-transfers.ts +18 -104
- package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
- package/src/resources/transactions.ts +5 -350
- package/src/resources/wire-transfers.ts +5 -19
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/entities/beneficial-owners.d.ts +0 -279
- package/resources/entities/beneficial-owners.d.ts.map +0 -1
- package/resources/entities/beneficial-owners.js +0 -29
- package/resources/entities/beneficial-owners.js.map +0 -1
- package/resources/entities/beneficial-owners.mjs +0 -25
- package/resources/entities/beneficial-owners.mjs.map +0 -1
- package/resources/entities/entities.d.ts.map +0 -1
- package/resources/entities/entities.js.map +0 -1
- package/resources/entities/entities.mjs.map +0 -1
- package/resources/entities/index.d.ts +0 -5
- package/resources/entities/index.d.ts.map +0 -1
- package/resources/entities/index.js +0 -15
- package/resources/entities/index.js.map +0 -1
- package/resources/entities/index.mjs +0 -6
- package/resources/entities/index.mjs.map +0 -1
- package/resources/entities/industry-code.d.ts +0 -23
- package/resources/entities/industry-code.d.ts.map +0 -1
- package/resources/entities/industry-code.js +0 -17
- package/resources/entities/industry-code.js.map +0 -1
- package/resources/entities/industry-code.mjs +0 -13
- package/resources/entities/industry-code.mjs.map +0 -1
- package/resources/entities/supplemental-documents.d.ts.map +0 -1
- package/resources/entities/supplemental-documents.js.map +0 -1
- package/resources/entities/supplemental-documents.mjs.map +0 -1
- package/resources/intrafi/account-enrollments.d.ts.map +0 -1
- package/resources/intrafi/account-enrollments.js.map +0 -1
- package/resources/intrafi/account-enrollments.mjs.map +0 -1
- package/resources/intrafi/balances.d.ts.map +0 -1
- package/resources/intrafi/balances.js.map +0 -1
- package/resources/intrafi/balances.mjs.map +0 -1
- package/resources/intrafi/exclusions.d.ts.map +0 -1
- package/resources/intrafi/exclusions.js.map +0 -1
- package/resources/intrafi/exclusions.mjs.map +0 -1
- package/resources/intrafi/index.d.ts +0 -5
- package/resources/intrafi/index.d.ts.map +0 -1
- package/resources/intrafi/index.js +0 -15
- package/resources/intrafi/index.js.map +0 -1
- package/resources/intrafi/index.mjs +0 -6
- package/resources/intrafi/index.mjs.map +0 -1
- package/resources/intrafi/intrafi.d.ts +0 -24
- package/resources/intrafi/intrafi.d.ts.map +0 -1
- package/resources/intrafi/intrafi.js +0 -48
- package/resources/intrafi/intrafi.js.map +0 -1
- package/resources/intrafi/intrafi.mjs +0 -21
- package/resources/intrafi/intrafi.mjs.map +0 -1
- package/resources/simulations/cards.d.ts +0 -1763
- package/resources/simulations/cards.d.ts.map +0 -1
- package/resources/simulations/cards.js.map +0 -1
- package/resources/simulations/cards.mjs.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
- package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.js +0 -21
- package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
- package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
- package/src/resources/entities/beneficial-owners.ts +0 -346
- package/src/resources/entities/index.ts +0 -25
- package/src/resources/entities/industry-code.ts +0 -33
- package/src/resources/intrafi/index.ts +0 -18
- package/src/resources/intrafi/intrafi.ts +0 -29
- package/src/resources/simulations/cards.ts +0 -2188
- package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { isRequestOptions } from '
|
|
5
|
-
import * as Core from '
|
|
6
|
-
import * as
|
|
7
|
-
import { Page, type PageParams } from '
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
import * as IntrafiExclusionsAPI from './intrafi-exclusions';
|
|
7
|
+
import { Page, type PageParams } from '../pagination';
|
|
8
8
|
|
|
9
|
-
export class
|
|
9
|
+
export class IntrafiExclusions extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Create an IntraFi Exclusion
|
|
12
12
|
*/
|
|
13
|
-
create(
|
|
13
|
+
create(
|
|
14
|
+
body: IntrafiExclusionCreateParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Core.APIPromise<IntrafiExclusion> {
|
|
14
17
|
return this._client.post('/intrafi_exclusions', { body, ...options });
|
|
15
18
|
}
|
|
16
19
|
|
|
@@ -25,12 +28,12 @@ export class Exclusions extends APIResource {
|
|
|
25
28
|
* List IntraFi Exclusions.
|
|
26
29
|
*/
|
|
27
30
|
list(
|
|
28
|
-
query?:
|
|
31
|
+
query?: IntrafiExclusionListParams,
|
|
29
32
|
options?: Core.RequestOptions,
|
|
30
33
|
): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion>;
|
|
31
34
|
list(options?: Core.RequestOptions): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion>;
|
|
32
35
|
list(
|
|
33
|
-
query:
|
|
36
|
+
query: IntrafiExclusionListParams | Core.RequestOptions = {},
|
|
34
37
|
options?: Core.RequestOptions,
|
|
35
38
|
): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion> {
|
|
36
39
|
if (isRequestOptions(query)) {
|
|
@@ -110,7 +113,7 @@ export interface IntrafiExclusion {
|
|
|
110
113
|
type: 'intrafi_exclusion';
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
export interface
|
|
116
|
+
export interface IntrafiExclusionCreateParams {
|
|
114
117
|
/**
|
|
115
118
|
* The name of the financial institution to be excluded.
|
|
116
119
|
*/
|
|
@@ -122,7 +125,7 @@ export interface ExclusionCreateParams {
|
|
|
122
125
|
entity_id: string;
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
export interface
|
|
128
|
+
export interface IntrafiExclusionListParams extends PageParams {
|
|
126
129
|
/**
|
|
127
130
|
* Filter IntraFi Exclusions for those belonging to the specified Entity.
|
|
128
131
|
*/
|
|
@@ -137,9 +140,9 @@ export interface ExclusionListParams extends PageParams {
|
|
|
137
140
|
idempotency_key?: string;
|
|
138
141
|
}
|
|
139
142
|
|
|
140
|
-
export namespace
|
|
141
|
-
export import IntrafiExclusion =
|
|
142
|
-
export import IntrafiExclusionsPage =
|
|
143
|
-
export import
|
|
144
|
-
export import
|
|
143
|
+
export namespace IntrafiExclusions {
|
|
144
|
+
export import IntrafiExclusion = IntrafiExclusionsAPI.IntrafiExclusion;
|
|
145
|
+
export import IntrafiExclusionsPage = IntrafiExclusionsAPI.IntrafiExclusionsPage;
|
|
146
|
+
export import IntrafiExclusionCreateParams = IntrafiExclusionsAPI.IntrafiExclusionCreateParams;
|
|
147
|
+
export import IntrafiExclusionListParams = IntrafiExclusionsAPI.IntrafiExclusionListParams;
|
|
145
148
|
}
|
|
@@ -139,21 +139,6 @@ export namespace Lockbox {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
/**
|
|
143
|
-
* A list of Lockbox objects.
|
|
144
|
-
*/
|
|
145
|
-
export interface LockboxList {
|
|
146
|
-
/**
|
|
147
|
-
* The contents of the list.
|
|
148
|
-
*/
|
|
149
|
-
data: Array<Lockbox>;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* A pointer to a place in the list.
|
|
153
|
-
*/
|
|
154
|
-
next_cursor: string | null;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
142
|
export interface LockboxCreateParams {
|
|
158
143
|
/**
|
|
159
144
|
* The Account checks sent to this Lockbox should be deposited into.
|
|
@@ -230,7 +215,6 @@ export namespace LockboxListParams {
|
|
|
230
215
|
|
|
231
216
|
export namespace Lockboxes {
|
|
232
217
|
export import Lockbox = LockboxesAPI.Lockbox;
|
|
233
|
-
export import LockboxList = LockboxesAPI.LockboxList;
|
|
234
218
|
export import LockboxesPage = LockboxesAPI.LockboxesPage;
|
|
235
219
|
export import LockboxCreateParams = LockboxesAPI.LockboxCreateParams;
|
|
236
220
|
export import LockboxUpdateParams = LockboxesAPI.LockboxUpdateParams;
|
|
@@ -15,17 +15,17 @@ export class RoutingNumbers extends APIResource {
|
|
|
15
15
|
list(
|
|
16
16
|
query: RoutingNumberListParams,
|
|
17
17
|
options?: Core.RequestOptions,
|
|
18
|
-
): Core.PagePromise<
|
|
19
|
-
return this._client.getAPIList('/routing_numbers',
|
|
18
|
+
): Core.PagePromise<RoutingNumberListResponsesPage, RoutingNumberListResponse> {
|
|
19
|
+
return this._client.getAPIList('/routing_numbers', RoutingNumberListResponsesPage, { query, ...options });
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export class
|
|
23
|
+
export class RoutingNumberListResponsesPage extends Page<RoutingNumberListResponse> {}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Routing numbers are used to identify your bank in a financial transaction.
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface RoutingNumberListResponse {
|
|
29
29
|
/**
|
|
30
30
|
* This routing number's support for ACH Transfers.
|
|
31
31
|
*
|
|
@@ -75,7 +75,7 @@ export interface RoutingNumberListParams extends PageParams {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export namespace RoutingNumbers {
|
|
78
|
-
export import
|
|
79
|
-
export import
|
|
78
|
+
export import RoutingNumberListResponse = RoutingNumbersAPI.RoutingNumberListResponse;
|
|
79
|
+
export import RoutingNumberListResponsesPage = RoutingNumbersAPI.RoutingNumberListResponsesPage;
|
|
80
80
|
export import RoutingNumberListParams = RoutingNumbersAPI.RoutingNumberListParams;
|
|
81
81
|
}
|
|
@@ -4,38 +4,33 @@ import { APIResource } from '../../resource';
|
|
|
4
4
|
import * as Core from '../../core';
|
|
5
5
|
import * as SimulationsACHTransfersAPI from './ach-transfers';
|
|
6
6
|
import * as ACHTransfersAPI from '../ach-transfers';
|
|
7
|
-
import * as InboundACHTransfersAPI from '../inbound-ach-transfers';
|
|
8
7
|
|
|
9
8
|
export class ACHTransfers extends APIResource {
|
|
10
9
|
/**
|
|
11
|
-
* Simulates
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* Alternatively, if you don't pass the `resolve_at` parameter the result will
|
|
18
|
-
* contain either a [Transaction](#transactions) or a
|
|
19
|
-
* [Declined Transaction](#declined-transactions) depending on whether or not the
|
|
20
|
-
* transfer is allowed.
|
|
10
|
+
* Simulates the acknowledgement of an [ACH Transfer](#ach-transfers) by the
|
|
11
|
+
* Federal Reserve. This transfer must first have a `status` of `submitted` . In
|
|
12
|
+
* production, the Federal Reserve generally acknowledges submitted ACH files
|
|
13
|
+
* within 30 minutes. Since sandbox ACH Transfers are not submitted to the Federal
|
|
14
|
+
* Reserve, this endpoint allows you to skip that delay and add the acknowledgment
|
|
15
|
+
* subresource to the ACH Transfer.
|
|
21
16
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
acknowledge(
|
|
18
|
+
achTransferId: string,
|
|
24
19
|
options?: Core.RequestOptions,
|
|
25
|
-
): Core.APIPromise<
|
|
26
|
-
return this._client.post(
|
|
20
|
+
): Core.APIPromise<ACHTransfersAPI.ACHTransfer> {
|
|
21
|
+
return this._client.post(`/simulations/ach_transfers/${achTransferId}/acknowledge`, options);
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
/**
|
|
30
25
|
* Simulates receiving a Notification of Change for an
|
|
31
26
|
* [ACH Transfer](#ach-transfers).
|
|
32
27
|
*/
|
|
33
|
-
|
|
28
|
+
createNotificationOfChange(
|
|
34
29
|
achTransferId: string,
|
|
35
|
-
body:
|
|
30
|
+
body: ACHTransferCreateNotificationOfChangeParams,
|
|
36
31
|
options?: Core.RequestOptions,
|
|
37
32
|
): Core.APIPromise<ACHTransfersAPI.ACHTransfer> {
|
|
38
|
-
return this._client.post(`/simulations/ach_transfers/${achTransferId}/
|
|
33
|
+
return this._client.post(`/simulations/ach_transfers/${achTransferId}/create_notification_of_change`, {
|
|
39
34
|
body,
|
|
40
35
|
...options,
|
|
41
36
|
});
|
|
@@ -67,62 +62,7 @@ export class ACHTransfers extends APIResource {
|
|
|
67
62
|
}
|
|
68
63
|
}
|
|
69
64
|
|
|
70
|
-
export interface
|
|
71
|
-
/**
|
|
72
|
-
* The identifier of the Account Number the inbound ACH Transfer is for.
|
|
73
|
-
*/
|
|
74
|
-
account_number_id: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The transfer amount in cents. A positive amount originates a credit transfer
|
|
78
|
-
* pushing funds to the receiving account. A negative amount originates a debit
|
|
79
|
-
* transfer pulling funds from the receiving account.
|
|
80
|
-
*/
|
|
81
|
-
amount: number;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The description of the date of the transfer.
|
|
85
|
-
*/
|
|
86
|
-
company_descriptive_date?: string;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Data associated with the transfer set by the sender.
|
|
90
|
-
*/
|
|
91
|
-
company_discretionary_data?: string;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The description of the transfer set by the sender.
|
|
95
|
-
*/
|
|
96
|
-
company_entry_description?: string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The sender's company ID.
|
|
100
|
-
*/
|
|
101
|
-
company_id?: string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* The name of the sender.
|
|
105
|
-
*/
|
|
106
|
-
company_name?: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The ID of the receiver of the transfer.
|
|
110
|
-
*/
|
|
111
|
-
receiver_id_number?: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The name of the receiver of the transfer.
|
|
115
|
-
*/
|
|
116
|
-
receiver_name?: string;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* The time at which the transfer should be resolved. If not provided will resolve
|
|
120
|
-
* immediately.
|
|
121
|
-
*/
|
|
122
|
-
resolve_at?: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface ACHTransferNotificationOfChangeParams {
|
|
65
|
+
export interface ACHTransferCreateNotificationOfChangeParams {
|
|
126
66
|
/**
|
|
127
67
|
* The reason for the notification of change.
|
|
128
68
|
*
|
|
@@ -415,7 +355,6 @@ export interface ACHTransferReturnParams {
|
|
|
415
355
|
}
|
|
416
356
|
|
|
417
357
|
export namespace ACHTransfers {
|
|
418
|
-
export import
|
|
419
|
-
export import ACHTransferNotificationOfChangeParams = SimulationsACHTransfersAPI.ACHTransferNotificationOfChangeParams;
|
|
358
|
+
export import ACHTransferCreateNotificationOfChangeParams = SimulationsACHTransfersAPI.ACHTransferCreateNotificationOfChangeParams;
|
|
420
359
|
export import ACHTransferReturnParams = SimulationsACHTransfersAPI.ACHTransferReturnParams;
|
|
421
360
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardAuthorizationExpirationsAPI from './card-authorization-expirations';
|
|
6
|
+
import * as CardPaymentsAPI from '../card-payments';
|
|
7
|
+
|
|
8
|
+
export class CardAuthorizationExpirations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates expiring a card authorization immediately.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: CardAuthorizationExpirationCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
16
|
+
return this._client.post('/simulations/card_authorization_expirations', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CardAuthorizationExpirationCreateParams {
|
|
21
|
+
/**
|
|
22
|
+
* The identifier of the Card Payment to expire.
|
|
23
|
+
*/
|
|
24
|
+
card_payment_id: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace CardAuthorizationExpirations {
|
|
28
|
+
export import CardAuthorizationExpirationCreateParams = CardAuthorizationExpirationsAPI.CardAuthorizationExpirationCreateParams;
|
|
29
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardAuthorizationsAPI from './card-authorizations';
|
|
6
|
+
import * as DeclinedTransactionsAPI from '../declined-transactions';
|
|
7
|
+
import * as PendingTransactionsAPI from '../pending-transactions';
|
|
8
|
+
|
|
9
|
+
export class CardAuthorizations extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Simulates a purchase authorization on a [Card](#cards). Depending on the balance
|
|
12
|
+
* available to the card and the `amount` submitted, the authorization activity
|
|
13
|
+
* will result in a [Pending Transaction](#pending-transactions) of type
|
|
14
|
+
* `card_authorization` or a [Declined Transaction](#declined-transactions) of type
|
|
15
|
+
* `card_decline`. You can pass either a Card id or a
|
|
16
|
+
* [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different
|
|
17
|
+
* ways purchases can be made.
|
|
18
|
+
*/
|
|
19
|
+
create(
|
|
20
|
+
body: CardAuthorizationCreateParams,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<CardAuthorizationCreateResponse> {
|
|
23
|
+
return this._client.post('/simulations/card_authorizations', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The results of a Card Authorization simulation.
|
|
29
|
+
*/
|
|
30
|
+
export interface CardAuthorizationCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* If the authorization attempt fails, this will contain the resulting
|
|
33
|
+
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
34
|
+
* Transaction's `source` will be of `category: card_decline`.
|
|
35
|
+
*/
|
|
36
|
+
declined_transaction: DeclinedTransactionsAPI.DeclinedTransaction | null;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* If the authorization attempt succeeds, this will contain the resulting Pending
|
|
40
|
+
* Transaction object. The Pending Transaction's `source` will be of
|
|
41
|
+
* `category: card_authorization`.
|
|
42
|
+
*/
|
|
43
|
+
pending_transaction: PendingTransactionsAPI.PendingTransaction | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A constant representing the object's type. For this resource it will always be
|
|
47
|
+
* `inbound_card_authorization_simulation_result`.
|
|
48
|
+
*/
|
|
49
|
+
type: 'inbound_card_authorization_simulation_result';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface CardAuthorizationCreateParams {
|
|
53
|
+
/**
|
|
54
|
+
* The authorization amount in cents.
|
|
55
|
+
*/
|
|
56
|
+
amount: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The identifier of the Card to be authorized.
|
|
60
|
+
*/
|
|
61
|
+
card_id?: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The identifier of the Digital Wallet Token to be authorized.
|
|
65
|
+
*/
|
|
66
|
+
digital_wallet_token_id?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The identifier of the Event Subscription to use. If provided, will override the
|
|
70
|
+
* default real time event subscription. Because you can only create one real time
|
|
71
|
+
* decision event subscription, you can use this field to route events to any
|
|
72
|
+
* specified event subscription for testing purposes.
|
|
73
|
+
*/
|
|
74
|
+
event_subscription_id?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
78
|
+
* is transacting with.
|
|
79
|
+
*/
|
|
80
|
+
merchant_acceptor_id?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
84
|
+
* card is transacting with.
|
|
85
|
+
*/
|
|
86
|
+
merchant_category_code?: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The city the merchant resides in.
|
|
90
|
+
*/
|
|
91
|
+
merchant_city?: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The country the merchant resides in.
|
|
95
|
+
*/
|
|
96
|
+
merchant_country?: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
100
|
+
*/
|
|
101
|
+
merchant_descriptor?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The identifier of the Physical Card to be authorized.
|
|
105
|
+
*/
|
|
106
|
+
physical_card_id?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export namespace CardAuthorizations {
|
|
110
|
+
export import CardAuthorizationCreateResponse = CardAuthorizationsAPI.CardAuthorizationCreateResponse;
|
|
111
|
+
export import CardAuthorizationCreateParams = CardAuthorizationsAPI.CardAuthorizationCreateParams;
|
|
112
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardFuelConfirmationsAPI from './card-fuel-confirmations';
|
|
6
|
+
import * as CardPaymentsAPI from '../card-payments';
|
|
7
|
+
|
|
8
|
+
export class CardFuelConfirmations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates the fuel confirmation of an authorization by a card acquirer. This
|
|
11
|
+
* happens asynchronously right after a fuel pump transaction is completed. A fuel
|
|
12
|
+
* confirmation can only happen once per authorization.
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: CardFuelConfirmationCreateParams,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
18
|
+
return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface CardFuelConfirmationCreateParams {
|
|
23
|
+
/**
|
|
24
|
+
* The amount of the fuel_confirmation in minor units in the card authorization's
|
|
25
|
+
* currency.
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The identifier of the Card Payment to create a fuel_confirmation on.
|
|
31
|
+
*/
|
|
32
|
+
card_payment_id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace CardFuelConfirmations {
|
|
36
|
+
export import CardFuelConfirmationCreateParams = CardFuelConfirmationsAPI.CardFuelConfirmationCreateParams;
|
|
37
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardIncrementsAPI from './card-increments';
|
|
6
|
+
import * as CardPaymentsAPI from '../card-payments';
|
|
7
|
+
|
|
8
|
+
export class CardIncrements extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates the increment of an authorization by a card acquirer. An authorization
|
|
11
|
+
* can be incremented multiple times.
|
|
12
|
+
*/
|
|
13
|
+
create(
|
|
14
|
+
body: CardIncrementCreateParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
17
|
+
return this._client.post('/simulations/card_increments', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface CardIncrementCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* The amount of the increment in minor units in the card authorization's currency.
|
|
24
|
+
*/
|
|
25
|
+
amount: number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The identifier of the Card Payment to create a increment on.
|
|
29
|
+
*/
|
|
30
|
+
card_payment_id: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The identifier of the Event Subscription to use. If provided, will override the
|
|
34
|
+
* default real time event subscription. Because you can only create one real time
|
|
35
|
+
* decision event subscription, you can use this field to route events to any
|
|
36
|
+
* specified event subscription for testing purposes.
|
|
37
|
+
*/
|
|
38
|
+
event_subscription_id?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace CardIncrements {
|
|
42
|
+
export import CardIncrementCreateParams = CardIncrementsAPI.CardIncrementCreateParams;
|
|
43
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardReversalsAPI from './card-reversals';
|
|
6
|
+
import * as CardPaymentsAPI from '../card-payments';
|
|
7
|
+
|
|
8
|
+
export class CardReversals extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates the reversal of an authorization by a card acquirer. An authorization
|
|
11
|
+
* can be partially reversed multiple times, up until the total authorized amount.
|
|
12
|
+
* Marks the pending transaction as complete if the authorization is fully
|
|
13
|
+
* reversed.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
body: CardReversalCreateParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
19
|
+
return this._client.post('/simulations/card_reversals', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CardReversalCreateParams {
|
|
24
|
+
/**
|
|
25
|
+
* The identifier of the Card Payment to create a reversal on.
|
|
26
|
+
*/
|
|
27
|
+
card_payment_id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The amount of the reversal in minor units in the card authorization's currency.
|
|
31
|
+
* This defaults to the authorization amount.
|
|
32
|
+
*/
|
|
33
|
+
amount?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace CardReversals {
|
|
37
|
+
export import CardReversalCreateParams = CardReversalsAPI.CardReversalCreateParams;
|
|
38
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as CardSettlementsAPI from './card-settlements';
|
|
6
|
+
import * as TransactionsAPI from '../transactions';
|
|
7
|
+
|
|
8
|
+
export class CardSettlements extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates the settlement of an authorization by a card acquirer. After a card
|
|
11
|
+
* authorization is created, the merchant will eventually send a settlement. This
|
|
12
|
+
* simulates that event, which may occur many days after the purchase in
|
|
13
|
+
* production. The amount settled can be different from the amount originally
|
|
14
|
+
* authorized, for example, when adding a tip to a restaurant bill.
|
|
15
|
+
*/
|
|
16
|
+
create(
|
|
17
|
+
body: CardSettlementCreateParams,
|
|
18
|
+
options?: Core.RequestOptions,
|
|
19
|
+
): Core.APIPromise<TransactionsAPI.Transaction> {
|
|
20
|
+
return this._client.post('/simulations/card_settlements', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CardSettlementCreateParams {
|
|
25
|
+
/**
|
|
26
|
+
* The identifier of the Card to create a settlement on.
|
|
27
|
+
*/
|
|
28
|
+
card_id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Pending Transaction for the Card Authorization you wish to
|
|
32
|
+
* settle.
|
|
33
|
+
*/
|
|
34
|
+
pending_transaction_id: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The amount to be settled. This defaults to the amount of the Pending Transaction
|
|
38
|
+
* being settled.
|
|
39
|
+
*/
|
|
40
|
+
amount?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace CardSettlements {
|
|
44
|
+
export import CardSettlementCreateParams = CardSettlementsAPI.CardSettlementCreateParams;
|
|
45
|
+
}
|