@augustusbank/typescript-sdk 0.22.0 → 0.22.2

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 (164) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/client.d.mts +8 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account-programs.d.mts +21 -16
  10. package/resources/account-programs.d.mts.map +1 -1
  11. package/resources/account-programs.d.ts +21 -16
  12. package/resources/account-programs.d.ts.map +1 -1
  13. package/resources/account-programs.js +2 -2
  14. package/resources/account-programs.js.map +1 -1
  15. package/resources/account-programs.mjs +2 -2
  16. package/resources/account-programs.mjs.map +1 -1
  17. package/resources/accounts.d.mts +21 -6
  18. package/resources/accounts.d.mts.map +1 -1
  19. package/resources/accounts.d.ts +21 -6
  20. package/resources/accounts.d.ts.map +1 -1
  21. package/resources/accounts.js +2 -2
  22. package/resources/accounts.js.map +1 -1
  23. package/resources/accounts.mjs +2 -2
  24. package/resources/accounts.mjs.map +1 -1
  25. package/resources/counterparties.d.mts +16 -16
  26. package/resources/counterparties.d.mts.map +1 -1
  27. package/resources/counterparties.d.ts +16 -16
  28. package/resources/counterparties.d.ts.map +1 -1
  29. package/resources/deposits.d.mts +10 -0
  30. package/resources/deposits.d.mts.map +1 -1
  31. package/resources/deposits.d.ts +10 -0
  32. package/resources/deposits.d.ts.map +1 -1
  33. package/resources/events.d.mts +3 -3
  34. package/resources/events.d.mts.map +1 -1
  35. package/resources/events.d.ts +3 -3
  36. package/resources/events.d.ts.map +1 -1
  37. package/resources/index.d.mts +4 -4
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +4 -4
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/payouts.d.mts +22 -406
  44. package/resources/payouts.d.mts.map +1 -1
  45. package/resources/payouts.d.ts +22 -406
  46. package/resources/payouts.d.ts.map +1 -1
  47. package/resources/payouts.js +2 -4
  48. package/resources/payouts.js.map +1 -1
  49. package/resources/payouts.mjs +2 -4
  50. package/resources/payouts.mjs.map +1 -1
  51. package/resources/quotes/index.d.mts +1 -1
  52. package/resources/quotes/index.d.mts.map +1 -1
  53. package/resources/quotes/index.d.ts +1 -1
  54. package/resources/quotes/index.d.ts.map +1 -1
  55. package/resources/quotes/index.js.map +1 -1
  56. package/resources/quotes/index.mjs.map +1 -1
  57. package/resources/quotes/quotes.d.mts +0 -57
  58. package/resources/quotes/quotes.d.mts.map +1 -1
  59. package/resources/quotes/quotes.d.ts +0 -57
  60. package/resources/quotes/quotes.d.ts.map +1 -1
  61. package/resources/quotes/quotes.js +0 -7
  62. package/resources/quotes/quotes.js.map +1 -1
  63. package/resources/quotes/quotes.mjs +0 -7
  64. package/resources/quotes/quotes.mjs.map +1 -1
  65. package/resources/simulations/account-programs.d.mts +11 -72
  66. package/resources/simulations/account-programs.d.mts.map +1 -1
  67. package/resources/simulations/account-programs.d.ts +11 -72
  68. package/resources/simulations/account-programs.d.ts.map +1 -1
  69. package/resources/simulations/account-programs.js +1 -2
  70. package/resources/simulations/account-programs.js.map +1 -1
  71. package/resources/simulations/account-programs.mjs +1 -2
  72. package/resources/simulations/account-programs.mjs.map +1 -1
  73. package/resources/simulations/accounts.d.mts +16 -72
  74. package/resources/simulations/accounts.d.mts.map +1 -1
  75. package/resources/simulations/accounts.d.ts +16 -72
  76. package/resources/simulations/accounts.d.ts.map +1 -1
  77. package/resources/simulations/accounts.js +3 -3
  78. package/resources/simulations/accounts.js.map +1 -1
  79. package/resources/simulations/accounts.mjs +3 -3
  80. package/resources/simulations/accounts.mjs.map +1 -1
  81. package/resources/simulations/conversions.d.mts +54 -0
  82. package/resources/simulations/conversions.d.mts.map +1 -0
  83. package/resources/simulations/conversions.d.ts +54 -0
  84. package/resources/simulations/conversions.d.ts.map +1 -0
  85. package/resources/simulations/conversions.js +39 -0
  86. package/resources/simulations/conversions.js.map +1 -0
  87. package/resources/simulations/conversions.mjs +35 -0
  88. package/resources/simulations/conversions.mjs.map +1 -0
  89. package/resources/simulations/deposits.d.mts +14 -30
  90. package/resources/simulations/deposits.d.mts.map +1 -1
  91. package/resources/simulations/deposits.d.ts +14 -30
  92. package/resources/simulations/deposits.d.ts.map +1 -1
  93. package/resources/simulations/index.d.mts +3 -1
  94. package/resources/simulations/index.d.mts.map +1 -1
  95. package/resources/simulations/index.d.ts +3 -1
  96. package/resources/simulations/index.d.ts.map +1 -1
  97. package/resources/simulations/index.js +5 -1
  98. package/resources/simulations/index.js.map +1 -1
  99. package/resources/simulations/index.mjs +2 -0
  100. package/resources/simulations/index.mjs.map +1 -1
  101. package/resources/simulations/payouts.d.mts +33 -17
  102. package/resources/simulations/payouts.d.mts.map +1 -1
  103. package/resources/simulations/payouts.d.ts +33 -17
  104. package/resources/simulations/payouts.d.ts.map +1 -1
  105. package/resources/simulations/payouts.js +16 -0
  106. package/resources/simulations/payouts.js.map +1 -1
  107. package/resources/simulations/payouts.mjs +16 -0
  108. package/resources/simulations/payouts.mjs.map +1 -1
  109. package/resources/simulations/returns.d.mts +92 -0
  110. package/resources/simulations/returns.d.mts.map +1 -0
  111. package/resources/simulations/returns.d.ts +92 -0
  112. package/resources/simulations/returns.d.ts.map +1 -0
  113. package/resources/simulations/returns.js +55 -0
  114. package/resources/simulations/returns.js.map +1 -0
  115. package/resources/simulations/returns.mjs +51 -0
  116. package/resources/simulations/returns.mjs.map +1 -0
  117. package/resources/simulations/simulations.d.mts +10 -2
  118. package/resources/simulations/simulations.d.mts.map +1 -1
  119. package/resources/simulations/simulations.d.ts +10 -2
  120. package/resources/simulations/simulations.d.ts.map +1 -1
  121. package/resources/simulations/simulations.js +8 -0
  122. package/resources/simulations/simulations.js.map +1 -1
  123. package/resources/simulations/simulations.mjs +9 -1
  124. package/resources/simulations/simulations.mjs.map +1 -1
  125. package/resources/transactions.d.mts +60 -0
  126. package/resources/transactions.d.mts.map +1 -1
  127. package/resources/transactions.d.ts +60 -0
  128. package/resources/transactions.d.ts.map +1 -1
  129. package/resources/webhook-subscriptions.d.mts +9 -9
  130. package/resources/webhook-subscriptions.d.mts.map +1 -1
  131. package/resources/webhook-subscriptions.d.ts +9 -9
  132. package/resources/webhook-subscriptions.d.ts.map +1 -1
  133. package/resources/webhook-subscriptions.js +1 -1
  134. package/resources/webhook-subscriptions.mjs +1 -1
  135. package/resources/webhooks.d.mts +245 -30
  136. package/resources/webhooks.d.mts.map +1 -1
  137. package/resources/webhooks.d.ts +245 -30
  138. package/resources/webhooks.d.ts.map +1 -1
  139. package/src/client.ts +18 -10
  140. package/src/resources/account-programs.ts +29 -18
  141. package/src/resources/accounts.ts +29 -6
  142. package/src/resources/counterparties.ts +16 -16
  143. package/src/resources/deposits.ts +12 -0
  144. package/src/resources/events.ts +18 -12
  145. package/src/resources/index.ts +9 -5
  146. package/src/resources/payouts.ts +36 -1993
  147. package/src/resources/quotes/index.ts +1 -1
  148. package/src/resources/quotes/quotes.ts +0 -84
  149. package/src/resources/simulations/account-programs.ts +12 -87
  150. package/src/resources/simulations/accounts.ts +18 -87
  151. package/src/resources/simulations/conversions.ts +70 -0
  152. package/src/resources/simulations/deposits.ts +27 -35
  153. package/src/resources/simulations/index.ts +11 -0
  154. package/src/resources/simulations/payouts.ts +43 -18
  155. package/src/resources/simulations/returns.ts +123 -0
  156. package/src/resources/simulations/simulations.ts +40 -1
  157. package/src/resources/transactions.ts +70 -0
  158. package/src/resources/webhook-subscriptions.ts +49 -33
  159. package/src/resources/webhooks.ts +360 -36
  160. package/src/version.ts +1 -1
  161. package/version.d.mts +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. package/version.mjs +1 -1
