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

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 (570) 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 +111 -0
  450. package/resources/record-detail-reference-options.d.mts.map +1 -0
  451. package/resources/record-detail-reference-options.d.ts +111 -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 +1070 -0
  458. package/resources/record-detail-related-records.d.mts.map +1 -0
  459. package/resources/record-detail-related-records.d.ts +1070 -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 +1227 -0
  466. package/resources/record-details.d.mts.map +1 -0
  467. package/resources/record-details.d.ts +1227 -0
  468. package/resources/record-details.d.ts.map +1 -0
  469. package/resources/record-details.js +71 -0
  470. package/resources/record-details.js.map +1 -0
  471. package/resources/record-details.mjs +67 -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/src/client.ts +156 -17
  498. package/src/core/platform/custom-objects/manager.ts +65 -42
  499. package/src/core/platform/custom-objects.ts +3 -0
  500. package/src/lib/manifest/acp-agent.ts +7 -1
  501. package/src/lib/manifest/definitions/_object-records.ts +17 -10
  502. package/src/lib/manifest/definitions/custom-object.ts +14 -9
  503. package/src/resources/activity-log.ts +1 -1
  504. package/src/resources/agents/sessions/messages.ts +10 -1
  505. package/src/resources/agents/sessions/sessions.ts +30 -3
  506. package/src/resources/bills.ts +1660 -0
  507. package/src/resources/card-transactions.ts +742 -49
  508. package/src/resources/custom-objects/custom-objects.ts +62 -2
  509. package/src/resources/custom-objects/fields.ts +44 -0
  510. package/src/resources/custom-objects/index.ts +13 -1
  511. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  512. package/src/resources/custom-objects/list-views/default.ts +87 -0
  513. package/src/resources/custom-objects/list-views/index.ts +15 -0
  514. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  515. package/src/resources/custom-objects/list-views.ts +3 -0
  516. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  517. package/src/resources/custom-objects/records/index.ts +21 -0
  518. package/src/resources/custom-objects/records/records.ts +955 -0
  519. package/src/resources/custom-objects/records.ts +1 -703
  520. package/src/resources/devices.ts +2 -0
  521. package/src/resources/draft-transitions.ts +276 -347
  522. package/src/resources/employee-documents.ts +2 -2
  523. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  524. package/src/resources/finance-vendors.ts +191 -0
  525. package/src/resources/functions/executions.ts +4 -1
  526. package/src/resources/functions/functions.ts +216 -4
  527. package/src/resources/hire-requirements.ts +107 -9
  528. package/src/resources/hires.ts +1768 -539
  529. package/src/resources/index.ts +51 -7
  530. package/src/resources/leave-requests.ts +11 -2
  531. package/src/resources/object-categories.ts +2 -1
  532. package/src/resources/package-components/extract.ts +139 -0
  533. package/src/resources/package-components/index.ts +10 -0
  534. package/src/resources/package-components/package-components.ts +134 -0
  535. package/src/resources/package-components/types.ts +64 -0
  536. package/src/resources/package-components.ts +3 -0
  537. package/src/resources/package-installs.ts +120 -9
  538. package/src/resources/package-managed-installs.ts +146 -7
  539. package/src/resources/package-manifests/index.ts +5 -0
  540. package/src/resources/package-manifests/package-manifests.ts +21 -0
  541. package/src/resources/package-manifests/packages/index.ts +4 -0
  542. package/src/resources/package-manifests/packages/packages.ts +19 -0
  543. package/src/resources/package-manifests/packages/versions.ts +237 -0
  544. package/src/resources/package-manifests/packages.ts +3 -0
  545. package/src/resources/package-manifests/versions.ts +96 -0
  546. package/src/resources/package-manifests.ts +3 -0
  547. package/src/resources/package-versions/package-versions.ts +117 -14
  548. package/src/resources/package-versions/publish.ts +46 -4
  549. package/src/resources/packages/next-versions.ts +46 -4
  550. package/src/resources/packages/versions.ts +92 -9
  551. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  552. package/src/resources/permissions/index.ts +4 -0
  553. package/src/resources/permissions/permission-profiles.ts +50 -0
  554. package/src/resources/permissions/permissions.ts +20 -0
  555. package/src/resources/permissions.ts +3 -0
  556. package/src/resources/record-detail-reference-options.ts +142 -0
  557. package/src/resources/record-detail-related-records.ts +1380 -0
  558. package/src/resources/record-details.ts +1554 -0
  559. package/src/resources/reimbursements.ts +2591 -126
  560. package/src/resources/report-runs.ts +2 -1
  561. package/src/resources/sandboxes.ts +48 -742
  562. package/src/version.ts +1 -1
  563. package/version.d.mts +1 -1
  564. package/version.d.ts +1 -1
  565. package/version.js +1 -1
  566. package/version.mjs +1 -1
  567. package/resources/spend-categories.d.mts.map +0 -1
  568. package/resources/spend-categories.d.ts.map +0 -1
  569. package/resources/spend-categories.js.map +0 -1
  570. package/resources/spend-categories.mjs.map +0 -1
