@augustusbank/typescript-sdk 0.20.0 → 0.22.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.
Files changed (196) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account-holders.d.mts +1555 -1184
  12. package/resources/account-holders.d.mts.map +1 -1
  13. package/resources/account-holders.d.ts +1555 -1184
  14. package/resources/account-holders.d.ts.map +1 -1
  15. package/resources/account-holders.js +59 -0
  16. package/resources/account-holders.js.map +1 -1
  17. package/resources/account-holders.mjs +59 -0
  18. package/resources/account-holders.mjs.map +1 -1
  19. package/resources/account-programs.d.mts +2 -2
  20. package/resources/account-programs.d.ts +2 -2
  21. package/resources/accounts.d.mts +206 -43
  22. package/resources/accounts.d.mts.map +1 -1
  23. package/resources/accounts.d.ts +206 -43
  24. package/resources/accounts.d.ts.map +1 -1
  25. package/resources/accounts.js +53 -0
  26. package/resources/accounts.js.map +1 -1
  27. package/resources/accounts.mjs +53 -0
  28. package/resources/accounts.mjs.map +1 -1
  29. package/resources/api-keys.d.mts +1 -1
  30. package/resources/api-keys.d.mts.map +1 -1
  31. package/resources/api-keys.d.ts +1 -1
  32. package/resources/api-keys.d.ts.map +1 -1
  33. package/resources/api-versions.d.mts +3 -0
  34. package/resources/api-versions.d.mts.map +1 -1
  35. package/resources/api-versions.d.ts +3 -0
  36. package/resources/api-versions.d.ts.map +1 -1
  37. package/resources/conversions.d.mts +36 -81
  38. package/resources/conversions.d.mts.map +1 -1
  39. package/resources/conversions.d.ts +36 -81
  40. package/resources/conversions.d.ts.map +1 -1
  41. package/resources/conversions.js +25 -1
  42. package/resources/conversions.js.map +1 -1
  43. package/resources/conversions.mjs +25 -1
  44. package/resources/conversions.mjs.map +1 -1
  45. package/resources/counterparties.d.mts +1042 -0
  46. package/resources/counterparties.d.mts.map +1 -0
  47. package/resources/counterparties.d.ts +1042 -0
  48. package/resources/counterparties.d.ts.map +1 -0
  49. package/resources/counterparties.js +45 -0
  50. package/resources/counterparties.js.map +1 -0
  51. package/resources/counterparties.mjs +41 -0
  52. package/resources/counterparties.mjs.map +1 -0
  53. package/resources/deposits.d.mts +38 -186
  54. package/resources/deposits.d.mts.map +1 -1
  55. package/resources/deposits.d.ts +38 -186
  56. package/resources/deposits.d.ts.map +1 -1
  57. package/resources/index.d.mts +2 -0
  58. package/resources/index.d.mts.map +1 -1
  59. package/resources/index.d.ts +2 -0
  60. package/resources/index.d.ts.map +1 -1
  61. package/resources/index.js +5 -1
  62. package/resources/index.js.map +1 -1
  63. package/resources/index.mjs +2 -0
  64. package/resources/index.mjs.map +1 -1
  65. package/resources/payouts.d.mts +458 -276
  66. package/resources/payouts.d.mts.map +1 -1
  67. package/resources/payouts.d.ts +458 -276
  68. package/resources/payouts.d.ts.map +1 -1
  69. package/resources/payouts.js +27 -0
  70. package/resources/payouts.js.map +1 -1
  71. package/resources/payouts.mjs +27 -0
  72. package/resources/payouts.mjs.map +1 -1
  73. package/resources/quotes/indicative.d.mts +7 -11
  74. package/resources/quotes/indicative.d.mts.map +1 -1
  75. package/resources/quotes/indicative.d.ts +7 -11
  76. package/resources/quotes/indicative.d.ts.map +1 -1
  77. package/resources/quotes/quotes.d.mts +4 -8
  78. package/resources/quotes/quotes.d.mts.map +1 -1
  79. package/resources/quotes/quotes.d.ts +4 -8
  80. package/resources/quotes/quotes.d.ts.map +1 -1
  81. package/resources/quotes/quotes.js.map +1 -1
  82. package/resources/quotes/quotes.mjs.map +1 -1
  83. package/resources/returns.d.mts +84 -39
  84. package/resources/returns.d.mts.map +1 -1
  85. package/resources/returns.d.ts +84 -39
  86. package/resources/returns.d.ts.map +1 -1
  87. package/resources/returns.js +22 -0
  88. package/resources/returns.js.map +1 -1
  89. package/resources/returns.mjs +22 -0
  90. package/resources/returns.mjs.map +1 -1
  91. package/resources/scopes.d.mts +4 -1
  92. package/resources/scopes.d.mts.map +1 -1
  93. package/resources/scopes.d.ts +4 -1
  94. package/resources/scopes.d.ts.map +1 -1
  95. package/resources/simulations/account-programs.d.mts +281 -0
  96. package/resources/simulations/account-programs.d.mts.map +1 -0
  97. package/resources/simulations/account-programs.d.ts +281 -0
  98. package/resources/simulations/account-programs.d.ts.map +1 -0
  99. package/resources/simulations/account-programs.js +98 -0
  100. package/resources/simulations/account-programs.js.map +1 -0
  101. package/resources/simulations/account-programs.mjs +94 -0
  102. package/resources/simulations/account-programs.mjs.map +1 -0
  103. package/resources/simulations/accounts.d.mts +270 -0
  104. package/resources/simulations/accounts.d.mts.map +1 -0
  105. package/resources/simulations/accounts.d.ts +270 -0
  106. package/resources/simulations/accounts.d.ts.map +1 -0
  107. package/resources/simulations/accounts.js +91 -0
  108. package/resources/simulations/accounts.js.map +1 -0
  109. package/resources/simulations/accounts.mjs +87 -0
  110. package/resources/simulations/accounts.mjs.map +1 -0
  111. package/resources/simulations/deposits.d.mts +218 -0
  112. package/resources/simulations/deposits.d.mts.map +1 -0
  113. package/resources/simulations/deposits.d.ts +218 -0
  114. package/resources/simulations/deposits.d.ts.map +1 -0
  115. package/resources/simulations/deposits.js +25 -0
  116. package/resources/simulations/deposits.js.map +1 -0
  117. package/resources/simulations/deposits.mjs +21 -0
  118. package/resources/simulations/deposits.mjs.map +1 -0
  119. package/resources/simulations/index.d.mts +6 -0
  120. package/resources/simulations/index.d.mts.map +1 -0
  121. package/resources/simulations/index.d.ts +6 -0
  122. package/resources/simulations/index.d.ts.map +1 -0
  123. package/resources/simulations/index.js +15 -0
  124. package/resources/simulations/index.js.map +1 -0
  125. package/resources/simulations/index.mjs +7 -0
  126. package/resources/simulations/index.mjs.map +1 -0
  127. package/resources/simulations/payouts.d.mts +76 -0
  128. package/resources/simulations/payouts.d.mts.map +1 -0
  129. package/resources/simulations/payouts.d.ts +76 -0
  130. package/resources/simulations/payouts.d.ts.map +1 -0
  131. package/resources/simulations/payouts.js +39 -0
  132. package/resources/simulations/payouts.js.map +1 -0
  133. package/resources/simulations/payouts.mjs +35 -0
  134. package/resources/simulations/payouts.mjs.map +1 -0
  135. package/resources/simulations/simulations.d.mts +22 -0
  136. package/resources/simulations/simulations.d.mts.map +1 -0
  137. package/resources/simulations/simulations.d.ts +22 -0
  138. package/resources/simulations/simulations.d.ts.map +1 -0
  139. package/resources/simulations/simulations.js +29 -0
  140. package/resources/simulations/simulations.js.map +1 -0
  141. package/resources/simulations/simulations.mjs +24 -0
  142. package/resources/simulations/simulations.mjs.map +1 -0
  143. package/resources/simulations.d.mts +2 -0
  144. package/resources/simulations.d.mts.map +1 -0
  145. package/resources/simulations.d.ts +2 -0
  146. package/resources/simulations.d.ts.map +1 -0
  147. package/resources/simulations.js +6 -0
  148. package/resources/simulations.js.map +1 -0
  149. package/resources/simulations.mjs +3 -0
  150. package/resources/simulations.mjs.map +1 -0
  151. package/resources/transactions.d.mts +300 -180
  152. package/resources/transactions.d.mts.map +1 -1
  153. package/resources/transactions.d.ts +300 -180
  154. package/resources/transactions.d.ts.map +1 -1
  155. package/resources/webhook-subscriptions.d.mts +54 -4
  156. package/resources/webhook-subscriptions.d.mts.map +1 -1
  157. package/resources/webhook-subscriptions.d.ts +54 -4
  158. package/resources/webhook-subscriptions.d.ts.map +1 -1
  159. package/resources/webhook-subscriptions.js +49 -0
  160. package/resources/webhook-subscriptions.js.map +1 -1
  161. package/resources/webhook-subscriptions.mjs +49 -0
  162. package/resources/webhook-subscriptions.mjs.map +1 -1
  163. package/resources/webhooks.d.mts +736 -953
  164. package/resources/webhooks.d.mts.map +1 -1
  165. package/resources/webhooks.d.ts +736 -953
  166. package/resources/webhooks.d.ts.map +1 -1
  167. package/src/client.ts +32 -0
  168. package/src/resources/account-holders.ts +1701 -1282
  169. package/src/resources/account-programs.ts +2 -2
  170. package/src/resources/accounts.ts +236 -44
  171. package/src/resources/api-keys.ts +3 -0
  172. package/src/resources/api-versions.ts +3 -0
  173. package/src/resources/conversions.ts +36 -93
  174. package/src/resources/counterparties.ts +3127 -0
  175. package/src/resources/deposits.ts +54 -269
  176. package/src/resources/index.ts +13 -0
  177. package/src/resources/payouts.ts +2089 -367
  178. package/src/resources/quotes/indicative.ts +7 -12
  179. package/src/resources/quotes/quotes.ts +4 -9
  180. package/src/resources/returns.ts +144 -40
  181. package/src/resources/scopes.ts +7 -1
  182. package/src/resources/simulations/account-programs.ts +363 -0
  183. package/src/resources/simulations/accounts.ts +340 -0
  184. package/src/resources/simulations/deposits.ts +530 -0
  185. package/src/resources/simulations/index.ts +32 -0
  186. package/src/resources/simulations/payouts.ts +98 -0
  187. package/src/resources/simulations/simulations.ts +82 -0
  188. package/src/resources/simulations.ts +3 -0
  189. package/src/resources/transactions.ts +910 -232
  190. package/src/resources/webhook-subscriptions.ts +54 -4
  191. package/src/resources/webhooks.ts +948 -1126
  192. package/src/version.ts +1 -1
  193. package/version.d.mts +1 -1
  194. package/version.d.ts +1 -1
  195. package/version.js +1 -1
  196. package/version.mjs +1 -1
