@augustusbank/typescript-sdk 0.32.0 → 0.34.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 (83) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +36 -12
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +36 -12
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/api-keys.d.mts +1 -1
  16. package/resources/api-keys.d.mts.map +1 -1
  17. package/resources/api-keys.d.ts +1 -1
  18. package/resources/api-keys.d.ts.map +1 -1
  19. package/resources/counterparties.d.mts +227 -12
  20. package/resources/counterparties.d.mts.map +1 -1
  21. package/resources/counterparties.d.ts +227 -12
  22. package/resources/counterparties.d.ts.map +1 -1
  23. package/resources/counterparties.js +16 -0
  24. package/resources/counterparties.js.map +1 -1
  25. package/resources/counterparties.mjs +16 -0
  26. package/resources/counterparties.mjs.map +1 -1
  27. package/resources/events.d.mts +3 -3
  28. package/resources/events.d.mts.map +1 -1
  29. package/resources/events.d.ts +3 -3
  30. package/resources/events.d.ts.map +1 -1
  31. package/resources/index.d.mts +3 -2
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -2
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/payout-tracking-events.d.mts +454 -0
  40. package/resources/payout-tracking-events.d.mts.map +1 -0
  41. package/resources/payout-tracking-events.d.ts +454 -0
  42. package/resources/payout-tracking-events.d.ts.map +1 -0
  43. package/resources/payout-tracking-events.js +23 -0
  44. package/resources/payout-tracking-events.js.map +1 -0
  45. package/resources/payout-tracking-events.mjs +19 -0
  46. package/resources/payout-tracking-events.mjs.map +1 -0
  47. package/resources/payouts.d.mts +8 -16
  48. package/resources/payouts.d.mts.map +1 -1
  49. package/resources/payouts.d.ts +8 -16
  50. package/resources/payouts.d.ts.map +1 -1
  51. package/resources/scopes.d.mts +1 -1
  52. package/resources/scopes.d.mts.map +1 -1
  53. package/resources/scopes.d.ts +1 -1
  54. package/resources/scopes.d.ts.map +1 -1
  55. package/resources/transactions.d.mts +0 -10
  56. package/resources/transactions.d.mts.map +1 -1
  57. package/resources/transactions.d.ts +0 -10
  58. package/resources/transactions.d.ts.map +1 -1
  59. package/resources/webhook-subscriptions.d.mts +8 -8
  60. package/resources/webhook-subscriptions.d.mts.map +1 -1
  61. package/resources/webhook-subscriptions.d.ts +8 -8
  62. package/resources/webhook-subscriptions.d.ts.map +1 -1
  63. package/resources/webhooks.d.mts +254 -34
  64. package/resources/webhooks.d.mts.map +1 -1
  65. package/resources/webhooks.d.ts +254 -34
  66. package/resources/webhooks.d.ts.map +1 -1
  67. package/src/client.ts +21 -0
  68. package/src/resources/accounts.ts +36 -12
  69. package/src/resources/api-keys.ts +1 -0
  70. package/src/resources/counterparties.ts +536 -12
  71. package/src/resources/events.ts +3 -0
  72. package/src/resources/index.ts +9 -0
  73. package/src/resources/payout-tracking-events.ts +587 -0
  74. package/src/resources/payouts.ts +4 -36
  75. package/src/resources/scopes.ts +2 -1
  76. package/src/resources/transactions.ts +0 -12
  77. package/src/resources/webhook-subscriptions.ts +8 -0
  78. package/src/resources/webhooks.ts +300 -57
  79. package/src/version.ts +1 -1
  80. package/version.d.mts +1 -1
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
  83. package/version.mjs +1 -1