@@ -18,7 +18,7 @@ export class Webhooks extends APIResource {
18
18
  }
19
19
  }
20
20
 
21
- export interface PayoutCreatedWebhookEvent {
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: PayoutCreatedWebhookEvent.Payload;
40
+ payload: PayoutInitiatedWebhookEvent.Payload;
41
41
 
42
42
  /**
43
43
  * Event type in resource.action format.
44
44
  */
45
- type: 'payout.created';
45
+ type: 'payout.initiated';
46
46
  }
47
47
 
48
- export namespace PayoutCreatedWebhookEvent {
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
- * Identifier used to track the payout through the payment network where supported.
126
+ * Reference used to track the payment across the payment network, such as the UETR
127
+ * for SWIFT payments.
127
128
  */
128
- tracking_id: string | null;
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 PayoutInitiatedWebhookEvent {
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: PayoutInitiatedWebhookEvent.Payload;
206
+ payload: PayoutSubmittedWebhookEvent.Payload;
206
207
 
207
208
  /**
208
209
  * Event type in resource.action format.
209
210
  */
210
- type: 'payout.initiated';
211
+ type: 'payout.submitted';
211
212
  }
212
213
 
213
- export namespace PayoutInitiatedWebhookEvent {
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
- * Identifier used to track the payout through the payment network where supported.
292
+ * Reference used to track the payment across the payment network, such as the UETR
293
+ * for SWIFT payments.
292
294
  */
293
- tracking_id: string | null;
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 PayoutPaidWebhookEvent {
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: PayoutPaidWebhookEvent.Payload;
372
+ payload: PayoutSentWebhookEvent.Payload;
371
373
 
372
374
  /**
373
375
  * Event type in resource.action format.
374
376
  */
375
- type: 'payout.paid';
377
+ type: 'payout.sent';
376
378
  }
377
379
 
378
- export namespace PayoutPaidWebhookEvent {
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
- * Identifier used to track the payout through the payment network where supported.
458
+ * Reference used to track the payment across the payment network, such as the UETR
459
+ * for SWIFT payments.
457
460
  */
458
- tracking_id: string | null;
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
- * Identifier used to track the payout through the payment network where supported.
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
- tracking_id: string | null;
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 ReturnPaidWebhookEvent {
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: ReturnPaidWebhookEvent.Payload;
1014
+ payload: ReturnSubmittedWebhookEvent.Payload;
845
1015
 
846
1016
  /**
847
1017
  * Event type in resource.action format.
848
1018
  */
849
- type: 'return.paid';
1019
+ type: 'return.submitted';
850
1020
  }
851
1021
 
852
- export namespace ReturnPaidWebhookEvent {
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 DepositReceivedWebhookEvent {
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: DepositReceivedWebhookEvent.Payload;
1590
+ payload: DepositSettledWebhookEvent.Payload;
1277
1591
 
1278
1592
  /**
1279
1593
  * Event type in resource.action format.
1280
1594
  */
1281
- type: 'deposit.received';
1595
+ type: 'deposit.settled';
1282
1596
  }
1283
1597
 
1284
- export namespace DepositReceivedWebhookEvent {
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
- | PayoutPaidWebhookEvent
9885
+ | PayoutSubmittedWebhookEvent
9886
+ | PayoutSentWebhookEvent
9567
9887
  | PayoutFailedWebhookEvent
9888
+ | PayoutReturnedWebhookEvent
9568
9889
  | ReturnInitiatedWebhookEvent
9569
- | ReturnPaidWebhookEvent
9890
+ | ReturnSubmittedWebhookEvent
9891
+ | ReturnSentWebhookEvent
9570
9892
  | ReturnFailedWebhookEvent
9571
9893
  | ReturnReturnedWebhookEvent
9572
- | DepositReceivedWebhookEvent
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 PayoutPaidWebhookEvent as PayoutPaidWebhookEvent,
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 ReturnPaidWebhookEvent as ReturnPaidWebhookEvent,
9910
+ type ReturnSubmittedWebhookEvent as ReturnSubmittedWebhookEvent,
9911
+ type ReturnSentWebhookEvent as ReturnSentWebhookEvent,
9588
9912
  type ReturnFailedWebhookEvent as ReturnFailedWebhookEvent,
9589
9913
  type ReturnReturnedWebhookEvent as ReturnReturnedWebhookEvent,
9590
- type DepositReceivedWebhookEvent as DepositReceivedWebhookEvent,
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.0'; // x-release-please-version
1
+ export const VERSION = '0.22.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.0";
1
+ export declare const VERSION = "0.22.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.0";
1
+ export declare const VERSION = "0.22.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.22.0'; // x-release-please-version
4
+ exports.VERSION = '0.22.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.22.0'; // x-release-please-version
1
+ export const VERSION = '0.22.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map