@augustusbank/typescript-sdk 0.19.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/accounts.d.mts +7 -7
  4. package/resources/accounts.d.mts.map +1 -1
  5. package/resources/accounts.d.ts +7 -7
  6. package/resources/accounts.d.ts.map +1 -1
  7. package/resources/conversions.d.mts +8 -8
  8. package/resources/conversions.d.mts.map +1 -1
  9. package/resources/conversions.d.ts +8 -8
  10. package/resources/conversions.d.ts.map +1 -1
  11. package/resources/deposits.d.mts +14 -14
  12. package/resources/deposits.d.mts.map +1 -1
  13. package/resources/deposits.d.ts +14 -14
  14. package/resources/deposits.d.ts.map +1 -1
  15. package/resources/payouts.d.mts +25 -25
  16. package/resources/payouts.d.mts.map +1 -1
  17. package/resources/payouts.d.ts +25 -25
  18. package/resources/payouts.d.ts.map +1 -1
  19. package/resources/returns.d.mts +3 -3
  20. package/resources/returns.d.mts.map +1 -1
  21. package/resources/returns.d.ts +3 -3
  22. package/resources/returns.d.ts.map +1 -1
  23. package/resources/transactions.d.mts +12 -12
  24. package/resources/transactions.d.mts.map +1 -1
  25. package/resources/transactions.d.ts +12 -12
  26. package/resources/transactions.d.ts.map +1 -1
  27. package/resources/webhooks.d.mts +41 -41
  28. package/resources/webhooks.d.mts.map +1 -1
  29. package/resources/webhooks.d.ts +41 -41
  30. package/resources/webhooks.d.ts.map +1 -1
  31. package/src/resources/accounts.ts +7 -7
  32. package/src/resources/conversions.ts +8 -8
  33. package/src/resources/deposits.ts +20 -20
  34. package/src/resources/payouts.ts +37 -37
  35. package/src/resources/returns.ts +3 -3
  36. package/src/resources/transactions.ts +18 -18
  37. package/src/resources/webhooks.ts +57 -41
  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
