@augustusbank/typescript-sdk 0.33.0 → 0.35.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 (42) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/resources/account-holders.d.mts +96 -12
  4. package/resources/account-holders.d.mts.map +1 -1
  5. package/resources/account-holders.d.ts +96 -12
  6. package/resources/account-holders.d.ts.map +1 -1
  7. package/resources/accounts.d.mts +12 -6
  8. package/resources/accounts.d.mts.map +1 -1
  9. package/resources/accounts.d.ts +12 -6
  10. package/resources/accounts.d.ts.map +1 -1
  11. package/resources/conversions.d.mts +4 -4
  12. package/resources/conversions.d.mts.map +1 -1
  13. package/resources/conversions.d.ts +4 -4
  14. package/resources/conversions.d.ts.map +1 -1
  15. package/resources/payout-tracking-events.d.mts +114 -18
  16. package/resources/payout-tracking-events.d.mts.map +1 -1
  17. package/resources/payout-tracking-events.d.ts +114 -18
  18. package/resources/payout-tracking-events.d.ts.map +1 -1
  19. package/resources/payouts.d.mts +8 -16
  20. package/resources/payouts.d.mts.map +1 -1
  21. package/resources/payouts.d.ts +8 -16
  22. package/resources/payouts.d.ts.map +1 -1
  23. package/resources/transactions.d.mts +2 -12
  24. package/resources/transactions.d.mts.map +1 -1
  25. package/resources/transactions.d.ts +2 -12
  26. package/resources/transactions.d.ts.map +1 -1
  27. package/resources/webhooks.d.mts +102 -36
  28. package/resources/webhooks.d.mts.map +1 -1
  29. package/resources/webhooks.d.ts +102 -36
  30. package/resources/webhooks.d.ts.map +1 -1
  31. package/src/resources/account-holders.ts +120 -12
  32. package/src/resources/accounts.ts +12 -6
  33. package/src/resources/conversions.ts +4 -4
  34. package/src/resources/payout-tracking-events.ts +126 -18
  35. package/src/resources/payouts.ts +4 -36
  36. package/src/resources/transactions.ts +2 -14
  37. package/src/resources/webhooks.ts +111 -61
  38. package/src/version.ts +1 -1
  39. package/version.d.mts +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -1
  42. package/version.mjs +1 -1
@@ -1421,11 +1421,14 @@ export namespace AccountHolderCreateResponse {
1421
1421
 
1422
1422
  /**
1423
1423
  * Business registration number: type "ein" (Employer Identification Number, format
1424
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
1424
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
1425
+ * other registration number, 1-32 characters, non-US businesses only, with a
1426
+ * required `description` of what the number is).
1425
1427
  */
1426
1428
  registration_number:
1427
1429
  | V1BusinessBeneficiaryDataResponse.V1EinIdentification
1428
- | V1BusinessBeneficiaryDataResponse.V1SsnIdentification;
1430
+ | V1BusinessBeneficiaryDataResponse.V1SsnIdentification
1431
+ | V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
1429
1432
 
1430
1433
  /**
1431
1434
  * State or subdivision where the business is incorporated.
@@ -4012,6 +4015,21 @@ export namespace AccountHolderCreateResponse {
4012
4015
 
4013
4016
  value: string;
4014
4017
  }
4018
+
4019
+ export interface V1OtherRegistrationNumber {
4020
+ /**
4021
+ * A short explanation of what this number is and which authority issued it.
4022
+ */
4023
+ description: string;
4024
+
4025
+ type: 'other';
4026
+
4027
+ /**
4028
+ * The registration number, 1-32 characters. Any characters are allowed, but at
4029
+ * least one must be a letter or digit.
4030
+ */
4031
+ value: string;
4032
+ }
4015
4033
  }
4016
4034
  }
4017
4035
 
