@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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +7 -7
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +7 -7
- package/resources/accounts.d.ts.map +1 -1
- package/resources/conversions.d.mts +8 -8
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +8 -8
- package/resources/conversions.d.ts.map +1 -1
- package/resources/deposits.d.mts +14 -14
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +14 -14
- package/resources/deposits.d.ts.map +1 -1
- package/resources/payouts.d.mts +25 -25
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +25 -25
- package/resources/payouts.d.ts.map +1 -1
- package/resources/returns.d.mts +3 -3
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +3 -3
- package/resources/returns.d.ts.map +1 -1
- package/resources/transactions.d.mts +12 -12
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +12 -12
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +41 -41
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +41 -41
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/accounts.ts +7 -7
- package/src/resources/conversions.ts +8 -8
- package/src/resources/deposits.ts +20 -20
- package/src/resources/payouts.ts +37 -37
- package/src/resources/returns.ts +3 -3
- package/src/resources/transactions.ts +18 -18
- package/src/resources/webhooks.ts +57 -41
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/webhooks.d.ts
CHANGED
|
@@ -47,11 +47,11 @@ export declare namespace PayoutCreatedWebhookEvent {
|
|
|
47
47
|
/**
|
|
48
48
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
49
49
|
*/
|
|
50
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
50
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
51
51
|
/**
|
|
52
52
|
* Bank account or crypto wallet the payout was sent to.
|
|
53
53
|
*/
|
|
54
|
-
destination: Payload.
|
|
54
|
+
destination: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.CryptoWalletFinancialAddress;
|
|
55
55
|
/**
|
|
56
56
|
* Failure details when status is failed, otherwise null.
|
|
57
57
|
*/
|
|
@@ -84,7 +84,7 @@ export declare namespace PayoutCreatedWebhookEvent {
|
|
|
84
84
|
updated_at: string;
|
|
85
85
|
}
|
|
86
86
|
namespace Payload {
|
|
87
|
-
interface
|
|
87
|
+
interface IbanFinancialAddress {
|
|
88
88
|
/**
|
|
89
89
|
* Name of the account holder.
|
|
90
90
|
*/
|
|
@@ -102,7 +102,7 @@ export declare namespace PayoutCreatedWebhookEvent {
|
|
|
102
102
|
*/
|
|
103
103
|
type: 'iban';
|
|
104
104
|
}
|
|
105
|
-
interface
|
|
105
|
+
interface SortCodeFinancialAddress {
|
|
106
106
|
/**
|
|
107
107
|
* Name of the account holder.
|
|
108
108
|
*/
|
|
@@ -120,7 +120,7 @@ export declare namespace PayoutCreatedWebhookEvent {
|
|
|
120
120
|
*/
|
|
121
121
|
type: 'sort_code';
|
|
122
122
|
}
|
|
123
|
-
interface
|
|
123
|
+
interface AbaFinancialAddress {
|
|
124
124
|
/**
|
|
125
125
|
* Name of the account holder.
|
|
126
126
|
*/
|
|
@@ -138,7 +138,7 @@ export declare namespace PayoutCreatedWebhookEvent {
|
|
|
138
138
|
*/
|
|
139
139
|
type: 'aba';
|
|
140
140
|
}
|
|
141
|
-
interface
|
|
141
|
+
interface CryptoWalletFinancialAddress {
|
|
142
142
|
/**
|
|
143
143
|
* Wallet address on the specified blockchain.
|
|
144
144
|
*/
|
|
@@ -213,11 +213,11 @@ export declare namespace PayoutInitiatedWebhookEvent {
|
|
|
213
213
|
/**
|
|
214
214
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
215
215
|
*/
|
|
216
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
216
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
217
217
|
/**
|
|
218
218
|
* Bank account or crypto wallet the payout was sent to.
|
|
219
219
|
*/
|
|
220
|
-
destination: Payload.
|
|
220
|
+
destination: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.CryptoWalletFinancialAddress;
|
|
221
221
|
/**
|
|
222
222
|
* Failure details when status is failed, otherwise null.
|
|
223
223
|
*/
|
|
@@ -250,7 +250,7 @@ export declare namespace PayoutInitiatedWebhookEvent {
|
|
|
250
250
|
updated_at: string;
|
|
251
251
|
}
|
|
252
252
|
namespace Payload {
|
|
253
|
-
interface
|
|
253
|
+
interface IbanFinancialAddress {
|
|
254
254
|
/**
|
|
255
255
|
* Name of the account holder.
|
|
256
256
|
*/
|
|
@@ -268,7 +268,7 @@ export declare namespace PayoutInitiatedWebhookEvent {
|
|
|
268
268
|
*/
|
|
269
269
|
type: 'iban';
|
|
270
270
|
}
|
|
271
|
-
interface
|
|
271
|
+
interface SortCodeFinancialAddress {
|
|
272
272
|
/**
|
|
273
273
|
* Name of the account holder.
|
|
274
274
|
*/
|
|
@@ -286,7 +286,7 @@ export declare namespace PayoutInitiatedWebhookEvent {
|
|
|
286
286
|
*/
|
|
287
287
|
type: 'sort_code';
|
|
288
288
|
}
|
|
289
|
-
interface
|
|
289
|
+
interface AbaFinancialAddress {
|
|
290
290
|
/**
|
|
291
291
|
* Name of the account holder.
|
|
292
292
|
*/
|
|
@@ -304,7 +304,7 @@ export declare namespace PayoutInitiatedWebhookEvent {
|
|
|
304
304
|
*/
|
|
305
305
|
type: 'aba';
|
|
306
306
|
}
|
|
307
|
-
interface
|
|
307
|
+
interface CryptoWalletFinancialAddress {
|
|
308
308
|
/**
|
|
309
309
|
* Wallet address on the specified blockchain.
|
|
310
310
|
*/
|
|
@@ -379,11 +379,11 @@ export declare namespace PayoutPaidWebhookEvent {
|
|
|
379
379
|
/**
|
|
380
380
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
381
381
|
*/
|
|
382
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
382
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
383
383
|
/**
|
|
384
384
|
* Bank account or crypto wallet the payout was sent to.
|
|
385
385
|
*/
|
|
386
|
-
destination: Payload.
|
|
386
|
+
destination: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.CryptoWalletFinancialAddress;
|
|
387
387
|
/**
|
|
388
388
|
* Failure details when status is failed, otherwise null.
|
|
389
389
|
*/
|
|
@@ -416,7 +416,7 @@ export declare namespace PayoutPaidWebhookEvent {
|
|
|
416
416
|
updated_at: string;
|
|
417
417
|
}
|
|
418
418
|
namespace Payload {
|
|
419
|
-
interface
|
|
419
|
+
interface IbanFinancialAddress {
|
|
420
420
|
/**
|
|
421
421
|
* Name of the account holder.
|
|
422
422
|
*/
|
|
@@ -434,7 +434,7 @@ export declare namespace PayoutPaidWebhookEvent {
|
|
|
434
434
|
*/
|
|
435
435
|
type: 'iban';
|
|
436
436
|
}
|
|
437
|
-
interface
|
|
437
|
+
interface SortCodeFinancialAddress {
|
|
438
438
|
/**
|
|
439
439
|
* Name of the account holder.
|
|
440
440
|
*/
|
|
@@ -452,7 +452,7 @@ export declare namespace PayoutPaidWebhookEvent {
|
|
|
452
452
|
*/
|
|
453
453
|
type: 'sort_code';
|
|
454
454
|
}
|
|
455
|
-
interface
|
|
455
|
+
interface AbaFinancialAddress {
|
|
456
456
|
/**
|
|
457
457
|
* Name of the account holder.
|
|
458
458
|
*/
|
|
@@ -470,7 +470,7 @@ export declare namespace PayoutPaidWebhookEvent {
|
|
|
470
470
|
*/
|
|
471
471
|
type: 'aba';
|
|
472
472
|
}
|
|
473
|
-
interface
|
|
473
|
+
interface CryptoWalletFinancialAddress {
|
|
474
474
|
/**
|
|
475
475
|
* Wallet address on the specified blockchain.
|
|
476
476
|
*/
|
|
@@ -545,11 +545,11 @@ export declare namespace PayoutFailedWebhookEvent {
|
|
|
545
545
|
/**
|
|
546
546
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
547
547
|
*/
|
|
548
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
548
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
549
549
|
/**
|
|
550
550
|
* Bank account or crypto wallet the payout was sent to.
|
|
551
551
|
*/
|
|
552
|
-
destination: Payload.
|
|
552
|
+
destination: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.CryptoWalletFinancialAddress;
|
|
553
553
|
/**
|
|
554
554
|
* Failure details when status is failed, otherwise null.
|
|
555
555
|
*/
|
|
@@ -582,7 +582,7 @@ export declare namespace PayoutFailedWebhookEvent {
|
|
|
582
582
|
updated_at: string;
|
|
583
583
|
}
|
|
584
584
|
namespace Payload {
|
|
585
|
-
interface
|
|
585
|
+
interface IbanFinancialAddress {
|
|
586
586
|
/**
|
|
587
587
|
* Name of the account holder.
|
|
588
588
|
*/
|
|
@@ -600,7 +600,7 @@ export declare namespace PayoutFailedWebhookEvent {
|
|
|
600
600
|
*/
|
|
601
601
|
type: 'iban';
|
|
602
602
|
}
|
|
603
|
-
interface
|
|
603
|
+
interface SortCodeFinancialAddress {
|
|
604
604
|
/**
|
|
605
605
|
* Name of the account holder.
|
|
606
606
|
*/
|
|
@@ -618,7 +618,7 @@ export declare namespace PayoutFailedWebhookEvent {
|
|
|
618
618
|
*/
|
|
619
619
|
type: 'sort_code';
|
|
620
620
|
}
|
|
621
|
-
interface
|
|
621
|
+
interface AbaFinancialAddress {
|
|
622
622
|
/**
|
|
623
623
|
* Name of the account holder.
|
|
624
624
|
*/
|
|
@@ -636,7 +636,7 @@ export declare namespace PayoutFailedWebhookEvent {
|
|
|
636
636
|
*/
|
|
637
637
|
type: 'aba';
|
|
638
638
|
}
|
|
639
|
-
interface
|
|
639
|
+
interface CryptoWalletFinancialAddress {
|
|
640
640
|
/**
|
|
641
641
|
* Wallet address on the specified blockchain.
|
|
642
642
|
*/
|
|
@@ -711,7 +711,7 @@ export declare namespace ReturnInitiatedWebhookEvent {
|
|
|
711
711
|
/**
|
|
712
712
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
713
713
|
*/
|
|
714
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
714
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
715
715
|
/**
|
|
716
716
|
* ID of the parent deposit.
|
|
717
717
|
*/
|
|
@@ -795,7 +795,7 @@ export declare namespace ReturnPaidWebhookEvent {
|
|
|
795
795
|
/**
|
|
796
796
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
797
797
|
*/
|
|
798
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
798
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
799
799
|
/**
|
|
800
800
|
* ID of the parent deposit.
|
|
801
801
|
*/
|
|
@@ -879,7 +879,7 @@ export declare namespace ReturnFailedWebhookEvent {
|
|
|
879
879
|
/**
|
|
880
880
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
881
881
|
*/
|
|
882
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
882
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
883
883
|
/**
|
|
884
884
|
* ID of the parent deposit.
|
|
885
885
|
*/
|
|
@@ -963,7 +963,7 @@ export declare namespace ReturnReturnedWebhookEvent {
|
|
|
963
963
|
/**
|
|
964
964
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
965
965
|
*/
|
|
966
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
966
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
967
967
|
/**
|
|
968
968
|
* ID of the parent deposit.
|
|
969
969
|
*/
|
|
@@ -1051,13 +1051,13 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Supported fiat or crypto currency code for the deposit amount.
|
|
1053
1053
|
*/
|
|
1054
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1054
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1055
1055
|
/**
|
|
1056
1056
|
* ID of the merchant account that received the deposit.
|
|
1057
1057
|
*/
|
|
1058
1058
|
destination_account_id: string;
|
|
1059
1059
|
/**
|
|
1060
|
-
* Payment rail or blockchain used for the deposit.
|
|
1060
|
+
* Payment rail or blockchain used for the deposit, or null when unknown.
|
|
1061
1061
|
*/
|
|
1062
1062
|
rail: 'sepa_instant' | 'faster_payments' | 'sepa' | 'elixir' | 'express_elixir' | 'sek_account_to_account' | 'sumclearing' | 'straksclearing' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'btc' | 'btc_testnet4' | 'eth' | 'eth_sepolia' | 'sol' | 'sol_devnet' | 'matic' | 'matic_amoy' | null;
|
|
1063
1063
|
/**
|
|
@@ -1067,7 +1067,7 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Counterparty bank account or crypto wallet that sent the funds.
|
|
1069
1069
|
*/
|
|
1070
|
-
source: Payload.
|
|
1070
|
+
source: Payload.Iban | Payload.UkSortCode | Payload.Aba | Payload.Wallet;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Current status of the deposit.
|
|
1073
1073
|
*/
|
|
@@ -1086,7 +1086,7 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1086
1086
|
updated_at: string;
|
|
1087
1087
|
}
|
|
1088
1088
|
namespace Payload {
|
|
1089
|
-
interface
|
|
1089
|
+
interface Iban {
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Name of the account holder.
|
|
1092
1092
|
*/
|
|
@@ -1104,7 +1104,7 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1104
1104
|
*/
|
|
1105
1105
|
type: 'iban';
|
|
1106
1106
|
}
|
|
1107
|
-
interface
|
|
1107
|
+
interface UkSortCode {
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Name of the account holder.
|
|
1110
1110
|
*/
|
|
@@ -1122,7 +1122,7 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
type: 'sort_code';
|
|
1124
1124
|
}
|
|
1125
|
-
interface
|
|
1125
|
+
interface Aba {
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Name of the account holder.
|
|
1128
1128
|
*/
|
|
@@ -1140,7 +1140,7 @@ export declare namespace DepositReceivedWebhookEvent {
|
|
|
1140
1140
|
*/
|
|
1141
1141
|
type: 'aba';
|
|
1142
1142
|
}
|
|
1143
|
-
interface
|
|
1143
|
+
interface Wallet {
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Wallet address on the specified blockchain.
|
|
1146
1146
|
*/
|
|
@@ -1220,7 +1220,7 @@ export declare namespace ConversionCreatedWebhookEvent {
|
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Source currency code.
|
|
1222
1222
|
*/
|
|
1223
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1223
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Current status of the conversion.
|
|
1226
1226
|
*/
|
|
@@ -1232,7 +1232,7 @@ export declare namespace ConversionCreatedWebhookEvent {
|
|
|
1232
1232
|
/**
|
|
1233
1233
|
* Target currency code.
|
|
1234
1234
|
*/
|
|
1235
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1235
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Resource type discriminator.
|
|
1238
1238
|
*/
|
|
@@ -1318,7 +1318,7 @@ export declare namespace ConversionCompletedWebhookEvent {
|
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Source currency code.
|
|
1320
1320
|
*/
|
|
1321
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1321
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Current status of the conversion.
|
|
1324
1324
|
*/
|
|
@@ -1330,7 +1330,7 @@ export declare namespace ConversionCompletedWebhookEvent {
|
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Target currency code.
|
|
1332
1332
|
*/
|
|
1333
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1333
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Resource type discriminator.
|
|
1336
1336
|
*/
|
|
@@ -1416,7 +1416,7 @@ export declare namespace ConversionFailedWebhookEvent {
|
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Source currency code.
|
|
1418
1418
|
*/
|
|
1419
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1419
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Current status of the conversion.
|
|
1422
1422
|
*/
|
|
@@ -1428,7 +1428,7 @@ export declare namespace ConversionFailedWebhookEvent {
|
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Target currency code.
|
|
1430
1430
|
*/
|
|
1431
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC'
|
|
1431
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Resource type discriminator.
|
|
1434
1434
|
*/
|