@augustusbank/typescript-sdk 0.27.0 → 0.28.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/accounts.d.mts +186 -114
  4. package/resources/accounts.d.mts.map +1 -1
  5. package/resources/accounts.d.ts +186 -114
  6. package/resources/accounts.d.ts.map +1 -1
  7. package/resources/counterparties.d.mts +243 -97
  8. package/resources/counterparties.d.mts.map +1 -1
  9. package/resources/counterparties.d.ts +243 -97
  10. package/resources/counterparties.d.ts.map +1 -1
  11. package/resources/counterparties.js +3 -2
  12. package/resources/counterparties.js.map +1 -1
  13. package/resources/counterparties.mjs +3 -2
  14. package/resources/counterparties.mjs.map +1 -1
  15. package/resources/payouts.d.mts +1 -1
  16. package/resources/payouts.d.ts +1 -1
  17. package/resources/payouts.js +1 -1
  18. package/resources/payouts.mjs +1 -1
  19. package/resources/simulations/account-programs.d.mts +37 -22
  20. package/resources/simulations/account-programs.d.mts.map +1 -1
  21. package/resources/simulations/account-programs.d.ts +37 -22
  22. package/resources/simulations/account-programs.d.ts.map +1 -1
  23. package/resources/simulations/account-programs.js +3 -2
  24. package/resources/simulations/account-programs.js.map +1 -1
  25. package/resources/simulations/account-programs.mjs +3 -2
  26. package/resources/simulations/account-programs.mjs.map +1 -1
  27. package/resources/simulations/accounts.d.mts +37 -22
  28. package/resources/simulations/accounts.d.mts.map +1 -1
  29. package/resources/simulations/accounts.d.ts +37 -22
  30. package/resources/simulations/accounts.d.ts.map +1 -1
  31. package/resources/simulations/accounts.js +4 -3
  32. package/resources/simulations/accounts.js.map +1 -1
  33. package/resources/simulations/accounts.mjs +4 -3
  34. package/resources/simulations/accounts.mjs.map +1 -1
  35. package/resources/simulations/deposits.d.mts +41 -20
  36. package/resources/simulations/deposits.d.mts.map +1 -1
  37. package/resources/simulations/deposits.d.ts +41 -20
  38. package/resources/simulations/deposits.d.ts.map +1 -1
  39. package/resources/simulations/deposits.js +1 -1
  40. package/resources/simulations/deposits.mjs +1 -1
  41. package/resources/transactions.d.mts +62 -38
  42. package/resources/transactions.d.mts.map +1 -1
  43. package/resources/transactions.d.ts +62 -38
  44. package/resources/transactions.d.ts.map +1 -1
  45. package/resources/webhooks.d.mts +258 -114
  46. package/resources/webhooks.d.mts.map +1 -1
  47. package/resources/webhooks.d.ts +258 -114
  48. package/resources/webhooks.d.ts.map +1 -1
  49. package/src/resources/accounts.ts +216 -126
  50. package/src/resources/counterparties.ts +286 -107
  51. package/src/resources/payouts.ts +1 -1
  52. package/src/resources/simulations/account-programs.ts +42 -25
  53. package/src/resources/simulations/accounts.ts +42 -25
  54. package/src/resources/simulations/deposits.ts +46 -22
  55. package/src/resources/transactions.ts +72 -42
  56. package/src/resources/webhooks.ts +306 -126
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -16,7 +16,7 @@ export class Payouts extends APIResource {
16
16
  * account_id: '550e8400-e29b-41d4-a716-44665544000b',
17
17
  * amount: '100.50',
18
18
  * counterparty_id: '550e8400-e29b-41d4-a716-446655440000',
19
- * currency: 'EUR',
19
+ * currency: 'USD',
20
20
  * });