@@ -51,7 +51,7 @@ export interface DepositRetrieveResponse {
51
51
  /**
52
52
  * Supported fiat or crypto currency code for the deposit amount.
53
53
  */
54
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
54
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
55
55
 
56
56
  /**
57
57
  * ID of the merchant account that received the deposit.
@@ -59,7 +59,7 @@ export interface DepositRetrieveResponse {
59
59
  destination_account_id: string;
60
60
 
61
61
  /**
62
- * Payment rail or blockchain used for the deposit.
62
+ * Payment rail or blockchain used for the deposit, or null when unknown.
63
63
  */
64
64
  rail:
65
65
  | 'sepa_instant'
@@ -94,10 +94,10 @@ export interface DepositRetrieveResponse {
94
94
  * Counterparty bank account or crypto wallet that sent the funds.
95
95
  */
96
96
  source:
97
- | DepositRetrieveResponse.UnionMember0
98
- | DepositRetrieveResponse.UnionMember1
99
- | DepositRetrieveResponse.UnionMember2
100
- | DepositRetrieveResponse.UnionMember3;
97
+ | DepositRetrieveResponse.Iban
98
+ | DepositRetrieveResponse.UkSortCode
99
+ | DepositRetrieveResponse.Aba
100
+ | DepositRetrieveResponse.Wallet;
101
101
 
102
102
  /**
103
103
  * Current status of the deposit.
@@ -121,7 +121,7 @@ export interface DepositRetrieveResponse {
121
121
  }
122
122
 
123
123
  export namespace DepositRetrieveResponse {
124
- export interface UnionMember0 {
124
+ export interface Iban {
125
125
  /**
126
126
  * Name of the account holder.
127
127
  */
@@ -143,7 +143,7 @@ export namespace DepositRetrieveResponse {
143
143
  type: 'iban';
144
144
  }
145
145
 
146
- export interface UnionMember1 {
146
+ export interface UkSortCode {
147
147
  /**
148
148
  * Name of the account holder.
149
149
  */
@@ -165,7 +165,7 @@ export namespace DepositRetrieveResponse {
165
165
  type: 'sort_code';
166
166
  }
167
167
 
168
- export interface UnionMember2 {
168
+ export interface Aba {
169
169
  /**
170
170
  * Name of the account holder.
171
171
  */
@@ -187,7 +187,7 @@ export namespace DepositRetrieveResponse {
187
187
  type: 'aba';
188
188
  }
189
189
 
190
- export interface UnionMember3 {
190
+ export interface Wallet {
191
191
  /**
192
192
  * Wallet address on the specified blockchain.
193
193
  */
@@ -237,7 +237,7 @@ export interface DepositListResponse {
237
237
  /**
238
238
  * Supported fiat or crypto currency code for the deposit amount.
239
239
  */
240
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
240
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
241
241
 
242
242
  /**
243
243
  * ID of the merchant account that received the deposit.
@@ -245,7 +245,7 @@ export interface DepositListResponse {
245
245
  destination_account_id: string;
246
246
 
247
247
  /**
248
- * Payment rail or blockchain used for the deposit.
248
+ * Payment rail or blockchain used for the deposit, or null when unknown.
249
249
  */
250
250
  rail:
251
251
  | 'sepa_instant'
@@ -280,10 +280,10 @@ export interface DepositListResponse {
280
280
  * Counterparty bank account or crypto wallet that sent the funds.
281
281
  */
282
282
  source:
283
- | DepositListResponse.UnionMember0
284
- | DepositListResponse.UnionMember1
285
- | DepositListResponse.UnionMember2
286
- | DepositListResponse.UnionMember3;
283
+ | DepositListResponse.Iban
284
+ | DepositListResponse.UkSortCode
285
+ | DepositListResponse.Aba
286
+ | DepositListResponse.Wallet;
287
287
 
288
288
  /**
289
289
  * Current status of the deposit.
@@ -307,7 +307,7 @@ export interface DepositListResponse {
307
307
  }
308
308
 
309
309
  export namespace DepositListResponse {
310
- export interface UnionMember0 {
310
+ export interface Iban {
311
311
  /**
312
312
  * Name of the account holder.
313
313
  */
@@ -329,7 +329,7 @@ export namespace DepositListResponse {
329
329
  type: 'iban';
330
330
  }
331
331
 
332
- export interface UnionMember1 {
332
+ export interface UkSortCode {
333
333
  /**
334
334
  * Name of the account holder.
335
335
  */
@@ -351,7 +351,7 @@ export namespace DepositListResponse {
351
351
  type: 'sort_code';
352
352
  }
353
353
 
354
- export interface UnionMember2 {
354
+ export interface Aba {
355
355
  /**
356
356
  * Name of the account holder.
357
357
  */
@@ -373,7 +373,7 @@ export namespace DepositListResponse {
373
373
  type: 'aba';
374
374
  }
375
375
 
376
- export interface UnionMember3 {
376
+ export interface Wallet {
377
377
  /**
378
378
  * Wallet address on the specified blockchain.
379
379
  */
@@ -53,16 +53,16 @@ export interface PayoutCreateResponse {
53
53
  /**
54
54
  * Currency code (ISO 4217 currency code or crypto currency code).
55
55
  */
56
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
56
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
57
57
 
58
58
  /**
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
  */
@@ -246,16 +246,16 @@ export interface PayoutRetrieveResponse {
246
246
  /**
247
247
  * Currency code (ISO 4217 currency code or crypto currency code).
248
248
  */
249
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
249
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
250
250
 
251
251
  /**
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
  */
@@ -439,16 +439,16 @@ export interface PayoutListResponse {
439
439
  /**
440
440
  * Currency code (ISO 4217 currency code or crypto currency code).
441
441
  */
442
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
442
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
443
443
 
444
444
  /**
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
  */
@@ -622,16 +622,16 @@ export interface PayoutCreateParams {
622
622
  /**
623
623
  * Currency for the payout.
624
624
  */
625
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
625
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
626
626
 
627
627
  /**
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
  */
@@ -754,7 +754,7 @@ export interface PayoutListParams extends CursorPageParams {
754
754
  * Filter to these currency codes. Use a separate `currencies` query parameter for
755
755
  * each value (e.g. `?currencies=EUR&currencies=USD`).
756
756
  */
757
- currencies?: Array<'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL'>;
757
+ currencies?: Array<'EUR' | 'GBP' | 'USD' | 'USDC'>;
758
758
 
759
759
  /**
760
760
  * Filter by payout status.
@@ -53,7 +53,7 @@ export interface ReturnCreateResponse {
53
53
  /**
54
54
  * Currency code (ISO 4217 currency code or crypto currency code).
55
55
  */
56
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
56
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
57
57
 
58
58
  /**
59
59
  * ID of the parent deposit.
@@ -136,7 +136,7 @@ export interface ReturnRetrieveResponse {
136
136
  /**
137
137
  * Currency code (ISO 4217 currency code or crypto currency code).
138
138
  */
139
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
139
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
140
140
 
141
141
  /**
142
142
  * ID of the parent deposit.
@@ -219,7 +219,7 @@ export interface ReturnListResponse {
219
219
  /**
220
220
  * Currency code (ISO 4217 currency code or crypto currency code).
221
221
  */
222
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
222
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
223
223
 
224
224
  /**
225
225
  * ID of the parent deposit.
@@ -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
  /**
@@ -69,7 +69,7 @@ export interface TransactionRetrieveResponse {
69
69
  /**
70
70
  * ISO 4217 fiat or crypto currency code of the amount.
71
71
  */
72
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
72
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
73
73
 
74
74
  /**
75
75
  * The product that caused this transaction, or null when no product is linked.
@@ -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
  /**
@@ -239,7 +239,7 @@ export interface TransactionListResponse {
239
239
  /**
240
240
  * ISO 4217 fiat or crypto currency code of the amount.
241
241
  */
242
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
242
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
243
243
 
244
244
  /**
245
245
  * The product that caused this transaction, or null when no product is linked.
@@ -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
  */