@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.
- package/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/resources/account-holders.d.mts +96 -12
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +96 -12
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/accounts.d.mts +12 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +12 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/conversions.d.mts +4 -4
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +4 -4
- package/resources/conversions.d.ts.map +1 -1
- package/resources/payout-tracking-events.d.mts +114 -18
- package/resources/payout-tracking-events.d.mts.map +1 -1
- package/resources/payout-tracking-events.d.ts +114 -18
- package/resources/payout-tracking-events.d.ts.map +1 -1
- package/resources/payouts.d.mts +8 -16
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +8 -16
- package/resources/payouts.d.ts.map +1 -1
- package/resources/transactions.d.mts +2 -12
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +2 -12
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +102 -36
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +102 -36
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/account-holders.ts +120 -12
- package/src/resources/accounts.ts +12 -6
- package/src/resources/conversions.ts +4 -4
- package/src/resources/payout-tracking-events.ts +126 -18
- package/src/resources/payouts.ts +4 -36
- package/src/resources/transactions.ts +2 -14
- package/src/resources/webhooks.ts +111 -61
- 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
|
@@ -93,9 +93,7 @@ export namespace PayoutInitiatedWebhookEvent {
|
|
|
93
93
|
metadata: { [key: string]: string };
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* beneficiary bank country requires a national code. Only supported on fedwire and
|
|
98
|
-
* swift payouts.
|
|
96
|
+
* ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
|
|
99
97
|
*/
|
|
100
98
|
purpose_code:
|
|
101
99
|
| 'BKDF'
|
|
@@ -426,12 +424,6 @@ export namespace PayoutInitiatedWebhookEvent {
|
|
|
426
424
|
| 'DEPD'
|
|
427
425
|
| 'RETL'
|
|
428
426
|
| 'DEBT'
|
|
429
|
-
| 'CAP'
|
|
430
|
-
| 'GDS'
|
|
431
|
-
| 'SRV'
|
|
432
|
-
| 'CAC'
|
|
433
|
-
| 'FTF'
|
|
434
|
-
| (string & {})
|
|
435
427
|
| null;
|
|
436
428
|
|
|
437
429
|
/**
|
|
@@ -619,9 +611,7 @@ export namespace PayoutSubmittedWebhookEvent {
|
|
|
619
611
|
metadata: { [key: string]: string };
|
|
620
612
|
|
|
621
613
|
/**
|
|
622
|
-
*
|
|
623
|
-
* beneficiary bank country requires a national code. Only supported on fedwire and
|
|
624
|
-
* swift payouts.
|
|
614
|
+
* ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
|
|
625
615
|
*/
|
|
626
616
|
purpose_code:
|
|
627
617
|
| 'BKDF'
|
|
@@ -952,12 +942,6 @@ export namespace PayoutSubmittedWebhookEvent {
|
|
|
952
942
|
| 'DEPD'
|
|
953
943
|
| 'RETL'
|
|
954
944
|
| 'DEBT'
|
|
955
|
-
| 'CAP'
|
|
956
|
-
| 'GDS'
|
|
957
|
-
| 'SRV'
|
|
958
|
-
| 'CAC'
|
|
959
|
-
| 'FTF'
|
|
960
|
-
| (string & {})
|
|
961
945
|
| null;
|
|
962
946
|
|
|
963
947
|
/**
|
|
@@ -1145,9 +1129,7 @@ export namespace PayoutSentWebhookEvent {
|
|
|
1145
1129
|
metadata: { [key: string]: string };
|
|
1146
1130
|
|
|
1147
1131
|
/**
|
|
1148
|
-
*
|
|
1149
|
-
* beneficiary bank country requires a national code. Only supported on fedwire and
|
|
1150
|
-
* swift payouts.
|
|
1132
|
+
* ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
|
|
1151
1133
|
*/
|
|
1152
1134
|
purpose_code:
|
|
1153
1135
|
| 'BKDF'
|
|
@@ -1478,12 +1460,6 @@ export namespace PayoutSentWebhookEvent {
|
|
|
1478
1460
|
| 'DEPD'
|
|
1479
1461
|
| 'RETL'
|
|
1480
1462
|
| 'DEBT'
|
|
1481
|
-
| 'CAP'
|
|
1482
|
-
| 'GDS'
|
|
1483
|
-
| 'SRV'
|
|
1484
|
-
| 'CAC'
|
|
1485
|
-
| 'FTF'
|
|
1486
|
-
| (string & {})
|
|
1487
1463
|
| null;
|
|
1488
1464
|
|
|
1489
1465
|
/**
|
|
@@ -1671,9 +1647,7 @@ export namespace PayoutFailedWebhookEvent {
|
|
|
1671
1647
|
metadata: { [key: string]: string };
|
|
1672
1648
|
|
|
1673
1649
|
/**
|
|
1674
|
-
*
|
|
1675
|
-
* beneficiary bank country requires a national code. Only supported on fedwire and
|
|
1676
|
-
* swift payouts.
|
|
1650
|
+
* ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
|
|
1677
1651
|
*/
|
|
1678
1652
|
purpose_code:
|
|
1679
1653
|
| 'BKDF'
|
|
@@ -2004,12 +1978,6 @@ export namespace PayoutFailedWebhookEvent {
|
|
|
2004
1978
|
| 'DEPD'
|
|
2005
1979
|
| 'RETL'
|
|
2006
1980
|
| 'DEBT'
|
|
2007
|
-
| 'CAP'
|
|
2008
|
-
| 'GDS'
|
|
2009
|
-
| 'SRV'
|
|
2010
|
-
| 'CAC'
|
|
2011
|
-
| 'FTF'
|
|
2012
|
-
| (string & {})
|
|
2013
1981
|
| null;
|
|
2014
1982
|
|
|
2015
1983
|
/**
|
|
@@ -2197,9 +2165,7 @@ export namespace PayoutReturnedWebhookEvent {
|
|
|
2197
2165
|
metadata: { [key: string]: string };
|
|
2198
2166
|
|
|
2199
2167
|
/**
|
|
2200
|
-
*
|
|
2201
|
-
* beneficiary bank country requires a national code. Only supported on fedwire and
|
|
2202
|
-
* swift payouts.
|
|
2168
|
+
* ISO 20022 external purpose code. Only supported on fedwire and swift payouts.
|
|
2203
2169
|
*/
|
|
2204
2170
|
purpose_code:
|
|
2205
2171
|
| 'BKDF'
|
|
@@ -2530,12 +2496,6 @@ export namespace PayoutReturnedWebhookEvent {
|
|
|
2530
2496
|
| 'DEPD'
|
|
2531
2497
|
| 'RETL'
|
|
2532
2498
|
| 'DEBT'
|
|
2533
|
-
| 'CAP'
|
|
2534
|
-
| 'GDS'
|
|
2535
|
-
| 'SRV'
|
|
2536
|
-
| 'CAC'
|
|
2537
|
-
| 'FTF'
|
|
2538
|
-
| (string & {})
|
|
2539
2499
|
| null;
|
|
2540
2500
|
|
|
2541
2501
|
/**
|
|
@@ -3607,7 +3567,7 @@ export namespace ConversionCreatedWebhookEvent {
|
|
|
3607
3567
|
/**
|
|
3608
3568
|
* Current status of the conversion.
|
|
3609
3569
|
*/
|
|
3610
|
-
status: 'pending' | 'completed' | 'failed';
|
|
3570
|
+
status: 'initiated' | 'pending' | 'completed' | 'failed';
|
|
3611
3571
|
|
|
3612
3572
|
/**
|
|
3613
3573
|
* ID of the target account, or null.
|
|
@@ -3698,7 +3658,7 @@ export namespace ConversionCompletedWebhookEvent {
|
|
|
3698
3658
|
/**
|
|
3699
3659
|
* Current status of the conversion.
|
|
3700
3660
|
*/
|
|
3701
|
-
status: 'pending' | 'completed' | 'failed';
|
|
3661
|
+
status: 'initiated' | 'pending' | 'completed' | 'failed';
|
|
3702
3662
|
|
|
3703
3663
|
/**
|
|
3704
3664
|
* ID of the target account, or null.
|
|
@@ -3789,7 +3749,7 @@ export namespace ConversionFailedWebhookEvent {
|
|
|
3789
3749
|
/**
|
|
3790
3750
|
* Current status of the conversion.
|
|
3791
3751
|
*/
|
|
3792
|
-
status: 'pending' | 'completed' | 'failed';
|
|
3752
|
+
status: 'initiated' | 'pending' | 'completed' | 'failed';
|
|
3793
3753
|
|
|
3794
3754
|
/**
|
|
3795
3755
|
* ID of the target account, or null.
|
|
@@ -5158,11 +5118,14 @@ export namespace AccountHolderActiveWebhookEvent {
|
|
|
5158
5118
|
|
|
5159
5119
|
/**
|
|
5160
5120
|
* Business registration number: type "ein" (Employer Identification Number, format
|
|
5161
|
-
* ##-#######)
|
|
5121
|
+
* ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
|
|
5122
|
+
* other registration number, 1-32 characters, non-US businesses only, with a
|
|
5123
|
+
* required `description` of what the number is).
|
|
5162
5124
|
*/
|
|
5163
5125
|
registration_number:
|
|
5164
5126
|
| V1BusinessBeneficiaryDataResponse.V1EinIdentification
|
|
5165
|
-
| V1BusinessBeneficiaryDataResponse.V1SsnIdentification
|
|
5127
|
+
| V1BusinessBeneficiaryDataResponse.V1SsnIdentification
|
|
5128
|
+
| V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
|
|
5166
5129
|
|
|
5167
5130
|
/**
|
|
5168
5131
|
* State or subdivision where the business is incorporated.
|
|
@@ -7749,6 +7712,21 @@ export namespace AccountHolderActiveWebhookEvent {
|
|
|
7749
7712
|
|
|
7750
7713
|
value: string;
|
|
7751
7714
|
}
|
|
7715
|
+
|
|
7716
|
+
export interface V1OtherRegistrationNumber {
|
|
7717
|
+
/**
|
|
7718
|
+
* A short explanation of what this number is and which authority issued it.
|
|
7719
|
+
*/
|
|
7720
|
+
description: string;
|
|
7721
|
+
|
|
7722
|
+
type: 'other';
|
|
7723
|
+
|
|
7724
|
+
/**
|
|
7725
|
+
* The registration number, 1-32 characters. Any characters are allowed, but at
|
|
7726
|
+
* least one must be a letter or digit.
|
|
7727
|
+
*/
|
|
7728
|
+
value: string;
|
|
7729
|
+
}
|
|
7752
7730
|
}
|
|
7753
7731
|
}
|
|
7754
7732
|
}
|
|
@@ -9098,11 +9076,14 @@ export namespace AccountHolderClosedWebhookEvent {
|
|
|
9098
9076
|
|
|
9099
9077
|
/**
|
|
9100
9078
|
* Business registration number: type "ein" (Employer Identification Number, format
|
|
9101
|
-
* ##-#######)
|
|
9079
|
+
* ##-#######), "ssn" (Social Security Number, format ###-##-####), or "other" (any
|
|
9080
|
+
* other registration number, 1-32 characters, non-US businesses only, with a
|
|
9081
|
+
* required `description` of what the number is).
|
|
9102
9082
|
*/
|
|
9103
9083
|
registration_number:
|
|
9104
9084
|
| V1BusinessBeneficiaryDataResponse.V1EinIdentification
|
|
9105
|
-
| V1BusinessBeneficiaryDataResponse.V1SsnIdentification
|
|
9085
|
+
| V1BusinessBeneficiaryDataResponse.V1SsnIdentification
|
|
9086
|
+
| V1BusinessBeneficiaryDataResponse.V1OtherRegistrationNumber;
|
|
9106
9087
|
|
|
9107
9088
|
/**
|
|
9108
9089
|
* State or subdivision where the business is incorporated.
|
|
@@ -11689,6 +11670,21 @@ export namespace AccountHolderClosedWebhookEvent {
|
|
|
11689
11670
|
|
|
11690
11671
|
value: string;
|
|
11691
11672
|
}
|
|
11673
|
+
|
|
11674
|
+
export interface V1OtherRegistrationNumber {
|
|
11675
|
+
/**
|
|
11676
|
+
* A short explanation of what this number is and which authority issued it.
|
|
11677
|
+
*/
|
|
11678
|
+
description: string;
|
|
11679
|
+
|
|
11680
|
+
type: 'other';
|
|
11681
|
+
|
|
11682
|
+
/**
|
|
11683
|
+
* The registration number, 1-32 characters. Any characters are allowed, but at
|
|
11684
|
+
* least one must be a letter or digit.
|
|
11685
|
+
*/
|
|
11686
|
+
value: string;
|
|
11687
|
+
}
|
|
11692
11688
|
}
|
|
11693
11689
|
}
|
|
11694
11690
|
}
|
|
@@ -14945,13 +14941,21 @@ export namespace PayoutTrackingEventCreatedWebhookEvent {
|
|
|
14945
14941
|
fee: Payload.Fee | null;
|
|
14946
14942
|
|
|
14947
14943
|
/**
|
|
14948
|
-
* Institution that
|
|
14944
|
+
* Institution that sent the payout in this step. Null when unknown or not reported
|
|
14945
|
+
* by the source.
|
|
14946
|
+
*/
|
|
14947
|
+
from_institution: Payload.FromInstitution | null;
|
|
14948
|
+
|
|
14949
|
+
/**
|
|
14950
|
+
* Institution holding the payout after this step: the bank that received it, or
|
|
14951
|
+
* the bank that reported this status. Null when unknown.
|
|
14949
14952
|
*/
|
|
14950
14953
|
institution: Payload.Institution | null;
|
|
14951
14954
|
|
|
14952
14955
|
/**
|
|
14953
|
-
* Whether Augustus considers delivery finished. A
|
|
14954
|
-
*
|
|
14956
|
+
* Whether Augustus considers delivery finished. A credit reported by a bank that
|
|
14957
|
+
* passes the payout on is a forwarded step and is not terminal. A later event,
|
|
14958
|
+
* such as returned, can still follow.
|
|
14955
14959
|
*/
|
|
14956
14960
|
is_terminal: boolean;
|
|
14957
14961
|
|
|
@@ -15060,18 +15064,62 @@ export namespace PayoutTrackingEventCreatedWebhookEvent {
|
|
|
15060
15064
|
}
|
|
15061
15065
|
|
|
15062
15066
|
/**
|
|
15063
|
-
* Institution that
|
|
15067
|
+
* Institution that sent the payout in this step. Null when unknown or not reported
|
|
15068
|
+
* by the source.
|
|
15069
|
+
*/
|
|
15070
|
+
export interface FromInstitution {
|
|
15071
|
+
/**
|
|
15072
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15073
|
+
* known.
|
|
15074
|
+
*/
|
|
15075
|
+
identifier: FromInstitution.Identifier | null;
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* Name of the institution. Null when unknown.
|
|
15079
|
+
*/
|
|
15080
|
+
name: string | null;
|
|
15081
|
+
}
|
|
15082
|
+
|
|
15083
|
+
export namespace FromInstitution {
|
|
15084
|
+
/**
|
|
15085
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15086
|
+
* known.
|
|
15087
|
+
*/
|
|
15088
|
+
export interface Identifier {
|
|
15089
|
+
/**
|
|
15090
|
+
* Identifier scheme. Only bic today.
|
|
15091
|
+
*/
|
|
15092
|
+
type: 'bic';
|
|
15093
|
+
|
|
15094
|
+
/**
|
|
15095
|
+
* ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
|
|
15096
|
+
* padded with the XXX head office branch code.
|
|
15097
|
+
*/
|
|
15098
|
+
value: string;
|
|
15099
|
+
}
|
|
15100
|
+
}
|
|
15101
|
+
|
|
15102
|
+
/**
|
|
15103
|
+
* Institution holding the payout after this step: the bank that received it, or
|
|
15104
|
+
* the bank that reported this status. Null when unknown.
|
|
15064
15105
|
*/
|
|
15065
15106
|
export interface Institution {
|
|
15066
15107
|
/**
|
|
15067
|
-
* Identifier of the institution, typed by scheme.
|
|
15108
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15109
|
+
* known.
|
|
15110
|
+
*/
|
|
15111
|
+
identifier: Institution.Identifier | null;
|
|
15112
|
+
|
|
15113
|
+
/**
|
|
15114
|
+
* Name of the institution. Null when unknown.
|
|
15068
15115
|
*/
|
|
15069
|
-
|
|
15116
|
+
name: string | null;
|
|
15070
15117
|
}
|
|
15071
15118
|
|
|
15072
15119
|
export namespace Institution {
|
|
15073
15120
|
/**
|
|
15074
|
-
* Identifier of the institution, typed by scheme.
|
|
15121
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15122
|
+
* known.
|
|
15075
15123
|
*/
|
|
15076
15124
|
export interface Identifier {
|
|
15077
15125
|
/**
|
|
@@ -15080,7 +15128,8 @@ export namespace PayoutTrackingEventCreatedWebhookEvent {
|
|
|
15080
15128
|
type: 'bic';
|
|
15081
15129
|
|
|
15082
15130
|
/**
|
|
15083
|
-
* ISO 9362 Bank Identifier Code
|
|
15131
|
+
* ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
|
|
15132
|
+
* padded with the XXX head office branch code.
|
|
15084
15133
|
*/
|
|
15085
15134
|
value: string;
|
|
15086
15135
|
}
|
|
@@ -15106,7 +15155,8 @@ export namespace PayoutTrackingEventCreatedWebhookEvent {
|
|
|
15106
15155
|
*/
|
|
15107
15156
|
export interface StatusReason {
|
|
15108
15157
|
/**
|
|
15109
|
-
* Normalized reason code assigned by Augustus.
|
|
15158
|
+
* Normalized reason code assigned by Augustus. Current codes: `CREDIT_PENDING`
|
|
15159
|
+
* (the beneficiary bank reported the credit as pending). New codes may be added.
|
|
15110
15160
|
*/
|
|
15111
15161
|
code: string;
|
|
15112
15162
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.35.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.35.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.35.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.35.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|