21
21
  * ```
22
22
  */
@@ -62,8 +62,9 @@ export class AccountPrograms extends APIResource {
62
62
  * {
63
63
  * destination: {
64
64
  * account_holder_name: 'Acme Sandbox Ltd.',
65
- * iban: 'DE89370400440532013000',
66
- * type: 'iban',
65
+ * account_number: '000123456789',
66
+ * routing_number: '110000000',
67
+ * type: 'aba',
67
68
  * },
68
69
  * },
69
70
  * );
@@ -185,7 +186,7 @@ export interface AccountProgramCreateParams {
185
186
  /**
186
187
  * Account program type.
187
188
  */
188
- type: 'fbo_program' | 'fbo_sponsored';
189
+ type: 'fbo_program' | 'fbo_sponsored' | 'operating' | 'crypto';
189
190
  }
190
191
 
191
192
  export interface AccountProgramCloseParams {
@@ -201,76 +202,92 @@ export interface AccountProgramDrainParams {
201
202
  * under the program is drained.
202
203
  */
203
204
  destination:
205
+ | AccountProgramDrainParams.AbaFinancialAddressRequest
204
206
  | AccountProgramDrainParams.IbanFinancialAddressRequest
205
- | AccountProgramDrainParams.SortCodeFinancialAddressRequest
206
- | AccountProgramDrainParams.AbaFinancialAddressRequest;
207
+ | AccountProgramDrainParams.SortCodeFinancialAddressRequest;
207
208
  }
208
209
 
209
210
  export namespace AccountProgramDrainParams {
210
- export interface IbanFinancialAddressRequest {
211
+ export interface AbaFinancialAddressRequest {
211
212
  /**
212
213
  * Name of the account holder.
213
214
  */
214
215
  account_holder_name: string;
215
216
 
216
217
  /**
217
- * International Bank Account Number.
218
+ * Bank account number.
218
219
  */
219
- iban: string;
220
+ account_number: string;
220
221
 
221
222
  /**
222
- * Discriminator for IBAN financial address.
223
+ * ABA routing number (9 digits).
223
224
  */
224
- type: 'iban';
225
+ routing_number: string;
225
226
 
226
227
  /**
227
- * Bank Identifier Code. Optional; omit or send null if not provided.
228
+ * Discriminator for ABA wire financial address.
228
229
  */
229
- bic?: string | null;
230
+ type: 'aba';
231
+
232
+ /**
233
+ * Whether the account is a checking or a savings account. Optional; omit or send
234
+ * null if not provided. Some destination countries require it (for example the
235
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
236
+ * code. A payment to an account without one is sent as checking.
237
+ */
238
+ account_type?: 'checking' | 'savings' | null;
230
239
  }
231
240
 
232
- export interface SortCodeFinancialAddressRequest {
241
+ export interface IbanFinancialAddressRequest {
233
242
  /**
234
243
  * Name of the account holder.
235
244
  */
236
245
  account_holder_name: string;
237
246
 
238
247
  /**
239
- * UK account number (8 digits).
248
+ * International Bank Account Number.
240
249
  */
241
- account_number: string;
250
+ iban: string;
242
251
 
243
252
  /**
244
- * UK sort code (6 digits).
253
+ * Discriminator for IBAN financial address.
245
254
  */
246
- sort_code: string;
255
+ type: 'iban';
247
256
 
248
257
  /**
249
- * Discriminator for UK sort code financial address.
258
+ * Whether the account is a checking or a savings account. Optional; omit or send
259
+ * null if not provided. Some destination countries require it (for example the
260
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
261
+ * code. A payment to an account without one is sent as checking.
250
262
  */
251
- type: 'sort_code';
263
+ account_type?: 'checking' | 'savings' | null;
264
+
265
+ /**
266
+ * Bank Identifier Code. Optional; omit or send null if not provided.
267
+ */
268
+ bic?: string | null;
252
269
  }
253
270
 
254
- export interface AbaFinancialAddressRequest {
271
+ export interface SortCodeFinancialAddressRequest {
255
272
  /**
256
273
  * Name of the account holder.
257
274
  */
258
275
  account_holder_name: string;
259
276
 
260
277
  /**
261
- * Bank account number.
278
+ * UK account number (8 digits).
262
279
  */
263
280
  account_number: string;
264
281
 
265
282
  /**
266
- * ABA routing number (9 digits).
283
+ * UK sort code (6 digits).
267
284
  */
268
- routing_number: string;
285
+ sort_code: string;
269
286
 
270
287
  /**
271
- * Discriminator for ABA wire financial address.
288
+ * Discriminator for UK sort code financial address.
272
289
  */
273
- type: 'aba';
290
+ type: 'sort_code';
274
291
  }
275
292
  }
276
293
 
@@ -13,7 +13,7 @@ export class Accounts extends APIResource {
13
13
  * @example
14
14
  * ```ts
