@augustusbank/typescript-sdk 0.20.0 → 0.21.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.
@@ -59,10 +59,10 @@ export interface PayoutCreateResponse {
59
59
  * Bank account or crypto wallet the payout was sent to.
60
60
  */
61
61
  destination:
62
- | PayoutCreateResponse.UnionMember0
63
- | PayoutCreateResponse.UnionMember1
64
- | PayoutCreateResponse.UnionMember2
65
- | PayoutCreateResponse.UnionMember3;
62
+ | PayoutCreateResponse.IbanFinancialAddress
63
+ | PayoutCreateResponse.SortCodeFinancialAddress
64
+ | PayoutCreateResponse.AbaFinancialAddress
65
+ | PayoutCreateResponse.CryptoWalletFinancialAddress;
66
66
 
67
67
  /**
68
68
  * Failure details when status is failed, otherwise null.
@@ -101,7 +101,7 @@ export interface PayoutCreateResponse {
101
101
  }
102
102
 
103
103
  export namespace PayoutCreateResponse {
104
- export interface UnionMember0 {
104
+ export interface IbanFinancialAddress {
105
105
  /**
106
106
  * Name of the account holder.
107
107
  */
@@ -123,7 +123,7 @@ export namespace PayoutCreateResponse {
123
123
  type: 'iban';
124
124
  }
125
125
 
126
- export interface UnionMember1 {
126
+ export interface SortCodeFinancialAddress {
127
127
  /**
128
128
  * Name of the account holder.
129
129
  */
@@ -145,7 +145,7 @@ export namespace PayoutCreateResponse {
145
145
  type: 'sort_code';
146
146
  }
147
147
 
148
- export interface UnionMember2 {
148
+ export interface AbaFinancialAddress {
149
149
  /**
150
150
  * Name of the account holder.
151
151
  */
@@ -167,7 +167,7 @@ export namespace PayoutCreateResponse {
167
167
  type: 'aba';
168
168
  }
169
169
 
170
- export interface UnionMember3 {
170
+ export interface CryptoWalletFinancialAddress {
171
171
  /**
172
172
  * Wallet address on the specified blockchain.
173
173
  */
@@ -252,10 +252,10 @@ export interface PayoutRetrieveResponse {
252
252
  * Bank account or crypto wallet the payout was sent to.
253
253
  */
254
254
  destination:
255
- | PayoutRetrieveResponse.UnionMember0
256
- | PayoutRetrieveResponse.UnionMember1
257
- | PayoutRetrieveResponse.UnionMember2
258
- | PayoutRetrieveResponse.UnionMember3;
255
+ | PayoutRetrieveResponse.IbanFinancialAddress
256
+ | PayoutRetrieveResponse.SortCodeFinancialAddress
257
+ | PayoutRetrieveResponse.AbaFinancialAddress
258
+ | PayoutRetrieveResponse.CryptoWalletFinancialAddress;
259
259
 
260
260
  /**
261
261
  * Failure details when status is failed, otherwise null.
@@ -294,7 +294,7 @@ export interface PayoutRetrieveResponse {
294
294
  }
295
295
 
296
296
  export namespace PayoutRetrieveResponse {
297
- export interface UnionMember0 {
297
+ export interface IbanFinancialAddress {
298
298
  /**
299
299
  * Name of the account holder.
300
300
  */
@@ -316,7 +316,7 @@ export namespace PayoutRetrieveResponse {
316
316
  type: 'iban';
317
317
  }
318
318
 
319
- export interface UnionMember1 {
319
+ export interface SortCodeFinancialAddress {
320
320
  /**
321
321
  * Name of the account holder.
322
322
  */
@@ -338,7 +338,7 @@ export namespace PayoutRetrieveResponse {
338
338
  type: 'sort_code';
339
339
  }
340
340
 
341
- export interface UnionMember2 {
341
+ export interface AbaFinancialAddress {
342
342
  /**
343
343
  * Name of the account holder.
344
344
  */
@@ -360,7 +360,7 @@ export namespace PayoutRetrieveResponse {
360
360
  type: 'aba';
361
361
  }
362
362
 
363
- export interface UnionMember3 {
363
+ export interface CryptoWalletFinancialAddress {
364
364
  /**
365
365
  * Wallet address on the specified blockchain.
366
366
  */
@@ -445,10 +445,10 @@ export interface PayoutListResponse {
445
445
  * Bank account or crypto wallet the payout was sent to.
446
446
  */
447
447
  destination:
448
- | PayoutListResponse.UnionMember0
449
- | PayoutListResponse.UnionMember1
450
- | PayoutListResponse.UnionMember2
451
- | PayoutListResponse.UnionMember3;
448
+ | PayoutListResponse.IbanFinancialAddress
449
+ | PayoutListResponse.SortCodeFinancialAddress
450
+ | PayoutListResponse.AbaFinancialAddress
451
+ | PayoutListResponse.CryptoWalletFinancialAddress;
452
452
 
453
453
  /**
454
454
  * Failure details when status is failed, otherwise null.
@@ -487,7 +487,7 @@ export interface PayoutListResponse {
487
487
  }
488
488
 
489
489
  export namespace PayoutListResponse {
490
- export interface UnionMember0 {
490
+ export interface IbanFinancialAddress {
491
491
  /**
492
492
  * Name of the account holder.
493
493
  */
@@ -509,7 +509,7 @@ export namespace PayoutListResponse {
509
509
  type: 'iban';
510
510
  }
511
511
 
512
- export interface UnionMember1 {
512
+ export interface SortCodeFinancialAddress {
513
513
  /**
514
514
  * Name of the account holder.
515
515
  */
@@ -531,7 +531,7 @@ export namespace PayoutListResponse {
531
531
  type: 'sort_code';
532
532
  }
533
533
 
534
- export interface UnionMember2 {
534
+ export interface AbaFinancialAddress {
535
535
  /**
536
536
  * Name of the account holder.
537
537
  */
@@ -553,7 +553,7 @@ export namespace PayoutListResponse {
553
553
  type: 'aba';
554
554
  }
555
555
 
556
- export interface UnionMember3 {
556
+ export interface CryptoWalletFinancialAddress {
557
557
  /**
558
558
  * Wallet address on the specified blockchain.
559
559
  */
@@ -628,10 +628,10 @@ export interface PayoutCreateParams {
628
628
  * Bank account or crypto wallet to send funds to.
629
629
  */
630
630
  destination:
631
- | PayoutCreateParams.UnionMember0
632
- | PayoutCreateParams.UnionMember1
633
- | PayoutCreateParams.UnionMember2
634
- | PayoutCreateParams.UnionMember3;
631
+ | PayoutCreateParams.Iban
632
+ | PayoutCreateParams.SortCodeFinancialAddress
633
+ | PayoutCreateParams.AbaFinancialAddress
634
+ | PayoutCreateParams.CryptoWalletFinancialAddress;
635
635
 
636
636
  /**
637
637
  * Payment reference.
@@ -655,7 +655,7 @@ export interface PayoutCreateParams {
655
655
  }
656
656
 
657
657
  export namespace PayoutCreateParams {
658
- export interface UnionMember0 {
658
+ export interface Iban {
659
659
  /**
660
660
  * Name of the account holder.
661
661
  */
@@ -677,7 +677,7 @@ export namespace PayoutCreateParams {
677
677
  bic?: string;
678
678
  }
679
679
 
680
- export interface UnionMember1 {
680
+ export interface SortCodeFinancialAddress {
681
681
  /**
682
682
  * Name of the account holder.
683
683
  */
@@ -699,7 +699,7 @@ export namespace PayoutCreateParams {
699
699
  type: 'sort_code';
700
700
  }
701
701
 
702
- export interface UnionMember2 {
702
+ export interface AbaFinancialAddress {
703
703
  /**
704
704
  * Name of the account holder.
705
705
  */
@@ -721,7 +721,7 @@ export namespace PayoutCreateParams {
721
721
  type: 'aba';
722
722
  }
723
723
 
724
- export interface UnionMember3 {
724
+ export interface CryptoWalletFinancialAddress {
725
725
  /**
726
726
  * Wallet address on the specified blockchain.
727
727
  */
@@ -55,10 +55,10 @@ export interface TransactionRetrieveResponse {
55
55
  * Bank account or wallet of the other party, or null when not known.
56
56
  */
57
57
  counterparty:
58
- | TransactionRetrieveResponse.UnionMember0
59
- | TransactionRetrieveResponse.UnionMember1
60
- | TransactionRetrieveResponse.UnionMember2
61
- | TransactionRetrieveResponse.UnionMember3
58
+ | TransactionRetrieveResponse.IbanFinancialAddress
59
+ | TransactionRetrieveResponse.SortCodeFinancialAddress
60
+ | TransactionRetrieveResponse.AbaFinancialAddress
61
+ | TransactionRetrieveResponse.CryptoWalletFinancialAddress
62
62
  | null;
63
63
 
64
64
  /**
@@ -93,7 +93,7 @@ export interface TransactionRetrieveResponse {
93
93
  }
94
94
 
95
95
  export namespace TransactionRetrieveResponse {
96
- export interface UnionMember0 {
96
+ export interface IbanFinancialAddress {
97
97
  /**
98
98
  * Name of the account holder.
99
99
  */
@@ -115,7 +115,7 @@ export namespace TransactionRetrieveResponse {
115
115
  type: 'iban';
116
116
  }
117
117
 
118
- export interface UnionMember1 {
118
+ export interface SortCodeFinancialAddress {
119
119
  /**
120
120
  * Name of the account holder.
121
121
  */
@@ -137,7 +137,7 @@ export namespace TransactionRetrieveResponse {
137
137
  type: 'sort_code';
138
138
  }
139
139
 
140
- export interface UnionMember2 {
140
+ export interface AbaFinancialAddress {
141
141
  /**
142
142
  * Name of the account holder.
143
143
  */
@@ -159,7 +159,7 @@ export namespace TransactionRetrieveResponse {
159
159
  type: 'aba';
160
160
  }
161
161
 
162
- export interface UnionMember3 {
162
+ export interface CryptoWalletFinancialAddress {
163
163
  /**
164
164
  * Wallet address on the specified blockchain.
165
165
  */
@@ -225,10 +225,10 @@ export interface TransactionListResponse {
225
225
  * Bank account or wallet of the other party, or null when not known.
226
226
  */
227
227
  counterparty:
228
- | TransactionListResponse.UnionMember0
229
- | TransactionListResponse.UnionMember1
230
- | TransactionListResponse.UnionMember2
231
- | TransactionListResponse.UnionMember3
228
+ | TransactionListResponse.IbanFinancialAddress
229
+ | TransactionListResponse.SortCodeFinancialAddress
230
+ | TransactionListResponse.AbaFinancialAddress
231
+ | TransactionListResponse.CryptoWalletFinancialAddress
232
232
  | null;
233
233
 
234
234
  /**
@@ -263,7 +263,7 @@ export interface TransactionListResponse {
263
263
  }
264
264
 
265
265
  export namespace TransactionListResponse {
266
- export interface UnionMember0 {
266
+ export interface IbanFinancialAddress {
267
267
  /**
268
268
  * Name of the account holder.
269
269
  */
@@ -285,7 +285,7 @@ export namespace TransactionListResponse {
285
285
  type: 'iban';
286
286
  }
287
287
 
288
- export interface UnionMember1 {
288
+ export interface SortCodeFinancialAddress {
289
289
  /**
290
290
  * Name of the account holder.
291
291
  */
@@ -307,7 +307,7 @@ export namespace TransactionListResponse {
307
307
  type: 'sort_code';
308
308
  }
309
309
 
310
- export interface UnionMember2 {
310
+ export interface AbaFinancialAddress {
311
311
  /**
312
312
  * Name of the account holder.
313
313
  */
@@ -329,7 +329,7 @@ export namespace TransactionListResponse {
329
329
  type: 'aba';
330
330
  }
331
331
 
332
- export interface UnionMember3 {
332
+ export interface CryptoWalletFinancialAddress {
333
333
  /**
334
334
  * Wallet address on the specified blockchain.
335
335
  */
@@ -73,7 +73,11 @@ export namespace PayoutCreatedWebhookEvent {
73
73
  /**
74
74
  * Bank account or crypto wallet the payout was sent to.
75
75
  */
76
- destination: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
76
+ destination:
77
+ | Payload.IbanFinancialAddress
78
+ | Payload.SortCodeFinancialAddress
79
+ | Payload.AbaFinancialAddress
80
+ | Payload.CryptoWalletFinancialAddress;
77
81
 
78
82
  /**
79
83
  * Failure details when status is failed, otherwise null.
@@ -112,7 +116,7 @@ export namespace PayoutCreatedWebhookEvent {
112
116
  }
113
117
 
114
118
  export namespace Payload {
115
- export interface UnionMember0 {
119
+ export interface IbanFinancialAddress {
116
120
  /**
117
121
  * Name of the account holder.
118
122
  */
@@ -134,7 +138,7 @@ export namespace PayoutCreatedWebhookEvent {
134
138
  type: 'iban';
135
139
  }
136
140
 
137
- export interface UnionMember1 {
141
+ export interface SortCodeFinancialAddress {
138
142
  /**
139
143
  * Name of the account holder.
140
144
  */
@@ -156,7 +160,7 @@ export namespace PayoutCreatedWebhookEvent {
156
160
  type: 'sort_code';
157
161
  }
158
162
 
159
- export interface UnionMember2 {
163
+ export interface AbaFinancialAddress {
160
164
  /**
161
165
  * Name of the account holder.
162
166
  */
@@ -178,7 +182,7 @@ export namespace PayoutCreatedWebhookEvent {
178
182
  type: 'aba';
179
183
  }
180
184
 
181
- export interface UnionMember3 {
185
+ export interface CryptoWalletFinancialAddress {
182
186
  /**
183
187
  * Wallet address on the specified blockchain.
184
188
  */
@@ -294,7 +298,11 @@ export namespace PayoutInitiatedWebhookEvent {
294
298
  /**
295
299
  * Bank account or crypto wallet the payout was sent to.
296
300
  */
297
- destination: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
301
+ destination:
302
+ | Payload.IbanFinancialAddress
303
+ | Payload.SortCodeFinancialAddress
304
+ | Payload.AbaFinancialAddress
305
+ | Payload.CryptoWalletFinancialAddress;
298
306
 
299
307
  /**
300
308
  * Failure details when status is failed, otherwise null.
@@ -333,7 +341,7 @@ export namespace PayoutInitiatedWebhookEvent {
333
341
  }
334
342
 
335
343
  export namespace Payload {
336
- export interface UnionMember0 {
344
+ export interface IbanFinancialAddress {
337
345
  /**
338
346
  * Name of the account holder.
339
347
  */
@@ -355,7 +363,7 @@ export namespace PayoutInitiatedWebhookEvent {
355
363
  type: 'iban';
356
364
  }
357
365
 
358
- export interface UnionMember1 {
366
+ export interface SortCodeFinancialAddress {
359
367
  /**
360
368
  * Name of the account holder.
361
369
  */
@@ -377,7 +385,7 @@ export namespace PayoutInitiatedWebhookEvent {
377
385
  type: 'sort_code';
378
386
  }
379
387
 
380
- export interface UnionMember2 {
388
+ export interface AbaFinancialAddress {
381
389
  /**
382
390
  * Name of the account holder.
383
391
  */
@@ -399,7 +407,7 @@ export namespace PayoutInitiatedWebhookEvent {
399
407
  type: 'aba';
400
408
  }
401
409
 
402
- export interface UnionMember3 {
410
+ export interface CryptoWalletFinancialAddress {
403
411
  /**
404
412
  * Wallet address on the specified blockchain.
405
413
  */
@@ -515,7 +523,11 @@ export namespace PayoutPaidWebhookEvent {
515
523
  /**
516
524
  * Bank account or crypto wallet the payout was sent to.
517
525
  */
518
- destination: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
526
+ destination:
527
+ | Payload.IbanFinancialAddress
528
+ | Payload.SortCodeFinancialAddress
529
+ | Payload.AbaFinancialAddress
530
+ | Payload.CryptoWalletFinancialAddress;
519
531
 
520
532
  /**
521
533
  * Failure details when status is failed, otherwise null.
@@ -554,7 +566,7 @@ export namespace PayoutPaidWebhookEvent {
554
566
  }
555
567
 
556
568
  export namespace Payload {
557
- export interface UnionMember0 {
569
+ export interface IbanFinancialAddress {
558
570
  /**
559
571
  * Name of the account holder.
560
572
  */
@@ -576,7 +588,7 @@ export namespace PayoutPaidWebhookEvent {
576
588
  type: 'iban';
577
589
  }
578
590
 
579
- export interface UnionMember1 {
591
+ export interface SortCodeFinancialAddress {
580
592
  /**
581
593
  * Name of the account holder.
582
594
  */
@@ -598,7 +610,7 @@ export namespace PayoutPaidWebhookEvent {
598
610
  type: 'sort_code';
599
611
  }
600
612
 
601
- export interface UnionMember2 {
613
+ export interface AbaFinancialAddress {
602
614
  /**
603
615
  * Name of the account holder.
604
616
  */
@@ -620,7 +632,7 @@ export namespace PayoutPaidWebhookEvent {
620
632
  type: 'aba';
621
633
  }
622
634
 
623
- export interface UnionMember3 {
635
+ export interface CryptoWalletFinancialAddress {
624
636
  /**
625
637
  * Wallet address on the specified blockchain.
626
638
  */
@@ -736,7 +748,11 @@ export namespace PayoutFailedWebhookEvent {
736
748
  /**
737
749
  * Bank account or crypto wallet the payout was sent to.
738
750
  */
739
- destination: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
751
+ destination:
752
+ | Payload.IbanFinancialAddress
753
+ | Payload.SortCodeFinancialAddress
754
+ | Payload.AbaFinancialAddress
755
+ | Payload.CryptoWalletFinancialAddress;
740
756
 
741
757
  /**
742
758
  * Failure details when status is failed, otherwise null.
@@ -775,7 +791,7 @@ export namespace PayoutFailedWebhookEvent {
775
791
  }
776
792
 
777
793
  export namespace Payload {
778
- export interface UnionMember0 {
794
+ export interface IbanFinancialAddress {
779
795
  /**
780
796
  * Name of the account holder.
781
797
  */
@@ -797,7 +813,7 @@ export namespace PayoutFailedWebhookEvent {
797
813
  type: 'iban';
798
814
  }
799
815
 
800
- export interface UnionMember1 {
816
+ export interface SortCodeFinancialAddress {
801
817
  /**
802
818
  * Name of the account holder.
803
819
  */
@@ -819,7 +835,7 @@ export namespace PayoutFailedWebhookEvent {
819
835
  type: 'sort_code';
820
836
  }
821
837
 
822
- export interface UnionMember2 {
838
+ export interface AbaFinancialAddress {
823
839
  /**
824
840
  * Name of the account holder.
825
841
  */
@@ -841,7 +857,7 @@ export namespace PayoutFailedWebhookEvent {
841
857
  type: 'aba';
842
858
  }
843
859
 
844
- export interface UnionMember3 {
860
+ export interface CryptoWalletFinancialAddress {
845
861
  /**
846
862
  * Wallet address on the specified blockchain.
847
863
  */
@@ -1425,7 +1441,7 @@ export namespace DepositReceivedWebhookEvent {
1425
1441
  destination_account_id: string;
1426
1442
 
1427
1443
  /**
1428
- * Payment rail or blockchain used for the deposit.
1444
+ * Payment rail or blockchain used for the deposit, or null when unknown.
1429
1445
  */
1430
1446
  rail:
1431
1447
  | 'sepa_instant'
@@ -1459,7 +1475,7 @@ export namespace DepositReceivedWebhookEvent {
1459
1475
  /**
1460
1476
  * Counterparty bank account or crypto wallet that sent the funds.
1461
1477
  */
1462
- source: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
1478
+ source: Payload.Iban | Payload.UkSortCode | Payload.Aba | Payload.Wallet;
1463
1479
 
1464
1480
  /**
1465
1481
  * Current status of the deposit.
@@ -1483,7 +1499,7 @@ export namespace DepositReceivedWebhookEvent {
1483
1499
  }
1484
1500
 
1485
1501
  export namespace Payload {
1486
- export interface UnionMember0 {
1502
+ export interface Iban {
1487
1503
  /**
1488
1504
  * Name of the account holder.
1489
1505
  */
@@ -1505,7 +1521,7 @@ export namespace DepositReceivedWebhookEvent {
1505
1521
  type: 'iban';
1506
1522
  }
1507
1523
 
1508
- export interface UnionMember1 {
1524
+ export interface UkSortCode {
1509
1525
  /**
1510
1526
  * Name of the account holder.
1511
1527
  */
@@ -1527,7 +1543,7 @@ export namespace DepositReceivedWebhookEvent {
1527
1543
  type: 'sort_code';
1528
1544
  }
1529
1545
 
1530
- export interface UnionMember2 {
1546
+ export interface Aba {
1531
1547
  /**
1532
1548
  * Name of the account holder.
1533
1549
  */
@@ -1549,7 +1565,7 @@ export namespace DepositReceivedWebhookEvent {
1549
1565
  type: 'aba';
1550
1566
  }
1551
1567
 
1552
- export interface UnionMember3 {
1568
+ export interface Wallet {
1553
1569
  /**
1554
1570
  * Wallet address on the specified blockchain.
1555
1571
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.21.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.20.0'; // x-release-please-version
4
+ exports.VERSION = '0.21.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.21.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map