increase 0.59.1 → 0.60.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 (299) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +41 -17
  3. package/error.d.ts.map +1 -1
  4. package/error.js +0 -3
  5. package/error.js.map +1 -1
  6. package/error.mjs +0 -3
  7. package/error.mjs.map +1 -1
  8. package/index.d.mts +190 -172
  9. package/index.d.ts +190 -172
  10. package/index.d.ts.map +1 -1
  11. package/index.js +96 -87
  12. package/index.js.map +1 -1
  13. package/index.mjs +96 -87
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/cards.d.ts +1 -1
  17. package/resources/cards.d.ts.map +1 -1
  18. package/resources/cards.js +1 -1
  19. package/resources/cards.js.map +1 -1
  20. package/resources/cards.mjs +1 -1
  21. package/resources/cards.mjs.map +1 -1
  22. package/resources/declined-transactions.d.ts +2 -231
  23. package/resources/declined-transactions.d.ts.map +1 -1
  24. package/resources/declined-transactions.js.map +1 -1
  25. package/resources/declined-transactions.mjs.map +1 -1
  26. package/resources/{entities/entities.d.ts → entities.d.ts} +276 -46
  27. package/resources/entities.d.ts.map +1 -0
  28. package/resources/{entities/entities.js → entities.js} +28 -17
  29. package/resources/entities.js.map +1 -0
  30. package/resources/{entities/entities.mjs → entities.mjs} +28 -17
  31. package/resources/entities.mjs.map +1 -0
  32. package/resources/groups.d.ts +1 -1
  33. package/resources/groups.d.ts.map +1 -1
  34. package/resources/groups.js +1 -1
  35. package/resources/groups.js.map +1 -1
  36. package/resources/groups.mjs +1 -1
  37. package/resources/groups.mjs.map +1 -1
  38. package/resources/inbound-ach-transfers.d.ts +218 -7
  39. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  40. package/resources/inbound-ach-transfers.js +8 -8
  41. package/resources/inbound-ach-transfers.js.map +1 -1
  42. package/resources/inbound-ach-transfers.mjs +8 -8
  43. package/resources/inbound-ach-transfers.mjs.map +1 -1
  44. package/resources/inbound-check-deposits.d.ts +25 -1
  45. package/resources/inbound-check-deposits.d.ts.map +1 -1
  46. package/resources/inbound-check-deposits.js +6 -0
  47. package/resources/inbound-check-deposits.js.map +1 -1
  48. package/resources/inbound-check-deposits.mjs +6 -0
  49. package/resources/inbound-check-deposits.mjs.map +1 -1
  50. package/resources/inbound-mail-items.d.ts +0 -14
  51. package/resources/inbound-mail-items.d.ts.map +1 -1
  52. package/resources/inbound-mail-items.js.map +1 -1
  53. package/resources/inbound-mail-items.mjs.map +1 -1
  54. package/resources/inbound-wire-transfers.d.ts +4 -0
  55. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  56. package/resources/inbound-wire-transfers.js.map +1 -1
  57. package/resources/inbound-wire-transfers.mjs.map +1 -1
  58. package/resources/index.d.ts +11 -8
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +15 -6
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +7 -4
  63. package/resources/index.mjs.map +1 -1
  64. package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
  65. package/resources/intrafi-account-enrollments.d.ts.map +1 -0
  66. package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
  67. package/resources/intrafi-account-enrollments.js.map +1 -0
  68. package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
  69. package/resources/intrafi-account-enrollments.mjs.map +1 -0
  70. package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
  71. package/resources/intrafi-balances.d.ts.map +1 -0
  72. package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
  73. package/resources/intrafi-balances.js.map +1 -0
  74. package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
  75. package/resources/intrafi-balances.mjs.map +1 -0
  76. package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
  77. package/resources/intrafi-exclusions.d.ts.map +1 -0
  78. package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
  79. package/resources/intrafi-exclusions.js.map +1 -0
  80. package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
  81. package/resources/intrafi-exclusions.mjs.map +1 -0
  82. package/resources/lockboxes.d.ts +0 -14
  83. package/resources/lockboxes.d.ts.map +1 -1
  84. package/resources/lockboxes.js.map +1 -1
  85. package/resources/lockboxes.mjs.map +1 -1
  86. package/resources/routing-numbers.d.ts +5 -5
  87. package/resources/routing-numbers.d.ts.map +1 -1
  88. package/resources/routing-numbers.js +5 -5
  89. package/resources/routing-numbers.js.map +1 -1
  90. package/resources/routing-numbers.mjs +3 -3
  91. package/resources/routing-numbers.mjs.map +1 -1
  92. package/resources/simulations/ach-transfers.d.ts +10 -61
  93. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  94. package/resources/simulations/ach-transfers.js +10 -14
  95. package/resources/simulations/ach-transfers.js.map +1 -1
  96. package/resources/simulations/ach-transfers.mjs +10 -14
  97. package/resources/simulations/ach-transfers.mjs.map +1 -1
  98. package/resources/simulations/card-authorization-expirations.d.ts +20 -0
  99. package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
  100. package/resources/simulations/card-authorization-expirations.js +17 -0
  101. package/resources/simulations/card-authorization-expirations.js.map +1 -0
  102. package/resources/simulations/card-authorization-expirations.mjs +13 -0
  103. package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
  104. package/resources/simulations/card-authorizations.d.ts +91 -0
  105. package/resources/simulations/card-authorizations.d.ts.map +1 -0
  106. package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
  107. package/resources/simulations/card-authorizations.js.map +1 -0
  108. package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
  109. package/resources/simulations/card-authorizations.mjs.map +1 -0
  110. package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
  111. package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
  112. package/resources/simulations/card-fuel-confirmations.js +19 -0
  113. package/resources/simulations/card-fuel-confirmations.js.map +1 -0
  114. package/resources/simulations/card-fuel-confirmations.mjs +15 -0
  115. package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
  116. package/resources/simulations/card-increments.d.ts +32 -0
  117. package/resources/simulations/card-increments.d.ts.map +1 -0
  118. package/resources/simulations/card-increments.js +18 -0
  119. package/resources/simulations/card-increments.js.map +1 -0
  120. package/resources/simulations/card-increments.mjs +14 -0
  121. package/resources/simulations/card-increments.mjs.map +1 -0
  122. package/resources/simulations/card-reversals.d.ts +28 -0
  123. package/resources/simulations/card-reversals.d.ts.map +1 -0
  124. package/resources/simulations/card-reversals.js +20 -0
  125. package/resources/simulations/card-reversals.js.map +1 -0
  126. package/resources/simulations/card-reversals.mjs +16 -0
  127. package/resources/simulations/card-reversals.mjs.map +1 -0
  128. package/resources/simulations/card-settlements.d.ts +34 -0
  129. package/resources/simulations/card-settlements.d.ts.map +1 -0
  130. package/resources/simulations/card-settlements.js +21 -0
  131. package/resources/simulations/card-settlements.js.map +1 -0
  132. package/resources/simulations/card-settlements.mjs +17 -0
  133. package/resources/simulations/card-settlements.mjs.map +1 -0
  134. package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
  135. package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
  136. package/resources/simulations/inbound-ach-transfers.js +26 -0
  137. package/resources/simulations/inbound-ach-transfers.js.map +1 -0
  138. package/resources/simulations/inbound-ach-transfers.mjs +22 -0
  139. package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
  140. package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
  141. package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
  142. package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
  143. package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
  144. package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
  145. package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
  146. package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
  147. package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
  148. package/resources/simulations/inbound-wire-transfers.js +17 -0
  149. package/resources/simulations/inbound-wire-transfers.js.map +1 -0
  150. package/resources/simulations/inbound-wire-transfers.mjs +13 -0
  151. package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
  152. package/resources/simulations/index.d.ts +14 -7
  153. package/resources/simulations/index.d.ts.map +1 -1
  154. package/resources/simulations/index.js +21 -7
  155. package/resources/simulations/index.js.map +1 -1
  156. package/resources/simulations/index.mjs +11 -4
  157. package/resources/simulations/index.mjs.map +1 -1
  158. package/resources/simulations/interest-payments.js +1 -1
  159. package/resources/simulations/interest-payments.js.map +1 -1
  160. package/resources/simulations/interest-payments.mjs +1 -1
  161. package/resources/simulations/interest-payments.mjs.map +1 -1
  162. package/resources/simulations/physical-cards.d.ts +3 -3
  163. package/resources/simulations/physical-cards.js +2 -2
  164. package/resources/simulations/physical-cards.mjs +2 -2
  165. package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
  166. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  167. package/resources/simulations/real-time-payments-transfers.js +0 -7
  168. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  169. package/resources/simulations/real-time-payments-transfers.mjs +0 -7
  170. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  171. package/resources/simulations/simulations.d.ts +67 -118
  172. package/resources/simulations/simulations.d.ts.map +1 -1
  173. package/resources/simulations/simulations.js +45 -54
  174. package/resources/simulations/simulations.js.map +1 -1
  175. package/resources/simulations/simulations.mjs +45 -54
  176. package/resources/simulations/simulations.mjs.map +1 -1
  177. package/resources/simulations/wire-transfers.d.ts +10 -85
  178. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  179. package/resources/simulations/wire-transfers.js +14 -5
  180. package/resources/simulations/wire-transfers.js.map +1 -1
  181. package/resources/simulations/wire-transfers.mjs +14 -5
  182. package/resources/simulations/wire-transfers.mjs.map +1 -1
  183. package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
  184. package/resources/supplemental-documents.d.ts.map +1 -0
  185. package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
  186. package/resources/supplemental-documents.js.map +1 -0
  187. package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
  188. package/resources/supplemental-documents.mjs.map +1 -0
  189. package/resources/transactions.d.ts +6 -276
  190. package/resources/transactions.d.ts.map +1 -1
  191. package/resources/transactions.js.map +1 -1
  192. package/resources/transactions.mjs.map +1 -1
  193. package/resources/wire-transfers.d.ts +4 -13
  194. package/resources/wire-transfers.d.ts.map +1 -1
  195. package/resources/wire-transfers.js +0 -17
  196. package/resources/wire-transfers.js.map +1 -1
  197. package/resources/wire-transfers.mjs +0 -17
  198. package/resources/wire-transfers.mjs.map +1 -1
  199. package/src/error.ts +0 -8
  200. package/src/index.ts +210 -189
  201. package/src/resources/cards.ts +1 -1
  202. package/src/resources/declined-transactions.ts +0 -297
  203. package/src/resources/{entities/entities.ts → entities.ts} +351 -56
  204. package/src/resources/groups.ts +1 -1
  205. package/src/resources/inbound-ach-transfers.ts +288 -13
  206. package/src/resources/inbound-check-deposits.ts +34 -1
  207. package/src/resources/inbound-mail-items.ts +0 -16
  208. package/src/resources/inbound-wire-transfers.ts +5 -0
  209. package/src/resources/index.ts +32 -14
  210. package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
  211. package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
  212. package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
  213. package/src/resources/lockboxes.ts +0 -16
  214. package/src/resources/routing-numbers.ts +6 -6
  215. package/src/resources/simulations/ach-transfers.ts +15 -76
  216. package/src/resources/simulations/card-authorization-expirations.ts +29 -0
  217. package/src/resources/simulations/card-authorizations.ts +112 -0
  218. package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
  219. package/src/resources/simulations/card-increments.ts +43 -0
  220. package/src/resources/simulations/card-reversals.ts +38 -0
  221. package/src/resources/simulations/card-settlements.ts +45 -0
  222. package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
  223. package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
  224. package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
  225. package/src/resources/simulations/index.ts +26 -21
  226. package/src/resources/simulations/interest-payments.ts +1 -1
  227. package/src/resources/simulations/physical-cards.ts +5 -5
  228. package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
  229. package/src/resources/simulations/simulations.ts +80 -157
  230. package/src/resources/simulations/wire-transfers.ts +18 -104
  231. package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
  232. package/src/resources/transactions.ts +5 -350
  233. package/src/resources/wire-transfers.ts +5 -19
  234. package/src/version.ts +1 -1
  235. package/version.d.ts +1 -1
  236. package/version.js +1 -1
  237. package/version.mjs +1 -1
  238. package/resources/entities/beneficial-owners.d.ts +0 -279
  239. package/resources/entities/beneficial-owners.d.ts.map +0 -1
  240. package/resources/entities/beneficial-owners.js +0 -29
  241. package/resources/entities/beneficial-owners.js.map +0 -1
  242. package/resources/entities/beneficial-owners.mjs +0 -25
  243. package/resources/entities/beneficial-owners.mjs.map +0 -1
  244. package/resources/entities/entities.d.ts.map +0 -1
  245. package/resources/entities/entities.js.map +0 -1
  246. package/resources/entities/entities.mjs.map +0 -1
  247. package/resources/entities/index.d.ts +0 -5
  248. package/resources/entities/index.d.ts.map +0 -1
  249. package/resources/entities/index.js +0 -15
  250. package/resources/entities/index.js.map +0 -1
  251. package/resources/entities/index.mjs +0 -6
  252. package/resources/entities/index.mjs.map +0 -1
  253. package/resources/entities/industry-code.d.ts +0 -23
  254. package/resources/entities/industry-code.d.ts.map +0 -1
  255. package/resources/entities/industry-code.js +0 -17
  256. package/resources/entities/industry-code.js.map +0 -1
  257. package/resources/entities/industry-code.mjs +0 -13
  258. package/resources/entities/industry-code.mjs.map +0 -1
  259. package/resources/entities/supplemental-documents.d.ts.map +0 -1
  260. package/resources/entities/supplemental-documents.js.map +0 -1
  261. package/resources/entities/supplemental-documents.mjs.map +0 -1
  262. package/resources/intrafi/account-enrollments.d.ts.map +0 -1
  263. package/resources/intrafi/account-enrollments.js.map +0 -1
  264. package/resources/intrafi/account-enrollments.mjs.map +0 -1
  265. package/resources/intrafi/balances.d.ts.map +0 -1
  266. package/resources/intrafi/balances.js.map +0 -1
  267. package/resources/intrafi/balances.mjs.map +0 -1
  268. package/resources/intrafi/exclusions.d.ts.map +0 -1
  269. package/resources/intrafi/exclusions.js.map +0 -1
  270. package/resources/intrafi/exclusions.mjs.map +0 -1
  271. package/resources/intrafi/index.d.ts +0 -5
  272. package/resources/intrafi/index.d.ts.map +0 -1
  273. package/resources/intrafi/index.js +0 -15
  274. package/resources/intrafi/index.js.map +0 -1
  275. package/resources/intrafi/index.mjs +0 -6
  276. package/resources/intrafi/index.mjs.map +0 -1
  277. package/resources/intrafi/intrafi.d.ts +0 -24
  278. package/resources/intrafi/intrafi.d.ts.map +0 -1
  279. package/resources/intrafi/intrafi.js +0 -48
  280. package/resources/intrafi/intrafi.js.map +0 -1
  281. package/resources/intrafi/intrafi.mjs +0 -21
  282. package/resources/intrafi/intrafi.mjs.map +0 -1
  283. package/resources/simulations/cards.d.ts +0 -1763
  284. package/resources/simulations/cards.d.ts.map +0 -1
  285. package/resources/simulations/cards.js.map +0 -1
  286. package/resources/simulations/cards.mjs.map +0 -1
  287. package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
  288. package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
  289. package/resources/simulations/inbound-international-ach-transfers.js +0 -21
  290. package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
  291. package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
  292. package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
  293. package/src/resources/entities/beneficial-owners.ts +0 -346
  294. package/src/resources/entities/index.ts +0 -25
  295. package/src/resources/entities/industry-code.ts +0 -33
  296. package/src/resources/intrafi/index.ts +0 -18
  297. package/src/resources/intrafi/intrafi.ts +0 -29
  298. package/src/resources/simulations/cards.ts +0 -2188
  299. package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