@@ -5329,11 +5347,14 @@ export namespace AccountHolderRetrieveResponse {
5329
5347
 
5330
5348
  /**
5331
5349
  * Business registration number: type "ein" (Employer Identification Number, format
5332
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
5350
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
5351
+ * other registration number, 1-32 characters, non-US businesses only, with a
5352
+ * required `description` of what the number is).
5333
5353
  */
5334
5354
  registration_number:
5335
5355
  | V1BusinessBeneficiaryDataResponse.V1EinIdentification
5336
- | V1BusinessBeneficiaryDataResponse.V1SsnIdentification;
5356
+ | V1BusinessBeneficiaryDataResponse.V1SsnIdentification
5357
+ | V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
5337
5358
 
5338
5359
  /**
5339
5360
  * State or subdivision where the business is incorporated.
@@ -7920,6 +7941,21 @@ export namespace AccountHolderRetrieveResponse {
7920
7941
 
7921
7942
  value: string;
7922
7943
  }
7944
+
7945
+ export interface V1OtherRegistrationNumber {
7946
+ /**
7947
+ * A short explanation of what this number is and which authority issued it.
7948
+ */
7949
+ description: string;
7950
+
7951
+ type: 'other';
7952
+
7953
+ /**
7954
+ * The registration number, 1-32 characters. Any characters are allowed, but at
7955
+ * least one must be a letter or digit.
7956
+ */
7957
+ value: string;
7958
+ }
7923
7959
  }
7924
7960
  }
7925
7961
 
@@ -9237,11 +9273,14 @@ export namespace AccountHolderUpdateResponse {
9237
9273
 
9238
9274
  /**
9239
9275
  * Business registration number: type "ein" (Employer Identification Number, format
9240
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
9276
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
9277
+ * other registration number, 1-32 characters, non-US businesses only, with a
9278
+ * required `description` of what the number is).
9241
9279
  */
9242
9280
  registration_number:
9243
9281
  | V1BusinessBeneficiaryDataResponse.V1EinIdentification
9244
- | V1BusinessBeneficiaryDataResponse.V1SsnIdentification;
9282
+ | V1BusinessBeneficiaryDataResponse.V1SsnIdentification
9283
+ | V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
9245
9284
 
9246
9285
  /**
9247
9286
  * State or subdivision where the business is incorporated.
@@ -11828,6 +11867,21 @@ export namespace AccountHolderUpdateResponse {
11828
11867
 
11829
11868
  value: string;
11830
11869
  }
11870
+
11871
+ export interface V1OtherRegistrationNumber {
11872
+ /**
11873
+ * A short explanation of what this number is and which authority issued it.
11874
+ */
11875
+ description: string;
11876
+
11877
+ type: 'other';
11878
+
11879
+ /**
11880
+ * The registration number, 1-32 characters. Any characters are allowed, but at
11881
+ * least one must be a letter or digit.
11882
+ */
11883
+ value: string;
11884
+ }
11831
11885
  }
11832
11886
  }
11833
11887
 
@@ -13145,11 +13199,14 @@ export namespace AccountHolderListResponse {
13145
13199
 
13146
13200
  /**
13147
13201
  * Business registration number: type "ein" (Employer Identification Number, format
13148
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
13202
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
13203
+ * other registration number, 1-32 characters, non-US businesses only, with a
13204
+ * required `description` of what the number is).
13149
13205
  */
13150
13206
  registration_number:
13151
13207
  | V1BusinessBeneficiaryDataResponse.V1EinIdentification
13152
- | V1BusinessBeneficiaryDataResponse.V1SsnIdentification;
13208
+ | V1BusinessBeneficiaryDataResponse.V1SsnIdentification
13209
+ | V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
13153
13210
 
13154
13211
  /**
13155
13212
  * State or subdivision where the business is incorporated.
@@ -15736,6 +15793,21 @@ export namespace AccountHolderListResponse {
15736
15793
 
15737
15794
  value: string;
15738
15795
  }
15796
+
15797
+ export interface V1OtherRegistrationNumber {
15798
+ /**
15799
+ * A short explanation of what this number is and which authority issued it.
15800
+ */
15801
+ description: string;
15802
+
15803
+ type: 'other';
15804
+
15805
+ /**
15806
+ * The registration number, 1-32 characters. Any characters are allowed, but at
15807
+ * least one must be a letter or digit.
15808
+ */
15809
+ value: string;
15810
+ }
15739
15811
  }
