increase 0.59.1 → 0.60.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 +18 -0
- package/README.md +41 -17
- package/error.d.ts.map +1 -1
- package/error.js +0 -3
- package/error.js.map +1 -1
- package/error.mjs +0 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +190 -172
- package/index.d.ts +190 -172
- package/index.d.ts.map +1 -1
- package/index.js +96 -87
- package/index.js.map +1 -1
- package/index.mjs +96 -87
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/cards.d.ts +1 -1
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +2 -231
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/{entities/entities.d.ts → entities.d.ts} +276 -46
- package/resources/entities.d.ts.map +1 -0
- package/resources/{entities/entities.js → entities.js} +28 -17
- package/resources/entities.js.map +1 -0
- package/resources/{entities/entities.mjs → entities.mjs} +28 -17
- package/resources/entities.mjs.map +1 -0
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +218 -7
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -8
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -8
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-check-deposits.d.ts +25 -1
- package/resources/inbound-check-deposits.d.ts.map +1 -1
- package/resources/inbound-check-deposits.js +6 -0
- package/resources/inbound-check-deposits.js.map +1 -1
- package/resources/inbound-check-deposits.mjs +6 -0
- package/resources/inbound-check-deposits.mjs.map +1 -1
- package/resources/inbound-mail-items.d.ts +0 -14
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -4
- package/resources/index.mjs.map +1 -1
- package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
- package/resources/intrafi-account-enrollments.d.ts.map +1 -0
- package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
- package/resources/intrafi-account-enrollments.js.map +1 -0
- package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
- package/resources/intrafi-account-enrollments.mjs.map +1 -0
- package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
- package/resources/intrafi-balances.d.ts.map +1 -0
- package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
- package/resources/intrafi-balances.js.map +1 -0
- package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
- package/resources/intrafi-balances.mjs.map +1 -0
- package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
- package/resources/intrafi-exclusions.d.ts.map +1 -0
- package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
- package/resources/intrafi-exclusions.js.map +1 -0
- package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
- package/resources/intrafi-exclusions.mjs.map +1 -0
- package/resources/lockboxes.d.ts +0 -14
- package/resources/lockboxes.d.ts.map +1 -1
- package/resources/lockboxes.js.map +1 -1
- package/resources/lockboxes.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +5 -5
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js +5 -5
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +3 -3
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +10 -61
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +10 -14
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +10 -14
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-authorization-expirations.d.ts +20 -0
- package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
- package/resources/simulations/card-authorization-expirations.js +17 -0
- package/resources/simulations/card-authorization-expirations.js.map +1 -0
- package/resources/simulations/card-authorization-expirations.mjs +13 -0
- package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
- package/resources/simulations/card-authorizations.d.ts +91 -0
- package/resources/simulations/card-authorizations.d.ts.map +1 -0
- package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
- package/resources/simulations/card-authorizations.js.map +1 -0
- package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
- package/resources/simulations/card-authorizations.mjs.map +1 -0
- package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
- package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
- package/resources/simulations/card-fuel-confirmations.js +19 -0
- package/resources/simulations/card-fuel-confirmations.js.map +1 -0
- package/resources/simulations/card-fuel-confirmations.mjs +15 -0
- package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
- package/resources/simulations/card-increments.d.ts +32 -0
- package/resources/simulations/card-increments.d.ts.map +1 -0
- package/resources/simulations/card-increments.js +18 -0
- package/resources/simulations/card-increments.js.map +1 -0
- package/resources/simulations/card-increments.mjs +14 -0
- package/resources/simulations/card-increments.mjs.map +1 -0
- package/resources/simulations/card-reversals.d.ts +28 -0
- package/resources/simulations/card-reversals.d.ts.map +1 -0
- package/resources/simulations/card-reversals.js +20 -0
- package/resources/simulations/card-reversals.js.map +1 -0
- package/resources/simulations/card-reversals.mjs +16 -0
- package/resources/simulations/card-reversals.mjs.map +1 -0
- package/resources/simulations/card-settlements.d.ts +34 -0
- package/resources/simulations/card-settlements.d.ts.map +1 -0
- package/resources/simulations/card-settlements.js +21 -0
- package/resources/simulations/card-settlements.js.map +1 -0
- package/resources/simulations/card-settlements.mjs +17 -0
- package/resources/simulations/card-settlements.mjs.map +1 -0
- package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
- package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-ach-transfers.js +26 -0
- package/resources/simulations/inbound-ach-transfers.js.map +1 -0
- package/resources/simulations/inbound-ach-transfers.mjs +22 -0
- package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
- package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-wire-transfers.js +17 -0
- package/resources/simulations/inbound-wire-transfers.js.map +1 -0
- package/resources/simulations/inbound-wire-transfers.mjs +13 -0
- package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
- package/resources/simulations/index.d.ts +14 -7
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +21 -7
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +11 -4
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts +3 -3
- package/resources/simulations/physical-cards.js +2 -2
- package/resources/simulations/physical-cards.mjs +2 -2
- package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +0 -7
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +0 -7
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +67 -118
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +45 -54
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +45 -54
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +10 -85
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +14 -5
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +14 -5
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
- package/resources/supplemental-documents.d.ts.map +1 -0
- package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
- package/resources/supplemental-documents.js.map +1 -0
- package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
- package/resources/supplemental-documents.mjs.map +1 -0
- package/resources/transactions.d.ts +6 -276
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +4 -13
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +0 -17
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +0 -17
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/error.ts +0 -8
- package/src/index.ts +210 -189
- package/src/resources/cards.ts +1 -1
- package/src/resources/declined-transactions.ts +0 -297
- package/src/resources/{entities/entities.ts → entities.ts} +351 -56
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +288 -13
- package/src/resources/inbound-check-deposits.ts +34 -1
- package/src/resources/inbound-mail-items.ts +0 -16
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +32 -14
- package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
- package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
- package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
- package/src/resources/lockboxes.ts +0 -16
- package/src/resources/routing-numbers.ts +6 -6
- package/src/resources/simulations/ach-transfers.ts +15 -76
- package/src/resources/simulations/card-authorization-expirations.ts +29 -0
- package/src/resources/simulations/card-authorizations.ts +112 -0
- package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
- package/src/resources/simulations/card-increments.ts +43 -0
- package/src/resources/simulations/card-reversals.ts +38 -0
- package/src/resources/simulations/card-settlements.ts +45 -0
- package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
- package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
- package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
- package/src/resources/simulations/index.ts +26 -21
- package/src/resources/simulations/interest-payments.ts +1 -1
- package/src/resources/simulations/physical-cards.ts +5 -5
- package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
- package/src/resources/simulations/simulations.ts +80 -157
- package/src/resources/simulations/wire-transfers.ts +18 -104
- package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
- package/src/resources/transactions.ts +5 -350
- package/src/resources/wire-transfers.ts +5 -19
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/entities/beneficial-owners.d.ts +0 -279
- package/resources/entities/beneficial-owners.d.ts.map +0 -1
- package/resources/entities/beneficial-owners.js +0 -29
- package/resources/entities/beneficial-owners.js.map +0 -1
- package/resources/entities/beneficial-owners.mjs +0 -25
- package/resources/entities/beneficial-owners.mjs.map +0 -1
- package/resources/entities/entities.d.ts.map +0 -1
- package/resources/entities/entities.js.map +0 -1
- package/resources/entities/entities.mjs.map +0 -1
- package/resources/entities/index.d.ts +0 -5
- package/resources/entities/index.d.ts.map +0 -1
- package/resources/entities/index.js +0 -15
- package/resources/entities/index.js.map +0 -1
- package/resources/entities/index.mjs +0 -6
- package/resources/entities/index.mjs.map +0 -1
- package/resources/entities/industry-code.d.ts +0 -23
- package/resources/entities/industry-code.d.ts.map +0 -1
- package/resources/entities/industry-code.js +0 -17
- package/resources/entities/industry-code.js.map +0 -1
- package/resources/entities/industry-code.mjs +0 -13
- package/resources/entities/industry-code.mjs.map +0 -1
- package/resources/entities/supplemental-documents.d.ts.map +0 -1
- package/resources/entities/supplemental-documents.js.map +0 -1
- package/resources/entities/supplemental-documents.mjs.map +0 -1
- package/resources/intrafi/account-enrollments.d.ts.map +0 -1
- package/resources/intrafi/account-enrollments.js.map +0 -1
- package/resources/intrafi/account-enrollments.mjs.map +0 -1
- package/resources/intrafi/balances.d.ts.map +0 -1
- package/resources/intrafi/balances.js.map +0 -1
- package/resources/intrafi/balances.mjs.map +0 -1
- package/resources/intrafi/exclusions.d.ts.map +0 -1
- package/resources/intrafi/exclusions.js.map +0 -1
- package/resources/intrafi/exclusions.mjs.map +0 -1
- package/resources/intrafi/index.d.ts +0 -5
- package/resources/intrafi/index.d.ts.map +0 -1
- package/resources/intrafi/index.js +0 -15
- package/resources/intrafi/index.js.map +0 -1
- package/resources/intrafi/index.mjs +0 -6
- package/resources/intrafi/index.mjs.map +0 -1
- package/resources/intrafi/intrafi.d.ts +0 -24
- package/resources/intrafi/intrafi.d.ts.map +0 -1
- package/resources/intrafi/intrafi.js +0 -48
- package/resources/intrafi/intrafi.js.map +0 -1
- package/resources/intrafi/intrafi.mjs +0 -21
- package/resources/intrafi/intrafi.mjs.map +0 -1
- package/resources/simulations/cards.d.ts +0 -1763
- package/resources/simulations/cards.d.ts.map +0 -1
- package/resources/simulations/cards.js.map +0 -1
- package/resources/simulations/cards.mjs.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
- package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.js +0 -21
- package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
- package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
- package/src/resources/entities/beneficial-owners.ts +0 -346
- package/src/resources/entities/index.ts +0 -25
- package/src/resources/entities/industry-code.ts +0 -33
- package/src/resources/intrafi/index.ts +0 -18
- package/src/resources/intrafi/intrafi.ts +0 -29
- package/src/resources/simulations/cards.ts +0 -2188
- package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
import * as SimulationsAPI from './simulations';
|
|
6
|
-
import * as CardPaymentsAPI from '../card-payments';
|
|
7
4
|
import * as AccountStatementsAPI from './account-statements';
|
|
8
5
|
import * as AccountTransfersAPI from './account-transfers';
|
|
9
6
|
import * as ACHTransfersAPI from './ach-transfers';
|
|
7
|
+
import * as CardAuthorizationExpirationsAPI from './card-authorization-expirations';
|
|
8
|
+
import * as CardAuthorizationsAPI from './card-authorizations';
|
|
10
9
|
import * as CardDisputesAPI from './card-disputes';
|
|
10
|
+
import * as CardFuelConfirmationsAPI from './card-fuel-confirmations';
|
|
11
|
+
import * as CardIncrementsAPI from './card-increments';
|
|
11
12
|
import * as CardRefundsAPI from './card-refunds';
|
|
12
|
-
import * as
|
|
13
|
+
import * as CardReversalsAPI from './card-reversals';
|
|
14
|
+
import * as CardSettlementsAPI from './card-settlements';
|
|
13
15
|
import * as CheckDepositsAPI from './check-deposits';
|
|
14
16
|
import * as CheckTransfersAPI from './check-transfers';
|
|
15
17
|
import * as DigitalWalletTokenRequestsAPI from './digital-wallet-token-requests';
|
|
16
18
|
import * as DocumentsAPI from './documents';
|
|
19
|
+
import * as InboundACHTransfersAPI from './inbound-ach-transfers';
|
|
17
20
|
import * as InboundCheckDepositsAPI from './inbound-check-deposits';
|
|
18
21
|
import * as InboundFundsHoldsAPI from './inbound-funds-holds';
|
|
19
|
-
import * as
|
|
22
|
+
import * as InboundRealTimePaymentsTransfersAPI from './inbound-real-time-payments-transfers';
|
|
20
23
|
import * as InboundWireDrawdownRequestsAPI from './inbound-wire-drawdown-requests';
|
|
24
|
+
import * as InboundWireTransfersAPI from './inbound-wire-transfers';
|
|
21
25
|
import * as InterestPaymentsAPI from './interest-payments';
|
|
22
26
|
import * as PhysicalCardsAPI from './physical-cards';
|
|
23
27
|
import * as ProgramsAPI from './programs';
|
|
@@ -28,182 +32,101 @@ export class Simulations extends APIResource {
|
|
|
28
32
|
accountTransfers: AccountTransfersAPI.AccountTransfers = new AccountTransfersAPI.AccountTransfers(
|
|
29
33
|
this._client,
|
|
30
34
|
);
|
|
31
|
-
|
|
32
|
-
this._client
|
|
33
|
-
);
|
|
35
|
+
inboundACHTransfers: InboundACHTransfersAPI.InboundACHTransfers =
|
|
36
|
+
new InboundACHTransfersAPI.InboundACHTransfers(this._client);
|
|
34
37
|
achTransfers: ACHTransfersAPI.ACHTransfers = new ACHTransfersAPI.ACHTransfers(this._client);
|
|
35
|
-
cardDisputes: CardDisputesAPI.CardDisputes = new CardDisputesAPI.CardDisputes(this._client);
|
|
36
|
-
cardRefunds: CardRefundsAPI.CardRefunds = new CardRefundsAPI.CardRefunds(this._client);
|
|
37
38
|
checkTransfers: CheckTransfersAPI.CheckTransfers = new CheckTransfersAPI.CheckTransfers(this._client);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this._client);
|
|
39
|
+
inboundCheckDeposits: InboundCheckDepositsAPI.InboundCheckDeposits =
|
|
40
|
+
new InboundCheckDepositsAPI.InboundCheckDeposits(this._client);
|
|
41
41
|
checkDeposits: CheckDepositsAPI.CheckDeposits = new CheckDepositsAPI.CheckDeposits(this._client);
|
|
42
|
-
|
|
42
|
+
inboundWireTransfers: InboundWireTransfersAPI.InboundWireTransfers =
|
|
43
|
+
new InboundWireTransfersAPI.InboundWireTransfers(this._client);
|
|
44
|
+
wireTransfers: WireTransfersAPI.WireTransfers = new WireTransfersAPI.WireTransfers(this._client);
|
|
43
45
|
inboundWireDrawdownRequests: InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests =
|
|
44
46
|
new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this._client);
|
|
47
|
+
inboundRealTimePaymentsTransfers: InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransfers =
|
|
48
|
+
new InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransfers(this._client);
|
|
45
49
|
inboundFundsHolds: InboundFundsHoldsAPI.InboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(
|
|
46
50
|
this._client,
|
|
47
51
|
);
|
|
48
|
-
interestPayments: InterestPaymentsAPI.InterestPayments = new InterestPaymentsAPI.InterestPayments(
|
|
49
|
-
this._client,
|
|
50
|
-
);
|
|
51
|
-
wireTransfers: WireTransfersAPI.WireTransfers = new WireTransfersAPI.WireTransfers(this._client);
|
|
52
|
-
cards: CardsAPI.Cards = new CardsAPI.Cards(this._client);
|
|
53
52
|
realTimePaymentsTransfers: RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers =
|
|
54
53
|
new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this._client);
|
|
54
|
+
cardAuthorizations: CardAuthorizationsAPI.CardAuthorizations = new CardAuthorizationsAPI.CardAuthorizations(
|
|
55
|
+
this._client,
|
|
56
|
+
);
|
|
57
|
+
cardSettlements: CardSettlementsAPI.CardSettlements = new CardSettlementsAPI.CardSettlements(this._client);
|
|
58
|
+
cardReversals: CardReversalsAPI.CardReversals = new CardReversalsAPI.CardReversals(this._client);
|
|
59
|
+
cardIncrements: CardIncrementsAPI.CardIncrements = new CardIncrementsAPI.CardIncrements(this._client);
|
|
60
|
+
cardAuthorizationExpirations: CardAuthorizationExpirationsAPI.CardAuthorizationExpirations =
|
|
61
|
+
new CardAuthorizationExpirationsAPI.CardAuthorizationExpirations(this._client);
|
|
62
|
+
cardFuelConfirmations: CardFuelConfirmationsAPI.CardFuelConfirmations =
|
|
63
|
+
new CardFuelConfirmationsAPI.CardFuelConfirmations(this._client);
|
|
64
|
+
cardRefunds: CardRefundsAPI.CardRefunds = new CardRefundsAPI.CardRefunds(this._client);
|
|
65
|
+
cardDisputes: CardDisputesAPI.CardDisputes = new CardDisputesAPI.CardDisputes(this._client);
|
|
66
|
+
digitalWalletTokenRequests: DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests =
|
|
67
|
+
new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this._client);
|
|
55
68
|
physicalCards: PhysicalCardsAPI.PhysicalCards = new PhysicalCardsAPI.PhysicalCards(this._client);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
cardAuthorizationExpirations(
|
|
65
|
-
body: SimulationCardAuthorizationExpirationsParams,
|
|
66
|
-
options?: Core.RequestOptions,
|
|
67
|
-
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
68
|
-
return this._client.post('/simulations/card_authorization_expirations', { body, ...options });
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Simulates the fuel confirmation of an authorization by a card acquirer. This
|
|
73
|
-
* happens asynchronously right after a fuel pump transaction is completed. A fuel
|
|
74
|
-
* confirmation can only happen once per authorization.
|
|
75
|
-
*/
|
|
76
|
-
cardFuelConfirmations(
|
|
77
|
-
body: SimulationCardFuelConfirmationsParams,
|
|
78
|
-
options?: Core.RequestOptions,
|
|
79
|
-
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
80
|
-
return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Simulates the increment of an authorization by a card acquirer. An authorization
|
|
85
|
-
* can be incremented multiple times.
|
|
86
|
-
*/
|
|
87
|
-
cardIncrements(
|
|
88
|
-
body: SimulationCardIncrementsParams,
|
|
89
|
-
options?: Core.RequestOptions,
|
|
90
|
-
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
91
|
-
return this._client.post('/simulations/card_increments', { body, ...options });
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Simulates the reversal of an authorization by a card acquirer. An authorization
|
|
96
|
-
* can be partially reversed multiple times, up until the total authorized amount.
|
|
97
|
-
* Marks the pending transaction as complete if the authorization is fully
|
|
98
|
-
* reversed.
|
|
99
|
-
*/
|
|
100
|
-
cardReversals(
|
|
101
|
-
body: SimulationCardReversalsParams,
|
|
102
|
-
options?: Core.RequestOptions,
|
|
103
|
-
): Core.APIPromise<CardPaymentsAPI.CardPayment> {
|
|
104
|
-
return this._client.post('/simulations/card_reversals', { body, ...options });
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface SimulationCardAuthorizationExpirationsParams {
|
|
109
|
-
/**
|
|
110
|
-
* The identifier of the Card Payment to expire.
|
|
111
|
-
*/
|
|
112
|
-
card_payment_id: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface SimulationCardFuelConfirmationsParams {
|
|
116
|
-
/**
|
|
117
|
-
* The amount of the fuel_confirmation in minor units in the card authorization's
|
|
118
|
-
* currency.
|
|
119
|
-
*/
|
|
120
|
-
amount: number;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The identifier of the Card Payment to create a fuel_confirmation on.
|
|
124
|
-
*/
|
|
125
|
-
card_payment_id: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface SimulationCardIncrementsParams {
|
|
129
|
-
/**
|
|
130
|
-
* The amount of the increment in minor units in the card authorization's currency.
|
|
131
|
-
*/
|
|
132
|
-
amount: number;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* The identifier of the Card Payment to create a increment on.
|
|
136
|
-
*/
|
|
137
|
-
card_payment_id: string;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The identifier of the Event Subscription to use. If provided, will override the
|
|
141
|
-
* default real time event subscription. Because you can only create one real time
|
|
142
|
-
* decision event subscription, you can use this field to route events to any
|
|
143
|
-
* specified event subscription for testing purposes.
|
|
144
|
-
*/
|
|
145
|
-
event_subscription_id?: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface SimulationCardReversalsParams {
|
|
149
|
-
/**
|
|
150
|
-
* The identifier of the Card Payment to create a reversal on.
|
|
151
|
-
*/
|
|
152
|
-
card_payment_id: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* The amount of the reversal in minor units in the card authorization's currency.
|
|
156
|
-
* This defaults to the authorization amount.
|
|
157
|
-
*/
|
|
158
|
-
amount?: number;
|
|
69
|
+
interestPayments: InterestPaymentsAPI.InterestPayments = new InterestPaymentsAPI.InterestPayments(
|
|
70
|
+
this._client,
|
|
71
|
+
);
|
|
72
|
+
accountStatements: AccountStatementsAPI.AccountStatements = new AccountStatementsAPI.AccountStatements(
|
|
73
|
+
this._client,
|
|
74
|
+
);
|
|
75
|
+
documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
|
|
76
|
+
programs: ProgramsAPI.Programs = new ProgramsAPI.Programs(this._client);
|
|
159
77
|
}
|
|
160
78
|
|
|
161
79
|
export namespace Simulations {
|
|
162
|
-
export import SimulationCardAuthorizationExpirationsParams = SimulationsAPI.SimulationCardAuthorizationExpirationsParams;
|
|
163
|
-
export import SimulationCardFuelConfirmationsParams = SimulationsAPI.SimulationCardFuelConfirmationsParams;
|
|
164
|
-
export import SimulationCardIncrementsParams = SimulationsAPI.SimulationCardIncrementsParams;
|
|
165
|
-
export import SimulationCardReversalsParams = SimulationsAPI.SimulationCardReversalsParams;
|
|
166
80
|
export import AccountTransfers = AccountTransfersAPI.AccountTransfers;
|
|
167
|
-
export import
|
|
168
|
-
export import
|
|
81
|
+
export import InboundACHTransfers = InboundACHTransfersAPI.InboundACHTransfers;
|
|
82
|
+
export import InboundACHTransferCreateParams = InboundACHTransfersAPI.InboundACHTransferCreateParams;
|
|
169
83
|
export import ACHTransfers = ACHTransfersAPI.ACHTransfers;
|
|
170
|
-
export import
|
|
171
|
-
export import ACHTransferNotificationOfChangeParams = ACHTransfersAPI.ACHTransferNotificationOfChangeParams;
|
|
84
|
+
export import ACHTransferCreateNotificationOfChangeParams = ACHTransfersAPI.ACHTransferCreateNotificationOfChangeParams;
|
|
172
85
|
export import ACHTransferReturnParams = ACHTransfersAPI.ACHTransferReturnParams;
|
|
173
|
-
export import CardDisputes = CardDisputesAPI.CardDisputes;
|
|
174
|
-
export import CardDisputeActionParams = CardDisputesAPI.CardDisputeActionParams;
|
|
175
|
-
export import CardRefunds = CardRefundsAPI.CardRefunds;
|
|
176
|
-
export import CardRefundCreateParams = CardRefundsAPI.CardRefundCreateParams;
|
|
177
86
|
export import CheckTransfers = CheckTransfersAPI.CheckTransfers;
|
|
178
|
-
export import
|
|
179
|
-
export import
|
|
180
|
-
export import DigitalWalletTokenRequests = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests;
|
|
181
|
-
export import DigitalWalletTokenRequestCreateResponse = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateResponse;
|
|
182
|
-
export import DigitalWalletTokenRequestCreateParams = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateParams;
|
|
87
|
+
export import InboundCheckDeposits = InboundCheckDepositsAPI.InboundCheckDeposits;
|
|
88
|
+
export import InboundCheckDepositCreateParams = InboundCheckDepositsAPI.InboundCheckDepositCreateParams;
|
|
183
89
|
export import CheckDeposits = CheckDepositsAPI.CheckDeposits;
|
|
184
|
-
export import
|
|
185
|
-
export import
|
|
90
|
+
export import InboundWireTransfers = InboundWireTransfersAPI.InboundWireTransfers;
|
|
91
|
+
export import InboundWireTransferCreateParams = InboundWireTransfersAPI.InboundWireTransferCreateParams;
|
|
92
|
+
export import WireTransfers = WireTransfersAPI.WireTransfers;
|
|
186
93
|
export import InboundWireDrawdownRequests = InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests;
|
|
187
94
|
export import InboundWireDrawdownRequestCreateParams = InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequestCreateParams;
|
|
95
|
+
export import InboundRealTimePaymentsTransfers = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransfers;
|
|
96
|
+
export import InboundRealTimePaymentsTransferCreateResponse = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateResponse;
|
|
97
|
+
export import InboundRealTimePaymentsTransferCreateParams = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateParams;
|
|
188
98
|
export import InboundFundsHolds = InboundFundsHoldsAPI.InboundFundsHolds;
|
|
189
99
|
export import InboundFundsHoldReleaseResponse = InboundFundsHoldsAPI.InboundFundsHoldReleaseResponse;
|
|
190
|
-
export import InterestPayments = InterestPaymentsAPI.InterestPayments;
|
|
191
|
-
export import InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
|
|
192
|
-
export import WireTransfers = WireTransfersAPI.WireTransfers;
|
|
193
|
-
export import WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
|
|
194
|
-
export import Cards = CardsAPI.Cards;
|
|
195
|
-
export import CardAuthorizationSimulation = CardsAPI.CardAuthorizationSimulation;
|
|
196
|
-
export import CardAuthorizeParams = CardsAPI.CardAuthorizeParams;
|
|
197
|
-
export import CardSettlementParams = CardsAPI.CardSettlementParams;
|
|
198
100
|
export import RealTimePaymentsTransfers = RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers;
|
|
199
|
-
export import InboundRealTimePaymentsTransferSimulationResult = RealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferSimulationResult;
|
|
200
101
|
export import RealTimePaymentsTransferCompleteParams = RealTimePaymentsTransfersAPI.RealTimePaymentsTransferCompleteParams;
|
|
201
|
-
export import
|
|
102
|
+
export import CardAuthorizations = CardAuthorizationsAPI.CardAuthorizations;
|
|
103
|
+
export import CardAuthorizationCreateResponse = CardAuthorizationsAPI.CardAuthorizationCreateResponse;
|
|
104
|
+
export import CardAuthorizationCreateParams = CardAuthorizationsAPI.CardAuthorizationCreateParams;
|
|
105
|
+
export import CardSettlements = CardSettlementsAPI.CardSettlements;
|
|
106
|
+
export import CardSettlementCreateParams = CardSettlementsAPI.CardSettlementCreateParams;
|
|
107
|
+
export import CardReversals = CardReversalsAPI.CardReversals;
|
|
108
|
+
export import CardReversalCreateParams = CardReversalsAPI.CardReversalCreateParams;
|
|
109
|
+
export import CardIncrements = CardIncrementsAPI.CardIncrements;
|
|
110
|
+
export import CardIncrementCreateParams = CardIncrementsAPI.CardIncrementCreateParams;
|
|
111
|
+
export import CardAuthorizationExpirations = CardAuthorizationExpirationsAPI.CardAuthorizationExpirations;
|
|
112
|
+
export import CardAuthorizationExpirationCreateParams = CardAuthorizationExpirationsAPI.CardAuthorizationExpirationCreateParams;
|
|
113
|
+
export import CardFuelConfirmations = CardFuelConfirmationsAPI.CardFuelConfirmations;
|
|
114
|
+
export import CardFuelConfirmationCreateParams = CardFuelConfirmationsAPI.CardFuelConfirmationCreateParams;
|
|
115
|
+
export import CardRefunds = CardRefundsAPI.CardRefunds;
|
|
116
|
+
export import CardRefundCreateParams = CardRefundsAPI.CardRefundCreateParams;
|
|
117
|
+
export import CardDisputes = CardDisputesAPI.CardDisputes;
|
|
118
|
+
export import CardDisputeActionParams = CardDisputesAPI.CardDisputeActionParams;
|
|
119
|
+
export import DigitalWalletTokenRequests = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests;
|
|
120
|
+
export import DigitalWalletTokenRequestCreateResponse = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateResponse;
|
|
121
|
+
export import DigitalWalletTokenRequestCreateParams = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateParams;
|
|
202
122
|
export import PhysicalCards = PhysicalCardsAPI.PhysicalCards;
|
|
203
|
-
export import
|
|
204
|
-
export import
|
|
205
|
-
export import
|
|
206
|
-
export import
|
|
207
|
-
export import
|
|
208
|
-
export import
|
|
123
|
+
export import PhysicalCardAdvanceShipmentParams = PhysicalCardsAPI.PhysicalCardAdvanceShipmentParams;
|
|
124
|
+
export import InterestPayments = InterestPaymentsAPI.InterestPayments;
|
|
125
|
+
export import InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
|
|
126
|
+
export import AccountStatements = AccountStatementsAPI.AccountStatements;
|
|
127
|
+
export import AccountStatementCreateParams = AccountStatementsAPI.AccountStatementCreateParams;
|
|
128
|
+
export import Documents = DocumentsAPI.Documents;
|
|
129
|
+
export import DocumentCreateParams = DocumentsAPI.DocumentCreateParams;
|
|
130
|
+
export import Programs = ProgramsAPI.Programs;
|
|
131
|
+
export import ProgramCreateParams = ProgramsAPI.ProgramCreateParams;
|
|
209
132
|
}
|
|
@@ -2,117 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as WireTransfersAPI from '
|
|
6
|
-
import * as InboundWireTransfersAPI from '../inbound-wire-transfers';
|
|
5
|
+
import * as WireTransfersAPI from '../wire-transfers';
|
|
7
6
|
|
|
8
7
|
export class WireTransfers extends APIResource {
|
|
9
8
|
/**
|
|
10
|
-
* Simulates
|
|
9
|
+
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
10
|
+
* Reserve due to error conditions. This will also create a
|
|
11
|
+
* [Transaction](#transaction) to account for the returned funds. This Wire
|
|
12
|
+
* Transfer must first have a `status` of `complete`.
|
|
11
13
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
reverse(
|
|
15
|
+
wireTransferId: string,
|
|
14
16
|
options?: Core.RequestOptions,
|
|
15
|
-
): Core.APIPromise<
|
|
16
|
-
return this._client.post(
|
|
17
|
+
): Core.APIPromise<WireTransfersAPI.WireTransfer> {
|
|
18
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
17
19
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface WireTransferCreateInboundParams {
|
|
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
20
|
|
|
67
21
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
22
|
+
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
23
|
+
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
24
|
+
* `pending_creating`.
|
|
70
25
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
export namespace WireTransfers {
|
|
117
|
-
export import WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
|
|
26
|
+
submit(
|
|
27
|
+
wireTransferId: string,
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): Core.APIPromise<WireTransfersAPI.WireTransfer> {
|
|
30
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
31
|
+
}
|
|
118
32
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import * as Core from '
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
5
|
import * as SupplementalDocumentsAPI from './supplemental-documents';
|
|
6
|
-
import
|
|
7
|
-
import { Page, type PageParams } from '../../pagination';
|
|
6
|
+
import { Page, type PageParams } from '../pagination';
|
|
8
7
|
|
|
9
8
|
export class SupplementalDocuments extends APIResource {
|
|
10
9
|
/**
|
|
11
10
|
* Create a supplemental document for an Entity
|
|
12
11
|
*/
|
|
13
12
|
create(
|
|
14
|
-
entityId: string,
|
|
15
13
|
body: SupplementalDocumentCreateParams,
|
|
16
14
|
options?: Core.RequestOptions,
|
|
17
|
-
): Core.APIPromise<
|
|
18
|
-
return this._client.post(
|
|
15
|
+
): Core.APIPromise<EntitySupplementalDocument> {
|
|
16
|
+
return this._client.post('/entity_supplemental_documents', { body, ...options });
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
/**
|
|
@@ -24,27 +22,32 @@ export class SupplementalDocuments extends APIResource {
|
|
|
24
22
|
list(
|
|
25
23
|
query: SupplementalDocumentListParams,
|
|
26
24
|
options?: Core.RequestOptions,
|
|
27
|
-
): Core.PagePromise<
|
|
28
|
-
return this._client.getAPIList('/entity_supplemental_documents',
|
|
25
|
+
): Core.PagePromise<EntitySupplementalDocumentsPage, EntitySupplementalDocument> {
|
|
26
|
+
return this._client.getAPIList('/entity_supplemental_documents', EntitySupplementalDocumentsPage, {
|
|
29
27
|
query,
|
|
30
28
|
...options,
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
export class
|
|
33
|
+
export class EntitySupplementalDocumentsPage extends Page<EntitySupplementalDocument> {}
|
|
36
34
|
|
|
37
35
|
/**
|
|
38
36
|
* Supplemental Documents are uploaded files connected to an Entity during
|
|
39
37
|
* onboarding.
|
|
40
38
|
*/
|
|
41
|
-
export interface
|
|
39
|
+
export interface EntitySupplementalDocument {
|
|
42
40
|
/**
|
|
43
41
|
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
44
42
|
* Supplemental Document was created.
|
|
45
43
|
*/
|
|
46
44
|
created_at: string;
|
|
47
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The Entity the supplemental document is attached to.
|
|
48
|
+
*/
|
|
49
|
+
entity_id: string;
|
|
50
|
+
|
|
48
51
|
/**
|
|
49
52
|
* The File containing the document.
|
|
50
53
|
*/
|
|
@@ -65,6 +68,11 @@ export interface SupplementalDocument {
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
export interface SupplementalDocumentCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* The identifier of the Entity to associate with the supplemental document.
|
|
73
|
+
*/
|
|
74
|
+
entity_id: string;
|
|
75
|
+
|
|
68
76
|
/**
|
|
69
77
|
* The identifier of the File containing the document.
|
|
70
78
|
*/
|
|
@@ -87,8 +95,8 @@ export interface SupplementalDocumentListParams extends PageParams {
|
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
export namespace SupplementalDocuments {
|
|
90
|
-
export import
|
|
91
|
-
export import
|
|
98
|
+
export import EntitySupplementalDocument = SupplementalDocumentsAPI.EntitySupplementalDocument;
|
|
99
|
+
export import EntitySupplementalDocumentsPage = SupplementalDocumentsAPI.EntitySupplementalDocumentsPage;
|
|
92
100
|
export import SupplementalDocumentCreateParams = SupplementalDocumentsAPI.SupplementalDocumentCreateParams;
|
|
93
101
|
export import SupplementalDocumentListParams = SupplementalDocumentsAPI.SupplementalDocumentListParams;
|
|
94
102
|
}
|