@@ -0,0 +1,587 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class PayoutTrackingEvents extends APIResource {
10
+ /**
11
+ * Retrieves a payout tracking event by ID.
12
+ */
13
+ retrieve(id: string, options?: RequestOptions): APIPromise<PayoutTrackingEventRetrieveResponse> {
14
+ return this._client.get(path`/v1/payout_tracking_events/${id}`, options);
15
+ }
16
+
17
+ /**
18
+ * Returns a paginated list of payout tracking events, newest first.
19
+ */
20
+ list(
21
+ query: PayoutTrackingEventListParams | null | undefined = {},
22
+ options?: RequestOptions,
23
+ ): PagePromise<PayoutTrackingEventListResponsesCursorPage, PayoutTrackingEventListResponse> {
24
+ return this._client.getAPIList(
25
+ '/v1/payout_tracking_events',
26
+ CursorPage<PayoutTrackingEventListResponse>,
27
+ { query, ...options },
28
+ );
29
+ }
30
+ }
31
+
32
+ export type PayoutTrackingEventListResponsesCursorPage = CursorPage<PayoutTrackingEventListResponse>;
33
+
34
+ export interface PayoutTrackingEventRetrieveResponse {
35
+ /**
36
+ * Unique identifier of the tracking event.
37
+ */
38
+ id: string;
39
+
40
+ /**
41
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
42
+ * null.
43
+ */
44
+ beneficiary_amount: PayoutTrackingEventRetrieveResponse.BeneficiaryAmount | null;
45
+
46
+ /**
47
+ * ISO 8601 UTC timestamp when Augustus recorded the event.
48
+ */
49
+ created_at: string;
50
+
51
+ /**
52
+ * Fee deducted at this step. Null when none was reported.
53
+ */
54
+ fee: PayoutTrackingEventRetrieveResponse.Fee | null;
55
+
56
+ /**
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.
65
+ */
66
+ institution: PayoutTrackingEventRetrieveResponse.Institution | null;
67
+
68
+ /**
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.
72
+ */
73
+ is_terminal: boolean;
74
+
75
+ /**
76
+ * Normalized point in the payout journey. New values may be added.
77
+ */
78
+ milestone:
79
+ | 'initiated'
80
+ | 'submitted'
81
+ | 'sent'
82
+ | 'failed'
83
+ | 'returned'
84
+ | 'accepted'
85
+ | 'settled'
86
+ | 'forwarded'
87
+ | 'credited'
88
+ | 'rejected'
89
+ | 'returning'
90
+ | 'visibility_lost'
91
+ | 'other';
92
+
93
+ /**
94
+ * Raw network status. Null when the step has none.
95
+ */
96
+ network_status: PayoutTrackingEventRetrieveResponse.NetworkStatus | null;
97
+
98
+ /**
99
+ * ISO 8601 UTC timestamp when the step happened. Null when the source has no
100
+ * timestamp. Can be out of order with sequence.
101
+ */
102
+ occurred_at: string | null;
103
+
104
+ /**
105
+ * ID of the payout this event belongs to.
106
+ */
107
+ payout_id: string;
108
+
109
+ /**
110
+ * How far Augustus can follow the payout: end_to_end when the rail confirms the
111
+ * beneficiary credit, network when it only confirms settlement. New values may be
112
+ * added.
113
+ */
114
+ scope: 'network' | 'end_to_end';
115
+
116
+ /**
117
+ * Gap-free counter per payout, in the order Augustus recorded the events. A gap
118
+ * means you missed a recorded event, such as a dropped webhook. A sequence without
119
+ * gaps does not mean every network step was observed.
120
+ */
121
+ sequence: number;
122
+
123
+ /**
124
+ * Where Augustus learned this step: augustus for steps Augustus records itself,
125
+ * swift_gpi for SWIFT gpi statuses, other for any other source. New values may be
126
+ * added.
127
+ */
128
+ source: 'augustus' | 'swift_gpi' | 'other';
129
+
130
+ /**
131
+ * Reason for the current state. Null when none applies.
132
+ */
133
+ status_reason: PayoutTrackingEventRetrieveResponse.StatusReason | null;
134
+
135
+ /**
136
+ * Resource type discriminator.
137
+ */
138
+ type: 'payout_tracking_event';
139
+ }
140
+
141
+ export namespace PayoutTrackingEventRetrieveResponse {
142
+ /**
143
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
144
+ * null.
145
+ */
146
+ export interface BeneficiaryAmount {
147
+ /**
148
+ * Credited amount as a string decimal (e.g. "100.50").
149
+ */
150
+ amount: string;
151
+
152
+ /**
153
+ * ISO 4217 currency code of the credited amount.
154
+ */
155
+ currency: string;
156
+ }
157
+
158
+ /**
159
+ * Fee deducted at this step. Null when none was reported.
160
+ */
161
+ export interface Fee {
162
+ /**
163
+ * Fee amount as a string decimal (e.g. "10.00").
164
+ */
165
+ amount: string;
166
+
167
+ /**
168
+ * Who bears the charges under the payment charge agreement: debtor (OUR), creditor
169
+ * (BEN), shared (SHA), or other for any other agreement. New values may be added.
170
+ */
171
+ borne_by: 'debtor' | 'creditor' | 'shared' | 'other';
172
+
173
+ /**
174
+ * ISO 4217 currency code of the fee.
175
+ */
176
+ currency: string;
177
+ }
178
+
179
+ /**
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.
218
+ */
219
+ export interface Institution {
220
+ /**
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.
228
+ */
229
+ name: string | null;
230
+ }
231
+
232
+ export namespace Institution {
233
+ /**
234
+ * Identifier of the institution, typed by scheme. Null when only its name is
235
+ * known.
236
+ */
237
+ export interface Identifier {
238
+ /**
239
+ * Identifier scheme. Only bic today.
240
+ */
241
+ type: 'bic';
242
+
243
+ /**
244
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
245
+ * padded with the XXX head office branch code.
246
+ */
247
+ value: string;
248
+ }
249
+ }
250
+
251
+ /**
252
+ * Raw network status. Null when the step has none.
253
+ */
254
+ export interface NetworkStatus {
255
+ /**
256
+ * Status code reported by the network, such as ACSP, ACSC, ACCC or RJCT.
257
+ */
258
+ code: string;
259
+
260
+ /**
261
+ * Reason code for the status, such as G000. Null when the network reports none.
262
+ */
263
+ reason_code: string | null;
264
+ }
265
+
266
+ /**
267
+ * Reason for the current state. Null when none applies.
268
+ */
269
+ export interface StatusReason {
270
+ /**
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.
273
+ */
274
+ code: string;
275
+
276
+ /**
277
+ * Explanation of the reason code, written by Augustus.
278
+ */
279
+ description: string;
280
+ }
281
+ }
282
+
283
+ export interface PayoutTrackingEventListResponse {
284
+ /**
285
+ * Unique identifier of the tracking event.
286
+ */
287
+ id: string;
288
+
289
+ /**
290
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
291
+ * null.
292
+ */
293
+ beneficiary_amount: PayoutTrackingEventListResponse.BeneficiaryAmount | null;
294
+
295
+ /**
296
+ * ISO 8601 UTC timestamp when Augustus recorded the event.
297
+ */
298
+ created_at: string;
299
+
300
+ /**
301
+ * Fee deducted at this step. Null when none was reported.
302
+ */
303
+ fee: PayoutTrackingEventListResponse.Fee | null;
304
+
305
+ /**
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.
314
+ */
315
+ institution: PayoutTrackingEventListResponse.Institution | null;
316
+
317
+ /**
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.
321
+ */
322
+ is_terminal: boolean;
323
+
324
+ /**
325
+ * Normalized point in the payout journey. New values may be added.
326
+ */
327
+ milestone:
328
+ | 'initiated'
329
+ | 'submitted'
330
+ | 'sent'
331
+ | 'failed'
332
+ | 'returned'
333
+ | 'accepted'
334
+ | 'settled'
335
+ | 'forwarded'
336
+ | 'credited'
337
+ | 'rejected'
338
+ | 'returning'
339
+ | 'visibility_lost'
340
+ | 'other';
341
+
342
+ /**
343
+ * Raw network status. Null when the step has none.
344
+ */
345
+ network_status: PayoutTrackingEventListResponse.NetworkStatus | null;
346
+
347
+ /**
348
+ * ISO 8601 UTC timestamp when the step happened. Null when the source has no
349
+ * timestamp. Can be out of order with sequence.
350
+ */
351
+ occurred_at: string | null;
352
+
353
+ /**
354
+ * ID of the payout this event belongs to.
355
+ */
356
+ payout_id: string;
357
+
358
+ /**
359
+ * How far Augustus can follow the payout: end_to_end when the rail confirms the
360
+ * beneficiary credit, network when it only confirms settlement. New values may be
361
+ * added.
362
+ */
363
+ scope: 'network' | 'end_to_end';
364
+
365
+ /**
366
+ * Gap-free counter per payout, in the order Augustus recorded the events. A gap
367
+ * means you missed a recorded event, such as a dropped webhook. A sequence without
368
+ * gaps does not mean every network step was observed.
369
+ */
370
+ sequence: number;
371
+
372
+ /**
373
+ * Where Augustus learned this step: augustus for steps Augustus records itself,
374
+ * swift_gpi for SWIFT gpi statuses, other for any other source. New values may be
375
+ * added.
376
+ */
377
+ source: 'augustus' | 'swift_gpi' | 'other';
378
+
379
+ /**
380
+ * Reason for the current state. Null when none applies.
381
+ */
382
+ status_reason: PayoutTrackingEventListResponse.StatusReason | null;
383
+
384
+ /**
385
+ * Resource type discriminator.
386
+ */
387
+ type: 'payout_tracking_event';
388
+ }
389
+
390
+ export namespace PayoutTrackingEventListResponse {
391
+ /**
392
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
393
+ * null.
394
+ */
395
+ export interface BeneficiaryAmount {
396
+ /**
397
+ * Credited amount as a string decimal (e.g. "100.50").
398
+ */
399
+ amount: string;
400
+
401
+ /**
402
+ * ISO 4217 currency code of the credited amount.
403
+ */
404
+ currency: string;
405
+ }
406
+
407
+ /**
408
+ * Fee deducted at this step. Null when none was reported.
409
+ */
410
+ export interface Fee {
411
+ /**
412
+ * Fee amount as a string decimal (e.g. "10.00").
413
+ */
414
+ amount: string;
415
+
416
+ /**
417
+ * Who bears the charges under the payment charge agreement: debtor (OUR), creditor
418
+ * (BEN), shared (SHA), or other for any other agreement. New values may be added.
419
+ */
420
+ borne_by: 'debtor' | 'creditor' | 'shared' | 'other';
421
+
422
+ /**
423
+ * ISO 4217 currency code of the fee.
424
+ */
425
+ currency: string;
426
+ }
427
+
428
+ /**
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.
467
+ */
468
+ export interface Institution {
469
+ /**
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.
477
+ */
478
+ name: string | null;
479
+ }
480
+
481
+ export namespace Institution {
482
+ /**
483
+ * Identifier of the institution, typed by scheme. Null when only its name is
484
+ * known.
485
+ */
486
+ export interface Identifier {
487
+ /**
488
+ * Identifier scheme. Only bic today.
489
+ */
490
+ type: 'bic';
491
+
492
+ /**
493
+ * ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
494
+ * padded with the XXX head office branch code.
495
+ */
496
+ value: string;
497
+ }
498
+ }
499
+
500
+ /**
501
+ * Raw network status. Null when the step has none.
502
+ */
503
+ export interface NetworkStatus {
504
+ /**
505
+ * Status code reported by the network, such as ACSP, ACSC, ACCC or RJCT.
506
+ */
507
+ code: string;
508
+
509
+ /**
510
+ * Reason code for the status, such as G000. Null when the network reports none.
511
+ */
512
+ reason_code: string | null;
513
+ }
514
+
515
+ /**
516
+ * Reason for the current state. Null when none applies.
517
+ */
518
+ export interface StatusReason {
519
+ /**
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.
522
+ */
523
+ code: string;
524
+
525
+ /**
526
+ * Explanation of the reason code, written by Augustus.
527
+ */
528
+ description: string;
529
+ }
530
+ }
531
+
532
+ export interface PayoutTrackingEventListParams extends CursorPageParams {
533
+ created_at?: PayoutTrackingEventListParams.CreatedAt;
534
+
535
+ /**
536
+ * Filter by whether Augustus considers delivery finished.
537
+ */
538
+ is_terminal?: boolean;
539
+
540
+ /**
541
+ * Filter by milestone.
542
+ */
543
+ milestone?:
544
+ | 'initiated'
545
+ | 'submitted'
546
+ | 'sent'
547
+ | 'failed'
548
+ | 'returned'
549
+ | 'accepted'
550
+ | 'settled'
551
+ | 'forwarded'
552
+ | 'credited'
553
+ | 'rejected'
554
+ | 'returning'
555
+ | 'visibility_lost'
556
+ | 'other';
557
+
558
+ /**
559
+ * Filter tracking events belonging to this payout.
560
+ */
561
+ payout_id?: string;
562
+ }
563
+
564
+ export namespace PayoutTrackingEventListParams {
565
+ export interface CreatedAt {
566
+ /**
567
+ * Include tracking events whose created_at is greater than or equal to this ISO
568
+ * 8601 timestamp.
569
+ */
570
+ gte?: string;
571
+
572
+ /**
573
+ * Include tracking events whose created_at is less than or equal to this ISO 8601
574
+ * timestamp.
575
+ */
576
+ lte?: string;
577
+ }
578
+ }
579
+
580
+ export declare namespace PayoutTrackingEvents {
581
+ export {
582
+ type PayoutTrackingEventRetrieveResponse as PayoutTrackingEventRetrieveResponse,
583
+ type PayoutTrackingEventListResponse as PayoutTrackingEventListResponse,
584
+ type PayoutTrackingEventListResponsesCursorPage as PayoutTrackingEventListResponsesCursorPage,
585
+ type PayoutTrackingEventListParams as PayoutTrackingEventListParams,
586
+ };
587
+ }
@@ -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
  /**
@@ -54,7 +54,8 @@ export namespace ScopeListResponse {
54
54
  | 'webhook_deliveries:read'
55
55
  | 'webhook_deliveries:write'
56
56
  | 'transactions:read'
57
- | 'simulations:write';
57
+ | 'simulations:write'
58
+ | 'payout_tracking_events:read';
58
59
 
59
60
  /**
60
61
  * Action category.
@@ -106,12 +106,6 @@ export interface TransactionRetrieveResponse {
106
106
  */
107
107
  status: 'booked';
108
108
 
109
- /**
110
- * Reference used to track the payment across the payment network, such as the UETR
111
- * for SWIFT payments.
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.
@@ -665,12 +659,6 @@ export interface TransactionListResponse {
665
659
  */
666
660
  status: 'booked';
667
661
 
668
- /**
669
- * Reference used to track the payment across the payment network, such as the UETR
670
- * for SWIFT payments.
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.