@@ -1,22 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../resource';
4
- import { isRequestOptions } from '../../core';
5
- import * as Core from '../../core';
3
+ import { APIResource } from '../resource';
4
+ import { isRequestOptions } from '../core';
5
+ import * as Core from '../core';
6
6
  import * as EntitiesAPI from './entities';
7
- import * as BeneficialOwnersAPI from './beneficial-owners';
8
- import * as IndustryCodeAPI from './industry-code';
9
7
  import * as SupplementalDocumentsAPI from './supplemental-documents';
10
- import { Page, type PageParams } from '../../pagination';
8
+ import { Page, type PageParams } from '../pagination';
11
9
 
12
10
  export class Entities extends APIResource {
13
- beneficialOwners: BeneficialOwnersAPI.BeneficialOwners = new BeneficialOwnersAPI.BeneficialOwners(
14
- this._client,
15
- );
16
- supplementalDocuments: SupplementalDocumentsAPI.SupplementalDocuments =
17
- new SupplementalDocumentsAPI.SupplementalDocuments(this._client);
18
- industryCode: IndustryCodeAPI.IndustryCode = new IndustryCodeAPI.IndustryCode(this._client);
19
-
20
11
  /**
21
12
  * Create an Entity
22
13
  */
@@ -53,6 +44,17 @@ export class Entities extends APIResource {
53
44
  return this._client.post(`/entities/${entityId}/archive`, options);
54
45
  }
55
46
 
47
+ /**
48
+ * Archive a beneficial owner for a corporate Entity
49
+ */
50
+ archiveBeneficialOwner(
51
+ entityId: string,
52
+ body: EntityArchiveBeneficialOwnerParams,
53
+ options?: Core.RequestOptions,
54
+ ): Core.APIPromise<Entity> {
55
+ return this._client.post(`/entities/${entityId}/archive_beneficial_owner`, { body, ...options });
56
+ }
57
+
56
58
  /**
57
59
  * Depending on your program, you may be required to re-confirm an Entity's details
58
60
  * on a recurring basis. After making any required updates, call this endpoint to
@@ -66,6 +68,17 @@ export class Entities extends APIResource {
66
68
  return this._client.post(`/entities/${entityId}/confirm`, { body, ...options });
67
69
  }
68
70
 
71
+ /**
72
+ * Create a beneficial owner for a corporate Entity
73
+ */
74
+ createBeneficialOwner(
75
+ entityId: string,
76
+ body: EntityCreateBeneficialOwnerParams,
77
+ options?: Core.RequestOptions,
78
+ ): Core.APIPromise<Entity> {
79
+ return this._client.post(`/entities/${entityId}/create_beneficial_owner`, { body, ...options });
80
+ }
81
+
69
82
  /**
70
83
  * Update a Natural Person or Corporation's address
71
84
  */
@@ -74,7 +87,29 @@ export class Entities extends APIResource {
74
87
  body: EntityUpdateAddressParams,
75
88
  options?: Core.RequestOptions,
76
89
  ): Core.APIPromise<Entity> {
77
- return this._client.post(`/entities/${entityId}/address`, { body, ...options });
90
+ return this._client.post(`/entities/${entityId}/update_address`, { body, ...options });
91
+ }
92
+
93
+ /**
94
+ * Update the address for a beneficial owner belonging to a corporate Entity
95
+ */
96
+ updateBeneficialOwnerAddress(
97
+ entityId: string,
98
+ body: EntityUpdateBeneficialOwnerAddressParams,
99
+ options?: Core.RequestOptions,
100
+ ): Core.APIPromise<Entity> {
101
+ return this._client.post(`/entities/${entityId}/update_beneficial_owner_address`, { body, ...options });
102
+ }
103
+
104
+ /**
105
+ * Update the industry code for a corporate Entity
106
+ */
107
+ updateIndustryCode(
108
+ entityId: string,
109
+ body: EntityUpdateIndustryCodeParams,
110
+ options?: Core.RequestOptions,
111
+ ): Core.APIPromise<Entity> {
112
+ return this._client.post(`/entities/${entityId}/update_industry_code`, { body, ...options });
78
113
  }
79
114
  }
