@rippling/rippling-sdk 0.2.0-alpha.110 → 0.2.0-alpha.112

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 (579) hide show
  1. package/client.d.mts +58 -7
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +58 -7
  4. package/client.d.ts.map +1 -1
  5. package/client.js +54 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +54 -3
  8. package/client.mjs.map +1 -1
  9. package/core/platform/custom-objects/manager.d.mts +43 -23
  10. package/core/platform/custom-objects/manager.d.mts.map +1 -1
  11. package/core/platform/custom-objects/manager.d.ts +43 -23
  12. package/core/platform/custom-objects/manager.d.ts.map +1 -1
  13. package/core/platform/custom-objects/manager.js +21 -17
  14. package/core/platform/custom-objects/manager.js.map +1 -1
  15. package/core/platform/custom-objects/manager.mjs +21 -17
  16. package/core/platform/custom-objects/manager.mjs.map +1 -1
  17. package/core/platform/custom-objects.d.mts +1 -1
  18. package/core/platform/custom-objects.d.mts.map +1 -1
  19. package/core/platform/custom-objects.d.ts +1 -1
  20. package/core/platform/custom-objects.d.ts.map +1 -1
  21. package/core/platform/custom-objects.js.map +1 -1
  22. package/core/platform/custom-objects.mjs.map +1 -1
  23. package/examples/manifest/acp-agent/acp-agent.ts +27 -23
  24. package/lib/manifest/acp-agent.d.mts +1 -1
  25. package/lib/manifest/acp-agent.d.mts.map +1 -1
  26. package/lib/manifest/acp-agent.d.ts +1 -1
  27. package/lib/manifest/acp-agent.d.ts.map +1 -1
  28. package/lib/manifest/acp-agent.js +6 -0
  29. package/lib/manifest/acp-agent.js.map +1 -1
  30. package/lib/manifest/acp-agent.mjs +6 -0
  31. package/lib/manifest/acp-agent.mjs.map +1 -1
  32. package/lib/manifest/definitions/_object-records.d.mts.map +1 -1
  33. package/lib/manifest/definitions/_object-records.d.ts.map +1 -1
  34. package/lib/manifest/definitions/_object-records.js +10 -8
  35. package/lib/manifest/definitions/_object-records.js.map +1 -1
  36. package/lib/manifest/definitions/_object-records.mjs +10 -8
  37. package/lib/manifest/definitions/_object-records.mjs.map +1 -1
  38. package/lib/manifest/definitions/custom-object.d.mts +10 -10
  39. package/lib/manifest/definitions/custom-object.d.mts.map +1 -1
  40. package/lib/manifest/definitions/custom-object.d.ts +10 -10
  41. package/lib/manifest/definitions/custom-object.d.ts.map +1 -1
  42. package/lib/manifest/definitions/custom-object.js.map +1 -1
  43. package/lib/manifest/definitions/custom-object.mjs.map +1 -1
  44. package/package.json +1 -1
  45. package/resources/activity-log.d.mts +1 -1
  46. package/resources/activity-log.d.ts +1 -1
  47. package/resources/activity-log.js +1 -1
  48. package/resources/activity-log.mjs +1 -1
  49. package/resources/agents/sessions/messages.d.mts +10 -1
  50. package/resources/agents/sessions/messages.d.mts.map +1 -1
  51. package/resources/agents/sessions/messages.d.ts +10 -1
  52. package/resources/agents/sessions/messages.d.ts.map +1 -1
  53. package/resources/agents/sessions/sessions.d.mts +30 -3
  54. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  55. package/resources/agents/sessions/sessions.d.ts +30 -3
  56. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  57. package/resources/agents/sessions/sessions.js.map +1 -1
  58. package/resources/agents/sessions/sessions.mjs.map +1 -1
  59. package/resources/bills.d.mts +1343 -0
  60. package/resources/bills.d.mts.map +1 -0
  61. package/resources/bills.d.ts +1343 -0
  62. package/resources/bills.d.ts.map +1 -0
  63. package/resources/bills.js +214 -0
  64. package/resources/bills.js.map +1 -0
  65. package/resources/bills.mjs +210 -0
  66. package/resources/bills.mjs.map +1 -0
  67. package/resources/card-transactions.d.mts +607 -49
  68. package/resources/card-transactions.d.mts.map +1 -1
  69. package/resources/card-transactions.d.ts +607 -49
  70. package/resources/card-transactions.d.ts.map +1 -1
  71. package/resources/card-transactions.js +73 -12
  72. package/resources/card-transactions.js.map +1 -1
  73. package/resources/card-transactions.mjs +73 -12
  74. package/resources/card-transactions.mjs.map +1 -1
  75. package/resources/custom-objects/custom-objects.d.mts +39 -3
  76. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  77. package/resources/custom-objects/custom-objects.d.ts +39 -3
  78. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  79. package/resources/custom-objects/custom-objects.js +38 -2
  80. package/resources/custom-objects/custom-objects.js.map +1 -1
  81. package/resources/custom-objects/custom-objects.mjs +38 -2
  82. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  83. package/resources/custom-objects/fields.d.mts +44 -0
  84. package/resources/custom-objects/fields.d.mts.map +1 -1
  85. package/resources/custom-objects/fields.d.ts +44 -0
  86. package/resources/custom-objects/fields.d.ts.map +1 -1
  87. package/resources/custom-objects/fields.js +44 -0
  88. package/resources/custom-objects/fields.js.map +1 -1
  89. package/resources/custom-objects/fields.mjs +44 -0
  90. package/resources/custom-objects/fields.mjs.map +1 -1
  91. package/resources/custom-objects/index.d.mts +2 -1
  92. package/resources/custom-objects/index.d.mts.map +1 -1
  93. package/resources/custom-objects/index.d.ts +2 -1
  94. package/resources/custom-objects/index.d.ts.map +1 -1
  95. package/resources/custom-objects/index.js +5 -3
  96. package/resources/custom-objects/index.js.map +1 -1
  97. package/resources/custom-objects/index.mjs +2 -1
  98. package/resources/custom-objects/index.mjs.map +1 -1
  99. package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
  100. package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
  101. package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
  102. package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
  103. package/resources/custom-objects/list-views/capabilities.js +48 -0
  104. package/resources/custom-objects/list-views/capabilities.js.map +1 -0
  105. package/resources/custom-objects/list-views/capabilities.mjs +44 -0
  106. package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
  107. package/resources/custom-objects/list-views/default.d.mts +69 -0
  108. package/resources/custom-objects/list-views/default.d.mts.map +1 -0
  109. package/resources/custom-objects/list-views/default.d.ts +69 -0
  110. package/resources/custom-objects/list-views/default.d.ts.map +1 -0
  111. package/resources/custom-objects/list-views/default.js +59 -0
  112. package/resources/custom-objects/list-views/default.js.map +1 -0
  113. package/resources/custom-objects/list-views/default.mjs +55 -0
  114. package/resources/custom-objects/list-views/default.mjs.map +1 -0
  115. package/resources/custom-objects/list-views/index.d.mts +4 -0
  116. package/resources/custom-objects/list-views/index.d.mts.map +1 -0
  117. package/resources/custom-objects/list-views/index.d.ts +4 -0
  118. package/resources/custom-objects/list-views/index.d.ts.map +1 -0
  119. package/resources/custom-objects/list-views/index.js +11 -0
  120. package/resources/custom-objects/list-views/index.js.map +1 -0
  121. package/resources/custom-objects/list-views/index.mjs +5 -0
  122. package/resources/custom-objects/list-views/index.mjs.map +1 -0
  123. package/resources/custom-objects/list-views/list-views.d.mts +806 -0
  124. package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
  125. package/resources/custom-objects/list-views/list-views.d.ts +806 -0
  126. package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
  127. package/resources/custom-objects/list-views/list-views.js +314 -0
  128. package/resources/custom-objects/list-views/list-views.js.map +1 -0
  129. package/resources/custom-objects/list-views/list-views.mjs +309 -0
  130. package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
  131. package/resources/custom-objects/list-views.d.mts +2 -0
  132. package/resources/custom-objects/list-views.d.mts.map +1 -0
  133. package/resources/custom-objects/list-views.d.ts +2 -0
  134. package/resources/custom-objects/list-views.d.ts.map +1 -0
  135. package/resources/custom-objects/list-views.js +6 -0
  136. package/resources/custom-objects/list-views.js.map +1 -0
  137. package/resources/custom-objects/list-views.mjs +3 -0
  138. package/resources/custom-objects/list-views.mjs.map +1 -0
  139. package/resources/custom-objects/records/capabilities.d.mts +61 -0
  140. package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
  141. package/resources/custom-objects/records/capabilities.d.ts +61 -0
  142. package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
  143. package/resources/custom-objects/records/capabilities.js +47 -0
  144. package/resources/custom-objects/records/capabilities.js.map +1 -0
  145. package/resources/custom-objects/records/capabilities.mjs +43 -0
  146. package/resources/custom-objects/records/capabilities.mjs.map +1 -0
  147. package/resources/custom-objects/records/index.d.mts +3 -0
  148. package/resources/custom-objects/records/index.d.mts.map +1 -0
  149. package/resources/custom-objects/records/index.d.ts +3 -0
  150. package/resources/custom-objects/records/index.d.ts.map +1 -0
  151. package/resources/custom-objects/records/index.js +9 -0
  152. package/resources/custom-objects/records/index.js.map +1 -0
  153. package/resources/custom-objects/records/index.mjs +4 -0
  154. package/resources/custom-objects/records/index.mjs.map +1 -0
  155. package/resources/custom-objects/records/records.d.mts +787 -0
  156. package/resources/custom-objects/records/records.d.mts.map +1 -0
  157. package/resources/custom-objects/records/records.d.ts +787 -0
  158. package/resources/custom-objects/records/records.d.ts.map +1 -0
  159. package/resources/custom-objects/records/records.js +543 -0
  160. package/resources/custom-objects/records/records.js.map +1 -0
  161. package/resources/custom-objects/records/records.mjs +538 -0
  162. package/resources/custom-objects/records/records.mjs.map +1 -0
  163. package/resources/custom-objects/records.d.mts +1 -561
  164. package/resources/custom-objects/records.d.mts.map +1 -1
  165. package/resources/custom-objects/records.d.ts +1 -561
  166. package/resources/custom-objects/records.d.ts.map +1 -1
  167. package/resources/custom-objects/records.js +2 -444
  168. package/resources/custom-objects/records.js.map +1 -1
  169. package/resources/custom-objects/records.mjs +1 -442
  170. package/resources/custom-objects/records.mjs.map +1 -1
  171. package/resources/devices.d.mts +2 -2
  172. package/resources/devices.d.mts.map +1 -1
  173. package/resources/devices.d.ts +2 -2
  174. package/resources/devices.d.ts.map +1 -1
  175. package/resources/draft-transitions.d.mts +241 -307
  176. package/resources/draft-transitions.d.mts.map +1 -1
  177. package/resources/draft-transitions.d.ts +241 -307
  178. package/resources/draft-transitions.d.ts.map +1 -1
  179. package/resources/draft-transitions.js +49 -23
  180. package/resources/draft-transitions.js.map +1 -1
  181. package/resources/draft-transitions.mjs +49 -23
  182. package/resources/draft-transitions.mjs.map +1 -1
  183. package/resources/employee-documents.d.mts +2 -2
  184. package/resources/employee-documents.d.ts +2 -2
  185. package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
  186. package/resources/finance-categories.d.mts.map +1 -0
  187. package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
  188. package/resources/finance-categories.d.ts.map +1 -0
  189. package/resources/{spend-categories.js → finance-categories.js} +14 -11
  190. package/resources/finance-categories.js.map +1 -0
  191. package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
  192. package/resources/finance-categories.mjs.map +1 -0
  193. package/resources/finance-vendors.d.mts +154 -0
  194. package/resources/finance-vendors.d.mts.map +1 -0
  195. package/resources/finance-vendors.d.ts +154 -0
  196. package/resources/finance-vendors.d.ts.map +1 -0
  197. package/resources/finance-vendors.js +87 -0
  198. package/resources/finance-vendors.js.map +1 -0
  199. package/resources/finance-vendors.mjs +83 -0
  200. package/resources/finance-vendors.mjs.map +1 -0
  201. package/resources/functions/executions.d.mts +4 -1
  202. package/resources/functions/executions.d.mts.map +1 -1
  203. package/resources/functions/executions.d.ts +4 -1
  204. package/resources/functions/executions.d.ts.map +1 -1
  205. package/resources/functions/executions.js +4 -1
  206. package/resources/functions/executions.js.map +1 -1
  207. package/resources/functions/executions.mjs +4 -1
  208. package/resources/functions/executions.mjs.map +1 -1
  209. package/resources/functions/functions.d.mts +192 -4
  210. package/resources/functions/functions.d.mts.map +1 -1
  211. package/resources/functions/functions.d.ts +192 -4
  212. package/resources/functions/functions.d.ts.map +1 -1
  213. package/resources/functions/functions.js +72 -4
  214. package/resources/functions/functions.js.map +1 -1
  215. package/resources/functions/functions.mjs +72 -4
  216. package/resources/functions/functions.mjs.map +1 -1
  217. package/resources/hire-requirements.d.mts +98 -9
  218. package/resources/hire-requirements.d.mts.map +1 -1
  219. package/resources/hire-requirements.d.ts +98 -9
  220. package/resources/hire-requirements.d.ts.map +1 -1
  221. package/resources/hire-requirements.js +23 -4
  222. package/resources/hire-requirements.js.map +1 -1
  223. package/resources/hire-requirements.mjs +23 -4
  224. package/resources/hire-requirements.mjs.map +1 -1
  225. package/resources/hires.d.mts +1636 -510
  226. package/resources/hires.d.mts.map +1 -1
  227. package/resources/hires.d.ts +1636 -510
  228. package/resources/hires.d.ts.map +1 -1
  229. package/resources/hires.js +10 -4
  230. package/resources/hires.js.map +1 -1
  231. package/resources/hires.mjs +10 -4
  232. package/resources/hires.mjs.map +1 -1
  233. package/resources/index.d.mts +11 -3
  234. package/resources/index.d.mts.map +1 -1
  235. package/resources/index.d.ts +11 -3
  236. package/resources/index.d.ts.map +1 -1
  237. package/resources/index.js +21 -5
  238. package/resources/index.js.map +1 -1
  239. package/resources/index.mjs +9 -1
  240. package/resources/index.mjs.map +1 -1
  241. package/resources/leave-requests.d.mts +11 -2
  242. package/resources/leave-requests.d.mts.map +1 -1
  243. package/resources/leave-requests.d.ts +11 -2
  244. package/resources/leave-requests.d.ts.map +1 -1
  245. package/resources/leave-requests.js +11 -2
  246. package/resources/leave-requests.js.map +1 -1
  247. package/resources/leave-requests.mjs +11 -2
  248. package/resources/leave-requests.mjs.map +1 -1
  249. package/resources/object-categories.d.mts +2 -1
  250. package/resources/object-categories.d.mts.map +1 -1
  251. package/resources/object-categories.d.ts +2 -1
  252. package/resources/object-categories.d.ts.map +1 -1
  253. package/resources/object-categories.js +2 -1
  254. package/resources/object-categories.js.map +1 -1
  255. package/resources/object-categories.mjs +2 -1
  256. package/resources/object-categories.mjs.map +1 -1
  257. package/resources/package-components/extract.d.mts +121 -0
  258. package/resources/package-components/extract.d.mts.map +1 -0
  259. package/resources/package-components/extract.d.ts +121 -0
  260. package/resources/package-components/extract.d.ts.map +1 -0
  261. package/resources/package-components/extract.js +69 -0
  262. package/resources/package-components/extract.js.map +1 -0
  263. package/resources/package-components/extract.mjs +65 -0
  264. package/resources/package-components/extract.mjs.map +1 -0
  265. package/resources/package-components/index.d.mts +4 -0
  266. package/resources/package-components/index.d.mts.map +1 -0
  267. package/resources/package-components/index.d.ts +4 -0
  268. package/resources/package-components/index.d.ts.map +1 -0
  269. package/resources/package-components/index.js +11 -0
  270. package/resources/package-components/index.js.map +1 -0
  271. package/resources/package-components/index.mjs +5 -0
  272. package/resources/package-components/index.mjs.map +1 -0
  273. package/resources/package-components/package-components.d.mts +99 -0
  274. package/resources/package-components/package-components.d.mts.map +1 -0
  275. package/resources/package-components/package-components.d.ts +99 -0
  276. package/resources/package-components/package-components.d.ts.map +1 -0
  277. package/resources/package-components/package-components.js +63 -0
  278. package/resources/package-components/package-components.js.map +1 -0
  279. package/resources/package-components/package-components.mjs +58 -0
  280. package/resources/package-components/package-components.mjs.map +1 -0
  281. package/resources/package-components/types.d.mts +56 -0
  282. package/resources/package-components/types.d.mts.map +1 -0
  283. package/resources/package-components/types.d.ts +56 -0
  284. package/resources/package-components/types.d.ts.map +1 -0
  285. package/resources/package-components/types.js +40 -0
  286. package/resources/package-components/types.js.map +1 -0
  287. package/resources/package-components/types.mjs +36 -0
  288. package/resources/package-components/types.mjs.map +1 -0
  289. package/resources/package-components.d.mts +2 -0
  290. package/resources/package-components.d.mts.map +1 -0
  291. package/resources/package-components.d.ts +2 -0
  292. package/resources/package-components.d.ts.map +1 -0
  293. package/resources/package-components.js +6 -0
  294. package/resources/package-components.js.map +1 -0
  295. package/resources/package-components.mjs +3 -0
  296. package/resources/package-components.mjs.map +1 -0
  297. package/resources/package-installs.d.mts +96 -9
  298. package/resources/package-installs.d.mts.map +1 -1
  299. package/resources/package-installs.d.ts +96 -9
  300. package/resources/package-installs.d.ts.map +1 -1
  301. package/resources/package-installs.js +20 -3
  302. package/resources/package-installs.js.map +1 -1
  303. package/resources/package-installs.mjs +20 -3
  304. package/resources/package-installs.mjs.map +1 -1
  305. package/resources/package-managed-installs.d.mts +104 -7
  306. package/resources/package-managed-installs.d.mts.map +1 -1
  307. package/resources/package-managed-installs.d.ts +104 -7
  308. package/resources/package-managed-installs.d.ts.map +1 -1
  309. package/resources/package-managed-installs.js +22 -3
  310. package/resources/package-managed-installs.js.map +1 -1
  311. package/resources/package-managed-installs.mjs +22 -3
  312. package/resources/package-managed-installs.mjs.map +1 -1
  313. package/resources/package-manifests/index.d.mts +4 -0
  314. package/resources/package-manifests/index.d.mts.map +1 -0
  315. package/resources/package-manifests/index.d.ts +4 -0
  316. package/resources/package-manifests/index.d.ts.map +1 -0
  317. package/resources/package-manifests/index.js +11 -0
  318. package/resources/package-manifests/index.js.map +1 -0
  319. package/resources/package-manifests/index.mjs +5 -0
  320. package/resources/package-manifests/index.mjs.map +1 -0
  321. package/resources/package-manifests/package-manifests.d.mts +14 -0
  322. package/resources/package-manifests/package-manifests.d.mts.map +1 -0
  323. package/resources/package-manifests/package-manifests.d.ts +14 -0
  324. package/resources/package-manifests/package-manifests.d.ts.map +1 -0
  325. package/resources/package-manifests/package-manifests.js +21 -0
  326. package/resources/package-manifests/package-manifests.js.map +1 -0
  327. package/resources/package-manifests/package-manifests.mjs +16 -0
  328. package/resources/package-manifests/package-manifests.mjs.map +1 -0
  329. package/resources/package-manifests/packages/index.d.mts +3 -0
  330. package/resources/package-manifests/packages/index.d.mts.map +1 -0
  331. package/resources/package-manifests/packages/index.d.ts +3 -0
  332. package/resources/package-manifests/packages/index.d.ts.map +1 -0
  333. package/resources/package-manifests/packages/index.js +9 -0
  334. package/resources/package-manifests/packages/index.js.map +1 -0
  335. package/resources/package-manifests/packages/index.mjs +4 -0
  336. package/resources/package-manifests/packages/index.mjs.map +1 -0
  337. package/resources/package-manifests/packages/packages.d.mts +10 -0
  338. package/resources/package-manifests/packages/packages.d.mts.map +1 -0
  339. package/resources/package-manifests/packages/packages.d.ts +10 -0
  340. package/resources/package-manifests/packages/packages.d.ts.map +1 -0
  341. package/resources/package-manifests/packages/packages.js +17 -0
  342. package/resources/package-manifests/packages/packages.js.map +1 -0
  343. package/resources/package-manifests/packages/packages.mjs +12 -0
  344. package/resources/package-manifests/packages/packages.mjs.map +1 -0
  345. package/resources/package-manifests/packages/versions.d.mts +199 -0
  346. package/resources/package-manifests/packages/versions.d.mts.map +1 -0
  347. package/resources/package-manifests/packages/versions.d.ts +199 -0
  348. package/resources/package-manifests/packages/versions.d.ts.map +1 -0
  349. package/resources/package-manifests/packages/versions.js +68 -0
  350. package/resources/package-manifests/packages/versions.js.map +1 -0
  351. package/resources/package-manifests/packages/versions.mjs +64 -0
  352. package/resources/package-manifests/packages/versions.mjs.map +1 -0
  353. package/resources/package-manifests/packages.d.mts +2 -0
  354. package/resources/package-manifests/packages.d.mts.map +1 -0
  355. package/resources/package-manifests/packages.d.ts +2 -0
  356. package/resources/package-manifests/packages.d.ts.map +1 -0
  357. package/resources/package-manifests/packages.js +6 -0
  358. package/resources/package-manifests/packages.js.map +1 -0
  359. package/resources/package-manifests/packages.mjs +3 -0
  360. package/resources/package-manifests/packages.mjs.map +1 -0
  361. package/resources/package-manifests/versions.d.mts +84 -0
  362. package/resources/package-manifests/versions.d.mts.map +1 -0
  363. package/resources/package-manifests/versions.d.ts +84 -0
  364. package/resources/package-manifests/versions.d.ts.map +1 -0
  365. package/resources/package-manifests/versions.js +44 -0
  366. package/resources/package-manifests/versions.js.map +1 -0
  367. package/resources/package-manifests/versions.mjs +40 -0
  368. package/resources/package-manifests/versions.mjs.map +1 -0
  369. package/resources/package-manifests.d.mts +2 -0
  370. package/resources/package-manifests.d.mts.map +1 -0
  371. package/resources/package-manifests.d.ts +2 -0
  372. package/resources/package-manifests.d.ts.map +1 -0
  373. package/resources/package-manifests.js +6 -0
  374. package/resources/package-manifests.js.map +1 -0
  375. package/resources/package-manifests.mjs +3 -0
  376. package/resources/package-manifests.mjs.map +1 -0
  377. package/resources/package-versions/package-versions.d.mts +104 -14
  378. package/resources/package-versions/package-versions.d.mts.map +1 -1
  379. package/resources/package-versions/package-versions.d.ts +104 -14
  380. package/resources/package-versions/package-versions.d.ts.map +1 -1
  381. package/resources/package-versions/package-versions.js +30 -9
  382. package/resources/package-versions/package-versions.js.map +1 -1
  383. package/resources/package-versions/package-versions.mjs +30 -9
  384. package/resources/package-versions/package-versions.mjs.map +1 -1
  385. package/resources/package-versions/publish.d.mts +40 -4
  386. package/resources/package-versions/publish.d.mts.map +1 -1
  387. package/resources/package-versions/publish.d.ts +40 -4
  388. package/resources/package-versions/publish.d.ts.map +1 -1
  389. package/resources/package-versions/publish.js +8 -2
  390. package/resources/package-versions/publish.js.map +1 -1
  391. package/resources/package-versions/publish.mjs +8 -2
  392. package/resources/package-versions/publish.mjs.map +1 -1
  393. package/resources/packages/next-versions.d.mts +40 -4
  394. package/resources/packages/next-versions.d.mts.map +1 -1
  395. package/resources/packages/next-versions.d.ts +40 -4
  396. package/resources/packages/next-versions.d.ts.map +1 -1
  397. package/resources/packages/next-versions.js +8 -2
  398. package/resources/packages/next-versions.js.map +1 -1
  399. package/resources/packages/next-versions.mjs +8 -2
  400. package/resources/packages/next-versions.mjs.map +1 -1
  401. package/resources/packages/versions.d.mts +80 -9
  402. package/resources/packages/versions.d.mts.map +1 -1
  403. package/resources/packages/versions.d.ts +80 -9
  404. package/resources/packages/versions.d.ts.map +1 -1
  405. package/resources/packages/versions.js +16 -5
  406. package/resources/packages/versions.js.map +1 -1
  407. package/resources/packages/versions.mjs +16 -5
  408. package/resources/packages/versions.mjs.map +1 -1
  409. package/resources/payroll-runs/off-cycle.d.mts +17 -9
  410. package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
  411. package/resources/payroll-runs/off-cycle.d.ts +17 -9
  412. package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
  413. package/resources/payroll-runs/off-cycle.js +9 -5
  414. package/resources/payroll-runs/off-cycle.js.map +1 -1
  415. package/resources/payroll-runs/off-cycle.mjs +9 -5
  416. package/resources/payroll-runs/off-cycle.mjs.map +1 -1
  417. package/resources/permissions/index.d.mts +3 -0
  418. package/resources/permissions/index.d.mts.map +1 -0
  419. package/resources/permissions/index.d.ts +3 -0
  420. package/resources/permissions/index.d.ts.map +1 -0
  421. package/resources/permissions/index.js +9 -0
  422. package/resources/permissions/index.js.map +1 -0
  423. package/resources/permissions/index.mjs +4 -0
  424. package/resources/permissions/index.mjs.map +1 -0
  425. package/resources/permissions/permission-profiles.d.mts +43 -0
  426. package/resources/permissions/permission-profiles.d.mts.map +1 -0
  427. package/resources/permissions/permission-profiles.d.ts +43 -0
  428. package/resources/permissions/permission-profiles.d.ts.map +1 -0
  429. package/resources/permissions/permission-profiles.js +36 -0
  430. package/resources/permissions/permission-profiles.js.map +1 -0
  431. package/resources/permissions/permission-profiles.mjs +32 -0
  432. package/resources/permissions/permission-profiles.mjs.map +1 -0
  433. package/resources/permissions/permissions.d.mts +10 -0
  434. package/resources/permissions/permissions.d.mts.map +1 -0
  435. package/resources/permissions/permissions.d.ts +10 -0
  436. package/resources/permissions/permissions.d.ts.map +1 -0
  437. package/resources/permissions/permissions.js +17 -0
  438. package/resources/permissions/permissions.js.map +1 -0
  439. package/resources/permissions/permissions.mjs +12 -0
  440. package/resources/permissions/permissions.mjs.map +1 -0
  441. package/resources/permissions.d.mts +2 -0
  442. package/resources/permissions.d.mts.map +1 -0
  443. package/resources/permissions.d.ts +2 -0
  444. package/resources/permissions.d.ts.map +1 -0
  445. package/resources/permissions.js +6 -0
  446. package/resources/permissions.js.map +1 -0
  447. package/resources/permissions.mjs +3 -0
  448. package/resources/permissions.mjs.map +1 -0
  449. package/resources/record-detail-reference-options.d.mts +110 -0
  450. package/resources/record-detail-reference-options.d.mts.map +1 -0
  451. package/resources/record-detail-reference-options.d.ts +110 -0
  452. package/resources/record-detail-reference-options.d.ts.map +1 -0
  453. package/resources/record-detail-reference-options.js +54 -0
  454. package/resources/record-detail-reference-options.js.map +1 -0
  455. package/resources/record-detail-reference-options.mjs +50 -0
  456. package/resources/record-detail-reference-options.mjs.map +1 -0
  457. package/resources/record-detail-related-records.d.mts +1129 -0
  458. package/resources/record-detail-related-records.d.mts.map +1 -0
  459. package/resources/record-detail-related-records.d.ts +1129 -0
  460. package/resources/record-detail-related-records.d.ts.map +1 -0
  461. package/resources/record-detail-related-records.js +49 -0
  462. package/resources/record-detail-related-records.js.map +1 -0
  463. package/resources/record-detail-related-records.mjs +45 -0
  464. package/resources/record-detail-related-records.mjs.map +1 -0
  465. package/resources/record-details.d.mts +2621 -0
  466. package/resources/record-details.d.mts.map +1 -0
  467. package/resources/record-details.d.ts +2621 -0
  468. package/resources/record-details.d.ts.map +1 -0
  469. package/resources/record-details.js +141 -0
  470. package/resources/record-details.js.map +1 -0
  471. package/resources/record-details.mjs +137 -0
  472. package/resources/record-details.mjs.map +1 -0
  473. package/resources/reimbursements.d.mts +2158 -90
  474. package/resources/reimbursements.d.mts.map +1 -1
  475. package/resources/reimbursements.d.ts +2158 -90
  476. package/resources/reimbursements.d.ts.map +1 -1
  477. package/resources/reimbursements.js +306 -16
  478. package/resources/reimbursements.js.map +1 -1
  479. package/resources/reimbursements.mjs +306 -16
  480. package/resources/reimbursements.mjs.map +1 -1
  481. package/resources/report-runs.d.mts +2 -1
  482. package/resources/report-runs.d.mts.map +1 -1
  483. package/resources/report-runs.d.ts +2 -1
  484. package/resources/report-runs.d.ts.map +1 -1
  485. package/resources/report-runs.js +2 -1
  486. package/resources/report-runs.js.map +1 -1
  487. package/resources/report-runs.mjs +2 -1
  488. package/resources/report-runs.mjs.map +1 -1
  489. package/resources/sandboxes.d.mts +20 -624
  490. package/resources/sandboxes.d.mts.map +1 -1
  491. package/resources/sandboxes.d.ts +20 -624
  492. package/resources/sandboxes.d.ts.map +1 -1
  493. package/resources/sandboxes.js +5 -60
  494. package/resources/sandboxes.js.map +1 -1
  495. package/resources/sandboxes.mjs +5 -60
  496. package/resources/sandboxes.mjs.map +1 -1
  497. package/resources/worker-changes.d.mts +65 -10
  498. package/resources/worker-changes.d.mts.map +1 -1
  499. package/resources/worker-changes.d.ts +65 -10
  500. package/resources/worker-changes.d.ts.map +1 -1
  501. package/resources/worker-changes.js +3 -0
  502. package/resources/worker-changes.js.map +1 -1
  503. package/resources/worker-changes.mjs +3 -0
  504. package/resources/worker-changes.mjs.map +1 -1
  505. package/src/client.ts +160 -17
  506. package/src/core/platform/custom-objects/manager.ts +65 -42
  507. package/src/core/platform/custom-objects.ts +3 -0
  508. package/src/lib/manifest/acp-agent.ts +7 -1
  509. package/src/lib/manifest/definitions/_object-records.ts +17 -10
  510. package/src/lib/manifest/definitions/custom-object.ts +14 -9
  511. package/src/resources/activity-log.ts +1 -1
  512. package/src/resources/agents/sessions/messages.ts +10 -1
  513. package/src/resources/agents/sessions/sessions.ts +30 -3
  514. package/src/resources/bills.ts +1660 -0
  515. package/src/resources/card-transactions.ts +742 -49
  516. package/src/resources/custom-objects/custom-objects.ts +62 -2
  517. package/src/resources/custom-objects/fields.ts +44 -0
  518. package/src/resources/custom-objects/index.ts +13 -1
  519. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  520. package/src/resources/custom-objects/list-views/default.ts +87 -0
  521. package/src/resources/custom-objects/list-views/index.ts +15 -0
  522. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  523. package/src/resources/custom-objects/list-views.ts +3 -0
  524. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  525. package/src/resources/custom-objects/records/index.ts +21 -0
  526. package/src/resources/custom-objects/records/records.ts +955 -0
  527. package/src/resources/custom-objects/records.ts +1 -703
  528. package/src/resources/devices.ts +2 -0
  529. package/src/resources/draft-transitions.ts +276 -347
  530. package/src/resources/employee-documents.ts +2 -2
  531. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  532. package/src/resources/finance-vendors.ts +191 -0
  533. package/src/resources/functions/executions.ts +4 -1
  534. package/src/resources/functions/functions.ts +216 -4
  535. package/src/resources/hire-requirements.ts +107 -9
  536. package/src/resources/hires.ts +1768 -539
  537. package/src/resources/index.ts +53 -7
  538. package/src/resources/leave-requests.ts +11 -2
  539. package/src/resources/object-categories.ts +2 -1
  540. package/src/resources/package-components/extract.ts +139 -0
  541. package/src/resources/package-components/index.ts +10 -0
  542. package/src/resources/package-components/package-components.ts +134 -0
  543. package/src/resources/package-components/types.ts +64 -0
  544. package/src/resources/package-components.ts +3 -0
  545. package/src/resources/package-installs.ts +120 -9
  546. package/src/resources/package-managed-installs.ts +146 -7
  547. package/src/resources/package-manifests/index.ts +5 -0
  548. package/src/resources/package-manifests/package-manifests.ts +21 -0
  549. package/src/resources/package-manifests/packages/index.ts +4 -0
  550. package/src/resources/package-manifests/packages/packages.ts +19 -0
  551. package/src/resources/package-manifests/packages/versions.ts +237 -0
  552. package/src/resources/package-manifests/packages.ts +3 -0
  553. package/src/resources/package-manifests/versions.ts +96 -0
  554. package/src/resources/package-manifests.ts +3 -0
  555. package/src/resources/package-versions/package-versions.ts +117 -14
  556. package/src/resources/package-versions/publish.ts +46 -4
  557. package/src/resources/packages/next-versions.ts +46 -4
  558. package/src/resources/packages/versions.ts +92 -9
  559. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  560. package/src/resources/permissions/index.ts +4 -0
  561. package/src/resources/permissions/permission-profiles.ts +50 -0
  562. package/src/resources/permissions/permissions.ts +20 -0
  563. package/src/resources/permissions.ts +3 -0
  564. package/src/resources/record-detail-reference-options.ts +141 -0
  565. package/src/resources/record-detail-related-records.ts +1457 -0
  566. package/src/resources/record-details.ts +3316 -0
  567. package/src/resources/reimbursements.ts +2591 -126
  568. package/src/resources/report-runs.ts +2 -1
  569. package/src/resources/sandboxes.ts +48 -742
  570. package/src/resources/worker-changes.ts +71 -10
  571. package/src/version.ts +1 -1
  572. package/version.d.mts +1 -1
  573. package/version.d.ts +1 -1
  574. package/version.js +1 -1
  575. package/version.mjs +1 -1
  576. package/resources/spend-categories.d.mts.map +0 -1
  577. package/resources/spend-categories.d.ts.map +0 -1
  578. package/resources/spend-categories.js.map +0 -1
  579. package/resources/spend-categories.mjs.map +0 -1
