increase 0.24.3 → 0.26.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 +26 -0
- package/index.d.mts +12 -5
- package/index.d.ts +12 -5
- package/index.d.ts.map +1 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ach-prenotifications.d.ts +7 -2
- 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 +7 -2
- 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/cards.d.ts +5 -2
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +2 -70
- 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/event-subscriptions.d.ts +18 -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 +10 -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 +1 -1
- package/resources/inbound-wire-transfers.d.ts +103 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -0
- package/resources/inbound-wire-transfers.js +17 -0
- package/resources/inbound-wire-transfers.js.map +1 -0
- package/resources/inbound-wire-transfers.mjs +13 -0
- package/resources/inbound-wire-transfers.mjs.map +1 -0
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/oauth-connections.d.ts +14 -13
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/oauth-connections.js +10 -10
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs +7 -7
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/oauth-tokens.d.ts +65 -0
- package/resources/oauth-tokens.d.ts.map +1 -0
- package/resources/oauth-tokens.js +17 -0
- package/resources/oauth-tokens.js.map +1 -0
- package/resources/oauth-tokens.mjs +13 -0
- package/resources/oauth-tokens.mjs.map +1 -0
- package/resources/physical-cards.d.ts +4 -0
- package/resources/physical-cards.d.ts.map +1 -1
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +13 -77
- 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 +2 -70
- 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 +10 -6
- 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 +12 -76
- 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 +10 -6
- 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 +10 -6
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/webhooks.d.ts +18 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +73 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +73 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts +40 -0
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +36 -0
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/index.ts +14 -5
- package/src/resources/ach-prenotifications.ts +7 -2
- package/src/resources/ach-transfers.ts +7 -2
- package/src/resources/cards.ts +6 -2
- package/src/resources/declined-transactions.ts +2 -86
- package/src/resources/event-subscriptions.ts +24 -0
- package/src/resources/events.ts +16 -0
- package/src/resources/inbound-ach-transfers.ts +1 -1
- package/src/resources/inbound-wire-transfers.ts +131 -0
- package/src/resources/index.ts +6 -4
- package/src/resources/oauth-connections.ts +18 -17
- package/src/resources/oauth-tokens.ts +78 -0
- package/src/resources/physical-cards.ts +5 -0
- package/src/resources/simulations/ach-transfers.ts +14 -93
- package/src/resources/simulations/cards.ts +2 -86
- package/src/resources/simulations/interest-payments.ts +11 -6
- package/src/resources/simulations/real-time-payments-transfers.ts +13 -92
- package/src/resources/simulations/wire-transfers.ts +11 -6
- package/src/resources/transactions.ts +11 -6
- package/src/resources/webhooks.ts +107 -1
- package/src/resources/wire-drawdown-requests.ts +48 -0
- package/src/resources/wire-transfers.ts +44 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -331,7 +331,8 @@ export namespace ACHTransfer {
|
|
|
331
331
|
* - `incorrect_routing_number` - The routing number was incorrect.
|
|
332
332
|
* - `incorrect_routing_number_and_account_number` - Both the routing number and
|
|
333
333
|
* the account number were incorrect.
|
|
334
|
-
* - `incorrect_transaction_code` - The transaction code was incorrect.
|
|
334
|
+
* - `incorrect_transaction_code` - The transaction code was incorrect. Try
|
|
335
|
+
* changing the `funding` parameter from checking to savings or vice-versa.
|
|
335
336
|
* - `incorrect_account_number_and_transaction_code` - The account number and the
|
|
336
337
|
* transaction code were incorrect.
|
|
337
338
|
* - `incorrect_routing_number_account_number_and_transaction_code` - The routing
|
|
@@ -383,7 +384,11 @@ export namespace ACHTransfer {
|
|
|
383
384
|
| 'incorrect_transaction_code_by_originating_depository_financial_institution';
|
|
384
385
|
|
|
385
386
|
/**
|
|
386
|
-
* The corrected data that should be used in future ACHs to this account.
|
|
387
|
+
* The corrected data that should be used in future ACHs to this account. This may
|
|
388
|
+
* contain the suggested new account number or routing number. When the
|
|
389
|
+
* `change_code` is `incorrect_transaction_code`, this field contains an integer.
|
|
390
|
+
* Numbers starting with a 2 encourage changing the `funding` parameter to
|
|
391
|
+
* checking; numbers starting with a 3 encourage changing to savings.
|
|
387
392
|
*/
|
|
388
393
|
corrected_data: string;
|
|
389
394
|
|
package/src/resources/cards.ts
CHANGED
|
@@ -296,11 +296,15 @@ export namespace CardCreateParams {
|
|
|
296
296
|
*/
|
|
297
297
|
export interface DigitalWallet {
|
|
298
298
|
/**
|
|
299
|
-
* The card profile assigned to this digital card.
|
|
300
|
-
* assigned at the program level.
|
|
299
|
+
* The card profile assigned to this digital card.
|
|
301
300
|
*/
|
|
302
301
|
card_profile_id?: string;
|
|
303
302
|
|
|
303
|
+
/**
|
|
304
|
+
* The digital card profile assigned to this digital card.
|
|
305
|
+
*/
|
|
306
|
+
digital_card_profile_id?: string;
|
|
307
|
+
|
|
304
308
|
/**
|
|
305
309
|
* An email address that can be used to verify the cardholder via one-time passcode
|
|
306
310
|
* over email.
|
|
@@ -1098,93 +1098,9 @@ export namespace DeclinedTransaction {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
export interface WireDecline {
|
|
1100
1100
|
/**
|
|
1101
|
-
* The
|
|
1102
|
-
* dollars, for example, this is cents.
|
|
1103
|
-
*/
|
|
1104
|
-
amount: number;
|
|
1105
|
-
|
|
1106
|
-
/**
|
|
1107
|
-
* A free-form address field set by the sender.
|
|
1108
|
-
*/
|
|
1109
|
-
beneficiary_address_line1: string | null;
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* A free-form address field set by the sender.
|
|
1113
|
-
*/
|
|
1114
|
-
beneficiary_address_line2: string | null;
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* A free-form address field set by the sender.
|
|
1118
|
-
*/
|
|
1119
|
-
beneficiary_address_line3: string | null;
|
|
1120
|
-
|
|
1121
|
-
/**
|
|
1122
|
-
* A name set by the sender.
|
|
1123
|
-
*/
|
|
1124
|
-
beneficiary_name: string | null;
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* A free-form reference string set by the sender, to help identify the transfer.
|
|
1128
|
-
*/
|
|
1129
|
-
beneficiary_reference: string | null;
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* An Increase-constructed description of the declined transaction.
|
|
1133
|
-
*/
|
|
1134
|
-
description: string;
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* A unique identifier available to the originating and receiving banks, commonly
|
|
1138
|
-
* abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
|
|
1139
|
-
* service and is helpful when debugging wires with the originating bank.
|
|
1140
|
-
*/
|
|
1141
|
-
input_message_accountability_data: string | null;
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* The address of the wire originator, set by the sending bank.
|
|
1145
|
-
*/
|
|
1146
|
-
originator_address_line1: string | null;
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* The address of the wire originator, set by the sending bank.
|
|
1150
|
-
*/
|
|
1151
|
-
originator_address_line2: string | null;
|
|
1152
|
-
|
|
1153
|
-
/**
|
|
1154
|
-
* The address of the wire originator, set by the sending bank.
|
|
1155
|
-
*/
|
|
1156
|
-
originator_address_line3: string | null;
|
|
1157
|
-
|
|
1158
|
-
/**
|
|
1159
|
-
* The originator of the wire, set by the sending bank.
|
|
1160
|
-
*/
|
|
1161
|
-
originator_name: string | null;
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
* The American Banking Association (ABA) routing number of the bank originating
|
|
1165
|
-
* the transfer.
|
|
1166
|
-
*/
|
|
1167
|
-
originator_routing_number: string | null;
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* A free-form message set by the wire originator.
|
|
1171
|
-
*/
|
|
1172
|
-
originator_to_beneficiary_information_line1: string | null;
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
* A free-form message set by the wire originator.
|
|
1176
|
-
*/
|
|
1177
|
-
originator_to_beneficiary_information_line2: string | null;
|
|
1178
|
-
|
|
1179
|
-
/**
|
|
1180
|
-
* A free-form message set by the wire originator.
|
|
1181
|
-
*/
|
|
1182
|
-
originator_to_beneficiary_information_line3: string | null;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* A free-form message set by the wire originator.
|
|
1101
|
+
* The identifier of the Inbound Wire Transfer that was declined.
|
|
1186
1102
|
*/
|
|
1187
|
-
|
|
1103
|
+
inbound_wire_transfer_id: string;
|
|
1188
1104
|
|
|
1189
1105
|
/**
|
|
1190
1106
|
* Why the wire transfer was declined.
|
|
@@ -112,6 +112,10 @@ export interface EventSubscription {
|
|
|
112
112
|
* - `check_transfer.updated` - Occurs whenever a Check Transfer is updated.
|
|
113
113
|
* - `declined_transaction.created` - Occurs whenever a Declined Transaction is
|
|
114
114
|
* created.
|
|
115
|
+
* - `digital_card_profile.created` - Occurs whenever a Digital Card Profile is
|
|
116
|
+
* created.
|
|
117
|
+
* - `digital_card_profile.updated` - Occurs whenever a Digital Card Profile is
|
|
118
|
+
* updated.
|
|
115
119
|
* - `digital_wallet_token.created` - Occurs whenever a Digital Wallet Token is
|
|
116
120
|
* created.
|
|
117
121
|
* - `digital_wallet_token.updated` - Occurs whenever a Digital Wallet Token is
|
|
@@ -156,6 +160,10 @@ export interface EventSubscription {
|
|
|
156
160
|
* updated.
|
|
157
161
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
158
162
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
163
|
+
* - `physical_card_profile.created` - Occurs whenever a Physical Card Profile is
|
|
164
|
+
* created.
|
|
165
|
+
* - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is
|
|
166
|
+
* updated.
|
|
159
167
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
160
168
|
* Authorization Request is created.
|
|
161
169
|
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
@@ -216,6 +224,8 @@ export interface EventSubscription {
|
|
|
216
224
|
| 'check_transfer.created'
|
|
217
225
|
| 'check_transfer.updated'
|
|
218
226
|
| 'declined_transaction.created'
|
|
227
|
+
| 'digital_card_profile.created'
|
|
228
|
+
| 'digital_card_profile.updated'
|
|
219
229
|
| 'digital_wallet_token.created'
|
|
220
230
|
| 'digital_wallet_token.updated'
|
|
221
231
|
| 'document.created'
|
|
@@ -245,6 +255,8 @@ export interface EventSubscription {
|
|
|
245
255
|
| 'pending_transaction.updated'
|
|
246
256
|
| 'physical_card.created'
|
|
247
257
|
| 'physical_card.updated'
|
|
258
|
+
| 'physical_card_profile.created'
|
|
259
|
+
| 'physical_card_profile.updated'
|
|
248
260
|
| 'proof_of_authorization_request.created'
|
|
249
261
|
| 'proof_of_authorization_request.updated'
|
|
250
262
|
| 'proof_of_authorization_request_submission.created'
|
|
@@ -331,6 +343,10 @@ export interface EventSubscriptionCreateParams {
|
|
|
331
343
|
* - `check_transfer.updated` - Occurs whenever a Check Transfer is updated.
|
|
332
344
|
* - `declined_transaction.created` - Occurs whenever a Declined Transaction is
|
|
333
345
|
* created.
|
|
346
|
+
* - `digital_card_profile.created` - Occurs whenever a Digital Card Profile is
|
|
347
|
+
* created.
|
|
348
|
+
* - `digital_card_profile.updated` - Occurs whenever a Digital Card Profile is
|
|
349
|
+
* updated.
|
|
334
350
|
* - `digital_wallet_token.created` - Occurs whenever a Digital Wallet Token is
|
|
335
351
|
* created.
|
|
336
352
|
* - `digital_wallet_token.updated` - Occurs whenever a Digital Wallet Token is
|
|
@@ -375,6 +391,10 @@ export interface EventSubscriptionCreateParams {
|
|
|
375
391
|
* updated.
|
|
376
392
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
377
393
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
394
|
+
* - `physical_card_profile.created` - Occurs whenever a Physical Card Profile is
|
|
395
|
+
* created.
|
|
396
|
+
* - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is
|
|
397
|
+
* updated.
|
|
378
398
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
379
399
|
* Authorization Request is created.
|
|
380
400
|
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
@@ -435,6 +455,8 @@ export interface EventSubscriptionCreateParams {
|
|
|
435
455
|
| 'check_transfer.created'
|
|
436
456
|
| 'check_transfer.updated'
|
|
437
457
|
| 'declined_transaction.created'
|
|
458
|
+
| 'digital_card_profile.created'
|
|
459
|
+
| 'digital_card_profile.updated'
|
|
438
460
|
| 'digital_wallet_token.created'
|
|
439
461
|
| 'digital_wallet_token.updated'
|
|
440
462
|
| 'document.created'
|
|
@@ -464,6 +486,8 @@ export interface EventSubscriptionCreateParams {
|
|
|
464
486
|
| 'pending_transaction.updated'
|
|
465
487
|
| 'physical_card.created'
|
|
466
488
|
| 'physical_card.updated'
|
|
489
|
+
| 'physical_card_profile.created'
|
|
490
|
+
| 'physical_card_profile.updated'
|
|
467
491
|
| 'proof_of_authorization_request.created'
|
|
468
492
|
| 'proof_of_authorization_request.updated'
|
|
469
493
|
| 'proof_of_authorization_request_submission.created'
|
package/src/resources/events.ts
CHANGED
|
@@ -91,6 +91,10 @@ export interface Event {
|
|
|
91
91
|
* - `check_transfer.updated` - Occurs whenever a Check Transfer is updated.
|
|
92
92
|
* - `declined_transaction.created` - Occurs whenever a Declined Transaction is
|
|
93
93
|
* created.
|
|
94
|
+
* - `digital_card_profile.created` - Occurs whenever a Digital Card Profile is
|
|
95
|
+
* created.
|
|
96
|
+
* - `digital_card_profile.updated` - Occurs whenever a Digital Card Profile is
|
|
97
|
+
* updated.
|
|
94
98
|
* - `digital_wallet_token.created` - Occurs whenever a Digital Wallet Token is
|
|
95
99
|
* created.
|
|
96
100
|
* - `digital_wallet_token.updated` - Occurs whenever a Digital Wallet Token is
|
|
@@ -135,6 +139,10 @@ export interface Event {
|
|
|
135
139
|
* updated.
|
|
136
140
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
137
141
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
142
|
+
* - `physical_card_profile.created` - Occurs whenever a Physical Card Profile is
|
|
143
|
+
* created.
|
|
144
|
+
* - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is
|
|
145
|
+
* updated.
|
|
138
146
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
139
147
|
* Authorization Request is created.
|
|
140
148
|
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
@@ -195,6 +203,8 @@ export interface Event {
|
|
|
195
203
|
| 'check_transfer.created'
|
|
196
204
|
| 'check_transfer.updated'
|
|
197
205
|
| 'declined_transaction.created'
|
|
206
|
+
| 'digital_card_profile.created'
|
|
207
|
+
| 'digital_card_profile.updated'
|
|
198
208
|
| 'digital_wallet_token.created'
|
|
199
209
|
| 'digital_wallet_token.updated'
|
|
200
210
|
| 'document.created'
|
|
@@ -224,6 +234,8 @@ export interface Event {
|
|
|
224
234
|
| 'pending_transaction.updated'
|
|
225
235
|
| 'physical_card.created'
|
|
226
236
|
| 'physical_card.updated'
|
|
237
|
+
| 'physical_card_profile.created'
|
|
238
|
+
| 'physical_card_profile.updated'
|
|
227
239
|
| 'proof_of_authorization_request.created'
|
|
228
240
|
| 'proof_of_authorization_request.updated'
|
|
229
241
|
| 'proof_of_authorization_request_submission.created'
|
|
@@ -299,6 +311,8 @@ export namespace EventListParams {
|
|
|
299
311
|
| 'check_transfer.created'
|
|
300
312
|
| 'check_transfer.updated'
|
|
301
313
|
| 'declined_transaction.created'
|
|
314
|
+
| 'digital_card_profile.created'
|
|
315
|
+
| 'digital_card_profile.updated'
|
|
302
316
|
| 'digital_wallet_token.created'
|
|
303
317
|
| 'digital_wallet_token.updated'
|
|
304
318
|
| 'document.created'
|
|
@@ -328,6 +342,8 @@ export namespace EventListParams {
|
|
|
328
342
|
| 'pending_transaction.updated'
|
|
329
343
|
| 'physical_card.created'
|
|
330
344
|
| 'physical_card.updated'
|
|
345
|
+
| 'physical_card_profile.created'
|
|
346
|
+
| 'physical_card_profile.updated'
|
|
331
347
|
| 'proof_of_authorization_request.created'
|
|
332
348
|
| 'proof_of_authorization_request.updated'
|
|
333
349
|
| 'proof_of_authorization_request_submission.created'
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import * as InboundWireTransfersAPI from "./inbound-wire-transfers";
|
|
6
|
+
|
|
7
|
+
export class InboundWireTransfers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve an Inbound Wire Transfer
|
|
10
|
+
*/
|
|
11
|
+
retrieve(
|
|
12
|
+
inboundWireTransferId: string,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Core.APIPromise<InboundWireTransfer> {
|
|
15
|
+
return this._client.get(`/inbound_wire_transfers/${inboundWireTransferId}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An Inbound Wire Transfer is a wire transfer initiated outside of Increase to
|
|
21
|
+
* your account.
|
|
22
|
+
*/
|
|
23
|
+
export interface InboundWireTransfer {
|
|
24
|
+
/**
|
|
25
|
+
* The inbound wire transfer's identifier.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The amount in USD cents.
|
|
31
|
+
*/
|
|
32
|
+
amount: number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A free-form address field set by the sender.
|
|
36
|
+
*/
|
|
37
|
+
beneficiary_address_line1: string | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A free-form address field set by the sender.
|
|
41
|
+
*/
|
|
42
|
+
beneficiary_address_line2: string | null;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A free-form address field set by the sender.
|
|
46
|
+
*/
|
|
47
|
+
beneficiary_address_line3: string | null;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A name set by the sender.
|
|
51
|
+
*/
|
|
52
|
+
beneficiary_name: string | null;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A free-form reference string set by the sender, to help identify the transfer.
|
|
56
|
+
*/
|
|
57
|
+
beneficiary_reference: string | null;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* An Increase-constructed description of the transfer.
|
|
61
|
+
*/
|
|
62
|
+
description: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A unique identifier available to the originating and receiving banks, commonly
|
|
66
|
+
* abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
|
|
67
|
+
* service and is helpful when debugging wires with the originating bank.
|
|
68
|
+
*/
|
|
69
|
+
input_message_accountability_data: string | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The address of the wire originator, set by the sending bank.
|
|
73
|
+
*/
|
|
74
|
+
originator_address_line1: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The address of the wire originator, set by the sending bank.
|
|
78
|
+
*/
|
|
79
|
+
originator_address_line2: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The address of the wire originator, set by the sending bank.
|
|
83
|
+
*/
|
|
84
|
+
originator_address_line3: string | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The originator of the wire, set by the sending bank.
|
|
88
|
+
*/
|
|
89
|
+
originator_name: string | null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
93
|
+
* the transfer.
|
|
94
|
+
*/
|
|
95
|
+
originator_routing_number: string | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* An Increase-created concatenation of the Originator-to-Beneficiary lines.
|
|
99
|
+
*/
|
|
100
|
+
originator_to_beneficiary_information: string | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A free-form message set by the wire originator.
|
|
104
|
+
*/
|
|
105
|
+
originator_to_beneficiary_information_line1: string | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* A free-form message set by the wire originator.
|
|
109
|
+
*/
|
|
110
|
+
originator_to_beneficiary_information_line2: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* A free-form message set by the wire originator.
|
|
114
|
+
*/
|
|
115
|
+
originator_to_beneficiary_information_line3: string | null;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* A free-form message set by the wire originator.
|
|
119
|
+
*/
|
|
120
|
+
originator_to_beneficiary_information_line4: string | null;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A constant representing the object's type. For this resource it will always be
|
|
124
|
+
* `inbound_wire_transfer`.
|
|
125
|
+
*/
|
|
126
|
+
type: 'inbound_wire_transfer';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace InboundWireTransfers {
|
|
130
|
+
export import InboundWireTransfer = InboundWireTransfersAPI.InboundWireTransfer;
|
|
131
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -168,13 +168,15 @@ export {
|
|
|
168
168
|
InboundWireDrawdownRequestsPage,
|
|
169
169
|
InboundWireDrawdownRequests,
|
|
170
170
|
} from './inbound-wire-drawdown-requests';
|
|
171
|
+
export { InboundWireTransfer, InboundWireTransfers } from './inbound-wire-transfers';
|
|
171
172
|
export { Intrafi } from './intrafi/intrafi';
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
OAuthConnection,
|
|
175
|
+
OAuthConnectionListParams,
|
|
176
|
+
OAuthConnectionsPage,
|
|
177
|
+
OAuthConnections,
|
|
177
178
|
} from './oauth-connections';
|
|
179
|
+
export { OAuthToken, OAuthTokenCreateParams, OAuthTokens } from './oauth-tokens';
|
|
178
180
|
export {
|
|
179
181
|
PendingTransaction,
|
|
180
182
|
PendingTransactionListParams,
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
5
5
|
import { isRequestOptions } from "../core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as OAuthConnectionsAPI from "./oauth-connections";
|
|
7
7
|
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
|
-
export class
|
|
9
|
+
export class OAuthConnections extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Retrieve an OAuth Connection
|
|
12
12
|
*/
|
|
13
|
-
retrieve(oauthConnectionId: string, options?: Core.RequestOptions): Core.APIPromise<
|
|
13
|
+
retrieve(oauthConnectionId: string, options?: Core.RequestOptions): Core.APIPromise<OAuthConnection> {
|
|
14
14
|
return this._client.get(`/oauth_connections/${oauthConnectionId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,28 +18,29 @@ export class OauthConnections extends APIResource {
|
|
|
18
18
|
* List OAuth Connections
|
|
19
19
|
*/
|
|
20
20
|
list(
|
|
21
|
-
query?:
|
|
21
|
+
query?: OAuthConnectionListParams,
|
|
22
22
|
options?: Core.RequestOptions,
|
|
23
|
-
): Core.PagePromise<
|
|
24
|
-
list(options?: Core.RequestOptions): Core.PagePromise<
|
|
23
|
+
): Core.PagePromise<OAuthConnectionsPage, OAuthConnection>;
|
|
24
|
+
list(options?: Core.RequestOptions): Core.PagePromise<OAuthConnectionsPage, OAuthConnection>;
|
|
25
25
|
list(
|
|
26
|
-
query:
|
|
26
|
+
query: OAuthConnectionListParams | Core.RequestOptions = {},
|
|
27
27
|
options?: Core.RequestOptions,
|
|
28
|
-
): Core.PagePromise<
|
|
28
|
+
): Core.PagePromise<OAuthConnectionsPage, OAuthConnection> {
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this._client.getAPIList('/oauth_connections',
|
|
32
|
+
return this._client.getAPIList('/oauth_connections', OAuthConnectionsPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export class
|
|
36
|
+
export class OAuthConnectionsPage extends Page<OAuthConnection> {}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* When a user authorizes your OAuth application, an OAuth Connection object is
|
|
40
|
-
* created.
|
|
40
|
+
* created. Learn more about OAuth
|
|
41
|
+
* [here](https://increase.com/documentation/oauth).
|
|
41
42
|
*/
|
|
42
|
-
export interface
|
|
43
|
+
export interface OAuthConnection {
|
|
43
44
|
/**
|
|
44
45
|
* The OAuth Connection's identifier.
|
|
45
46
|
*/
|
|
@@ -71,10 +72,10 @@ export interface OauthConnection {
|
|
|
71
72
|
type: 'oauth_connection';
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
export interface
|
|
75
|
+
export interface OAuthConnectionListParams extends PageParams {}
|
|
75
76
|
|
|
76
|
-
export namespace
|
|
77
|
-
export import
|
|
78
|
-
export import
|
|
79
|
-
export import
|
|
77
|
+
export namespace OAuthConnections {
|
|
78
|
+
export import OAuthConnection = OAuthConnectionsAPI.OAuthConnection;
|
|
79
|
+
export import OAuthConnectionsPage = OAuthConnectionsAPI.OAuthConnectionsPage;
|
|
80
|
+
export import OAuthConnectionListParams = OAuthConnectionsAPI.OAuthConnectionListParams;
|
|
80
81
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import * as OAuthTokensAPI from "./oauth-tokens";
|
|
6
|
+
|
|
7
|
+
export class OAuthTokens extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create an OAuth Token
|
|
10
|
+
*/
|
|
11
|
+
create(body: OAuthTokenCreateParams, options?: Core.RequestOptions): Core.APIPromise<OAuthToken> {
|
|
12
|
+
return this._client.post('/oauth/tokens', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A token that is returned to your application when a user completes the OAuth
|
|
18
|
+
* flow and may be used to authenticate requests. Learn more about OAuth
|
|
19
|
+
* [here](/documentation/oauth).
|
|
20
|
+
*/
|
|
21
|
+
export interface OAuthToken {
|
|
22
|
+
/**
|
|
23
|
+
* You may use this token in place of an API key to make OAuth requests on a user's
|
|
24
|
+
* behalf.
|
|
25
|
+
*/
|
|
26
|
+
access_token: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The type of OAuth token.
|
|
30
|
+
*/
|
|
31
|
+
token_type: 'bearer';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A constant representing the object's type. For this resource it will always be
|
|
35
|
+
* `oauth_token`.
|
|
36
|
+
*/
|
|
37
|
+
type: 'oauth_token';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface OAuthTokenCreateParams {
|
|
41
|
+
/**
|
|
42
|
+
* The credential you request in exchange for the code.
|
|
43
|
+
*
|
|
44
|
+
* - `authorization_code` - An OAuth authorization code.
|
|
45
|
+
* - `production_token` - An OAuth production token.
|
|
46
|
+
*/
|
|
47
|
+
grant_type: 'authorization_code' | 'production_token';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The public identifier for your application.
|
|
51
|
+
*/
|
|
52
|
+
client_id?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The secret that confirms you own the application. This is redundent given that
|
|
56
|
+
* the request is made with your API key but it's a required component of OAuth
|
|
57
|
+
* 2.0.
|
|
58
|
+
*/
|
|
59
|
+
client_secret?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The authorization code generated by the user and given to you as a query
|
|
63
|
+
* parameter.
|
|
64
|
+
*/
|
|
65
|
+
code?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The production token you want to exchange for a sandbox token. This is only
|
|
69
|
+
* available in Sandbox. Set `grant_type` to `production_token` to use this
|
|
70
|
+
* parameter.
|
|
71
|
+
*/
|
|
72
|
+
production_token?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export namespace OAuthTokens {
|
|
76
|
+
export import OAuthToken = OAuthTokensAPI.OAuthToken;
|
|
77
|
+
export import OAuthTokenCreateParams = OAuthTokensAPI.OAuthTokenCreateParams;
|
|
78
|
+
}
|
|
@@ -255,6 +255,11 @@ export interface PhysicalCardCreateParams {
|
|
|
255
255
|
* The details used to ship this physical card.
|
|
256
256
|
*/
|
|
257
257
|
shipment: PhysicalCardCreateParams.Shipment;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The physical card profile to use for this physical card.
|
|
261
|
+
*/
|
|
262
|
+
physical_card_profile_id?: string;
|
|
258
263
|
}
|
|
259
264
|
|
|
260
265
|
export namespace PhysicalCardCreateParams {
|