80
115
 
@@ -164,7 +199,7 @@ export interface Entity {
164
199
  * first 10 documents for an entity. If an entity has more than 10 documents, use
165
200
  * the GET /entity_supplemental_documents list endpoint to retrieve them.
166
201
  */
167
- supplemental_documents: Array<Entity.SupplementalDocument>;
202
+ supplemental_documents: Array<SupplementalDocumentsAPI.EntitySupplementalDocument>;
168
203
 
169
204
  /**
170
205
  * Details of the trust entity. Will be present if `structure` is equal to `trust`.
@@ -641,36 +676,6 @@ export namespace Entity {
641
676
  }
642
677
  }
643
678
 
644
- /**
645
- * Supplemental Documents are uploaded files connected to an Entity during
646
- * onboarding.
647
- */
648
- export interface SupplementalDocument {
649
- /**
650
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
651
- * Supplemental Document was created.
652
- */
653
- created_at: string;
654
-
655
- /**
656
- * The File containing the document.
657
- */
658
- file_id: string;
659
-
660
- /**
661
- * The idempotency key you chose for this object. This value is unique across
662
- * Increase and is used to ensure that a request is only processed once. Learn more
663
- * about [idempotency](https://increase.com/documentation/idempotency-keys).
664
- */
665
- idempotency_key: string | null;
666
-
667
- /**
668
- * A constant representing the object's type. For this resource it will always be
669
- * `entity_supplemental_document`.
670
- */
671
- type: 'entity_supplemental_document';
672
- }
673
-
674
679
  /**
675
680
  * Details of the trust entity. Will be present if `structure` is equal to `trust`.
676
681
  */
@@ -2345,6 +2350,14 @@ export namespace EntityListParams {
2345
2350
  }
2346
2351
  }