15
15
  * const account = await client.simulations.accounts.create({
16
- * label: 'Operating EUR account',
16
+ * label: 'Operating USD account',
17
17
  * type: 'operating',
18
18
  * });
19
19
  * ```
@@ -51,8 +51,9 @@ export class Accounts extends APIResource {
51
51
  * {
52
52
  * destination: {
53
53
  * account_holder_name: 'Acme Sandbox Ltd.',
54
- * iban: 'DE89370400440532013000',
55
- * type: 'iban',
54
+ * account_number: '000123456789',
55
+ * routing_number: '110000000',
56
+ * type: 'aba',
56
57
  * },
57
58
  * },
58
59
  * );
@@ -184,76 +185,92 @@ export interface AccountDrainParams {
184
185
  * drained.
185
186
  */
186
187
  destination:
188
+ | AccountDrainParams.AbaFinancialAddressRequest
187
189
  | AccountDrainParams.IbanFinancialAddressRequest
188
- | AccountDrainParams.SortCodeFinancialAddressRequest
189
- | AccountDrainParams.AbaFinancialAddressRequest;
190
+ | AccountDrainParams.SortCodeFinancialAddressRequest;
190
191
  }
191
192
 
192
193
  export namespace AccountDrainParams {
193
- export interface IbanFinancialAddressRequest {
194
+ export interface AbaFinancialAddressRequest {
194
195
  /**
195
196
  * Name of the account holder.
196
197
  */
197
198
  account_holder_name: string;
198
199
 
199
200
  /**
200
- * International Bank Account Number.
201
+ * Bank account number.
201
202
  */
202
- iban: string;
203
+ account_number: string;
203
204
 
204
205
  /**
205
- * Discriminator for IBAN financial address.
206
+ * ABA routing number (9 digits).
206
207
  */
207
- type: 'iban';
208
+ routing_number: string;
208
209
 
209
210
  /**
210
- * Bank Identifier Code. Optional; omit or send null if not provided.
211
+ * Discriminator for ABA wire financial address.
211
212
  */
212
- bic?: string | null;
213
+ type: 'aba';
214
+
215
+ /**
216
+ * Whether the account is a checking or a savings account. Optional; omit or send
217
+ * null if not provided. Some destination countries require it (for example the
218
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
219
+ * code. A payment to an account without one is sent as checking.
220
+ */
221
+ account_type?: 'checking' | 'savings' | null;
213
222
  }
214
223
 
215
- export interface SortCodeFinancialAddressRequest {
224
+ export interface IbanFinancialAddressRequest {
216
225
  /**
217
226
  * Name of the account holder.
218
227
  */
219
228
  account_holder_name: string;
220
229
 
221
230
  /**
222
- * UK account number (8 digits).
231
+ * International Bank Account Number.
223
232
  */
224
- account_number: string;
233
+ iban: string;
225
234
 
226
235
  /**
227
- * UK sort code (6 digits).
236
+ * Discriminator for IBAN financial address.
228
237
  */
229
- sort_code: string;
238
+ type: 'iban';
230
239
 
231
240
  /**
232
- * Discriminator for UK sort code financial address.
241
+ * Whether the account is a checking or a savings account. Optional; omit or send
242
+ * null if not provided. Some destination countries require it (for example the
243
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
244
+ * code. A payment to an account without one is sent as checking.
233
245
  */
234
- type: 'sort_code';
246
+ account_type?: 'checking' | 'savings' | null;
247
+
248
+ /**
249
+ * Bank Identifier Code. Optional; omit or send null if not provided.
250
+ */
251
+ bic?: string | null;
235
252
  }
236
253
 
237
- export interface AbaFinancialAddressRequest {
254
+ export interface SortCodeFinancialAddressRequest {
238
255
  /**
239
256
  * Name of the account holder.
240
257
  */
241
258
  account_holder_name: string;
242
259
 
243
260
  /**
244
- * Bank account number.
261
+ * UK account number (8 digits).
245
262
  */
246
263
  account_number: string;
247
264
 
248
265
  /**
249
- * ABA routing number (9 digits).
266
+ * UK sort code (6 digits).
250
267
  */
251
- routing_number: string;
268
+ sort_code: string;
252
269
 
253
270
  /**
254
- * Discriminator for ABA wire financial address.
271
+ * Discriminator for UK sort code financial address.
255
272
  */
256
- type: 'aba';
273
+ type: 'sort_code';
257
274
  }
258
275
  }
259
276
 
@@ -14,7 +14,7 @@ export class Deposits extends APIResource {
14
14
  * const deposit = await client.simulations.deposits.create({
15
15
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
16
16
  * amount: '100.50',
17
- * currency: 'EUR',
17
+ * currency: 'USD',
18
18
  * });
19
19
  * ```
