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
|
@@ -0,0 +1,124 @@
|
|
|
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 SimulationsInboundACHTransfersAPI from './inbound-ach-transfers';
|
|
6
|
+
import * as InboundACHTransfersAPI from '../inbound-ach-transfers';
|
|
7
|
+
|
|
8
|
+
export class InboundACHTransfers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates an inbound ACH transfer to your account. This imitates initiating a
|
|
11
|
+
* transfer to an Increase account from a different financial institution. The
|
|
12
|
+
* transfer may be either a credit or a debit depending on if the `amount` is
|
|
13
|
+
* positive or negative. The result of calling this API will contain the created
|
|
14
|
+
* transfer. You can pass a `resolve_at` parameter to allow for a window to
|
|
15
|
+
* [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
|
|
16
|
+
* Alternatively, if you don't pass the `resolve_at` parameter the result will
|
|
17
|
+
* contain either a [Transaction](#transactions) or a
|
|
18
|
+
* [Declined Transaction](#declined-transactions) depending on whether or not the
|
|
19
|
+
* transfer is allowed.
|
|
20
|
+
*/
|
|
21
|
+
create(
|
|
22
|
+
body: InboundACHTransferCreateParams,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<InboundACHTransfersAPI.InboundACHTransfer> {
|
|
25
|
+
return this._client.post('/simulations/inbound_ach_transfers', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface InboundACHTransferCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Account Number the inbound ACH Transfer is for.
|
|
32
|
+
*/
|
|
33
|
+
account_number_id: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The transfer amount in cents. A positive amount originates a credit transfer
|
|
37
|
+
* pushing funds to the receiving account. A negative amount originates a debit
|
|
38
|
+
* transfer pulling funds from the receiving account.
|
|
39
|
+
*/
|
|
40
|
+
amount: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The description of the date of the transfer.
|
|
44
|
+
*/
|
|
45
|
+
company_descriptive_date?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Data associated with the transfer set by the sender.
|
|
49
|
+
*/
|
|
50
|
+
company_discretionary_data?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The description of the transfer set by the sender.
|
|
54
|
+
*/
|
|
55
|
+
company_entry_description?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The sender's company ID.
|
|
59
|
+
*/
|
|
60
|
+
company_id?: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The name of the sender.
|
|
64
|
+
*/
|
|
65
|
+
company_name?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The ID of the receiver of the transfer.
|
|
69
|
+
*/
|
|
70
|
+
receiver_id_number?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The name of the receiver of the transfer.
|
|
74
|
+
*/
|
|
75
|
+
receiver_name?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The time at which the transfer should be resolved. If not provided will resolve
|
|
79
|
+
* immediately.
|
|
80
|
+
*/
|
|
81
|
+
resolve_at?: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The standard entry class code for the transfer.
|
|
85
|
+
*
|
|
86
|
+
* - `corporate_credit_or_debit` - Corporate Credit and Debit (CCD).
|
|
87
|
+
* - `corporate_trade_exchange` - Corporate Trade Exchange (CTX).
|
|
88
|
+
* - `prearranged_payments_and_deposit` - Prearranged Payments and Deposits (PPD).
|
|
89
|
+
* - `internet_initiated` - Internet Initiated (WEB).
|
|
90
|
+
* - `point_of_sale` - Point of Sale (POS).
|
|
91
|
+
* - `telephone_initiated` - Telephone Initiated (TEL).
|
|
92
|
+
* - `customer_initiated` - Customer Initiated (CIE).
|
|
93
|
+
* - `accounts_receivable` - Accounts Receivable (ARC).
|
|
94
|
+
* - `machine_transfer` - Machine Transfer (MTE).
|
|
95
|
+
* - `shared_network_transaction` - Shared Network Transaction (SHR).
|
|
96
|
+
* - `represented_check` - Represented Check (RCK).
|
|
97
|
+
* - `back_office_conversion` - Back Office Conversion (BOC).
|
|
98
|
+
* - `point_of_purchase` - Point of Purchase (POP).
|
|
99
|
+
* - `check_truncation` - Check Truncation (TRC).
|
|
100
|
+
* - `destroyed_check` - Destroyed Check (XCK).
|
|
101
|
+
* - `international_ach_transaction` - International ACH Transaction (IAT).
|
|
102
|
+
*/
|
|
103
|
+
standard_entry_class_code?:
|
|
104
|
+
| 'corporate_credit_or_debit'
|
|
105
|
+
| 'corporate_trade_exchange'
|
|
106
|
+
| 'prearranged_payments_and_deposit'
|
|
107
|
+
| 'internet_initiated'
|
|
108
|
+
| 'point_of_sale'
|
|
109
|
+
| 'telephone_initiated'
|
|
110
|
+
| 'customer_initiated'
|
|
111
|
+
| 'accounts_receivable'
|
|
112
|
+
| 'machine_transfer'
|
|
113
|
+
| 'shared_network_transaction'
|
|
114
|
+
| 'represented_check'
|
|
115
|
+
| 'back_office_conversion'
|
|
116
|
+
| 'point_of_purchase'
|
|
117
|
+
| 'check_truncation'
|
|
118
|
+
| 'destroyed_check'
|
|
119
|
+
| 'international_ach_transaction';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace InboundACHTransfers {
|
|
123
|
+
export import InboundACHTransferCreateParams = SimulationsInboundACHTransfersAPI.InboundACHTransferCreateParams;
|
|
124
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 InboundRealTimePaymentsTransfersAPI from './inbound-real-time-payments-transfers';
|
|
6
|
+
import * as DeclinedTransactionsAPI from '../declined-transactions';
|
|
7
|
+
import * as TransactionsAPI from '../transactions';
|
|
8
|
+
|
|
9
|
+
export class InboundRealTimePaymentsTransfers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Simulates an inbound Real-Time Payments transfer to your account. Real-Time
|
|
12
|
+
* Payments are a beta feature.
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: InboundRealTimePaymentsTransferCreateParams,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Core.APIPromise<InboundRealTimePaymentsTransferCreateResponse> {
|
|
18
|
+
return this._client.post('/simulations/inbound_real_time_payments_transfers', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The results of an inbound Real-Time Payments Transfer simulation.
|
|
24
|
+
*/
|
|
25
|
+
export interface InboundRealTimePaymentsTransferCreateResponse {
|
|
26
|
+
/**
|
|
27
|
+
* If the Real-Time Payments Transfer attempt fails, this will contain the
|
|
28
|
+
* resulting [Declined Transaction](#declined-transactions) object. The Declined
|
|
29
|
+
* Transaction's `source` will be of
|
|
30
|
+
* `category: inbound_real_time_payments_transfer_decline`.
|
|
31
|
+
*/
|
|
32
|
+
declined_transaction: DeclinedTransactionsAPI.DeclinedTransaction | null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* If the Real-Time Payments Transfer attempt succeeds, this will contain the
|
|
36
|
+
* resulting [Transaction](#transactions) object. The Transaction's `source` will
|
|
37
|
+
* be of `category: inbound_real_time_payments_transfer_confirmation`.
|
|
38
|
+
*/
|
|
39
|
+
transaction: TransactionsAPI.Transaction | null;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A constant representing the object's type. For this resource it will always be
|
|
43
|
+
* `inbound_real_time_payments_transfer_simulation_result`.
|
|
44
|
+
*/
|
|
45
|
+
type: 'inbound_real_time_payments_transfer_simulation_result';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface InboundRealTimePaymentsTransferCreateParams {
|
|
49
|
+
/**
|
|
50
|
+
* The identifier of the Account Number the inbound Real-Time Payments Transfer is
|
|
51
|
+
* for.
|
|
52
|
+
*/
|
|
53
|
+
account_number_id: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The transfer amount in USD cents. Must be positive.
|
|
57
|
+
*/
|
|
58
|
+
amount: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The account number of the account that sent the transfer.
|
|
62
|
+
*/
|
|
63
|
+
debtor_account_number?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The name provided by the sender of the transfer.
|
|
67
|
+
*/
|
|
68
|
+
debtor_name?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The routing number of the account that sent the transfer.
|
|
72
|
+
*/
|
|
73
|
+
debtor_routing_number?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Additional information included with the transfer.
|
|
77
|
+
*/
|
|
78
|
+
remittance_information?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The identifier of a pending Request for Payment that this transfer will fulfill.
|
|
82
|
+
*/
|
|
83
|
+
request_for_payment_id?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace InboundRealTimePaymentsTransfers {
|
|
87
|
+
export import InboundRealTimePaymentsTransferCreateResponse = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateResponse;
|
|
88
|
+
export import InboundRealTimePaymentsTransferCreateParams = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateParams;
|
|
89
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 SimulationsInboundWireTransfersAPI from './inbound-wire-transfers';
|
|
6
|
+
import * as InboundWireTransfersAPI from '../inbound-wire-transfers';
|
|
7
|
+
|
|
8
|
+
export class InboundWireTransfers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates an inbound Wire Transfer to your account.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: InboundWireTransferCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<InboundWireTransfersAPI.InboundWireTransfer> {
|
|
16
|
+
return this._client.post('/simulations/inbound_wire_transfers', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface InboundWireTransferCreateParams {
|
|
21
|
+
/**
|
|
22
|
+
* The identifier of the Account Number the inbound Wire Transfer is for.
|
|
23
|
+
*/
|
|
24
|
+
account_number_id: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The transfer amount in cents. Must be positive.
|
|
28
|
+
*/
|
|
29
|
+
amount: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The sending bank will set beneficiary_address_line1 in production. You can
|
|
33
|
+
* simulate any value here.
|
|
34
|
+
*/
|
|
35
|
+
beneficiary_address_line1?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The sending bank will set beneficiary_address_line2 in production. You can
|
|
39
|
+
* simulate any value here.
|
|
40
|
+
*/
|
|
41
|
+
beneficiary_address_line2?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The sending bank will set beneficiary_address_line3 in production. You can
|
|
45
|
+
* simulate any value here.
|
|
46
|
+
*/
|
|
47
|
+
beneficiary_address_line3?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The sending bank will set beneficiary_name in production. You can simulate any
|
|
51
|
+
* value here.
|
|
52
|
+
*/
|
|
53
|
+
beneficiary_name?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The sending bank will set beneficiary_reference in production. You can simulate
|
|
57
|
+
* any value here.
|
|
58
|
+
*/
|
|
59
|
+
beneficiary_reference?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The sending bank will set originator_address_line1 in production. You can
|
|
63
|
+
* simulate any value here.
|
|
64
|
+
*/
|
|
65
|
+
originator_address_line1?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The sending bank will set originator_address_line2 in production. You can
|
|
69
|
+
* simulate any value here.
|
|
70
|
+
*/
|
|
71
|
+
originator_address_line2?: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The sending bank will set originator_address_line3 in production. You can
|
|
75
|
+
* simulate any value here.
|
|
76
|
+
*/
|
|
77
|
+
originator_address_line3?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The sending bank will set originator_name in production. You can simulate any
|
|
81
|
+
* value here.
|
|
82
|
+
*/
|
|
83
|
+
originator_name?: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The sending bank will set originator_routing_number in production. You can
|
|
87
|
+
* simulate any value here.
|
|
88
|
+
*/
|
|
89
|
+
originator_routing_number?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The sending bank will set originator_to_beneficiary_information_line1 in
|
|
93
|
+
* production. You can simulate any value here.
|
|
94
|
+
*/
|
|
95
|
+
originator_to_beneficiary_information_line1?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The sending bank will set originator_to_beneficiary_information_line2 in
|
|
99
|
+
* production. You can simulate any value here.
|
|
100
|
+
*/
|
|
101
|
+
originator_to_beneficiary_information_line2?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The sending bank will set originator_to_beneficiary_information_line3 in
|
|
105
|
+
* production. You can simulate any value here.
|
|
106
|
+
*/
|
|
107
|
+
originator_to_beneficiary_information_line3?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The sending bank will set originator_to_beneficiary_information_line4 in
|
|
111
|
+
* production. You can simulate any value here.
|
|
112
|
+
*/
|
|
113
|
+
originator_to_beneficiary_information_line4?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The sending bank will set sender_reference in production. You can simulate any
|
|
117
|
+
* value here.
|
|
118
|
+
*/
|
|
119
|
+
sender_reference?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace InboundWireTransfers {
|
|
123
|
+
export import InboundWireTransferCreateParams = SimulationsInboundWireTransfersAPI.InboundWireTransferCreateParams;
|
|
124
|
+
}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
ACHTransferNotificationOfChangeParams,
|
|
4
|
+
ACHTransferCreateNotificationOfChangeParams,
|
|
6
5
|
ACHTransferReturnParams,
|
|
7
6
|
ACHTransfers,
|
|
8
7
|
} from './ach-transfers';
|
|
9
8
|
export { AccountStatementCreateParams, AccountStatements } from './account-statements';
|
|
10
9
|
export { AccountTransfers } from './account-transfers';
|
|
11
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
CardAuthorizationCreateResponse,
|
|
12
|
+
CardAuthorizationCreateParams,
|
|
13
|
+
CardAuthorizations,
|
|
14
|
+
} from './card-authorizations';
|
|
15
|
+
export {
|
|
16
|
+
CardAuthorizationExpirationCreateParams,
|
|
17
|
+
CardAuthorizationExpirations,
|
|
18
|
+
} from './card-authorization-expirations';
|
|
12
19
|
export { CardDisputeActionParams, CardDisputes } from './card-disputes';
|
|
20
|
+
export { CardFuelConfirmationCreateParams, CardFuelConfirmations } from './card-fuel-confirmations';
|
|
21
|
+
export { CardIncrementCreateParams, CardIncrements } from './card-increments';
|
|
13
22
|
export { CardRefundCreateParams, CardRefunds } from './card-refunds';
|
|
23
|
+
export { CardReversalCreateParams, CardReversals } from './card-reversals';
|
|
24
|
+
export { CardSettlementCreateParams, CardSettlements } from './card-settlements';
|
|
14
25
|
export { CheckDeposits } from './check-deposits';
|
|
15
26
|
export { CheckTransfers } from './check-transfers';
|
|
16
27
|
export {
|
|
@@ -19,31 +30,25 @@ export {
|
|
|
19
30
|
DigitalWalletTokenRequests,
|
|
20
31
|
} from './digital-wallet-token-requests';
|
|
21
32
|
export { DocumentCreateParams, Documents } from './documents';
|
|
33
|
+
export { InboundACHTransferCreateParams, InboundACHTransfers } from './inbound-ach-transfers';
|
|
22
34
|
export { InboundCheckDepositCreateParams, InboundCheckDeposits } from './inbound-check-deposits';
|
|
23
35
|
export { InboundFundsHoldReleaseResponse, InboundFundsHolds } from './inbound-funds-holds';
|
|
24
36
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from './inbound-
|
|
29
|
-
export {
|
|
30
|
-
InboundRealTimePaymentsTransferSimulationResult,
|
|
31
|
-
RealTimePaymentsTransferCompleteParams,
|
|
32
|
-
RealTimePaymentsTransferCreateInboundParams,
|
|
33
|
-
RealTimePaymentsTransfers,
|
|
34
|
-
} from './real-time-payments-transfers';
|
|
37
|
+
InboundRealTimePaymentsTransferCreateResponse,
|
|
38
|
+
InboundRealTimePaymentsTransferCreateParams,
|
|
39
|
+
InboundRealTimePaymentsTransfers,
|
|
40
|
+
} from './inbound-real-time-payments-transfers';
|
|
35
41
|
export {
|
|
36
42
|
InboundWireDrawdownRequestCreateParams,
|
|
37
43
|
InboundWireDrawdownRequests,
|
|
38
44
|
} from './inbound-wire-drawdown-requests';
|
|
45
|
+
export { InboundWireTransferCreateParams, InboundWireTransfers } from './inbound-wire-transfers';
|
|
39
46
|
export { InterestPaymentCreateParams, InterestPayments } from './interest-payments';
|
|
40
|
-
export {
|
|
47
|
+
export { PhysicalCardAdvanceShipmentParams, PhysicalCards } from './physical-cards';
|
|
41
48
|
export { ProgramCreateParams, Programs } from './programs';
|
|
42
49
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from './simulations';
|
|
49
|
-
export { WireTransferCreateInboundParams, WireTransfers } from './wire-transfers';
|
|
50
|
+
RealTimePaymentsTransferCompleteParams,
|
|
51
|
+
RealTimePaymentsTransfers,
|
|
52
|
+
} from './real-time-payments-transfers';
|
|
53
|
+
export { Simulations } from './simulations';
|
|
54
|
+
export { WireTransfers } from './wire-transfers';
|
|
@@ -14,7 +14,7 @@ export class InterestPayments extends APIResource {
|
|
|
14
14
|
body: InterestPaymentCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<TransactionsAPI.Transaction> {
|
|
17
|
-
return this._client.post('/simulations/
|
|
17
|
+
return this._client.post('/simulations/interest_payments', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -11,19 +11,19 @@ export class PhysicalCards extends APIResource {
|
|
|
11
11
|
* Card, to simulate e.g., that a physical card was attempted shipped but then
|
|
12
12
|
* failed delivery.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
advanceShipment(
|
|
15
15
|
physicalCardId: string,
|
|
16
|
-
body:
|
|
16
|
+
body: PhysicalCardAdvanceShipmentParams,
|
|
17
17
|
options?: Core.RequestOptions,
|
|
18
18
|
): Core.APIPromise<PhysicalCardsAPI.PhysicalCard> {
|
|
19
|
-
return this._client.post(`/simulations/physical_cards/${physicalCardId}/
|
|
19
|
+
return this._client.post(`/simulations/physical_cards/${physicalCardId}/advance_shipment`, {
|
|
20
20
|
body,
|
|
21
21
|
...options,
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export interface
|
|
26
|
+
export interface PhysicalCardAdvanceShipmentParams {
|
|
27
27
|
/**
|
|
28
28
|
* The shipment status to move the Physical Card to.
|
|
29
29
|
*
|
|
@@ -50,5 +50,5 @@ export interface PhysicalCardShipmentAdvanceParams {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export namespace PhysicalCards {
|
|
53
|
-
export import
|
|
53
|
+
export import PhysicalCardAdvanceShipmentParams = SimulationsPhysicalCardsAPI.PhysicalCardAdvanceShipmentParams;
|
|
54
54
|
}
|