increase 0.10.3 → 0.10.4
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 +4 -0
- package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
- package/_shims/ReadableStream-node.d.ts.map +1 -0
- package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
- package/_shims/ReadableStream-node.js.map +1 -0
- package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
- package/_shims/ReadableStream-node.mjs.map +1 -0
- package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
- package/_shims/agent-node.d.ts.map +1 -0
- package/_shims/{agent.node.js → agent-node.js} +1 -1
- package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
- package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
- package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
- package/_shims/agent.d.ts +1 -1
- package/_shims/agent.js +1 -1
- package/_shims/agent.mjs +1 -1
- package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
- package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
- package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
- package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
- package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
- package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
- package/_shims/fileFromPath.d.ts +2 -2
- package/_shims/fileFromPath.d.ts.map +1 -1
- package/_shims/fileFromPath.js +1 -1
- package/_shims/fileFromPath.mjs +1 -1
- package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
- package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
- package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
- package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
- package/_shims/getMultipartRequestOptions.d.ts +1 -1
- package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
- package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
- package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
- package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
- package/_shims/node-readable-node.js.map +1 -0
- package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
- package/_shims/node-readable-node.mjs.map +1 -0
- package/core.d.ts +2 -1
- package/core.d.ts.map +1 -1
- package/core.js +3 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -1
- package/error.d.ts.map +1 -1
- package/error.js +2 -2
- package/error.js.map +1 -1
- package/error.mjs +2 -2
- package/error.mjs.map +1 -1
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/package.json +9 -4
- package/pagination.d.ts +1 -1
- package/resources/ach-prenotifications.d.ts +219 -3
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +14 -9
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +1 -1
- package/resources/card-profiles.d.ts +1 -1
- package/resources/card-purchase-supplements.d.ts +2 -2
- package/resources/check-deposits.d.ts +3 -0
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +6 -0
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +280 -17
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.ts +2 -1
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +51 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.js +6 -0
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs +6 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts +45 -1
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +6 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +6 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +9 -1
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs.map +1 -1
- package/resources/external-accounts.d.ts +4 -0
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +56 -8
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +9 -0
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +9 -0
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/index.d.ts +9 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +19 -6
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +11 -9
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +684 -33
- 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 +299 -23
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +402 -14
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +682 -31
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +402 -14
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +402 -14
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +7 -5
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/_shims/ReadableStream.d.ts +5 -5
- package/src/_shims/agent.ts +1 -1
- package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
- package/src/_shims/fetch.d.ts +10 -10
- package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
- package/src/_shims/fileFromPath.ts +2 -2
- package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
- package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
- package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
- package/src/_shims/getMultipartRequestOptions.ts +3 -3
- package/src/core.ts +11 -10
- package/src/error.ts +3 -3
- package/src/index.ts +9 -7
- package/src/pagination.ts +2 -2
- package/src/resource.ts +1 -1
- package/src/resources/account-numbers.ts +5 -5
- package/src/resources/account-statements.ts +5 -5
- package/src/resources/account-transfers.ts +5 -5
- package/src/resources/accounts.ts +5 -5
- package/src/resources/ach-prenotifications.ts +224 -8
- package/src/resources/ach-transfers.ts +19 -14
- package/src/resources/balance-lookups.ts +3 -3
- package/src/resources/bookkeeping-accounts.ts +5 -5
- package/src/resources/bookkeeping-entries.ts +5 -5
- package/src/resources/bookkeeping-entry-sets.ts +4 -4
- package/src/resources/card-disputes.ts +5 -5
- package/src/resources/card-profiles.ts +6 -6
- package/src/resources/card-purchase-supplements.ts +7 -7
- package/src/resources/cards.ts +5 -5
- package/src/resources/check-deposits.ts +8 -5
- package/src/resources/check-transfers.ts +12 -5
- package/src/resources/declined-transactions.ts +285 -22
- package/src/resources/digital-wallet-tokens.ts +7 -6
- package/src/resources/documents.ts +5 -5
- package/src/resources/entities/beneficial-owners.ts +66 -4
- package/src/resources/entities/entities.ts +61 -8
- package/src/resources/entities/index.ts +11 -3
- package/src/resources/entities/supplemental-documents.ts +5 -5
- package/src/resources/event-subscriptions.ts +5 -5
- package/src/resources/events.ts +5 -5
- package/src/resources/exports.ts +5 -5
- package/src/resources/external-accounts.ts +10 -5
- package/src/resources/files.ts +6 -6
- package/src/resources/groups.ts +3 -3
- package/src/resources/inbound-ach-transfers.ts +73 -13
- package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
- package/src/resources/index.ts +54 -39
- package/src/resources/limits.ts +5 -5
- package/src/resources/oauth-connections.ts +5 -5
- package/src/resources/pending-transactions.ts +24 -11
- package/src/resources/programs.ts +5 -5
- package/src/resources/real-time-decisions.ts +14 -12
- package/src/resources/real-time-payments-transfers.ts +5 -5
- package/src/resources/routing-numbers.ts +4 -4
- package/src/resources/simulations/account-statements.ts +4 -4
- package/src/resources/simulations/account-transfers.ts +3 -3
- package/src/resources/simulations/ach-transfers.ts +697 -39
- package/src/resources/simulations/card-disputes.ts +4 -4
- package/src/resources/simulations/card-profiles.ts +3 -3
- package/src/resources/simulations/card-refunds.ts +4 -4
- package/src/resources/simulations/cards.ts +304 -28
- package/src/resources/simulations/check-deposits.ts +3 -3
- package/src/resources/simulations/check-transfers.ts +3 -3
- package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
- package/src/resources/simulations/documents.ts +4 -4
- package/src/resources/simulations/inbound-funds-holds.ts +3 -3
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
- package/src/resources/simulations/index.ts +18 -18
- package/src/resources/simulations/interest-payments.ts +413 -18
- package/src/resources/simulations/programs.ts +4 -4
- package/src/resources/simulations/real-time-payments-transfers.ts +695 -37
- package/src/resources/simulations/simulations.ts +19 -19
- package/src/resources/simulations/wire-transfers.ts +413 -18
- package/src/resources/transactions.ts +415 -20
- package/src/resources/wire-drawdown-requests.ts +5 -5
- package/src/resources/wire-transfers.ts +12 -10
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +6 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +4 -4
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/ReadableStream.node.d.ts.map +0 -1
- package/_shims/ReadableStream.node.js.map +0 -1
- package/_shims/ReadableStream.node.mjs.map +0 -1
- package/_shims/agent.node.d.ts.map +0 -1
- package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
- package/_shims/node-readable.node.js.map +0 -1
- package/_shims/node-readable.node.mjs.map +0 -1
- package/src/_shims/fetch.deno.ts +0 -23
- package/src/_shims/formdata.deno.ts +0 -16
- /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
- /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
- /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
- /package/_shims/{formdata.js → form-data.js} +0 -0
- /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
- /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
- /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
- /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/src/_shims/{formdata.js → form-data.js} +0 -0
- /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
- /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from './index';
|
|
7
|
-
import { Page, PageParams } from '../pagination';
|
|
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
8
|
|
|
9
9
|
export class DeclinedTransactions extends APIResource {
|
|
10
10
|
/**
|
|
@@ -234,16 +234,22 @@ export namespace DeclinedTransaction {
|
|
|
234
234
|
*
|
|
235
235
|
* - `ach_route_canceled` - The account number is canceled.
|
|
236
236
|
* - `ach_route_disabled` - The account number is disabled.
|
|
237
|
-
* - `breaches_limit` - The transaction would cause
|
|
238
|
-
*
|
|
239
|
-
* - `
|
|
237
|
+
* - `breaches_limit` - The transaction would cause an Increase limit to be
|
|
238
|
+
* exceeded.
|
|
239
|
+
* - `credit_entry_refused_by_receiver` - A credit was refused. This is a
|
|
240
|
+
* reasonable default reason for decline of credits.
|
|
241
|
+
* - `duplicate_return` - A rare return reason. The return this message refers to
|
|
242
|
+
* was a duplicate.
|
|
240
243
|
* - `entity_not_active` - The account's entity is not active.
|
|
241
244
|
* - `group_locked` - Your account is inactive.
|
|
242
245
|
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
243
|
-
* - `misrouted_return` -
|
|
244
|
-
*
|
|
246
|
+
* - `misrouted_return` - A rare return reason. The return this message refers to
|
|
247
|
+
* was misrouted.
|
|
248
|
+
* - `return_of_erroneous_or_reversing_debit` - The originating financial
|
|
249
|
+
* institution made a mistake and this return corrects it.
|
|
245
250
|
* - `no_ach_route` - The account number that was debited does not exist.
|
|
246
|
-
* - `originator_request` -
|
|
251
|
+
* - `originator_request` - The originating financial institution asked for this
|
|
252
|
+
* transfer to be returned.
|
|
247
253
|
* - `transaction_not_allowed` - The transaction is not allowed per Increase's
|
|
248
254
|
* terms.
|
|
249
255
|
* - `user_initiated` - The user initiated the decline.
|
|
@@ -349,7 +355,7 @@ export namespace DeclinedTransaction {
|
|
|
349
355
|
merchant_state: string | null;
|
|
350
356
|
|
|
351
357
|
/**
|
|
352
|
-
* Fields specific to the `network
|
|
358
|
+
* Fields specific to the `network`.
|
|
353
359
|
*/
|
|
354
360
|
network_details: CardDecline.NetworkDetails;
|
|
355
361
|
|
|
@@ -408,25 +414,25 @@ export namespace DeclinedTransaction {
|
|
|
408
414
|
|
|
409
415
|
export namespace CardDecline {
|
|
410
416
|
/**
|
|
411
|
-
* Fields specific to the `network
|
|
417
|
+
* Fields specific to the `network`.
|
|
412
418
|
*/
|
|
413
419
|
export interface NetworkDetails {
|
|
414
420
|
/**
|
|
415
|
-
* The payment network used to process this card authorization
|
|
421
|
+
* The payment network used to process this card authorization.
|
|
416
422
|
*
|
|
417
423
|
* - `visa` - Visa
|
|
418
424
|
*/
|
|
419
425
|
category: 'visa';
|
|
420
426
|
|
|
421
427
|
/**
|
|
422
|
-
* Fields specific to the `visa` network
|
|
428
|
+
* Fields specific to the `visa` network.
|
|
423
429
|
*/
|
|
424
430
|
visa: NetworkDetails.Visa | null;
|
|
425
431
|
}
|
|
426
432
|
|
|
427
433
|
export namespace NetworkDetails {
|
|
428
434
|
/**
|
|
429
|
-
* Fields specific to the `visa` network
|
|
435
|
+
* Fields specific to the `visa` network.
|
|
430
436
|
*/
|
|
431
437
|
export interface Visa {
|
|
432
438
|
/**
|
|
@@ -477,7 +483,7 @@ export namespace DeclinedTransaction {
|
|
|
477
483
|
|
|
478
484
|
/**
|
|
479
485
|
* The method used to enter the cardholder's primary account number and card
|
|
480
|
-
* expiration date
|
|
486
|
+
* expiration date.
|
|
481
487
|
*
|
|
482
488
|
* - `unknown` - Unknown
|
|
483
489
|
* - `manual` - Manual key entry
|
|
@@ -520,6 +526,11 @@ export namespace DeclinedTransaction {
|
|
|
520
526
|
*/
|
|
521
527
|
amount: number;
|
|
522
528
|
|
|
529
|
+
/**
|
|
530
|
+
* A computer-readable number printed on the MICR line of business checks, usually
|
|
531
|
+
* the check number. This is useful for positive pay checks, but can be unreliably
|
|
532
|
+
* transmitted by the bank of first deposit.
|
|
533
|
+
*/
|
|
523
534
|
auxiliary_on_us: string | null;
|
|
524
535
|
|
|
525
536
|
/**
|
|
@@ -646,74 +657,279 @@ export namespace DeclinedTransaction {
|
|
|
646
657
|
*/
|
|
647
658
|
amount: number;
|
|
648
659
|
|
|
660
|
+
/**
|
|
661
|
+
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
662
|
+
* country code of the destination country.
|
|
663
|
+
*/
|
|
649
664
|
destination_country_code: string;
|
|
650
665
|
|
|
666
|
+
/**
|
|
667
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
|
|
668
|
+
* destination bank account.
|
|
669
|
+
*/
|
|
651
670
|
destination_currency_code: string;
|
|
652
671
|
|
|
653
|
-
|
|
672
|
+
/**
|
|
673
|
+
* A description of how the foreign exchange rate was calculated.
|
|
674
|
+
*
|
|
675
|
+
* - `fixed_to_variable` - The originator chose an amount in their own currency.
|
|
676
|
+
* The settled amount in USD was converted using the exchange rate.
|
|
677
|
+
* - `variable_to_fixed` - The originator chose an amount to settle in USD. The
|
|
678
|
+
* originator's amount was variable; known only after the foreign exchange
|
|
679
|
+
* conversion.
|
|
680
|
+
* - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
|
|
681
|
+
* USD. There is no foreign exchange conversion.
|
|
682
|
+
*/
|
|
683
|
+
foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
|
|
654
684
|
|
|
685
|
+
/**
|
|
686
|
+
* Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
|
|
687
|
+
* reference to a well-known rate.
|
|
688
|
+
*/
|
|
655
689
|
foreign_exchange_reference: string | null;
|
|
656
690
|
|
|
657
|
-
|
|
691
|
+
/**
|
|
692
|
+
* An instruction of how to interpret the `foreign_exchange_reference` field for
|
|
693
|
+
* this Transaction.
|
|
694
|
+
*
|
|
695
|
+
* - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
|
|
696
|
+
* - `foreign_exchange_reference_number` - The ACH file contains a reference to a
|
|
697
|
+
* well-known foreign exchange rate.
|
|
698
|
+
* - `blank` - There is no foreign exchange for this transfer, so the
|
|
699
|
+
* `foreign_exchange_reference` field is blank.
|
|
700
|
+
*/
|
|
701
|
+
foreign_exchange_reference_indicator:
|
|
702
|
+
| 'foreign_exchange_rate'
|
|
703
|
+
| 'foreign_exchange_reference_number'
|
|
704
|
+
| 'blank';
|
|
658
705
|
|
|
706
|
+
/**
|
|
707
|
+
* The amount in the minor unit of the foreign payment currency. For dollars, for
|
|
708
|
+
* example, this is cents.
|
|
709
|
+
*/
|
|
659
710
|
foreign_payment_amount: number;
|
|
660
711
|
|
|
712
|
+
/**
|
|
713
|
+
* A reference number in the foreign banking infrastructure.
|
|
714
|
+
*/
|
|
661
715
|
foreign_trace_number: string | null;
|
|
662
716
|
|
|
663
|
-
|
|
717
|
+
/**
|
|
718
|
+
* The type of transfer. Set by the originator.
|
|
719
|
+
*
|
|
720
|
+
* - `annuity` - Sent as `ANN` in the Nacha file.
|
|
721
|
+
* - `business_or_commercial` - Sent as `BUS` in the Nacha file.
|
|
722
|
+
* - `deposit` - Sent as `DEP` in the Nacha file.
|
|
723
|
+
* - `loan` - Sent as `LOA` in the Nacha file.
|
|
724
|
+
* - `miscellaneous` - Sent as `MIS` in the Nacha file.
|
|
725
|
+
* - `mortgage` - Sent as `MOR` in the Nacha file.
|
|
726
|
+
* - `pension` - Sent as `PEN` in the Nacha file.
|
|
727
|
+
* - `remittance` - Sent as `REM` in the Nacha file.
|
|
728
|
+
* - `rent_or_lease` - Sent as `RLS` in the Nacha file.
|
|
729
|
+
* - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
|
|
730
|
+
* - `tax` - Sent as `TAX` in the Nacha file.
|
|
731
|
+
* - `accounts_receivable` - Sent as `ARC` in the Nacha file.
|
|
732
|
+
* - `back_office_conversion` - Sent as `BOC` in the Nacha file.
|
|
733
|
+
* - `machine_transfer` - Sent as `MTE` in the Nacha file.
|
|
734
|
+
* - `point_of_purchase` - Sent as `POP` in the Nacha file.
|
|
735
|
+
* - `point_of_sale` - Sent as `POS` in the Nacha file.
|
|
736
|
+
* - `represented_check` - Sent as `RCK` in the Nacha file.
|
|
737
|
+
* - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
|
|
738
|
+
* - `telphone_initiated` - Sent as `TEL` in the Nacha file.
|
|
739
|
+
* - `internet_initiated` - Sent as `WEB` in the Nacha file.
|
|
740
|
+
*/
|
|
741
|
+
international_transaction_type_code:
|
|
742
|
+
| 'annuity'
|
|
743
|
+
| 'business_or_commercial'
|
|
744
|
+
| 'deposit'
|
|
745
|
+
| 'loan'
|
|
746
|
+
| 'miscellaneous'
|
|
747
|
+
| 'mortgage'
|
|
748
|
+
| 'pension'
|
|
749
|
+
| 'remittance'
|
|
750
|
+
| 'rent_or_lease'
|
|
751
|
+
| 'salary_or_payroll'
|
|
752
|
+
| 'tax'
|
|
753
|
+
| 'accounts_receivable'
|
|
754
|
+
| 'back_office_conversion'
|
|
755
|
+
| 'machine_transfer'
|
|
756
|
+
| 'point_of_purchase'
|
|
757
|
+
| 'point_of_sale'
|
|
758
|
+
| 'represented_check'
|
|
759
|
+
| 'shared_network_transaction'
|
|
760
|
+
| 'telphone_initiated'
|
|
761
|
+
| 'internet_initiated';
|
|
664
762
|
|
|
763
|
+
/**
|
|
764
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
|
|
765
|
+
* originating bank account.
|
|
766
|
+
*/
|
|
665
767
|
originating_currency_code: string;
|
|
666
768
|
|
|
769
|
+
/**
|
|
770
|
+
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
771
|
+
* country code of the originating branch country.
|
|
772
|
+
*/
|
|
667
773
|
originating_depository_financial_institution_branch_country: string;
|
|
668
774
|
|
|
775
|
+
/**
|
|
776
|
+
* An identifier for the originating bank. One of an International Bank Account
|
|
777
|
+
* Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
|
|
778
|
+
* domestic identifier like a US Routing Number.
|
|
779
|
+
*/
|
|
669
780
|
originating_depository_financial_institution_id: string;
|
|
670
781
|
|
|
671
|
-
|
|
782
|
+
/**
|
|
783
|
+
* An instruction of how to interpret the
|
|
784
|
+
* `originating_depository_financial_institution_id` field for this Transaction.
|
|
785
|
+
*
|
|
786
|
+
* - `national_clearing_system_number` - A domestic clearing system number. In the
|
|
787
|
+
* US, for example, this is the American Banking Association (ABA) routing
|
|
788
|
+
* number.
|
|
789
|
+
* - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
|
|
790
|
+
* - `iban` - An International Bank Account Number.
|
|
791
|
+
*/
|
|
792
|
+
originating_depository_financial_institution_id_qualifier:
|
|
793
|
+
| 'national_clearing_system_number'
|
|
794
|
+
| 'bic_code'
|
|
795
|
+
| 'iban';
|
|
672
796
|
|
|
797
|
+
/**
|
|
798
|
+
* The name of the originating bank. Sometimes this will refer to an American bank
|
|
799
|
+
* and obscure the correspondent foreign bank.
|
|
800
|
+
*/
|
|
673
801
|
originating_depository_financial_institution_name: string;
|
|
674
802
|
|
|
803
|
+
/**
|
|
804
|
+
* A portion of the originator address. This may be incomplete.
|
|
805
|
+
*/
|
|
675
806
|
originator_city: string;
|
|
676
807
|
|
|
808
|
+
/**
|
|
809
|
+
* A description field set by the originator.
|
|
810
|
+
*/
|
|
677
811
|
originator_company_entry_description: string;
|
|
678
812
|
|
|
813
|
+
/**
|
|
814
|
+
* A portion of the originator address. The
|
|
815
|
+
* [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
|
|
816
|
+
* code of the originator country.
|
|
817
|
+
*/
|
|
679
818
|
originator_country: string;
|
|
680
819
|
|
|
820
|
+
/**
|
|
821
|
+
* An identifier for the originating company. This is generally stable across
|
|
822
|
+
* multiple ACH transfers.
|
|
823
|
+
*/
|
|
681
824
|
originator_identification: string;
|
|
682
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Either the name of the originator or an intermediary money transmitter.
|
|
828
|
+
*/
|
|
683
829
|
originator_name: string;
|
|
684
830
|
|
|
831
|
+
/**
|
|
832
|
+
* A portion of the originator address. This may be incomplete.
|
|
833
|
+
*/
|
|
685
834
|
originator_postal_code: string | null;
|
|
686
835
|
|
|
836
|
+
/**
|
|
837
|
+
* A portion of the originator address. This may be incomplete.
|
|
838
|
+
*/
|
|
687
839
|
originator_state_or_province: string | null;
|
|
688
840
|
|
|
841
|
+
/**
|
|
842
|
+
* A portion of the originator address. This may be incomplete.
|
|
843
|
+
*/
|
|
689
844
|
originator_street_address: string;
|
|
690
845
|
|
|
846
|
+
/**
|
|
847
|
+
* A description field set by the originator.
|
|
848
|
+
*/
|
|
691
849
|
payment_related_information: string | null;
|
|
692
850
|
|
|
851
|
+
/**
|
|
852
|
+
* A description field set by the originator.
|
|
853
|
+
*/
|
|
693
854
|
payment_related_information2: string | null;
|
|
694
855
|
|
|
856
|
+
/**
|
|
857
|
+
* A portion of the receiver address. This may be incomplete.
|
|
858
|
+
*/
|
|
695
859
|
receiver_city: string;
|
|
696
860
|
|
|
861
|
+
/**
|
|
862
|
+
* A portion of the receiver address. The
|
|
863
|
+
* [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
|
|
864
|
+
* code of the receiver country.
|
|
865
|
+
*/
|
|
697
866
|
receiver_country: string;
|
|
698
867
|
|
|
868
|
+
/**
|
|
869
|
+
* An identification number the originator uses for the receiver.
|
|
870
|
+
*/
|
|
699
871
|
receiver_identification_number: string | null;
|
|
700
872
|
|
|
873
|
+
/**
|
|
874
|
+
* A portion of the receiver address. This may be incomplete.
|
|
875
|
+
*/
|
|
701
876
|
receiver_postal_code: string | null;
|
|
702
877
|
|
|
878
|
+
/**
|
|
879
|
+
* A portion of the receiver address. This may be incomplete.
|
|
880
|
+
*/
|
|
703
881
|
receiver_state_or_province: string | null;
|
|
704
882
|
|
|
883
|
+
/**
|
|
884
|
+
* A portion of the receiver address. This may be incomplete.
|
|
885
|
+
*/
|
|
705
886
|
receiver_street_address: string;
|
|
706
887
|
|
|
888
|
+
/**
|
|
889
|
+
* The name of the receiver of the transfer. This is not verified by Increase.
|
|
890
|
+
*/
|
|
707
891
|
receiving_company_or_individual_name: string;
|
|
708
892
|
|
|
893
|
+
/**
|
|
894
|
+
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
895
|
+
* country code of the receiving bank country.
|
|
896
|
+
*/
|
|
709
897
|
receiving_depository_financial_institution_country: string;
|
|
710
898
|
|
|
899
|
+
/**
|
|
900
|
+
* An identifier for the receiving bank. One of an International Bank Account
|
|
901
|
+
* Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
|
|
902
|
+
* domestic identifier like a US Routing Number.
|
|
903
|
+
*/
|
|
711
904
|
receiving_depository_financial_institution_id: string;
|
|
712
905
|
|
|
713
|
-
|
|
906
|
+
/**
|
|
907
|
+
* An instruction of how to interpret the
|
|
908
|
+
* `receiving_depository_financial_institution_id` field for this Transaction.
|
|
909
|
+
*
|
|
910
|
+
* - `national_clearing_system_number` - A domestic clearing system number. In the
|
|
911
|
+
* US, for example, this is the American Banking Association (ABA) routing
|
|
912
|
+
* number.
|
|
913
|
+
* - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
|
|
914
|
+
* - `iban` - An International Bank Account Number.
|
|
915
|
+
*/
|
|
916
|
+
receiving_depository_financial_institution_id_qualifier:
|
|
917
|
+
| 'national_clearing_system_number'
|
|
918
|
+
| 'bic_code'
|
|
919
|
+
| 'iban';
|
|
714
920
|
|
|
921
|
+
/**
|
|
922
|
+
* The name of the receiving bank, as set by the sending financial institution.
|
|
923
|
+
*/
|
|
715
924
|
receiving_depository_financial_institution_name: string;
|
|
716
925
|
|
|
926
|
+
/**
|
|
927
|
+
* A 15 digit number recorded in the Nacha file and available to both the
|
|
928
|
+
* originating and receiving bank. Along with the amount, date, and originating
|
|
929
|
+
* routing number, this can be used to identify the ACH transfer at either bank.
|
|
930
|
+
* ACH trace numbers are not unique, but are
|
|
931
|
+
* [used to correlate returns](https://increase.com/documentation/ach#returns).
|
|
932
|
+
*/
|
|
717
933
|
trace_number: string;
|
|
718
934
|
}
|
|
719
935
|
|
|
@@ -728,34 +944,81 @@ export namespace DeclinedTransaction {
|
|
|
728
944
|
*/
|
|
729
945
|
amount: number;
|
|
730
946
|
|
|
947
|
+
/**
|
|
948
|
+
* A free-form address field set by the sender.
|
|
949
|
+
*/
|
|
731
950
|
beneficiary_address_line1: string | null;
|
|
732
951
|
|
|
952
|
+
/**
|
|
953
|
+
* A free-form address field set by the sender.
|
|
954
|
+
*/
|
|
733
955
|
beneficiary_address_line2: string | null;
|
|
734
956
|
|
|
957
|
+
/**
|
|
958
|
+
* A free-form address field set by the sender.
|
|
959
|
+
*/
|
|
735
960
|
beneficiary_address_line3: string | null;
|
|
736
961
|
|
|
962
|
+
/**
|
|
963
|
+
* A name set by the sender.
|
|
964
|
+
*/
|
|
737
965
|
beneficiary_name: string | null;
|
|
738
966
|
|
|
967
|
+
/**
|
|
968
|
+
* A free-form reference string set by the sender, to help identify the transfer.
|
|
969
|
+
*/
|
|
739
970
|
beneficiary_reference: string | null;
|
|
740
971
|
|
|
972
|
+
/**
|
|
973
|
+
* An Increase-constructed description of the declined transaction.
|
|
974
|
+
*/
|
|
741
975
|
description: string;
|
|
742
976
|
|
|
977
|
+
/**
|
|
978
|
+
* A unique identifier available to the originating and receiving banks, commonly
|
|
979
|
+
* abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
|
|
980
|
+
* service and is helpful when debugging wires with the originating bank.
|
|
981
|
+
*/
|
|
743
982
|
input_message_accountability_data: string | null;
|
|
744
983
|
|
|
984
|
+
/**
|
|
985
|
+
* The address of the wire originator, set by the sending bank.
|
|
986
|
+
*/
|
|
745
987
|
originator_address_line1: string | null;
|
|
746
988
|
|
|
989
|
+
/**
|
|
990
|
+
* The address of the wire originator, set by the sending bank.
|
|
991
|
+
*/
|
|
747
992
|
originator_address_line2: string | null;
|
|
748
993
|
|
|
994
|
+
/**
|
|
995
|
+
* The address of the wire originator, set by the sending bank.
|
|
996
|
+
*/
|
|
749
997
|
originator_address_line3: string | null;
|
|
750
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* The originator of the wire, set by the sending bank.
|
|
1001
|
+
*/
|
|
751
1002
|
originator_name: string | null;
|
|
752
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* A free-form message set by the wire originator.
|
|
1006
|
+
*/
|
|
753
1007
|
originator_to_beneficiary_information_line1: string | null;
|
|
754
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* A free-form message set by the wire originator.
|
|
1011
|
+
*/
|
|
755
1012
|
originator_to_beneficiary_information_line2: string | null;
|
|
756
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* A free-form message set by the wire originator.
|
|
1016
|
+
*/
|
|
757
1017
|
originator_to_beneficiary_information_line3: string | null;
|
|
758
1018
|
|
|
1019
|
+
/**
|
|
1020
|
+
* A free-form message set by the wire originator.
|
|
1021
|
+
*/
|
|
759
1022
|
originator_to_beneficiary_information_line4: string | null;
|
|
760
1023
|
|
|
761
1024
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from './index';
|
|
7
|
-
import { Page, PageParams } from '../pagination';
|
|
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
8
|
|
|
9
9
|
export class DigitalWalletTokens extends APIResource {
|
|
10
10
|
/**
|
|
@@ -75,8 +75,9 @@ export interface DigitalWalletToken {
|
|
|
75
75
|
*
|
|
76
76
|
* - `apple_pay` - Apple Pay
|
|
77
77
|
* - `google_pay` - Google Pay
|
|
78
|
+
* - `unknown` - Unknown
|
|
78
79
|
*/
|
|
79
|
-
token_requestor: 'apple_pay' | 'google_pay';
|
|
80
|
+
token_requestor: 'apple_pay' | 'google_pay' | 'unknown';
|
|
80
81
|
|
|
81
82
|
/**
|
|
82
83
|
* A constant representing the object's type. For this resource it will always be
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from './index';
|
|
7
|
-
import { Page, PageParams } from '../pagination';
|
|
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
8
|
|
|
9
9
|
export class Documents extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../../core';
|
|
4
|
-
import { APIResource } from '../../resource';
|
|
5
|
-
import * as Entities from './index';
|
|
6
|
-
import * as API from './index';
|
|
3
|
+
import * as Core from '../../core.js';
|
|
4
|
+
import { APIResource } from '../../resource.js';
|
|
5
|
+
import * as Entities from './index.js';
|
|
6
|
+
import * as API from './index.js';
|
|
7
7
|
|
|
8
8
|
export class BeneficialOwners extends APIResource {
|
|
9
9
|
/**
|
|
@@ -22,6 +22,16 @@ export class BeneficialOwners extends APIResource {
|
|
|
22
22
|
): Core.APIPromise<Entities.Entity> {
|
|
23
23
|
return this.post('/entity_beneficial_owners/archive', { body, ...options });
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Update the address for a beneficial owner belonging to a corporate Entity
|
|
28
|
+
*/
|
|
29
|
+
updateAddress(
|
|
30
|
+
body: BeneficialOwnerUpdateAddressParams,
|
|
31
|
+
options?: Core.RequestOptions,
|
|
32
|
+
): Core.APIPromise<Entities.Entity> {
|
|
33
|
+
return this.post('/entity_beneficial_owners/address', { body, ...options });
|
|
34
|
+
}
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
export interface BeneficialOwnerCreateParams {
|
|
@@ -270,7 +280,59 @@ export interface BeneficialOwnerArchiveParams {
|
|
|
270
280
|
entity_id: string;
|
|
271
281
|
}
|
|
272
282
|
|
|
283
|
+
export interface BeneficialOwnerUpdateAddressParams {
|
|
284
|
+
/**
|
|
285
|
+
* The individual's physical address. Post Office Boxes are disallowed.
|
|
286
|
+
*/
|
|
287
|
+
address: BeneficialOwnerUpdateAddressParams.Address;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
291
|
+
* corporation.
|
|
292
|
+
*/
|
|
293
|
+
beneficial_owner_id: string;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The identifier of the Entity to retrieve.
|
|
297
|
+
*/
|
|
298
|
+
entity_id: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export namespace BeneficialOwnerUpdateAddressParams {
|
|
302
|
+
/**
|
|
303
|
+
* The individual's physical address. Post Office Boxes are disallowed.
|
|
304
|
+
*/
|
|
305
|
+
export interface Address {
|
|
306
|
+
/**
|
|
307
|
+
* The city of the address.
|
|
308
|
+
*/
|
|
309
|
+
city: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The first line of the address. This is usually the street number and street.
|
|
313
|
+
*/
|
|
314
|
+
line1: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
318
|
+
* the address.
|
|
319
|
+
*/
|
|
320
|
+
state: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The ZIP code of the address.
|
|
324
|
+
*/
|
|
325
|
+
zip: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The second line of the address. This might be the floor or room number.
|
|
329
|
+
*/
|
|
330
|
+
line2?: string;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
273
334
|
export namespace BeneficialOwners {
|
|
274
335
|
export import BeneficialOwnerCreateParams = API.BeneficialOwnerCreateParams;
|
|
275
336
|
export import BeneficialOwnerArchiveParams = API.BeneficialOwnerArchiveParams;
|
|
337
|
+
export import BeneficialOwnerUpdateAddressParams = API.BeneficialOwnerUpdateAddressParams;
|
|
276
338
|
}
|