increase 0.26.0 → 0.28.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 +21 -0
- package/core.d.ts +5 -0
- package/core.d.ts.map +1 -1
- package/core.js +10 -1
- package/core.js.map +1 -1
- package/core.mjs +8 -0
- package/core.mjs.map +1 -1
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-numbers.d.ts +14 -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/account-transfers.d.ts +5 -5
- package/resources/ach-transfers.d.ts +5 -5
- package/resources/check-transfers.d.ts +2 -2
- package/resources/event-subscriptions.d.ts +10 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.ts +6 -2
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +4 -0
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +69 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js +40 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs +15 -0
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/oauth-tokens.d.ts +2 -1
- package/resources/oauth-tokens.d.ts.map +1 -1
- package/resources/oauth-tokens.js.map +1 -1
- package/resources/oauth-tokens.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +3 -1
- 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/real-time-payments-transfers.d.ts +2 -2
- package/resources/simulations/ach-transfers.d.ts +2 -3849
- 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/index.d.ts +2 -2
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -1
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +3 -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 +3 -1
- 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/simulations.d.ts +0 -2
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +2 -2745
- 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 +4 -2
- 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 +2 -2
- package/src/core.ts +11 -0
- package/src/index.ts +2 -0
- package/src/resources/account-numbers.ts +17 -0
- package/src/resources/account-transfers.ts +5 -5
- package/src/resources/ach-transfers.ts +5 -5
- package/src/resources/check-transfers.ts +2 -2
- package/src/resources/event-subscriptions.ts +12 -0
- package/src/resources/events.ts +8 -0
- package/src/resources/inbound-ach-transfers.ts +5 -0
- package/src/resources/inbound-wire-transfers.ts +96 -0
- package/src/resources/index.ts +6 -1
- package/src/resources/oauth-tokens.ts +2 -1
- package/src/resources/real-time-decisions.ts +3 -1
- package/src/resources/real-time-payments-transfers.ts +2 -2
- package/src/resources/simulations/ach-transfers.ts +2 -4849
- package/src/resources/simulations/index.ts +2 -7
- package/src/resources/simulations/interest-payments.ts +3 -0
- package/src/resources/simulations/real-time-payments-transfers.ts +3 -0
- package/src/resources/simulations/simulations.ts +0 -2
- package/src/resources/simulations/wire-transfers.ts +2 -3452
- package/src/resources/transactions.ts +4 -0
- package/src/resources/wire-transfers.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
5
6
|
import * as InboundWireTransfersAPI from "./inbound-wire-transfers";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
6
8
|
|
|
7
9
|
export class InboundWireTransfers extends APIResource {
|
|
8
10
|
/**
|
|
@@ -14,8 +16,31 @@ export class InboundWireTransfers extends APIResource {
|
|
|
14
16
|
): Core.APIPromise<InboundWireTransfer> {
|
|
15
17
|
return this._client.get(`/inbound_wire_transfers/${inboundWireTransferId}`, options);
|
|
16
18
|
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* List Inbound Wire Transfers
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
query?: InboundWireTransferListParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer>;
|
|
27
|
+
list(options?: Core.RequestOptions): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer>;
|
|
28
|
+
list(
|
|
29
|
+
query: InboundWireTransferListParams | Core.RequestOptions = {},
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer> {
|
|
32
|
+
if (isRequestOptions(query)) {
|
|
33
|
+
return this.list({}, query);
|
|
34
|
+
}
|
|
35
|
+
return this._client.getAPIList('/inbound_wire_transfers', InboundWireTransfersPage, {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
17
40
|
}
|
|
18
41
|
|
|
42
|
+
export class InboundWireTransfersPage extends Page<InboundWireTransfer> {}
|
|
43
|
+
|
|
19
44
|
/**
|
|
20
45
|
* An Inbound Wire Transfer is a wire transfer initiated outside of Increase to
|
|
21
46
|
* your account.
|
|
@@ -26,6 +51,16 @@ export interface InboundWireTransfer {
|
|
|
26
51
|
*/
|
|
27
52
|
id: string;
|
|
28
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The Account to which the transfer belongs.
|
|
56
|
+
*/
|
|
57
|
+
account_id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The identifier of the Account Number to which this transfer was sent.
|
|
61
|
+
*/
|
|
62
|
+
account_number_id: string;
|
|
63
|
+
|
|
29
64
|
/**
|
|
30
65
|
* The amount in USD cents.
|
|
31
66
|
*/
|
|
@@ -119,6 +154,17 @@ export interface InboundWireTransfer {
|
|
|
119
154
|
*/
|
|
120
155
|
originator_to_beneficiary_information_line4: string | null;
|
|
121
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The status of the transfer.
|
|
159
|
+
*
|
|
160
|
+
* - `pending` - The Inbound Wire Transfer is awaiting action, will transition
|
|
161
|
+
* automatically if no action is taken.
|
|
162
|
+
* - `accepted` - The Inbound Wire Transfer is accepted.
|
|
163
|
+
* - `declined` - The Inbound Wire Transfer was declined.
|
|
164
|
+
* - `reversed` - The Inbound Wire Transfer was reversed.
|
|
165
|
+
*/
|
|
166
|
+
status: 'pending' | 'accepted' | 'declined' | 'reversed';
|
|
167
|
+
|
|
122
168
|
/**
|
|
123
169
|
* A constant representing the object's type. For this resource it will always be
|
|
124
170
|
* `inbound_wire_transfer`.
|
|
@@ -126,6 +172,56 @@ export interface InboundWireTransfer {
|
|
|
126
172
|
type: 'inbound_wire_transfer';
|
|
127
173
|
}
|
|
128
174
|
|
|
175
|
+
export interface InboundWireTransferListParams extends PageParams {
|
|
176
|
+
/**
|
|
177
|
+
* Filter Inbound Wire Tranfers to ones belonging to the specified Account.
|
|
178
|
+
*/
|
|
179
|
+
account_id?: string;
|
|
180
|
+
|
|
181
|
+
created_at?: InboundWireTransferListParams.CreatedAt;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Filter Inbound Wire Transfers to those with the specified status.
|
|
185
|
+
*
|
|
186
|
+
* - `pending` - The Inbound Wire Transfer is awaiting action, will transition
|
|
187
|
+
* automatically if no action is taken.
|
|
188
|
+
* - `accepted` - The Inbound Wire Transfer is accepted.
|
|
189
|
+
* - `declined` - The Inbound Wire Transfer was declined.
|
|
190
|
+
* - `reversed` - The Inbound Wire Transfer was reversed.
|
|
191
|
+
*/
|
|
192
|
+
status?: 'pending' | 'accepted' | 'declined' | 'reversed';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export namespace InboundWireTransferListParams {
|
|
196
|
+
export interface CreatedAt {
|
|
197
|
+
/**
|
|
198
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
199
|
+
* timestamp.
|
|
200
|
+
*/
|
|
201
|
+
after?: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
205
|
+
* timestamp.
|
|
206
|
+
*/
|
|
207
|
+
before?: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Return results on or after this
|
|
211
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
212
|
+
*/
|
|
213
|
+
on_or_after?: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Return results on or before this
|
|
217
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
218
|
+
*/
|
|
219
|
+
on_or_before?: string;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
129
223
|
export namespace InboundWireTransfers {
|
|
130
224
|
export import InboundWireTransfer = InboundWireTransfersAPI.InboundWireTransfer;
|
|
225
|
+
export import InboundWireTransfersPage = InboundWireTransfersAPI.InboundWireTransfersPage;
|
|
226
|
+
export import InboundWireTransferListParams = InboundWireTransfersAPI.InboundWireTransferListParams;
|
|
131
227
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -168,7 +168,12 @@ export {
|
|
|
168
168
|
InboundWireDrawdownRequestsPage,
|
|
169
169
|
InboundWireDrawdownRequests,
|
|
170
170
|
} from './inbound-wire-drawdown-requests';
|
|
171
|
-
export {
|
|
171
|
+
export {
|
|
172
|
+
InboundWireTransfer,
|
|
173
|
+
InboundWireTransferListParams,
|
|
174
|
+
InboundWireTransfersPage,
|
|
175
|
+
InboundWireTransfers,
|
|
176
|
+
} from './inbound-wire-transfers';
|
|
172
177
|
export { Intrafi } from './intrafi/intrafi';
|
|
173
178
|
export {
|
|
174
179
|
OAuthConnection,
|
|
@@ -39,7 +39,8 @@ export interface OAuthToken {
|
|
|
39
39
|
|
|
40
40
|
export interface OAuthTokenCreateParams {
|
|
41
41
|
/**
|
|
42
|
-
* The credential you request in exchange for the code.
|
|
42
|
+
* The credential you request in exchange for the code. In Production, this is
|
|
43
|
+
* always `authorization_code`. In Sandbox, you can pass either enum value.
|
|
43
44
|
*
|
|
44
45
|
* - `authorization_code` - An OAuth authorization code.
|
|
45
46
|
* - `production_token` - An OAuth production token.
|
|
@@ -26,7 +26,9 @@ export class RealTimeDecisions extends APIResource {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Real Time Decisions are created when your application needs to take action in
|
|
29
|
-
* real-time to some event such as a card authorization.
|
|
29
|
+
* real-time to some event such as a card authorization. For more information, see
|
|
30
|
+
* our
|
|
31
|
+
* [Real-Time Decisions guide](https://increase.com/documentation/real-time-decisions).
|
|
30
32
|
*/
|
|
31
33
|
export interface RealTimeDecision {
|
|
32
34
|
/**
|
|
@@ -206,7 +206,7 @@ export interface RealTimePaymentsTransfer {
|
|
|
206
206
|
ultimate_debtor_name: string | null;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* The unique identifier you chose for this
|
|
209
|
+
* The unique identifier you chose for this object.
|
|
210
210
|
*/
|
|
211
211
|
unique_identifier: string | null;
|
|
212
212
|
}
|
|
@@ -444,7 +444,7 @@ export interface RealTimePaymentsTransferListParams extends PageParams {
|
|
|
444
444
|
external_account_id?: string;
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
|
-
* Filter
|
|
447
|
+
* Filter records to the one with the specified `unique_identifier`.
|
|
448
448
|
*/
|
|
449
449
|
unique_identifier?: string;
|
|
450
450
|
}
|