@augustusbank/typescript-sdk 0.22.0 → 0.22.1
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 +19 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-programs.d.mts +21 -16
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +21 -16
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +21 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +21 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +2 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +2 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/counterparties.d.mts +16 -16
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +16 -16
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/deposits.d.mts +10 -0
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +10 -0
- package/resources/deposits.d.ts.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 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +22 -406
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +22 -406
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +2 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +2 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/simulations/account-programs.d.mts +9 -75
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +9 -75
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +0 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +0 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +9 -70
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +9 -70
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +0 -1
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +0 -1
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +14 -30
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +14 -30
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/payouts.d.mts +4 -18
- package/resources/simulations/payouts.d.mts.map +1 -1
- package/resources/simulations/payouts.d.ts +4 -18
- package/resources/simulations/payouts.d.ts.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +60 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +60 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +9 -9
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +9 -9
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +1 -1
- package/resources/webhook-subscriptions.mjs +1 -1
- package/resources/webhooks.d.mts +245 -30
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +245 -30
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +16 -8
- package/src/resources/account-programs.ts +29 -18
- package/src/resources/accounts.ts +29 -6
- package/src/resources/counterparties.ts +16 -16
- package/src/resources/deposits.ts +12 -0
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +8 -4
- package/src/resources/payouts.ts +36 -1993
- package/src/resources/simulations/account-programs.ts +10 -91
- package/src/resources/simulations/accounts.ts +10 -85
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +27 -35
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/payouts.ts +4 -22
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/resources/transactions.ts +70 -0
- package/src/resources/webhook-subscriptions.ts +49 -33
- package/src/resources/webhooks.ts +360 -36
- 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
|
@@ -18,7 +18,7 @@ export class Webhooks extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export interface
|
|
21
|
+
export interface PayoutInitiatedWebhookEvent {
|
|
22
22
|
/**
|
|
23
23
|
* Unique identifier for the event. Stable across retries.
|
|
24
24
|
*/
|
|
@@ -37,15 +37,15 @@ export interface PayoutCreatedWebhookEvent {
|
|
|
37
37
|
/**
|
|
38
38
|
* Full resource snapshot at the time of the event.
|
|
39
39
|
*/
|
|
40
|
-
payload:
|
|
40
|
+
payload: PayoutInitiatedWebhookEvent.Payload;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Event type in resource.action format.
|
|
44
44
|
*/
|
|
45
|
-
type: 'payout.
|
|
45
|
+
type: 'payout.initiated';
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export namespace
|
|
48
|
+
export namespace PayoutInitiatedWebhookEvent {
|
|
49
49
|
/**
|
|
50
50
|
* Full resource snapshot at the time of the event.
|
|
51
51
|
*/
|
|
@@ -123,9 +123,10 @@ export namespace PayoutCreatedWebhookEvent {
|
|
|
123
123
|
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
127
|
+
* for SWIFT payments.
|
|
127
128
|
*/
|
|
128
|
-
|
|
129
|
+
tracking_reference: string | null;
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
132
|
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
@@ -183,7 +184,7 @@ export namespace PayoutCreatedWebhookEvent {
|
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
export interface
|
|
187
|
+
export interface PayoutSubmittedWebhookEvent {
|
|
187
188
|
/**
|
|
188
189
|
* Unique identifier for the event. Stable across retries.
|
|
189
190
|
*/
|
|
@@ -202,15 +203,15 @@ export interface PayoutInitiatedWebhookEvent {
|
|
|
202
203
|
/**
|
|
203
204
|
* Full resource snapshot at the time of the event.
|
|
204
205
|
*/
|
|
205
|
-
payload:
|
|
206
|
+
payload: PayoutSubmittedWebhookEvent.Payload;
|
|
206
207
|
|
|
207
208
|
/**
|
|
208
209
|
* Event type in resource.action format.
|
|
209
210
|
*/
|
|
210
|
-
type: 'payout.
|
|
211
|
+
type: 'payout.submitted';
|
|
211
212
|
}
|
|
212
213
|
|
|
213
|
-
export namespace
|
|
214
|
+
export namespace PayoutSubmittedWebhookEvent {
|
|
214
215
|
/**
|
|
215
216
|
* Full resource snapshot at the time of the event.
|
|
216
217
|
*/
|
|
@@ -288,9 +289,10 @@ export namespace PayoutInitiatedWebhookEvent {
|
|
|
288
289
|
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
289
290
|
|
|
290
291
|
/**
|
|
291
|
-
*
|
|
292
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
293
|
+
* for SWIFT payments.
|
|
292
294
|
*/
|
|
293
|
-
|
|
295
|
+
tracking_reference: string | null;
|
|
294
296
|
|
|
295
297
|
/**
|
|
296
298
|
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
@@ -348,7 +350,7 @@ export namespace PayoutInitiatedWebhookEvent {
|
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
|
|
351
|
-
export interface
|
|
353
|
+
export interface PayoutSentWebhookEvent {
|
|
352
354
|
/**
|
|
353
355
|
* Unique identifier for the event. Stable across retries.
|
|
354
356
|
*/
|
|
@@ -367,15 +369,15 @@ export interface PayoutPaidWebhookEvent {
|
|
|
367
369
|
/**
|
|
368
370
|
* Full resource snapshot at the time of the event.
|
|
369
371
|
*/
|
|
370
|
-
payload:
|
|
372
|
+
payload: PayoutSentWebhookEvent.Payload;
|
|
371
373
|
|
|
372
374
|
/**
|
|
373
375
|
* Event type in resource.action format.
|
|
374
376
|
*/
|
|
375
|
-
type: 'payout.
|
|
377
|
+
type: 'payout.sent';
|
|
376
378
|
}
|
|
377
379
|
|
|
378
|
-
export namespace
|
|
380
|
+
export namespace PayoutSentWebhookEvent {
|
|
379
381
|
/**
|
|
380
382
|
* Full resource snapshot at the time of the event.
|
|
381
383
|
*/
|
|
@@ -453,9 +455,10 @@ export namespace PayoutPaidWebhookEvent {
|
|
|
453
455
|
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
454
456
|
|
|
455
457
|
/**
|
|
456
|
-
*
|
|
458
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
459
|
+
* for SWIFT payments.
|
|
457
460
|
*/
|
|
458
|
-
|
|
461
|
+
tracking_reference: string | null;
|
|
459
462
|
|
|
460
463
|
/**
|
|
461
464
|
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
@@ -618,9 +621,176 @@ export namespace PayoutFailedWebhookEvent {
|
|
|
618
621
|
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
619
622
|
|
|
620
623
|
/**
|
|
621
|
-
*
|
|
624
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
625
|
+
* for SWIFT payments.
|
|
626
|
+
*/
|
|
627
|
+
tracking_reference: string | null;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
631
|
+
* rails support this field.
|
|
632
|
+
*/
|
|
633
|
+
tx_hash: string | null;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Resource type discriminator.
|
|
637
|
+
*/
|
|
638
|
+
type: 'payout';
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
642
|
+
* support this field.
|
|
643
|
+
*/
|
|
644
|
+
unstructured_remittance_information: string | null;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export namespace Payload {
|
|
648
|
+
/**
|
|
649
|
+
* Failure details when status is failed, otherwise null.
|
|
650
|
+
*/
|
|
651
|
+
export interface Failure {
|
|
652
|
+
/**
|
|
653
|
+
* Failure code.
|
|
654
|
+
*/
|
|
655
|
+
code:
|
|
656
|
+
| 'account_closed'
|
|
657
|
+
| 'account_blocked'
|
|
658
|
+
| 'insufficient_funds'
|
|
659
|
+
| 'invalid_account_format'
|
|
660
|
+
| 'invalid_routing_number'
|
|
661
|
+
| 'invalid_instruction'
|
|
662
|
+
| 'invalid_amount'
|
|
663
|
+
| 'invalid_time'
|
|
664
|
+
| 'duplicate_transaction'
|
|
665
|
+
| 'payee_verification_failed'
|
|
666
|
+
| 'system_error'
|
|
667
|
+
| 'provider_system_error'
|
|
668
|
+
| 'rejected_by_correspondent_bank'
|
|
669
|
+
| 'blocked_by_review'
|
|
670
|
+
| 'unknown';
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Human-readable description of the failure.
|
|
674
|
+
*/
|
|
675
|
+
message: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Whether the payout can be retried.
|
|
679
|
+
*/
|
|
680
|
+
retry: boolean;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export interface PayoutReturnedWebhookEvent {
|
|
686
|
+
/**
|
|
687
|
+
* Unique identifier for the event. Stable across retries.
|
|
688
|
+
*/
|
|
689
|
+
id: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* API version the payload was rendered at. Stable across retries and redeliveries.
|
|
693
|
+
*/
|
|
694
|
+
api_version: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* ISO 8601 UTC timestamp when the event was created.
|
|
698
|
+
*/
|
|
699
|
+
date: string;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Full resource snapshot at the time of the event.
|
|
703
|
+
*/
|
|
704
|
+
payload: PayoutReturnedWebhookEvent.Payload;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Event type in resource.action format.
|
|
708
|
+
*/
|
|
709
|
+
type: 'payout.returned';
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
export namespace PayoutReturnedWebhookEvent {
|
|
713
|
+
/**
|
|
714
|
+
* Full resource snapshot at the time of the event.
|
|
715
|
+
*/
|
|
716
|
+
export interface Payload {
|
|
717
|
+
/**
|
|
718
|
+
* Unique identifier of the payout.
|
|
719
|
+
*/
|
|
720
|
+
id: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* ID of the account that was debited.
|
|
724
|
+
*/
|
|
725
|
+
account_id: string;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
729
|
+
*/
|
|
730
|
+
amount: string;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* ID of the counterparty that receives the money.
|
|
734
|
+
*/
|
|
735
|
+
counterparty_id: string;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Currency code (ISO 4217 or crypto).
|
|
739
|
+
*/
|
|
740
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Failure details when status is failed, otherwise null.
|
|
744
|
+
*/
|
|
745
|
+
failure: Payload.Failure | null;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
749
|
+
*/
|
|
750
|
+
initiated_at: string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Key-value pairs stored with the payout.
|
|
754
|
+
*/
|
|
755
|
+
metadata: { [key: string]: string };
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
759
|
+
*/
|
|
760
|
+
rail:
|
|
761
|
+
| 'sepa'
|
|
762
|
+
| 'sepa_instant'
|
|
763
|
+
| 'faster_payments'
|
|
764
|
+
| 'swift'
|
|
765
|
+
| 'internal'
|
|
766
|
+
| 'target'
|
|
767
|
+
| 'ach'
|
|
768
|
+
| 'fedwire'
|
|
769
|
+
| 'bitcoin'
|
|
770
|
+
| 'bitcoin_testnet4'
|
|
771
|
+
| 'ethereum'
|
|
772
|
+
| 'ethereum_sepolia'
|
|
773
|
+
| 'solana'
|
|
774
|
+
| 'solana_devnet'
|
|
775
|
+
| 'polygon'
|
|
776
|
+
| 'polygon_amoy'
|
|
777
|
+
| null;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
781
|
+
*/
|
|
782
|
+
sent_at: string | null;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Current status of the payout.
|
|
786
|
+
*/
|
|
787
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
791
|
+
* for SWIFT payments.
|
|
622
792
|
*/
|
|
623
|
-
|
|
793
|
+
tracking_reference: string | null;
|
|
624
794
|
|
|
625
795
|
/**
|
|
626
796
|
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
@@ -822,7 +992,7 @@ export namespace ReturnInitiatedWebhookEvent {
|
|
|
822
992
|
}
|
|
823
993
|
}
|
|
824
994
|
|
|
825
|
-
export interface
|
|
995
|
+
export interface ReturnSubmittedWebhookEvent {
|
|
826
996
|
/**
|
|
827
997
|
* Unique identifier for the event. Stable across retries.
|
|
828
998
|
*/
|
|
@@ -841,15 +1011,159 @@ export interface ReturnPaidWebhookEvent {
|
|
|
841
1011
|
/**
|
|
842
1012
|
* Full resource snapshot at the time of the event.
|
|
843
1013
|
*/
|
|
844
|
-
payload:
|
|
1014
|
+
payload: ReturnSubmittedWebhookEvent.Payload;
|
|
845
1015
|
|
|
846
1016
|
/**
|
|
847
1017
|
* Event type in resource.action format.
|
|
848
1018
|
*/
|
|
849
|
-
type: 'return.
|
|
1019
|
+
type: 'return.submitted';
|
|
850
1020
|
}
|
|
851
1021
|
|
|
852
|
-
export namespace
|
|
1022
|
+
export namespace ReturnSubmittedWebhookEvent {
|
|
1023
|
+
/**
|
|
1024
|
+
* Full resource snapshot at the time of the event.
|
|
1025
|
+
*/
|
|
1026
|
+
export interface Payload {
|
|
1027
|
+
/**
|
|
1028
|
+
* Unique identifier of the return.
|
|
1029
|
+
*/
|
|
1030
|
+
id: string;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
1034
|
+
*/
|
|
1035
|
+
amount: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Currency code (ISO 4217 or crypto).
|
|
1039
|
+
*/
|
|
1040
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* ID of the parent deposit.
|
|
1044
|
+
*/
|
|
1045
|
+
deposit_id: string;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Failure details when status is failed, otherwise null.
|
|
1049
|
+
*/
|
|
1050
|
+
failure: Payload.Failure | null;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* ISO 8601 UTC timestamp when the return was initiated.
|
|
1054
|
+
*/
|
|
1055
|
+
initiated_at: string;
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
1059
|
+
*/
|
|
1060
|
+
rail:
|
|
1061
|
+
| 'sepa'
|
|
1062
|
+
| 'sepa_instant'
|
|
1063
|
+
| 'faster_payments'
|
|
1064
|
+
| 'swift'
|
|
1065
|
+
| 'internal'
|
|
1066
|
+
| 'target'
|
|
1067
|
+
| 'ach'
|
|
1068
|
+
| 'fedwire'
|
|
1069
|
+
| 'bitcoin'
|
|
1070
|
+
| 'bitcoin_testnet4'
|
|
1071
|
+
| 'ethereum'
|
|
1072
|
+
| 'ethereum_sepolia'
|
|
1073
|
+
| 'solana'
|
|
1074
|
+
| 'solana_devnet'
|
|
1075
|
+
| 'polygon'
|
|
1076
|
+
| 'polygon_amoy'
|
|
1077
|
+
| null;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* ISO 8601 UTC timestamp when the return was sent.
|
|
1081
|
+
*/
|
|
1082
|
+
sent_at: string | null;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Current status of the return.
|
|
1086
|
+
*/
|
|
1087
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Transaction hash for crypto returns, or null when not known. Only blockchain
|
|
1091
|
+
* rails support this field.
|
|
1092
|
+
*/
|
|
1093
|
+
tx_hash: string | null;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Resource type discriminator.
|
|
1097
|
+
*/
|
|
1098
|
+
type: 'return';
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export namespace Payload {
|
|
1102
|
+
/**
|
|
1103
|
+
* Failure details when status is failed, otherwise null.
|
|
1104
|
+
*/
|
|
1105
|
+
export interface Failure {
|
|
1106
|
+
/**
|
|
1107
|
+
* Failure code.
|
|
1108
|
+
*/
|
|
1109
|
+
code:
|
|
1110
|
+
| 'account_closed'
|
|
1111
|
+
| 'account_blocked'
|
|
1112
|
+
| 'insufficient_funds'
|
|
1113
|
+
| 'invalid_account_format'
|
|
1114
|
+
| 'invalid_routing_number'
|
|
1115
|
+
| 'invalid_instruction'
|
|
1116
|
+
| 'invalid_amount'
|
|
1117
|
+
| 'invalid_time'
|
|
1118
|
+
| 'duplicate_transaction'
|
|
1119
|
+
| 'payee_verification_failed'
|
|
1120
|
+
| 'system_error'
|
|
1121
|
+
| 'provider_system_error'
|
|
1122
|
+
| 'rejected_by_correspondent_bank'
|
|
1123
|
+
| 'blocked_by_review'
|
|
1124
|
+
| 'unknown';
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Human-readable description of the failure.
|
|
1128
|
+
*/
|
|
1129
|
+
message: string;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Whether the return can be retried.
|
|
1133
|
+
*/
|
|
1134
|
+
retry: boolean;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export interface ReturnSentWebhookEvent {
|
|
1140
|
+
/**
|
|
1141
|
+
* Unique identifier for the event. Stable across retries.
|
|
1142
|
+
*/
|
|
1143
|
+
id: string;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* API version the payload was rendered at. Stable across retries and redeliveries.
|
|
1147
|
+
*/
|
|
1148
|
+
api_version: string;
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* ISO 8601 UTC timestamp when the event was created.
|
|
1152
|
+
*/
|
|
1153
|
+
date: string;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Full resource snapshot at the time of the event.
|
|
1157
|
+
*/
|
|
1158
|
+
payload: ReturnSentWebhookEvent.Payload;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Event type in resource.action format.
|
|
1162
|
+
*/
|
|
1163
|
+
type: 'return.sent';
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export namespace ReturnSentWebhookEvent {
|
|
853
1167
|
/**
|
|
854
1168
|
* Full resource snapshot at the time of the event.
|
|
855
1169
|
*/
|
|
@@ -1254,7 +1568,7 @@ export namespace ReturnReturnedWebhookEvent {
|
|
|
1254
1568
|
}
|
|
1255
1569
|
}
|
|
1256
1570
|
|
|
1257
|
-
export interface
|
|
1571
|
+
export interface DepositSettledWebhookEvent {
|
|
1258
1572
|
/**
|
|
1259
1573
|
* Unique identifier for the event. Stable across retries.
|
|
1260
1574
|
*/
|
|
@@ -1273,15 +1587,15 @@ export interface DepositReceivedWebhookEvent {
|
|
|
1273
1587
|
/**
|
|
1274
1588
|
* Full resource snapshot at the time of the event.
|
|
1275
1589
|
*/
|
|
1276
|
-
payload:
|
|
1590
|
+
payload: DepositSettledWebhookEvent.Payload;
|
|
1277
1591
|
|
|
1278
1592
|
/**
|
|
1279
1593
|
* Event type in resource.action format.
|
|
1280
1594
|
*/
|
|
1281
|
-
type: 'deposit.
|
|
1595
|
+
type: 'deposit.settled';
|
|
1282
1596
|
}
|
|
1283
1597
|
|
|
1284
|
-
export namespace
|
|
1598
|
+
export namespace DepositSettledWebhookEvent {
|
|
1285
1599
|
/**
|
|
1286
1600
|
* Full resource snapshot at the time of the event.
|
|
1287
1601
|
*/
|
|
@@ -1348,6 +1662,12 @@ export namespace DepositReceivedWebhookEvent {
|
|
|
1348
1662
|
*/
|
|
1349
1663
|
status: 'settled';
|
|
1350
1664
|
|
|
1665
|
+
/**
|
|
1666
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
1667
|
+
* for SWIFT payments.
|
|
1668
|
+
*/
|
|
1669
|
+
tracking_reference: string | null;
|
|
1670
|
+
|
|
1351
1671
|
/**
|
|
1352
1672
|
* Transaction hash for crypto deposits, or null when not known. Only blockchain
|
|
1353
1673
|
* rails support this field.
|
|
@@ -9561,15 +9881,17 @@ export namespace PingTestWebhookEvent {
|
|
|
9561
9881
|
}
|
|
9562
9882
|
|
|
9563
9883
|
export type UnwrapWebhookEvent =
|
|
9564
|
-
| PayoutCreatedWebhookEvent
|
|
9565
9884
|
| PayoutInitiatedWebhookEvent
|
|
9566
|
-
|
|
|
9885
|
+
| PayoutSubmittedWebhookEvent
|
|
9886
|
+
| PayoutSentWebhookEvent
|
|
9567
9887
|
| PayoutFailedWebhookEvent
|
|
9888
|
+
| PayoutReturnedWebhookEvent
|
|
9568
9889
|
| ReturnInitiatedWebhookEvent
|
|
9569
|
-
|
|
|
9890
|
+
| ReturnSubmittedWebhookEvent
|
|
9891
|
+
| ReturnSentWebhookEvent
|
|
9570
9892
|
| ReturnFailedWebhookEvent
|
|
9571
9893
|
| ReturnReturnedWebhookEvent
|
|
9572
|
-
|
|
|
9894
|
+
| DepositSettledWebhookEvent
|
|
9573
9895
|
| ConversionCreatedWebhookEvent
|
|
9574
9896
|
| ConversionCompletedWebhookEvent
|
|
9575
9897
|
| ConversionFailedWebhookEvent
|
|
@@ -9579,15 +9901,17 @@ export type UnwrapWebhookEvent =
|
|
|
9579
9901
|
|
|
9580
9902
|
export declare namespace Webhooks {
|
|
9581
9903
|
export {
|
|
9582
|
-
type PayoutCreatedWebhookEvent as PayoutCreatedWebhookEvent,
|
|
9583
9904
|
type PayoutInitiatedWebhookEvent as PayoutInitiatedWebhookEvent,
|
|
9584
|
-
type
|
|
9905
|
+
type PayoutSubmittedWebhookEvent as PayoutSubmittedWebhookEvent,
|
|
9906
|
+
type PayoutSentWebhookEvent as PayoutSentWebhookEvent,
|
|
9585
9907
|
type PayoutFailedWebhookEvent as PayoutFailedWebhookEvent,
|
|
9908
|
+
type PayoutReturnedWebhookEvent as PayoutReturnedWebhookEvent,
|
|
9586
9909
|
type ReturnInitiatedWebhookEvent as ReturnInitiatedWebhookEvent,
|
|
9587
|
-
type
|
|
9910
|
+
type ReturnSubmittedWebhookEvent as ReturnSubmittedWebhookEvent,
|
|
9911
|
+
type ReturnSentWebhookEvent as ReturnSentWebhookEvent,
|
|
9588
9912
|
type ReturnFailedWebhookEvent as ReturnFailedWebhookEvent,
|
|
9589
9913
|
type ReturnReturnedWebhookEvent as ReturnReturnedWebhookEvent,
|
|
9590
|
-
type
|
|
9914
|
+
type DepositSettledWebhookEvent as DepositSettledWebhookEvent,
|
|
9591
9915
|
type ConversionCreatedWebhookEvent as ConversionCreatedWebhookEvent,
|
|
9592
9916
|
type ConversionCompletedWebhookEvent as ConversionCompletedWebhookEvent,
|
|
9593
9917
|
type ConversionFailedWebhookEvent as ConversionFailedWebhookEvent,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.22.
|
|
1
|
+
export const VERSION = '0.22.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.22.
|
|
1
|
+
export declare const VERSION = "0.22.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.22.
|
|
1
|
+
export declare const VERSION = "0.22.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.22.
|
|
1
|
+
export const VERSION = '0.22.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|