increase 0.3.0 → 0.4.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 (286) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/.stats.yml +1 -1
  3. package/CHANGELOG.md +46 -0
  4. package/README.md +3 -4
  5. package/api.md +11 -0
  6. package/core.ts +4 -140
  7. package/dist/cjs/core.d.ts +3 -53
  8. package/dist/cjs/core.d.ts.map +1 -1
  9. package/dist/cjs/core.js +12 -179
  10. package/dist/cjs/core.js.map +1 -1
  11. package/dist/cjs/error.d.ts +72 -27
  12. package/dist/cjs/error.d.ts.map +1 -1
  13. package/dist/cjs/error.js +176 -54
  14. package/dist/cjs/error.js.map +1 -1
  15. package/dist/cjs/index.d.ts +25 -28
  16. package/dist/cjs/index.d.ts.map +1 -1
  17. package/dist/cjs/index.js +30 -77
  18. package/dist/cjs/index.js.map +1 -1
  19. package/dist/cjs/resources/account-numbers.d.ts +1 -20
  20. package/dist/cjs/resources/account-numbers.d.ts.map +1 -1
  21. package/dist/cjs/resources/account-statements.d.ts +1 -20
  22. package/dist/cjs/resources/account-statements.d.ts.map +1 -1
  23. package/dist/cjs/resources/account-transfers.d.ts +1 -20
  24. package/dist/cjs/resources/account-transfers.d.ts.map +1 -1
  25. package/dist/cjs/resources/accounts.d.ts +17 -25
  26. package/dist/cjs/resources/accounts.d.ts.map +1 -1
  27. package/dist/cjs/resources/ach-prenotifications.d.ts +6 -25
  28. package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -1
  29. package/dist/cjs/resources/ach-transfers.d.ts +70 -37
  30. package/dist/cjs/resources/ach-transfers.d.ts.map +1 -1
  31. package/dist/cjs/resources/bookkeeping-accounts.d.ts +4 -4
  32. package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -1
  33. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +4 -16
  34. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  35. package/dist/cjs/resources/card-disputes.d.ts +2 -26
  36. package/dist/cjs/resources/card-disputes.d.ts.map +1 -1
  37. package/dist/cjs/resources/card-profiles.d.ts +1 -63
  38. package/dist/cjs/resources/card-profiles.d.ts.map +1 -1
  39. package/dist/cjs/resources/cards.d.ts +1 -116
  40. package/dist/cjs/resources/cards.d.ts.map +1 -1
  41. package/dist/cjs/resources/check-deposits.d.ts +3 -21
  42. package/dist/cjs/resources/check-deposits.d.ts.map +1 -1
  43. package/dist/cjs/resources/check-transfers.d.ts +10 -58
  44. package/dist/cjs/resources/check-transfers.d.ts.map +1 -1
  45. package/dist/cjs/resources/declined-transactions.d.ts +2 -48
  46. package/dist/cjs/resources/declined-transactions.d.ts.map +1 -1
  47. package/dist/cjs/resources/digital-wallet-tokens.d.ts +1 -20
  48. package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -1
  49. package/dist/cjs/resources/documents.d.ts +2 -76
  50. package/dist/cjs/resources/documents.d.ts.map +1 -1
  51. package/dist/cjs/resources/entities/entities.d.ts +81 -1021
  52. package/dist/cjs/resources/entities/entities.d.ts.map +1 -1
  53. package/dist/cjs/resources/entities/index.d.ts +6 -1
  54. package/dist/cjs/resources/entities/index.d.ts.map +1 -1
  55. package/dist/cjs/resources/entities/index.js +8 -1
  56. package/dist/cjs/resources/entities/index.js.map +1 -1
  57. package/dist/cjs/resources/entities/supplemental-documents.d.ts +35 -0
  58. package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -1
  59. package/dist/cjs/resources/entities/supplemental-documents.js +14 -1
  60. package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -1
  61. package/dist/cjs/resources/event-subscriptions.d.ts +4 -4
  62. package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -1
  63. package/dist/cjs/resources/events.d.ts +24 -99
  64. package/dist/cjs/resources/events.d.ts.map +1 -1
  65. package/dist/cjs/resources/exports.d.ts +4 -86
  66. package/dist/cjs/resources/exports.d.ts.map +1 -1
  67. package/dist/cjs/resources/external-accounts.d.ts +5 -10
  68. package/dist/cjs/resources/external-accounts.d.ts.map +1 -1
  69. package/dist/cjs/resources/files.d.ts +6 -43
  70. package/dist/cjs/resources/files.d.ts.map +1 -1
  71. package/dist/cjs/resources/limits.d.ts +4 -4
  72. package/dist/cjs/resources/limits.d.ts.map +1 -1
  73. package/dist/cjs/resources/pending-transactions.d.ts +11 -86
  74. package/dist/cjs/resources/pending-transactions.d.ts.map +1 -1
  75. package/dist/cjs/resources/real-time-decisions.d.ts +0 -69
  76. package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -1
  77. package/dist/cjs/resources/real-time-payments-transfers.d.ts +9 -28
  78. package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -1
  79. package/dist/cjs/resources/simulations/ach-transfers.d.ts +108 -214
  80. package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -1
  81. package/dist/cjs/resources/simulations/card-disputes.d.ts +4 -4
  82. package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -1
  83. package/dist/cjs/resources/simulations/cards.d.ts +6 -83
  84. package/dist/cjs/resources/simulations/cards.d.ts.map +1 -1
  85. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +25 -25
  86. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  87. package/dist/cjs/resources/simulations/index.d.ts +1 -0
  88. package/dist/cjs/resources/simulations/index.d.ts.map +1 -1
  89. package/dist/cjs/resources/simulations/interest-payments.d.ts +57 -184
  90. package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -1
  91. package/dist/cjs/resources/simulations/programs.d.ts +21 -0
  92. package/dist/cjs/resources/simulations/programs.d.ts.map +1 -0
  93. package/dist/cjs/resources/simulations/programs.js +17 -0
  94. package/dist/cjs/resources/simulations/programs.js.map +1 -0
  95. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +58 -242
  96. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  97. package/dist/cjs/resources/simulations/simulations.d.ts +2 -0
  98. package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -1
  99. package/dist/cjs/resources/simulations/simulations.js +2 -0
  100. package/dist/cjs/resources/simulations/simulations.js.map +1 -1
  101. package/dist/cjs/resources/simulations/wire-transfers.d.ts +57 -184
  102. package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -1
  103. package/dist/cjs/resources/transactions.d.ts +81 -281
  104. package/dist/cjs/resources/transactions.d.ts.map +1 -1
  105. package/dist/cjs/resources/wire-drawdown-requests.d.ts +8 -8
  106. package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -1
  107. package/dist/cjs/resources/wire-transfers.d.ts +13 -32
  108. package/dist/cjs/resources/wire-transfers.d.ts.map +1 -1
  109. package/dist/cjs/streaming.d.ts +13 -0
  110. package/dist/cjs/streaming.d.ts.map +1 -0
  111. package/dist/cjs/streaming.js +282 -0
  112. package/dist/cjs/streaming.js.map +1 -0
  113. package/dist/cjs/tests/api-resources/account-numbers.test.js +7 -8
  114. package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
  115. package/dist/cjs/tests/api-resources/account-statements.test.js +6 -4
  116. package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
  117. package/dist/cjs/tests/api-resources/account-transfers.test.js +6 -5
  118. package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
  119. package/dist/cjs/tests/api-resources/accounts.test.js +10 -12
  120. package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
  121. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +7 -15
  122. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
  123. package/dist/cjs/tests/api-resources/ach-transfers.test.js +8 -20
  124. package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
  125. package/dist/cjs/tests/api-resources/balance-lookups.test.js +1 -4
  126. package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -1
  127. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +2 -7
  128. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -1
  129. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +1 -3
  130. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +1 -1
  131. package/dist/cjs/tests/api-resources/card-disputes.test.js +7 -5
  132. package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
  133. package/dist/cjs/tests/api-resources/card-profiles.test.js +1 -1
  134. package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
  135. package/dist/cjs/tests/api-resources/cards.test.js +8 -16
  136. package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
  137. package/dist/cjs/tests/api-resources/check-deposits.test.js +6 -4
  138. package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
  139. package/dist/cjs/tests/api-resources/check-transfers.test.js +8 -10
  140. package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
  141. package/dist/cjs/tests/api-resources/declined-transactions.test.js +6 -4
  142. package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
  143. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +6 -4
  144. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
  145. package/dist/cjs/tests/api-resources/documents.test.js +13 -9
  146. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
  147. package/dist/cjs/tests/api-resources/entities/entities.test.js +8 -76
  148. package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
  149. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +12 -0
  150. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
  151. package/dist/cjs/tests/api-resources/event-subscriptions.test.js +3 -7
  152. package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
  153. package/dist/cjs/tests/api-resources/events.test.js +7 -5
  154. package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
  155. package/dist/cjs/tests/api-resources/exports.test.js +2 -6
  156. package/dist/cjs/tests/api-resources/exports.test.js.map +1 -1
  157. package/dist/cjs/tests/api-resources/external-accounts.test.js +3 -7
  158. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
  159. package/dist/cjs/tests/api-resources/files.test.js +8 -7
  160. package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
  161. package/dist/cjs/tests/api-resources/limits.test.js +2 -7
  162. package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
  163. package/dist/cjs/tests/api-resources/pending-transactions.test.js +7 -5
  164. package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
  165. package/dist/cjs/tests/api-resources/real-time-decisions.test.js +1 -5
  166. package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
  167. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +8 -10
  168. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +1 -1
  169. package/dist/cjs/tests/api-resources/routing-numbers.test.js +2 -6
  170. package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
  171. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +4 -8
  172. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
  173. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +1 -2
  174. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
  175. package/dist/cjs/tests/api-resources/simulations/cards.test.js +2 -8
  176. package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
  177. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +6 -18
  178. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
  179. package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts +2 -0
  180. package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts.map +1 -0
  181. package/dist/cjs/tests/api-resources/simulations/programs.test.js +52 -0
  182. package/dist/cjs/tests/api-resources/simulations/programs.test.js.map +1 -0
  183. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +1 -6
  184. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
  185. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +0 -13
  186. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
  187. package/dist/cjs/tests/api-resources/transactions.test.js +9 -9
  188. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
  189. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +2 -5
  190. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
  191. package/dist/cjs/tests/api-resources/wire-transfers.test.js +9 -14
  192. package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
  193. package/dist/cjs/tests/index.test.js +9 -4
  194. package/dist/cjs/tests/index.test.js.map +1 -1
  195. package/dist/cjs/version.d.ts +1 -1
  196. package/dist/cjs/version.js +1 -1
  197. package/error.ts +195 -27
  198. package/index.ts +26 -94
  199. package/package.json +1 -1
  200. package/release-please-config.json +5 -8
  201. package/resources/account-numbers.ts +1 -23
  202. package/resources/account-statements.ts +1 -23
  203. package/resources/account-transfers.ts +1 -23
  204. package/resources/accounts.ts +19 -28
  205. package/resources/ach-prenotifications.ts +7 -29
  206. package/resources/ach-transfers.ts +73 -42
  207. package/resources/bookkeeping-accounts.ts +5 -5
  208. package/resources/bookkeeping-entry-sets.ts +5 -19
  209. package/resources/card-disputes.ts +2 -29
  210. package/resources/card-profiles.ts +1 -74
  211. package/resources/cards.ts +1 -135
  212. package/resources/check-deposits.ts +3 -24
  213. package/resources/check-transfers.ts +11 -68
  214. package/resources/declined-transactions.ts +2 -60
  215. package/resources/digital-wallet-tokens.ts +1 -23
  216. package/resources/documents.ts +2 -79
  217. package/resources/entities/entities.ts +112 -1210
  218. package/resources/entities/index.ts +6 -1
  219. package/resources/entities/supplemental-documents.ts +46 -0
  220. package/resources/event-subscriptions.ts +5 -5
  221. package/resources/events.ts +28 -106
  222. package/resources/exports.ts +5 -99
  223. package/resources/external-accounts.ts +6 -11
  224. package/resources/files.ts +6 -46
  225. package/resources/limits.ts +5 -5
  226. package/resources/pending-transactions.ts +12 -104
  227. package/resources/real-time-decisions.ts +0 -77
  228. package/resources/real-time-payments-transfers.ts +11 -33
  229. package/resources/simulations/ach-transfers.ts +109 -263
  230. package/resources/simulations/card-disputes.ts +4 -4
  231. package/resources/simulations/cards.ts +7 -107
  232. package/resources/simulations/inbound-wire-drawdown-requests.ts +28 -28
  233. package/resources/simulations/index.ts +1 -0
  234. package/resources/simulations/interest-payments.ts +58 -224
  235. package/resources/simulations/programs.ts +26 -0
  236. package/resources/simulations/real-time-payments-transfers.ts +59 -292
  237. package/resources/simulations/simulations.ts +2 -0
  238. package/resources/simulations/wire-transfers.ts +58 -224
  239. package/resources/transactions.ts +86 -328
  240. package/resources/wire-drawdown-requests.ts +10 -10
  241. package/resources/wire-transfers.ts +15 -37
  242. package/streaming.ts +199 -0
  243. package/tests/api-resources/account-numbers.test.ts +7 -8
  244. package/tests/api-resources/account-statements.test.ts +6 -4
  245. package/tests/api-resources/account-transfers.test.ts +6 -5
  246. package/tests/api-resources/accounts.test.ts +10 -12
  247. package/tests/api-resources/ach-prenotifications.test.ts +7 -15
  248. package/tests/api-resources/ach-transfers.test.ts +8 -20
  249. package/tests/api-resources/balance-lookups.test.ts +1 -4
  250. package/tests/api-resources/bookkeeping-accounts.test.ts +2 -7
  251. package/tests/api-resources/bookkeeping-entry-sets.test.ts +1 -3
  252. package/tests/api-resources/card-disputes.test.ts +7 -5
  253. package/tests/api-resources/card-profiles.test.ts +1 -1
  254. package/tests/api-resources/cards.test.ts +8 -16
  255. package/tests/api-resources/check-deposits.test.ts +6 -4
  256. package/tests/api-resources/check-transfers.test.ts +8 -10
  257. package/tests/api-resources/declined-transactions.test.ts +6 -4
  258. package/tests/api-resources/digital-wallet-tokens.test.ts +6 -4
  259. package/tests/api-resources/documents.test.ts +9 -9
  260. package/tests/api-resources/entities/entities.test.ts +9 -80
  261. package/tests/api-resources/entities/supplemental-documents.test.ts +12 -0
  262. package/tests/api-resources/event-subscriptions.test.ts +3 -7
  263. package/tests/api-resources/events.test.ts +7 -5
  264. package/tests/api-resources/exports.test.ts +2 -6
  265. package/tests/api-resources/external-accounts.test.ts +3 -7
  266. package/tests/api-resources/files.test.ts +8 -7
  267. package/tests/api-resources/limits.test.ts +2 -7
  268. package/tests/api-resources/pending-transactions.test.ts +7 -5
  269. package/tests/api-resources/real-time-decisions.test.ts +1 -5
  270. package/tests/api-resources/real-time-payments-transfers.test.ts +8 -10
  271. package/tests/api-resources/routing-numbers.test.ts +2 -6
  272. package/tests/api-resources/simulations/ach-transfers.test.ts +1 -8
  273. package/tests/api-resources/simulations/card-disputes.test.ts +1 -2
  274. package/tests/api-resources/simulations/cards.test.ts +2 -8
  275. package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +6 -18
  276. package/tests/api-resources/simulations/programs.test.ts +15 -0
  277. package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +1 -6
  278. package/tests/api-resources/simulations/wire-transfers.test.ts +0 -13
  279. package/tests/api-resources/transactions.test.ts +9 -9
  280. package/tests/api-resources/wire-drawdown-requests.test.ts +2 -5
  281. package/tests/api-resources/wire-transfers.test.ts +9 -14
  282. package/tests/index.test.ts +9 -4
  283. package/version.ts +1 -1
  284. package/.github/workflows/publish-npm.yml +0 -28
  285. package/.github/workflows/release-doctor.yml +0 -20
  286. package/.github/workflows/release.yml +0 -38