@@ -19,7 +19,7 @@ export interface TransactionRetrieveResponse {
19
19
  */
20
20
  id: string;
21
21
  /**
22
- * ID of the merchant account this transaction settled on.
22
+ * ID of the merchant account this transaction was credited to or debited from.
23
23
  */
24
24
  account_id: string;
25
25
  /**
@@ -27,119 +27,179 @@ export interface TransactionRetrieveResponse {
27
27
  */
28
28
  amount: string;
29
29
  /**
30
- * Reference visible on the bank statement, or null when not applicable.
31
- */
32
- bank_statement_reference: string | null;
33
- /**
34
- * Bank account or wallet of the other party, or null when not known.
30
+ * ISO 8601 UTC timestamp when the transaction was recorded.
35
31
  */
36
- counterparty: TransactionRetrieveResponse.UnionMember0 | TransactionRetrieveResponse.UnionMember1 | TransactionRetrieveResponse.UnionMember2 | TransactionRetrieveResponse.UnionMember3 | null;
32
+ booked_at: string;
37
33
  /**
38
- * ISO 8601 UTC timestamp when the transaction was recorded.
34
+ * Counterparty of the transaction.
39
35
  */
40
- created_at: string;
36
+ counterparty: TransactionRetrieveResponse.Counterparty | null;
41
37
  /**
42
- * ISO 4217 fiat or crypto currency code of the amount.
38
+ * Currency code (ISO 4217 or crypto).
43
39
  */
44
40
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
45
41
  /**
46
- * The product that caused this transaction, or null when no product is linked.
42
+ * Payment scheme or blockchain used for the transaction, or null when unknown.
47
43
  */
48
- product: TransactionRetrieveResponse.Product | null;
44
+ rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'bitcoin' | 'bitcoin_testnet4' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy' | null;
49
45
  /**
50
46
  * Direction of the movement relative to the merchant account.
51
47
  */
52
48
  side: 'credit' | 'debit';
53
49
  /**
54
- * Lifecycle state of the transaction.
50
+ * State of the transaction. Transactions are by definition booked.
51
+ */
52
+ status: 'booked';
53
+ /**
54
+ * Transaction hash for crypto transactions, or null when not known. Only
55
+ * blockchain rails support this field.
55
56
  */
56
- status: 'pending' | 'completed' | 'failed';
57
+ tx_hash: string | null;
57
58
  /**
58
59
  * Resource type discriminator.
59
60
  */
60
61
  type: 'transaction';
62
+ /**
63
+ * Unstructured remittance information attached to the transfer. Not all rails
64
+ * support this field.
65
+ */
66
+ unstructured_remittance_information: string | null;
61
67
  }
