@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
|
@@ -34,55 +34,45 @@ export interface DepositRetrieveResponse {
|
|
|
34
34
|
id: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* ID of the account that was credited with the deposit.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
account_id: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
amount: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* ID of the counterparty that sent the money, or null when not known.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
counterparty_id: string | null;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Currency code (ISO 4217 or crypto).
|
|
53
53
|
*/
|
|
54
54
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
destination_account_id: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Payment rail or blockchain used for the deposit, or null when unknown.
|
|
57
|
+
* Payment scheme or blockchain used for the deposit, or null when unknown.
|
|
63
58
|
*/
|
|
64
59
|
rail:
|
|
60
|
+
| 'sepa'
|
|
65
61
|
| 'sepa_instant'
|
|
66
62
|
| 'faster_payments'
|
|
67
|
-
| 'sepa'
|
|
68
|
-
| 'elixir'
|
|
69
|
-
| 'express_elixir'
|
|
70
|
-
| 'sek_account_to_account'
|
|
71
|
-
| 'sumclearing'
|
|
72
|
-
| 'straksclearing'
|
|
73
63
|
| 'swift'
|
|
74
64
|
| 'internal'
|
|
75
65
|
| 'target'
|
|
76
66
|
| 'ach'
|
|
77
67
|
| 'fedwire'
|
|
78
|
-
| '
|
|
79
|
-
| '
|
|
80
|
-
| '
|
|
81
|
-
| '
|
|
82
|
-
| '
|
|
83
|
-
| '
|
|
84
|
-
| '
|
|
85
|
-
| '
|
|
68
|
+
| 'bitcoin'
|
|
69
|
+
| 'bitcoin_testnet4'
|
|
70
|
+
| 'ethereum'
|
|
71
|
+
| 'ethereum_sepolia'
|
|
72
|
+
| 'solana'
|
|
73
|
+
| 'solana_devnet'
|
|
74
|
+
| 'polygon'
|
|
75
|
+
| 'polygon_amoy'
|
|
86
76
|
| null;
|
|
87
77
|
|
|
88
78
|
/**
|
|
@@ -91,21 +81,24 @@ export interface DepositRetrieveResponse {
|
|
|
91
81
|
returns: Array<string>;
|
|
92
82
|
|
|
93
83
|
/**
|
|
94
|
-
*
|
|
84
|
+
* ISO 8601 UTC timestamp when the deposit was settled.
|
|
95
85
|
*/
|
|
96
|
-
|
|
97
|
-
| DepositRetrieveResponse.Iban
|
|
98
|
-
| DepositRetrieveResponse.UkSortCode
|
|
99
|
-
| DepositRetrieveResponse.Aba
|
|
100
|
-
| DepositRetrieveResponse.Wallet;
|
|
86
|
+
settled_at: string;
|
|
101
87
|
|
|
102
88
|
/**
|
|
103
89
|
* Current status of the deposit.
|
|
104
90
|
*/
|
|
105
|
-
status: '
|
|
91
|
+
status: 'settled';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
95
|
+
* for SWIFT payments.
|
|
96
|
+
*/
|
|
97
|
+
tracking_reference: string | null;
|
|
106
98
|
|
|
107
99
|
/**
|
|
108
|
-
* Transaction hash for crypto deposits, or null when not known.
|
|
100
|
+
* Transaction hash for crypto deposits, or null when not known. Only blockchain
|
|
101
|
+
* rails support this field.
|
|
109
102
|
*/
|
|
110
103
|
tx_hash: string | null;
|
|
111
104
|
|
|
@@ -115,102 +108,10 @@ export interface DepositRetrieveResponse {
|
|
|
115
108
|
type: 'deposit';
|
|
116
109
|
|
|
117
110
|
/**
|
|
118
|
-
*
|
|
111
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
112
|
+
* support this field.
|
|
119
113
|
*/
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export namespace DepositRetrieveResponse {
|
|
124
|
-
export interface Iban {
|
|
125
|
-
/**
|
|
126
|
-
* Name of the account holder.
|
|
127
|
-
*/
|
|
128
|
-
account_holder_name: string;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Bank Identifier Code, or null if not provided.
|
|
132
|
-
*/
|
|
133
|
-
bic: string | null;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* International Bank Account Number.
|
|
137
|
-
*/
|
|
138
|
-
iban: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Discriminator for IBAN source.
|
|
142
|
-
*/
|
|
143
|
-
type: 'iban';
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface UkSortCode {
|
|
147
|
-
/**
|
|
148
|
-
* Name of the account holder.
|
|
149
|
-
*/
|
|
150
|
-
account_holder_name: string;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* UK account number (8 digits).
|
|
154
|
-
*/
|
|
155
|
-
account_number: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* UK sort code (6 digits).
|
|
159
|
-
*/
|
|
160
|
-
sort_code: string;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Discriminator for UK sort code source.
|
|
164
|
-
*/
|
|
165
|
-
type: 'sort_code';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface Aba {
|
|
169
|
-
/**
|
|
170
|
-
* Name of the account holder.
|
|
171
|
-
*/
|
|
172
|
-
account_holder_name: string;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Bank account number.
|
|
176
|
-
*/
|
|
177
|
-
account_number: string;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* ABA routing number (9 digits).
|
|
181
|
-
*/
|
|
182
|
-
routing_number: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Discriminator for ABA wire source.
|
|
186
|
-
*/
|
|
187
|
-
type: 'aba';
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export interface Wallet {
|
|
191
|
-
/**
|
|
192
|
-
* Wallet address on the specified blockchain.
|
|
193
|
-
*/
|
|
194
|
-
address: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Blockchain network for the crypto wallet.
|
|
198
|
-
*/
|
|
199
|
-
blockchain:
|
|
200
|
-
| 'bitcoin'
|
|
201
|
-
| 'ethereum'
|
|
202
|
-
| 'solana'
|
|
203
|
-
| 'polygon'
|
|
204
|
-
| 'bitcoin_testnet4'
|
|
205
|
-
| 'ethereum_sepolia'
|
|
206
|
-
| 'solana_devnet'
|
|
207
|
-
| 'polygon_amoy';
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Discriminator for crypto wallet source.
|
|
211
|
-
*/
|
|
212
|
-
type: 'crypto_wallet';
|
|
213
|
-
}
|
|
114
|
+
unstructured_remittance_information: string | null;
|
|
214
115
|
}
|
|
215
116
|
|
|
216
117
|
export interface DepositListResponse {
|
|
@@ -220,55 +121,45 @@ export interface DepositListResponse {
|
|
|
220
121
|
id: string;
|
|
221
122
|
|
|
222
123
|
/**
|
|
223
|
-
*
|
|
124
|
+
* ID of the account that was credited with the deposit.
|
|
224
125
|
*/
|
|
225
|
-
|
|
126
|
+
account_id: string;
|
|
226
127
|
|
|
227
128
|
/**
|
|
228
|
-
*
|
|
129
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
229
130
|
*/
|
|
230
|
-
|
|
131
|
+
amount: string;
|
|
231
132
|
|
|
232
133
|
/**
|
|
233
|
-
*
|
|
134
|
+
* ID of the counterparty that sent the money, or null when not known.
|
|
234
135
|
*/
|
|
235
|
-
|
|
136
|
+
counterparty_id: string | null;
|
|
236
137
|
|
|
237
138
|
/**
|
|
238
|
-
*
|
|
139
|
+
* Currency code (ISO 4217 or crypto).
|
|
239
140
|
*/
|
|
240
141
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
241
142
|
|
|
242
143
|
/**
|
|
243
|
-
*
|
|
244
|
-
*/
|
|
245
|
-
destination_account_id: string;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Payment rail or blockchain used for the deposit, or null when unknown.
|
|
144
|
+
* Payment scheme or blockchain used for the deposit, or null when unknown.
|
|
249
145
|
*/
|
|
250
146
|
rail:
|
|
147
|
+
| 'sepa'
|
|
251
148
|
| 'sepa_instant'
|
|
252
149
|
| 'faster_payments'
|
|
253
|
-
| 'sepa'
|
|
254
|
-
| 'elixir'
|
|
255
|
-
| 'express_elixir'
|
|
256
|
-
| 'sek_account_to_account'
|
|
257
|
-
| 'sumclearing'
|
|
258
|
-
| 'straksclearing'
|
|
259
150
|
| 'swift'
|
|
260
151
|
| 'internal'
|
|
261
152
|
| 'target'
|
|
262
153
|
| 'ach'
|
|
263
154
|
| 'fedwire'
|
|
264
|
-
| '
|
|
265
|
-
| '
|
|
266
|
-
| '
|
|
267
|
-
| '
|
|
268
|
-
| '
|
|
269
|
-
| '
|
|
270
|
-
| '
|
|
271
|
-
| '
|
|
155
|
+
| 'bitcoin'
|
|
156
|
+
| 'bitcoin_testnet4'
|
|
157
|
+
| 'ethereum'
|
|
158
|
+
| 'ethereum_sepolia'
|
|
159
|
+
| 'solana'
|
|
160
|
+
| 'solana_devnet'
|
|
161
|
+
| 'polygon'
|
|
162
|
+
| 'polygon_amoy'
|
|
272
163
|
| null;
|
|
273
164
|
|
|
274
165
|
/**
|
|
@@ -277,21 +168,24 @@ export interface DepositListResponse {
|
|
|
277
168
|
returns: Array<string>;
|
|
278
169
|
|
|
279
170
|
/**
|
|
280
|
-
*
|
|
171
|
+
* ISO 8601 UTC timestamp when the deposit was settled.
|
|
281
172
|
*/
|
|
282
|
-
|
|
283
|
-
| DepositListResponse.Iban
|
|
284
|
-
| DepositListResponse.UkSortCode
|
|
285
|
-
| DepositListResponse.Aba
|
|
286
|
-
| DepositListResponse.Wallet;
|
|
173
|
+
settled_at: string;
|
|
287
174
|
|
|
288
175
|
/**
|
|
289
176
|
* Current status of the deposit.
|
|
290
177
|
*/
|
|
291
|
-
status: '
|
|
178
|
+
status: 'settled';
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
182
|
+
* for SWIFT payments.
|
|
183
|
+
*/
|
|
184
|
+
tracking_reference: string | null;
|
|
292
185
|
|
|
293
186
|
/**
|
|
294
|
-
* Transaction hash for crypto deposits, or null when not known.
|
|
187
|
+
* Transaction hash for crypto deposits, or null when not known. Only blockchain
|
|
188
|
+
* rails support this field.
|
|
295
189
|
*/
|
|
296
190
|
tx_hash: string | null;
|
|
297
191
|
|
|
@@ -301,123 +195,26 @@ export interface DepositListResponse {
|
|
|
301
195
|
type: 'deposit';
|
|
302
196
|
|
|
303
197
|
/**
|
|
304
|
-
*
|
|
198
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
199
|
+
* support this field.
|
|
305
200
|
*/
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
export namespace DepositListResponse {
|
|
310
|
-
export interface Iban {
|
|
311
|
-
/**
|
|
312
|
-
* Name of the account holder.
|
|
313
|
-
*/
|
|
314
|
-
account_holder_name: string;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Bank Identifier Code, or null if not provided.
|
|
318
|
-
*/
|
|
319
|
-
bic: string | null;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* International Bank Account Number.
|
|
323
|
-
*/
|
|
324
|
-
iban: string;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Discriminator for IBAN source.
|
|
328
|
-
*/
|
|
329
|
-
type: 'iban';
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export interface UkSortCode {
|
|
333
|
-
/**
|
|
334
|
-
* Name of the account holder.
|
|
335
|
-
*/
|
|
336
|
-
account_holder_name: string;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* UK account number (8 digits).
|
|
340
|
-
*/
|
|
341
|
-
account_number: string;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* UK sort code (6 digits).
|
|
345
|
-
*/
|
|
346
|
-
sort_code: string;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Discriminator for UK sort code source.
|
|
350
|
-
*/
|
|
351
|
-
type: 'sort_code';
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface Aba {
|
|
355
|
-
/**
|
|
356
|
-
* Name of the account holder.
|
|
357
|
-
*/
|
|
358
|
-
account_holder_name: string;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Bank account number.
|
|
362
|
-
*/
|
|
363
|
-
account_number: string;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* ABA routing number (9 digits).
|
|
367
|
-
*/
|
|
368
|
-
routing_number: string;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Discriminator for ABA wire source.
|
|
372
|
-
*/
|
|
373
|
-
type: 'aba';
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface Wallet {
|
|
377
|
-
/**
|
|
378
|
-
* Wallet address on the specified blockchain.
|
|
379
|
-
*/
|
|
380
|
-
address: string;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Blockchain network for the crypto wallet.
|
|
384
|
-
*/
|
|
385
|
-
blockchain:
|
|
386
|
-
| 'bitcoin'
|
|
387
|
-
| 'ethereum'
|
|
388
|
-
| 'solana'
|
|
389
|
-
| 'polygon'
|
|
390
|
-
| 'bitcoin_testnet4'
|
|
391
|
-
| 'ethereum_sepolia'
|
|
392
|
-
| 'solana_devnet'
|
|
393
|
-
| 'polygon_amoy';
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Discriminator for crypto wallet source.
|
|
397
|
-
*/
|
|
398
|
-
type: 'crypto_wallet';
|
|
399
|
-
}
|
|
201
|
+
unstructured_remittance_information: string | null;
|
|
400
202
|
}
|
|
401
203
|
|
|
402
204
|
export interface DepositListParams extends CursorPageParams {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Filter by deposit status.
|
|
407
|
-
*/
|
|
408
|
-
status?: 'received' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
205
|
+
settled_at?: DepositListParams.SettledAt;
|
|
409
206
|
}
|
|
410
207
|
|
|
411
208
|
export namespace DepositListParams {
|
|
412
|
-
export interface
|
|
209
|
+
export interface SettledAt {
|
|
413
210
|
/**
|
|
414
|
-
* Include deposits whose
|
|
211
|
+
* Include deposits whose settled_at is greater than or equal to this ISO 8601
|
|
415
212
|
* timestamp.
|
|
416
213
|
*/
|
|
417
214
|
gte?: string;
|
|
418
215
|
|
|
419
216
|
/**
|
|
420
|
-
* Include deposits whose
|
|
217
|
+
* Include deposits whose settled_at is less than or equal to this ISO 8601
|
|
421
218
|
* timestamp.
|
|
422
219
|
*/
|
|
423
220
|
lte?: string;
|
package/src/resources/events.ts
CHANGED
|
@@ -55,15 +55,17 @@ export interface EventRetrieveResponse {
|
|
|
55
55
|
* Event type.
|
|
56
56
|
*/
|
|
57
57
|
event_type:
|
|
58
|
-
| 'payout.created'
|
|
59
58
|
| 'payout.initiated'
|
|
60
|
-
| 'payout.
|
|
59
|
+
| 'payout.submitted'
|
|
60
|
+
| 'payout.sent'
|
|
61
61
|
| 'payout.failed'
|
|
62
|
+
| 'payout.returned'
|
|
62
63
|
| 'return.initiated'
|
|
63
|
-
| 'return.
|
|
64
|
+
| 'return.submitted'
|
|
65
|
+
| 'return.sent'
|
|
64
66
|
| 'return.failed'
|
|
65
67
|
| 'return.returned'
|
|
66
|
-
| 'deposit.
|
|
68
|
+
| 'deposit.settled'
|
|
67
69
|
| 'conversion.created'
|
|
68
70
|
| 'conversion.completed'
|
|
69
71
|
| 'conversion.failed'
|
|
@@ -104,15 +106,17 @@ export interface EventListResponse {
|
|
|
104
106
|
* Event type.
|
|
105
107
|
*/
|
|
106
108
|
event_type:
|
|
107
|
-
| 'payout.created'
|
|
108
109
|
| 'payout.initiated'
|
|
109
|
-
| 'payout.
|
|
110
|
+
| 'payout.submitted'
|
|
111
|
+
| 'payout.sent'
|
|
110
112
|
| 'payout.failed'
|
|
113
|
+
| 'payout.returned'
|
|
111
114
|
| 'return.initiated'
|
|
112
|
-
| 'return.
|
|
115
|
+
| 'return.submitted'
|
|
116
|
+
| 'return.sent'
|
|
113
117
|
| 'return.failed'
|
|
114
118
|
| 'return.returned'
|
|
115
|
-
| 'deposit.
|
|
119
|
+
| 'deposit.settled'
|
|
116
120
|
| 'conversion.created'
|
|
117
121
|
| 'conversion.completed'
|
|
118
122
|
| 'conversion.failed'
|
|
@@ -133,15 +137,17 @@ export interface EventListParams extends CursorPageParams {
|
|
|
133
137
|
* Filter by event type.
|
|
134
138
|
*/
|
|
135
139
|
event_type?:
|
|
136
|
-
| 'payout.created'
|
|
137
140
|
| 'payout.initiated'
|
|
138
|
-
| 'payout.
|
|
141
|
+
| 'payout.submitted'
|
|
142
|
+
| 'payout.sent'
|
|
139
143
|
| 'payout.failed'
|
|
144
|
+
| 'payout.returned'
|
|
140
145
|
| 'return.initiated'
|
|
141
|
-
| 'return.
|
|
146
|
+
| 'return.submitted'
|
|
147
|
+
| 'return.sent'
|
|
142
148
|
| 'return.failed'
|
|
143
149
|
| 'return.returned'
|
|
144
|
-
| 'deposit.
|
|
150
|
+
| 'deposit.settled'
|
|
145
151
|
| 'conversion.created'
|
|
146
152
|
| 'conversion.completed'
|
|
147
153
|
| 'conversion.failed'
|
package/src/resources/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ export {
|
|
|
19
19
|
type AccountProgramListResponse,
|
|
20
20
|
type AccountProgramRetrieveBalanceResponse,
|
|
21
21
|
type AccountProgramListParams,
|
|
22
|
+
type AccountProgramRetrieveBalanceParams,
|
|
22
23
|
type AccountProgramListResponsesCursorPage,
|
|
23
24
|
} from './account-programs';
|
|
24
25
|
export {
|
|
@@ -33,6 +34,7 @@ export {
|
|
|
33
34
|
type AccountCreateParams,
|
|
34
35
|
type AccountListParams,
|
|
35
36
|
type AccountCloseParams,
|
|
37
|
+
type AccountRetrieveBalanceParams,
|
|
36
38
|
type AccountListResponsesCursorPage,
|
|
37
39
|
} from './accounts';
|
|
38
40
|
export {
|
|
@@ -44,6 +46,18 @@ export {
|
|
|
44
46
|
type ConversionListParams,
|
|
45
47
|
type ConversionListResponsesCursorPage,
|
|
46
48
|
} from './conversions';
|
|
49
|
+
export {
|
|
50
|
+
Counterparties,
|
|
51
|
+
type CounterpartyCreateResponse,
|
|
52
|
+
type CounterpartyRetrieveResponse,
|
|
53
|
+
type CounterpartyUpdateResponse,
|
|
54
|
+
type CounterpartyListResponse,
|
|
55
|
+
type CounterpartyBlockResponse,
|
|
56
|
+
type CounterpartyCreateParams,
|
|
57
|
+
type CounterpartyUpdateParams,
|
|
58
|
+
type CounterpartyListParams,
|
|
59
|
+
type CounterpartyListResponsesCursorPage,
|
|
60
|
+
} from './counterparties';
|
|
47
61
|
export {
|
|
48
62
|
Deposits,
|
|
49
63
|
type DepositRetrieveResponse,
|
|
@@ -78,6 +92,7 @@ export {
|
|
|
78
92
|
type ReturnListResponsesCursorPage,
|
|
79
93
|
} from './returns';
|
|
80
94
|
export { Scopes, type ScopeListResponse } from './scopes';
|
|
95
|
+
export { Simulations } from './simulations/simulations';
|
|
81
96
|
export {
|
|
82
97
|
Transactions,
|
|
83
98
|
type TransactionRetrieveResponse,
|
|
@@ -108,15 +123,17 @@ export {
|
|
|
108
123
|
} from './webhook-subscriptions';
|
|
109
124
|
export {
|
|
110
125
|
Webhooks,
|
|
111
|
-
type PayoutCreatedWebhookEvent,
|
|
112
126
|
type PayoutInitiatedWebhookEvent,
|
|
113
|
-
type
|
|
127
|
+
type PayoutSubmittedWebhookEvent,
|
|
128
|
+
type PayoutSentWebhookEvent,
|
|
114
129
|
type PayoutFailedWebhookEvent,
|
|
130
|
+
type PayoutReturnedWebhookEvent,
|
|
115
131
|
type ReturnInitiatedWebhookEvent,
|
|
116
|
-
type
|
|
132
|
+
type ReturnSubmittedWebhookEvent,
|
|
133
|
+
type ReturnSentWebhookEvent,
|
|
117
134
|
type ReturnFailedWebhookEvent,
|
|
118
135
|
type ReturnReturnedWebhookEvent,
|
|
119
|
-
type
|
|
136
|
+
type DepositSettledWebhookEvent,
|
|
120
137
|
type ConversionCreatedWebhookEvent,
|
|
121
138
|
type ConversionCompletedWebhookEvent,
|
|
122
139
|
type ConversionFailedWebhookEvent,
|