@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
@@ -1,21 +1,26 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  import * as BusinessPartnersAPI from "./business-partners.mjs";
3
+ import * as WorkersAPI from "./workers.mjs";
3
4
  import { APIPromise } from "../core/api-promise.mjs";
4
5
  import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
6
  import { RequestOptions } from "../internal/request-options.mjs";
7
+ /**
8
+ * Expense reimbursements, including mileage and per diem
9
+ */
6
10
  export declare class Reimbursements extends APIResource {
7
11
  /**
8
12
  * A list of reimbursements.
9
13
  *
10
- * - Requires: `Internal Testing`
11
- * - Filterable fields: `worker_id`, `transaction_date`, `entity_id`, `vendor_id`,
12
- * `category_id`, `transaction_type`
14
+ * - Requires: `Spend Management Platform API`
15
+ * - Filterable fields: `worker_id`, `entity_id`, `vendor_id`, `transaction_date`,
16
+ * `transaction_type`
17
+ * - Expandable fields: `worker`, `vendor`, `mileage_rate`, `per_diem_rate`
13
18
  * - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
14
19
  *
15
20
  * @example HTTP
16
21
  * Representative request and response shapes.
17
22
  * ```
18
- * GET /reimbursements/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
23
+ * GET /reimbursements/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
19
24
  * Host: rest.ripplingapis.com
20
25
  * Accept: application/json
21
26
  * Rippling-Api-Version: 2024-08-01
@@ -38,6 +43,55 @@ export declare class Reimbursements extends APIResource {
38
43
  * "created_at": "string",
39
44
  * "updated_at": "string",
40
45
  * "worker_id": "string",
46
+ * "worker": {
47
+ * "id": "string",
48
+ * "created_at": "string",
49
+ * "updated_at": "string",
50
+ * "user_id": "string",
51
+ * "user": {},
52
+ * "is_manager": "string",
53
+ * "manager_id": "string",
54
+ * "manager": {},
55
+ * "legal_entity_id": "string",
56
+ * "legal_entity": {},
57
+ * "country": "AF",
58
+ * "start_date": "string",
59
+ * "end_date": "string",
60
+ * "number": "string",
61
+ * "work_email": "string",
62
+ * "personal_email": "string",
63
+ * "status": "INIT",
64
+ * "location": {},
65
+ * "employment_type_id": "string",
66
+ * "employment_type": {},
67
+ * "gender": "MALE",
68
+ * "date_of_birth": "string",
69
+ * "race": "BLACK",
70
+ * "ethnicity": "HISPANIC_OR_LATINO",
71
+ * "citizenship": "AF",
72
+ * "compensation_id": "string",
73
+ * "compensation": {},
74
+ * "overtime_exemption": "EXEMPT",
75
+ * "department_id": "string",
76
+ * "department": {},
77
+ * "teams_id": [],
78
+ * "teams": [],
79
+ * "title": "string",
80
+ * "title_effective_date": "string",
81
+ * "level_id": "string",
82
+ * "level": {},
83
+ * "job_function_id": "string",
84
+ * "job_function": {},
85
+ * "termination_details": {},
86
+ * "pay_schedule_id": "string",
87
+ * "work_schedule": {},
88
+ * "compensation_grade": {},
89
+ * "original_start_date": "string",
90
+ * "custom_fields": [],
91
+ * "country_fields": {},
92
+ * "business_partners_id": [],
93
+ * "business_partners": []
94
+ * },
41
95
  * "company_amount": {
42
96
  * "currency_type": "string",
43
97
  * "value": "string"
@@ -46,14 +100,17 @@ export declare class Reimbursements extends APIResource {
46
100
  * "currency_type": "string",
47
101
  * "value": "string"
48
102
  * },
49
- * "transaction_date": "string",
50
103
  * "accounting_date": "string",
51
104
  * "gl_sync_state": "NOT_FINALIZED",
52
105
  * "approval_status": "DRAFT",
53
106
  * "entity_id": "string",
54
107
  * "vendor": {
55
108
  * "id": "string",
56
- * "name": "string"
109
+ * "created_at": "string",
110
+ * "updated_at": "string",
111
+ * "name": "string",
112
+ * "logo": "string",
113
+ * "is_archived": "string"
57
114
  * },
58
115
  * "gl_vendor": {
59
116
  * "id": "string",
@@ -61,13 +118,18 @@ export declare class Reimbursements extends APIResource {
61
118
  * "gl_vendor_id": "string"
62
119
  * },
63
120
  * "memo": "string",
64
- * "receipt": "string",
65
121
  * "attachments": [
66
- * "string"
122
+ * {}
67
123
  * ],
68
124
  * "line_items": [
69
125
  * {}
70
126
  * ],
127
+ * "vendor_id": "string",
128
+ * "transaction_date": "string",
129
+ * "receipt": {
130
+ * "url": "string",
131
+ * "file_name": "string"
132
+ * },
71
133
  * "transaction_type": "REIMBURSEMENT",
72
134
  * "payout_amount": {
73
135
  * "currency_type": "string",
@@ -76,21 +138,44 @@ export declare class Reimbursements extends APIResource {
76
138
  * "payout_method": "NOT_SET",
77
139
  * "payout_date": "string",
78
140
  * "distance": 0,
141
+ * "mileage_rate_id": "string",
79
142
  * "mileage_rate": {
80
143
  * "id": "string",
144
+ * "created_at": "string",
145
+ * "updated_at": "string",
81
146
  * "name": "string",
82
147
  * "rate": {},
83
- * "units": "km"
148
+ * "units": "km",
149
+ * "start_date": "string",
150
+ * "end_date": "string",
151
+ * "country": "string",
152
+ * "half_cent": "string"
153
+ * },
154
+ * "start_location": {
155
+ * "address": "string",
156
+ * "coordinates": {}
157
+ * },
158
+ * "end_location": {
159
+ * "address": "string",
160
+ * "coordinates": {}
84
161
  * },
85
- * "start_address": "string",
86
- * "end_address": "string",
162
+ * "waypoints": [
163
+ * {}
164
+ * ],
87
165
  * "trip_start_date": "string",
88
166
  * "trip_end_date": "string",
167
+ * "per_diem_rate_id": "string",
89
168
  * "per_diem_rate": {
90
169
  * "id": "string",
170
+ * "created_at": "string",
171
+ * "updated_at": "string",
91
172
  * "destination_name": "string",
92
173
  * "country": "string",
93
- * "currency": "string"
174
+ * "currency": "string",
175
+ * "start_date": "string",
176
+ * "end_date": "string",
177
+ * "is_current": "string",
178
+ * "is_archived": "string"
94
179
  * },
95
180
  * "per_diem_line_items": [
96
181
  * {}
@@ -103,12 +188,13 @@ export declare class Reimbursements extends APIResource {
103
188
  */
104
189
  list(query?: ReimbursementListParams | null | undefined, options?: RequestOptions): PagePromise<ReimbursementListResponsesPageCursorURL, ReimbursementListResponse>;
105
190
  /**
106
- * Retrieve a specific reimbursement
191
+ * Retrieve a specific reimbursement. Expandable fields: `worker`, `vendor`,
192
+ * `mileage_rate`, `per_diem_rate`.
107
193
  *
108
194
  * @example HTTP
109
195
  * Representative request and response shapes.
110
196
  * ```
111
- * GET /reimbursements/{id}/ HTTP/1.1
197
+ * GET /reimbursements/{id}/?expand=expand HTTP/1.1
112
198
  * Host: rest.ripplingapis.com
113
199
  * Accept: application/json
114
200
  * Rippling-Api-Version: 2024-08-01
@@ -125,16 +211,222 @@ export declare class Reimbursements extends APIResource {
125
211
  * }
126
212
  * ```
127
213
  */
128
- retrieve(id: string, options?: RequestOptions): APIPromise<ReimbursementRetrieveResponse>;
214
+ retrieve(id: string, query?: ReimbursementRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ReimbursementRetrieveResponse>;
215
+ /**
216
+ * Replace a reimbursement's line items. Supplying `line_items` replaces the entire
217
+ * list: unlisted lines are deleted, omitted or null optional fields on supplied
218
+ * lines are cleared. `amount` and `tax_amount` are decimal strings in the merchant
219
+ * currency; GET responses return them as Currency objects. Line item `amount`
220
+ * values must sum to the reimbursement's merchant amount. Line items on per-diem
221
+ * reimbursements cannot be updated. Mileage reimbursements must have exactly one
222
+ * line item.
223
+ *
224
+ * @example HTTP
225
+ * Representative request and response shapes.
226
+ * ```
227
+ * PATCH /reimbursements/{id}/ HTTP/1.1
228
+ * Host: rest.ripplingapis.com
229
+ * Content-Type: application/json
230
+ * Accept: application/json
231
+ * Rippling-Api-Version: 2024-08-01
232
+ *
233
+ * {}
234
+ *
235
+ * HTTP/1.1 200 OK
236
+ * Content-Type: application/json
237
+ *
238
+ * {
239
+ * "id": "string",
240
+ * "created_at": "string",
241
+ * "updated_at": "string",
242
+ * "worker_id": "string",
243
+ * "worker": {
244
+ * "id": "string",
245
+ * "created_at": "string",
246
+ * "updated_at": "string"
247
+ * },
248
+ * "company_amount": {},
249
+ * "merchant_amount": {
250
+ * "currency_type": "string",
251
+ * "value": 0
252
+ * },
253
+ * "accounting_date": "string",
254
+ * "gl_sync_state": "NOT_FINALIZED",
255
+ * "approval_status": "DRAFT",
256
+ * "entity_id": "string",
257
+ * "vendor": {
258
+ * "id": "string",
259
+ * "created_at": "string",
260
+ * "updated_at": "string",
261
+ * "name": "string",
262
+ * "logo": "string",
263
+ * "is_archived": false
264
+ * },
265
+ * "gl_vendor": {
266
+ * "id": "string",
267
+ * "name": "string",
268
+ * "gl_vendor_id": "string"
269
+ * },
270
+ * "memo": "string",
271
+ * "attachments": [
272
+ * {
273
+ * "url": "string",
274
+ * "file_name": "string",
275
+ * "uploaded_at": "string",
276
+ * "uploaded_by_id": "string"
277
+ * }
278
+ * ],
279
+ * "line_items": [
280
+ * {
281
+ * "gl_customer": "string",
282
+ * "gl_billable": "BILLABLE",
283
+ * "dimension_choices": {},
284
+ * "memo": "string",
285
+ * "gl_amortization_template": {
286
+ * "gl_object_id": "string",
287
+ * "accounting_integration_id": "string",
288
+ * "name": "string",
289
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
290
+ * },
291
+ * "amortized": false,
292
+ * "start_date": "string",
293
+ * "end_date": "string",
294
+ * "prepaid_account": {
295
+ * "account_id": "string",
296
+ * "name": "string",
297
+ * "code": "string",
298
+ * "type": "RECEIVABLE",
299
+ * "required_custom_dimensions": [],
300
+ * "requires_department": "string",
301
+ * "requires_work_location": "string"
302
+ * },
303
+ * "gl_amortization_schedule": {
304
+ * "gl_object_id": "string",
305
+ * "accounting_integration_id": "string",
306
+ * "name": "string",
307
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
308
+ * "start_date": "string",
309
+ * "end_date": "string",
310
+ * "total_amount": "string",
311
+ * "total_amortized_amount": "string",
312
+ * "amortization_period": "string",
313
+ * "status": "NOT_STARTED"
314
+ * },
315
+ * "gl_tax_code": "string",
316
+ * "id": "string",
317
+ * "category_id": "string",
318
+ * "category_name": "string",
319
+ * "amount": {
320
+ * "currency_type": "string",
321
+ * "value": "string"
322
+ * },
323
+ * "tax_amount": {
324
+ * "currency_type": "string",
325
+ * "value": "string"
326
+ * }
327
+ * }
328
+ * ],
329
+ * "vendor_id": "string",
330
+ * "transaction_date": "string",
331
+ * "receipt": {
332
+ * "url": "string",
333
+ * "file_name": "string"
334
+ * },
335
+ * "transaction_type": "REIMBURSEMENT",
336
+ * "payout_amount": {
337
+ * "currency_type": "string",
338
+ * "value": 0
339
+ * },
340
+ * "payout_method": "NOT_SET",
341
+ * "payout_date": "string",
342
+ * "distance": 0,
343
+ * "mileage_rate_id": "string",
344
+ * "mileage_rate": {
345
+ * "id": "string",
346
+ * "created_at": "string",
347
+ * "updated_at": "string",
348
+ * "name": "string",
349
+ * "rate": {
350
+ * "currency_type": "string",
351
+ * "value": 0
352
+ * },
353
+ * "units": "km",
354
+ * "start_date": "string",
355
+ * "end_date": "string",
356
+ * "country": "string",
357
+ * "half_cent": false
358
+ * },
359
+ * "start_location": {
360
+ * "address": "string",
361
+ * "coordinates": {
362
+ * "latitude": 0,
363
+ * "longitude": 0
364
+ * }
365
+ * },
366
+ * "end_location": {
367
+ * "address": "string",
368
+ * "coordinates": {
369
+ * "latitude": 0,
370
+ * "longitude": 0
371
+ * }
372
+ * },
373
+ * "waypoints": [
374
+ * {
375
+ * "address": "string",
376
+ * "coordinates": {
377
+ * "latitude": "string",
378
+ * "longitude": "string"
379
+ * }
380
+ * }
381
+ * ],
382
+ * "trip_start_date": "string",
383
+ * "trip_end_date": "string",
384
+ * "per_diem_rate_id": "string",
385
+ * "per_diem_rate": {
386
+ * "id": "string",
387
+ * "created_at": "string",
388
+ * "updated_at": "string",
389
+ * "destination_name": "string",
390
+ * "country": "string",
391
+ * "currency": "string",
392
+ * "start_date": "string",
393
+ * "end_date": "string",
394
+ * "is_current": false,
395
+ * "is_archived": false
396
+ * },
397
+ * "per_diem_line_items": [
398
+ * {
399
+ * "sub_rate_id": "string",
400
+ * "sub_rate_type": "FULL_DAY",
401
+ * "label": "string",
402
+ * "amount": {
403
+ * "currency_type": "string",
404
+ * "value": "string"
405
+ * },
406
+ * "count": 0,
407
+ * "line_type": "INCLUDE",
408
+ * "calculated_amount": {
409
+ * "currency_type": "string",
410
+ * "value": "string"
411
+ * }
412
+ * }
413
+ * ]
414
+ * }
415
+ * ```
416
+ */
417
+ update(id: string, body?: ReimbursementUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ReimbursementUpdateResponse>;
129
418
  }
130
419
  export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
131
420
  /**
132
- * A Spend reimbursement the caller can see.
421
+ * A Finance reimbursement the caller can see.
133
422
  *
134
423
  * A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
135
424
  * use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
136
425
  * Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
137
- * that does not exist.
426
+ * that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
427
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
428
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
429
+ * The sum of request `amount` values must equal the reimbursement's merchant amount.
138
430
  */
139
431
  export interface ReimbursementListResponse {
140
432
  /**
@@ -164,9 +456,9 @@ export interface ReimbursementListResponse {
164
456
  */
165
457
  approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
166
458
  /**
167
- * URLs of other attached files.
459
+ * Other attached files, including filenames and recorded upload metadata.
168
460
  */
169
- attachments?: Array<string>;
461
+ attachments?: Array<ReimbursementListResponse.Attachment>;
170
462
  /**
171
463
  * Amount in the company's headquarters currency. The `value` is a decimal string.
172
464
  */
@@ -176,9 +468,9 @@ export interface ReimbursementListResponse {
176
468
  */
177
469
  distance?: number;
178
470
  /**
179
- * Mileage end address. Null when the trip has no end address.
471
+ * End of a mileage trip. Null except on mileage reimbursements.
180
472
  */
181
- end_address?: string;
473
+ end_location?: ReimbursementListResponse.EndLocation;
182
474
  /**
183
475
  * ID of the legal entity the transaction belongs to. Use it with
184
476
  * `/company-legal-entities/{id}/`.
@@ -198,7 +490,7 @@ export interface ReimbursementListResponse {
198
490
  */
199
491
  gl_vendor?: ReimbursementListResponse.GlVendor;
200
492
  /**
201
- * Category splits of the transaction amount.
493
+ * Category splits of the transaction amount. Updates replace the entire list.
202
494
  */
203
495
  line_items?: Array<ReimbursementListResponse.LineItem>;
204
496
  /**
@@ -211,9 +503,18 @@ export interface ReimbursementListResponse {
211
503
  */
212
504
  merchant_amount?: ReimbursementListResponse.MerchantAmount;
213
505
  /**
214
- * Company mileage rate. Null except on mileage reimbursements.
506
+ * Company mileage rate. Include with `expand=mileage_rate` using
507
+ * `reimbursements.read`.
508
+ *
509
+ * Expandable field
215
510
  */
216
511
  mileage_rate?: ReimbursementListResponse.MileageRate;
512
+ /**
513
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
514
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
515
+ * there is no standalone rate lookup endpoint.
516
+ */
517
+ mileage_rate_id?: string;
217
518
  /**
218
519
  * Amount credited to the worker. The `value` is a decimal string.
219
520
  */
@@ -236,17 +537,26 @@ export interface ReimbursementListResponse {
236
537
  */
237
538
  per_diem_line_items?: Array<ReimbursementListResponse.PerDiemLineItem>;
238
539
  /**
239
- * Per diem rate for the trip. Null except on per diem reimbursements.
540
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
541
+ * `reimbursements.read`.
542
+ *
543
+ * Expandable field
240
544
  */
241
545
  per_diem_rate?: ReimbursementListResponse.PerDiemRate;
242
546
  /**
243
- * URL of the receipt file.
547
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
548
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
549
+ * is no standalone rate lookup endpoint.
244
550
  */
245
- receipt?: string;
551
+ per_diem_rate_id?: string;
246
552
  /**
247
- * Mileage start address. Null when the trip has no start address.
553
+ * Receipt file and its filename.
248
554
  */
249
- start_address?: string;
555
+ receipt?: ReimbursementListResponse.Receipt;
556
+ /**
557
+ * Start of a mileage trip. Null except on mileage reimbursements.
558
+ */
559
+ start_location?: ReimbursementListResponse.StartLocation;
250
560
  /**
251
561
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
252
562
  */
@@ -269,15 +579,54 @@ export interface ReimbursementListResponse {
269
579
  */
270
580
  trip_start_date?: string;
271
581
  /**
272
- * Vendor the purchase was made from.
582
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
583
+ *
584
+ * Expandable field
273
585
  */
274
586
  vendor?: ReimbursementListResponse.Vendor;
587
+ /**
588
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
589
+ */
590
+ vendor_id?: string;
591
+ /**
592
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
593
+ * except on mileage reimbursements.
594
+ */
595
+ waypoints?: Array<ReimbursementListResponse.Waypoint>;
596
+ /**
597
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
598
+ *
599
+ * Expandable field
600
+ */
601
+ worker?: WorkersAPI.Worker;
275
602
  /**
276
603
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
277
604
  */
278
605
  worker_id?: string;
279
606
  }
280
607
  export declare namespace ReimbursementListResponse {
608
+ /**
609
+ * A Finance transaction attachment with recorded upload details.
610
+ */
611
+ interface Attachment {
612
+ /**
613
+ * URL for accessing the file.
614
+ */
615
+ url: string;
616
+ /**
617
+ * Original file name, when recorded.
618
+ */
619
+ file_name?: string;
620
+ /**
621
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
622
+ * recorded.
623
+ */
624
+ uploaded_at?: string;
625
+ /**
626
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
627
+ */
628
+ uploaded_by_id?: string;
629
+ }
281
630
  /**
282
631
  * Amount in the company's headquarters currency. The `value` is a decimal string.
283
632
  */
@@ -291,6 +640,36 @@ export declare namespace ReimbursementListResponse {
291
640
  */
292
641
  value?: number;
293
642
  }
643
+ /**
644
+ * End of a mileage trip. Null except on mileage reimbursements.
645
+ */
646
+ interface EndLocation {
647
+ /**
648
+ * Address of this point. Null when the point has no address.
649
+ */
650
+ address?: string;
651
+ /**
652
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
653
+ * has no coordinates.
654
+ */
655
+ coordinates?: EndLocation.Coordinates;
656
+ }
657
+ namespace EndLocation {
658
+ /**
659
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
660
+ * has no coordinates.
661
+ */
662
+ interface Coordinates {
663
+ /**
664
+ * Latitude of this point, in decimal degrees.
665
+ */
666
+ latitude?: number;
667
+ /**
668
+ * Longitude of this point, in decimal degrees.
669
+ */
670
+ longitude?: number;
671
+ }
672
+ }
294
673
  /**
295
674
  * Vendor in the connected accounting system.
296
675
  */
@@ -309,26 +688,49 @@ export declare namespace ReimbursementListResponse {
309
688
  name?: string;
310
689
  }
311
690
  interface LineItem {
691
+ /**
692
+ * Unique identifier of this line item. Null for older line items that have not
693
+ * been assigned one yet.
694
+ */
695
+ id?: string;
696
+ /**
697
+ * Whether this line is amortized.
698
+ */
699
+ amortized?: boolean;
312
700
  /**
313
701
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
314
702
  */
315
703
  amount?: LineItem.Amount;
316
704
  /**
317
- * ID of the Spend category assigned to this split. No public API is currently
318
- * available to retrieve this category; its name is in `category_name`.
705
+ * ID of the Finance category assigned to this split. Use it with
706
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
319
707
  */
320
708
  category_id?: string;
321
709
  /**
322
- * Name of the spend category.
710
+ * Name of the finance category.
323
711
  */
324
712
  category_name?: string;
325
713
  /**
326
- * Selected dimension values, keyed by dimension ID. Includes department and work
327
- * location.
714
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
715
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
716
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
717
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
328
718
  */
329
719
  dimension_choices?: {
330
720
  [key: string]: LineItem.DimensionChoices;
331
721
  };
722
+ /**
723
+ * End of the amortization period (YYYY-MM-DD).
724
+ */
725
+ end_date?: string;
726
+ /**
727
+ * ERP amortization schedule associated with this line.
728
+ */
729
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
730
+ /**
731
+ * ERP amortization template for this line.
732
+ */
733
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
332
734
  /**
333
735
  * Whether this split is billed to `gl_customer` in the accounting system.
334
736
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -340,10 +742,27 @@ export declare namespace ReimbursementListResponse {
340
742
  * Rippling API is currently available to retrieve this accounting customer.
341
743
  */
342
744
  gl_customer?: string;
745
+ /**
746
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
747
+ * available to retrieve this accounting tax code.
748
+ */
749
+ gl_tax_code?: string;
343
750
  /**
344
751
  * Memo entered on this split.
345
752
  */
346
753
  memo?: string;
754
+ /**
755
+ * Prepaid asset account for Rippling-managed amortization.
756
+ */
757
+ prepaid_account?: LineItem.PrepaidAccount;
758
+ /**
759
+ * Start of the amortization period (YYYY-MM-DD).
760
+ */
761
+ start_date?: string;
762
+ /**
763
+ * Total tax amount for this line in the merchant currency.
764
+ */
765
+ tax_amount?: LineItem.TaxAmount;
347
766
  }
348
767
  namespace LineItem {
349
768
  /**
@@ -369,10 +788,149 @@ export declare namespace ReimbursementListResponse {
369
788
  */
370
789
  label?: string;
371
790
  /**
372
- * ID of the selected dimension value.
791
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
792
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
793
+ * `/job-codes/{id}/`.
373
794
  */
374
795
  value?: string;
375
796
  }
797
+ /**
798
+ * ERP amortization schedule associated with this line.
799
+ */
800
+ interface GlAmortizationSchedule {
801
+ /**
802
+ * Rippling ID of the accounting integration that owns this object. No public
803
+ * Rippling API is currently available to retrieve this accounting integration.
804
+ */
805
+ accounting_integration_id?: string;
806
+ /**
807
+ * Number of amortization periods.
808
+ */
809
+ amortization_period?: number;
810
+ /**
811
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
812
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
813
+ * indicate UTC. Null when not set.
814
+ */
815
+ end_date?: string;
816
+ /**
817
+ * Object ID in the connected accounting system.
818
+ */
819
+ gl_object_id?: string;
820
+ /**
821
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
822
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
823
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
824
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
825
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
826
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
827
+ * when not set.
828
+ */
829
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
830
+ /**
831
+ * Accounting object name.
832
+ */
833
+ name?: string;
834
+ /**
835
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
836
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
837
+ * indicate UTC. Null when not set.
838
+ */
839
+ start_date?: string;
840
+ /**
841
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
842
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
843
+ * complete; ON_HOLD means amortization is paused. Null when not set.
844
+ */
845
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
846
+ /**
847
+ * Amount already amortized as reported by the ERP, in the same currency as
848
+ * total_amount. No currency conversion is applied; the schedule currency code is
849
+ * not available in this response.
850
+ */
851
+ total_amortized_amount?: number;
852
+ /**
853
+ * Total schedule amount as reported by the ERP, without currency conversion. The
854
+ * schedule currency code is not available in this response.
855
+ */
856
+ total_amount?: number;
857
+ }
858
+ /**
859
+ * ERP amortization template for this line.
860
+ */
861
+ interface GlAmortizationTemplate {
862
+ /**
863
+ * Rippling ID of the accounting integration that owns this object. No public
864
+ * Rippling API is currently available to retrieve this accounting integration.
865
+ */
866
+ accounting_integration_id?: string;
867
+ /**
868
+ * Object ID in the connected accounting system.
869
+ */
870
+ gl_object_id?: string;
871
+ /**
872
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
873
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
874
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
875
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
876
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
877
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
878
+ * when not set.
879
+ */
880
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
881
+ /**
882
+ * Accounting object name.
883
+ */
884
+ name?: string;
885
+ }
886
+ /**
887
+ * Prepaid asset account for Rippling-managed amortization.
888
+ */
889
+ interface PrepaidAccount {
890
+ /**
891
+ * Account ID in the connected accounting system.
892
+ */
893
+ account_id?: string;
894
+ /**
895
+ * Account code.
896
+ */
897
+ code?: string;
898
+ /**
899
+ * Account name.
900
+ */
901
+ name?: string;
902
+ /**
903
+ * IDs of custom dimensions required by this account.
904
+ */
905
+ required_custom_dimensions?: Array<string>;
906
+ /**
907
+ * Whether this account requires a department.
908
+ */
909
+ requires_department?: boolean;
910
+ /**
911
+ * Whether this account requires a work location.
912
+ */
913
+ requires_work_location?: boolean;
914
+ /**
915
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
916
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
917
+ * when not set.
918
+ */
919
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
920
+ }
921
+ /**
922
+ * Total tax amount for this line in the merchant currency.
923
+ */
924
+ interface TaxAmount {
925
+ /**
926
+ * The currency type, ex: USD, EUR, etc.
927
+ */
928
+ currency_type?: string;
929
+ /**
930
+ * The decimal amount for the currency.
931
+ */
932
+ value?: number;
933
+ }
376
934
  }
377
935
  /**
378
936
  * Amount charged by the merchant, in the merchant currency. The `value` is a
@@ -389,13 +947,36 @@ export declare namespace ReimbursementListResponse {
389
947
  value?: number;
390
948
  }
391
949
  /**
392
- * Company mileage rate. Null except on mileage reimbursements.
950
+ * Company mileage rate. Include with `expand=mileage_rate` using
951
+ * `reimbursements.read`.
952
+ *
953
+ * Expandable field
393
954
  */
394
955
  interface MileageRate {
395
956
  /**
396
957
  * Company mileage rate ID.
397
958
  */
398
- id?: string;
959
+ id: string;
960
+ /**
961
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
962
+ */
963
+ created_at: string;
964
+ /**
965
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
966
+ */
967
+ updated_at: string;
968
+ /**
969
+ * ISO 3166-1 alpha-2 country code.
970
+ */
971
+ country?: string;
972
+ /**
973
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
974
+ */
975
+ end_date?: string;
976
+ /**
977
+ * Whether an additional half cent per distance unit applies.
978
+ */
979
+ half_cent?: boolean;
399
980
  /**
400
981
  * Company-defined label for this mileage rate, such as the rate used for a country
401
982
  * or vehicle type.
@@ -405,6 +986,10 @@ export declare namespace ReimbursementListResponse {
405
986
  * Amount per distance unit. The `value` is a decimal string.
406
987
  */
407
988
  rate?: MileageRate.Rate;
989
+ /**
990
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
991
+ */
992
+ start_date?: string;
408
993
  /**
409
994
  * Distance unit, mi or km.
410
995
  */
@@ -501,13 +1086,24 @@ export declare namespace ReimbursementListResponse {
501
1086
  }
502
1087
  }
503
1088
  /**
504
- * Per diem rate for the trip. Null except on per diem reimbursements.
1089
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
1090
+ * `reimbursements.read`.
1091
+ *
1092
+ * Expandable field
505
1093
  */
506
1094
  interface PerDiemRate {
507
1095
  /**
508
1096
  * Per diem rate ID.
509
1097
  */
510
- id?: string;
1098
+ id: string;
1099
+ /**
1100
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
1101
+ */
1102
+ created_at: string;
1103
+ /**
1104
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
1105
+ */
1106
+ updated_at: string;
511
1107
  /**
512
1108
  * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
513
1109
  * US.
@@ -521,37 +1117,147 @@ export declare namespace ReimbursementListResponse {
521
1117
  * Place this per diem rate applies to, such as a city.
522
1118
  */
523
1119
  destination_name?: string;
1120
+ /**
1121
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1122
+ */
1123
+ end_date?: string;
1124
+ /**
1125
+ * Whether the rate is archived. Archived rates remain readable for historical
1126
+ * references.
1127
+ */
1128
+ is_archived?: boolean;
1129
+ /**
1130
+ * Whether this is the current version of the rate.
1131
+ */
1132
+ is_current?: boolean;
1133
+ /**
1134
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1135
+ */
1136
+ start_date?: string;
524
1137
  }
525
1138
  /**
526
- * Vendor the purchase was made from.
1139
+ * Receipt file and its filename.
527
1140
  */
528
- interface Vendor {
1141
+ interface Receipt {
529
1142
  /**
530
- * ID of the vendor.
1143
+ * URL for accessing the file.
531
1144
  */
532
- id?: string;
1145
+ url: string;
533
1146
  /**
534
- * Name of the vendor.
1147
+ * Original file name, when recorded.
535
1148
  */
536
- name?: string;
1149
+ file_name?: string;
537
1150
  }
538
- }
539
- /**
540
- * Meta information for the response.
541
- */
542
- export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta {
543
- /**
544
- * Identifier field
545
- */
546
- id: string;
547
1151
  /**
548
- * Record creation date
1152
+ * Start of a mileage trip. Null except on mileage reimbursements.
549
1153
  */
550
- created_at: string;
1154
+ interface StartLocation {
1155
+ /**
1156
+ * Address of this point. Null when the point has no address.
1157
+ */
1158
+ address?: string;
1159
+ /**
1160
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1161
+ * has no coordinates.
1162
+ */
1163
+ coordinates?: StartLocation.Coordinates;
1164
+ }
1165
+ namespace StartLocation {
1166
+ /**
1167
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1168
+ * has no coordinates.
1169
+ */
1170
+ interface Coordinates {
1171
+ /**
1172
+ * Latitude of this point, in decimal degrees.
1173
+ */
1174
+ latitude?: number;
1175
+ /**
1176
+ * Longitude of this point, in decimal degrees.
1177
+ */
1178
+ longitude?: number;
1179
+ }
1180
+ }
551
1181
  /**
552
- * Record update date
1182
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
1183
+ *
1184
+ * Expandable field
553
1185
  */
554
- updated_at: string;
1186
+ interface Vendor {
1187
+ /**
1188
+ * Identifier field
1189
+ */
1190
+ id: string;
1191
+ /**
1192
+ * Record creation date
1193
+ */
1194
+ created_at: string;
1195
+ /**
1196
+ * Record update date
1197
+ */
1198
+ updated_at: string;
1199
+ /**
1200
+ * Whether the vendor is archived. Archived vendors remain available for historical
1201
+ * references.
1202
+ */
1203
+ is_archived?: boolean;
1204
+ /**
1205
+ * URL of the vendor's logo. Null when no logo is available.
1206
+ */
1207
+ logo?: string;
1208
+ /**
1209
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
1210
+ * alternate names.
1211
+ */
1212
+ name?: string;
1213
+ }
1214
+ /**
1215
+ * Start, end, or intermediate stop on a mileage trip.
1216
+ */
1217
+ interface Waypoint {
1218
+ /**
1219
+ * Address of this point. Null when the point has no address.
1220
+ */
1221
+ address?: string;
1222
+ /**
1223
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1224
+ * has no coordinates.
1225
+ */
1226
+ coordinates?: Waypoint.Coordinates;
1227
+ }
1228
+ namespace Waypoint {
1229
+ /**
1230
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1231
+ * has no coordinates.
1232
+ */
1233
+ interface Coordinates {
1234
+ /**
1235
+ * Latitude of this point, in decimal degrees.
1236
+ */
1237
+ latitude?: number;
1238
+ /**
1239
+ * Longitude of this point, in decimal degrees.
1240
+ */
1241
+ longitude?: number;
1242
+ }
1243
+ }
1244
+ }
1245
+ /**
1246
+ * Meta information for the response.
1247
+ */
1248
+ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta {
1249
+ /**
1250
+ * Identifier field
1251
+ */
1252
+ id: string;
1253
+ /**
1254
+ * Record creation date
1255
+ */
1256
+ created_at: string;
1257
+ /**
1258
+ * Record update date
1259
+ */
1260
+ updated_at: string;
555
1261
  /**
556
1262
  * Date the transaction is booked in the accounting system, as an ISO 8601 date
557
1263
  * (YYYY-MM-DD).
@@ -567,9 +1273,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
567
1273
  */
568
1274
  approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
569
1275
  /**
570
- * URLs of other attached files.
1276
+ * Other attached files, including filenames and recorded upload metadata.
571
1277
  */
572
- attachments?: Array<string>;
1278
+ attachments?: Array<ReimbursementRetrieveResponse.Attachment>;
573
1279
  /**
574
1280
  * Amount in the company's headquarters currency. The `value` is a decimal string.
575
1281
  */
@@ -579,9 +1285,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
579
1285
  */
580
1286
  distance?: number;
581
1287
  /**
582
- * Mileage end address. Null when the trip has no end address.
1288
+ * End of a mileage trip. Null except on mileage reimbursements.
583
1289
  */
584
- end_address?: string;
1290
+ end_location?: ReimbursementRetrieveResponse.EndLocation;
585
1291
  /**
586
1292
  * ID of the legal entity the transaction belongs to. Use it with
587
1293
  * `/company-legal-entities/{id}/`.
@@ -601,7 +1307,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
601
1307
  */
602
1308
  gl_vendor?: ReimbursementRetrieveResponse.GlVendor;
603
1309
  /**
604
- * Category splits of the transaction amount.
1310
+ * Category splits of the transaction amount. Updates replace the entire list.
605
1311
  */
606
1312
  line_items?: Array<ReimbursementRetrieveResponse.LineItem>;
607
1313
  /**
@@ -614,9 +1320,18 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
614
1320
  */
615
1321
  merchant_amount?: ReimbursementRetrieveResponse.MerchantAmount;
616
1322
  /**
617
- * Company mileage rate. Null except on mileage reimbursements.
1323
+ * Company mileage rate. Include with `expand=mileage_rate` using
1324
+ * `reimbursements.read`.
1325
+ *
1326
+ * Expandable field
618
1327
  */
619
1328
  mileage_rate?: ReimbursementRetrieveResponse.MileageRate;
1329
+ /**
1330
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
1331
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
1332
+ * there is no standalone rate lookup endpoint.
1333
+ */
1334
+ mileage_rate_id?: string;
620
1335
  /**
621
1336
  * Amount credited to the worker. The `value` is a decimal string.
622
1337
  */
@@ -639,17 +1354,26 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
639
1354
  */
640
1355
  per_diem_line_items?: Array<ReimbursementRetrieveResponse.PerDiemLineItem>;
641
1356
  /**
642
- * Per diem rate for the trip. Null except on per diem reimbursements.
1357
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
1358
+ * `reimbursements.read`.
1359
+ *
1360
+ * Expandable field
643
1361
  */
644
1362
  per_diem_rate?: ReimbursementRetrieveResponse.PerDiemRate;
645
1363
  /**
646
- * URL of the receipt file.
1364
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
1365
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
1366
+ * is no standalone rate lookup endpoint.
1367
+ */
1368
+ per_diem_rate_id?: string;
1369
+ /**
1370
+ * Receipt file and its filename.
647
1371
  */
648
- receipt?: string;
1372
+ receipt?: ReimbursementRetrieveResponse.Receipt;
649
1373
  /**
650
- * Mileage start address. Null when the trip has no start address.
1374
+ * Start of a mileage trip. Null except on mileage reimbursements.
651
1375
  */
652
- start_address?: string;
1376
+ start_location?: ReimbursementRetrieveResponse.StartLocation;
653
1377
  /**
654
1378
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
655
1379
  */
@@ -672,15 +1396,54 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
672
1396
  */
673
1397
  trip_start_date?: string;
674
1398
  /**
675
- * Vendor the purchase was made from.
1399
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
1400
+ *
1401
+ * Expandable field
676
1402
  */
677
1403
  vendor?: ReimbursementRetrieveResponse.Vendor;
1404
+ /**
1405
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
1406
+ */
1407
+ vendor_id?: string;
1408
+ /**
1409
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
1410
+ * except on mileage reimbursements.
1411
+ */
1412
+ waypoints?: Array<ReimbursementRetrieveResponse.Waypoint>;
1413
+ /**
1414
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
1415
+ *
1416
+ * Expandable field
1417
+ */
1418
+ worker?: WorkersAPI.Worker;
678
1419
  /**
679
1420
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
680
1421
  */
681
1422
  worker_id?: string;
682
1423
  }
683
1424
  export declare namespace ReimbursementRetrieveResponse {
1425
+ /**
1426
+ * A Finance transaction attachment with recorded upload details.
1427
+ */
1428
+ interface Attachment {
1429
+ /**
1430
+ * URL for accessing the file.
1431
+ */
1432
+ url: string;
1433
+ /**
1434
+ * Original file name, when recorded.
1435
+ */
1436
+ file_name?: string;
1437
+ /**
1438
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
1439
+ * recorded.
1440
+ */
1441
+ uploaded_at?: string;
1442
+ /**
1443
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
1444
+ */
1445
+ uploaded_by_id?: string;
1446
+ }
684
1447
  /**
685
1448
  * Amount in the company's headquarters currency. The `value` is a decimal string.
686
1449
  */
@@ -694,6 +1457,36 @@ export declare namespace ReimbursementRetrieveResponse {
694
1457
  */
695
1458
  value?: number;
696
1459
  }
1460
+ /**
1461
+ * End of a mileage trip. Null except on mileage reimbursements.
1462
+ */
1463
+ interface EndLocation {
1464
+ /**
1465
+ * Address of this point. Null when the point has no address.
1466
+ */
1467
+ address?: string;
1468
+ /**
1469
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1470
+ * has no coordinates.
1471
+ */
1472
+ coordinates?: EndLocation.Coordinates;
1473
+ }
1474
+ namespace EndLocation {
1475
+ /**
1476
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1477
+ * has no coordinates.
1478
+ */
1479
+ interface Coordinates {
1480
+ /**
1481
+ * Latitude of this point, in decimal degrees.
1482
+ */
1483
+ latitude?: number;
1484
+ /**
1485
+ * Longitude of this point, in decimal degrees.
1486
+ */
1487
+ longitude?: number;
1488
+ }
1489
+ }
697
1490
  /**
698
1491
  * Vendor in the connected accounting system.
699
1492
  */
@@ -712,26 +1505,49 @@ export declare namespace ReimbursementRetrieveResponse {
712
1505
  name?: string;
713
1506
  }
714
1507
  interface LineItem {
1508
+ /**
1509
+ * Unique identifier of this line item. Null for older line items that have not
1510
+ * been assigned one yet.
1511
+ */
1512
+ id?: string;
1513
+ /**
1514
+ * Whether this line is amortized.
1515
+ */
1516
+ amortized?: boolean;
715
1517
  /**
716
1518
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
717
1519
  */
718
1520
  amount?: LineItem.Amount;
719
1521
  /**
720
- * ID of the Spend category assigned to this split. No public API is currently
721
- * available to retrieve this category; its name is in `category_name`.
1522
+ * ID of the Finance category assigned to this split. Use it with
1523
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
722
1524
  */
723
1525
  category_id?: string;
724
1526
  /**
725
- * Name of the spend category.
1527
+ * Name of the finance category.
726
1528
  */
727
1529
  category_name?: string;
728
1530
  /**
729
- * Selected dimension values, keyed by dimension ID. Includes department and work
730
- * location.
1531
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
1532
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
1533
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
1534
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
731
1535
  */
732
1536
  dimension_choices?: {
733
1537
  [key: string]: LineItem.DimensionChoices;
734
1538
  };
1539
+ /**
1540
+ * End of the amortization period (YYYY-MM-DD).
1541
+ */
1542
+ end_date?: string;
1543
+ /**
1544
+ * ERP amortization schedule associated with this line.
1545
+ */
1546
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
1547
+ /**
1548
+ * ERP amortization template for this line.
1549
+ */
1550
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
735
1551
  /**
736
1552
  * Whether this split is billed to `gl_customer` in the accounting system.
737
1553
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -743,10 +1559,27 @@ export declare namespace ReimbursementRetrieveResponse {
743
1559
  * Rippling API is currently available to retrieve this accounting customer.
744
1560
  */
745
1561
  gl_customer?: string;
1562
+ /**
1563
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
1564
+ * available to retrieve this accounting tax code.
1565
+ */
1566
+ gl_tax_code?: string;
746
1567
  /**
747
1568
  * Memo entered on this split.
748
1569
  */
749
1570
  memo?: string;
1571
+ /**
1572
+ * Prepaid asset account for Rippling-managed amortization.
1573
+ */
1574
+ prepaid_account?: LineItem.PrepaidAccount;
1575
+ /**
1576
+ * Start of the amortization period (YYYY-MM-DD).
1577
+ */
1578
+ start_date?: string;
1579
+ /**
1580
+ * Total tax amount for this line in the merchant currency.
1581
+ */
1582
+ tax_amount?: LineItem.TaxAmount;
750
1583
  }
751
1584
  namespace LineItem {
752
1585
  /**
@@ -772,10 +1605,149 @@ export declare namespace ReimbursementRetrieveResponse {
772
1605
  */
773
1606
  label?: string;
774
1607
  /**
775
- * ID of the selected dimension value.
1608
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
1609
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
1610
+ * `/job-codes/{id}/`.
776
1611
  */
777
1612
  value?: string;
778
1613
  }
1614
+ /**
1615
+ * ERP amortization schedule associated with this line.
1616
+ */
1617
+ interface GlAmortizationSchedule {
1618
+ /**
1619
+ * Rippling ID of the accounting integration that owns this object. No public
1620
+ * Rippling API is currently available to retrieve this accounting integration.
1621
+ */
1622
+ accounting_integration_id?: string;
1623
+ /**
1624
+ * Number of amortization periods.
1625
+ */
1626
+ amortization_period?: number;
1627
+ /**
1628
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1629
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
1630
+ * indicate UTC. Null when not set.
1631
+ */
1632
+ end_date?: string;
1633
+ /**
1634
+ * Object ID in the connected accounting system.
1635
+ */
1636
+ gl_object_id?: string;
1637
+ /**
1638
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1639
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1640
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1641
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1642
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1643
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1644
+ * when not set.
1645
+ */
1646
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
1647
+ /**
1648
+ * Accounting object name.
1649
+ */
1650
+ name?: string;
1651
+ /**
1652
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1653
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
1654
+ * indicate UTC. Null when not set.
1655
+ */
1656
+ start_date?: string;
1657
+ /**
1658
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
1659
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
1660
+ * complete; ON_HOLD means amortization is paused. Null when not set.
1661
+ */
1662
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
1663
+ /**
1664
+ * Amount already amortized as reported by the ERP, in the same currency as
1665
+ * total_amount. No currency conversion is applied; the schedule currency code is
1666
+ * not available in this response.
1667
+ */
1668
+ total_amortized_amount?: number;
1669
+ /**
1670
+ * Total schedule amount as reported by the ERP, without currency conversion. The
1671
+ * schedule currency code is not available in this response.
1672
+ */
1673
+ total_amount?: number;
1674
+ }
1675
+ /**
1676
+ * ERP amortization template for this line.
1677
+ */
1678
+ interface GlAmortizationTemplate {
1679
+ /**
1680
+ * Rippling ID of the accounting integration that owns this object. No public
1681
+ * Rippling API is currently available to retrieve this accounting integration.
1682
+ */
1683
+ accounting_integration_id?: string;
1684
+ /**
1685
+ * Object ID in the connected accounting system.
1686
+ */
1687
+ gl_object_id?: string;
1688
+ /**
1689
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1690
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1691
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1692
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1693
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1694
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1695
+ * when not set.
1696
+ */
1697
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
1698
+ /**
1699
+ * Accounting object name.
1700
+ */
1701
+ name?: string;
1702
+ }
1703
+ /**
1704
+ * Prepaid asset account for Rippling-managed amortization.
1705
+ */
1706
+ interface PrepaidAccount {
1707
+ /**
1708
+ * Account ID in the connected accounting system.
1709
+ */
1710
+ account_id?: string;
1711
+ /**
1712
+ * Account code.
1713
+ */
1714
+ code?: string;
1715
+ /**
1716
+ * Account name.
1717
+ */
1718
+ name?: string;
1719
+ /**
1720
+ * IDs of custom dimensions required by this account.
1721
+ */
1722
+ required_custom_dimensions?: Array<string>;
1723
+ /**
1724
+ * Whether this account requires a department.
1725
+ */
1726
+ requires_department?: boolean;
1727
+ /**
1728
+ * Whether this account requires a work location.
1729
+ */
1730
+ requires_work_location?: boolean;
1731
+ /**
1732
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
1733
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
1734
+ * when not set.
1735
+ */
1736
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
1737
+ }
1738
+ /**
1739
+ * Total tax amount for this line in the merchant currency.
1740
+ */
1741
+ interface TaxAmount {
1742
+ /**
1743
+ * The currency type, ex: USD, EUR, etc.
1744
+ */
1745
+ currency_type?: string;
1746
+ /**
1747
+ * The decimal amount for the currency.
1748
+ */
1749
+ value?: number;
1750
+ }
779
1751
  }
780
1752
  /**
781
1753
  * Amount charged by the merchant, in the merchant currency. The `value` is a
@@ -792,13 +1764,36 @@ export declare namespace ReimbursementRetrieveResponse {
792
1764
  value?: number;
793
1765
  }
794
1766
  /**
795
- * Company mileage rate. Null except on mileage reimbursements.
1767
+ * Company mileage rate. Include with `expand=mileage_rate` using
1768
+ * `reimbursements.read`.
1769
+ *
1770
+ * Expandable field
796
1771
  */
797
1772
  interface MileageRate {
798
1773
  /**
799
1774
  * Company mileage rate ID.
800
1775
  */
801
- id?: string;
1776
+ id: string;
1777
+ /**
1778
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
1779
+ */
1780
+ created_at: string;
1781
+ /**
1782
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
1783
+ */
1784
+ updated_at: string;
1785
+ /**
1786
+ * ISO 3166-1 alpha-2 country code.
1787
+ */
1788
+ country?: string;
1789
+ /**
1790
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1791
+ */
1792
+ end_date?: string;
1793
+ /**
1794
+ * Whether an additional half cent per distance unit applies.
1795
+ */
1796
+ half_cent?: boolean;
802
1797
  /**
803
1798
  * Company-defined label for this mileage rate, such as the rate used for a country
804
1799
  * or vehicle type.
@@ -808,6 +1803,10 @@ export declare namespace ReimbursementRetrieveResponse {
808
1803
  * Amount per distance unit. The `value` is a decimal string.
809
1804
  */
810
1805
  rate?: MileageRate.Rate;
1806
+ /**
1807
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1808
+ */
1809
+ start_date?: string;
811
1810
  /**
812
1811
  * Distance unit, mi or km.
813
1812
  */
@@ -904,13 +1903,24 @@ export declare namespace ReimbursementRetrieveResponse {
904
1903
  }
905
1904
  }
906
1905
  /**
907
- * Per diem rate for the trip. Null except on per diem reimbursements.
1906
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
1907
+ * `reimbursements.read`.
1908
+ *
1909
+ * Expandable field
908
1910
  */
909
1911
  interface PerDiemRate {
910
1912
  /**
911
1913
  * Per diem rate ID.
912
1914
  */
913
- id?: string;
1915
+ id: string;
1916
+ /**
1917
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
1918
+ */
1919
+ created_at: string;
1920
+ /**
1921
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
1922
+ */
1923
+ updated_at: string;
914
1924
  /**
915
1925
  * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
916
1926
  * US.
@@ -924,31 +1934,1089 @@ export declare namespace ReimbursementRetrieveResponse {
924
1934
  * Place this per diem rate applies to, such as a city.
925
1935
  */
926
1936
  destination_name?: string;
1937
+ /**
1938
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1939
+ */
1940
+ end_date?: string;
1941
+ /**
1942
+ * Whether the rate is archived. Archived rates remain readable for historical
1943
+ * references.
1944
+ */
1945
+ is_archived?: boolean;
1946
+ /**
1947
+ * Whether this is the current version of the rate.
1948
+ */
1949
+ is_current?: boolean;
1950
+ /**
1951
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1952
+ */
1953
+ start_date?: string;
1954
+ }
1955
+ /**
1956
+ * Receipt file and its filename.
1957
+ */
1958
+ interface Receipt {
1959
+ /**
1960
+ * URL for accessing the file.
1961
+ */
1962
+ url: string;
1963
+ /**
1964
+ * Original file name, when recorded.
1965
+ */
1966
+ file_name?: string;
1967
+ }
1968
+ /**
1969
+ * Start of a mileage trip. Null except on mileage reimbursements.
1970
+ */
1971
+ interface StartLocation {
1972
+ /**
1973
+ * Address of this point. Null when the point has no address.
1974
+ */
1975
+ address?: string;
1976
+ /**
1977
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1978
+ * has no coordinates.
1979
+ */
1980
+ coordinates?: StartLocation.Coordinates;
1981
+ }
1982
+ namespace StartLocation {
1983
+ /**
1984
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1985
+ * has no coordinates.
1986
+ */
1987
+ interface Coordinates {
1988
+ /**
1989
+ * Latitude of this point, in decimal degrees.
1990
+ */
1991
+ latitude?: number;
1992
+ /**
1993
+ * Longitude of this point, in decimal degrees.
1994
+ */
1995
+ longitude?: number;
1996
+ }
927
1997
  }
928
1998
  /**
929
- * Vendor the purchase was made from.
1999
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
2000
+ *
2001
+ * Expandable field
930
2002
  */
931
2003
  interface Vendor {
932
2004
  /**
933
- * ID of the vendor.
2005
+ * Identifier field
934
2006
  */
935
- id?: string;
2007
+ id: string;
2008
+ /**
2009
+ * Record creation date
2010
+ */
2011
+ created_at: string;
2012
+ /**
2013
+ * Record update date
2014
+ */
2015
+ updated_at: string;
2016
+ /**
2017
+ * Whether the vendor is archived. Archived vendors remain available for historical
2018
+ * references.
2019
+ */
2020
+ is_archived?: boolean;
2021
+ /**
2022
+ * URL of the vendor's logo. Null when no logo is available.
2023
+ */
2024
+ logo?: string;
936
2025
  /**
937
- * Name of the vendor.
2026
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
2027
+ * alternate names.
938
2028
  */
939
2029
  name?: string;
940
2030
  }
2031
+ /**
2032
+ * Start, end, or intermediate stop on a mileage trip.
2033
+ */
2034
+ interface Waypoint {
2035
+ /**
2036
+ * Address of this point. Null when the point has no address.
2037
+ */
2038
+ address?: string;
2039
+ /**
2040
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2041
+ * has no coordinates.
2042
+ */
2043
+ coordinates?: Waypoint.Coordinates;
2044
+ }
2045
+ namespace Waypoint {
2046
+ /**
2047
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2048
+ * has no coordinates.
2049
+ */
2050
+ interface Coordinates {
2051
+ /**
2052
+ * Latitude of this point, in decimal degrees.
2053
+ */
2054
+ latitude?: number;
2055
+ /**
2056
+ * Longitude of this point, in decimal degrees.
2057
+ */
2058
+ longitude?: number;
2059
+ }
2060
+ }
941
2061
  }
942
- export interface ReimbursementListParams {
943
- cursor?: string;
944
- filter?: string;
2062
+ /**
2063
+ * A Finance reimbursement the caller can see.
2064
+ *
2065
+ * A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
2066
+ * use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
2067
+ * Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
2068
+ * that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
2069
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
2070
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
2071
+ * The sum of request `amount` values must equal the reimbursement's merchant amount.
2072
+ */
2073
+ export interface ReimbursementUpdateResponse {
945
2074
  /**
946
- * The maximum number of results to return. Defaults to 50. Maximum is 100.
2075
+ * Identifier field
947
2076
  */
948
- limit?: number;
2077
+ id: string;
2078
+ /**
2079
+ * Record creation date
2080
+ */
2081
+ created_at: string;
2082
+ /**
2083
+ * Record update date
2084
+ */
2085
+ updated_at: string;
2086
+ /**
2087
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
2088
+ * (YYYY-MM-DD).
2089
+ */
2090
+ accounting_date?: string;
2091
+ /**
2092
+ * Approval status of the transaction. `DRAFT`: not submitted for approval.
2093
+ * `PENDING`: awaiting required information or submission before approval.
2094
+ * `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
2095
+ * rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
2096
+ * reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
2097
+ * for card authorizations.
2098
+ */
2099
+ approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
2100
+ /**
2101
+ * Other attached files, including filenames and recorded upload metadata.
2102
+ */
2103
+ attachments?: Array<ReimbursementUpdateResponse.Attachment>;
2104
+ /**
2105
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2106
+ */
2107
+ company_amount?: ReimbursementUpdateResponse.CompanyAmount;
2108
+ /**
2109
+ * Trip length in mileage_rate.units. Null except on mileage reimbursements.
2110
+ */
2111
+ distance?: number;
2112
+ /**
2113
+ * End of a mileage trip. Null except on mileage reimbursements.
2114
+ */
2115
+ end_location?: ReimbursementUpdateResponse.EndLocation;
2116
+ /**
2117
+ * ID of the legal entity the transaction belongs to. Use it with
2118
+ * `/company-legal-entities/{id}/`.
2119
+ */
2120
+ entity_id?: string;
2121
+ /**
2122
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
2123
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
2124
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
2125
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
2126
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
2127
+ * be synced automatically. Null when no sync state is set.
2128
+ */
2129
+ gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
2130
+ /**
2131
+ * Vendor in the connected accounting system.
2132
+ */
2133
+ gl_vendor?: ReimbursementUpdateResponse.GlVendor;
2134
+ /**
2135
+ * Category splits of the transaction amount. Updates replace the entire list.
2136
+ */
2137
+ line_items?: Array<ReimbursementUpdateResponse.LineItem>;
2138
+ /**
2139
+ * Memo entered on the transaction.
2140
+ */
2141
+ memo?: string;
2142
+ /**
2143
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2144
+ * decimal string.
2145
+ */
2146
+ merchant_amount?: ReimbursementUpdateResponse.MerchantAmount;
2147
+ /**
2148
+ * Company mileage rate. Include with `expand=mileage_rate` using
2149
+ * `reimbursements.read`.
2150
+ *
2151
+ * Expandable field
2152
+ */
2153
+ mileage_rate?: ReimbursementUpdateResponse.MileageRate;
2154
+ /**
2155
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
2156
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
2157
+ * there is no standalone rate lookup endpoint.
2158
+ */
2159
+ mileage_rate_id?: string;
2160
+ /**
2161
+ * Amount credited to the worker. The `value` is a decimal string.
2162
+ */
2163
+ payout_amount?: ReimbursementUpdateResponse.PayoutAmount;
2164
+ /**
2165
+ * Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
2166
+ * assigned.
2167
+ */
2168
+ payout_date?: string;
2169
+ /**
2170
+ * How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
2171
+ * assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
2172
+ * run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
2173
+ * employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
2174
+ * method override is set, it is returned.
2175
+ */
2176
+ payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
2177
+ /**
2178
+ * Per diem sub-rate rows. Null except on per diem reimbursements.
2179
+ */
2180
+ per_diem_line_items?: Array<ReimbursementUpdateResponse.PerDiemLineItem>;
2181
+ /**
2182
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
2183
+ * `reimbursements.read`.
2184
+ *
2185
+ * Expandable field
2186
+ */
2187
+ per_diem_rate?: ReimbursementUpdateResponse.PerDiemRate;
2188
+ /**
2189
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
2190
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
2191
+ * is no standalone rate lookup endpoint.
2192
+ */
2193
+ per_diem_rate_id?: string;
2194
+ /**
2195
+ * Receipt file and its filename.
2196
+ */
2197
+ receipt?: ReimbursementUpdateResponse.Receipt;
2198
+ /**
2199
+ * Start of a mileage trip. Null except on mileage reimbursements.
2200
+ */
2201
+ start_location?: ReimbursementUpdateResponse.StartLocation;
2202
+ /**
2203
+ * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
2204
+ */
2205
+ transaction_date?: string;
2206
+ /**
2207
+ * `REIMBURSEMENT`: an expense the worker paid and the company pays back.
2208
+ * `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
2209
+ * payback for a daily travel allowance. This decides which mileage or per diem
2210
+ * fields are set.
2211
+ */
2212
+ transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
2213
+ /**
2214
+ * Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
2215
+ * diem reimbursements.
2216
+ */
2217
+ trip_end_date?: string;
2218
+ /**
2219
+ * Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
2220
+ * diem reimbursements.
2221
+ */
2222
+ trip_start_date?: string;
2223
+ /**
2224
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
2225
+ *
2226
+ * Expandable field
2227
+ */
2228
+ vendor?: ReimbursementUpdateResponse.Vendor;
2229
+ /**
2230
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
2231
+ */
2232
+ vendor_id?: string;
2233
+ /**
2234
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
2235
+ * except on mileage reimbursements.
2236
+ */
2237
+ waypoints?: Array<ReimbursementUpdateResponse.Waypoint>;
2238
+ /**
2239
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
2240
+ *
2241
+ * Expandable field
2242
+ */
2243
+ worker?: WorkersAPI.Worker;
2244
+ /**
2245
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
2246
+ */
2247
+ worker_id?: string;
2248
+ }
2249
+ export declare namespace ReimbursementUpdateResponse {
2250
+ /**
2251
+ * A Finance transaction attachment with recorded upload details.
2252
+ */
2253
+ interface Attachment {
2254
+ /**
2255
+ * URL for accessing the file.
2256
+ */
2257
+ url: string;
2258
+ /**
2259
+ * Original file name, when recorded.
2260
+ */
2261
+ file_name?: string;
2262
+ /**
2263
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
2264
+ * recorded.
2265
+ */
2266
+ uploaded_at?: string;
2267
+ /**
2268
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
2269
+ */
2270
+ uploaded_by_id?: string;
2271
+ }
2272
+ /**
2273
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2274
+ */
2275
+ interface CompanyAmount {
2276
+ /**
2277
+ * The currency type, ex: USD, EUR, etc.
2278
+ */
2279
+ currency_type?: string;
2280
+ /**
2281
+ * The decimal amount for the currency.
2282
+ */
2283
+ value?: number;
2284
+ }
2285
+ /**
2286
+ * End of a mileage trip. Null except on mileage reimbursements.
2287
+ */
2288
+ interface EndLocation {
2289
+ /**
2290
+ * Address of this point. Null when the point has no address.
2291
+ */
2292
+ address?: string;
2293
+ /**
2294
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2295
+ * has no coordinates.
2296
+ */
2297
+ coordinates?: EndLocation.Coordinates;
2298
+ }
2299
+ namespace EndLocation {
2300
+ /**
2301
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2302
+ * has no coordinates.
2303
+ */
2304
+ interface Coordinates {
2305
+ /**
2306
+ * Latitude of this point, in decimal degrees.
2307
+ */
2308
+ latitude?: number;
2309
+ /**
2310
+ * Longitude of this point, in decimal degrees.
2311
+ */
2312
+ longitude?: number;
2313
+ }
2314
+ }
2315
+ /**
2316
+ * Vendor in the connected accounting system.
2317
+ */
2318
+ interface GlVendor {
2319
+ /**
2320
+ * ID of the accounting vendor in Rippling.
2321
+ */
2322
+ id?: string;
2323
+ /**
2324
+ * ID of the vendor in the accounting system.
2325
+ */
2326
+ gl_vendor_id?: string;
2327
+ /**
2328
+ * Name of the vendor in the accounting system.
2329
+ */
2330
+ name?: string;
2331
+ }
2332
+ interface LineItem {
2333
+ /**
2334
+ * Unique identifier of this line item. Null for older line items that have not
2335
+ * been assigned one yet.
2336
+ */
2337
+ id?: string;
2338
+ /**
2339
+ * Whether this line is amortized.
2340
+ */
2341
+ amortized?: boolean;
2342
+ /**
2343
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2344
+ */
2345
+ amount?: LineItem.Amount;
2346
+ /**
2347
+ * ID of the Finance category assigned to this split. Use it with
2348
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
2349
+ */
2350
+ category_id?: string;
2351
+ /**
2352
+ * Name of the finance category.
2353
+ */
2354
+ category_name?: string;
2355
+ /**
2356
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
2357
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
2358
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
2359
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
2360
+ */
2361
+ dimension_choices?: {
2362
+ [key: string]: LineItem.DimensionChoices;
2363
+ };
2364
+ /**
2365
+ * End of the amortization period (YYYY-MM-DD).
2366
+ */
2367
+ end_date?: string;
2368
+ /**
2369
+ * ERP amortization schedule associated with this line.
2370
+ */
2371
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
2372
+ /**
2373
+ * ERP amortization template for this line.
2374
+ */
2375
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
2376
+ /**
2377
+ * Whether this split is billed to `gl_customer` in the accounting system.
2378
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
2379
+ * set.
2380
+ */
2381
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
2382
+ /**
2383
+ * ID of the customer record in the connected accounting integration. No public
2384
+ * Rippling API is currently available to retrieve this accounting customer.
2385
+ */
2386
+ gl_customer?: string;
2387
+ /**
2388
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
2389
+ * available to retrieve this accounting tax code.
2390
+ */
2391
+ gl_tax_code?: string;
2392
+ /**
2393
+ * Memo entered on this split.
2394
+ */
2395
+ memo?: string;
2396
+ /**
2397
+ * Prepaid asset account for Rippling-managed amortization.
2398
+ */
2399
+ prepaid_account?: LineItem.PrepaidAccount;
2400
+ /**
2401
+ * Start of the amortization period (YYYY-MM-DD).
2402
+ */
2403
+ start_date?: string;
2404
+ /**
2405
+ * Total tax amount for this line in the merchant currency.
2406
+ */
2407
+ tax_amount?: LineItem.TaxAmount;
2408
+ }
2409
+ namespace LineItem {
2410
+ /**
2411
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2412
+ */
2413
+ interface Amount {
2414
+ /**
2415
+ * The currency type, ex: USD, EUR, etc.
2416
+ */
2417
+ currency_type?: string;
2418
+ /**
2419
+ * The decimal amount for the currency.
2420
+ */
2421
+ value?: number;
2422
+ }
2423
+ interface DimensionChoices {
2424
+ /**
2425
+ * Name of the dimension, such as Department.
2426
+ */
2427
+ dimension_name?: string;
2428
+ /**
2429
+ * Display name of the selected dimension value.
2430
+ */
2431
+ label?: string;
2432
+ /**
2433
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
2434
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
2435
+ * `/job-codes/{id}/`.
2436
+ */
2437
+ value?: string;
2438
+ }
2439
+ /**
2440
+ * ERP amortization schedule associated with this line.
2441
+ */
2442
+ interface GlAmortizationSchedule {
2443
+ /**
2444
+ * Rippling ID of the accounting integration that owns this object. No public
2445
+ * Rippling API is currently available to retrieve this accounting integration.
2446
+ */
2447
+ accounting_integration_id?: string;
2448
+ /**
2449
+ * Number of amortization periods.
2450
+ */
2451
+ amortization_period?: number;
2452
+ /**
2453
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2454
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
2455
+ * indicate UTC. Null when not set.
2456
+ */
2457
+ end_date?: string;
2458
+ /**
2459
+ * Object ID in the connected accounting system.
2460
+ */
2461
+ gl_object_id?: string;
2462
+ /**
2463
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2464
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2465
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2466
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2467
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2468
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2469
+ * when not set.
2470
+ */
2471
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
2472
+ /**
2473
+ * Accounting object name.
2474
+ */
2475
+ name?: string;
2476
+ /**
2477
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2478
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
2479
+ * indicate UTC. Null when not set.
2480
+ */
2481
+ start_date?: string;
2482
+ /**
2483
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
2484
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
2485
+ * complete; ON_HOLD means amortization is paused. Null when not set.
2486
+ */
2487
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
2488
+ /**
2489
+ * Amount already amortized as reported by the ERP, in the same currency as
2490
+ * total_amount. No currency conversion is applied; the schedule currency code is
2491
+ * not available in this response.
2492
+ */
2493
+ total_amortized_amount?: number;
2494
+ /**
2495
+ * Total schedule amount as reported by the ERP, without currency conversion. The
2496
+ * schedule currency code is not available in this response.
2497
+ */
2498
+ total_amount?: number;
2499
+ }
2500
+ /**
2501
+ * ERP amortization template for this line.
2502
+ */
2503
+ interface GlAmortizationTemplate {
2504
+ /**
2505
+ * Rippling ID of the accounting integration that owns this object. No public
2506
+ * Rippling API is currently available to retrieve this accounting integration.
2507
+ */
2508
+ accounting_integration_id?: string;
2509
+ /**
2510
+ * Object ID in the connected accounting system.
2511
+ */
2512
+ gl_object_id?: string;
2513
+ /**
2514
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2515
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2516
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2517
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2518
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2519
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2520
+ * when not set.
2521
+ */
2522
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
2523
+ /**
2524
+ * Accounting object name.
2525
+ */
2526
+ name?: string;
2527
+ }
2528
+ /**
2529
+ * Prepaid asset account for Rippling-managed amortization.
2530
+ */
2531
+ interface PrepaidAccount {
2532
+ /**
2533
+ * Account ID in the connected accounting system.
2534
+ */
2535
+ account_id?: string;
2536
+ /**
2537
+ * Account code.
2538
+ */
2539
+ code?: string;
2540
+ /**
2541
+ * Account name.
2542
+ */
2543
+ name?: string;
2544
+ /**
2545
+ * IDs of custom dimensions required by this account.
2546
+ */
2547
+ required_custom_dimensions?: Array<string>;
2548
+ /**
2549
+ * Whether this account requires a department.
2550
+ */
2551
+ requires_department?: boolean;
2552
+ /**
2553
+ * Whether this account requires a work location.
2554
+ */
2555
+ requires_work_location?: boolean;
2556
+ /**
2557
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
2558
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
2559
+ * when not set.
2560
+ */
2561
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
2562
+ }
2563
+ /**
2564
+ * Total tax amount for this line in the merchant currency.
2565
+ */
2566
+ interface TaxAmount {
2567
+ /**
2568
+ * The currency type, ex: USD, EUR, etc.
2569
+ */
2570
+ currency_type?: string;
2571
+ /**
2572
+ * The decimal amount for the currency.
2573
+ */
2574
+ value?: number;
2575
+ }
2576
+ }
2577
+ /**
2578
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2579
+ * decimal string.
2580
+ */
2581
+ interface MerchantAmount {
2582
+ /**
2583
+ * The currency type, ex: USD, EUR, etc.
2584
+ */
2585
+ currency_type?: string;
2586
+ /**
2587
+ * The decimal amount for the currency.
2588
+ */
2589
+ value?: number;
2590
+ }
2591
+ /**
2592
+ * Company mileage rate. Include with `expand=mileage_rate` using
2593
+ * `reimbursements.read`.
2594
+ *
2595
+ * Expandable field
2596
+ */
2597
+ interface MileageRate {
2598
+ /**
2599
+ * Company mileage rate ID.
2600
+ */
2601
+ id: string;
2602
+ /**
2603
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
2604
+ */
2605
+ created_at: string;
2606
+ /**
2607
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
2608
+ */
2609
+ updated_at: string;
2610
+ /**
2611
+ * ISO 3166-1 alpha-2 country code.
2612
+ */
2613
+ country?: string;
2614
+ /**
2615
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2616
+ */
2617
+ end_date?: string;
2618
+ /**
2619
+ * Whether an additional half cent per distance unit applies.
2620
+ */
2621
+ half_cent?: boolean;
2622
+ /**
2623
+ * Company-defined label for this mileage rate, such as the rate used for a country
2624
+ * or vehicle type.
2625
+ */
2626
+ name?: string;
2627
+ /**
2628
+ * Amount per distance unit. The `value` is a decimal string.
2629
+ */
2630
+ rate?: MileageRate.Rate;
2631
+ /**
2632
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2633
+ */
2634
+ start_date?: string;
2635
+ /**
2636
+ * Distance unit, mi or km.
2637
+ */
2638
+ units?: 'km' | 'mi';
2639
+ }
2640
+ namespace MileageRate {
2641
+ /**
2642
+ * Amount per distance unit. The `value` is a decimal string.
2643
+ */
2644
+ interface Rate {
2645
+ /**
2646
+ * The currency type, ex: USD, EUR, etc.
2647
+ */
2648
+ currency_type?: string;
2649
+ /**
2650
+ * The decimal amount for the currency.
2651
+ */
2652
+ value?: number;
2653
+ }
2654
+ }
2655
+ /**
2656
+ * Amount credited to the worker. The `value` is a decimal string.
2657
+ */
2658
+ interface PayoutAmount {
2659
+ /**
2660
+ * The currency type, ex: USD, EUR, etc.
2661
+ */
2662
+ currency_type?: string;
2663
+ /**
2664
+ * The decimal amount for the currency.
2665
+ */
2666
+ value?: number;
2667
+ }
2668
+ interface PerDiemLineItem {
2669
+ /**
2670
+ * Sub-rate amount for one unit. The `value` is a decimal string.
2671
+ */
2672
+ amount?: PerDiemLineItem.Amount;
2673
+ /**
2674
+ * amount times count. The `value` is a decimal string. Negative when line_type is
2675
+ * EXCLUDE.
2676
+ */
2677
+ calculated_amount?: PerDiemLineItem.CalculatedAmount;
2678
+ /**
2679
+ * How many units.
2680
+ */
2681
+ count?: number;
2682
+ /**
2683
+ * Sub-rate label.
2684
+ */
2685
+ label?: string;
2686
+ /**
2687
+ * `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
2688
+ * subtracted. `calculated_amount.value` is negative when excluded.
2689
+ */
2690
+ line_type?: 'INCLUDE' | 'EXCLUDE';
2691
+ /**
2692
+ * Per diem sub-rate ID.
2693
+ */
2694
+ sub_rate_id?: string;
2695
+ /**
2696
+ * `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
2697
+ * allowance. `OTHERS`: an allowance that is not the full day or meals.
2698
+ */
2699
+ sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
2700
+ }
2701
+ namespace PerDiemLineItem {
2702
+ /**
2703
+ * Sub-rate amount for one unit. The `value` is a decimal string.
2704
+ */
2705
+ interface Amount {
2706
+ /**
2707
+ * The currency type, ex: USD, EUR, etc.
2708
+ */
2709
+ currency_type?: string;
2710
+ /**
2711
+ * The decimal amount for the currency.
2712
+ */
2713
+ value?: number;
2714
+ }
2715
+ /**
2716
+ * amount times count. The `value` is a decimal string. Negative when line_type is
2717
+ * EXCLUDE.
2718
+ */
2719
+ interface CalculatedAmount {
2720
+ /**
2721
+ * The currency type, ex: USD, EUR, etc.
2722
+ */
2723
+ currency_type?: string;
2724
+ /**
2725
+ * The decimal amount for the currency.
2726
+ */
2727
+ value?: number;
2728
+ }
2729
+ }
2730
+ /**
2731
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
2732
+ * `reimbursements.read`.
2733
+ *
2734
+ * Expandable field
2735
+ */
2736
+ interface PerDiemRate {
2737
+ /**
2738
+ * Per diem rate ID.
2739
+ */
2740
+ id: string;
2741
+ /**
2742
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
2743
+ */
2744
+ created_at: string;
2745
+ /**
2746
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
2747
+ */
2748
+ updated_at: string;
2749
+ /**
2750
+ * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
2751
+ * US.
2752
+ */
2753
+ country?: string;
2754
+ /**
2755
+ * Currency of the per diem rate, as an ISO 4217 code. Example: USD.
2756
+ */
2757
+ currency?: string;
2758
+ /**
2759
+ * Place this per diem rate applies to, such as a city.
2760
+ */
2761
+ destination_name?: string;
2762
+ /**
2763
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2764
+ */
2765
+ end_date?: string;
2766
+ /**
2767
+ * Whether the rate is archived. Archived rates remain readable for historical
2768
+ * references.
2769
+ */
2770
+ is_archived?: boolean;
2771
+ /**
2772
+ * Whether this is the current version of the rate.
2773
+ */
2774
+ is_current?: boolean;
2775
+ /**
2776
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2777
+ */
2778
+ start_date?: string;
2779
+ }
2780
+ /**
2781
+ * Receipt file and its filename.
2782
+ */
2783
+ interface Receipt {
2784
+ /**
2785
+ * URL for accessing the file.
2786
+ */
2787
+ url: string;
2788
+ /**
2789
+ * Original file name, when recorded.
2790
+ */
2791
+ file_name?: string;
2792
+ }
2793
+ /**
2794
+ * Start of a mileage trip. Null except on mileage reimbursements.
2795
+ */
2796
+ interface StartLocation {
2797
+ /**
2798
+ * Address of this point. Null when the point has no address.
2799
+ */
2800
+ address?: string;
2801
+ /**
2802
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2803
+ * has no coordinates.
2804
+ */
2805
+ coordinates?: StartLocation.Coordinates;
2806
+ }
2807
+ namespace StartLocation {
2808
+ /**
2809
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2810
+ * has no coordinates.
2811
+ */
2812
+ interface Coordinates {
2813
+ /**
2814
+ * Latitude of this point, in decimal degrees.
2815
+ */
2816
+ latitude?: number;
2817
+ /**
2818
+ * Longitude of this point, in decimal degrees.
2819
+ */
2820
+ longitude?: number;
2821
+ }
2822
+ }
2823
+ /**
2824
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
2825
+ *
2826
+ * Expandable field
2827
+ */
2828
+ interface Vendor {
2829
+ /**
2830
+ * Identifier field
2831
+ */
2832
+ id: string;
2833
+ /**
2834
+ * Record creation date
2835
+ */
2836
+ created_at: string;
2837
+ /**
2838
+ * Record update date
2839
+ */
2840
+ updated_at: string;
2841
+ /**
2842
+ * Whether the vendor is archived. Archived vendors remain available for historical
2843
+ * references.
2844
+ */
2845
+ is_archived?: boolean;
2846
+ /**
2847
+ * URL of the vendor's logo. Null when no logo is available.
2848
+ */
2849
+ logo?: string;
2850
+ /**
2851
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
2852
+ * alternate names.
2853
+ */
2854
+ name?: string;
2855
+ }
2856
+ /**
2857
+ * Start, end, or intermediate stop on a mileage trip.
2858
+ */
2859
+ interface Waypoint {
2860
+ /**
2861
+ * Address of this point. Null when the point has no address.
2862
+ */
2863
+ address?: string;
2864
+ /**
2865
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2866
+ * has no coordinates.
2867
+ */
2868
+ coordinates?: Waypoint.Coordinates;
2869
+ }
2870
+ namespace Waypoint {
2871
+ /**
2872
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2873
+ * has no coordinates.
2874
+ */
2875
+ interface Coordinates {
2876
+ /**
2877
+ * Latitude of this point, in decimal degrees.
2878
+ */
2879
+ latitude?: number;
2880
+ /**
2881
+ * Longitude of this point, in decimal degrees.
2882
+ */
2883
+ longitude?: number;
2884
+ }
2885
+ }
2886
+ }
2887
+ export interface ReimbursementListParams {
2888
+ cursor?: string;
2889
+ expand?: string;
2890
+ filter?: string;
2891
+ /**
2892
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
2893
+ */
2894
+ limit?: number;
949
2895
  order_by?: string;
950
2896
  }
2897
+ export interface ReimbursementRetrieveParams {
2898
+ expand?: string;
2899
+ }
2900
+ export interface ReimbursementUpdateParams {
2901
+ /**
2902
+ * Category splits of the transaction amount. Updates replace the entire list.
2903
+ */
2904
+ line_items?: Array<ReimbursementUpdateParams.LineItem>;
2905
+ }
2906
+ export declare namespace ReimbursementUpdateParams {
2907
+ /**
2908
+ * PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
2909
+ * Currency objects.
2910
+ */
2911
+ interface LineItem {
2912
+ /**
2913
+ * Amount of this split, in the merchant currency, as a decimal string.
2914
+ */
2915
+ amount: string;
2916
+ /**
2917
+ * ID of the Finance category assigned to this split. Use it with
2918
+ * `/finance-categories/{id}/`.
2919
+ */
2920
+ category_id: string;
2921
+ /**
2922
+ * Optional. Omit to create a new line. Replacing `line_items` assigns new IDs; a
2923
+ * supplied `id` is not preserved.
2924
+ */
2925
+ id?: string;
2926
+ /**
2927
+ * Whether this line is amortized.
2928
+ */
2929
+ amortized?: boolean;
2930
+ /**
2931
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
2932
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
2933
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
2934
+ * `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
2935
+ * `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
2936
+ */
2937
+ dimension_choices?: {
2938
+ [key: string]: string;
2939
+ };
2940
+ /**
2941
+ * End of the amortization period (YYYY-MM-DD).
2942
+ */
2943
+ end_date?: string;
2944
+ /**
2945
+ * ERP amortization template for this line.
2946
+ */
2947
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
2948
+ /**
2949
+ * Whether this split is billed to `gl_customer` in the accounting system.
2950
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
2951
+ * set.
2952
+ */
2953
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
2954
+ /**
2955
+ * ID of the customer record in the connected accounting integration. No public
2956
+ * Rippling API is currently available to retrieve this accounting customer.
2957
+ */
2958
+ gl_customer?: string;
2959
+ /**
2960
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
2961
+ * available to retrieve this accounting tax code.
2962
+ */
2963
+ gl_tax_code?: string;
2964
+ /**
2965
+ * Memo entered on this split.
2966
+ */
2967
+ memo?: string;
2968
+ /**
2969
+ * Prepaid asset account for Rippling-managed amortization.
2970
+ */
2971
+ prepaid_account?: LineItem.PrepaidAccount;
2972
+ /**
2973
+ * Start of the amortization period (YYYY-MM-DD).
2974
+ */
2975
+ start_date?: string;
2976
+ /**
2977
+ * Total tax amount for this line in the merchant currency, as a decimal string.
2978
+ */
2979
+ tax_amount?: string;
2980
+ }
2981
+ namespace LineItem {
2982
+ /**
2983
+ * ERP amortization template for this line.
2984
+ */
2985
+ interface GlAmortizationTemplate {
2986
+ /**
2987
+ * Rippling ID of the accounting integration that owns this template. No public
2988
+ * Rippling API is currently available to retrieve this accounting integration.
2989
+ */
2990
+ accounting_integration_id?: string;
2991
+ /**
2992
+ * Object ID of the amortization template in the connected accounting system.
2993
+ */
2994
+ gl_object_id?: string;
2995
+ /**
2996
+ * Amortization template name.
2997
+ */
2998
+ name?: string;
2999
+ }
3000
+ /**
3001
+ * Prepaid asset account for Rippling-managed amortization.
3002
+ */
3003
+ interface PrepaidAccount {
3004
+ /**
3005
+ * Account ID in the connected accounting system.
3006
+ */
3007
+ account_id?: string;
3008
+ /**
3009
+ * Account code.
3010
+ */
3011
+ code?: string;
3012
+ /**
3013
+ * Account name.
3014
+ */
3015
+ name?: string;
3016
+ }
3017
+ }
3018
+ }
951
3019
  export declare namespace Reimbursements {
952
- export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, };
3020
+ export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementUpdateResponse as ReimbursementUpdateResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, type ReimbursementRetrieveParams as ReimbursementRetrieveParams, type ReimbursementUpdateParams as ReimbursementUpdateParams, };
953
3021
  }
954
3022
  //# sourceMappingURL=reimbursements.d.mts.map