@@ -1,4 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
3
  export { Entity, EntityCreateParams, EntityListParams, EntitiesPage } from './entities';
4
- export { SupplementalDocumentCreateParams } from './supplemental-documents';
4
+ export {
5
+ SupplementalDocument,
6
+ SupplementalDocumentCreateParams,
7
+ SupplementalDocumentListParams,
8
+ SupplementalDocumentsPage,
9
+ } from './supplemental-documents';
@@ -3,6 +3,7 @@
3
3
  import * as Core from '~/core';
4
4
  import { APIResource } from '~/resource';
5
5
  import * as Entities from '~/resources/entities';
6
+ import { Page, PageParams } from '~/pagination';
6
7
 
7
8
  export class SupplementalDocuments extends APIResource {
8
9
  /**
@@ -15,6 +16,44 @@ export class SupplementalDocuments extends APIResource {
15
16
  ): Promise<Core.APIResponse<Entities.Entity>> {
16
17
  return this.post(`/entities/${entityId}/supplemental_documents`, { body, ...options });
17
18
  }
19
+
20
+ /**
21
+ * List Entity Supplemental Document Submissionss
22
+ */
23
+ list(
24
+ query: SupplementalDocumentListParams,
25
+ options?: Core.RequestOptions,
26
+ ): Core.PagePromise<SupplementalDocumentsPage> {
27
+ return this.getAPIList('/entity_supplemental_documents', SupplementalDocumentsPage, {
28
+ query,
29
+ ...options,
30
+ });
31
+ }
32
+ }
33
+
34
+ export class SupplementalDocumentsPage extends Page<SupplementalDocument> {}
35
+
36
+ /**
37
+ * Supplemental Documents are uploaded files connected to an Entity during
38
+ * onboarding.
39
+ */
40
+ export interface SupplementalDocument {
41
+ /**
42
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
43
+ * Supplemental Document was created.
44
+ */
45
+ created_at: string;
46
+
47
+ /**
48
+ * The File containing the document.
49
+ */
50
+ file_id: string;
51
+
52
+ /**
53
+ * A constant representing the object's type. For this resource it will always be
54
+ * `entity_supplemental_document`.
55
+ */
56
+ type: 'entity_supplemental_document';
18
57
  }