@@ -0,0 +1,1660 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Vendor bills, including invoice and payment details
13
+ */
14
+ export class Bills extends APIResource {
15
+ /**
16
+ * A list of bills.
17
+ *
18
+ * - Requires: `Spend Management Platform API`
19
+ * - Filterable fields: `worker_id`, `entity_id`, `vendor_id`, `submitter_id`,
20
+ * `invoice_date`
21
+ * - Expandable fields: `worker`, `vendor`, `submitter`
22
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `invoice_date`
23
+ *
24
+ * @example HTTP
25
+ * Representative request and response shapes.
26
+ * ```
27
+ * GET /bills/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
28
+ * Host: rest.ripplingapis.com
29
+ * Accept: application/json
30
+ * Rippling-Api-Version: 2024-08-01
31
+ *
32
+ * HTTP/1.1 200 OK
33
+ * Content-Type: application/json
34
+ *
35
+ * {
36
+ * "__meta": {},
37
+ * "results": [
38
+ * {
39
+ * "id": "string",
40
+ * "created_at": "string",
41
+ * "updated_at": "string",
42
+ * "worker_id": "string",
43
+ * "worker": {
44
+ * "id": "string",
45
+ * "created_at": "string",
46
+ * "updated_at": "string",
47
+ * "user_id": "string",
48
+ * "user": {},
49
+ * "is_manager": "string",
50
+ * "manager_id": "string",
51
+ * "manager": {},
52
+ * "legal_entity_id": "string",
53
+ * "legal_entity": {},
54
+ * "country": "AF",
55
+ * "start_date": "string",
56
+ * "end_date": "string",
57
+ * "number": "string",
58
+ * "work_email": "string",
59
+ * "personal_email": "string",
60
+ * "status": "INIT",
61
+ * "location": {},
62
+ * "employment_type_id": "string",
63
+ * "employment_type": {},
64
+ * "gender": "MALE",
65
+ * "date_of_birth": "string",
66
+ * "race": "BLACK",
67
+ * "ethnicity": "HISPANIC_OR_LATINO",
68
+ * "citizenship": "AF",
69
+ * "compensation_id": "string",
70
+ * "compensation": {},
71
+ * "overtime_exemption": "EXEMPT"
72
+ * },
73
+ * "company_amount": {
74
+ * "currency_type": "string",
75
+ * "value": "string"
76
+ * },
77
+ * "merchant_amount": {
78
+ * "currency_type": "string",
79
+ * "value": "string"
80
+ * },
81
+ * "accounting_date": "string",
82
+ * "gl_sync_state": "NOT_FINALIZED",
83
+ * "approval_status": "DRAFT",
84
+ * "entity_id": "string",
85
+ * "vendor": {
86
+ * "id": "string",
87
+ * "created_at": "string",
88
+ * "updated_at": "string",
89
+ * "name": "string",
90
+ * "logo": "string",
91
+ * "is_archived": "string"
92
+ * },
93
+ * "gl_vendor": {
94
+ * "id": "string",
95
+ * "name": "string",
96
+ * "gl_vendor_id": "string"
97
+ * },
98
+ * "memo": "string",
99
+ * "attachments": [
100
+ * {}
101
+ * ],
102
+ * "line_items": [
103
+ * {}
104
+ * ],
105
+ * "vendor_id": "string",
106
+ * "transaction_type": "BILL_PAYMENT",
107
+ * "submitter_id": "string",
108
+ * "parent_bill_id": "string",
109
+ * "submitter": {
110
+ * "id": "string",
111
+ * "created_at": "string",
112
+ * "updated_at": "string",
113
+ * "user_id": "string",
114
+ * "user": {},
115
+ * "is_manager": "string",
116
+ * "manager_id": "string",
117
+ * "manager": {},
118
+ * "legal_entity_id": "string",
119
+ * "legal_entity": {},
120
+ * "country": "AF",
121
+ * "start_date": "string",
122
+ * "end_date": "string",
123
+ * "number": "string",
124
+ * "work_email": "string",
125
+ * "personal_email": "string",
126
+ * "status": "INIT",
127
+ * "location": {},
128
+ * "employment_type_id": "string",
129
+ * "employment_type": {},
130
+ * "gender": "MALE",
131
+ * "date_of_birth": "string",
132
+ * "race": "BLACK",
133
+ * "ethnicity": "HISPANIC_OR_LATINO",
134
+ * "citizenship": "AF",
135
+ * "compensation_id": "string",
136
+ * "compensation": {},
137
+ * "overtime_exemption": "EXEMPT",
138
+ * "department_id": "string",
139
+ * "department": {},
140
+ * "teams_id": [],
141
+ * "teams": [],
142
+ * "title": "string",
143
+ * "title_effective_date": "string",
144
+ * "level_id": "string",
145
+ * "level": {},
146
+ * "job_function_id": "string",
147
+ * "job_function": {},
148
+ * "termination_details": {},
149
+ * "pay_schedule_id": "string",
150
+ * "work_schedule": {},
151
+ * "compensation_grade": {},
152
+ * "original_start_date": "string",
153
+ * "custom_fields": [],
154
+ * "country_fields": {},
155
+ * "business_partners_id": [],
156
+ * "business_partners": []
157
+ * },
158
+ * "invoice_date": "string",
159
+ * "invoice": {
160
+ * "url": "string",
161
+ * "file_name": "string"
162
+ * },
163
+ * "payment_amount": {
164
+ * "currency_type": "string",
165
+ * "value": "string"
166
+ * },
167
+ * "payment_method_fee": {
168
+ * "currency_type": "string",
169
+ * "value": "string"
170
+ * },
171
+ * "invoice_number": "string",
172
+ * "due_date": "string",
173
+ * "vendor_paid_date": "string",
174
+ * "scheduled_payment_date": "string",
175
+ * "estimated_payment_arrival": "string",
176
+ * "payment_velocity": "TWO_DAY",
177
+ * "credit_method": "ACH",
178
+ * "payment_schedule_setting": "SCHEDULE_NOW",
179
+ * "vendor_memo": "string"
180
+ * }
181
+ * ],
182
+ * "next_link": "string"
183
+ * }
184
+ * ```
185
+ */
186
+ list(
187
+ query: BillListParams | null | undefined = {},
188
+ options?: RequestOptions,
189
+ ): PagePromise<BillListResponsesPageCursorURL, BillListResponse> {
190
+ return this._client.getAPIList('/bills/', PageCursorURL<BillListResponse>, { query, ...options });
191
+ }
192
+
193
+ /**
194
+ * Retrieve a specific bill. Expandable fields: `worker`, `vendor`, `submitter`.
195
+ *
196
+ * @example HTTP
197
+ * Representative request and response shapes.
198
+ * ```
199
+ * GET /bills/{id}/?expand=expand HTTP/1.1
200
+ * Host: rest.ripplingapis.com
201
+ * Accept: application/json
202
+ * Rippling-Api-Version: 2024-08-01
203
+ *
204
+ * HTTP/1.1 200 OK
205
+ * Content-Type: application/json
206
+ *
207
+ * {
208
+ * "__meta": {
209
+ * "redacted_fields": [
210
+ * {}
211
+ * ]
212
+ * }
213
+ * }
214
+ * ```
215
+ */
216
+ retrieve(
217
+ id: string,
218
+ query: BillRetrieveParams | null | undefined = {},
219
+ options?: RequestOptions,
220
+ ): APIPromise<BillRetrieveResponse> {
221
+ return this._client.get(path`/bills/${id}/`, { query, ...options });
222
+ }
223
+ }
224
+
225
+ export type BillListResponsesPageCursorURL = PageCursorURL<BillListResponse>;
226
+
227
+ /**
228
+ * A bill visible to the caller, including its invoice and payment details.
229
+ */
230
+ export interface BillListResponse {
231
+ /**
232
+ * Identifier field
233
+ */
234
+ id: string;
235
+
236
+ /**
237
+ * Record creation date
238
+ */
239
+ created_at: string;
240
+
241
+ /**
242
+ * Record update date
243
+ */
244
+ updated_at: string;
245
+
246
+ /**
247
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
248
+ * (YYYY-MM-DD).
249
+ */
250
+ accounting_date?: string;
251
+
252
+ /**
253
+ * Approval state of the bill. `DRAFT`: not submitted. `PENDING`: awaiting required
254
+ * information before submission. `REQUESTED`: awaiting approval. `APPROVED`:
255
+ * approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`:
256
+ * paid. `CANCELLED`: cancelled. `FAILED`: payment failed.
257
+ */
258
+ approval_status?:
259
+ | 'DRAFT'
260
+ | 'PENDING'
261
+ | 'REQUESTED'
262
+ | 'APPROVED'
263
+ | 'REJECTED'
264
+ | 'FINALIZED'
265
+ | 'ACTIONED'
266
+ | 'CANCELLED'
267
+ | 'FAILED';
268
+
269
+ /**
270
+ * Other attached files, including filenames and recorded upload metadata.
271
+ */
272
+ attachments?: Array<BillListResponse.Attachment>;
273
+
274
+ /**
275
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
276
+ */
277
+ company_amount?: BillListResponse.CompanyAmount;
278
+
279
+ /**
280
+ * How the vendor is paid: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD,
281
+ * MANUALLY_PAID, or PAID_IN_FULL_VIA_VENDOR_CREDIT. GLOBAL_ORDER is an
282
+ * international transfer. PAID_IN_FULL_VIA_VENDOR_CREDIT means vendor credits
283
+ * cover the full bill, with no cash payment.
284
+ */
285
+ credit_method?:
286
+ | 'ACH'
287
+ | 'WIRE'
288
+ | 'CHECK'
289
+ | 'GLOBAL_ORDER'
290
+ | 'EXISTING_CORPORATE_CARD'
291
+ | 'MANUALLY_PAID'
292
+ | 'PAID_IN_FULL_VIA_VENDOR_CREDIT';
293
+
294
+ /**
295
+ * Invoice due date, as an ISO 8601 date. A draft can omit it.
296
+ */
297
+ due_date?: string;
298
+
299
+ /**
300
+ * ID of the legal entity the transaction belongs to. Use it with
301
+ * `/company-legal-entities/{id}/`.
302
+ */
303
+ entity_id?: string;
304
+
305
+ /**
306
+ * Date the vendor is expected to receive the payment, as an ISO 8601 date. Null
307
+ * when not set.
308
+ */
309
+ estimated_payment_arrival?: string;
310
+
311
+ /**
312
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
313
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
314
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
315
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
316
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
317
+ * be synced automatically. Null when no sync state is set.
318
+ */
319
+ gl_sync_state?:
320
+ | 'NOT_FINALIZED'
321
+ | 'FOR_REVIEW'
322
+ | 'PENDING_SYNC'
323
+ | 'SYNCED'
324
+ | 'ERROR'
325
+ | 'DO_NOT_SYNC'
326
+ | 'EXPORTED'
327
+ | 'NOT_SYNCABLE'
328
+ | 'AUTO_SYNC';
329
+
330
+ /**
331
+ * Vendor in the connected accounting system.
332
+ */
333
+ gl_vendor?: BillListResponse.GlVendor;
334
+
335
+ /**
336
+ * Invoice file and its filename.
337
+ */
338
+ invoice?: BillListResponse.Invoice;
339
+
340
+ /**
341
+ * Invoice date, as an ISO 8601 date (YYYY-MM-DD). Null when not set. Filters
342
+ * compare UTC calendar days: `eq` includes the whole day, `gt` starts the
343
+ * following day, and `lt` excludes the specified day. `ge` and `le` include the
344
+ * specified day; `in` matches any listed day.
345
+ */
346
+ invoice_date?: string;
347
+
348
+ /**
349
+ * Invoice number. Null when the bill has no invoice number.
350
+ */
351
+ invoice_number?: string;
352
+
353
+ /**
354
+ * Category splits of the transaction amount. Updates replace the entire list.
355
+ */
356
+ line_items?: Array<BillListResponse.LineItem>;
357
+
358
+ /**
359
+ * Memo entered on the transaction.
360
+ */
361
+ memo?: string;
362
+
363
+ /**
364
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
365
+ * decimal string.
366
+ */
367
+ merchant_amount?: BillListResponse.MerchantAmount;
368
+
369
+ /**
370
+ * ID of the bill this payment was split from. Use it with `/bills/{id}/`. Null
371
+ * when it is not a split bill.
372
+ */
373
+ parent_bill_id?: string;
374
+
375
+ /**
376
+ * Amount paid to the vendor, in the payment currency. The `value` is a decimal
377
+ * string.
378
+ */
379
+ payment_amount?: BillListResponse.PaymentAmount;
380
+
381
+ /**
382
+ * Payment method fee, in the company's headquarters currency. The `value` is a
383
+ * decimal string. Zero when there is no fee.
384
+ */
385
+ payment_method_fee?: BillListResponse.PaymentMethodFee;
386
+
387
+ /**
388
+ * Payment scheduling choice: `SCHEDULE_NOW` to schedule payment, or `SKIP_FOR_NOW`
389
+ * to defer scheduling.
390
+ */
391
+ payment_schedule_setting?: 'SCHEDULE_NOW' | 'SKIP_FOR_NOW';
392
+
393
+ /**
394
+ * Payment speed option: `TWO_DAY` (accelerated) or `FOUR_DAY` (standard). Use
395
+ * `estimated_payment_arrival` for the expected arrival date.
396
+ */
397
+ payment_velocity?: 'TWO_DAY' | 'FOUR_DAY';
398
+
399
+ /**
400
+ * Date used to estimate vendor payment, as an ISO 8601 date. Null when not set.
401
+ */
402
+ scheduled_payment_date?: string;
403
+
404
+ /**
405
+ * Submitting bill manager. Expand with `bills.read` and `workers.read`.
406
+ *
407
+ * Expandable field
408
+ */
409
+ submitter?: WorkersAPI.Worker;
410
+
411
+ /**
412
+ * ID of the bill manager who submitted the bill. Use it with `/workers/{id}/`. Can
413
+ * differ from `worker_id`. Null before submission.
414
+ */
415
+ submitter_id?: string;
416
+
417
+ /**
418
+ * Type of transaction: `BILL_PAYMENT`.
419
+ */
420
+ transaction_type?: 'BILL_PAYMENT';
421
+
422
+ /**
423
+ * Vendor details. Expand with `bills.read` and `finance-vendors.read`.
424
+ *
425
+ * Expandable field
426
+ */
427
+ vendor?: BillListResponse.Vendor;
428
+
429
+ /**
430
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
431
+ */
432
+ vendor_id?: string;
433
+
434
+ /**
435
+ * Memo included on the payment to the vendor. Supported for ACH; null when not
436
+ * set.
437
+ */
438
+ vendor_memo?: string;
439
+
440
+ /**
441
+ * Date the vendor is paid, as an ISO 8601 date. Null until paid.
442
+ */
443
+ vendor_paid_date?: string;
444
+
445
+ /**
446
+ * Worker details. Expand with `bills.read` and `workers.read`.
447
+ *
448
+ * Expandable field
449
+ */
450
+ worker?: WorkersAPI.Worker;
451
+
452
+ /**
453
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
454
+ */
455
+ worker_id?: string;
456
+ }
457
+
458
+ export namespace BillListResponse {
459
+ /**
460
+ * A Finance transaction attachment with recorded upload details.
461
+ */
462
+ export interface Attachment {
463
+ /**
464
+ * URL for accessing the file.
465
+ */
466
+ url: string;
467
+
468
+ /**
469
+ * Original file name, when recorded.
470
+ */
471
+ file_name?: string;
472
+
473
+ /**
474
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
475
+ * recorded.
476
+ */
477
+ uploaded_at?: string;
478
+
479
+ /**
480
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
481
+ */
482
+ uploaded_by_id?: string;
483
+ }
484
+
485
+ /**
486
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
487
+ */
488
+ export interface CompanyAmount {
489
+ /**
490
+ * The currency type, ex: USD, EUR, etc.
491
+ */
492
+ currency_type?: string;
493
+
494
+ /**
495
+ * The decimal amount for the currency.
496
+ */
497
+ value?: number;
498
+ }
499
+
500
+ /**
501
+ * Vendor in the connected accounting system.
502
+ */
503
+ export interface GlVendor {
504
+ /**
505
+ * ID of the accounting vendor in Rippling.
506
+ */
507
+ id?: string;
508
+
509
+ /**
510
+ * ID of the vendor in the accounting system.
511
+ */
512
+ gl_vendor_id?: string;
513
+
514
+ /**
515
+ * Name of the vendor in the accounting system.
516
+ */
517
+ name?: string;
518
+ }
519
+
520
+ /**
521
+ * Invoice file and its filename.
522
+ */
523
+ export interface Invoice {
524
+ /**
525
+ * URL for accessing the file.
526
+ */
527
+ url: string;
528
+
529
+ /**
530
+ * Original file name, when recorded.
531
+ */
532
+ file_name?: string;
533
+ }
534
+
535
+ export interface LineItem {
536
+ /**
537
+ * Unique identifier of this line item. Null for older line items that have not
538
+ * been assigned one yet.
539
+ */
540
+ id?: string;
541
+
542
+ /**
543
+ * Whether this line is amortized.
544
+ */
545
+ amortized?: boolean;
546
+
547
+ /**
548
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
549
+ */
550
+ amount?: LineItem.Amount;
551
+
552
+ /**
553
+ * ID of the Finance category assigned to this split. Use it with
554
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
555
+ */
556
+ category_id?: string;
557
+
558
+ /**
559
+ * Name of the finance category.
560
+ */
561
+ category_name?: string;
562
+
563
+ /**
564
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
565
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
566
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
567
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
568
+ */
569
+ dimension_choices?: { [key: string]: LineItem.DimensionChoices };
570
+
571
+ /**
572
+ * End of the amortization period (YYYY-MM-DD).
573
+ */
574
+ end_date?: string;
575
+
576
+ /**
577
+ * ERP amortization schedule associated with this line.
578
+ */
579
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
580
+
581
+ /**
582
+ * ERP amortization template for this line.
583
+ */
584
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
585
+
586
+ /**
587
+ * Whether this split is billed to `gl_customer` in the accounting system.
588
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
589
+ * set.
590
+ */
591
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
592
+
593
+ /**
594
+ * ID of the customer record in the connected accounting integration. No public
595
+ * Rippling API is currently available to retrieve this accounting customer.
596
+ */
597
+ gl_customer?: string;
598
+
599
+ /**
600
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
601
+ * available to retrieve this accounting tax code.
602
+ */
603
+ gl_tax_code?: string;
604
+
605
+ /**
606
+ * Memo entered on this split.
607
+ */
608
+ memo?: string;
609
+
610
+ /**
611
+ * Prepaid asset account for Rippling-managed amortization.
612
+ */
613
+ prepaid_account?: LineItem.PrepaidAccount;
614
+
615
+ /**
616
+ * Start of the amortization period (YYYY-MM-DD).
617
+ */
618
+ start_date?: string;
619
+
620
+ /**
621
+ * Total tax amount for this line in the merchant currency.
622
+ */
623
+ tax_amount?: LineItem.TaxAmount;
624
+ }
625
+
626
+ export namespace LineItem {
627
+ /**
628
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
629
+ */
630
+ export interface Amount {
631
+ /**
632
+ * The currency type, ex: USD, EUR, etc.
633
+ */
634
+ currency_type?: string;
635
+
636
+ /**
637
+ * The decimal amount for the currency.
638
+ */
639
+ value?: number;
640
+ }
641
+
642
+ export interface DimensionChoices {
643
+ /**
644
+ * Name of the dimension, such as Department.
645
+ */
646
+ dimension_name?: string;
647
+
648
+ /**
649
+ * Display name of the selected dimension value.
650
+ */
651
+ label?: string;
652
+
653
+ /**
654
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
655
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
656
+ * `/job-codes/{id}/`.
657
+ */
658
+ value?: string;
659
+ }
660
+
661
+ /**
662
+ * ERP amortization schedule associated with this line.
663
+ */
664
+ export interface GlAmortizationSchedule {
665
+ /**
666
+ * Rippling ID of the accounting integration that owns this object. No public
667
+ * Rippling API is currently available to retrieve this accounting integration.
668
+ */
669
+ accounting_integration_id?: string;
670
+
671
+ /**
672
+ * Number of amortization periods.
673
+ */
674
+ amortization_period?: number;
675
+
676
+ /**
677
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
678
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
679
+ * indicate UTC. Null when not set.
680
+ */
681
+ end_date?: string;
682
+
683
+ /**
684
+ * Object ID in the connected accounting system.
685
+ */
686
+ gl_object_id?: string;
687
+
688
+ /**
689
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
690
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
691
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
692
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
693
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
694
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
695
+ * when not set.
696
+ */
697
+ gl_object_type?:
698
+ | 'GL_AMORTIZATION_TEMPLATE'
699
+ | 'GL_AMORTIZATION_SCHEDULE'
700
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
701
+ | 'GL_ACCOUNT'
702
+ | 'GL_JOURNAL_ENTRY'
703
+ | 'GL_POSTING_PERIOD'
704
+ | 'GL_VENDOR'
705
+ | 'GL_CUSTOMER'
706
+ | 'GL_EMPLOYEE'
707
+ | 'GL_SUBSIDIARY';
708
+
709
+ /**
710
+ * Accounting object name.
711
+ */
712
+ name?: string;
713
+
714
+ /**
715
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
716
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
717
+ * indicate UTC. Null when not set.
718
+ */
719
+ start_date?: string;
720
+
721
+ /**
722
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
723
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
724
+ * complete; ON_HOLD means amortization is paused. Null when not set.
725
+ */
726
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
727
+
728
+ /**
729
+ * Amount already amortized as reported by the ERP, in the same currency as
730
+ * total_amount. No currency conversion is applied; the schedule currency code is
731
+ * not available in this response.
732
+ */
733
+ total_amortized_amount?: number;
734
+
735
+ /**
736
+ * Total schedule amount as reported by the ERP, without currency conversion. The
737
+ * schedule currency code is not available in this response.
738
+ */
739
+ total_amount?: number;
740
+ }
741
+
742
+ /**
743
+ * ERP amortization template for this line.
744
+ */
745
+ export interface GlAmortizationTemplate {
746
+ /**
747
+ * Rippling ID of the accounting integration that owns this object. No public
748
+ * Rippling API is currently available to retrieve this accounting integration.
749
+ */
750
+ accounting_integration_id?: string;
751
+
752
+ /**
753
+ * Object ID in the connected accounting system.
754
+ */
755
+ gl_object_id?: string;
756
+
757
+ /**
758
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
759
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
760
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
761
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
762
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
763
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
764
+ * when not set.
765
+ */
766
+ gl_object_type?:
767
+ | 'GL_AMORTIZATION_TEMPLATE'
768
+ | 'GL_AMORTIZATION_SCHEDULE'
769
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
770
+ | 'GL_ACCOUNT'
771
+ | 'GL_JOURNAL_ENTRY'
772
+ | 'GL_POSTING_PERIOD'
773
+ | 'GL_VENDOR'
774
+ | 'GL_CUSTOMER'
775
+ | 'GL_EMPLOYEE'
776
+ | 'GL_SUBSIDIARY';
777
+
778
+ /**
779
+ * Accounting object name.
780
+ */
781
+ name?: string;
782
+ }
783
+
784
+ /**
785
+ * Prepaid asset account for Rippling-managed amortization.
786
+ */
787
+ export interface PrepaidAccount {
788
+ /**
789
+ * Account ID in the connected accounting system.
790
+ */
791
+ account_id?: string;
792
+
793
+ /**
794
+ * Account code.
795
+ */
796
+ code?: string;
797
+
798
+ /**
799
+ * Account name.
800
+ */
801
+ name?: string;
802
+
803
+ /**
804
+ * IDs of custom dimensions required by this account.
805
+ */
806
+ required_custom_dimensions?: Array<string>;
807
+
808
+ /**
809
+ * Whether this account requires a department.
810
+ */
811
+ requires_department?: boolean;
812
+
813
+ /**
814
+ * Whether this account requires a work location.
815
+ */
816
+ requires_work_location?: boolean;
817
+
818
+ /**
819
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
820
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
821
+ * when not set.
822
+ */
823
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
824
+ }
825
+
826
+ /**
827
+ * Total tax amount for this line in the merchant currency.
828
+ */
829
+ export interface TaxAmount {
830
+ /**
831
+ * The currency type, ex: USD, EUR, etc.
832
+ */
833
+ currency_type?: string;
834
+
835
+ /**
836
+ * The decimal amount for the currency.
837
+ */
838
+ value?: number;
839
+ }
840
+ }
841
+
842
+ /**
843
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
844
+ * decimal string.
845
+ */
846
+ export interface MerchantAmount {
847
+ /**
848
+ * The currency type, ex: USD, EUR, etc.
849
+ */
850
+ currency_type?: string;
851
+
852
+ /**
853
+ * The decimal amount for the currency.
854
+ */
855
+ value?: number;
856
+ }
857
+
858
+ /**
859
+ * Amount paid to the vendor, in the payment currency. The `value` is a decimal
860
+ * string.
861
+ */
862
+ export interface PaymentAmount {
863
+ /**
864
+ * The currency type, ex: USD, EUR, etc.
865
+ */
866
+ currency_type?: string;
867
+
868
+ /**
869
+ * The decimal amount for the currency.
870
+ */
871
+ value?: number;
872
+ }
873
+
874
+ /**
875
+ * Payment method fee, in the company's headquarters currency. The `value` is a
876
+ * decimal string. Zero when there is no fee.
877
+ */
878
+ export interface PaymentMethodFee {
879
+ /**
880
+ * The currency type, ex: USD, EUR, etc.
881
+ */
882
+ currency_type?: string;
883
+
884
+ /**
885
+ * The decimal amount for the currency.
886
+ */
887
+ value?: number;
888
+ }
889
+
890
+ /**
891
+ * Vendor details. Expand with `bills.read` and `finance-vendors.read`.
892
+ *
893
+ * Expandable field
894
+ */
895
+ export interface Vendor {
896
+ /**
897
+ * Identifier field
898
+ */
899
+ id: string;
900
+
901
+ /**
902
+ * Record creation date
903
+ */
904
+ created_at: string;
905
+
906
+ /**
907
+ * Record update date
908
+ */
909
+ updated_at: string;
910
+
911
+ /**
912
+ * Whether the vendor is archived. Archived vendors remain available for historical
913
+ * references.
914
+ */
915
+ is_archived?: boolean;
916
+
917
+ /**
918
+ * URL of the vendor's logo. Null when no logo is available.
919
+ */
920
+ logo?: string;
921
+
922
+ /**
923
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
924
+ * alternate names.
925
+ */
926
+ name?: string;
927
+ }
928
+ }
929
+
930
+ /**
931
+ * Meta information for the response.
932
+ */
933
+ export interface BillRetrieveResponse extends BusinessPartnersAPI.Meta {
934
+ /**
935
+ * Identifier field
936
+ */
937
+ id: string;
938
+
939
+ /**
940
+ * Record creation date
941
+ */
942
+ created_at: string;
943
+
944
+ /**
945
+ * Record update date
946
+ */
947
+ updated_at: string;
948
+
949
+ /**
950
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
951
+ * (YYYY-MM-DD).
952
+ */
953
+ accounting_date?: string;
954
+
955
+ /**
956
+ * Approval state of the bill. `DRAFT`: not submitted. `PENDING`: awaiting required
957
+ * information before submission. `REQUESTED`: awaiting approval. `APPROVED`:
958
+ * approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`:
959
+ * paid. `CANCELLED`: cancelled. `FAILED`: payment failed.
960
+ */
961
+ approval_status?:
962
+ | 'DRAFT'
963
+ | 'PENDING'
964
+ | 'REQUESTED'
965
+ | 'APPROVED'
966
+ | 'REJECTED'
967
+ | 'FINALIZED'
968
+ | 'ACTIONED'
969
+ | 'CANCELLED'
970
+ | 'FAILED';
971
+
972
+ /**
973
+ * Other attached files, including filenames and recorded upload metadata.
974
+ */
975
+ attachments?: Array<BillRetrieveResponse.Attachment>;
976
+
977
+ /**
978
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
979
+ */
980
+ company_amount?: BillRetrieveResponse.CompanyAmount;
981
+
982
+ /**
983
+ * How the vendor is paid: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD,
984
+ * MANUALLY_PAID, or PAID_IN_FULL_VIA_VENDOR_CREDIT. GLOBAL_ORDER is an
985
+ * international transfer. PAID_IN_FULL_VIA_VENDOR_CREDIT means vendor credits
986
+ * cover the full bill, with no cash payment.
987
+ */
988
+ credit_method?:
989
+ | 'ACH'
990
+ | 'WIRE'
991
+ | 'CHECK'
992
+ | 'GLOBAL_ORDER'
993
+ | 'EXISTING_CORPORATE_CARD'
994
+ | 'MANUALLY_PAID'
995
+ | 'PAID_IN_FULL_VIA_VENDOR_CREDIT';
996
+
997
+ /**
998
+ * Invoice due date, as an ISO 8601 date. A draft can omit it.
999
+ */
1000
+ due_date?: string;
1001
+
1002
+ /**
1003
+ * ID of the legal entity the transaction belongs to. Use it with
1004
+ * `/company-legal-entities/{id}/`.
1005
+ */
1006
+ entity_id?: string;
1007
+
1008
+ /**
1009
+ * Date the vendor is expected to receive the payment, as an ISO 8601 date. Null
1010
+ * when not set.
1011
+ */
1012
+ estimated_payment_arrival?: string;
1013
+
1014
+ /**
1015
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
1016
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
1017
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
1018
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
1019
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
1020
+ * be synced automatically. Null when no sync state is set.
1021
+ */
1022
+ gl_sync_state?:
1023
+ | 'NOT_FINALIZED'
1024
+ | 'FOR_REVIEW'
1025
+ | 'PENDING_SYNC'
1026
+ | 'SYNCED'
1027
+ | 'ERROR'
1028
+ | 'DO_NOT_SYNC'
1029
+ | 'EXPORTED'
1030
+ | 'NOT_SYNCABLE'
1031
+ | 'AUTO_SYNC';
1032
+
1033
+ /**
1034
+ * Vendor in the connected accounting system.
1035
+ */
1036
+ gl_vendor?: BillRetrieveResponse.GlVendor;
1037
+
1038
+ /**
1039
+ * Invoice file and its filename.
1040
+ */
1041
+ invoice?: BillRetrieveResponse.Invoice;
1042
+
1043
+ /**
1044
+ * Invoice date, as an ISO 8601 date (YYYY-MM-DD). Null when not set. Filters
1045
+ * compare UTC calendar days: `eq` includes the whole day, `gt` starts the
1046
+ * following day, and `lt` excludes the specified day. `ge` and `le` include the
1047
+ * specified day; `in` matches any listed day.
1048
+ */
1049
+ invoice_date?: string;
1050
+
1051
+ /**
1052
+ * Invoice number. Null when the bill has no invoice number.
1053
+ */
1054
+ invoice_number?: string;
1055
+
1056
+ /**
1057
+ * Category splits of the transaction amount. Updates replace the entire list.
1058
+ */
1059
+ line_items?: Array<BillRetrieveResponse.LineItem>;
1060
+
1061
+ /**
1062
+ * Memo entered on the transaction.
1063
+ */
1064
+ memo?: string;
1065
+
1066
+ /**
1067
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
1068
+ * decimal string.
1069
+ */
1070
+ merchant_amount?: BillRetrieveResponse.MerchantAmount;
1071
+
1072
+ /**
1073
+ * ID of the bill this payment was split from. Use it with `/bills/{id}/`. Null
1074
+ * when it is not a split bill.
1075
+ */
1076
+ parent_bill_id?: string;
1077
+
1078
+ /**
1079
+ * Amount paid to the vendor, in the payment currency. The `value` is a decimal
1080
+ * string.
1081
+ */
1082
+ payment_amount?: BillRetrieveResponse.PaymentAmount;
1083
+
1084
+ /**
1085
+ * Payment method fee, in the company's headquarters currency. The `value` is a
1086
+ * decimal string. Zero when there is no fee.
1087
+ */
1088
+ payment_method_fee?: BillRetrieveResponse.PaymentMethodFee;
1089
+
1090
+ /**
1091
+ * Payment scheduling choice: `SCHEDULE_NOW` to schedule payment, or `SKIP_FOR_NOW`
1092
+ * to defer scheduling.
1093
+ */
1094
+ payment_schedule_setting?: 'SCHEDULE_NOW' | 'SKIP_FOR_NOW';
1095
+
1096
+ /**
1097
+ * Payment speed option: `TWO_DAY` (accelerated) or `FOUR_DAY` (standard). Use
1098
+ * `estimated_payment_arrival` for the expected arrival date.
1099
+ */
1100
+ payment_velocity?: 'TWO_DAY' | 'FOUR_DAY';
1101
+
1102
+ /**
1103
+ * Date used to estimate vendor payment, as an ISO 8601 date. Null when not set.
1104
+ */
1105
+ scheduled_payment_date?: string;
1106
+
1107
+ /**
1108
+ * Submitting bill manager. Expand with `bills.read` and `workers.read`.
1109
+ *
1110
+ * Expandable field
1111
+ */
1112
+ submitter?: WorkersAPI.Worker;
1113
+
1114
+ /**
1115
+ * ID of the bill manager who submitted the bill. Use it with `/workers/{id}/`. Can
1116
+ * differ from `worker_id`. Null before submission.
1117
+ */
1118
+ submitter_id?: string;
1119
+
1120
+ /**
1121
+ * Type of transaction: `BILL_PAYMENT`.
1122
+ */
1123
+ transaction_type?: 'BILL_PAYMENT';
1124
+
1125
+ /**
1126
+ * Vendor details. Expand with `bills.read` and `finance-vendors.read`.
1127
+ *
1128
+ * Expandable field
1129
+ */
1130
+ vendor?: BillRetrieveResponse.Vendor;
1131
+
1132
+ /**
1133
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
1134
+ */
1135
+ vendor_id?: string;
1136
+
1137
+ /**
1138
+ * Memo included on the payment to the vendor. Supported for ACH; null when not
1139
+ * set.
1140
+ */
1141
+ vendor_memo?: string;
1142
+
1143
+ /**
1144
+ * Date the vendor is paid, as an ISO 8601 date. Null until paid.
1145
+ */
1146
+ vendor_paid_date?: string;
1147
+
1148
+ /**
1149
+ * Worker details. Expand with `bills.read` and `workers.read`.
1150
+ *
1151
+ * Expandable field
1152
+ */
1153
+ worker?: WorkersAPI.Worker;
1154
+
1155
+ /**
1156
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
1157
+ */
1158
+ worker_id?: string;
1159
+ }
1160
+
1161
+ export namespace BillRetrieveResponse {
1162
+ /**
1163
+ * A Finance transaction attachment with recorded upload details.
1164
+ */
1165
+ export interface Attachment {
1166
+ /**
1167
+ * URL for accessing the file.
1168
+ */
1169
+ url: string;
1170
+
1171
+ /**
1172
+ * Original file name, when recorded.
1173
+ */
1174
+ file_name?: string;
1175
+
1176
+ /**
1177
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
1178
+ * recorded.
1179
+ */
1180
+ uploaded_at?: string;
1181
+
1182
+ /**
1183
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
1184
+ */
1185
+ uploaded_by_id?: string;
1186
+ }
1187
+
1188
+ /**
1189
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
1190
+ */
1191
+ export interface CompanyAmount {
1192
+ /**
1193
+ * The currency type, ex: USD, EUR, etc.
1194
+ */
1195
+ currency_type?: string;
1196
+
1197
+ /**
1198
+ * The decimal amount for the currency.
1199
+ */
1200
+ value?: number;
1201
+ }
1202
+
1203
+ /**
1204
+ * Vendor in the connected accounting system.
1205
+ */
1206
+ export interface GlVendor {
1207
+ /**
1208
+ * ID of the accounting vendor in Rippling.
1209
+ */
1210
+ id?: string;
1211
+
1212
+ /**
1213
+ * ID of the vendor in the accounting system.
1214
+ */
1215
+ gl_vendor_id?: string;
1216
+
1217
+ /**
1218
+ * Name of the vendor in the accounting system.
1219
+ */
1220
+ name?: string;
1221
+ }
1222
+
1223
+ /**
1224
+ * Invoice file and its filename.
1225
+ */
1226
+ export interface Invoice {
1227
+ /**
1228
+ * URL for accessing the file.
1229
+ */
1230
+ url: string;
1231
+
1232
+ /**
1233
+ * Original file name, when recorded.
1234
+ */
1235
+ file_name?: string;
1236
+ }
1237
+
1238
+ export interface LineItem {
1239
+ /**
1240
+ * Unique identifier of this line item. Null for older line items that have not
1241
+ * been assigned one yet.
1242
+ */
1243
+ id?: string;
1244
+
1245
+ /**
1246
+ * Whether this line is amortized.
1247
+ */
1248
+ amortized?: boolean;
1249
+
1250
+ /**
1251
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
1252
+ */
1253
+ amount?: LineItem.Amount;
1254
+
1255
+ /**
1256
+ * ID of the Finance category assigned to this split. Use it with
1257
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
1258
+ */
1259
+ category_id?: string;
1260
+
1261
+ /**
1262
+ * Name of the finance category.
1263
+ */
1264
+ category_name?: string;
1265
+
1266
+ /**
1267
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
1268
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
1269
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
1270
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
1271
+ */
1272
+ dimension_choices?: { [key: string]: LineItem.DimensionChoices };
1273
+
1274
+ /**
1275
+ * End of the amortization period (YYYY-MM-DD).
1276
+ */
1277
+ end_date?: string;
1278
+
1279
+ /**
1280
+ * ERP amortization schedule associated with this line.
1281
+ */
1282
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
1283
+
1284
+ /**
1285
+ * ERP amortization template for this line.
1286
+ */
1287
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
1288
+
1289
+ /**
1290
+ * Whether this split is billed to `gl_customer` in the accounting system.
1291
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
1292
+ * set.
1293
+ */
1294
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
1295
+
1296
+ /**
1297
+ * ID of the customer record in the connected accounting integration. No public
1298
+ * Rippling API is currently available to retrieve this accounting customer.
1299
+ */
1300
+ gl_customer?: string;
1301
+
1302
+ /**
1303
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
1304
+ * available to retrieve this accounting tax code.
1305
+ */
1306
+ gl_tax_code?: string;
1307
+
1308
+ /**
1309
+ * Memo entered on this split.
1310
+ */
1311
+ memo?: string;
1312
+
1313
+ /**
1314
+ * Prepaid asset account for Rippling-managed amortization.
1315
+ */
1316
+ prepaid_account?: LineItem.PrepaidAccount;
1317
+
1318
+ /**
1319
+ * Start of the amortization period (YYYY-MM-DD).
1320
+ */
1321
+ start_date?: string;
1322
+
1323
+ /**
1324
+ * Total tax amount for this line in the merchant currency.
1325
+ */
1326
+ tax_amount?: LineItem.TaxAmount;
1327
+ }
1328
+
1329
+ export namespace LineItem {
1330
+ /**
1331
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
1332
+ */
1333
+ export interface Amount {
1334
+ /**
1335
+ * The currency type, ex: USD, EUR, etc.
1336
+ */
1337
+ currency_type?: string;
1338
+
1339
+ /**
1340
+ * The decimal amount for the currency.
1341
+ */
1342
+ value?: number;
1343
+ }
1344
+
1345
+ export interface DimensionChoices {
1346
+ /**
1347
+ * Name of the dimension, such as Department.
1348
+ */
1349
+ dimension_name?: string;
1350
+
1351
+ /**
1352
+ * Display name of the selected dimension value.
1353
+ */
1354
+ label?: string;
1355
+
1356
+ /**
1357
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
1358
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
1359
+ * `/job-codes/{id}/`.
1360
+ */
1361
+ value?: string;
1362
+ }
1363
+
1364
+ /**
1365
+ * ERP amortization schedule associated with this line.
1366
+ */
1367
+ export interface GlAmortizationSchedule {
1368
+ /**
1369
+ * Rippling ID of the accounting integration that owns this object. No public
1370
+ * Rippling API is currently available to retrieve this accounting integration.
1371
+ */
1372
+ accounting_integration_id?: string;
1373
+
1374
+ /**
1375
+ * Number of amortization periods.
1376
+ */
1377
+ amortization_period?: number;
1378
+
1379
+ /**
1380
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1381
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
1382
+ * indicate UTC. Null when not set.
1383
+ */
1384
+ end_date?: string;
1385
+
1386
+ /**
1387
+ * Object ID in the connected accounting system.
1388
+ */
1389
+ gl_object_id?: string;
1390
+
1391
+ /**
1392
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1393
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1394
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1395
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1396
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1397
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1398
+ * when not set.
1399
+ */
1400
+ gl_object_type?:
1401
+ | 'GL_AMORTIZATION_TEMPLATE'
1402
+ | 'GL_AMORTIZATION_SCHEDULE'
1403
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1404
+ | 'GL_ACCOUNT'
1405
+ | 'GL_JOURNAL_ENTRY'
1406
+ | 'GL_POSTING_PERIOD'
1407
+ | 'GL_VENDOR'
1408
+ | 'GL_CUSTOMER'
1409
+ | 'GL_EMPLOYEE'
1410
+ | 'GL_SUBSIDIARY';
1411
+
1412
+ /**
1413
+ * Accounting object name.
1414
+ */
1415
+ name?: string;
1416
+
1417
+ /**
1418
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1419
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
1420
+ * indicate UTC. Null when not set.
1421
+ */
1422
+ start_date?: string;
1423
+
1424
+ /**
1425
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
1426
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
1427
+ * complete; ON_HOLD means amortization is paused. Null when not set.
1428
+ */
1429
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
1430
+
1431
+ /**
1432
+ * Amount already amortized as reported by the ERP, in the same currency as
1433
+ * total_amount. No currency conversion is applied; the schedule currency code is
1434
+ * not available in this response.
1435
+ */
1436
+ total_amortized_amount?: number;
1437
+
1438
+ /**
1439
+ * Total schedule amount as reported by the ERP, without currency conversion. The
1440
+ * schedule currency code is not available in this response.
1441
+ */
1442
+ total_amount?: number;
1443
+ }
1444
+
1445
+ /**
1446
+ * ERP amortization template for this line.
1447
+ */
1448
+ export interface GlAmortizationTemplate {
1449
+ /**
1450
+ * Rippling ID of the accounting integration that owns this object. No public
1451
+ * Rippling API is currently available to retrieve this accounting integration.
1452
+ */
1453
+ accounting_integration_id?: string;
1454
+
1455
+ /**
1456
+ * Object ID in the connected accounting system.
1457
+ */
1458
+ gl_object_id?: string;
1459
+
1460
+ /**
1461
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1462
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1463
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1464
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1465
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1466
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1467
+ * when not set.
1468
+ */
1469
+ gl_object_type?:
1470
+ | 'GL_AMORTIZATION_TEMPLATE'
1471
+ | 'GL_AMORTIZATION_SCHEDULE'
1472
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1473
+ | 'GL_ACCOUNT'
1474
+ | 'GL_JOURNAL_ENTRY'
1475
+ | 'GL_POSTING_PERIOD'
1476
+ | 'GL_VENDOR'
1477
+ | 'GL_CUSTOMER'
1478
+ | 'GL_EMPLOYEE'
1479
+ | 'GL_SUBSIDIARY';
1480
+
1481
+ /**
1482
+ * Accounting object name.
1483
+ */
1484
+ name?: string;
1485
+ }
1486
+
1487
+ /**
1488
+ * Prepaid asset account for Rippling-managed amortization.
1489
+ */
1490
+ export interface PrepaidAccount {
1491
+ /**
1492
+ * Account ID in the connected accounting system.
1493
+ */
1494
+ account_id?: string;
1495
+
1496
+ /**
1497
+ * Account code.
1498
+ */
1499
+ code?: string;
1500
+
1501
+ /**
1502
+ * Account name.
1503
+ */
1504
+ name?: string;
1505
+
1506
+ /**
1507
+ * IDs of custom dimensions required by this account.
1508
+ */
1509
+ required_custom_dimensions?: Array<string>;
1510
+
1511
+ /**
1512
+ * Whether this account requires a department.
1513
+ */
1514
+ requires_department?: boolean;
1515
+
1516
+ /**
1517
+ * Whether this account requires a work location.
1518
+ */
1519
+ requires_work_location?: boolean;
1520
+
1521
+ /**
1522
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
1523
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
1524
+ * when not set.
1525
+ */
1526
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
1527
+ }
1528
+
1529
+ /**
1530
+ * Total tax amount for this line in the merchant currency.
1531
+ */
1532
+ export interface TaxAmount {
1533
+ /**
1534
+ * The currency type, ex: USD, EUR, etc.
1535
+ */
1536
+ currency_type?: string;
1537
+
1538
+ /**
1539
+ * The decimal amount for the currency.
1540
+ */
1541
+ value?: number;
1542
+ }
1543
+ }
1544
+
1545
+ /**
1546
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
1547
+ * decimal string.
1548
+ */
1549
+ export interface MerchantAmount {
1550
+ /**
1551
+ * The currency type, ex: USD, EUR, etc.
1552
+ */
1553
+ currency_type?: string;
1554
+
1555
+ /**
1556
+ * The decimal amount for the currency.
1557
+ */
1558
+ value?: number;
1559
+ }
1560
+
1561
+ /**
1562
+ * Amount paid to the vendor, in the payment currency. The `value` is a decimal
1563
+ * string.
1564
+ */
1565
+ export interface PaymentAmount {
1566
+ /**
1567
+ * The currency type, ex: USD, EUR, etc.
1568
+ */
1569
+ currency_type?: string;
1570
+
1571
+ /**
1572
+ * The decimal amount for the currency.
1573
+ */
1574
+ value?: number;
1575
+ }
1576
+
1577
+ /**
1578
+ * Payment method fee, in the company's headquarters currency. The `value` is a
1579
+ * decimal string. Zero when there is no fee.
1580
+ */
1581
+ export interface PaymentMethodFee {
1582
+ /**
1583
+ * The currency type, ex: USD, EUR, etc.
1584
+ */
1585
+ currency_type?: string;
1586
+
1587
+ /**
1588
+ * The decimal amount for the currency.
1589
+ */
1590
+ value?: number;
1591
+ }
1592
+
1593
+ /**
1594
+ * Vendor details. Expand with `bills.read` and `finance-vendors.read`.
1595
+ *
1596
+ * Expandable field
1597
+ */
1598
+ export interface Vendor {
1599
+ /**
1600
+ * Identifier field
1601
+ */
1602
+ id: string;
1603
+
1604
+ /**
1605
+ * Record creation date
1606
+ */
1607
+ created_at: string;
1608
+
1609
+ /**
1610
+ * Record update date
1611
+ */
1612
+ updated_at: string;
1613
+
1614
+ /**
1615
+ * Whether the vendor is archived. Archived vendors remain available for historical
1616
+ * references.
1617
+ */
1618
+ is_archived?: boolean;
1619
+
1620
+ /**
1621
+ * URL of the vendor's logo. Null when no logo is available.
1622
+ */
1623
+ logo?: string;
1624
+
1625
+ /**
1626
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
1627
+ * alternate names.
1628
+ */
1629
+ name?: string;
1630
+ }
1631
+ }
1632
+
1633
+ export interface BillListParams {
1634
+ cursor?: string;
1635
+
1636
+ expand?: string;
1637
+
1638
+ filter?: string;
1639
+
1640
+ /**
1641
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
1642
+ */
1643
+ limit?: number;
1644
+
1645
+ order_by?: string;
1646
+ }
1647
+
1648
+ export interface BillRetrieveParams {
1649
+ expand?: string;
1650
+ }
1651
+
1652
+ export declare namespace Bills {
1653
+ export {
1654
+ type BillListResponse as BillListResponse,
1655
+ type BillRetrieveResponse as BillRetrieveResponse,
1656
+ type BillListResponsesPageCursorURL as BillListResponsesPageCursorURL,
1657
+ type BillListParams as BillListParams,
1658
+ type BillRetrieveParams as BillRetrieveParams,
1659
+ };
1660
+ }