2347
2352
 
2353
+ export interface EntityArchiveBeneficialOwnerParams {
2354
+ /**
2355
+ * The identifying details of anyone controlling or owning 25% or more of the
2356
+ * corporation.
2357
+ */
2358
+ beneficial_owner_id: string;
2359
+ }
2360
+
2348
2361
  export interface EntityConfirmParams {
2349
2362
  /**
2350
2363
  * When your user confirmed the Entity's details. If not provided, the current time
@@ -2353,6 +2366,237 @@ export interface EntityConfirmParams {
2353
2366
  confirmed_at?: string;
2354
2367
  }
2355
2368
 
2369
+ export interface EntityCreateBeneficialOwnerParams {
2370
+ /**
2371
+ * The identifying details of anyone controlling or owning 25% or more of the
2372
+ * corporation.
2373
+ */
2374
+ beneficial_owner: EntityCreateBeneficialOwnerParams.BeneficialOwner;
2375
+ }
2376
+
2377
+ export namespace EntityCreateBeneficialOwnerParams {
2378
+ /**
2379
+ * The identifying details of anyone controlling or owning 25% or more of the
2380
+ * corporation.
2381
+ */
2382
+ export interface BeneficialOwner {
2383
+ /**
2384
+ * Personal details for the beneficial owner.
2385
+ */
2386
+ individual: BeneficialOwner.Individual;
2387
+
2388
+ /**
2389
+ * Why this person is considered a beneficial owner of the entity. At least one
2390
+ * option is required, if a person is both a control person and owner, submit an
2391
+ * array containing both.
2392
+ */
2393
+ prongs: Array<'ownership' | 'control'>;
2394
+
2395
+ /**
2396
+ * This person's role or title within the entity.
2397
+ */
2398
+ company_title?: string;
2399
+ }
2400
+
2401
+ export namespace BeneficialOwner {
2402
+ /**
2403
+ * Personal details for the beneficial owner.
2404
+ */
2405
+ export interface Individual {
2406
+ /**
2407
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2408
+ * PMB's are disallowed.
2409
+ */
2410
+ address: Individual.Address;
2411
+
2412
+ /**
2413
+ * The person's date of birth in YYYY-MM-DD format.
2414
+ */
2415
+ date_of_birth: string;
2416
+
2417
+ /**
2418
+ * A means of verifying the person's identity.
2419
+ */
2420
+ identification: Individual.Identification;
2421
+
2422
+ /**
2423
+ * The person's legal name.
2424
+ */
2425
+ name: string;
2426
+
2427
+ /**
2428
+ * The identification method for an individual can only be a passport, driver's
2429
+ * license, or other document if you've confirmed the individual does not have a US
2430
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
2431
+ * Number).
2432
+ */
2433
+ confirmed_no_us_tax_id?: boolean;
2434
+ }
2435
+
2436
+ export namespace Individual {
2437
+ /**
2438
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2439
+ * PMB's are disallowed.
2440
+ */
2441
+ export interface Address {
2442
+ /**
2443
+ * The city of the address.
2444
+ */
2445
+ city: string;
2446
+
2447
+ /**
2448
+ * The first line of the address. This is usually the street number and street.
2449
+ */
2450
+ line1: string;
2451
+
2452
+ /**
2453
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2454
+ * the address.
2455
+ */
2456
+ state: string;
2457
+
2458
+ /**
2459
+ * The ZIP code of the address.
2460
+ */
2461
+ zip: string;
2462
+
2463
+ /**
2464
+ * The second line of the address. This might be the floor or room number.
2465
+ */
2466
+ line2?: string;
2467
+ }
2468
+
2469
+ /**
2470
+ * A means of verifying the person's identity.
2471
+ */
2472
+ export interface Identification {
2473
+ /**
2474
+ * A method that can be used to verify the individual's identity.
2475
+ *
2476
+ * - `social_security_number` - A social security number.
2477
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
2478
+ * identification number (ITIN).
2479
+ * - `passport` - A passport number.
2480
+ * - `drivers_license` - A driver's license number.
2481
+ * - `other` - Another identifying document.
2482
+ */
2483
+ method:
2484
+ | 'social_security_number'
2485
+ | 'individual_taxpayer_identification_number'
2486
+ | 'passport'
2487
+ | 'drivers_license'
2488
+ | 'other';
2489
+
2490
+ /**
2491
+ * An identification number that can be used to verify the individual's identity,
2492
+ * such as a social security number.
2493
+ */
2494
+ number: string;
2495
+
2496
+ /**
2497
+ * Information about the United States driver's license used for identification.
2498
+ * Required if `method` is equal to `drivers_license`.
2499
+ */
2500
+ drivers_license?: Identification.DriversLicense;
2501
+
2502
+ /**
2503
+ * Information about the identification document provided. Required if `method` is
2504
+ * equal to `other`.
2505
+ */
2506
+ other?: Identification.Other;
2507
+
2508
+ /**
2509
+ * Information about the passport used for identification. Required if `method` is
2510
+ * equal to `passport`.
2511
+ */
2512
+ passport?: Identification.Passport;
2513
+ }
2514
+
2515
+ export namespace Identification {
2516
+ /**
2517
+ * Information about the United States driver's license used for identification.
2518
+ * Required if `method` is equal to `drivers_license`.
2519
+ */
2520
+ export interface DriversLicense {
2521
+ /**
2522
+ * The driver's license's expiration date in YYYY-MM-DD format.
2523
+ */
2524
+ expiration_date: string;
2525
+
2526
+ /**
2527
+ * The identifier of the File containing the front of the driver's license.
2528
+ */
2529
+ file_id: string;
2530
+
2531
+ /**
2532
+ * The state that issued the provided driver's license.
2533
+ */
2534
+ state: string;
2535
+
2536
+ /**
2537
+ * The identifier of the File containing the back of the driver's license.
2538
+ */
2539
+ back_file_id?: string;
2540
+ }
2541
+
2542
+ /**
2543
+ * Information about the identification document provided. Required if `method` is
2544
+ * equal to `other`.
2545
+ */
2546
+ export interface Other {
2547
+ /**
2548
+ * The two-character ISO 3166-1 code representing the country that issued the
2549
+ * document.
2550
+ */
2551
+ country: string;
2552
+
2553
+ /**
2554
+ * A description of the document submitted.
2555
+ */
2556
+ description: string;
2557
+
2558
+ /**
2559
+ * The identifier of the File containing the front of the document.
2560
+ */
2561
+ file_id: string;
2562
+
2563
+ /**
2564
+ * The identifier of the File containing the back of the document. Not every
2565
+ * document has a reverse side.
2566
+ */
2567
+ back_file_id?: string;
2568
+
2569
+ /**
2570
+ * The document's expiration date in YYYY-MM-DD format.
2571
+ */
2572
+ expiration_date?: string;
2573
+ }
2574
+
2575
+ /**
2576
+ * Information about the passport used for identification. Required if `method` is
2577
+ * equal to `passport`.
2578
+ */
2579
+ export interface Passport {
2580
+ /**
2581
+ * The country that issued the passport.
2582
+ */
2583
+ country: string;
2584
+
2585
+ /**
2586
+ * The passport's expiration date in YYYY-MM-DD format.
2587
+ */
2588
+ expiration_date: string;
2589
+
2590
+ /**
2591
+ * The identifier of the File containing the passport.
2592
+ */
2593
+ file_id: string;
2594
+ }
2595
+ }
2596
+ }
2597
+ }
2598
+ }
2599
+
2356
2600
  export interface EntityUpdateAddressParams {
2357
2601
  /**
2358
2602
  * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
@@ -2395,22 +2639,73 @@ export namespace EntityUpdateAddressParams {
2395
2639
  }
2396
2640
  }
2397
2641
 
2642
+ export interface EntityUpdateBeneficialOwnerAddressParams {
2643
+ /**
2644
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2645
+ * PMB's are disallowed.
2646
+ */
2647
+ address: EntityUpdateBeneficialOwnerAddressParams.Address;
2648
+
2649
+ /**
2650
+ * The identifying details of anyone controlling or owning 25% or more of the
2651
+ * corporation.
2652
+ */
2653
+ beneficial_owner_id: string;
2654
+ }
2655
+
2656
+ export namespace EntityUpdateBeneficialOwnerAddressParams {
2657
+ /**
2658
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2659
+ * PMB's are disallowed.
2660
+ */
2661
+ export interface Address {
2662
+ /**
2663
+ * The city of the address.
2664
+ */
2665
+ city: string;
2666
+
2667
+ /**
2668
+ * The first line of the address. This is usually the street number and street.
2669
+ */
2670
+ line1: string;
2671
+
2672
+ /**
2673
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2674
+ * the address.
2675
+ */
2676
+ state: string;
2677
+
2678
+ /**
2679
+ * The ZIP code of the address.
2680
+ */
2681
+ zip: string;
2682
+
2683
+ /**
2684
+ * The second line of the address. This might be the floor or room number.
2685
+ */
2686
+ line2?: string;
2687
+ }
2688
+ }
2689
+
2690
+ export interface EntityUpdateIndustryCodeParams {
2691
+ /**
2692
+ * The North American Industry Classification System (NAICS) code for the
2693
+ * corporation's primary line of business. This is a number, like `5132` for
2694
+ * `Software Publishers`. A full list of classification codes is available
2695
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
2696
+ */
2697
+ industry_code: string;
2698
+ }
2699
+
2398
2700
  export namespace Entities {
2399
2701
  export import Entity = EntitiesAPI.Entity;
2400
2702
  export import EntitiesPage = EntitiesAPI.EntitiesPage;
2401
2703
  export import EntityCreateParams = EntitiesAPI.EntityCreateParams;
2402
2704
  export import EntityListParams = EntitiesAPI.EntityListParams;
2705
+ export import EntityArchiveBeneficialOwnerParams = EntitiesAPI.EntityArchiveBeneficialOwnerParams;
2403
2706
  export import EntityConfirmParams = EntitiesAPI.EntityConfirmParams;
2707
+ export import EntityCreateBeneficialOwnerParams = EntitiesAPI.EntityCreateBeneficialOwnerParams;
2404
2708
  export import EntityUpdateAddressParams = EntitiesAPI.EntityUpdateAddressParams;
2405
- export import BeneficialOwners = BeneficialOwnersAPI.BeneficialOwners;
2406
- export import BeneficialOwnerCreateParams = BeneficialOwnersAPI.BeneficialOwnerCreateParams;
2407
- export import BeneficialOwnerArchiveParams = BeneficialOwnersAPI.BeneficialOwnerArchiveParams;
2408
- export import BeneficialOwnerUpdateAddressParams = BeneficialOwnersAPI.BeneficialOwnerUpdateAddressParams;
2409
- export import SupplementalDocuments = SupplementalDocumentsAPI.SupplementalDocuments;
2410
- export import SupplementalDocument = SupplementalDocumentsAPI.SupplementalDocument;
2411
- export import SupplementalDocumentsPage = SupplementalDocumentsAPI.SupplementalDocumentsPage;
2412
- export import SupplementalDocumentCreateParams = SupplementalDocumentsAPI.SupplementalDocumentCreateParams;
2413
- export import SupplementalDocumentListParams = SupplementalDocumentsAPI.SupplementalDocumentListParams;
2414
- export import IndustryCode = IndustryCodeAPI.IndustryCode;
2415
- export import IndustryCodeCreateParams = IndustryCodeAPI.IndustryCodeCreateParams;
2709
+ export import EntityUpdateBeneficialOwnerAddressParams = EntitiesAPI.EntityUpdateBeneficialOwnerAddressParams;
2710
+ export import EntityUpdateIndustryCodeParams = EntitiesAPI.EntityUpdateIndustryCodeParams;
2416
2711
  }
@@ -8,7 +8,7 @@ export class Groups extends APIResource {
8
8
  /**
9
9
  * Returns details for the currently authenticated Group.
10
10
  */
11
- retrieveDetails(options?: Core.RequestOptions): Core.APIPromise<Group> {
11
+ retrieve(options?: Core.RequestOptions): Core.APIPromise<Group> {
12
12
  return this._client.get('/groups/current', options);
13
13
  }
14
14
  }