19
58
 
20
59
  export interface SupplementalDocumentCreateParams {
@@ -23,3 +62,10 @@ export interface SupplementalDocumentCreateParams {
23
62
  */
24
63
  file_id: string;
25
64
  }
65
+
66
+ export interface SupplementalDocumentListParams extends PageParams {
67
+ /**
68
+ * The identifier of the Entity to list supplemental documents for.
69
+ */
70
+ entity_id: string;
71
+ }
@@ -157,6 +157,11 @@ export interface EventSubscription {
157
157
  }
158
158
 
159
159
  export interface EventSubscriptionCreateParams {
160
+ /**
161
+ * The URL you'd like us to send webhooks to.
162
+ */
163
+ url: string;
164
+
160
165
  /**
161
166
  * If specified, this subscription will only receive webhooks for Events with the
162
167
  * specified `category`.
@@ -218,11 +223,6 @@ export interface EventSubscriptionCreateParams {
218
223
  * string will be used as default.
219
224
  */
220
225
  shared_secret?: string;
221
-
222
- /**
223
- * The URL you'd like us to send webhooks to.
224
- */
225
- url: string;
226
226
  }
227
227
 
228
228
  export interface EventSubscriptionUpdateParams {
@@ -125,116 +125,12 @@ export interface EventListParams extends PageParams {
125
125
  */
126
126
  associated_object_id?: string;
127
127
 
128
- /**
129
- * Filter Events for those with the specified category or categories. For GET
130
- * requests, this should be encoded as a comma-delimited string, such as
131
- * `?in=one,two,three`.
132
- */
133
- 'category.in'?: Array<
134
- | 'account.created'
135
- | 'account.updated'
136
- | 'account_number.created'
137
- | 'account_number.updated'
138
- | 'account_statement.created'
139
- | 'account_transfer.created'
140
- | 'account_transfer.updated'
141
- | 'ach_prenotification.created'
142
- | 'ach_prenotification.updated'
143
- | 'ach_transfer.created'
144
- | 'ach_transfer.updated'
145
- | 'card.created'
146
- | 'card.updated'
147
- | 'card_payment.created'
148
- | 'card_payment.updated'
149
- | 'card_dispute.created'
150
- | 'card_dispute.updated'
151
- | 'check_deposit.created'
152
- | 'check_deposit.updated'
153
- | 'check_transfer.created'
154
- | 'check_transfer.updated'
155
- | 'declined_transaction.created'
156
- | 'digital_wallet_token.created'
157
- | 'digital_wallet_token.updated'
158
- | 'document.created'
159
- | 'entity.created'
160
- | 'entity.updated'
161
- | 'external_account.created'
162
- | 'file.created'
163
- | 'group.updated'
164
- | 'group.heartbeat'
165
- | 'inbound_ach_transfer_return.created'
166
- | 'inbound_ach_transfer_return.updated'
167
- | 'inbound_wire_drawdown_request.created'
168
- | 'oauth_connection.created'
169
- | 'oauth_connection.deactivated'
170
- | 'pending_transaction.created'
171
- | 'pending_transaction.updated'
172
- | 'real_time_decision.card_authorization_requested'
173
- | 'real_time_decision.digital_wallet_token_requested'
174
- | 'real_time_decision.digital_wallet_authentication_requested'
175
- | 'real_time_payments_transfer.created'
176
- | 'real_time_payments_transfer.updated'
177
- | 'real_time_payments_request_for_payment.created'
178
- | 'real_time_payments_request_for_payment.updated'
179
- | 'transaction.created'
180
- | 'wire_drawdown_request.created'
181
- | 'wire_drawdown_request.updated'
182
- | 'wire_transfer.created'
183
- | 'wire_transfer.updated'
184
- >;
185
-
186
- /**
187
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
188
- * timestamp.
189
- */
190
- 'created_at.after'?: string;
191
-
192
- /**
193
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
194
- * timestamp.
195
- */
196
- 'created_at.before'?: string;
128
+ category?: EventListParams.Category;
197
129
 
198
- /**
199
- * Return results on or after this
200
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
201
- */
202
- 'created_at.on_or_after'?: string;
203
-
204
- /**
205
- * Return results on or before this
206
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
207
- */
208
- 'created_at.on_or_before'?: string;
130
+ created_at?: EventListParams.CreatedAt;
209
131
  }
210
132
 
211
133
  export namespace EventListParams {
212
- export interface CreatedAt {
213
- /**
214
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
215
- * timestamp.
216
- */
217
- after?: string;
218
-
219
- /**
220
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
221
- * timestamp.
222
- */
223
- before?: string;
224
-
225
- /**
226
- * Return results on or after this
227
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
228
- */
229
- on_or_after?: string;
230
-
231
- /**
232
- * Return results on or before this
233
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
234
- */
235
- on_or_before?: string;
236
- }
237
-
238
134
  export interface Category {
239
135
  /**
240
136
  * Filter Events for those with the specified category or categories. For GET
@@ -294,4 +190,30 @@ export namespace EventListParams {
294
190
  | 'wire_transfer.updated'
295
191
  >;
296
192
  }
193
+
194
+ export interface CreatedAt {
195
+ /**
196
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
197
+ * timestamp.
198
+ */
199
+ after?: string;
200
+
201
+ /**
202
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
203
+ * timestamp.
204
+ */
205
+ before?: string;
206
+
207
+ /**
208
+ * Return results on or after this
209
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
210
+ */
211
+ on_or_after?: string;
212
+
213
+ /**
214
+ * Return results on or before this
215
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
216
+ */
217
+ on_or_before?: string;
218
+ }
297
219
  }
@@ -87,12 +87,6 @@ export interface Export {
87
87
  }
88
88
 
89
89
  export interface ExportCreateParams {
90
- /**
91
- * Options for the created export. Required if `category` is equal to
92
- * `balance_csv`.
93
- */
94
- balance_csv?: ExportCreateParams.BalanceCsv;
95
-
96
90
  /**
97
91
  * The type of Export to create.
98
92
  */
@@ -100,106 +94,18 @@ export interface ExportCreateParams {
100
94
 
101
95
  /**
102
96
  * Options for the created export. Required if `category` is equal to
103
- * `transaction_csv`.
97
+ * `balance_csv`.
104
98
  */
105
- transaction_csv?: ExportCreateParams.TransactionCsv;
106
- }
99
+ balance_csv?: ExportCreateParams.BalanceCsv;
107
100
 
108
- export namespace ExportCreateParams {
109
101
  /**
110
102
  * Options for the created export. Required if `category` is equal to
111
103
  * `transaction_csv`.
112
104
  */
113
- export interface TransactionCsv {
114
- /**
115
- * Filter exported Transactions to the specified Account.
116
- */
117
- account_id?: string;
118
-
119
- /**
120
- * Filter results by time range on the `created_at` attribute.
121
- */
122
- created_at?: TransactionCsv.CreatedAt;
123
- }
124
-
125
- export namespace TransactionCsv {
126
- /**
127
- * Filter results by time range on the `created_at` attribute.
128
- */
129
- export interface CreatedAt {
130
- /**
131
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
132
- * timestamp.
133
- */
134
- after?: string;
135
-
136
- /**
137
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
138
- * timestamp.
139
- */
140
- before?: string;
141
-
142
- /**
143
- * Return results on or after this
144
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
145
- */
146
- on_or_after?: string;
147
-
148
- /**
149
- * Return results on or before this
150
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
151
- */
152
- on_or_before?: string;
153
- }
154
- }
155
-
156
- /**
157
- * Options for the created export. Required if `category` is equal to
158
- * `balance_csv`.
159
- */
160
- export interface BalanceCsv {
161
- /**
162
- * Filter exported Transactions to the specified Account.
163
- */
164
- account_id?: string;
165
-
166
- /**
167
- * Filter results by time range on the `created_at` attribute.
168
- */
169
- created_at?: BalanceCsv.CreatedAt;
170
- }
171
-
172
- export namespace BalanceCsv {
173
- /**
174
- * Filter results by time range on the `created_at` attribute.
175
- */
176
- export interface CreatedAt {
177
- /**
178
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
179
- * timestamp.
180
- */
181
- after?: string;
182
-
183
- /**
184
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
185
- * timestamp.
186
- */
187
- before?: string;
188
-
189
- /**
190
- * Return results on or after this
191
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
192
- */
193
- on_or_after?: string;
194
-
195
- /**
196
- * Return results on or before this
197
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
198
- */
199
- on_or_before?: string;
200
- }
201
- }
105
+ transaction_csv?: ExportCreateParams.TransactionCsv;
106
+ }
202
107
 
108
+ export namespace ExportCreateParams {
203
109
  /**
204
110
  * Options for the created export. Required if `category` is equal to
205
111
  * `balance_csv`.
@@ -122,16 +122,16 @@ export interface ExternalAccountCreateParams {
122
122
  */
123
123
  description: string;
124
124
 
125
- /**
126
- * The type of the destination account. Defaults to `checking`.
127
- */
128
- funding?: 'checking' | 'savings' | 'other';
129
-
130
125
  /**
131
126
  * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
132
127
  * destination account.
133
128
  */
134
129
  routing_number: string;
130
+
131
+ /**
132
+ * The type of the destination account. Defaults to `checking`.
133
+ */
134
+ funding?: 'checking' | 'savings' | 'other';
135
135
  }
136
136
 
137
137
  export interface ExternalAccountUpdateParams {
@@ -147,12 +147,7 @@ export interface ExternalAccountUpdateParams {
147
147
  }
148
148
 
149
149
  export interface ExternalAccountListParams extends PageParams {
150
- /**
151
- * Filter External Accounts for those with the specified status or statuses. For
152
- * GET requests, this should be encoded as a comma-delimited string, such as
153
- * `?in=one,two,three`.
154
- */
155
- 'status.in'?: Array<'active' | 'archived'>;
150
+ status?: ExternalAccountListParams.Status;
156
151
  }
157
152
 
158
153
  export namespace ExternalAccountListParams {
@@ -107,11 +107,6 @@ export interface File {
107
107
  }
108
108
 
109
109
  export interface FileCreateParams {
110
- /**
111
- * The description you choose to give the File.
112
- */
113
- description?: string;
114
-
115
110
  /**
116
111
  * The file contents. This should follow the specifications of
117
112
  * [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file
@@ -133,52 +128,17 @@ export interface FileCreateParams {
133
128
  | 'digital_wallet_app_icon'
134
129
  | 'document_request'
135
130
  | 'entity_supplemental_document';
136
- }
137
131
 
138
- export interface FileListParams extends PageParams {
139
132
  /**
140
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
141
- * timestamp.
142
- */
143
- 'created_at.after'?: string;
144
-
145
- /**
146
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
147
- * timestamp.
148
- */
149
- 'created_at.before'?: string;
150
-
151
- /**
152
- * Return results on or after this
153
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
133
+ * The description you choose to give the File.
154
134
  */
155
- 'created_at.on_or_after'?: string;
135
+ description?: string;
136
+ }
156
137
 
157
- /**
158
- * Return results on or before this
159
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
160
- */
161
- 'created_at.on_or_before'?: string;
138
+ export interface FileListParams extends PageParams {
139
+ created_at?: FileListParams.CreatedAt;
162
140
 
163
- /**
164
- * Filter Files for those with the specified purpose or purposes. For GET requests,
165
- * this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
166
- */
167
- 'purpose.in'?: Array<
168
- | 'check_image_front'
169
- | 'check_image_back'
170
- | 'form_1099_int'
171
- | 'form_ss_4'
172
- | 'identity_document'
173
- | 'increase_statement'
174
- | 'other'
175
- | 'trust_formation_document'
176
- | 'digital_wallet_artwork'
177
- | 'digital_wallet_app_icon'
178
- | 'document_request'
179
- | 'entity_supplemental_document'
180
- | 'export'
181
- >;
141
+ purpose?: FileListParams.Purpose;
182
142
  }
183
143
 
184
144
  export namespace FileListParams {
@@ -101,11 +101,6 @@ export interface Limit {
101
101
  }
102
102
 
103
103
  export interface LimitCreateParams {
104
- /**
105
- * The interval for the metric. Required if `metric` is `count` or `volume`.
106
- */
107
- interval?: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time';
108
-
109
104
  /**
110
105
  * The metric for the limit.
111
106
  */
@@ -121,6 +116,11 @@ export interface LimitCreateParams {
121
116
  * The value to test the limit against.
122
117
  */
123
118
  value: number;
119
+
120
+ /**
121
+ * The interval for the metric. Required if `metric` is `count` or `volume`.
122
+ */
123
+ interval?: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time';
124
124
  }
125
125
 
126
126
  export interface LimitUpdateParams {
@@ -141,12 +141,6 @@ export namespace PendingTransaction {
141
141
  */
142
142
  card_authorization: Source.CardAuthorization | null;
143
143
 
144
- /**
145
- * A Deprecated Card Authorization object. This field will be present in the JSON
146
- * response if and only if `category` is equal to `card_route_authorization`.
147
- */
148
- card_route_authorization: Source.CardRouteAuthorization | null;
149
-
150
144
  /**
151
145
  * The type of transaction that took place. We may add additional possible values
152
146
  * for this enum over time; your application should be able to handle such
@@ -159,9 +153,7 @@ export namespace PendingTransaction {
159
153
  | 'check_deposit_instruction'
160
154
  | 'check_transfer_instruction'
161
155
  | 'inbound_funds_hold'
162
- | 'card_route_authorization'
163
156
  | 'real_time_payments_transfer_instruction'
164
- | 'wire_drawdown_payment_instruction'
165
157
  | 'wire_transfer_instruction'
166
158
  | 'other';
167
159
 
@@ -190,13 +182,6 @@ export namespace PendingTransaction {
190
182
  */
191
183
  real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
192
184
 
193
- /**
194
- * A Wire Drawdown Payment Instruction object. This field will be present in the
195
- * JSON response if and only if `category` is equal to
196
- * `wire_drawdown_payment_instruction`.
197
- */
198
- wire_drawdown_payment_instruction: Source.WireDrawdownPaymentInstruction | null;
199
-
200
185
  /**
201
186
  * A Wire Transfer Instruction object. This field will be present in the JSON
202
187
  * response if and only if `category` is equal to `wire_transfer_instruction`.
@@ -483,36 +468,6 @@ export namespace PendingTransaction {
483
468
  status: 'held' | 'complete';
484
469
  }
485
470
 
486
- /**
487
- * A Deprecated Card Authorization object. This field will be present in the JSON
488
- * response if and only if `category` is equal to `card_route_authorization`.
489
- */
490
- export interface CardRouteAuthorization {
491
- /**
492
- * The pending amount in the minor unit of the transaction's currency. For dollars,
493
- * for example, this is cents.
494
- */
495
- amount: number;
496
-
497
- /**
498
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
499
- * transaction's currency.
500
- */
501
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
502
-
503
- merchant_acceptor_id: string;
504
-
505
- merchant_category_code: string;
506
-
507
- merchant_city: string | null;
508
-
509
- merchant_country: string;
510
-
511
- merchant_descriptor: string;
512
-
513
- merchant_state: string | null;
514
- }
515
-
516
471
  /**
517
472
  * A Real Time Payments Transfer Instruction object. This field will be present in
518
473
  * the JSON response if and only if `category` is equal to
@@ -532,25 +487,6 @@ export namespace PendingTransaction {
532
487
  transfer_id: string;
533
488
  }
534
489
 
535
- /**
536
- * A Wire Drawdown Payment Instruction object. This field will be present in the
537
- * JSON response if and only if `category` is equal to
538
- * `wire_drawdown_payment_instruction`.
539
- */
540
- export interface WireDrawdownPaymentInstruction {
541
- account_number: string;
542
-
543
- /**
544
- * The pending amount in the minor unit of the transaction's currency. For dollars,
545
- * for example, this is cents.
546
- */
547
- amount: number;
548
-
549
- message_to_recipient: string;
550
-
551
- routing_number: string;
552
- }
553
-
554
490
  /**
555
491
  * A Wire Transfer Instruction object. This field will be present in the JSON
556
492
  * response if and only if `category` is equal to `wire_transfer_instruction`.
@@ -579,29 +515,7 @@ export interface PendingTransactionListParams extends PageParams {
579
515
  */
580
516
  account_id?: string;
581
517
 
582
- /**
583
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
584
- * timestamp.
585
- */
586
- 'created_at.after'?: string;
587
-
588
- /**
589
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
590
- * timestamp.
591
- */
592
- 'created_at.before'?: string;
593
-
594
- /**
595
- * Return results on or after this
596
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
597
- */
598
- 'created_at.on_or_after'?: string;
599
-
600
- /**
601
- * Return results on or before this
602
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
603
- */
604
- 'created_at.on_or_before'?: string;
518
+ created_at?: PendingTransactionListParams.CreatedAt;
605
519
 
606
520
  /**
607
521
  * Filter pending transactions to those belonging to the specified Route.
@@ -613,26 +527,10 @@ export interface PendingTransactionListParams extends PageParams {
613
527
  */
614
528
  source_id?: string;
615
529
 
616
- /**
617
- * Filter Pending Transactions for those with the specified status. By default only
618
- * Pending Transactions in with status `pending` will be returned. For GET
619
- * requests, this should be encoded as a comma-delimited string, such as
620
- * `?in=one,two,three`.
621
- */
622
- 'status.in'?: Array<'pending' | 'complete'>;
530
+ status?: PendingTransactionListParams.Status;
623
531
  }
624
532
 
625
533
  export namespace PendingTransactionListParams {
626
- export interface Status {
627
- /**
628
- * Filter Pending Transactions for those with the specified status. By default only
629
- * Pending Transactions in with status `pending` will be returned. For GET
630
- * requests, this should be encoded as a comma-delimited string, such as
631
- * `?in=one,two,three`.
632
- */
633
- in?: Array<'pending' | 'complete'>;
634
- }
635
-
636
534
  export interface CreatedAt {
637
535
  /**
638
536
  * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
@@ -658,4 +556,14 @@ export namespace PendingTransactionListParams {
658
556
  */
659
557
  on_or_before?: string;
660
558
  }
559
+
560
+ export interface Status {
561
+ /**
562
+ * Filter Pending Transactions for those with the specified status. By default only
563
+ * Pending Transactions in with status `pending` will be returned. For GET
564
+ * requests, this should be encoded as a comma-delimited string, such as
565
+ * `?in=one,two,three`.
566
+ */
567
+ in?: Array<'pending' | 'complete'>;
568
+ }
661
569
  }