20
20
  */
@@ -95,9 +95,9 @@ export namespace DepositCreateParams {
95
95
  * Financial address of the counterparty.
96
96
  */
97
97
  financial_address:
98
+ | Counterparty.AbaFinancialAddressRequest
98
99
  | Counterparty.IbanFinancialAddressRequest
99
100
  | Counterparty.SortCodeFinancialAddressRequest
100
- | Counterparty.AbaFinancialAddressRequest
101
101
  | Counterparty.BicFinancialAddressRequest
102
102
  | Counterparty.CryptoWalletFinancialAddress;
103
103
 
@@ -108,70 +108,86 @@ export namespace DepositCreateParams {
108
108
  }
109
109
 
110
110
  export namespace Counterparty {
111
- export interface IbanFinancialAddressRequest {
111
+ export interface AbaFinancialAddressRequest {
112
112
  /**
113
113
  * Name of the account holder.
114
114
  */
115
115
  account_holder_name: string;
116
116
 
117
117
  /**
118
- * International Bank Account Number.
118
+ * Bank account number.
119
119
  */
120
- iban: string;
120
+ account_number: string;
121
121
 
122
122
  /**
123
- * Discriminator for IBAN financial address.
123
+ * ABA routing number (9 digits).
124
124
  */
125
- type: 'iban';
125
+ routing_number: string;
126
126
 
127
127
  /**
128
- * Bank Identifier Code. Optional; omit or send null if not provided.
128
+ * Discriminator for ABA wire financial address.
129
129
  */
130
- bic?: string | null;
130
+ type: 'aba';
131
+
132
+ /**
133
+ * Whether the account is a checking or a savings account. Optional; omit or send
134
+ * null if not provided. Some destination countries require it (for example the
135
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
136
+ * code. A payment to an account without one is sent as checking.
137
+ */
138
+ account_type?: 'checking' | 'savings' | null;
131
139
  }
132
140
 
133
- export interface SortCodeFinancialAddressRequest {
141
+ export interface IbanFinancialAddressRequest {
134
142
  /**
135
143
  * Name of the account holder.
136
144
  */
137
145
  account_holder_name: string;
138
146
 
139
147
  /**
140
- * UK account number (8 digits).
148
+ * International Bank Account Number.
141
149
  */
142
- account_number: string;
150
+ iban: string;
143
151
 
144
152
  /**
145
- * UK sort code (6 digits).
153
+ * Discriminator for IBAN financial address.
146
154
  */
147
- sort_code: string;
155
+ type: 'iban';
148
156
 
149
157
  /**
150
- * Discriminator for UK sort code financial address.
158
+ * Whether the account is a checking or a savings account. Optional; omit or send
159
+ * null if not provided. Some destination countries require it (for example the
160
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
161
+ * code. A payment to an account without one is sent as checking.
151
162
  */
152
- type: 'sort_code';
163
+ account_type?: 'checking' | 'savings' | null;
164
+
165
+ /**
166
+ * Bank Identifier Code. Optional; omit or send null if not provided.
167
+ */
168
+ bic?: string | null;
153
169
  }
154
170
 
155
- export interface AbaFinancialAddressRequest {
171
+ export interface SortCodeFinancialAddressRequest {
156
172
  /**
157
173
  * Name of the account holder.
158
174
  */
159
175
  account_holder_name: string;
160
176
 
161
177
  /**
162
- * Bank account number.
178
+ * UK account number (8 digits).
163
179
  */
164
180
  account_number: string;
165
181
 
166
182
  /**
167
- * ABA routing number (9 digits).
183
+ * UK sort code (6 digits).
168
184
  */
169
- routing_number: string;
185
+ sort_code: string;
170
186
 
171
187
  /**
172
- * Discriminator for ABA wire financial address.
188
+ * Discriminator for UK sort code financial address.
173
189
  */
174
- type: 'aba';
190
+ type: 'sort_code';
175
191
  }
176
192
 
177
193
  export interface BicFinancialAddressRequest {
@@ -195,6 +211,14 @@ export namespace DepositCreateParams {
195
211
  */
196
212
  type: 'bic';
197
213
 
214
+ /**
215
+ * Whether the account is a checking or a savings account. Optional; omit or send
216
+ * null if not provided. Some destination countries require it (for example the
217
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
218
+ * code. A payment to an account without one is sent as checking.
219
+ */
220
+ account_type?: 'checking' | 'savings' | null;
221
+
198
222
  /**
199
223
  * Domestic bank or branch code where the destination country uses one (for example
200
224
  * the BSB in Australia). Optional; omit or send null where the country has none.
@@ -139,9 +139,9 @@ export namespace TransactionRetrieveResponse {
139
139
  * Financial address of the counterparty.
140
140
  */
141
141
  financial_address:
142
+ | Counterparty.AbaFinancialAddress
142
143
  | Counterparty.IbanFinancialAddress
143
144
  | Counterparty.SortCodeFinancialAddress
144
- | Counterparty.AbaFinancialAddress
145
145
  | Counterparty.BicFinancialAddress
146
146
  | Counterparty.CryptoWalletFinancialAddress;
147
147
 
@@ -152,70 +152,80 @@ export namespace TransactionRetrieveResponse {
152
152
  }
153
153
 
154
154
  export namespace Counterparty {
155
- export interface IbanFinancialAddress {
155
+ export interface AbaFinancialAddress {
156
156
  /**
157
157
  * Name of the account holder.
158
158
  */
159
159
  account_holder_name: string;
160
160
 
161
161
  /**
162
- * Bank Identifier Code, or null if not provided.
162
+ * Bank account number.
163
163
  */
164
- bic: string | null;
164
+ account_number: string;
165
165
 
166
166
  /**
167
- * International Bank Account Number.
167
+ * Whether the account is a checking or a savings account, or null if not provided.
168
168
  */
169
- iban: string;
169
+ account_type: 'checking' | 'savings' | null;
170
170
 
171
171
  /**
172
- * Discriminator for IBAN financial address.
172
+ * ABA routing number (9 digits).
173
173
  */
174
- type: 'iban';
174
+ routing_number: string;
175
+
176
+ /**
177
+ * Discriminator for ABA wire financial address.
178
+ */
179
+ type: 'aba';
175
180
  }
176
181
 
177
- export interface SortCodeFinancialAddress {
182
+ export interface IbanFinancialAddress {
178
183
  /**
179
184
  * Name of the account holder.
180
185
  */
181
186
  account_holder_name: string;
182
187
 
183
188
  /**
184
- * UK account number (8 digits).
189
+ * Whether the account is a checking or a savings account, or null if not provided.
185
190
  */
186
- account_number: string;
191
+ account_type: 'checking' | 'savings' | null;
187
192
 
188
193
  /**
189
- * UK sort code (6 digits).
194
+ * Bank Identifier Code, or null if not provided.
190
195
  */
191
- sort_code: string;
196
+ bic: string | null;
192
197
 
193
198
  /**
194
- * Discriminator for UK sort code financial address.
199
+ * International Bank Account Number.
195
200
  */
196
- type: 'sort_code';
201
+ iban: string;
202
+
203
+ /**
204
+ * Discriminator for IBAN financial address.
205
+ */
206
+ type: 'iban';
197
207
  }
198
208
 
199
- export interface AbaFinancialAddress {
209
+ export interface SortCodeFinancialAddress {
200
210
  /**
201
211
  * Name of the account holder.
202
212
  */
203
213
  account_holder_name: string;
204
214
 
205
215
  /**
206
- * Bank account number.
216
+ * UK account number (8 digits).
207
217
  */
208
218
  account_number: string;
209
219
 
210
220
  /**
211
- * ABA routing number (9 digits).
221
+ * UK sort code (6 digits).
212
222
  */
213
- routing_number: string;
223
+ sort_code: string;
214
224
 
215
225
  /**
216
- * Discriminator for ABA wire financial address.
226
+ * Discriminator for UK sort code financial address.
217
227
  */
218
- type: 'aba';
228
+ type: 'sort_code';
219
229
  }
220
230
 
221
231
  export interface BicFinancialAddress {
@@ -229,6 +239,11 @@ export namespace TransactionRetrieveResponse {
229
239
  */
230
240
  account_number: string;
231
241
 
242
+ /**
243
+ * Whether the account is a checking or a savings account, or null if not provided.
244
+ */
245
+ account_type: 'checking' | 'savings' | null;
246
+
232
247
  /**
233
248
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
234
249
  */
@@ -683,9 +698,9 @@ export namespace TransactionListResponse {
683
698
  * Financial address of the counterparty.
684
699
  */
685
700
  financial_address:
701
+ | Counterparty.AbaFinancialAddress
686
702
  | Counterparty.IbanFinancialAddress
687
703
  | Counterparty.SortCodeFinancialAddress
688
- | Counterparty.AbaFinancialAddress
689
704
  | Counterparty.BicFinancialAddress
690
705
  | Counterparty.CryptoWalletFinancialAddress;
691
706
 
@@ -696,70 +711,80 @@ export namespace TransactionListResponse {
696
711
  }
697
712
 
698
713
  export namespace Counterparty {
699
- export interface IbanFinancialAddress {
714
+ export interface AbaFinancialAddress {
700
715
  /**
701
716
  * Name of the account holder.
702
717
  */
703
718
  account_holder_name: string;
704
719
 
705
720
  /**
706
- * Bank Identifier Code, or null if not provided.
721
+ * Bank account number.
707
722
  */
708
- bic: string | null;
723
+ account_number: string;
709
724
 
710
725
  /**
711
- * International Bank Account Number.
726
+ * Whether the account is a checking or a savings account, or null if not provided.
712
727
  */
713
- iban: string;
728
+ account_type: 'checking' | 'savings' | null;
714
729
 
715
730
  /**
716
- * Discriminator for IBAN financial address.
731
+ * ABA routing number (9 digits).
717
732
  */
718
- type: 'iban';
733
+ routing_number: string;
734
+
735
+ /**
736
+ * Discriminator for ABA wire financial address.
737
+ */
738
+ type: 'aba';
719
739
  }
720
740
 
721
- export interface SortCodeFinancialAddress {
741
+ export interface IbanFinancialAddress {
722
742
  /**
723
743
  * Name of the account holder.
724
744
  */
725
745
  account_holder_name: string;
726
746
 
727
747
  /**
728
- * UK account number (8 digits).
748
+ * Whether the account is a checking or a savings account, or null if not provided.
729
749
  */
730
- account_number: string;
750
+ account_type: 'checking' | 'savings' | null;
731
751
 
732
752
  /**
733
- * UK sort code (6 digits).
753
+ * Bank Identifier Code, or null if not provided.
734
754
  */
735
- sort_code: string;
755
+ bic: string | null;
736
756
 
737
757
  /**
738
- * Discriminator for UK sort code financial address.
758
+ * International Bank Account Number.
739
759
  */
740
- type: 'sort_code';
760
+ iban: string;
761
+
762
+ /**
763
+ * Discriminator for IBAN financial address.
764
+ */
765
+ type: 'iban';
741
766
  }
742
767
 
743
- export interface AbaFinancialAddress {
768
+ export interface SortCodeFinancialAddress {
744
769
  /**
745
770
  * Name of the account holder.
746
771
  */
747
772
  account_holder_name: string;
748
773
 
749
774
  /**
750
- * Bank account number.
775
+ * UK account number (8 digits).
751
776
  */
752
777
  account_number: string;
753
778
 
754
779
  /**
755
- * ABA routing number (9 digits).
780
+ * UK sort code (6 digits).
756
781
  */
757
- routing_number: string;
782
+ sort_code: string;
758
783
 
759
784
  /**
760
- * Discriminator for ABA wire financial address.
785
+ * Discriminator for UK sort code financial address.
761
786
  */
762
- type: 'aba';
787
+ type: 'sort_code';
763
788
  }
764
789
 
765
790
  export interface BicFinancialAddress {
@@ -773,6 +798,11 @@ export namespace TransactionListResponse {
773
798
  */
774
799
  account_number: string;
775
800
 
801
+ /**
802
+ * Whether the account is a checking or a savings account, or null if not provided.
803
+ */
804
+ account_type: 'checking' | 'savings' | null;
805
+
776
806
  /**
777
807
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
778
808
  */