@augustusbank/typescript-sdk 0.21.0 → 0.22.1
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 +39 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +22 -17
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +22 -17
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +226 -48
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +226 -48
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +55 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +55 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +48 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +48 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +133 -335
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +133 -335
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +25 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +25 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +215 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +215 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +96 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +92 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +209 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +209 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +90 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +86 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +202 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +202 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +7 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +7 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +17 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +8 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +62 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +62 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +26 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +26 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +33 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +28 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +342 -162
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +342 -162
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +61 -11
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +61 -11
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +976 -978
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +976 -978
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +48 -8
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +30 -19
- package/src/resources/accounts.ts +265 -50
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +66 -269
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +21 -4
- package/src/resources/payouts.ts +204 -439
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +282 -0
- package/src/resources/simulations/accounts.ts +265 -0
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +522 -0
- package/src/resources/simulations/index.ts +33 -0
- package/src/resources/simulations/payouts.ts +80 -0
- package/src/resources/simulations/simulations.ts +92 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +954 -206
- package/src/resources/webhook-subscriptions.ts +102 -36
- package/src/resources/webhooks.ts +1283 -1153
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Deposits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
7
|
+
* endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const deposit = await client.simulations.deposits.create({
|
|
12
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* amount: '869.225610155',
|
|
14
|
+
* currency: 'EUR',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: DepositCreateParams, options?: RequestOptions): APIPromise<DepositCreateResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface DepositCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Account receiving the simulated deposit.
|
|
23
|
+
*/
|
|
24
|
+
account_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Resource type discriminator.
|
|
27
|
+
*/
|
|
28
|
+
type: 'deposit_simulation';
|
|
29
|
+
}
|
|
30
|
+
export interface DepositCreateParams {
|
|
31
|
+
/**
|
|
32
|
+
* ID of the account to credit with the simulated deposit.
|
|
33
|
+
*/
|
|
34
|
+
account_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Amount as a decimal string in the account currency (e.g. "100.50").
|
|
37
|
+
*/
|
|
38
|
+
amount: string;
|
|
39
|
+
/**
|
|
40
|
+
* Currency of the simulated deposit.
|
|
41
|
+
*/
|
|
42
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
43
|
+
/**
|
|
44
|
+
* Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
|
|
45
|
+
*/
|
|
46
|
+
counterparty?: DepositCreateParams.Counterparty;
|
|
47
|
+
/**
|
|
48
|
+
* ID of an existing counterparty to use as the sender of the simulated deposit.
|
|
49
|
+
* Mutually exclusive with `counterparty`.
|
|
50
|
+
*/
|
|
51
|
+
counterparty_id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Payment rail the simulated deposit arrives on.
|
|
54
|
+
*/
|
|
55
|
+
rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'ach' | 'fedwire' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy';
|
|
56
|
+
/**
|
|
57
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
58
|
+
* support this field.
|
|
59
|
+
*/
|
|
60
|
+
unstructured_remittance_information?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace DepositCreateParams {
|
|
63
|
+
/**
|
|
64
|
+
* Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
|
|
65
|
+
*/
|
|
66
|
+
interface Counterparty {
|
|
67
|
+
/**
|
|
68
|
+
* Financial address of the counterparty.
|
|
69
|
+
*/
|
|
70
|
+
financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
|
|
71
|
+
/**
|
|
72
|
+
* Physical address of the counterparty.
|
|
73
|
+
*/
|
|
74
|
+
physical_address?: Counterparty.PhysicalAddress | null;
|
|
75
|
+
}
|
|
76
|
+
namespace Counterparty {
|
|
77
|
+
interface IbanFinancialAddressRequest {
|
|
78
|
+
/**
|
|
79
|
+
* Name of the account holder.
|
|
80
|
+
*/
|
|
81
|
+
account_holder_name: string;
|
|
82
|
+
/**
|
|
83
|
+
* International Bank Account Number.
|
|
84
|
+
*/
|
|
85
|
+
iban: string;
|
|
86
|
+
/**
|
|
87
|
+
* Discriminator for IBAN financial address.
|
|
88
|
+
*/
|
|
89
|
+
type: 'iban';
|
|
90
|
+
/**
|
|
91
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
92
|
+
*/
|
|
93
|
+
bic?: string | null;
|
|
94
|
+
}
|
|
95
|
+
interface SortCodeFinancialAddress {
|
|
96
|
+
/**
|
|
97
|
+
* Name of the account holder.
|
|
98
|
+
*/
|
|
99
|
+
account_holder_name: string;
|
|
100
|
+
/**
|
|
101
|
+
* UK account number (8 digits).
|
|
102
|
+
*/
|
|
103
|
+
account_number: string;
|
|
104
|
+
/**
|
|
105
|
+
* UK sort code (6 digits).
|
|
106
|
+
*/
|
|
107
|
+
sort_code: string;
|
|
108
|
+
/**
|
|
109
|
+
* Discriminator for UK sort code financial address.
|
|
110
|
+
*/
|
|
111
|
+
type: 'sort_code';
|
|
112
|
+
}
|
|
113
|
+
interface AbaFinancialAddress {
|
|
114
|
+
/**
|
|
115
|
+
* Name of the account holder.
|
|
116
|
+
*/
|
|
117
|
+
account_holder_name: string;
|
|
118
|
+
/**
|
|
119
|
+
* Bank account number.
|
|
120
|
+
*/
|
|
121
|
+
account_number: string;
|
|
122
|
+
/**
|
|
123
|
+
* ABA routing number (9 digits).
|
|
124
|
+
*/
|
|
125
|
+
routing_number: string;
|
|
126
|
+
/**
|
|
127
|
+
* Discriminator for ABA wire financial address.
|
|
128
|
+
*/
|
|
129
|
+
type: 'aba';
|
|
130
|
+
}
|
|
131
|
+
interface BicFinancialAddressRequest {
|
|
132
|
+
/**
|
|
133
|
+
* Name of the account holder.
|
|
134
|
+
*/
|
|
135
|
+
account_holder_name: string;
|
|
136
|
+
/**
|
|
137
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
138
|
+
*/
|
|
139
|
+
account_number: string;
|
|
140
|
+
/**
|
|
141
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
142
|
+
*/
|
|
143
|
+
bic: string;
|
|
144
|
+
/**
|
|
145
|
+
* Discriminator for BIC + local account financial address.
|
|
146
|
+
*/
|
|
147
|
+
type: 'bic';
|
|
148
|
+
/**
|
|
149
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
150
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
151
|
+
*/
|
|
152
|
+
local_bank_code?: string | null;
|
|
153
|
+
}
|
|
154
|
+
interface CryptoWalletFinancialAddress {
|
|
155
|
+
/**
|
|
156
|
+
* Wallet address on the specified blockchain.
|
|
157
|
+
*/
|
|
158
|
+
address: string;
|
|
159
|
+
/**
|
|
160
|
+
* Blockchain network for the crypto wallet.
|
|
161
|
+
*/
|
|
162
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
163
|
+
/**
|
|
164
|
+
* Discriminator for crypto wallet financial address.
|
|
165
|
+
*/
|
|
166
|
+
type: 'crypto_wallet';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Physical address of the counterparty.
|
|
170
|
+
*/
|
|
171
|
+
interface PhysicalAddress {
|
|
172
|
+
/**
|
|
173
|
+
* City or locality.
|
|
174
|
+
*/
|
|
175
|
+
city: string;
|
|
176
|
+
/**
|
|
177
|
+
* ISO 3166-1 alpha-2 country code.
|
|
178
|
+
*/
|
|
179
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
180
|
+
/**
|
|
181
|
+
* Primary street address.
|
|
182
|
+
*/
|
|
183
|
+
line_1: string;
|
|
184
|
+
/**
|
|
185
|
+
* Postal or ZIP code.
|
|
186
|
+
*/
|
|
187
|
+
postal_code: string;
|
|
188
|
+
/**
|
|
189
|
+
* Secondary street address. Optional; omit or send null if not recorded.
|
|
190
|
+
*/
|
|
191
|
+
line_2?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
* State, province, or region. Optional; omit or send null if not recorded.
|
|
194
|
+
*/
|
|
195
|
+
state?: string | null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
export declare namespace Deposits {
|
|
200
|
+
export { type DepositCreateResponse as DepositCreateResponse, type DepositCreateParams as DepositCreateParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=deposits.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC;IAEhD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EACD,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,OAAO,GACP,KAAK,GACL,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,QAAQ,GACR,eAAe,GACf,SAAS,GACT,cAAc,CAAC;IAEnB;;;OAGG;IACH,mCAAmC,CA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BAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Deposits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
7
|
+
* endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const deposit = await client.simulations.deposits.create({
|
|
12
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* amount: '869.225610155',
|
|
14
|
+
* currency: 'EUR',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: DepositCreateParams, options?: RequestOptions): APIPromise<DepositCreateResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface DepositCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Account receiving the simulated deposit.
|
|
23
|
+
*/
|
|
24
|
+
account_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Resource type discriminator.
|
|
27
|
+
*/
|
|
28
|
+
type: 'deposit_simulation';
|
|
29
|
+
}
|
|
30
|
+
export interface DepositCreateParams {
|
|
31
|
+
/**
|
|
32
|
+
* ID of the account to credit with the simulated deposit.
|
|
33
|
+
*/
|
|
34
|
+
account_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Amount as a decimal string in the account currency (e.g. "100.50").
|
|
37
|
+
*/
|
|
38
|
+
amount: string;
|
|
39
|
+
/**
|
|
40
|
+
* Currency of the simulated deposit.
|
|
41
|
+
*/
|
|
42
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
43
|
+
/**
|
|
44
|
+
* Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
|
|
45
|
+
*/
|
|
46
|
+
counterparty?: DepositCreateParams.Counterparty;
|
|
47
|
+
/**
|
|
48
|
+
* ID of an existing counterparty to use as the sender of the simulated deposit.
|
|
49
|
+
* Mutually exclusive with `counterparty`.
|
|
50
|
+
*/
|
|
51
|
+
counterparty_id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Payment rail the simulated deposit arrives on.
|
|
54
|
+
*/
|
|
55
|
+
rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'ach' | 'fedwire' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy';
|
|
56
|
+
/**
|
|
57
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
58
|
+
* support this field.
|
|
59
|
+
*/
|
|
60
|
+
unstructured_remittance_information?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace DepositCreateParams {
|
|
63
|
+
/**
|
|
64
|
+
* Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
|
|
65
|
+
*/
|
|
66
|
+
interface Counterparty {
|
|
67
|
+
/**
|
|
68
|
+
* Financial address of the counterparty.
|
|
69
|
+
*/
|
|
70
|
+
financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
|
|
71
|
+
/**
|
|
72
|
+
* Physical address of the counterparty.
|
|
73
|
+
*/
|
|
74
|
+
physical_address?: Counterparty.PhysicalAddress | null;
|
|
75
|
+
}
|
|
76
|
+
namespace Counterparty {
|
|
77
|
+
interface IbanFinancialAddressRequest {
|
|
78
|
+
/**
|
|
79
|
+
* Name of the account holder.
|
|
80
|
+
*/
|
|
81
|
+
account_holder_name: string;
|
|
82
|
+
/**
|
|
83
|
+
* International Bank Account Number.
|
|
84
|
+
*/
|
|
85
|
+
iban: string;
|
|
86
|
+
/**
|
|
87
|
+
* Discriminator for IBAN financial address.
|
|
88
|
+
*/
|
|
89
|
+
type: 'iban';
|
|
90
|
+
/**
|
|
91
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
92
|
+
*/
|
|
93
|
+
bic?: string | null;
|
|
94
|
+
}
|
|
95
|
+
interface SortCodeFinancialAddress {
|
|
96
|
+
/**
|
|
97
|
+
* Name of the account holder.
|
|
98
|
+
*/
|
|
99
|
+
account_holder_name: string;
|
|
100
|
+
/**
|
|
101
|
+
* UK account number (8 digits).
|
|
102
|
+
*/
|
|
103
|
+
account_number: string;
|
|
104
|
+
/**
|
|
105
|
+
* UK sort code (6 digits).
|
|
106
|
+
*/
|
|
107
|
+
sort_code: string;
|
|
108
|
+
/**
|
|
109
|
+
* Discriminator for UK sort code financial address.
|
|
110
|
+
*/
|
|
111
|
+
type: 'sort_code';
|
|
112
|
+
}
|
|
113
|
+
interface AbaFinancialAddress {
|
|
114
|
+
/**
|
|
115
|
+
* Name of the account holder.
|
|
116
|
+
*/
|
|
117
|
+
account_holder_name: string;
|
|
118
|
+
/**
|
|
119
|
+
* Bank account number.
|
|
120
|
+
*/
|
|
121
|
+
account_number: string;
|
|
122
|
+
/**
|
|
123
|
+
* ABA routing number (9 digits).
|
|
124
|
+
*/
|
|
125
|
+
routing_number: string;
|
|
126
|
+
/**
|
|
127
|
+
* Discriminator for ABA wire financial address.
|
|
128
|
+
*/
|
|
129
|
+
type: 'aba';
|
|
130
|
+
}
|
|
131
|
+
interface BicFinancialAddressRequest {
|
|
132
|
+
/**
|
|
133
|
+
* Name of the account holder.
|
|
134
|
+
*/
|
|
135
|
+
account_holder_name: string;
|
|
136
|
+
/**
|
|
137
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
138
|
+
*/
|
|
139
|
+
account_number: string;
|
|
140
|
+
/**
|
|
141
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
142
|
+
*/
|
|
143
|
+
bic: string;
|
|
144
|
+
/**
|
|
145
|
+
* Discriminator for BIC + local account financial address.
|
|
146
|
+
*/
|
|
147
|
+
type: 'bic';
|
|
148
|
+
/**
|
|
149
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
150
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
151
|
+
*/
|
|
152
|
+
local_bank_code?: string | null;
|
|
153
|
+
}
|
|
154
|
+
interface CryptoWalletFinancialAddress {
|
|
155
|
+
/**
|
|
156
|
+
* Wallet address on the specified blockchain.
|
|
157
|
+
*/
|
|
158
|
+
address: string;
|
|
159
|
+
/**
|
|
160
|
+
* Blockchain network for the crypto wallet.
|
|
161
|
+
*/
|
|
162
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
163
|
+
/**
|
|
164
|
+
* Discriminator for crypto wallet financial address.
|
|
165
|
+
*/
|
|
166
|
+
type: 'crypto_wallet';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Physical address of the counterparty.
|
|
170
|
+
*/
|
|
171
|
+
interface PhysicalAddress {
|
|
172
|
+
/**
|
|
173
|
+
* City or locality.
|
|
174
|
+
*/
|
|
175
|
+
city: string;
|
|
176
|
+
/**
|
|
177
|
+
* ISO 3166-1 alpha-2 country code.
|
|
178
|
+
*/
|
|
179
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
180
|
+
/**
|
|
181
|
+
* Primary street address.
|
|
182
|
+
*/
|
|
183
|
+
line_1: string;
|
|
184
|
+
/**
|
|
185
|
+
* Postal or ZIP code.
|
|
186
|
+
*/
|
|
187
|
+
postal_code: string;
|
|
188
|
+
/**
|
|
189
|
+
* Secondary street address. Optional; omit or send null if not recorded.
|
|
190
|
+
*/
|
|
191
|
+
line_2?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
* State, province, or region. Optional; omit or send null if not recorded.
|
|
194
|
+
*/
|
|
195
|
+
state?: string | null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
export declare namespace Deposits {
|
|
200
|
+
export { type DepositCreateResponse as DepositCreateResponse, type DepositCreateParams as DepositCreateParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=deposits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAA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I,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;YAET;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Deposits = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class Deposits extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
9
|
+
* endpoint is unavailable in live production.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const deposit = await client.simulations.deposits.create({
|
|
14
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* amount: '869.225610155',
|
|
16
|
+
* currency: 'EUR',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/v1/simulations/deposits', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Deposits = Deposits;
|
|
25
|
+
//# sourceMappingURL=deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Deposits extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
6
|
+
* endpoint is unavailable in live production.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const deposit = await client.simulations.deposits.create({
|
|
11
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
12
|
+
* amount: '869.225610155',
|
|
13
|
+
* currency: 'EUR',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/v1/simulations/deposits', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=deposits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.mjs","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.mjs";
|
|
2
|
+
export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.mjs";
|
|
3
|
+
export { Conversions, type ConversionCompleteResponse, type ConversionFailResponse } from "./conversions.mjs";
|
|
4
|
+
export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.mjs";
|
|
5
|
+
export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.mjs";
|
|
6
|
+
export { Simulations } from "./simulations.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,+BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EAAE,WAAW,EAAE,KAAK,0BAA0B,EAAE,KAAK,sBAAsB,EAAE,0BAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,uBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.js";
|
|
2
|
+
export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.js";
|
|
3
|
+
export { Conversions, type ConversionCompleteResponse, type ConversionFailResponse } from "./conversions.js";
|
|
4
|
+
export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.js";
|
|
5
|
+
export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.js";
|
|
6
|
+
export { Simulations } from "./simulations.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,8BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAmB;AACpB,OAAO,EAAE,WAAW,EAAE,KAAK,0BAA0B,EAAE,KAAK,sBAAsB,EAAE,yBAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,sBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,yBAAsB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Simulations = exports.Payouts = exports.Deposits = exports.Conversions = exports.Accounts = exports.AccountPrograms = void 0;
|
|
5
|
+
var account_programs_1 = require("./account-programs.js");
|
|
6
|
+
Object.defineProperty(exports, "AccountPrograms", { enumerable: true, get: function () { return account_programs_1.AccountPrograms; } });
|
|
7
|
+
var accounts_1 = require("./accounts.js");
|
|
8
|
+
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
|
|
9
|
+
var conversions_1 = require("./conversions.js");
|
|
10
|
+
Object.defineProperty(exports, "Conversions", { enumerable: true, get: function () { return conversions_1.Conversions; } });
|
|
11
|
+
var deposits_1 = require("./deposits.js");
|
|
12
|
+
Object.defineProperty(exports, "Deposits", { enumerable: true, get: function () { return deposits_1.Deposits; } });
|
|
13
|
+
var payouts_1 = require("./payouts.js");
|
|
14
|
+
Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return payouts_1.Payouts; } });
|
|
15
|
+
var simulations_1 = require("./simulations.js");
|
|
16
|
+
Object.defineProperty(exports, "Simulations", { enumerable: true, get: function () { return simulations_1.Simulations; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAU4B;AAT1B,mHAAA,eAAe,OAAA;AAUjB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,gDAA0G;AAAjG,0GAAA,WAAW,OAAA;AACpB,0CAA4F;AAAnF,oGAAA,QAAQ,OAAA;AACjB,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,gDAA4C;AAAnC,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { AccountPrograms, } from "./account-programs.mjs";
|
|
3
|
+
export { Accounts, } from "./accounts.mjs";
|
|
4
|
+
export { Conversions } from "./conversions.mjs";
|
|
5
|
+
export { Deposits } from "./deposits.mjs";
|
|
6
|
+
export { Payouts, } from "./payouts.mjs";
|
|
7
|
+
export { Simulations } from "./simulations.mjs";
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,eAAe,GAShB,+BAA2B;AAC5B,OAAO,EACL,QAAQ,GAST,uBAAmB;AACpB,OAAO,EAAE,WAAW,EAAgE,0BAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAwD,uBAAmB;AAC5F,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Payouts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submits a network rejection for an existing payout through the sandbox provider
|
|
7
|
+
* pipeline. This endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.simulations.payouts.reject(
|
|
12
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* { reason: 'invalid_routing_number' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
reject(id: string, body: PayoutRejectParams, options?: RequestOptions): APIPromise<PayoutRejectResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Submits a successful send event for an existing payout through the sandbox
|
|
20
|
+
* provider pipeline. This endpoint is unavailable in live production.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.simulations.payouts.send(
|
|
25
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
send(id: string, options?: RequestOptions): APIPromise<PayoutSendResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface PayoutRejectResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Payout whose lifecycle is being simulated.
|
|
34
|
+
*/
|
|
35
|
+
payout_id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Resource type discriminator.
|
|
38
|
+
*/
|
|
39
|
+
type: 'payout_simulation';
|
|
40
|
+
}
|
|
41
|
+
export interface PayoutSendResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Payout whose lifecycle is being simulated.
|
|
44
|
+
*/
|
|
45
|
+
payout_id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Resource type discriminator.
|
|
48
|
+
*/
|
|
49
|
+
type: 'payout_simulation';
|
|
50
|
+
}
|
|
51
|
+
export interface PayoutRejectParams {
|
|
52
|
+
/**
|
|
53
|
+
* Reason the sandbox provider rejects the payout. Use `invalid_routing_number` for
|
|
54
|
+
* domestic rails and `invalid_account_format` for a SWIFT correspondent rejecting
|
|
55
|
+
* on the beneficiary details.
|
|
56
|
+
*/
|
|
57
|
+
reason: 'invalid_routing_number' | 'invalid_account_format';
|
|
58
|
+
}
|
|
59
|
+
export declare namespace Payouts {
|
|
60
|
+
export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=payouts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG3E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;CAC7D;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|