15740
15812
  }
15741
15813
 
@@ -17028,11 +17100,14 @@ export namespace AccountHolderCreateParams {
17028
17100
 
17029
17101
  /**
17030
17102
  * Business registration number: type "ein" (Employer Identification Number, format
17031
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
17103
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
17104
+ * other registration number, 1-32 characters, non-US businesses only, with a
17105
+ * required `description` of what the number is).
17032
17106
  */
17033
17107
  registration_number:
17034
17108
  | V1BusinessBeneficiaryData.V1EinIdentification
17035
- | V1BusinessBeneficiaryData.V1SsnIdentification;
17109
+ | V1BusinessBeneficiaryData.V1SsnIdentification
17110
+ | V1BusinessBeneficiaryData.V1OtherRegistrationNumber;
17036
17111
 
17037
17112
  /**
17038
17113
  * State or subdivision where the business is incorporated.
@@ -19626,6 +19701,21 @@ export namespace AccountHolderCreateParams {
19626
19701
 
19627
19702
  value: string;
19628
19703
  }
19704
+
19705
+ export interface V1OtherRegistrationNumber {
19706
+ /**
19707
+ * A short explanation of what this number is and which authority issued it.
19708
+ */
19709
+ description: string;
19710
+
19711
+ type: 'other';
19712
+
19713
+ /**
19714
+ * The registration number, 1-32 characters. Any characters are allowed, but at
19715
+ * least one must be a letter or digit.
19716
+ */
19717
+ value: string;
19718
+ }
19629
19719
  }
19630
19720
  }
19631
19721
 
@@ -20901,11 +20991,14 @@ export namespace AccountHolderUpdateParams {
20901
20991
 
20902
20992
  /**
20903
20993
  * Business registration number: type "ein" (Employer Identification Number, format
20904
- * ##-#######) or "ssn" (Social Security Number, format ###-##-####).
20994
+ * ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
20995
+ * other registration number, 1-32 characters, non-US businesses only, with a
20996
+ * required `description` of what the number is).
20905
20997
  */
20906
20998
  registration_number:
20907
20999
  | V1BusinessBeneficiaryData.V1EinIdentification
20908
- | V1BusinessBeneficiaryData.V1SsnIdentification;
21000
+ | V1BusinessBeneficiaryData.V1SsnIdentification
21001
+ | V1BusinessBeneficiaryData.V1OtherRegistrationNumber;
20909
21002
 
20910
21003
  /**
20911
21004
  * State or subdivision where the business is incorporated.
@@ -23499,6 +23592,21 @@ export namespace AccountHolderUpdateParams {
23499
23592
 
23500
23593
  value: string;
23501
23594
  }
23595
+
23596
+ export interface V1OtherRegistrationNumber {
23597
+ /**
23598
+ * A short explanation of what this number is and which authority issued it.
23599
+ */
23600
+ description: string;
23601
+
23602
+ type: 'other';
23603
+
23604
+ /**
23605
+ * The registration number, 1-32 characters. Any characters are allowed, but at
23606
+ * least one must be a letter or digit.
23607
+ */
23608
+ value: string;
23609
+ }
23502
23610
  }
23503
23611
  }
23504
23612
 
