@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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +36 -12
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +36 -12
- package/resources/accounts.d.ts.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/counterparties.d.mts +227 -12
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +227 -12
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +16 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +16 -0
- package/resources/counterparties.mjs.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payout-tracking-events.d.mts +454 -0
- package/resources/payout-tracking-events.d.mts.map +1 -0
- package/resources/payout-tracking-events.d.ts +454 -0
- package/resources/payout-tracking-events.d.ts.map +1 -0
- package/resources/payout-tracking-events.js +23 -0
- package/resources/payout-tracking-events.js.map +1 -0
- package/resources/payout-tracking-events.mjs +19 -0
- package/resources/payout-tracking-events.mjs.map +1 -0
- 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/scopes.d.mts +1 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +1 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/transactions.d.mts +0 -10
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +0 -10
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +8 -8
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +8 -8
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +254 -34
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +254 -34
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +21 -0
- package/src/resources/accounts.ts +36 -12
- package/src/resources/api-keys.ts +1 -0
- package/src/resources/counterparties.ts +536 -12
- package/src/resources/events.ts +3 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/payout-tracking-events.ts +587 -0
- package/src/resources/payouts.ts +4 -36
- package/src/resources/scopes.ts +2 -1
- package/src/resources/transactions.ts +0 -12
- package/src/resources/webhook-subscriptions.ts +8 -0
- package/src/resources/webhooks.ts +300 -57
- 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
|
@@ -155,6 +155,7 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
155
155
|
| 'counterparty.blocked'
|
|
156
156
|
| 'counterparty.unblocked'
|
|
157
157
|
| 'counterparty.updated'
|
|
158
|
+
| 'payout_tracking_event.created'
|
|
158
159
|
>;
|
|
159
160
|
|
|
160
161
|
/**
|
|
@@ -217,6 +218,7 @@ export interface WebhookSubscriptionRetrieveResponse {
|
|
|
217
218
|
| 'counterparty.blocked'
|
|
218
219
|
| 'counterparty.unblocked'
|
|
219
220
|
| 'counterparty.updated'
|
|
221
|
+
| 'payout_tracking_event.created'
|
|
220
222
|
>;
|
|
221
223
|
|
|
222
224
|
/**
|
|
@@ -279,6 +281,7 @@ export interface WebhookSubscriptionUpdateResponse {
|
|
|
279
281
|
| 'counterparty.blocked'
|
|
280
282
|
| 'counterparty.unblocked'
|
|
281
283
|
| 'counterparty.updated'
|
|
284
|
+
| 'payout_tracking_event.created'
|
|
282
285
|
>;
|
|
283
286
|
|
|
284
287
|
/**
|
|
@@ -341,6 +344,7 @@ export interface WebhookSubscriptionListResponse {
|
|
|
341
344
|
| 'counterparty.blocked'
|
|
342
345
|
| 'counterparty.unblocked'
|
|
343
346
|
| 'counterparty.updated'
|
|
347
|
+
| 'payout_tracking_event.created'
|
|
344
348
|
>;
|
|
345
349
|
|
|
346
350
|
/**
|
|
@@ -403,6 +407,7 @@ export interface WebhookSubscriptionDeleteResponse {
|
|
|
403
407
|
| 'counterparty.blocked'
|
|
404
408
|
| 'counterparty.unblocked'
|
|
405
409
|
| 'counterparty.updated'
|
|
410
|
+
| 'payout_tracking_event.created'
|
|
406
411
|
>;
|
|
407
412
|
|
|
408
413
|
/**
|
|
@@ -477,6 +482,7 @@ export interface WebhookSubscriptionSendTestEventResponse {
|
|
|
477
482
|
| 'counterparty.blocked'
|
|
478
483
|
| 'counterparty.unblocked'
|
|
479
484
|
| 'counterparty.updated'
|
|
485
|
+
| 'payout_tracking_event.created'
|
|
480
486
|
| 'ping.test';
|
|
481
487
|
|
|
482
488
|
/**
|
|
@@ -512,6 +518,7 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
512
518
|
| 'counterparty.blocked'
|
|
513
519
|
| 'counterparty.unblocked'
|
|
514
520
|
| 'counterparty.updated'
|
|
521
|
+
| 'payout_tracking_event.created'
|
|
515
522
|
| '*'
|
|
516
523
|
>;
|
|
517
524
|
|
|
@@ -556,6 +563,7 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
556
563
|
| 'counterparty.blocked'
|
|
557
564
|
| 'counterparty.unblocked'
|
|
558
565
|
| 'counterparty.updated'
|
|
566
|
+
| 'payout_tracking_event.created'
|
|
559
567
|
| '*'
|
|
560
568
|
> | null;
|
|
561
569
|
|
|
@@ -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
|
/**
|
|
@@ -11746,9 +11706,9 @@ export namespace CounterpartyPendingWebhookEvent {
|
|
|
11746
11706
|
email: string | null;
|
|
11747
11707
|
|
|
11748
11708
|
/**
|
|
11749
|
-
*
|
|
11709
|
+
* Classification of the counterparty.
|
|
11750
11710
|
*/
|
|
11751
|
-
entity_type: 'business' | 'individual';
|
|
11711
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
11752
11712
|
|
|
11753
11713
|
/**
|
|
11754
11714
|
* Financial address of the counterparty.
|
|
@@ -12279,9 +12239,9 @@ export namespace CounterpartyActiveWebhookEvent {
|
|
|
12279
12239
|
email: string | null;
|
|
12280
12240
|
|
|
12281
12241
|
/**
|
|
12282
|
-
*
|
|
12242
|
+
* Classification of the counterparty.
|
|
12283
12243
|
*/
|
|
12284
|
-
entity_type: 'business' | 'individual';
|
|
12244
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
12285
12245
|
|
|
12286
12246
|
/**
|
|
12287
12247
|
* Financial address of the counterparty.
|
|
@@ -12812,9 +12772,9 @@ export namespace CounterpartyRejectedWebhookEvent {
|
|
|
12812
12772
|
email: string | null;
|
|
12813
12773
|
|
|
12814
12774
|
/**
|
|
12815
|
-
*
|
|
12775
|
+
* Classification of the counterparty.
|
|
12816
12776
|
*/
|
|
12817
|
-
entity_type: 'business' | 'individual';
|
|
12777
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
12818
12778
|
|
|
12819
12779
|
/**
|
|
12820
12780
|
* Financial address of the counterparty.
|
|
@@ -13345,9 +13305,9 @@ export namespace CounterpartyBlockedWebhookEvent {
|
|
|
13345
13305
|
email: string | null;
|
|
13346
13306
|
|
|
13347
13307
|
/**
|
|
13348
|
-
*
|
|
13308
|
+
* Classification of the counterparty.
|
|
13349
13309
|
*/
|
|
13350
|
-
entity_type: 'business' | 'individual';
|
|
13310
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
13351
13311
|
|
|
13352
13312
|
/**
|
|
13353
13313
|
* Financial address of the counterparty.
|
|
@@ -13878,9 +13838,9 @@ export namespace CounterpartyUnblockedWebhookEvent {
|
|
|
13878
13838
|
email: string | null;
|
|
13879
13839
|
|
|
13880
13840
|
/**
|
|
13881
|
-
*
|
|
13841
|
+
* Classification of the counterparty.
|
|
13882
13842
|
*/
|
|
13883
|
-
entity_type: 'business' | 'individual';
|
|
13843
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
13884
13844
|
|
|
13885
13845
|
/**
|
|
13886
13846
|
* Financial address of the counterparty.
|
|
@@ -14411,9 +14371,9 @@ export namespace CounterpartyUpdatedWebhookEvent {
|
|
|
14411
14371
|
email: string | null;
|
|
14412
14372
|
|
|
14413
14373
|
/**
|
|
14414
|
-
*
|
|
14374
|
+
* Classification of the counterparty.
|
|
14415
14375
|
*/
|
|
14416
|
-
entity_type: 'business' | 'individual';
|
|
14376
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
14417
14377
|
|
|
14418
14378
|
/**
|
|
14419
14379
|
* Financial address of the counterparty.
|
|
@@ -14891,6 +14851,287 @@ export namespace CounterpartyUpdatedWebhookEvent {
|
|
|
14891
14851
|
}
|
|
14892
14852
|
}
|
|
14893
14853
|
|
|
14854
|
+
export interface PayoutTrackingEventCreatedWebhookEvent {
|
|
14855
|
+
/**
|
|
14856
|
+
* Unique identifier for the event. Stable across retries.
|
|
14857
|
+
*/
|
|
14858
|
+
id: string;
|
|
14859
|
+
|
|
14860
|
+
/**
|
|
14861
|
+
* API version the payload was rendered at. Stable across retries and redeliveries.
|
|
14862
|
+
*/
|
|
14863
|
+
api_version: string;
|
|
14864
|
+
|
|
14865
|
+
/**
|
|
14866
|
+
* ISO 8601 UTC timestamp when the event was created.
|
|
14867
|
+
*/
|
|
14868
|
+
date: string;
|
|
14869
|
+
|
|
14870
|
+
/**
|
|
14871
|
+
* Full resource snapshot at the time of the event.
|
|
14872
|
+
*/
|
|
14873
|
+
payload: PayoutTrackingEventCreatedWebhookEvent.Payload;
|
|
14874
|
+
|
|
14875
|
+
/**
|
|
14876
|
+
* Event type in resource.action format.
|
|
14877
|
+
*/
|
|
14878
|
+
type: 'payout_tracking_event.created';
|
|
14879
|
+
}
|
|
14880
|
+
|
|
14881
|
+
export namespace PayoutTrackingEventCreatedWebhookEvent {
|
|
14882
|
+
/**
|
|
14883
|
+
* Full resource snapshot at the time of the event.
|
|
14884
|
+
*/
|
|
14885
|
+
export interface Payload {
|
|
14886
|
+
/**
|
|
14887
|
+
* Unique identifier of the tracking event.
|
|
14888
|
+
*/
|
|
14889
|
+
id: string;
|
|
14890
|
+
|
|
14891
|
+
/**
|
|
14892
|
+
* Amount credited to the beneficiary. Set only on a credited event, otherwise
|
|
14893
|
+
* null.
|
|
14894
|
+
*/
|
|
14895
|
+
beneficiary_amount: Payload.BeneficiaryAmount | null;
|
|
14896
|
+
|
|
14897
|
+
/**
|
|
14898
|
+
* ISO 8601 UTC timestamp when Augustus recorded the event.
|
|
14899
|
+
*/
|
|
14900
|
+
created_at: string;
|
|
14901
|
+
|
|
14902
|
+
/**
|
|
14903
|
+
* Fee deducted at this step. Null when none was reported.
|
|
14904
|
+
*/
|
|
14905
|
+
fee: Payload.Fee | null;
|
|
14906
|
+
|
|
14907
|
+
/**
|
|
14908
|
+
* Institution that sent the payout in this step. Null when unknown or not reported
|
|
14909
|
+
* by the source.
|
|
14910
|
+
*/
|
|
14911
|
+
from_institution: Payload.FromInstitution | null;
|
|
14912
|
+
|
|
14913
|
+
/**
|
|
14914
|
+
* Institution holding the payout after this step: the bank that received it, or
|
|
14915
|
+
* the bank that reported this status. Null when unknown.
|
|
14916
|
+
*/
|
|
14917
|
+
institution: Payload.Institution | null;
|
|
14918
|
+
|
|
14919
|
+
/**
|
|
14920
|
+
* Whether Augustus considers delivery finished. A credit reported by a bank that
|
|
14921
|
+
* passes the payout on is a forwarded step and is not terminal. A later event,
|
|
14922
|
+
* such as returned, can still follow.
|
|
14923
|
+
*/
|
|
14924
|
+
is_terminal: boolean;
|
|
14925
|
+
|
|
14926
|
+
/**
|
|
14927
|
+
* Normalized point in the payout journey. New values may be added.
|
|
14928
|
+
*/
|
|
14929
|
+
milestone:
|
|
14930
|
+
| 'initiated'
|
|
14931
|
+
| 'submitted'
|
|
14932
|
+
| 'sent'
|
|
14933
|
+
| 'failed'
|
|
14934
|
+
| 'returned'
|
|
14935
|
+
| 'accepted'
|
|
14936
|
+
| 'settled'
|
|
14937
|
+
| 'forwarded'
|
|
14938
|
+
| 'credited'
|
|
14939
|
+
| 'rejected'
|
|
14940
|
+
| 'returning'
|
|
14941
|
+
| 'visibility_lost'
|
|
14942
|
+
| 'other';
|
|
14943
|
+
|
|
14944
|
+
/**
|
|
14945
|
+
* Raw network status. Null when the step has none.
|
|
14946
|
+
*/
|
|
14947
|
+
network_status: Payload.NetworkStatus | null;
|
|
14948
|
+
|
|
14949
|
+
/**
|
|
14950
|
+
* ISO 8601 UTC timestamp when the step happened. Null when the source has no
|
|
14951
|
+
* timestamp. Can be out of order with sequence.
|
|
14952
|
+
*/
|
|
14953
|
+
occurred_at: string | null;
|
|
14954
|
+
|
|
14955
|
+
/**
|
|
14956
|
+
* ID of the payout this event belongs to.
|
|
14957
|
+
*/
|
|
14958
|
+
payout_id: string;
|
|
14959
|
+
|
|
14960
|
+
/**
|
|
14961
|
+
* How far Augustus can follow the payout: end_to_end when the rail confirms the
|
|
14962
|
+
* beneficiary credit, network when it only confirms settlement. New values may be
|
|
14963
|
+
* added.
|
|
14964
|
+
*/
|
|
14965
|
+
scope: 'network' | 'end_to_end';
|
|
14966
|
+
|
|
14967
|
+
/**
|
|
14968
|
+
* Gap-free counter per payout, in the order Augustus recorded the events. A gap
|
|
14969
|
+
* means you missed a recorded event, such as a dropped webhook. A sequence without
|
|
14970
|
+
* gaps does not mean every network step was observed.
|
|
14971
|
+
*/
|
|
14972
|
+
sequence: number;
|
|
14973
|
+
|
|
14974
|
+
/**
|
|
14975
|
+
* Where Augustus learned this step: augustus for steps Augustus records itself,
|
|
14976
|
+
* swift_gpi for SWIFT gpi statuses, other for any other source. New values may be
|
|
14977
|
+
* added.
|
|
14978
|
+
*/
|
|
14979
|
+
source: 'augustus' | 'swift_gpi' | 'other';
|
|
14980
|
+
|
|
14981
|
+
/**
|
|
14982
|
+
* Reason for the current state. Null when none applies.
|
|
14983
|
+
*/
|
|
14984
|
+
status_reason: Payload.StatusReason | null;
|
|
14985
|
+
|
|
14986
|
+
/**
|
|
14987
|
+
* Resource type discriminator.
|
|
14988
|
+
*/
|
|
14989
|
+
type: 'payout_tracking_event';
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14992
|
+
export namespace Payload {
|
|
14993
|
+
/**
|
|
14994
|
+
* Amount credited to the beneficiary. Set only on a credited event, otherwise
|
|
14995
|
+
* null.
|
|
14996
|
+
*/
|
|
14997
|
+
export interface BeneficiaryAmount {
|
|
14998
|
+
/**
|
|
14999
|
+
* Credited amount as a string decimal (e.g. "100.50").
|
|
15000
|
+
*/
|
|
15001
|
+
amount: string;
|
|
15002
|
+
|
|
15003
|
+
/**
|
|
15004
|
+
* ISO 4217 currency code of the credited amount.
|
|
15005
|
+
*/
|
|
15006
|
+
currency: string;
|
|
15007
|
+
}
|
|
15008
|
+
|
|
15009
|
+
/**
|
|
15010
|
+
* Fee deducted at this step. Null when none was reported.
|
|
15011
|
+
*/
|
|
15012
|
+
export interface Fee {
|
|
15013
|
+
/**
|
|
15014
|
+
* Fee amount as a string decimal (e.g. "10.00").
|
|
15015
|
+
*/
|
|
15016
|
+
amount: string;
|
|
15017
|
+
|
|
15018
|
+
/**
|
|
15019
|
+
* Who bears the charges under the payment charge agreement: debtor (OUR), creditor
|
|
15020
|
+
* (BEN), shared (SHA), or other for any other agreement. New values may be added.
|
|
15021
|
+
*/
|
|
15022
|
+
borne_by: 'debtor' | 'creditor' | 'shared' | 'other';
|
|
15023
|
+
|
|
15024
|
+
/**
|
|
15025
|
+
* ISO 4217 currency code of the fee.
|
|
15026
|
+
*/
|
|
15027
|
+
currency: string;
|
|
15028
|
+
}
|
|
15029
|
+
|
|
15030
|
+
/**
|
|
15031
|
+
* Institution that sent the payout in this step. Null when unknown or not reported
|
|
15032
|
+
* by the source.
|
|
15033
|
+
*/
|
|
15034
|
+
export interface FromInstitution {
|
|
15035
|
+
/**
|
|
15036
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15037
|
+
* known.
|
|
15038
|
+
*/
|
|
15039
|
+
identifier: FromInstitution.Identifier | null;
|
|
15040
|
+
|
|
15041
|
+
/**
|
|
15042
|
+
* Name of the institution. Null when unknown.
|
|
15043
|
+
*/
|
|
15044
|
+
name: string | null;
|
|
15045
|
+
}
|
|
15046
|
+
|
|
15047
|
+
export namespace FromInstitution {
|
|
15048
|
+
/**
|
|
15049
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15050
|
+
* known.
|
|
15051
|
+
*/
|
|
15052
|
+
export interface Identifier {
|
|
15053
|
+
/**
|
|
15054
|
+
* Identifier scheme. Only bic today.
|
|
15055
|
+
*/
|
|
15056
|
+
type: 'bic';
|
|
15057
|
+
|
|
15058
|
+
/**
|
|
15059
|
+
* ISO 9362 Bank Identifier Code, always 11 characters. An 8-character BIC is
|
|
15060
|
+
* padded with the XXX head office branch code.
|
|
15061
|
+
*/
|
|
15062
|
+
value: string;
|
|
15063
|
+
}
|
|
15064
|
+
}
|
|
15065
|
+
|
|
15066
|
+
/**
|
|
15067
|
+
* Institution holding the payout after this step: the bank that received it, or
|
|
15068
|
+
* the bank that reported this status. Null when unknown.
|
|
15069
|
+
*/
|
|
15070
|
+
export interface Institution {
|
|
15071
|
+
/**
|
|
15072
|
+
* Identifier of the institution, typed by scheme. Null when only its name is
|
|
15073
|
+
* known.
|
|
15074
|
+
*/
|
|
15075
|
+
identifier: Institution.Identifier | null;
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* Name of the institution. Null when unknown.
|
|
15079
|
+
*/
|
|
15080
|
+
name: string | null;
|
|
15081
|
+
}
|
|
15082
|
+
|
|
15083
|
+
export namespace Institution {
|
|
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
|
+
* Raw network status. Null when the step has none.
|
|
15104
|
+
*/
|
|
15105
|
+
export interface NetworkStatus {
|
|
15106
|
+
/**
|
|
15107
|
+
* Status code reported by the network, such as ACSP, ACSC, ACCC or RJCT.
|
|
15108
|
+
*/
|
|
15109
|
+
code: string;
|
|
15110
|
+
|
|
15111
|
+
/**
|
|
15112
|
+
* Reason code for the status, such as G000. Null when the network reports none.
|
|
15113
|
+
*/
|
|
15114
|
+
reason_code: string | null;
|
|
15115
|
+
}
|
|
15116
|
+
|
|
15117
|
+
/**
|
|
15118
|
+
* Reason for the current state. Null when none applies.
|
|
15119
|
+
*/
|
|
15120
|
+
export interface StatusReason {
|
|
15121
|
+
/**
|
|
15122
|
+
* Normalized reason code assigned by Augustus. Current codes: `CREDIT_PENDING`
|
|
15123
|
+
* (the beneficiary bank reported the credit as pending). New codes may be added.
|
|
15124
|
+
*/
|
|
15125
|
+
code: string;
|
|
15126
|
+
|
|
15127
|
+
/**
|
|
15128
|
+
* Explanation of the reason code, written by Augustus.
|
|
15129
|
+
*/
|
|
15130
|
+
description: string;
|
|
15131
|
+
}
|
|
15132
|
+
}
|
|
15133
|
+
}
|
|
15134
|
+
|
|
14894
15135
|
export interface PingTestWebhookEvent {
|
|
14895
15136
|
/**
|
|
14896
15137
|
* Unique identifier for the event. Stable across retries.
|
|
@@ -14974,6 +15215,7 @@ export type UnwrapWebhookEvent =
|
|
|
14974
15215
|
| CounterpartyBlockedWebhookEvent
|
|
14975
15216
|
| CounterpartyUnblockedWebhookEvent
|
|
14976
15217
|
| CounterpartyUpdatedWebhookEvent
|
|
15218
|
+
| PayoutTrackingEventCreatedWebhookEvent
|
|
14977
15219
|
| PingTestWebhookEvent;
|
|
14978
15220
|
|
|
14979
15221
|
export declare namespace Webhooks {
|
|
@@ -15000,6 +15242,7 @@ export declare namespace Webhooks {
|
|
|
15000
15242
|
type CounterpartyBlockedWebhookEvent as CounterpartyBlockedWebhookEvent,
|
|
15001
15243
|
type CounterpartyUnblockedWebhookEvent as CounterpartyUnblockedWebhookEvent,
|
|
15002
15244
|
type CounterpartyUpdatedWebhookEvent as CounterpartyUpdatedWebhookEvent,
|
|
15245
|
+
type PayoutTrackingEventCreatedWebhookEvent as PayoutTrackingEventCreatedWebhookEvent,
|
|
15003
15246
|
type PingTestWebhookEvent as PingTestWebhookEvent,
|
|
15004
15247
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
15005
15248
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.34.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.34.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.34.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.34.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|