62
68
  export declare namespace TransactionRetrieveResponse {
63
- interface UnionMember0 {
64
- /**
65
- * Name of the account holder.
66
- */
67
- account_holder_name: string;
68
- /**
69
- * Bank Identifier Code, or null if not provided.
70
- */
71
- bic: string | null;
72
- /**
73
- * International Bank Account Number.
74
- */
75
- iban: string;
76
- /**
77
- * Discriminator for IBAN financial address.
78
- */
79
- type: 'iban';
80
- }
81
- interface UnionMember1 {
82
- /**
83
- * Name of the account holder.
84
- */
85
- account_holder_name: string;
86
- /**
87
- * UK account number (8 digits).
88
- */
89
- account_number: string;
90
- /**
91
- * UK sort code (6 digits).
92
- */
93
- sort_code: string;
94
- /**
95
- * Discriminator for UK sort code financial address.
96
- */
97
- type: 'sort_code';
98
- }
99
- interface UnionMember2 {
100
- /**
101
- * Name of the account holder.
102
- */
103
- account_holder_name: string;
104
- /**
105
- * Bank account number.
106
- */
107
- account_number: string;
108
- /**
109
- * ABA routing number (9 digits).
110
- */
111
- routing_number: string;
112
- /**
113
- * Discriminator for ABA wire financial address.
114
- */
115
- type: 'aba';
116
- }
117
- interface UnionMember3 {
118
- /**
119
- * Wallet address on the specified blockchain.
120
- */
121
- address: string;
122
- /**
123
- * Blockchain network for the crypto wallet.
124
- */
125
- blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
126
- /**
127
- * Discriminator for crypto wallet financial address.
128
- */
129
- type: 'crypto_wallet';
130
- }
131
69
  /**
132
- * The product that caused this transaction, or null when no product is linked.
70
+ * Counterparty of the transaction.
133
71
  */
134
- interface Product {
72
+ interface Counterparty {
135
73
  /**
136
- * Identifier of the product resource that caused this transaction.
74
+ * Financial address of the counterparty.
137
75
  */
138
- id: string;
76
+ financial_address: Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
139
77
  /**
140
- * Type of the product that caused this transaction.
78
+ * Physical address of the counterparty.
141
79
  */
142
- type: 'deposit' | 'deposit_return' | 'refund' | 'payout';
80
+ physical_address: Counterparty.PhysicalAddress | null;
81
+ }
82
+ namespace Counterparty {
83
+ interface IbanFinancialAddress {
84
+ /**
85
+ * Name of the account holder.
86
+ */
87
+ account_holder_name: string;
88
+ /**
89
+ * Bank Identifier Code, or null if not provided.
90
+ */
91
+ bic: string | null;
92
+ /**
93
+ * International Bank Account Number.
94
+ */
95
+ iban: string;
96
+ /**
97
+ * Discriminator for IBAN financial address.
98
+ */
99
+ type: 'iban';
100
+ }
101
+ interface SortCodeFinancialAddress {
102
+ /**
103
+ * Name of the account holder.
104
+ */
105
+ account_holder_name: string;
106
+ /**
107
+ * UK account number (8 digits).
108
+ */
109
+ account_number: string;
110
+ /**
111
+ * UK sort code (6 digits).
112
+ */
113
+ sort_code: string;
114
+ /**
115
+ * Discriminator for UK sort code financial address.
116
+ */
117
+ type: 'sort_code';
118
+ }
119
+ interface AbaFinancialAddress {
120
+ /**
121
+ * Name of the account holder.
122
+ */
123
+ account_holder_name: string;
124
+ /**
125
+ * Bank account number.
126
+ */
127
+ account_number: string;
128
+ /**
129
+ * ABA routing number (9 digits).
130
+ */
131
+ routing_number: string;
132
+ /**
133
+ * Discriminator for ABA wire financial address.
134
+ */
135
+ type: 'aba';
136
+ }
137
+ interface BicFinancialAddress {
138
+ /**
139
+ * Name of the account holder.
140
+ */
141
+ account_holder_name: string;
142
+ /**
143
+ * Local-format bank account number.
144
+ */
145
+ account_number: string;
146
+ /**
147
+ * ISO 9362 Bank Identifier Code (8 or 11 characters).
148
+ */
149
+ bic: string;
150
+ /**
151
+ * Domestic bank or branch code where the destination country uses one (for example
152
+ * the BSB in Australia), or null.
153
+ */
154
+ local_bank_code: string | null;
155
+ /**
156
+ * Discriminator for BIC + local account financial address.
157
+ */
158
+ type: 'bic';
159
+ }
160
+ interface CryptoWalletFinancialAddress {
161
+ /**
162
+ * Wallet address on the specified blockchain.
163
+ */
164
+ address: string;
165
+ /**
166
+ * Blockchain network for the crypto wallet.
167
+ */
168
+ blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
169
+ /**
170
+ * Discriminator for crypto wallet financial address.
171
+ */
172
+ type: 'crypto_wallet';
173
+ }
174
+ /**
175
+ * Physical address of the counterparty.
176
+ */
177
+ interface PhysicalAddress {
178
+ /**
179
+ * City or locality.
180
+ */
181
+ city: string;
182
+ /**
183
+ * ISO 3166-1 alpha-2 country code.
184
+ */
185
+ country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
186
+ /**
187
+ * Primary street address.
188
+ */
189
+ line_1: string;
190
+ /**
191
+ * Secondary street address, or null if not recorded.
192
+ */
193
+ line_2: string | null;
194
+ /**
195
+ * Postal or ZIP code.
196
+ */
197
+ postal_code: string;
198
+ /**
199
+ * State, province, or region, or null if not recorded.
200
+ */
201
+ state: string | null;
202
+ }
143
203
  }
144
204
  }
145
205
  export interface TransactionListResponse {
@@ -148,7 +208,7 @@ export interface TransactionListResponse {
148
208
  */
149
209
  id: string;
150
210
  /**
151
- * ID of the merchant account this transaction settled on.
211
+ * ID of the merchant account this transaction was credited to or debited from.
152
212
  */
153
213
  account_id: string;
154
214
  /**
@@ -156,119 +216,179 @@ export interface TransactionListResponse {
156
216
  */
157
217
  amount: string;
158
218
  /**
159
- * Reference visible on the bank statement, or null when not applicable.
160
- */
161
- bank_statement_reference: string | null;
162
- /**
163
- * Bank account or wallet of the other party, or null when not known.
219
+ * ISO 8601 UTC timestamp when the transaction was recorded.
164
220
  */
165
- counterparty: TransactionListResponse.UnionMember0 | TransactionListResponse.UnionMember1 | TransactionListResponse.UnionMember2 | TransactionListResponse.UnionMember3 | null;
221
+ booked_at: string;
166
222
  /**
167
- * ISO 8601 UTC timestamp when the transaction was recorded.
223
+ * Counterparty of the transaction.
168
224
  */
169
- created_at: string;
225
+ counterparty: TransactionListResponse.Counterparty | null;
170
226
  /**
171
- * ISO 4217 fiat or crypto currency code of the amount.
227
+ * Currency code (ISO 4217 or crypto).
172
228
  */
173
229
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
174
230
  /**
175
- * The product that caused this transaction, or null when no product is linked.
231
+ * Payment scheme or blockchain used for the transaction, or null when unknown.
176
232
  */
177
- product: TransactionListResponse.Product | null;
233
+ rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'bitcoin' | 'bitcoin_testnet4' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy' | null;
178
234
  /**
179
235
  * Direction of the movement relative to the merchant account.
180
236
  */
181
237
  side: 'credit' | 'debit';
182
238
  /**
183
- * Lifecycle state of the transaction.
239
+ * State of the transaction. Transactions are by definition booked.
240
+ */
241
+ status: 'booked';
242
+ /**
243
+ * Transaction hash for crypto transactions, or null when not known. Only
244
+ * blockchain rails support this field.
184
245
  */
185
- status: 'pending' | 'completed' | 'failed';
246
+ tx_hash: string | null;
186
247
  /**
187
248
  * Resource type discriminator.
188
249
  */
189
250
  type: 'transaction';
251
+ /**
252
+ * Unstructured remittance information attached to the transfer. Not all rails
253
+ * support this field.
254
+ */
255
+ unstructured_remittance_information: string | null;
190
256
  }
191
257
  export declare namespace TransactionListResponse {
192
- interface UnionMember0 {
193
- /**
194
- * Name of the account holder.
195
- */
196
- account_holder_name: string;
197
- /**
198
- * Bank Identifier Code, or null if not provided.
199
- */
200
- bic: string | null;
201
- /**
202
- * International Bank Account Number.
203
- */
204
- iban: string;
205
- /**
206
- * Discriminator for IBAN financial address.
207
- */
208
- type: 'iban';
209
- }
210
- interface UnionMember1 {
211
- /**
212
- * Name of the account holder.
213
- */
214
- account_holder_name: string;
215
- /**
216
- * UK account number (8 digits).
217
- */
218
- account_number: string;
219
- /**
220
- * UK sort code (6 digits).
221
- */
222
- sort_code: string;
223
- /**
224
- * Discriminator for UK sort code financial address.
225
- */
226
- type: 'sort_code';
227
- }
228
- interface UnionMember2 {
229
- /**
230
- * Name of the account holder.
231
- */
232
- account_holder_name: string;
233
- /**
234
- * Bank account number.
235
- */
236
- account_number: string;
237
- /**
238
- * ABA routing number (9 digits).
239
- */
240
- routing_number: string;
241
- /**
242
- * Discriminator for ABA wire financial address.
243
- */
244
- type: 'aba';
245
- }
246
- interface UnionMember3 {
247
- /**
248
- * Wallet address on the specified blockchain.
249
- */
250
- address: string;
251
- /**
252
- * Blockchain network for the crypto wallet.
253
- */
254
- blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
255
- /**
256
- * Discriminator for crypto wallet financial address.
257
- */
258
- type: 'crypto_wallet';
259
- }
260
258
  /**
261
- * The product that caused this transaction, or null when no product is linked.
259
+ * Counterparty of the transaction.
262
260
  */
263
- interface Product {
261
+ interface Counterparty {
264
262
  /**
265
- * Identifier of the product resource that caused this transaction.
263
+ * Financial address of the counterparty.
266
264
  */
267
- id: string;
265
+ financial_address: Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
268
266
  /**
269
- * Type of the product that caused this transaction.
267
+ * Physical address of the counterparty.
270
268
  */
271
- type: 'deposit' | 'deposit_return' | 'refund' | 'payout';
269
+ physical_address: Counterparty.PhysicalAddress | null;
270
+ }
271
+ namespace Counterparty {
272
+ interface IbanFinancialAddress {
273
+ /**
274
+ * Name of the account holder.
275
+ */
276
+ account_holder_name: string;
277
+ /**
278
+ * Bank Identifier Code, or null if not provided.
279
+ */
280
+ bic: string | null;
281
+ /**
282
+ * International Bank Account Number.
283
+ */
284
+ iban: string;
285
+ /**
286
+ * Discriminator for IBAN financial address.
287
+ */
288
+ type: 'iban';
289
+ }
290
+ interface SortCodeFinancialAddress {
291
+ /**
292
+ * Name of the account holder.
293
+ */
294
+ account_holder_name: string;
295
+ /**
296
+ * UK account number (8 digits).
297
+ */
298
+ account_number: string;
299
+ /**
300
+ * UK sort code (6 digits).
301
+ */
302
+ sort_code: string;
303
+ /**
304
+ * Discriminator for UK sort code financial address.
305
+ */
306
+ type: 'sort_code';
307
+ }
308
+ interface AbaFinancialAddress {
309
+ /**
310
+ * Name of the account holder.
311
+ */
312
+ account_holder_name: string;
313
+ /**
314
+ * Bank account number.
315
+ */
316
+ account_number: string;
317
+ /**
318
+ * ABA routing number (9 digits).
319
+ */
320
+ routing_number: string;
321
+ /**
322
+ * Discriminator for ABA wire financial address.
323
+ */
324
+ type: 'aba';
325
+ }
326
+ interface BicFinancialAddress {
327
+ /**
328
+ * Name of the account holder.
329
+ */
330
+ account_holder_name: string;
331
+ /**
332
+ * Local-format bank account number.
333
+ */
334
+ account_number: string;
335
+ /**
336
+ * ISO 9362 Bank Identifier Code (8 or 11 characters).
337
+ */
338
+ bic: string;
339
+ /**
340
+ * Domestic bank or branch code where the destination country uses one (for example
341
+ * the BSB in Australia), or null.
342
+ */
343
+ local_bank_code: string | null;
344
+ /**
345
+ * Discriminator for BIC + local account financial address.
346
+ */
347
+ type: 'bic';
348
+ }
349
+ interface CryptoWalletFinancialAddress {
350
+ /**
351
+ * Wallet address on the specified blockchain.
352
+ */
353
+ address: string;
354
+ /**
355
+ * Blockchain network for the crypto wallet.
356
+ */
357
+ blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
358
+ /**
359
+ * Discriminator for crypto wallet financial address.
360
+ */
361
+ type: 'crypto_wallet';
362
+ }
363
+ /**
364
+ * Physical address of the counterparty.
365
+ */
366
+ interface PhysicalAddress {
367
+ /**
368
+ * City or locality.
369
+ */
370
+ city: string;
371
+ /**
372
+ * ISO 3166-1 alpha-2 country code.
373
+ */
374
+ country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
375
+ /**
376
+ * Primary street address.
377
+ */
378
+ line_1: string;
379
+ /**
380
+ * Secondary street address, or null if not recorded.
381
+ */
382
+ line_2: string | null;
383
+ /**
384
+ * Postal or ZIP code.
385
+ */
386
+ postal_code: string;
387
+ /**
388
+ * State, province, or region, or null if not recorded.
389
+ */
390
+ state: string | null;
391
+ }
272
392
  }
273
393
  }
274
394
  export interface TransactionListParams extends CursorPageParams {
@@ -276,17 +396,17 @@ export interface TransactionListParams extends CursorPageParams {
276
396
  * Account to list transactions for.
277
397
  */
278
398
  account_id: string;
279
- created_at?: TransactionListParams.CreatedAt;
399
+ booked_at?: TransactionListParams.BookedAt;
280
400
  }
281
401
  export declare namespace TransactionListParams {
282
- interface CreatedAt {
402
+ interface BookedAt {
283
403
  /**
284
- * Include transactions whose created_at is greater than or equal to this ISO 8601
404
+ * Include transactions whose booked_at is greater than or equal to this ISO 8601
285
405
  * timestamp.
286
406
  */
287
407
  gte?: string;
288
408
  /**
289
- * Include transactions whose created_at is less than or equal to this ISO 8601
409
+ * Include transactions whose booked_at is less than or equal to this ISO 8601
290
410
  * timestamp.
291
411
  */
292
412
  lte?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIvF;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,uBAAuB,CAAC;CAM5E;AAED,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAErF,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,YAAY,EACR,2BAA2B,CAAC,YAAY,GACxC,2BAA2B,CAAC,YAAY,GACx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