@@ -161,7 +161,8 @@ export interface AccountCreateResponse {
161
161
  >;
162
162
 
163
163
  /**
164
- * Human-readable label for the account.
164
+ * Human-readable label for the account. For FBO accounts the label is set to the
165
+ * account holder’s name.
165
166
  */
166
167
  label: string;
167
168
 
@@ -361,7 +362,8 @@ export interface AccountRetrieveResponse {
361
362
  >;
362
363
 
363
364
  /**
364
- * Human-readable label for the account.
365
+ * Human-readable label for the account. For FBO accounts the label is set to the
366
+ * account holder’s name.
365
367
  */
366
368
  label: string;
367
369
 
@@ -561,7 +563,8 @@ export interface AccountListResponse {
561
563
  >;
562
564
 
563
565
  /**
564
- * Human-readable label for the account.
566
+ * Human-readable label for the account. For FBO accounts the label is set to the
567
+ * account holder’s name.
565
568
  */
566
569
  label: string;
567
570
 
@@ -761,7 +764,8 @@ export interface AccountCloseResponse {
761
764
  >;
762
765
 
763
766
  /**
764
- * Human-readable label for the account.
767
+ * Human-readable label for the account. For FBO accounts the label is set to the
768
+ * account holder’s name.
765
769
  */
766
770
  label: string;
767
771
 
@@ -961,7 +965,8 @@ export interface AccountFreezeResponse {
961
965
  >;
962
966
 
963
967
  /**
964
- * Human-readable label for the account.
968
+ * Human-readable label for the account. For FBO accounts the label is set to the
969
+ * account holder’s name.
965
970
  */
966
971
  label: string;
967
972
 
@@ -1199,7 +1204,8 @@ export interface AccountUnfreezeResponse {
1199
1204
  >;
1200
1205
 
1201
1206
  /**
1202
- * Human-readable label for the account.
1207
+ * Human-readable label for the account. For FBO accounts the label is set to the
1208
+ * account holder’s name.
1203
1209
  */
1204
1210
  label: string;
1205
1211
 
@@ -97,7 +97,7 @@ export interface ConversionCreateResponse {
97
97
  /**
98
98
  * Current status of the conversion.
99
99
  */
100
- status: 'pending' | 'completed' | 'failed';
100
+ status: 'initiated' | 'pending' | 'completed' | 'failed';
101
101
 
102
102
  /**
103
103
  * ID of the target account, or null.
@@ -156,7 +156,7 @@ export interface ConversionRetrieveResponse {
156
156
  /**
157
157
  * Current status of the conversion.
158
158
  */
159
- status: 'pending' | 'completed' | 'failed';
159
+ status: 'initiated' | 'pending' | 'completed' | 'failed';
160
160
 
161
161
  /**
162
162
  * ID of the target account, or null.
@@ -215,7 +215,7 @@ export interface ConversionListResponse {
215
215
  /**
216
216
  * Current status of the conversion.
217
217
  */
218
- status: 'pending' | 'completed' | 'failed';
218
+ status: 'initiated' | 'pending' | 'completed' | 'failed';
219
219
 
220
220
  /**
221
221
  * ID of the target account, or null.
@@ -271,7 +271,7 @@ export interface ConversionListParams extends CursorPageParams {
271
271
  /**
272
272
  * Filter by conversion status.
273
273
  */
274
- status?: 'pending' | 'completed' | 'failed';
274
+ status?: 'initiated' | 'pending' | 'completed' | 'failed';
275
275
 
276
276
  /**
277
277
  * Filter by target currency code.
@@ -54,13 +54,21 @@ export interface PayoutTrackingEventRetrieveResponse {
54
54
  fee: PayoutTrackingEventRetrieveResponse.Fee | null;
55
55
 
56
56
  /**
57
- * Institution that acted on or reported this step. Null when unknown.
57
+ * Institution that sent the payout in this step. Null when unknown or not reported
58
+ * by the source.
59
+ */
60
+ from_institution: PayoutTrackingEventRetrieveResponse.FromInstitution | null;
61
+
62
+ /**
63
+ * Institution holding the payout after this step: the bank that received it, or
64
+ * the bank that reported this status. Null when unknown.
58
65
  */
59
66
  institution: PayoutTrackingEventRetrieveResponse.Institution | null;
60
67
 
61
68
  /**
62
- * Whether Augustus considers delivery finished. A later event, such as returned,
63
- * can still follow.
69
+ * Whether Augustus considers delivery finished. A credit reported by a bank that
70
+ * passes the payout on is a forwarded step and is not terminal. A later event,
71
+ * such as returned, can still follow.
64
72
  */
65
73
  is_terminal: boolean;
66
74
 
@@ -169,18 +177,62 @@ export namespace PayoutTrackingEventRetrieveResponse {
169
177
  }
170
178
 
171
179
  /**
172
- * Institution that acted on or reported this step. Null when unknown.
180
+ * Institution that sent the payout in this step. Null when unknown or not reported
181
+ * by the source.
182
+ */
183
+ export interface FromInstitution {
184
+ /**
185
+ * Identifier of the institution, typed by scheme. Null when only its name is
186
+ * known.
187
+ */
188
+ identifier: FromInstitution.Identifier | null;
189
+
190
+ /**
191
+ * Name of the institution. Null when unknown.
192
+ */
193
+ name: string | null;
194
+ }
195
+
196
+ export namespace FromInstitution {
197
+ /**
198
+ * Identifier of the institution, typed by scheme. Null when only its name is
199
+ * known.
200
+ */
201
+ export interface Identifier {
202
+ /**
203
+ * Identifier scheme. Only bic today.
204
+ */
205
+ type: 'bic';
206
+
207
+ /**
208
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
209
+ * padded with the XXX head office branch code.
210
+ */
211
+ value: string;
212
+ }
213
+ }
214
+
215
+ /**
216
+ * Institution holding the payout after this step: the bank that received it, or
217
+ * the bank that reported this status. Null when unknown.
173
218
  */
174
219
  export interface Institution {
175
220
  /**
176
- * Identifier of the institution, typed by scheme.
221
+ * Identifier of the institution, typed by scheme. Null when only its name is
222
+ * known.
223
+ */
224
+ identifier: Institution.Identifier | null;
225
+
226
+ /**
227
+ * Name of the institution. Null when unknown.
177
228
  */
178
- identifier: Institution.Identifier;
229
+ name: string | null;
179
230
  }
180
231
 
181
232
  export namespace Institution {
182
233
  /**
183
- * Identifier of the institution, typed by scheme.
234
+ * Identifier of the institution, typed by scheme. Null when only its name is
235
+ * known.
184
236
  */
185
237
  export interface Identifier {
186
238
  /**
@@ -189,7 +241,8 @@ export namespace PayoutTrackingEventRetrieveResponse {
189
241
  type: 'bic';
190
242
 
191
243
  /**
192
- * ISO 9362 Bank Identifier Code (8 or 11 characters).
244
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
245
+ * padded with the XXX head office branch code.
193
246
  */
194
247
  value: string;
195
248
  }
@@ -215,7 +268,8 @@ export namespace PayoutTrackingEventRetrieveResponse {
215
268
  */
216
269
  export interface StatusReason {
217
270
  /**
218
- * Normalized reason code assigned by Augustus. New codes may be added.
271
+ * Normalized reason code assigned by Augustus. Current codes: `CREDIT_PENDING`
272
+ * (the beneficiary bank reported the credit as pending). New codes may be added.
219
273
  */
220
274
  code: string;
221
275
 
@@ -249,13 +303,21 @@ export interface PayoutTrackingEventListResponse {
249
303
  fee: PayoutTrackingEventListResponse.Fee | null;
250
304
 
251
305
  /**
252
- * Institution that acted on or reported this step. Null when unknown.
306
+ * Institution that sent the payout in this step. Null when unknown or not reported
307
+ * by the source.
308
+ */
309
+ from_institution: PayoutTrackingEventListResponse.FromInstitution | null;
310
+
311
+ /**
312
+ * Institution holding the payout after this step: the bank that received it, or
313
+ * the bank that reported this status. Null when unknown.
253
314
  */
254
315
  institution: PayoutTrackingEventListResponse.Institution | null;
255
316
 
256
317
  /**
257
- * Whether Augustus considers delivery finished. A later event, such as returned,
258
- * can still follow.
318
+ * Whether Augustus considers delivery finished. A credit reported by a bank that
319
+ * passes the payout on is a forwarded step and is not terminal. A later event,
320
+ * such as returned, can still follow.
259
321
  */
260
322
  is_terminal: boolean;
261
323
 
@@ -364,18 +426,62 @@ export namespace PayoutTrackingEventListResponse {
364
426
  }
365
427
 
366
428
  /**
367
- * Institution that acted on or reported this step. Null when unknown.
429
+ * Institution that sent the payout in this step. Null when unknown or not reported
430
+ * by the source.
431
+ */
432
+ export interface FromInstitution {
433
+ /**
434
+ * Identifier of the institution, typed by scheme. Null when only its name is
435
+ * known.
436
+ */
437
+ identifier: FromInstitution.Identifier | null;
438
+
439
+ /**
440
+ * Name of the institution. Null when unknown.
441
+ */
442
+ name: string | null;
443
+ }
444
+
445
+ export namespace FromInstitution {
446
+ /**
447
+ * Identifier of the institution, typed by scheme. Null when only its name is
448
+ * known.
449
+ */
450
+ export interface Identifier {
451
+ /**
452
+ * Identifier scheme. Only bic today.
453
+ */
454
+ type: 'bic';
455
+
456
+ /**
457
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
458
+ * padded with the XXX head office branch code.
459
+ */
460
+ value: string;
461
+ }
462
+ }
463
+
464
+ /**
465
+ * Institution holding the payout after this step: the bank that received it, or
466
+ * the bank that reported this status. Null when unknown.
368
467
  */
369
468
  export interface Institution {
370
469
  /**
371
- * Identifier of the institution, typed by scheme.
470
+ * Identifier of the institution, typed by scheme. Null when only its name is
471
+ * known.
472
+ */
473
+ identifier: Institution.Identifier | null;
474
+
475
+ /**
476
+ * Name of the institution. Null when unknown.
372
477
  */
373
- identifier: Institution.Identifier;
478
+ name: string | null;
374
479
  }
375
480
 
376
481
  export namespace Institution {
377
482
  /**
378
- * Identifier of the institution, typed by scheme.
483
+ * Identifier of the institution, typed by scheme. Null when only its name is
484
+ * known.
379
485
  */
380
486
  export interface Identifier {
381
487
  /**
@@ -384,7 +490,8 @@ export namespace PayoutTrackingEventListResponse {
384
490
  type: 'bic';
385
491
 
386
492
  /**
387
- * ISO 9362 Bank Identifier Code (8 or 11 characters).
493
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
494
+ * padded with the XXX head office branch code.
388
495
  */
389
496
  value: string;
390
497
  }
@@ -410,7 +517,8 @@ export namespace PayoutTrackingEventListResponse {
410
517
  */
411
518
  export interface StatusReason {
412
519
  /**
413
- * Normalized reason code assigned by Augustus. New codes may be added.
520
+ * Normalized reason code assigned by Augustus. Current codes: `CREDIT_PENDING`
521
+ * (the beneficiary bank reported the credit as pending). New codes may be added.
414
522
  */
415
523
  code: string;
416
524
 
@@ -103,9 +103,7 @@ export interface PayoutCreateResponse {
103
103
  metadata: { [key: string]: string };
104
104
 
105
105
  /**
106
- * Purpose of the payout. Use an ISO 20022 external purpose code unless the
107
- * beneficiary bank country requires a national code. Only supported on fedwire and
108
- * swift payouts.
106
+ * ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
109
107
  */
110
108
  purpose_code:
111
109
  | 'BKDF'
@@ -436,12 +434,6 @@ export interface PayoutCreateResponse {
436
434
  | 'DEPD'
437
435
  | 'RETL'
438
436
  | 'DEBT'
439
- | 'CAP'
440
- | 'GDS'
441
- | 'SRV'
442
- | 'CAC'
443
- | 'FTF'
444
- | (string & {})
445
437
  | null;
446
438
 
447
439
  /**
@@ -597,9 +589,7 @@ export interface PayoutRetrieveResponse {
597
589
  metadata: { [key: string]: string };
598
590
 
599
591
  /**
600
- * Purpose of the payout. Use an ISO 20022 external purpose code unless the
601
- * beneficiary bank country requires a national code. Only supported on fedwire and
602
- * swift payouts.
592
+ * ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
603
593
  */
604
594
  purpose_code:
605
595
  | 'BKDF'
@@ -930,12 +920,6 @@ export interface PayoutRetrieveResponse {
930
920
  | 'DEPD'
931
921
  | 'RETL'
932
922
  | 'DEBT'
933
- | 'CAP'
934
- | 'GDS'
935
- | 'SRV'
936
- | 'CAC'
937
- | 'FTF'
938
- | (string & {})
939
923
  | null;
940
924
 
941
925
  /**
@@ -1091,9 +1075,7 @@ export interface PayoutListResponse {
1091
1075
  metadata: { [key: string]: string };
1092
1076
 
1093
1077
  /**
1094
- * Purpose of the payout. Use an ISO 20022 external purpose code unless the
1095
- * beneficiary bank country requires a national code. Only supported on fedwire and
1096
- * swift payouts.
1078
+ * ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
1097
1079
  */
1098
1080
  purpose_code:
1099
1081
  | 'BKDF'
@@ -1424,12 +1406,6 @@ export interface PayoutListResponse {
1424
1406
  | 'DEPD'
1425
1407
  | 'RETL'
1426
1408
  | 'DEBT'
1427
- | 'CAP'
1428
- | 'GDS'
1429
- | 'SRV'
1430
- | 'CAC'
1431
- | 'FTF'
1432
- | (string & {})
1433
1409
  | null;
1434
1410
 
1435
1411
  /**
@@ -1570,9 +1546,7 @@ export interface PayoutCreateParams {
1570
1546
  metadata?: { [key: string]: string } | null;
1571
1547
 
1572
1548
  /**
1573
- * Purpose of the payout. Use an ISO 20022 external purpose code unless the
1574
- * beneficiary bank country requires a national code. Only supported on fedwire and
1575
- * swift payouts.
1549
+ * ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
1576
1550
  */
1577
1551
  purpose_code?:
1578
1552
  | 'BKDF'
@@ -1903,12 +1877,6 @@ export interface PayoutCreateParams {
1903
1877
  | 'DEPD'
1904
1878
  | 'RETL'
1905
1879
  | 'DEBT'
1906
- | 'CAP'
1907
- | 'GDS'
1908
- | 'SRV'
1909
- | 'CAC'
1910
- | 'FTF'
1911
- | (string & {})
1912
1880
  | null;
1913
1881
 
1914
1882
  /**
@@ -106,12 +106,6 @@ export interface TransactionRetrieveResponse {
106
106
  */
107
107
  status: 'booked';
108
108
 
109
- /**
110
- * Network tracking identifier: UETR for SWIFT, IMAD for Fedwire, or the trace
111
- * number for ACH. Null when unavailable.
112
- */
113
- tracking_reference: string | null;
114
-
115
109
  /**
116
110
  * Transaction hash for crypto transactions, or null when not known. Only
117
111
  * blockchain rails support this field.
@@ -585,7 +579,7 @@ export namespace TransactionRetrieveResponse {
585
579
  /**
586
580
  * Type of the resource that originated this transaction.
587
581
  */
588
- type: 'deposit' | 'payout' | 'return';
582
+ type: 'deposit' | 'payout' | 'return' | 'conversion';
589
583
  }
590
584
  }
591
585
 
@@ -665,12 +659,6 @@ export interface TransactionListResponse {
665
659
  */
666
660
  status: 'booked';
667
661
 
668
- /**
669
- * Network tracking identifier: UETR for SWIFT, IMAD for Fedwire, or the trace
670
- * number for ACH. Null when unavailable.
671
- */
672
- tracking_reference: string | null;
673
-
674
662
  /**
675
663
  * Transaction hash for crypto transactions, or null when not known. Only
676
664
  * blockchain rails support this field.
@@ -1144,7 +1132,7 @@ export namespace TransactionListResponse {
1144
1132
  /**
1145
1133
  * Type of the resource that originated this transaction.
1146
1134
  */
1147
- type: 'deposit' | 'payout' | 'return';
1135
+ type: 'deposit' | 'payout' | 'return' | 'conversion';
1148
1136
  }
1149
1137
  }
1150
1138