@@ -2,24 +2,29 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
5
6
  import { APIPromise } from '../core/api-promise';
6
7
  import { PageCursorURL, PagePromise } from '../core/pagination';
7
8
  import { RequestOptions } from '../internal/request-options';
8
9
  import { path } from '../internal/utils/path';
9
10
 
11
+ /**
12
+ * Finance card transactions (posted charges) and authorizations (pending holds)
13
+ */
10
14
  export class CardTransactions extends APIResource {
11
15
  /**
12
16
  * A list of card transactions.
13
17
  *
14
- * - Requires: `Internal Testing`
15
- * - Filterable fields: `worker_id`, `transaction_date`, `entity_id`, `vendor_id`,
16
- * `category_id`, `transaction_type`, `card_id`
18
+ * - Requires: `Spend Management Platform API`
19
+ * - Filterable fields: `worker_id`, `entity_id`, `vendor_id`, `transaction_date`,
20
+ * `transaction_type`, `card_id`
21
+ * - Expandable fields: `worker`, `vendor`
17
22
  * - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
18
23
  *
19
24
  * @example HTTP
20
25
  * Representative request and response shapes.
21
26
  * ```
22
- * GET /card-transactions/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
27
+ * GET /card-transactions/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
23
28
  * Host: rest.ripplingapis.com
24
29
  * Accept: application/json
25
30
  * Rippling-Api-Version: 2024-08-01
@@ -42,6 +47,55 @@ export class CardTransactions extends APIResource {
42
47
  * "created_at": "string",
43
48
  * "updated_at": "string",
44
49
  * "worker_id": "string",
50
+ * "worker": {
51
+ * "id": "string",
52
+ * "created_at": "string",
53
+ * "updated_at": "string",
54
+ * "user_id": "string",
55
+ * "user": {},
56
+ * "is_manager": "string",
57
+ * "manager_id": "string",
58
+ * "manager": {},
59
+ * "legal_entity_id": "string",
60
+ * "legal_entity": {},
61
+ * "country": "AF",
62
+ * "start_date": "string",
63
+ * "end_date": "string",
64
+ * "number": "string",
65
+ * "work_email": "string",
66
+ * "personal_email": "string",
67
+ * "status": "INIT",
68
+ * "location": {},
69
+ * "employment_type_id": "string",
70
+ * "employment_type": {},
71
+ * "gender": "MALE",
72
+ * "date_of_birth": "string",
73
+ * "race": "BLACK",
74
+ * "ethnicity": "HISPANIC_OR_LATINO",
75
+ * "citizenship": "AF",
76
+ * "compensation_id": "string",
77
+ * "compensation": {},
78
+ * "overtime_exemption": "EXEMPT",
79
+ * "department_id": "string",
80
+ * "department": {},
81
+ * "teams_id": [],
82
+ * "teams": [],
83
+ * "title": "string",
84
+ * "title_effective_date": "string",
85
+ * "level_id": "string",
86
+ * "level": {},
87
+ * "job_function_id": "string",
88
+ * "job_function": {},
89
+ * "termination_details": {},
90
+ * "pay_schedule_id": "string",
91
+ * "work_schedule": {},
92
+ * "compensation_grade": {},
93
+ * "original_start_date": "string",
94
+ * "custom_fields": [],
95
+ * "country_fields": {},
96
+ * "business_partners_id": [],
97
+ * "business_partners": []
98
+ * },
45
99
  * "company_amount": {
46
100
  * "currency_type": "string",
47
101
  * "value": "string"
@@ -50,14 +104,17 @@ export class CardTransactions extends APIResource {
50
104
  * "currency_type": "string",
51
105
  * "value": "string"
52
106
  * },
53
- * "transaction_date": "string",
54
107
  * "accounting_date": "string",
55
108
  * "gl_sync_state": "NOT_FINALIZED",
56
109
  * "approval_status": "DRAFT",
57
110
  * "entity_id": "string",
58
111
  * "vendor": {
59
112
  * "id": "string",
60
- * "name": "string"
113
+ * "created_at": "string",
114
+ * "updated_at": "string",
115
+ * "name": "string",
116
+ * "logo": "string",
117
+ * "is_archived": "string"
61
118
  * },
62
119
  * "gl_vendor": {
63
120
  * "id": "string",
@@ -65,13 +122,18 @@ export class CardTransactions extends APIResource {
65
122
  * "gl_vendor_id": "string"
66
123
  * },
67
124
  * "memo": "string",
68
- * "receipt": "string",
69
125
  * "attachments": [
70
- * "string"
126
+ * {}
71
127
  * ],
72
128
  * "line_items": [
73
129
  * {}
74
130
  * ],
131
+ * "vendor_id": "string",
132
+ * "transaction_date": "string",
133
+ * "receipt": {
134
+ * "url": "string",
135
+ * "file_name": "string"
136
+ * },
75
137
  * "transaction_type": "CARD_TRANSACTION",
76
138
  * "authorization_state": "PENDING",
77
139
  * "card_id": "string"
@@ -92,12 +154,12 @@ export class CardTransactions extends APIResource {
92
154
  }
93
155
 
94
156
  /**
95
- * Retrieve a specific card transaction
157
+ * Retrieve a specific card transaction. Expandable fields: `worker`, `vendor`.
96
158
  *
97
159
  * @example HTTP
98
160
  * Representative request and response shapes.
99
161
  * ```
100
- * GET /card-transactions/{id}/ HTTP/1.1
162
+ * GET /card-transactions/{id}/?expand=expand HTTP/1.1
101
163
  * Host: rest.ripplingapis.com
102
164
  * Accept: application/json
103
165
  * Rippling-Api-Version: 2024-08-01
@@ -114,15 +176,19 @@ export class CardTransactions extends APIResource {
114
176
  * }
115
177
  * ```
116
178
  */
117
- retrieve(id: string, options?: RequestOptions): APIPromise<CardTransactionRetrieveResponse> {
118
- return this._client.get(path`/card-transactions/${id}/`, options);
179
+ retrieve(
180
+ id: string,
181
+ query: CardTransactionRetrieveParams | null | undefined = {},
182
+ options?: RequestOptions,
183
+ ): APIPromise<CardTransactionRetrieveResponse> {
184
+ return this._client.get(path`/card-transactions/${id}/`, { query, ...options });
119
185
  }
120
186
  }
121
187
 
122
188
  export type CardTransactionListResponsesPageCursorURL = PageCursorURL<CardTransactionListResponse>;
123
189
 
124
190
  /**
125
- * A Spend card transaction or authorization the caller can see.
191
+ * A Finance card transaction or authorization the caller can see.
126
192
  *
127
193
  * An authorization is a pending hold the card network places at the time of purchase. A card transaction
128
194
  * is the posted charge. List returns both; retrieve returns one by ID. A transaction the
@@ -170,9 +236,9 @@ export interface CardTransactionListResponse {
170
236
  | 'FAILED';
171
237
 
172
238
  /**
173
- * URLs of other attached files.
239
+ * Other attached files, including filenames and recorded upload metadata.
174
240
  */
175
- attachments?: Array<string>;
241
+ attachments?: Array<CardTransactionListResponse.Attachment>;
176
242
 
177
243
  /**
178
244
  * State of the card authorization. `PENDING`: an active hold awaiting completion.
@@ -183,8 +249,8 @@ export interface CardTransactionListResponse {
183
249
  authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
184
250
 
185
251
  /**
186
- * ID of the Spend card used. No public API is currently available to retrieve this
187
- * card.
252
+ * ID of the Finance card used. No public API is currently available to retrieve
253
+ * this card.
188
254
  */
189
255
  card_id?: string;
190
256
 
@@ -224,7 +290,7 @@ export interface CardTransactionListResponse {
224
290
  gl_vendor?: CardTransactionListResponse.GlVendor;
225
291
 
226
292
  /**
227
- * Category splits of the transaction amount.
293
+ * Category splits of the transaction amount. Updates replace the entire list.
228
294
  */
229
295
  line_items?: Array<CardTransactionListResponse.LineItem>;
230
296
 
@@ -240,9 +306,9 @@ export interface CardTransactionListResponse {
240
306
  merchant_amount?: CardTransactionListResponse.MerchantAmount;
241
307
 
242
308
  /**
243
- * URL of the receipt file.
309
+ * Receipt file and its filename.
244
310
  */
245
- receipt?: string;
311
+ receipt?: CardTransactionListResponse.Receipt;
246
312
 
247
313
  /**
248
314
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
@@ -256,10 +322,24 @@ export interface CardTransactionListResponse {
256
322
  transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
257
323
 
258
324
  /**
259
- * Vendor the purchase was made from.
325
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
326
+ *
327
+ * Expandable field
260
328
  */
261
329
  vendor?: CardTransactionListResponse.Vendor;
262
330
 
331
+ /**
332
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
333
+ */
334
+ vendor_id?: string;
335
+
336
+ /**
337
+ * Worker details. Expand with `card-transactions.read` and `workers.read`.
338
+ *
339
+ * Expandable field
340
+ */
341
+ worker?: WorkersAPI.Worker;
342
+
263
343
  /**
264
344
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
265
345
  */
@@ -267,6 +347,32 @@ export interface CardTransactionListResponse {
267
347
  }
268
348
 
269
349
  export namespace CardTransactionListResponse {
350
+ /**
351
+ * A Finance transaction attachment with recorded upload details.
352
+ */
353
+ export interface Attachment {
354
+ /**
355
+ * URL for accessing the file.
356
+ */
357
+ url: string;
358
+
359
+ /**
360
+ * Original file name, when recorded.
361
+ */
362
+ file_name?: string;
363
+
364
+ /**
365
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
366
+ * recorded.
367
+ */
368
+ uploaded_at?: string;
369
+
370
+ /**
371
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
372
+ */
373
+ uploaded_by_id?: string;
374
+ }
375
+
270
376
  /**
271
377
  * Amount in the company's headquarters currency. The `value` is a decimal string.
272
378
  */
@@ -303,28 +409,56 @@ export namespace CardTransactionListResponse {
303
409
  }
304
410
 
305
411
  export interface LineItem {
412
+ /**
413
+ * Unique identifier of this line item. Null for older line items that have not
414
+ * been assigned one yet.
415
+ */
416
+ id?: string;
417
+
418
+ /**
419
+ * Whether this line is amortized.
420
+ */
421
+ amortized?: boolean;
422
+
306
423
  /**
307
424
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
308
425
  */
309
426
  amount?: LineItem.Amount;
310
427
 
311
428
  /**
312
- * ID of the Spend category assigned to this split. No public API is currently
313
- * available to retrieve this category; its name is in `category_name`.
429
+ * ID of the Finance category assigned to this split. Use it with
430
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
314
431
  */
315
432
  category_id?: string;
316
433
 
317
434
  /**
318
- * Name of the spend category.
435
+ * Name of the finance category.
319
436
  */
320
437
  category_name?: string;
321
438
 
322
439
  /**
323
- * Selected dimension values, keyed by dimension ID. Includes department and work
324
- * location.
440
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
441
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
442
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
443
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
325
444
  */
326
445
  dimension_choices?: { [key: string]: LineItem.DimensionChoices };
327
446
 
447
+ /**
448
+ * End of the amortization period (YYYY-MM-DD).
449
+ */
450
+ end_date?: string;
451
+
452
+ /**
453
+ * ERP amortization schedule associated with this line.
454
+ */
455
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
456
+
457
+ /**
458
+ * ERP amortization template for this line.
459
+ */
460
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
461
+
328
462
  /**
329
463
  * Whether this split is billed to `gl_customer` in the accounting system.
330
464
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -338,10 +472,31 @@ export namespace CardTransactionListResponse {
338
472
  */
339
473
  gl_customer?: string;
340
474
 
475
+ /**
476
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
477
+ * available to retrieve this accounting tax code.
478
+ */
479
+ gl_tax_code?: string;
480
+
341
481
  /**
342
482
  * Memo entered on this split.
343
483
  */
344
484
  memo?: string;
485
+
486
+ /**
487
+ * Prepaid asset account for Rippling-managed amortization.
488
+ */
489
+ prepaid_account?: LineItem.PrepaidAccount;
490
+
491
+ /**
492
+ * Start of the amortization period (YYYY-MM-DD).
493
+ */
494
+ start_date?: string;
495
+
496
+ /**
497
+ * Total tax amount for this line in the merchant currency.
498
+ */
499
+ tax_amount?: LineItem.TaxAmount;
345
500
  }
346
501
 
347
502
  export namespace LineItem {
@@ -372,10 +527,192 @@ export namespace CardTransactionListResponse {
372
527
  label?: string;
373
528
 
374
529
  /**
375
- * ID of the selected dimension value.
530
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
531
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
532
+ * `/job-codes/{id}/`.
376
533
  */
377
534
  value?: string;
378
535
  }
536
+
537
+ /**
538
+ * ERP amortization schedule associated with this line.
539
+ */
540
+ export interface GlAmortizationSchedule {
541
+ /**
542
+ * Rippling ID of the accounting integration that owns this object. No public
543
+ * Rippling API is currently available to retrieve this accounting integration.
544
+ */
545
+ accounting_integration_id?: string;
546
+
547
+ /**
548
+ * Number of amortization periods.
549
+ */
550
+ amortization_period?: number;
551
+
552
+ /**
553
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
554
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
555
+ * indicate UTC. Null when not set.
556
+ */
557
+ end_date?: string;
558
+
559
+ /**
560
+ * Object ID in the connected accounting system.
561
+ */
562
+ gl_object_id?: string;
563
+
564
+ /**
565
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
566
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
567
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
568
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
569
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
570
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
571
+ * when not set.
572
+ */
573
+ gl_object_type?:
574
+ | 'GL_AMORTIZATION_TEMPLATE'
575
+ | 'GL_AMORTIZATION_SCHEDULE'
576
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
577
+ | 'GL_ACCOUNT'
578
+ | 'GL_JOURNAL_ENTRY'
579
+ | 'GL_POSTING_PERIOD'
580
+ | 'GL_VENDOR'
581
+ | 'GL_CUSTOMER'
582
+ | 'GL_EMPLOYEE'
583
+ | 'GL_SUBSIDIARY';
584
+
585
+ /**
586
+ * Accounting object name.
587
+ */
588
+ name?: string;
589
+
590
+ /**
591
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
592
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
593
+ * indicate UTC. Null when not set.
594
+ */
595
+ start_date?: string;
596
+
597
+ /**
598
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
599
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
600
+ * complete; ON_HOLD means amortization is paused. Null when not set.
601
+ */
602
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
603
+
604
+ /**
605
+ * Amount already amortized as reported by the ERP, in the same currency as
606
+ * total_amount. No currency conversion is applied; the schedule currency code is
607
+ * not available in this response.
608
+ */
609
+ total_amortized_amount?: number;
610
+
611
+ /**
612
+ * Total schedule amount as reported by the ERP, without currency conversion. The
613
+ * schedule currency code is not available in this response.
614
+ */
615
+ total_amount?: number;
616
+ }
617
+
618
+ /**
619
+ * ERP amortization template for this line.
620
+ */
621
+ export interface GlAmortizationTemplate {
622
+ /**
623
+ * Rippling ID of the accounting integration that owns this object. No public
624
+ * Rippling API is currently available to retrieve this accounting integration.
625
+ */
626
+ accounting_integration_id?: string;
627
+
628
+ /**
629
+ * Object ID in the connected accounting system.
630
+ */
631
+ gl_object_id?: string;
632
+
633
+ /**
634
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
635
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
636
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
637
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
638
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
639
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
640
+ * when not set.
641
+ */
642
+ gl_object_type?:
643
+ | 'GL_AMORTIZATION_TEMPLATE'
644
+ | 'GL_AMORTIZATION_SCHEDULE'
645
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
646
+ | 'GL_ACCOUNT'
647
+ | 'GL_JOURNAL_ENTRY'
648
+ | 'GL_POSTING_PERIOD'
649
+ | 'GL_VENDOR'
650
+ | 'GL_CUSTOMER'
651
+ | 'GL_EMPLOYEE'
652
+ | 'GL_SUBSIDIARY';
653
+
654
+ /**
655
+ * Accounting object name.
656
+ */
657
+ name?: string;
658
+ }
659
+
660
+ /**
661
+ * Prepaid asset account for Rippling-managed amortization.
662
+ */
663
+ export interface PrepaidAccount {
664
+ /**
665
+ * Account ID in the connected accounting system.
666
+ */
667
+ account_id?: string;
668
+
669
+ /**
670
+ * Account code.
671
+ */
672
+ code?: string;
673
+
674
+ /**
675
+ * Account name.
676
+ */
677
+ name?: string;
678
+
679
+ /**
680
+ * IDs of custom dimensions required by this account.
681
+ */
682
+ required_custom_dimensions?: Array<string>;
683
+
684
+ /**
685
+ * Whether this account requires a department.
686
+ */
687
+ requires_department?: boolean;
688
+
689
+ /**
690
+ * Whether this account requires a work location.
691
+ */
692
+ requires_work_location?: boolean;
693
+
694
+ /**
695
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
696
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
697
+ * when not set.
698
+ */
699
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
700
+ }
701
+
702
+ /**
703
+ * Total tax amount for this line in the merchant currency.
704
+ */
705
+ export interface TaxAmount {
706
+ /**
707
+ * The currency type, ex: USD, EUR, etc.
708
+ */
709
+ currency_type?: string;
710
+
711
+ /**
712
+ * The decimal amount for the currency.
713
+ */
714
+ value?: number;
715
+ }
379
716
  }
380
717
 
381
718
  /**
@@ -395,16 +732,55 @@ export namespace CardTransactionListResponse {
395
732
  }
396
733
 
397
734
  /**
398
- * Vendor the purchase was made from.
735
+ * Receipt file and its filename.
736
+ */
737
+ export interface Receipt {
738
+ /**
739
+ * URL for accessing the file.
740
+ */
741
+ url: string;
742
+
743
+ /**
744
+ * Original file name, when recorded.
745
+ */
746
+ file_name?: string;
747
+ }
748
+
749
+ /**
750
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
751
+ *
752
+ * Expandable field
399
753
  */
400
754
  export interface Vendor {
401
755
  /**
402
- * ID of the vendor.
756
+ * Identifier field
403
757
  */
404
- id?: string;
758
+ id: string;
759
+
760
+ /**
761
+ * Record creation date
762
+ */
763
+ created_at: string;
764
+
765
+ /**
766
+ * Record update date
767
+ */
768
+ updated_at: string;
769
+
770
+ /**
771
+ * Whether the vendor is archived. Archived vendors remain available for historical
772
+ * references.
773
+ */
774
+ is_archived?: boolean;
405
775
 
406
776
  /**
407
- * Name of the vendor.
777
+ * URL of the vendor's logo. Null when no logo is available.
778
+ */
779
+ logo?: string;
780
+
781
+ /**
782
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
783
+ * alternate names.
408
784
  */
409
785
  name?: string;
410
786
  }
@@ -455,9 +831,9 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
455
831
  | 'FAILED';
456
832
 
457
833
  /**
458
- * URLs of other attached files.
834
+ * Other attached files, including filenames and recorded upload metadata.
459
835
  */
460
- attachments?: Array<string>;
836
+ attachments?: Array<CardTransactionRetrieveResponse.Attachment>;
461
837
 
462
838
  /**
463
839
  * State of the card authorization. `PENDING`: an active hold awaiting completion.
@@ -468,8 +844,8 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
468
844
  authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
469
845
 
470
846
  /**
471
- * ID of the Spend card used. No public API is currently available to retrieve this
472
- * card.
847
+ * ID of the Finance card used. No public API is currently available to retrieve
848
+ * this card.
473
849
  */
474
850
  card_id?: string;
475
851
 
@@ -509,7 +885,7 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
509
885
  gl_vendor?: CardTransactionRetrieveResponse.GlVendor;
510
886
 
511
887
  /**
512
- * Category splits of the transaction amount.
888
+ * Category splits of the transaction amount. Updates replace the entire list.
513
889
  */
514
890
  line_items?: Array<CardTransactionRetrieveResponse.LineItem>;
515
891
 
@@ -525,9 +901,9 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
525
901
  merchant_amount?: CardTransactionRetrieveResponse.MerchantAmount;
526
902
 
527
903
  /**
528
- * URL of the receipt file.
904
+ * Receipt file and its filename.
529
905
  */
530
- receipt?: string;
906
+ receipt?: CardTransactionRetrieveResponse.Receipt;
531
907
 
532
908
  /**
533
909
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
@@ -541,10 +917,24 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
541
917
  transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
542
918
 
543
919
  /**
544
- * Vendor the purchase was made from.
920
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
921
+ *
922
+ * Expandable field
545
923
  */
546
924
  vendor?: CardTransactionRetrieveResponse.Vendor;
547
925
 
926
+ /**
927
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
928
+ */
929
+ vendor_id?: string;
930
+
931
+ /**
932
+ * Worker details. Expand with `card-transactions.read` and `workers.read`.
933
+ *
934
+ * Expandable field
935
+ */
936
+ worker?: WorkersAPI.Worker;
937
+
548
938
  /**
549
939
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
550
940
  */
@@ -552,6 +942,32 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
552
942
  }
553
943
 
554
944
  export namespace CardTransactionRetrieveResponse {
945
+ /**
946
+ * A Finance transaction attachment with recorded upload details.
947
+ */
948
+ export interface Attachment {
949
+ /**
950
+ * URL for accessing the file.
951
+ */
952
+ url: string;
953
+
954
+ /**
955
+ * Original file name, when recorded.
956
+ */
957
+ file_name?: string;
958
+
959
+ /**
960
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
961
+ * recorded.
962
+ */
963
+ uploaded_at?: string;
964
+
965
+ /**
966
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
967
+ */
968
+ uploaded_by_id?: string;
969
+ }
970
+
555
971
  /**
556
972
  * Amount in the company's headquarters currency. The `value` is a decimal string.
557
973
  */
@@ -588,28 +1004,56 @@ export namespace CardTransactionRetrieveResponse {
588
1004
  }
589
1005
 
590
1006
  export interface LineItem {
1007
+ /**
1008
+ * Unique identifier of this line item. Null for older line items that have not
1009
+ * been assigned one yet.
1010
+ */
1011
+ id?: string;
1012
+
1013
+ /**
1014
+ * Whether this line is amortized.
1015
+ */
1016
+ amortized?: boolean;
1017
+
591
1018
  /**
592
1019
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
593
1020
  */
594
1021
  amount?: LineItem.Amount;
595
1022
 
596
1023
  /**
597
- * ID of the Spend category assigned to this split. No public API is currently
598
- * available to retrieve this category; its name is in `category_name`.
1024
+ * ID of the Finance category assigned to this split. Use it with
1025
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
599
1026
  */
600
1027
  category_id?: string;
601
1028
 
602
1029
  /**
603
- * Name of the spend category.
1030
+ * Name of the finance category.
604
1031
  */
605
1032
  category_name?: string;
606
1033
 
607
1034
  /**
608
- * Selected dimension values, keyed by dimension ID. Includes department and work
609
- * location.
1035
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
1036
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
1037
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
1038
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
610
1039
  */
611
1040
  dimension_choices?: { [key: string]: LineItem.DimensionChoices };
612
1041
 
1042
+ /**
1043
+ * End of the amortization period (YYYY-MM-DD).
1044
+ */
1045
+ end_date?: string;
1046
+
1047
+ /**
1048
+ * ERP amortization schedule associated with this line.
1049
+ */
1050
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
1051
+
1052
+ /**
1053
+ * ERP amortization template for this line.
1054
+ */
1055
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
1056
+
613
1057
  /**
614
1058
  * Whether this split is billed to `gl_customer` in the accounting system.
615
1059
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -623,10 +1067,31 @@ export namespace CardTransactionRetrieveResponse {
623
1067
  */
624
1068
  gl_customer?: string;
625
1069
 
1070
+ /**
1071
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
1072
+ * available to retrieve this accounting tax code.
1073
+ */
1074
+ gl_tax_code?: string;
1075
+
626
1076
  /**
627
1077
  * Memo entered on this split.
628
1078
  */
629
1079
  memo?: string;
1080
+
1081
+ /**
1082
+ * Prepaid asset account for Rippling-managed amortization.
1083
+ */
1084
+ prepaid_account?: LineItem.PrepaidAccount;
1085
+
1086
+ /**
1087
+ * Start of the amortization period (YYYY-MM-DD).
1088
+ */
1089
+ start_date?: string;
1090
+
1091
+ /**
1092
+ * Total tax amount for this line in the merchant currency.
1093
+ */
1094
+ tax_amount?: LineItem.TaxAmount;
630
1095
  }
631
1096
 
632
1097
  export namespace LineItem {
@@ -657,10 +1122,192 @@ export namespace CardTransactionRetrieveResponse {
657
1122
  label?: string;
658
1123
 
659
1124
  /**
660
- * ID of the selected dimension value.
1125
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
1126
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
1127
+ * `/job-codes/{id}/`.
661
1128
  */
662
1129
  value?: string;
663
1130
  }
1131
+
1132
+ /**
1133
+ * ERP amortization schedule associated with this line.
1134
+ */
1135
+ export interface GlAmortizationSchedule {
1136
+ /**
1137
+ * Rippling ID of the accounting integration that owns this object. No public
1138
+ * Rippling API is currently available to retrieve this accounting integration.
1139
+ */
1140
+ accounting_integration_id?: string;
1141
+
1142
+ /**
1143
+ * Number of amortization periods.
1144
+ */
1145
+ amortization_period?: number;
1146
+
1147
+ /**
1148
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1149
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
1150
+ * indicate UTC. Null when not set.
1151
+ */
1152
+ end_date?: string;
1153
+
1154
+ /**
1155
+ * Object ID in the connected accounting system.
1156
+ */
1157
+ gl_object_id?: string;
1158
+
1159
+ /**
1160
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1161
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1162
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1163
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1164
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1165
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1166
+ * when not set.
1167
+ */
1168
+ gl_object_type?:
1169
+ | 'GL_AMORTIZATION_TEMPLATE'
1170
+ | 'GL_AMORTIZATION_SCHEDULE'
1171
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1172
+ | 'GL_ACCOUNT'
1173
+ | 'GL_JOURNAL_ENTRY'
1174
+ | 'GL_POSTING_PERIOD'
1175
+ | 'GL_VENDOR'
1176
+ | 'GL_CUSTOMER'
1177
+ | 'GL_EMPLOYEE'
1178
+ | 'GL_SUBSIDIARY';
1179
+
1180
+ /**
1181
+ * Accounting object name.
1182
+ */
1183
+ name?: string;
1184
+
1185
+ /**
1186
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1187
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
1188
+ * indicate UTC. Null when not set.
1189
+ */
1190
+ start_date?: string;
1191
+
1192
+ /**
1193
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
1194
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
1195
+ * complete; ON_HOLD means amortization is paused. Null when not set.
1196
+ */
1197
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
1198
+
1199
+ /**
1200
+ * Amount already amortized as reported by the ERP, in the same currency as
1201
+ * total_amount. No currency conversion is applied; the schedule currency code is
1202
+ * not available in this response.
1203
+ */
1204
+ total_amortized_amount?: number;
1205
+
1206
+ /**
1207
+ * Total schedule amount as reported by the ERP, without currency conversion. The
1208
+ * schedule currency code is not available in this response.
1209
+ */
1210
+ total_amount?: number;
1211
+ }
1212
+
1213
+ /**
1214
+ * ERP amortization template for this line.
1215
+ */
1216
+ export interface GlAmortizationTemplate {
1217
+ /**
1218
+ * Rippling ID of the accounting integration that owns this object. No public
1219
+ * Rippling API is currently available to retrieve this accounting integration.
1220
+ */
1221
+ accounting_integration_id?: string;
1222
+
1223
+ /**
1224
+ * Object ID in the connected accounting system.
1225
+ */
1226
+ gl_object_id?: string;
1227
+
1228
+ /**
1229
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1230
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1231
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1232
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1233
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1234
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1235
+ * when not set.
1236
+ */
1237
+ gl_object_type?:
1238
+ | 'GL_AMORTIZATION_TEMPLATE'
1239
+ | 'GL_AMORTIZATION_SCHEDULE'
1240
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1241
+ | 'GL_ACCOUNT'
1242
+ | 'GL_JOURNAL_ENTRY'
1243
+ | 'GL_POSTING_PERIOD'
1244
+ | 'GL_VENDOR'
1245
+ | 'GL_CUSTOMER'
1246
+ | 'GL_EMPLOYEE'
1247
+ | 'GL_SUBSIDIARY';
1248
+
1249
+ /**
1250
+ * Accounting object name.
1251
+ */
1252
+ name?: string;
1253
+ }
1254
+
1255
+ /**
1256
+ * Prepaid asset account for Rippling-managed amortization.
1257
+ */
1258
+ export interface PrepaidAccount {
1259
+ /**
1260
+ * Account ID in the connected accounting system.
1261
+ */
1262
+ account_id?: string;
1263
+
1264
+ /**
1265
+ * Account code.
1266
+ */
1267
+ code?: string;
1268
+
1269
+ /**
1270
+ * Account name.
1271
+ */
1272
+ name?: string;
1273
+
1274
+ /**
1275
+ * IDs of custom dimensions required by this account.
1276
+ */
1277
+ required_custom_dimensions?: Array<string>;
1278
+
1279
+ /**
1280
+ * Whether this account requires a department.
1281
+ */
1282
+ requires_department?: boolean;
1283
+
1284
+ /**
1285
+ * Whether this account requires a work location.
1286
+ */
1287
+ requires_work_location?: boolean;
1288
+
1289
+ /**
1290
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
1291
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
1292
+ * when not set.
1293
+ */
1294
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
1295
+ }
1296
+
1297
+ /**
1298
+ * Total tax amount for this line in the merchant currency.
1299
+ */
1300
+ export interface TaxAmount {
1301
+ /**
1302
+ * The currency type, ex: USD, EUR, etc.
1303
+ */
1304
+ currency_type?: string;
1305
+
1306
+ /**
1307
+ * The decimal amount for the currency.
1308
+ */
1309
+ value?: number;
1310
+ }
664
1311
  }
665
1312
 
666
1313
  /**
@@ -680,16 +1327,55 @@ export namespace CardTransactionRetrieveResponse {
680
1327
  }
681
1328
 
682
1329
  /**
683
- * Vendor the purchase was made from.
1330
+ * Receipt file and its filename.
1331
+ */
1332
+ export interface Receipt {
1333
+ /**
1334
+ * URL for accessing the file.
1335
+ */
1336
+ url: string;
1337
+
1338
+ /**
1339
+ * Original file name, when recorded.
1340
+ */
1341
+ file_name?: string;
1342
+ }
1343
+
1344
+ /**
1345
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
1346
+ *
1347
+ * Expandable field
684
1348
  */
685
1349
  export interface Vendor {
686
1350
  /**
687
- * ID of the vendor.
1351
+ * Identifier field
688
1352
  */
689
- id?: string;
1353
+ id: string;
1354
+
1355
+ /**
1356
+ * Record creation date
1357
+ */
1358
+ created_at: string;
1359
+
1360
+ /**
1361
+ * Record update date
1362
+ */
1363
+ updated_at: string;
1364
+
1365
+ /**
1366
+ * Whether the vendor is archived. Archived vendors remain available for historical
1367
+ * references.
1368
+ */
1369
+ is_archived?: boolean;
1370
+
1371
+ /**
1372
+ * URL of the vendor's logo. Null when no logo is available.
1373
+ */
1374
+ logo?: string;
690
1375
 
691
1376
  /**
692
- * Name of the vendor.
1377
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
1378
+ * alternate names.
693
1379
  */
694
1380
  name?: string;
695
1381
  }
@@ -698,6 +1384,8 @@ export namespace CardTransactionRetrieveResponse {
698
1384
  export interface CardTransactionListParams {
699
1385
  cursor?: string;
700
1386
 
1387
+ expand?: string;
1388
+
701
1389
  filter?: string;
702
1390
 
703
1391
  /**
@@ -708,11 +1396,16 @@ export interface CardTransactionListParams {
708
1396
  order_by?: string;
709
1397
  }
710
1398
 
1399
+ export interface CardTransactionRetrieveParams {
1400
+ expand?: string;
1401
+ }
1402
+
711
1403
  export declare namespace CardTransactions {
712
1404
  export {
713
1405
  type CardTransactionListResponse as CardTransactionListResponse,
714
1406
  type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse,
715
1407
  type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL,
716
1408
  type CardTransactionListParams as CardTransactionListParams,
1409
+ type CardTransactionRetrieveParams as CardTransactionRetrieveParams,
717
1410
  };
718
1411
  }