conductor-node 12.43.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1002) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +111 -41
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/bin/cli +46 -0
  12. package/bin/migration-config.json +44 -0
  13. package/client.d.mts +189 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +189 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +462 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +458 -0
  20. package/client.mjs.map +1 -0
  21. package/core/api-promise.d.mts +46 -0
  22. package/core/api-promise.d.mts.map +1 -0
  23. package/core/api-promise.d.ts +46 -0
  24. package/core/api-promise.d.ts.map +1 -0
  25. package/core/api-promise.js +74 -0
  26. package/core/api-promise.js.map +1 -0
  27. package/core/api-promise.mjs +70 -0
  28. package/core/api-promise.mjs.map +1 -0
  29. package/core/error.d.mts +46 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +46 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +113 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +97 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/pagination.d.mts +54 -0
  38. package/core/pagination.d.mts.map +1 -0
  39. package/core/pagination.d.ts +54 -0
  40. package/core/pagination.d.ts.map +1 -0
  41. package/core/pagination.js +101 -0
  42. package/core/pagination.js.map +1 -0
  43. package/core/pagination.mjs +95 -0
  44. package/core/pagination.mjs.map +1 -0
  45. package/core/resource.d.mts +6 -0
  46. package/core/resource.d.mts.map +1 -0
  47. package/core/resource.d.ts +6 -0
  48. package/core/resource.d.ts.map +1 -0
  49. package/core/resource.js +11 -0
  50. package/core/resource.js.map +1 -0
  51. package/core/resource.mjs +7 -0
  52. package/core/resource.mjs.map +1 -0
  53. package/core/uploads.d.mts +3 -0
  54. package/core/uploads.d.mts.map +1 -0
  55. package/core/uploads.d.ts +3 -0
  56. package/core/uploads.d.ts.map +1 -0
  57. package/core/uploads.js +6 -0
  58. package/core/uploads.js.map +1 -0
  59. package/core/uploads.mjs +2 -0
  60. package/core/uploads.mjs.map +1 -0
  61. package/error.d.mts +2 -0
  62. package/error.d.mts.map +1 -0
  63. package/error.d.ts +1 -46
  64. package/error.d.ts.map +1 -1
  65. package/error.js +3 -110
  66. package/error.js.map +1 -1
  67. package/error.mjs +1 -96
  68. package/error.mjs.map +1 -1
  69. package/index.d.mts +7 -124
  70. package/index.d.mts.map +1 -0
  71. package/index.d.ts +6 -123
  72. package/index.d.ts.map +1 -1
  73. package/index.js +14 -119
  74. package/index.js.map +1 -1
  75. package/index.mjs +6 -92
  76. package/index.mjs.map +1 -1
  77. package/internal/builtin-types.d.mts +73 -0
  78. package/internal/builtin-types.d.mts.map +1 -0
  79. package/internal/builtin-types.d.ts +73 -0
  80. package/internal/builtin-types.d.ts.map +1 -0
  81. package/internal/builtin-types.js +4 -0
  82. package/internal/builtin-types.js.map +1 -0
  83. package/internal/builtin-types.mjs +3 -0
  84. package/internal/builtin-types.mjs.map +1 -0
  85. package/internal/detect-platform.d.mts +15 -0
  86. package/internal/detect-platform.d.mts.map +1 -0
  87. package/internal/detect-platform.d.ts +15 -0
  88. package/internal/detect-platform.d.ts.map +1 -0
  89. package/internal/detect-platform.js +162 -0
  90. package/internal/detect-platform.js.map +1 -0
  91. package/internal/detect-platform.mjs +157 -0
  92. package/internal/detect-platform.mjs.map +1 -0
  93. package/internal/errors.d.mts +3 -0
  94. package/internal/errors.d.mts.map +1 -0
  95. package/internal/errors.d.ts +3 -0
  96. package/internal/errors.d.ts.map +1 -0
  97. package/internal/errors.js +41 -0
  98. package/internal/errors.js.map +1 -0
  99. package/internal/errors.mjs +36 -0
  100. package/internal/errors.mjs.map +1 -0
  101. package/internal/headers.d.mts +20 -0
  102. package/internal/headers.d.mts.map +1 -0
  103. package/internal/headers.d.ts +20 -0
  104. package/internal/headers.d.ts.map +1 -0
  105. package/internal/headers.js +79 -0
  106. package/internal/headers.js.map +1 -0
  107. package/internal/headers.mjs +74 -0
  108. package/internal/headers.mjs.map +1 -0
  109. package/internal/parse.d.mts +12 -0
  110. package/internal/parse.d.mts.map +1 -0
  111. package/internal/parse.d.ts +12 -0
  112. package/internal/parse.d.ts.map +1 -0
  113. package/internal/parse.js +35 -0
  114. package/internal/parse.js.map +1 -0
  115. package/internal/parse.mjs +32 -0
  116. package/internal/parse.mjs.map +1 -0
  117. package/internal/qs/formats.d.mts +7 -0
  118. package/internal/qs/formats.d.mts.map +1 -0
  119. package/internal/qs/formats.d.ts +1 -0
  120. package/internal/qs/formats.d.ts.map +1 -1
  121. package/internal/qs/formats.js +4 -2
  122. package/internal/qs/formats.js.map +1 -1
  123. package/internal/qs/formats.mjs +2 -1
  124. package/internal/qs/formats.mjs.map +1 -1
  125. package/internal/qs/index.d.mts +10 -0
  126. package/internal/qs/index.d.mts.map +1 -0
  127. package/internal/qs/index.d.ts.map +1 -1
  128. package/internal/qs/stringify.d.mts +3 -0
  129. package/internal/qs/stringify.d.mts.map +1 -0
  130. package/internal/qs/stringify.d.ts.map +1 -1
  131. package/internal/qs/stringify.js +16 -19
  132. package/internal/qs/stringify.js.map +1 -1
  133. package/internal/qs/stringify.mjs +17 -19
  134. package/internal/qs/stringify.mjs.map +1 -1
  135. package/internal/qs/types.d.mts +57 -0
  136. package/internal/qs/types.d.mts.map +1 -0
  137. package/internal/qs/utils.d.mts +15 -0
  138. package/internal/qs/utils.d.mts.map +1 -0
  139. package/internal/qs/utils.d.ts +1 -0
  140. package/internal/qs/utils.d.ts.map +1 -1
  141. package/internal/qs/utils.js +22 -21
  142. package/internal/qs/utils.js.map +1 -1
  143. package/internal/qs/utils.mjs +12 -12
  144. package/internal/qs/utils.mjs.map +1 -1
  145. package/internal/request-options.d.mts +75 -0
  146. package/internal/request-options.d.mts.map +1 -0
  147. package/internal/request-options.d.ts +75 -0
  148. package/internal/request-options.d.ts.map +1 -0
  149. package/internal/request-options.js +14 -0
  150. package/internal/request-options.js.map +1 -0
  151. package/internal/request-options.mjs +10 -0
  152. package/internal/request-options.mjs.map +1 -0
  153. package/internal/shim-types.d.mts +17 -0
  154. package/internal/shim-types.d.mts.map +1 -0
  155. package/internal/shim-types.d.ts +17 -0
  156. package/internal/shim-types.d.ts.map +1 -0
  157. package/internal/shim-types.js +4 -0
  158. package/internal/shim-types.js.map +1 -0
  159. package/internal/shim-types.mjs +3 -0
  160. package/internal/shim-types.mjs.map +1 -0
  161. package/internal/shims.d.mts +20 -0
  162. package/internal/shims.d.mts.map +1 -0
  163. package/internal/shims.d.ts +20 -0
  164. package/internal/shims.d.ts.map +1 -0
  165. package/internal/shims.js +92 -0
  166. package/internal/shims.js.map +1 -0
  167. package/internal/shims.mjs +85 -0
  168. package/internal/shims.mjs.map +1 -0
  169. package/internal/to-file.d.mts +45 -0
  170. package/internal/to-file.d.mts.map +1 -0
  171. package/internal/to-file.d.ts +45 -0
  172. package/internal/to-file.d.ts.map +1 -0
  173. package/internal/to-file.js +91 -0
  174. package/internal/to-file.js.map +1 -0
  175. package/internal/to-file.mjs +88 -0
  176. package/internal/to-file.mjs.map +1 -0
  177. package/internal/tslib.js +81 -0
  178. package/internal/tslib.mjs +17 -0
  179. package/internal/types.d.mts +69 -0
  180. package/internal/types.d.mts.map +1 -0
  181. package/internal/types.d.ts +69 -0
  182. package/internal/types.d.ts.map +1 -0
  183. package/internal/types.js +4 -0
  184. package/internal/types.js.map +1 -0
  185. package/internal/types.mjs +3 -0
  186. package/internal/types.mjs.map +1 -0
  187. package/internal/uploads.d.mts +42 -0
  188. package/internal/uploads.d.mts.map +1 -0
  189. package/internal/uploads.d.ts +42 -0
  190. package/internal/uploads.d.ts.map +1 -0
  191. package/internal/uploads.js +141 -0
  192. package/internal/uploads.js.map +1 -0
  193. package/internal/uploads.mjs +131 -0
  194. package/internal/uploads.mjs.map +1 -0
  195. package/internal/utils/base64.d.mts +3 -0
  196. package/internal/utils/base64.d.mts.map +1 -0
  197. package/internal/utils/base64.d.ts +3 -0
  198. package/internal/utils/base64.d.ts.map +1 -0
  199. package/internal/utils/base64.js +38 -0
  200. package/internal/utils/base64.js.map +1 -0
  201. package/internal/utils/base64.mjs +33 -0
  202. package/internal/utils/base64.mjs.map +1 -0
  203. package/internal/utils/bytes.d.mts +4 -0
  204. package/internal/utils/bytes.d.mts.map +1 -0
  205. package/internal/utils/bytes.d.ts +4 -0
  206. package/internal/utils/bytes.d.ts.map +1 -0
  207. package/internal/utils/bytes.js +31 -0
  208. package/internal/utils/bytes.js.map +1 -0
  209. package/internal/utils/bytes.mjs +26 -0
  210. package/internal/utils/bytes.mjs.map +1 -0
  211. package/internal/utils/env.d.mts +9 -0
  212. package/internal/utils/env.d.mts.map +1 -0
  213. package/internal/utils/env.d.ts +9 -0
  214. package/internal/utils/env.d.ts.map +1 -0
  215. package/internal/utils/env.js +22 -0
  216. package/internal/utils/env.js.map +1 -0
  217. package/internal/utils/env.mjs +18 -0
  218. package/internal/utils/env.mjs.map +1 -0
  219. package/internal/utils/log.d.mts +37 -0
  220. package/internal/utils/log.d.mts.map +1 -0
  221. package/internal/utils/log.d.ts +37 -0
  222. package/internal/utils/log.d.ts.map +1 -0
  223. package/internal/utils/log.js +85 -0
  224. package/internal/utils/log.js.map +1 -0
  225. package/internal/utils/log.mjs +79 -0
  226. package/internal/utils/log.mjs.map +1 -0
  227. package/internal/utils/path.d.mts +15 -0
  228. package/internal/utils/path.d.mts.map +1 -0
  229. package/internal/utils/path.d.ts +15 -0
  230. package/internal/utils/path.d.ts.map +1 -0
  231. package/internal/utils/path.js +79 -0
  232. package/internal/utils/path.js.map +1 -0
  233. package/internal/utils/path.mjs +74 -0
  234. package/internal/utils/path.mjs.map +1 -0
  235. package/internal/utils/sleep.d.mts +2 -0
  236. package/internal/utils/sleep.d.mts.map +1 -0
  237. package/internal/utils/sleep.d.ts +2 -0
  238. package/internal/utils/sleep.d.ts.map +1 -0
  239. package/internal/utils/sleep.js +7 -0
  240. package/internal/utils/sleep.js.map +1 -0
  241. package/internal/utils/sleep.mjs +3 -0
  242. package/internal/utils/sleep.mjs.map +1 -0
  243. package/internal/utils/uuid.d.mts +5 -0
  244. package/internal/utils/uuid.d.mts.map +1 -0
  245. package/internal/utils/uuid.d.ts +5 -0
  246. package/internal/utils/uuid.d.ts.map +1 -0
  247. package/internal/utils/uuid.js +19 -0
  248. package/internal/utils/uuid.js.map +1 -0
  249. package/internal/utils/uuid.mjs +15 -0
  250. package/internal/utils/uuid.mjs.map +1 -0
  251. package/internal/utils/values.d.mts +18 -0
  252. package/internal/utils/values.d.mts.map +1 -0
  253. package/internal/utils/values.d.ts +18 -0
  254. package/internal/utils/values.d.ts.map +1 -0
  255. package/internal/utils/values.js +112 -0
  256. package/internal/utils/values.js.map +1 -0
  257. package/internal/utils/values.mjs +94 -0
  258. package/internal/utils/values.mjs.map +1 -0
  259. package/internal/utils.d.mts +7 -0
  260. package/internal/utils.d.mts.map +1 -0
  261. package/internal/utils.d.ts +7 -0
  262. package/internal/utils.d.ts.map +1 -0
  263. package/internal/utils.js +11 -0
  264. package/internal/utils.js.map +1 -0
  265. package/internal/utils.mjs +8 -0
  266. package/internal/utils.mjs.map +1 -0
  267. package/package.json +113 -64
  268. package/pagination.d.mts +2 -0
  269. package/pagination.d.mts.map +1 -0
  270. package/pagination.d.ts +1 -17
  271. package/pagination.d.ts.map +1 -1
  272. package/pagination.js +3 -37
  273. package/pagination.js.map +1 -1
  274. package/pagination.mjs +1 -35
  275. package/pagination.mjs.map +1 -1
  276. package/resource.d.mts +2 -0
  277. package/resource.d.mts.map +1 -0
  278. package/resource.d.ts +1 -5
  279. package/resource.d.ts.map +1 -1
  280. package/resource.js +3 -8
  281. package/resource.js.map +1 -1
  282. package/resource.mjs +1 -6
  283. package/resource.mjs.map +1 -1
  284. package/resources/auth-sessions.d.mts +84 -0
  285. package/resources/auth-sessions.d.mts.map +1 -0
  286. package/resources/auth-sessions.d.ts +4 -3
  287. package/resources/auth-sessions.d.ts.map +1 -1
  288. package/resources/auth-sessions.js +1 -1
  289. package/resources/auth-sessions.js.map +1 -1
  290. package/resources/auth-sessions.mjs +1 -1
  291. package/resources/auth-sessions.mjs.map +1 -1
  292. package/resources/end-users.d.mts +195 -0
  293. package/resources/end-users.d.mts.map +1 -0
  294. package/resources/end-users.d.ts +24 -12
  295. package/resources/end-users.d.ts.map +1 -1
  296. package/resources/end-users.js +14 -7
  297. package/resources/end-users.js.map +1 -1
  298. package/resources/end-users.mjs +14 -7
  299. package/resources/end-users.mjs.map +1 -1
  300. package/resources/index.d.mts +4 -0
  301. package/resources/index.d.mts.map +1 -0
  302. package/resources/index.d.ts.map +1 -1
  303. package/resources/qbd/account-tax-lines.d.mts +56 -0
  304. package/resources/qbd/account-tax-lines.d.mts.map +1 -0
  305. package/resources/qbd/account-tax-lines.d.ts +5 -5
  306. package/resources/qbd/account-tax-lines.d.ts.map +1 -1
  307. package/resources/qbd/account-tax-lines.js +3 -2
  308. package/resources/qbd/account-tax-lines.js.map +1 -1
  309. package/resources/qbd/account-tax-lines.mjs +3 -2
  310. package/resources/qbd/account-tax-lines.mjs.map +1 -1
  311. package/resources/qbd/accounts.d.mts +645 -0
  312. package/resources/qbd/accounts.d.mts.map +1 -0
  313. package/resources/qbd/accounts.d.ts +11 -14
  314. package/resources/qbd/accounts.d.ts.map +1 -1
  315. package/resources/qbd/accounts.js +9 -7
  316. package/resources/qbd/accounts.js.map +1 -1
  317. package/resources/qbd/accounts.mjs +9 -7
  318. package/resources/qbd/accounts.mjs.map +1 -1
  319. package/resources/qbd/bill-check-payments.d.mts +918 -0
  320. package/resources/qbd/bill-check-payments.d.mts.map +1 -0
  321. package/resources/qbd/bill-check-payments.d.ts +16 -21
  322. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  323. package/resources/qbd/bill-check-payments.js +14 -16
  324. package/resources/qbd/bill-check-payments.js.map +1 -1
  325. package/resources/qbd/bill-check-payments.mjs +13 -14
  326. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  327. package/resources/qbd/bill-credit-card-payments.d.mts +714 -0
  328. package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -0
  329. package/resources/qbd/bill-credit-card-payments.d.ts +14 -18
  330. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  331. package/resources/qbd/bill-credit-card-payments.js +15 -13
  332. package/resources/qbd/bill-credit-card-payments.js.map +1 -1
  333. package/resources/qbd/bill-credit-card-payments.mjs +14 -11
  334. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  335. package/resources/qbd/bills.d.mts +2644 -0
  336. package/resources/qbd/bills.d.mts.map +1 -0
  337. package/resources/qbd/bills.d.ts +16 -21
  338. package/resources/qbd/bills.d.ts.map +1 -1
  339. package/resources/qbd/bills.js +14 -16
  340. package/resources/qbd/bills.js.map +1 -1
  341. package/resources/qbd/bills.mjs +13 -14
  342. package/resources/qbd/bills.mjs.map +1 -1
  343. package/resources/qbd/build-assemblies.d.mts +698 -0
  344. package/resources/qbd/build-assemblies.d.mts.map +1 -0
  345. package/resources/qbd/build-assemblies.d.ts +16 -21
  346. package/resources/qbd/build-assemblies.d.ts.map +1 -1
  347. package/resources/qbd/build-assemblies.js +14 -16
  348. package/resources/qbd/build-assemblies.js.map +1 -1
  349. package/resources/qbd/build-assemblies.mjs +13 -14
  350. package/resources/qbd/build-assemblies.mjs.map +1 -1
  351. package/resources/qbd/checks.d.mts +2607 -0
  352. package/resources/qbd/checks.d.mts.map +1 -0
  353. package/resources/qbd/checks.d.ts +16 -21
  354. package/resources/qbd/checks.d.ts.map +1 -1
  355. package/resources/qbd/checks.js +14 -16
  356. package/resources/qbd/checks.js.map +1 -1
  357. package/resources/qbd/checks.mjs +13 -14
  358. package/resources/qbd/checks.mjs.map +1 -1
  359. package/resources/qbd/classes.d.mts +344 -0
  360. package/resources/qbd/classes.d.mts.map +1 -0
  361. package/resources/qbd/classes.d.ts +11 -14
  362. package/resources/qbd/classes.d.ts.map +1 -1
  363. package/resources/qbd/classes.js +9 -7
  364. package/resources/qbd/classes.js.map +1 -1
  365. package/resources/qbd/classes.mjs +9 -7
  366. package/resources/qbd/classes.mjs.map +1 -1
  367. package/resources/qbd/company.d.mts +361 -0
  368. package/resources/qbd/company.d.mts.map +1 -0
  369. package/resources/qbd/company.d.ts +5 -5
  370. package/resources/qbd/company.d.ts.map +1 -1
  371. package/resources/qbd/company.js +3 -2
  372. package/resources/qbd/company.js.map +1 -1
  373. package/resources/qbd/company.mjs +3 -2
  374. package/resources/qbd/company.mjs.map +1 -1
  375. package/resources/qbd/credit-card-charges.d.mts +2316 -0
  376. package/resources/qbd/credit-card-charges.d.mts.map +1 -0
  377. package/resources/qbd/credit-card-charges.d.ts +16 -21
  378. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  379. package/resources/qbd/credit-card-charges.js +14 -16
  380. package/resources/qbd/credit-card-charges.js.map +1 -1
  381. package/resources/qbd/credit-card-charges.mjs +13 -14
  382. package/resources/qbd/credit-card-charges.mjs.map +1 -1
  383. package/resources/qbd/credit-card-credits.d.mts +2311 -0
  384. package/resources/qbd/credit-card-credits.d.mts.map +1 -0
  385. package/resources/qbd/credit-card-credits.d.ts +16 -21
  386. package/resources/qbd/credit-card-credits.d.ts.map +1 -1
  387. package/resources/qbd/credit-card-credits.js +14 -16
  388. package/resources/qbd/credit-card-credits.js.map +1 -1
  389. package/resources/qbd/credit-card-credits.mjs +13 -14
  390. package/resources/qbd/credit-card-credits.mjs.map +1 -1
  391. package/resources/qbd/credit-card-refunds.d.mts +1012 -0
  392. package/resources/qbd/credit-card-refunds.d.mts.map +1 -0
  393. package/resources/qbd/credit-card-refunds.d.ts +14 -18
  394. package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
  395. package/resources/qbd/credit-card-refunds.js +12 -14
  396. package/resources/qbd/credit-card-refunds.js.map +1 -1
  397. package/resources/qbd/credit-card-refunds.mjs +11 -12
  398. package/resources/qbd/credit-card-refunds.mjs.map +1 -1
  399. package/resources/qbd/credit-memos.d.mts +2718 -0
  400. package/resources/qbd/credit-memos.d.mts.map +1 -0
  401. package/resources/qbd/credit-memos.d.ts +16 -21
  402. package/resources/qbd/credit-memos.d.ts.map +1 -1
  403. package/resources/qbd/credit-memos.js +14 -16
  404. package/resources/qbd/credit-memos.js.map +1 -1
  405. package/resources/qbd/credit-memos.mjs +13 -14
  406. package/resources/qbd/credit-memos.mjs.map +1 -1
  407. package/resources/qbd/currencies.d.mts +439 -0
  408. package/resources/qbd/currencies.d.mts.map +1 -0
  409. package/resources/qbd/currencies.d.ts +11 -14
  410. package/resources/qbd/currencies.d.ts.map +1 -1
  411. package/resources/qbd/currencies.js +9 -7
  412. package/resources/qbd/currencies.js.map +1 -1
  413. package/resources/qbd/currencies.mjs +9 -7
  414. package/resources/qbd/currencies.mjs.map +1 -1
  415. package/resources/qbd/customer-types.d.mts +300 -0
  416. package/resources/qbd/customer-types.d.mts.map +1 -0
  417. package/resources/qbd/customer-types.d.ts +9 -11
  418. package/resources/qbd/customer-types.d.ts.map +1 -1
  419. package/resources/qbd/customer-types.js +7 -5
  420. package/resources/qbd/customer-types.js.map +1 -1
  421. package/resources/qbd/customer-types.mjs +7 -5
  422. package/resources/qbd/customer-types.mjs.map +1 -1
  423. package/resources/qbd/customers.d.mts +2163 -0
  424. package/resources/qbd/customers.d.mts.map +1 -0
  425. package/resources/qbd/customers.d.ts +14 -18
  426. package/resources/qbd/customers.d.ts.map +1 -1
  427. package/resources/qbd/customers.js +12 -14
  428. package/resources/qbd/customers.js.map +1 -1
  429. package/resources/qbd/customers.mjs +11 -12
  430. package/resources/qbd/customers.mjs.map +1 -1
  431. package/resources/qbd/date-driven-terms.d.mts +295 -0
  432. package/resources/qbd/date-driven-terms.d.mts.map +1 -0
  433. package/resources/qbd/date-driven-terms.d.ts +9 -11
  434. package/resources/qbd/date-driven-terms.d.ts.map +1 -1
  435. package/resources/qbd/date-driven-terms.js +7 -5
  436. package/resources/qbd/date-driven-terms.js.map +1 -1
  437. package/resources/qbd/date-driven-terms.mjs +7 -5
  438. package/resources/qbd/date-driven-terms.mjs.map +1 -1
  439. package/resources/qbd/deleted-list-objects.d.mts +105 -0
  440. package/resources/qbd/deleted-list-objects.d.mts.map +1 -0
  441. package/resources/qbd/deleted-list-objects.d.ts +5 -5
  442. package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
  443. package/resources/qbd/deleted-list-objects.js +3 -2
  444. package/resources/qbd/deleted-list-objects.js.map +1 -1
  445. package/resources/qbd/deleted-list-objects.mjs +3 -2
  446. package/resources/qbd/deleted-list-objects.mjs.map +1 -1
  447. package/resources/qbd/deleted-transactions.d.mts +111 -0
  448. package/resources/qbd/deleted-transactions.d.mts.map +1 -0
  449. package/resources/qbd/deleted-transactions.d.ts +5 -5
  450. package/resources/qbd/deleted-transactions.d.ts.map +1 -1
  451. package/resources/qbd/deleted-transactions.js +3 -2
  452. package/resources/qbd/deleted-transactions.js.map +1 -1
  453. package/resources/qbd/deleted-transactions.mjs +3 -2
  454. package/resources/qbd/deleted-transactions.mjs.map +1 -1
  455. package/resources/qbd/discount-items.d.mts +642 -0
  456. package/resources/qbd/discount-items.d.mts.map +1 -0
  457. package/resources/qbd/discount-items.d.ts +14 -18
  458. package/resources/qbd/discount-items.d.ts.map +1 -1
  459. package/resources/qbd/discount-items.js +12 -14
  460. package/resources/qbd/discount-items.js.map +1 -1
  461. package/resources/qbd/discount-items.mjs +11 -12
  462. package/resources/qbd/discount-items.mjs.map +1 -1
  463. package/resources/qbd/employees.d.mts +1811 -0
  464. package/resources/qbd/employees.d.mts.map +1 -0
  465. package/resources/qbd/employees.d.ts +11 -14
  466. package/resources/qbd/employees.d.ts.map +1 -1
  467. package/resources/qbd/employees.js +9 -7
  468. package/resources/qbd/employees.js.map +1 -1
  469. package/resources/qbd/employees.mjs +9 -7
  470. package/resources/qbd/employees.mjs.map +1 -1
  471. package/resources/qbd/estimates.d.mts +2584 -0
  472. package/resources/qbd/estimates.d.mts.map +1 -0
  473. package/resources/qbd/estimates.d.ts +16 -21
  474. package/resources/qbd/estimates.d.ts.map +1 -1
  475. package/resources/qbd/estimates.js +14 -16
  476. package/resources/qbd/estimates.js.map +1 -1
  477. package/resources/qbd/estimates.mjs +13 -14
  478. package/resources/qbd/estimates.mjs.map +1 -1
  479. package/resources/qbd/index.d.mts +57 -0
  480. package/resources/qbd/index.d.mts.map +1 -0
  481. package/resources/qbd/index.d.ts +34 -34
  482. package/resources/qbd/index.d.ts.map +1 -1
  483. package/resources/qbd/index.js +2 -36
  484. package/resources/qbd/index.js.map +1 -1
  485. package/resources/qbd/index.mjs +34 -34
  486. package/resources/qbd/index.mjs.map +1 -1
  487. package/resources/qbd/inventory-adjustments.d.mts +893 -0
  488. package/resources/qbd/inventory-adjustments.d.mts.map +1 -0
  489. package/resources/qbd/inventory-adjustments.d.ts +13 -17
  490. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  491. package/resources/qbd/inventory-adjustments.js +11 -9
  492. package/resources/qbd/inventory-adjustments.js.map +1 -1
  493. package/resources/qbd/inventory-adjustments.mjs +11 -9
  494. package/resources/qbd/inventory-adjustments.mjs.map +1 -1
  495. package/resources/qbd/inventory-assembly-items.d.mts +988 -0
  496. package/resources/qbd/inventory-assembly-items.d.mts.map +1 -0
  497. package/resources/qbd/inventory-assembly-items.d.ts +14 -18
  498. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  499. package/resources/qbd/inventory-assembly-items.js +15 -13
  500. package/resources/qbd/inventory-assembly-items.js.map +1 -1
  501. package/resources/qbd/inventory-assembly-items.mjs +14 -11
  502. package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
  503. package/resources/qbd/inventory-items.d.mts +898 -0
  504. package/resources/qbd/inventory-items.d.mts.map +1 -0
  505. package/resources/qbd/inventory-items.d.ts +14 -18
  506. package/resources/qbd/inventory-items.d.ts.map +1 -1
  507. package/resources/qbd/inventory-items.js +12 -14
  508. package/resources/qbd/inventory-items.js.map +1 -1
  509. package/resources/qbd/inventory-items.mjs +11 -12
  510. package/resources/qbd/inventory-items.mjs.map +1 -1
  511. package/resources/qbd/inventory-sites.d.mts +537 -0
  512. package/resources/qbd/inventory-sites.d.mts.map +1 -0
  513. package/resources/qbd/inventory-sites.d.ts +11 -14
  514. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  515. package/resources/qbd/inventory-sites.js +9 -7
  516. package/resources/qbd/inventory-sites.js.map +1 -1
  517. package/resources/qbd/inventory-sites.mjs +9 -7
  518. package/resources/qbd/inventory-sites.mjs.map +1 -1
  519. package/resources/qbd/invoices.d.mts +2942 -0
  520. package/resources/qbd/invoices.d.mts.map +1 -0
  521. package/resources/qbd/invoices.d.ts +16 -21
  522. package/resources/qbd/invoices.d.ts.map +1 -1
  523. package/resources/qbd/invoices.js +14 -16
  524. package/resources/qbd/invoices.js.map +1 -1
  525. package/resources/qbd/invoices.mjs +13 -14
  526. package/resources/qbd/invoices.mjs.map +1 -1
  527. package/resources/qbd/item-groups.d.mts +548 -0
  528. package/resources/qbd/item-groups.d.mts.map +1 -0
  529. package/resources/qbd/item-groups.d.ts +14 -18
  530. package/resources/qbd/item-groups.d.ts.map +1 -1
  531. package/resources/qbd/item-groups.js +12 -14
  532. package/resources/qbd/item-groups.js.map +1 -1
  533. package/resources/qbd/item-groups.mjs +11 -12
  534. package/resources/qbd/item-groups.mjs.map +1 -1
  535. package/resources/qbd/item-receipts.d.mts +2416 -0
  536. package/resources/qbd/item-receipts.d.mts.map +1 -0
  537. package/resources/qbd/item-receipts.d.ts +16 -21
  538. package/resources/qbd/item-receipts.d.ts.map +1 -1
  539. package/resources/qbd/item-receipts.js +14 -16
  540. package/resources/qbd/item-receipts.js.map +1 -1
  541. package/resources/qbd/item-receipts.mjs +13 -14
  542. package/resources/qbd/item-receipts.mjs.map +1 -1
  543. package/resources/qbd/item-sites.d.mts +244 -0
  544. package/resources/qbd/item-sites.d.mts.map +1 -0
  545. package/resources/qbd/item-sites.d.ts +10 -12
  546. package/resources/qbd/item-sites.d.ts.map +1 -1
  547. package/resources/qbd/item-sites.js +9 -11
  548. package/resources/qbd/item-sites.js.map +1 -1
  549. package/resources/qbd/item-sites.mjs +8 -9
  550. package/resources/qbd/item-sites.mjs.map +1 -1
  551. package/resources/qbd/journal-entries.d.mts +937 -0
  552. package/resources/qbd/journal-entries.d.mts.map +1 -0
  553. package/resources/qbd/journal-entries.d.ts +16 -21
  554. package/resources/qbd/journal-entries.d.ts.map +1 -1
  555. package/resources/qbd/journal-entries.js +14 -16
  556. package/resources/qbd/journal-entries.js.map +1 -1
  557. package/resources/qbd/journal-entries.mjs +13 -14
  558. package/resources/qbd/journal-entries.mjs.map +1 -1
  559. package/resources/qbd/non-inventory-items.d.mts +1016 -0
  560. package/resources/qbd/non-inventory-items.d.mts.map +1 -0
  561. package/resources/qbd/non-inventory-items.d.ts +14 -18
  562. package/resources/qbd/non-inventory-items.d.ts.map +1 -1
  563. package/resources/qbd/non-inventory-items.js +12 -14
  564. package/resources/qbd/non-inventory-items.js.map +1 -1
  565. package/resources/qbd/non-inventory-items.mjs +11 -12
  566. package/resources/qbd/non-inventory-items.mjs.map +1 -1
  567. package/resources/qbd/other-charge-items.d.mts +948 -0
  568. package/resources/qbd/other-charge-items.d.mts.map +1 -0
  569. package/resources/qbd/other-charge-items.d.ts +14 -18
  570. package/resources/qbd/other-charge-items.d.ts.map +1 -1
  571. package/resources/qbd/other-charge-items.js +12 -14
  572. package/resources/qbd/other-charge-items.js.map +1 -1
  573. package/resources/qbd/other-charge-items.mjs +11 -12
  574. package/resources/qbd/other-charge-items.mjs.map +1 -1
  575. package/resources/qbd/other-names.d.mts +711 -0
  576. package/resources/qbd/other-names.d.mts.map +1 -0
  577. package/resources/qbd/other-names.d.ts +11 -14
  578. package/resources/qbd/other-names.d.ts.map +1 -1
  579. package/resources/qbd/other-names.js +9 -7
  580. package/resources/qbd/other-names.js.map +1 -1
  581. package/resources/qbd/other-names.mjs +9 -7
  582. package/resources/qbd/other-names.mjs.map +1 -1
  583. package/resources/qbd/payment-methods.d.mts +258 -0
  584. package/resources/qbd/payment-methods.d.mts.map +1 -0
  585. package/resources/qbd/payment-methods.d.ts +9 -11
  586. package/resources/qbd/payment-methods.d.ts.map +1 -1
  587. package/resources/qbd/payment-methods.js +7 -5
  588. package/resources/qbd/payment-methods.js.map +1 -1
  589. package/resources/qbd/payment-methods.mjs +7 -5
  590. package/resources/qbd/payment-methods.mjs.map +1 -1
  591. package/resources/qbd/payroll-wage-items.d.mts +267 -0
  592. package/resources/qbd/payroll-wage-items.d.mts.map +1 -0
  593. package/resources/qbd/payroll-wage-items.d.ts +12 -15
  594. package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
  595. package/resources/qbd/payroll-wage-items.js +10 -12
  596. package/resources/qbd/payroll-wage-items.js.map +1 -1
  597. package/resources/qbd/payroll-wage-items.mjs +9 -10
  598. package/resources/qbd/payroll-wage-items.mjs.map +1 -1
  599. package/resources/qbd/preferences.d.mts +599 -0
  600. package/resources/qbd/preferences.d.mts.map +1 -0
  601. package/resources/qbd/preferences.d.ts +5 -5
  602. package/resources/qbd/preferences.d.ts.map +1 -1
  603. package/resources/qbd/preferences.js +3 -2
  604. package/resources/qbd/preferences.js.map +1 -1
  605. package/resources/qbd/preferences.mjs +3 -2
  606. package/resources/qbd/preferences.mjs.map +1 -1
  607. package/resources/qbd/price-levels.d.mts +509 -0
  608. package/resources/qbd/price-levels.d.mts.map +1 -0
  609. package/resources/qbd/price-levels.d.ts +11 -14
  610. package/resources/qbd/price-levels.d.ts.map +1 -1
  611. package/resources/qbd/price-levels.js +9 -7
  612. package/resources/qbd/price-levels.js.map +1 -1
  613. package/resources/qbd/price-levels.mjs +9 -7
  614. package/resources/qbd/price-levels.mjs.map +1 -1
  615. package/resources/qbd/purchase-orders.d.mts +2632 -0
  616. package/resources/qbd/purchase-orders.d.mts.map +1 -0
  617. package/resources/qbd/purchase-orders.d.ts +16 -21
  618. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  619. package/resources/qbd/purchase-orders.js +14 -16
  620. package/resources/qbd/purchase-orders.js.map +1 -1
  621. package/resources/qbd/purchase-orders.mjs +13 -14
  622. package/resources/qbd/purchase-orders.mjs.map +1 -1
  623. package/resources/qbd/qbd.d.mts +261 -0
  624. package/resources/qbd/qbd.d.mts.map +1 -0
  625. package/resources/qbd/qbd.d.ts +39 -39
  626. package/resources/qbd/qbd.d.ts.map +1 -1
  627. package/resources/qbd/qbd.js +59 -114
  628. package/resources/qbd/qbd.js.map +1 -1
  629. package/resources/qbd/qbd.mjs +37 -70
  630. package/resources/qbd/qbd.mjs.map +1 -1
  631. package/resources/qbd/receive-payments.d.mts +1358 -0
  632. package/resources/qbd/receive-payments.d.mts.map +1 -0
  633. package/resources/qbd/receive-payments.d.ts +16 -21
  634. package/resources/qbd/receive-payments.d.ts.map +1 -1
  635. package/resources/qbd/receive-payments.js +14 -16
  636. package/resources/qbd/receive-payments.js.map +1 -1
  637. package/resources/qbd/receive-payments.mjs +13 -14
  638. package/resources/qbd/receive-payments.mjs.map +1 -1
  639. package/resources/qbd/sales-orders.d.mts +2705 -0
  640. package/resources/qbd/sales-orders.d.mts.map +1 -0
  641. package/resources/qbd/sales-orders.d.ts +16 -21
  642. package/resources/qbd/sales-orders.d.ts.map +1 -1
  643. package/resources/qbd/sales-orders.js +14 -16
  644. package/resources/qbd/sales-orders.js.map +1 -1
  645. package/resources/qbd/sales-orders.mjs +13 -14
  646. package/resources/qbd/sales-orders.mjs.map +1 -1
  647. package/resources/qbd/sales-receipts.d.mts +3454 -0
  648. package/resources/qbd/sales-receipts.d.mts.map +1 -0
  649. package/resources/qbd/sales-receipts.d.ts +16 -21
  650. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  651. package/resources/qbd/sales-receipts.js +14 -16
  652. package/resources/qbd/sales-receipts.js.map +1 -1
  653. package/resources/qbd/sales-receipts.mjs +13 -14
  654. package/resources/qbd/sales-receipts.mjs.map +1 -1
  655. package/resources/qbd/sales-representatives.d.mts +317 -0
  656. package/resources/qbd/sales-representatives.d.mts.map +1 -0
  657. package/resources/qbd/sales-representatives.d.ts +11 -14
  658. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  659. package/resources/qbd/sales-representatives.js +9 -7
  660. package/resources/qbd/sales-representatives.js.map +1 -1
  661. package/resources/qbd/sales-representatives.mjs +9 -7
  662. package/resources/qbd/sales-representatives.mjs.map +1 -1
  663. package/resources/qbd/sales-tax-codes.d.mts +369 -0
  664. package/resources/qbd/sales-tax-codes.d.mts.map +1 -0
  665. package/resources/qbd/sales-tax-codes.d.ts +11 -14
  666. package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
  667. package/resources/qbd/sales-tax-codes.js +9 -7
  668. package/resources/qbd/sales-tax-codes.js.map +1 -1
  669. package/resources/qbd/sales-tax-codes.mjs +9 -7
  670. package/resources/qbd/sales-tax-codes.mjs.map +1 -1
  671. package/resources/qbd/sales-tax-items.d.mts +518 -0
  672. package/resources/qbd/sales-tax-items.d.mts.map +1 -0
  673. package/resources/qbd/sales-tax-items.d.ts +14 -18
  674. package/resources/qbd/sales-tax-items.d.ts.map +1 -1
  675. package/resources/qbd/sales-tax-items.js +12 -14
  676. package/resources/qbd/sales-tax-items.js.map +1 -1
  677. package/resources/qbd/sales-tax-items.mjs +11 -12
  678. package/resources/qbd/sales-tax-items.mjs.map +1 -1
  679. package/resources/qbd/service-items.d.mts +987 -0
  680. package/resources/qbd/service-items.d.mts.map +1 -0
  681. package/resources/qbd/service-items.d.ts +14 -18
  682. package/resources/qbd/service-items.d.ts.map +1 -1
  683. package/resources/qbd/service-items.js +12 -14
  684. package/resources/qbd/service-items.js.map +1 -1
  685. package/resources/qbd/service-items.mjs +11 -12
  686. package/resources/qbd/service-items.mjs.map +1 -1
  687. package/resources/qbd/standard-terms.d.mts +273 -0
  688. package/resources/qbd/standard-terms.d.mts.map +1 -0
  689. package/resources/qbd/standard-terms.d.ts +9 -11
  690. package/resources/qbd/standard-terms.d.ts.map +1 -1
  691. package/resources/qbd/standard-terms.js +7 -5
  692. package/resources/qbd/standard-terms.js.map +1 -1
  693. package/resources/qbd/standard-terms.mjs +7 -5
  694. package/resources/qbd/standard-terms.mjs.map +1 -1
  695. package/resources/qbd/subtotal-items.d.mts +383 -0
  696. package/resources/qbd/subtotal-items.d.mts.map +1 -0
  697. package/resources/qbd/subtotal-items.d.ts +14 -18
  698. package/resources/qbd/subtotal-items.d.ts.map +1 -1
  699. package/resources/qbd/subtotal-items.js +12 -14
  700. package/resources/qbd/subtotal-items.js.map +1 -1
  701. package/resources/qbd/subtotal-items.mjs +11 -12
  702. package/resources/qbd/subtotal-items.mjs.map +1 -1
  703. package/resources/qbd/templates.d.mts +107 -0
  704. package/resources/qbd/templates.d.mts.map +1 -0
  705. package/resources/qbd/templates.d.ts +5 -5
  706. package/resources/qbd/templates.d.ts.map +1 -1
  707. package/resources/qbd/templates.js +3 -2
  708. package/resources/qbd/templates.js.map +1 -1
  709. package/resources/qbd/templates.mjs +3 -2
  710. package/resources/qbd/templates.mjs.map +1 -1
  711. package/resources/qbd/time-tracking-activities.d.mts +560 -0
  712. package/resources/qbd/time-tracking-activities.d.mts.map +1 -0
  713. package/resources/qbd/time-tracking-activities.d.ts +16 -21
  714. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  715. package/resources/qbd/time-tracking-activities.js +17 -15
  716. package/resources/qbd/time-tracking-activities.js.map +1 -1
  717. package/resources/qbd/time-tracking-activities.mjs +16 -13
  718. package/resources/qbd/time-tracking-activities.mjs.map +1 -1
  719. package/resources/qbd/transactions.d.mts +356 -0
  720. package/resources/qbd/transactions.d.mts.map +1 -0
  721. package/resources/qbd/transactions.d.ts +10 -12
  722. package/resources/qbd/transactions.d.ts.map +1 -1
  723. package/resources/qbd/transactions.js +9 -11
  724. package/resources/qbd/transactions.js.map +1 -1
  725. package/resources/qbd/transactions.mjs +8 -9
  726. package/resources/qbd/transactions.mjs.map +1 -1
  727. package/resources/qbd/transfers.d.mts +331 -0
  728. package/resources/qbd/transfers.d.mts.map +1 -0
  729. package/resources/qbd/transfers.d.ts +14 -18
  730. package/resources/qbd/transfers.d.ts.map +1 -1
  731. package/resources/qbd/transfers.js +12 -14
  732. package/resources/qbd/transfers.js.map +1 -1
  733. package/resources/qbd/transfers.mjs +11 -12
  734. package/resources/qbd/transfers.mjs.map +1 -1
  735. package/resources/qbd/unit-of-measure-sets.d.mts +443 -0
  736. package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -0
  737. package/resources/qbd/unit-of-measure-sets.d.ts +9 -11
  738. package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
  739. package/resources/qbd/unit-of-measure-sets.js +7 -5
  740. package/resources/qbd/unit-of-measure-sets.js.map +1 -1
  741. package/resources/qbd/unit-of-measure-sets.mjs +7 -5
  742. package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
  743. package/resources/qbd/vendor-credits.d.mts +2387 -0
  744. package/resources/qbd/vendor-credits.d.mts.map +1 -0
  745. package/resources/qbd/vendor-credits.d.ts +16 -21
  746. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  747. package/resources/qbd/vendor-credits.js +14 -16
  748. package/resources/qbd/vendor-credits.js.map +1 -1
  749. package/resources/qbd/vendor-credits.mjs +13 -14
  750. package/resources/qbd/vendor-credits.mjs.map +1 -1
  751. package/resources/qbd/vendors.d.mts +1734 -0
  752. package/resources/qbd/vendors.d.mts.map +1 -0
  753. package/resources/qbd/vendors.d.ts +14 -18
  754. package/resources/qbd/vendors.d.ts.map +1 -1
  755. package/resources/qbd/vendors.js +12 -14
  756. package/resources/qbd/vendors.js.map +1 -1
  757. package/resources/qbd/vendors.mjs +11 -12
  758. package/resources/qbd/vendors.mjs.map +1 -1
  759. package/resources/qbd.d.mts +2 -0
  760. package/resources/qbd.d.mts.map +1 -0
  761. package/resources/qbd.d.ts.map +1 -1
  762. package/resources/qbd.js +2 -15
  763. package/resources/qbd.js.map +1 -1
  764. package/resources.d.mts +2 -0
  765. package/resources.d.mts.map +1 -0
  766. package/resources.d.ts.map +1 -1
  767. package/resources.js +2 -15
  768. package/resources.js.map +1 -1
  769. package/src/api-promise.ts +2 -0
  770. package/src/client.ts +769 -0
  771. package/src/core/README.md +3 -0
  772. package/src/core/api-promise.ts +92 -0
  773. package/src/core/error.ts +130 -0
  774. package/src/core/pagination.ts +157 -0
  775. package/src/core/resource.ts +11 -0
  776. package/src/core/uploads.ts +2 -0
  777. package/src/error.ts +2 -130
  778. package/src/index.ts +6 -223
  779. package/src/internal/README.md +3 -0
  780. package/src/internal/builtin-types.ts +93 -0
  781. package/src/internal/detect-platform.ts +196 -0
  782. package/src/internal/errors.ts +33 -0
  783. package/src/internal/headers.ts +97 -0
  784. package/src/internal/parse.ts +50 -0
  785. package/src/internal/qs/formats.ts +3 -2
  786. package/src/internal/qs/index.ts +3 -3
  787. package/src/internal/qs/stringify.ts +18 -21
  788. package/src/internal/qs/utils.ts +16 -16
  789. package/src/internal/request-options.ts +91 -0
  790. package/src/internal/shim-types.ts +26 -0
  791. package/src/internal/shims.ts +107 -0
  792. package/src/internal/to-file.ts +154 -0
  793. package/src/internal/types.ts +95 -0
  794. package/src/internal/uploads.ts +187 -0
  795. package/src/internal/utils/base64.ts +40 -0
  796. package/src/internal/utils/bytes.ts +32 -0
  797. package/src/internal/utils/env.ts +18 -0
  798. package/src/internal/utils/log.ts +126 -0
  799. package/src/internal/utils/path.ts +88 -0
  800. package/src/internal/utils/sleep.ts +3 -0
  801. package/src/internal/utils/uuid.ts +17 -0
  802. package/src/internal/utils/values.ts +105 -0
  803. package/src/internal/utils.ts +8 -0
  804. package/src/pagination.ts +2 -60
  805. package/src/resource.ts +2 -11
  806. package/src/resources/auth-sessions.ts +4 -3
  807. package/src/resources/end-users.ts +33 -16
  808. package/src/resources/index.ts +3 -3
  809. package/src/resources/qbd/account-tax-lines.ts +7 -9
  810. package/src/resources/qbd/accounts.ts +19 -24
  811. package/src/resources/qbd/bill-check-payments.ts +31 -38
  812. package/src/resources/qbd/bill-credit-card-payments.ts +31 -30
  813. package/src/resources/qbd/bills.ts +27 -35
  814. package/src/resources/qbd/build-assemblies.ts +30 -38
  815. package/src/resources/qbd/checks.ts +27 -35
  816. package/src/resources/qbd/classes.ts +19 -20
  817. package/src/resources/qbd/company.ts +7 -6
  818. package/src/resources/qbd/credit-card-charges.ts +31 -38
  819. package/src/resources/qbd/credit-card-credits.ts +31 -38
  820. package/src/resources/qbd/credit-card-refunds.ts +26 -32
  821. package/src/resources/qbd/credit-memos.ts +29 -41
  822. package/src/resources/qbd/currencies.ts +19 -24
  823. package/src/resources/qbd/customer-types.ts +16 -19
  824. package/src/resources/qbd/customers.ts +23 -33
  825. package/src/resources/qbd/date-driven-terms.ts +16 -19
  826. package/src/resources/qbd/deleted-list-objects.ts +8 -7
  827. package/src/resources/qbd/deleted-transactions.ts +8 -7
  828. package/src/resources/qbd/discount-items.ts +25 -32
  829. package/src/resources/qbd/employees.ts +19 -24
  830. package/src/resources/qbd/estimates.ts +28 -39
  831. package/src/resources/qbd/index.ts +90 -90
  832. package/src/resources/qbd/inventory-adjustments.ts +27 -32
  833. package/src/resources/qbd/inventory-assembly-items.ts +31 -30
  834. package/src/resources/qbd/inventory-items.ts +25 -32
  835. package/src/resources/qbd/inventory-sites.ts +20 -28
  836. package/src/resources/qbd/invoices.ts +28 -39
  837. package/src/resources/qbd/item-groups.ts +23 -37
  838. package/src/resources/qbd/item-receipts.ts +29 -41
  839. package/src/resources/qbd/item-sites.ts +16 -24
  840. package/src/resources/qbd/journal-entries.ts +30 -38
  841. package/src/resources/qbd/non-inventory-items.ts +26 -32
  842. package/src/resources/qbd/other-charge-items.ts +26 -32
  843. package/src/resources/qbd/other-names.ts +19 -28
  844. package/src/resources/qbd/payment-methods.ts +16 -19
  845. package/src/resources/qbd/payroll-wage-items.ts +21 -26
  846. package/src/resources/qbd/preferences.ts +7 -6
  847. package/src/resources/qbd/price-levels.ts +19 -28
  848. package/src/resources/qbd/purchase-orders.ts +30 -38
  849. package/src/resources/qbd/qbd.ts +151 -187
  850. package/src/resources/qbd/receive-payments.ts +31 -35
  851. package/src/resources/qbd/sales-orders.ts +29 -41
  852. package/src/resources/qbd/sales-receipts.ts +30 -38
  853. package/src/resources/qbd/sales-representatives.ts +22 -26
  854. package/src/resources/qbd/sales-tax-codes.ts +20 -28
  855. package/src/resources/qbd/sales-tax-items.ts +25 -32
  856. package/src/resources/qbd/service-items.ts +24 -35
  857. package/src/resources/qbd/standard-terms.ts +16 -19
  858. package/src/resources/qbd/subtotal-items.ts +25 -32
  859. package/src/resources/qbd/templates.ts +7 -6
  860. package/src/resources/qbd/time-tracking-activities.ts +36 -36
  861. package/src/resources/qbd/transactions.ts +17 -22
  862. package/src/resources/qbd/transfers.ts +23 -33
  863. package/src/resources/qbd/unit-of-measure-sets.ts +17 -20
  864. package/src/resources/qbd/vendor-credits.ts +30 -38
  865. package/src/resources/qbd/vendors.ts +23 -26
  866. package/src/resources/qbd.ts +1 -1
  867. package/src/resources.ts +1 -1
  868. package/src/tsconfig.json +2 -2
  869. package/src/uploads.ts +2 -255
  870. package/src/version.ts +1 -1
  871. package/uploads.d.mts +2 -0
  872. package/uploads.d.mts.map +1 -0
  873. package/uploads.d.ts +1 -74
  874. package/uploads.d.ts.map +1 -1
  875. package/uploads.js +3 -168
  876. package/uploads.js.map +1 -1
  877. package/uploads.mjs +1 -157
  878. package/uploads.mjs.map +1 -1
  879. package/version.d.mts +2 -0
  880. package/version.d.mts.map +1 -0
  881. package/version.d.ts +1 -1
  882. package/version.d.ts.map +1 -1
  883. package/version.js +1 -1
  884. package/version.js.map +1 -1
  885. package/version.mjs +1 -1
  886. package/version.mjs.map +1 -1
  887. package/_shims/MultipartBody.d.ts +0 -9
  888. package/_shims/MultipartBody.d.ts.map +0 -1
  889. package/_shims/MultipartBody.js +0 -16
  890. package/_shims/MultipartBody.js.map +0 -1
  891. package/_shims/MultipartBody.mjs +0 -12
  892. package/_shims/MultipartBody.mjs.map +0 -1
  893. package/_shims/README.md +0 -46
  894. package/_shims/auto/runtime-bun.d.ts +0 -5
  895. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  896. package/_shims/auto/runtime-bun.js +0 -21
  897. package/_shims/auto/runtime-bun.js.map +0 -1
  898. package/_shims/auto/runtime-bun.mjs +0 -2
  899. package/_shims/auto/runtime-bun.mjs.map +0 -1
  900. package/_shims/auto/runtime-node.d.ts +0 -5
  901. package/_shims/auto/runtime-node.d.ts.map +0 -1
  902. package/_shims/auto/runtime-node.js +0 -21
  903. package/_shims/auto/runtime-node.js.map +0 -1
  904. package/_shims/auto/runtime-node.mjs +0 -2
  905. package/_shims/auto/runtime-node.mjs.map +0 -1
  906. package/_shims/auto/runtime.d.ts +0 -5
  907. package/_shims/auto/runtime.d.ts.map +0 -1
  908. package/_shims/auto/runtime.js +0 -21
  909. package/_shims/auto/runtime.js.map +0 -1
  910. package/_shims/auto/runtime.mjs +0 -2
  911. package/_shims/auto/runtime.mjs.map +0 -1
  912. package/_shims/auto/types-node.d.ts +0 -5
  913. package/_shims/auto/types-node.d.ts.map +0 -1
  914. package/_shims/auto/types-node.js +0 -21
  915. package/_shims/auto/types-node.js.map +0 -1
  916. package/_shims/auto/types-node.mjs +0 -2
  917. package/_shims/auto/types-node.mjs.map +0 -1
  918. package/_shims/auto/types.d.ts +0 -101
  919. package/_shims/auto/types.js +0 -3
  920. package/_shims/auto/types.mjs +0 -3
  921. package/_shims/bun-runtime.d.ts +0 -6
  922. package/_shims/bun-runtime.d.ts.map +0 -1
  923. package/_shims/bun-runtime.js +0 -14
  924. package/_shims/bun-runtime.js.map +0 -1
  925. package/_shims/bun-runtime.mjs +0 -10
  926. package/_shims/bun-runtime.mjs.map +0 -1
  927. package/_shims/index.d.ts +0 -83
  928. package/_shims/index.js +0 -17
  929. package/_shims/index.mjs +0 -11
  930. package/_shims/manual-types.d.ts +0 -12
  931. package/_shims/manual-types.js +0 -3
  932. package/_shims/manual-types.mjs +0 -3
  933. package/_shims/node-runtime.d.ts +0 -3
  934. package/_shims/node-runtime.d.ts.map +0 -1
  935. package/_shims/node-runtime.js +0 -89
  936. package/_shims/node-runtime.js.map +0 -1
  937. package/_shims/node-runtime.mjs +0 -56
  938. package/_shims/node-runtime.mjs.map +0 -1
  939. package/_shims/node-types.d.ts +0 -42
  940. package/_shims/node-types.js +0 -3
  941. package/_shims/node-types.mjs +0 -3
  942. package/_shims/registry.d.ts +0 -37
  943. package/_shims/registry.d.ts.map +0 -1
  944. package/_shims/registry.js +0 -41
  945. package/_shims/registry.js.map +0 -1
  946. package/_shims/registry.mjs +0 -37
  947. package/_shims/registry.mjs.map +0 -1
  948. package/_shims/web-runtime.d.ts +0 -5
  949. package/_shims/web-runtime.d.ts.map +0 -1
  950. package/_shims/web-runtime.js +0 -78
  951. package/_shims/web-runtime.js.map +0 -1
  952. package/_shims/web-runtime.mjs +0 -71
  953. package/_shims/web-runtime.mjs.map +0 -1
  954. package/_shims/web-types.d.ts +0 -83
  955. package/_shims/web-types.js +0 -3
  956. package/_shims/web-types.mjs +0 -3
  957. package/core.d.ts +0 -255
  958. package/core.d.ts.map +0 -1
  959. package/core.js +0 -924
  960. package/core.js.map +0 -1
  961. package/core.mjs +0 -892
  962. package/core.mjs.map +0 -1
  963. package/shims/node.d.ts +0 -30
  964. package/shims/node.d.ts.map +0 -1
  965. package/shims/node.js +0 -31
  966. package/shims/node.js.map +0 -1
  967. package/shims/node.mjs +0 -5
  968. package/shims/node.mjs.map +0 -1
  969. package/shims/web.d.ts +0 -26
  970. package/shims/web.d.ts.map +0 -1
  971. package/shims/web.js +0 -31
  972. package/shims/web.js.map +0 -1
  973. package/shims/web.mjs +0 -5
  974. package/shims/web.mjs.map +0 -1
  975. package/src/_shims/MultipartBody.ts +0 -9
  976. package/src/_shims/README.md +0 -46
  977. package/src/_shims/auto/runtime-bun.ts +0 -4
  978. package/src/_shims/auto/runtime-node.ts +0 -4
  979. package/src/_shims/auto/runtime.ts +0 -4
  980. package/src/_shims/auto/types-node.ts +0 -4
  981. package/src/_shims/auto/types.d.ts +0 -101
  982. package/src/_shims/auto/types.js +0 -3
  983. package/src/_shims/auto/types.mjs +0 -3
  984. package/src/_shims/bun-runtime.ts +0 -14
  985. package/src/_shims/index.d.ts +0 -83
  986. package/src/_shims/index.js +0 -17
  987. package/src/_shims/index.mjs +0 -11
  988. package/src/_shims/manual-types.d.ts +0 -12
  989. package/src/_shims/manual-types.js +0 -3
  990. package/src/_shims/manual-types.mjs +0 -3
  991. package/src/_shims/node-runtime.ts +0 -81
  992. package/src/_shims/node-types.d.ts +0 -42
  993. package/src/_shims/node-types.js +0 -3
  994. package/src/_shims/node-types.mjs +0 -3
  995. package/src/_shims/registry.ts +0 -67
  996. package/src/_shims/web-runtime.ts +0 -103
  997. package/src/_shims/web-types.d.ts +0 -83
  998. package/src/_shims/web-types.js +0 -3
  999. package/src/_shims/web-types.mjs +0 -3
  1000. package/src/core.ts +0 -1236
  1001. package/src/shims/node.ts +0 -50
  1002. package/src/shims/web.ts +0 -50
@@ -0,0 +1,2632 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ export declare class PurchaseOrders extends APIResource {
6
+ /**
7
+ * Creates a new purchase order.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const purchaseOrder =
12
+ * await conductor.qbd.purchaseOrders.create({
13
+ * transactionDate: '2024-10-01',
14
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
15
+ * });
16
+ * ```
17
+ */
18
+ create(params: PurchaseOrderCreateParams, options?: RequestOptions): APIPromise<PurchaseOrder>;
19
+ /**
20
+ * Retrieves a purchase order by ID.
21
+ *
22
+ * **IMPORTANT:** If you need to fetch multiple specific purchase orders by ID, use
23
+ * the list endpoint instead with the `ids` parameter. It accepts an array of IDs
24
+ * so you can batch the request into a single call, which is significantly faster.
25
+ *
26
+ * NOTE: The response automatically includes any linked transactions.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const purchaseOrder =
31
+ * await conductor.qbd.purchaseOrders.retrieve(
32
+ * '123ABC-1234567890',
33
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
34
+ * );
35
+ * ```
36
+ */
37
+ retrieve(id: string, params: PurchaseOrderRetrieveParams, options?: RequestOptions): APIPromise<PurchaseOrder>;
38
+ /**
39
+ * Updates an existing purchase order.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const purchaseOrder =
44
+ * await conductor.qbd.purchaseOrders.update(
45
+ * '123ABC-1234567890',
46
+ * {
47
+ * revisionNumber: '1721172183',
48
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
49
+ * },
50
+ * );
51
+ * ```
52
+ */
53
+ update(id: string, params: PurchaseOrderUpdateParams, options?: RequestOptions): APIPromise<PurchaseOrder>;
54
+ /**
55
+ * Returns a list of purchase orders. Use the `cursor` parameter to paginate
56
+ * through the results.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Automatically fetches more pages as needed.
61
+ * for await (const purchaseOrder of conductor.qbd.purchaseOrders.list(
62
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
63
+ * )) {
64
+ * // ...
65
+ * }
66
+ * ```
67
+ */
68
+ list(params: PurchaseOrderListParams, options?: RequestOptions): PagePromise<PurchaseOrdersCursorPage, PurchaseOrder>;
69
+ /**
70
+ * Permanently deletes a a purchase order. The deletion will fail if the purchase
71
+ * order is currently in use or has any linked transactions that are in use.
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const purchaseOrder =
76
+ * await conductor.qbd.purchaseOrders.delete(
77
+ * '123ABC-1234567890',
78
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
79
+ * );
80
+ * ```
81
+ */
82
+ delete(id: string, params: PurchaseOrderDeleteParams, options?: RequestOptions): APIPromise<PurchaseOrderDeleteResponse>;
83
+ }
84
+ export type PurchaseOrdersCursorPage = CursorPage<PurchaseOrder>;
85
+ export interface PurchaseOrder {
86
+ /**
87
+ * The unique identifier assigned by QuickBooks to this purchase order. This ID is
88
+ * unique across all transaction types.
89
+ */
90
+ id: string;
91
+ /**
92
+ * The purchase order's class. Classes can be used to categorize objects into
93
+ * meaningful segments, such as department, location, or type of work. In
94
+ * QuickBooks, class tracking is off by default. A class defined here is
95
+ * automatically used in this purchase order's line items unless overridden at the
96
+ * line item level.
97
+ */
98
+ class: PurchaseOrder.Class | null;
99
+ /**
100
+ * The date and time when this purchase order was created, in ISO 8601 format
101
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
102
+ * timezone of the end-user's computer.
103
+ */
104
+ createdAt: string;
105
+ /**
106
+ * The purchase order's currency. For built-in currencies, the name and code are
107
+ * standard international values. For user-defined currencies, all values are
108
+ * editable.
109
+ */
110
+ currency: PurchaseOrder.Currency | null;
111
+ /**
112
+ * The custom fields for the purchase order object, added as user-defined data
113
+ * extensions, not included in the standard QuickBooks object.
114
+ */
115
+ customFields: Array<PurchaseOrder.CustomField>;
116
+ /**
117
+ * The predefined template in QuickBooks that determines the layout and formatting
118
+ * for this purchase order when printed or displayed.
119
+ */
120
+ documentTemplate: PurchaseOrder.DocumentTemplate | null;
121
+ /**
122
+ * The date by which this purchase order must be paid, in ISO 8601 format
123
+ * (YYYY-MM-DD).
124
+ */
125
+ dueDate: string | null;
126
+ /**
127
+ * The market exchange rate between this purchase order's currency and the home
128
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
129
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
130
+ */
131
+ exchangeRate: number | null;
132
+ /**
133
+ * The date on which shipment of this purchase order is expected to be completed,
134
+ * in ISO 8601 format (YYYY-MM-DD).
135
+ */
136
+ expectedDate: string | null;
137
+ /**
138
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
139
+ * this object in your external system. This field is immutable and can only be set
140
+ * during object creation.
141
+ */
142
+ externalId: string | null;
143
+ /**
144
+ * The site location where inventory for the item associated with this purchase
145
+ * order is stored.
146
+ */
147
+ inventorySite: PurchaseOrder.InventorySite | null;
148
+ /**
149
+ * Indicates whether all items in this purchase order have been received and none
150
+ * of them were closed manually.
151
+ */
152
+ isFullyReceived: boolean | null;
153
+ /**
154
+ * Indicates whether this purchase order has been manually marked as closed, even
155
+ * if all items have not been received or the sale has not been cancelled. Once the
156
+ * purchase order is marked as closed, all of its line items become closed as well.
157
+ * You cannot change `isManuallyClosed` to `false` after the purchase order has
158
+ * been fully received.
159
+ */
160
+ isManuallyClosed: boolean;
161
+ /**
162
+ * Indicates whether this purchase order is included in the queue of documents for
163
+ * QuickBooks to email to the customer.
164
+ */
165
+ isQueuedForEmail: boolean | null;
166
+ /**
167
+ * Indicates whether this purchase order is included in the queue of documents for
168
+ * QuickBooks to print.
169
+ */
170
+ isQueuedForPrint: boolean | null;
171
+ /**
172
+ * The purchase order's line item groups, each representing a predefined set of
173
+ * related items.
174
+ */
175
+ lineGroups: Array<PurchaseOrder.LineGroup>;
176
+ /**
177
+ * The purchase order's line items, each representing a single product or service
178
+ * ordered.
179
+ */
180
+ lines: Array<PurchaseOrder.Line>;
181
+ /**
182
+ * The purchase order's linked transactions, such as payments applied, credits
183
+ * used, or associated purchase orders.
184
+ *
185
+ * **IMPORTANT**: You must specify the parameter `includeLinkedTransactions` when
186
+ * fetching a list of purchase orders to receive this field because it is not
187
+ * returned by default.
188
+ */
189
+ linkedTransactions: Array<PurchaseOrder.LinkedTransaction>;
190
+ /**
191
+ * A memo or note for this purchase order that appears in reports, but not on the
192
+ * purchase order.
193
+ */
194
+ memo: string | null;
195
+ /**
196
+ * The type of object. This value is always `"qbd_purchase_order"`.
197
+ */
198
+ objectType: 'qbd_purchase_order';
199
+ /**
200
+ * A built-in custom field for additional information specific to this purchase
201
+ * order. Unlike the user-defined fields in the `customFields` array, this is a
202
+ * standard QuickBooks field that exists for all purchase orders for convenience.
203
+ * Developers often use this field for tracking information that doesn't fit into
204
+ * other standard QuickBooks fields. Hidden by default in the QuickBooks UI.
205
+ */
206
+ otherCustomField1: string | null;
207
+ /**
208
+ * A second built-in custom field for additional information specific to this
209
+ * purchase order. Unlike the user-defined fields in the `customFields` array, this
210
+ * is a standard QuickBooks field that exists for all purchase orders for
211
+ * convenience. Like `otherCustomField1`, developers often use this field for
212
+ * tracking information that doesn't fit into other standard QuickBooks fields.
213
+ * Hidden by default in the QuickBooks UI.
214
+ */
215
+ otherCustomField2: string | null;
216
+ /**
217
+ * The case-sensitive user-defined reference number for this purchase order, which
218
+ * can be used to identify the transaction in QuickBooks. This value is not
219
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
220
+ */
221
+ refNumber: string | null;
222
+ /**
223
+ * The current QuickBooks-assigned revision number of this purchase order object,
224
+ * which changes each time the object is modified. When updating this object, you
225
+ * must provide the most recent `revisionNumber` to ensure you're working with the
226
+ * latest data; otherwise, the update will return an error.
227
+ */
228
+ revisionNumber: string;
229
+ /**
230
+ * The sales-tax code for this purchase order, determining whether it is taxable or
231
+ * non-taxable. If set, this overrides any sales-tax codes defined on the vendor.
232
+ * This can be overridden on the purchase order's individual lines.
233
+ *
234
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
235
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
236
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
237
+ * non-taxable code to all sales.
238
+ */
239
+ salesTaxCode: PurchaseOrder.SalesTaxCode | null;
240
+ /**
241
+ * The origin location from where the product associated with this purchase order
242
+ * is shipped. This is the point at which ownership and liability for goods
243
+ * transfer from seller to buyer. Internally, QuickBooks uses the term "FOB" for
244
+ * this field, which stands for "freight on board". This field is informational and
245
+ * has no accounting implications.
246
+ */
247
+ shipmentOrigin: string | null;
248
+ /**
249
+ * The purchase order's shipping address.
250
+ */
251
+ shippingAddress: PurchaseOrder.ShippingAddress | null;
252
+ /**
253
+ * The shipping method used for this purchase order, such as standard mail or
254
+ * overnight delivery.
255
+ */
256
+ shippingMethod: PurchaseOrder.ShippingMethod | null;
257
+ /**
258
+ * The customer, vendor, employee, or other entity to whom this purchase order is
259
+ * to be shipped.
260
+ */
261
+ shipToEntity: PurchaseOrder.ShipToEntity | null;
262
+ /**
263
+ * The purchase order's payment terms, defining when payment is due and any
264
+ * applicable discounts.
265
+ */
266
+ terms: PurchaseOrder.Terms | null;
267
+ /**
268
+ * The total monetary amount of this purchase order, equivalent to the sum of the
269
+ * amounts in `lines` and `lineGroups`, represented as a decimal string.
270
+ */
271
+ totalAmount: string;
272
+ /**
273
+ * The total monetary amount of this purchase order converted to the home currency
274
+ * of the QuickBooks company file. Represented as a decimal string.
275
+ */
276
+ totalAmountInHomeCurrency: string | null;
277
+ /**
278
+ * The date of this purchase order, in ISO 8601 format (YYYY-MM-DD).
279
+ */
280
+ transactionDate: string;
281
+ /**
282
+ * The date and time when this purchase order was last updated, in ISO 8601 format
283
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
284
+ * timezone of the end-user's computer.
285
+ */
286
+ updatedAt: string;
287
+ /**
288
+ * The vendor who sent this purchase order for goods or services purchased.
289
+ */
290
+ vendor: PurchaseOrder.Vendor | null;
291
+ /**
292
+ * The address of the vendor who sent this purchase order.
293
+ */
294
+ vendorAddress: PurchaseOrder.VendorAddress | null;
295
+ /**
296
+ * A message to be printed on this purchase order for the vendor to read.
297
+ */
298
+ vendorMessage: string | null;
299
+ }
300
+ export declare namespace PurchaseOrder {
301
+ /**
302
+ * The purchase order's class. Classes can be used to categorize objects into
303
+ * meaningful segments, such as department, location, or type of work. In
304
+ * QuickBooks, class tracking is off by default. A class defined here is
305
+ * automatically used in this purchase order's line items unless overridden at the
306
+ * line item level.
307
+ */
308
+ interface Class {
309
+ /**
310
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
311
+ * across all objects of the same type, but not across different QuickBooks object
312
+ * types.
313
+ */
314
+ id: string | null;
315
+ /**
316
+ * The fully-qualified unique name for this object, formed by combining the names
317
+ * of its parent objects with its own `name`, separated by colons. Not
318
+ * case-sensitive.
319
+ */
320
+ fullName: string | null;
321
+ }
322
+ /**
323
+ * The purchase order's currency. For built-in currencies, the name and code are
324
+ * standard international values. For user-defined currencies, all values are
325
+ * editable.
326
+ */
327
+ interface Currency {
328
+ /**
329
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
330
+ * across all objects of the same type, but not across different QuickBooks object
331
+ * types.
332
+ */
333
+ id: string | null;
334
+ /**
335
+ * The fully-qualified unique name for this object, formed by combining the names
336
+ * of its parent objects with its own `name`, separated by colons. Not
337
+ * case-sensitive.
338
+ */
339
+ fullName: string | null;
340
+ }
341
+ interface CustomField {
342
+ /**
343
+ * The name of the custom field, unique for the specified `ownerId`. For public
344
+ * custom fields, this name is visible as a label in the QuickBooks UI.
345
+ */
346
+ name: string;
347
+ /**
348
+ * The identifier of the owner of the custom field, which QuickBooks internally
349
+ * calls a "data extension". For public custom fields visible in the UI, such as
350
+ * those added by the QuickBooks user, this is always "0". For private custom
351
+ * fields that are only visible to the application that created them, this is a
352
+ * valid GUID identifying the owning application. Internally, Conductor always
353
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
354
+ * objects.
355
+ */
356
+ ownerId: string;
357
+ /**
358
+ * The data type of this custom field.
359
+ */
360
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
361
+ /**
362
+ * The value of this custom field. The maximum length depends on the field's data
363
+ * type.
364
+ */
365
+ value: string;
366
+ }
367
+ /**
368
+ * The predefined template in QuickBooks that determines the layout and formatting
369
+ * for this purchase order when printed or displayed.
370
+ */
371
+ interface DocumentTemplate {
372
+ /**
373
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
374
+ * across all objects of the same type, but not across different QuickBooks object
375
+ * types.
376
+ */
377
+ id: string | null;
378
+ /**
379
+ * The fully-qualified unique name for this object, formed by combining the names
380
+ * of its parent objects with its own `name`, separated by colons. Not
381
+ * case-sensitive.
382
+ */
383
+ fullName: string | null;
384
+ }
385
+ /**
386
+ * The site location where inventory for the item associated with this purchase
387
+ * order is stored.
388
+ */
389
+ interface InventorySite {
390
+ /**
391
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
392
+ * across all objects of the same type, but not across different QuickBooks object
393
+ * types.
394
+ */
395
+ id: string | null;
396
+ /**
397
+ * The fully-qualified unique name for this object, formed by combining the names
398
+ * of its parent objects with its own `name`, separated by colons. Not
399
+ * case-sensitive.
400
+ */
401
+ fullName: string | null;
402
+ }
403
+ interface LineGroup {
404
+ /**
405
+ * The unique identifier assigned by QuickBooks to this purchase order line group.
406
+ * This ID is unique across all transaction line types.
407
+ */
408
+ id: string;
409
+ /**
410
+ * The custom fields for the purchase order line group object, added as
411
+ * user-defined data extensions, not included in the standard QuickBooks object.
412
+ */
413
+ customFields: Array<LineGroup.CustomField>;
414
+ /**
415
+ * A description of this purchase order line group.
416
+ */
417
+ description: string | null;
418
+ /**
419
+ * The purchase order line group's item group, representing a predefined set of
420
+ * items bundled because they are commonly purchased together or grouped for faster
421
+ * entry.
422
+ */
423
+ itemGroup: LineGroup.ItemGroup;
424
+ /**
425
+ * The purchase order line group's line items, each representing a single product
426
+ * or service ordered.
427
+ */
428
+ lines: Array<LineGroup.Line>;
429
+ /**
430
+ * The type of object. This value is always `"qbd_purchase_order_line_group"`.
431
+ */
432
+ objectType: 'qbd_purchase_order_line_group';
433
+ /**
434
+ * Specifies an alternative unit-of-measure set when updating this purchase order
435
+ * line group's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows
436
+ * you to select units from a different set than the item's default unit-of-measure
437
+ * set, which remains unchanged on the item itself. The override applies only to
438
+ * this specific line. For example, you can sell an item typically measured in
439
+ * volume units using weight units in a specific transaction by specifying a
440
+ * different unit-of-measure set with this field.
441
+ */
442
+ overrideUnitOfMeasureSet: LineGroup.OverrideUnitOfMeasureSet | null;
443
+ /**
444
+ * The quantity of the item group associated with this purchase order line group.
445
+ * This field cannot be cleared.
446
+ *
447
+ * **NOTE**: Do not use this field if the associated item group is a discount item
448
+ * group.
449
+ */
450
+ quantity: number | null;
451
+ /**
452
+ * Indicates whether the individual items in this purchase order line group and
453
+ * their separate amounts appear on printed forms.
454
+ */
455
+ shouldPrintItemsInGroup: boolean;
456
+ /**
457
+ * The total monetary amount of this purchase order line group, equivalent to the
458
+ * sum of the amounts in `lines`, represented as a decimal string.
459
+ */
460
+ totalAmount: string;
461
+ /**
462
+ * The unit-of-measure used for the `quantity` in this purchase order line group.
463
+ * Must be a valid unit within the item's available units of measure.
464
+ */
465
+ unitOfMeasure: string | null;
466
+ }
467
+ namespace LineGroup {
468
+ interface CustomField {
469
+ /**
470
+ * The name of the custom field, unique for the specified `ownerId`. For public
471
+ * custom fields, this name is visible as a label in the QuickBooks UI.
472
+ */
473
+ name: string;
474
+ /**
475
+ * The identifier of the owner of the custom field, which QuickBooks internally
476
+ * calls a "data extension". For public custom fields visible in the UI, such as
477
+ * those added by the QuickBooks user, this is always "0". For private custom
478
+ * fields that are only visible to the application that created them, this is a
479
+ * valid GUID identifying the owning application. Internally, Conductor always
480
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
481
+ * objects.
482
+ */
483
+ ownerId: string;
484
+ /**
485
+ * The data type of this custom field.
486
+ */
487
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
488
+ /**
489
+ * The value of this custom field. The maximum length depends on the field's data
490
+ * type.
491
+ */
492
+ value: string;
493
+ }
494
+ /**
495
+ * The purchase order line group's item group, representing a predefined set of
496
+ * items bundled because they are commonly purchased together or grouped for faster
497
+ * entry.
498
+ */
499
+ interface ItemGroup {
500
+ /**
501
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
502
+ * across all objects of the same type, but not across different QuickBooks object
503
+ * types.
504
+ */
505
+ id: string | null;
506
+ /**
507
+ * The fully-qualified unique name for this object, formed by combining the names
508
+ * of its parent objects with its own `name`, separated by colons. Not
509
+ * case-sensitive.
510
+ */
511
+ fullName: string | null;
512
+ }
513
+ interface Line {
514
+ /**
515
+ * The unique identifier assigned by QuickBooks to this purchase order line. This
516
+ * ID is unique across all transaction line types.
517
+ */
518
+ id: string;
519
+ /**
520
+ * The monetary amount of this purchase order line, represented as a decimal
521
+ * string. If both `quantity` and `rate` are specified but not `amount`, QuickBooks
522
+ * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
523
+ * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
524
+ * `1` and the suggested `rate`. This field cannot be cleared.
525
+ */
526
+ amount: string | null;
527
+ /**
528
+ * The purchase order line's class. Classes can be used to categorize objects into
529
+ * meaningful segments, such as department, location, or type of work. In
530
+ * QuickBooks, class tracking is off by default. If a class is specified for the
531
+ * entire parent transaction, it is automatically applied to all purchase order
532
+ * lines unless overridden here, at the transaction line level.
533
+ */
534
+ class: Line.Class | null;
535
+ /**
536
+ * The custom fields for the purchase order line object, added as user-defined data
537
+ * extensions, not included in the standard QuickBooks object.
538
+ */
539
+ customFields: Array<Line.CustomField>;
540
+ /**
541
+ * A description of this purchase order line.
542
+ */
543
+ description: string | null;
544
+ /**
545
+ * The specific location (e.g., bin or shelf) within the inventory site where the
546
+ * item associated with this purchase order line is stored.
547
+ */
548
+ inventorySiteLocation: Line.InventorySiteLocation | null;
549
+ /**
550
+ * Indicates whether this purchase order line has been billed.
551
+ */
552
+ isBilled: boolean | null;
553
+ /**
554
+ * Indicates whether this purchase order line has been manually marked as closed,
555
+ * even if this item has not been received or its sale has not been cancelled. If
556
+ * all the purchase order lines are marked as closed, the purchase order itself is
557
+ * marked as closed as well. You cannot change `isManuallyClosed` to `false` after
558
+ * the purchase order line has been fully received.
559
+ */
560
+ isManuallyClosed: boolean;
561
+ /**
562
+ * The item associated with this purchase order line. This can refer to any good or
563
+ * service that the business buys or sells, including item types such as a service
564
+ * item, inventory item, or special calculation item like a discount item or
565
+ * sales-tax item.
566
+ */
567
+ item: Line.Item | null;
568
+ /**
569
+ * The type of object. This value is always `"qbd_purchase_order_line"`.
570
+ */
571
+ objectType: 'qbd_purchase_order_line';
572
+ /**
573
+ * A built-in custom field for additional information specific to this purchase
574
+ * order line. Unlike the user-defined fields in the `customFields` array, this is
575
+ * a standard QuickBooks field that exists for all purchase order lines for
576
+ * convenience. Developers often use this field for tracking information that
577
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
578
+ * QuickBooks UI.
579
+ */
580
+ otherCustomField1: string | null;
581
+ /**
582
+ * A second built-in custom field for additional information specific to this
583
+ * purchase order line. Unlike the user-defined fields in the `customFields` array,
584
+ * this is a standard QuickBooks field that exists for all purchase order lines for
585
+ * convenience. Like `otherCustomField1`, developers often use this field for
586
+ * tracking information that doesn't fit into other standard QuickBooks fields.
587
+ * Hidden by default in the QuickBooks UI.
588
+ */
589
+ otherCustomField2: string | null;
590
+ /**
591
+ * Specifies an alternative unit-of-measure set when updating this purchase order
592
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
593
+ * select units from a different set than the item's default unit-of-measure set,
594
+ * which remains unchanged on the item itself. The override applies only to this
595
+ * specific line. For example, you can sell an item typically measured in volume
596
+ * units using weight units in a specific transaction by specifying a different
597
+ * unit-of-measure set with this field.
598
+ */
599
+ overrideUnitOfMeasureSet: Line.OverrideUnitOfMeasureSet | null;
600
+ /**
601
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
602
+ * expense's vendor (not the customer). If `account` refers to any other type of
603
+ * account, `payee` refers to the expense's customer (not the vendor).
604
+ */
605
+ payee: Line.Payee | null;
606
+ /**
607
+ * The quantity of the item associated with this purchase order line. This field
608
+ * cannot be cleared.
609
+ *
610
+ * **NOTE**: Do not use this field if the associated item is a discount item.
611
+ */
612
+ quantity: number | null;
613
+ /**
614
+ * The price per unit for this purchase order line. If both `rate` and `amount` are
615
+ * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
616
+ * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
617
+ * decimal string. This field cannot be cleared.
618
+ */
619
+ rate: string | null;
620
+ /**
621
+ * The quantity that has been received against this purchase order line.
622
+ */
623
+ receivedQuantity: number | null;
624
+ /**
625
+ * The sales-tax code for this purchase order line, determining whether it is
626
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
627
+ * the parent transaction or the associated item.
628
+ *
629
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
630
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
631
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
632
+ * non-taxable code to all sales.
633
+ */
634
+ salesTaxCode: Line.SalesTaxCode | null;
635
+ /**
636
+ * The date on which the service for this purchase order line was or will be
637
+ * performed, in ISO 8601 format (YYYY-MM-DD). This is particularly relevant for
638
+ * service items.
639
+ */
640
+ serviceDate: string | null;
641
+ /**
642
+ * The purchase order line's stock keeping unit (SKU), which is sometimes the
643
+ * manufacturer's part number.
644
+ */
645
+ sku: string | null;
646
+ /**
647
+ * The quantity that has not been billed for this purchase order line.
648
+ */
649
+ unbilledQuantity: number | null;
650
+ /**
651
+ * The unit-of-measure used for the `quantity` in this purchase order line. Must be
652
+ * a valid unit within the item's available units of measure.
653
+ */
654
+ unitOfMeasure: string | null;
655
+ }
656
+ namespace Line {
657
+ /**
658
+ * The purchase order line's class. Classes can be used to categorize objects into
659
+ * meaningful segments, such as department, location, or type of work. In
660
+ * QuickBooks, class tracking is off by default. If a class is specified for the
661
+ * entire parent transaction, it is automatically applied to all purchase order
662
+ * lines unless overridden here, at the transaction line level.
663
+ */
664
+ interface Class {
665
+ /**
666
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
667
+ * across all objects of the same type, but not across different QuickBooks object
668
+ * types.
669
+ */
670
+ id: string | null;
671
+ /**
672
+ * The fully-qualified unique name for this object, formed by combining the names
673
+ * of its parent objects with its own `name`, separated by colons. Not
674
+ * case-sensitive.
675
+ */
676
+ fullName: string | null;
677
+ }
678
+ interface CustomField {
679
+ /**
680
+ * The name of the custom field, unique for the specified `ownerId`. For public
681
+ * custom fields, this name is visible as a label in the QuickBooks UI.
682
+ */
683
+ name: string;
684
+ /**
685
+ * The identifier of the owner of the custom field, which QuickBooks internally
686
+ * calls a "data extension". For public custom fields visible in the UI, such as
687
+ * those added by the QuickBooks user, this is always "0". For private custom
688
+ * fields that are only visible to the application that created them, this is a
689
+ * valid GUID identifying the owning application. Internally, Conductor always
690
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
691
+ * objects.
692
+ */
693
+ ownerId: string;
694
+ /**
695
+ * The data type of this custom field.
696
+ */
697
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
698
+ /**
699
+ * The value of this custom field. The maximum length depends on the field's data
700
+ * type.
701
+ */
702
+ value: string;
703
+ }
704
+ /**
705
+ * The specific location (e.g., bin or shelf) within the inventory site where the
706
+ * item associated with this purchase order line is stored.
707
+ */
708
+ interface InventorySiteLocation {
709
+ /**
710
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
711
+ * across all objects of the same type, but not across different QuickBooks object
712
+ * types.
713
+ */
714
+ id: string | null;
715
+ /**
716
+ * The fully-qualified unique name for this object, formed by combining the names
717
+ * of its parent objects with its own `name`, separated by colons. Not
718
+ * case-sensitive.
719
+ */
720
+ fullName: string | null;
721
+ }
722
+ /**
723
+ * The item associated with this purchase order line. This can refer to any good or
724
+ * service that the business buys or sells, including item types such as a service
725
+ * item, inventory item, or special calculation item like a discount item or
726
+ * sales-tax item.
727
+ */
728
+ interface Item {
729
+ /**
730
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
731
+ * across all objects of the same type, but not across different QuickBooks object
732
+ * types.
733
+ */
734
+ id: string | null;
735
+ /**
736
+ * The fully-qualified unique name for this object, formed by combining the names
737
+ * of its parent objects with its own `name`, separated by colons. Not
738
+ * case-sensitive.
739
+ */
740
+ fullName: string | null;
741
+ }
742
+ /**
743
+ * Specifies an alternative unit-of-measure set when updating this purchase order
744
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
745
+ * select units from a different set than the item's default unit-of-measure set,
746
+ * which remains unchanged on the item itself. The override applies only to this
747
+ * specific line. For example, you can sell an item typically measured in volume
748
+ * units using weight units in a specific transaction by specifying a different
749
+ * unit-of-measure set with this field.
750
+ */
751
+ interface OverrideUnitOfMeasureSet {
752
+ /**
753
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
754
+ * across all objects of the same type, but not across different QuickBooks object
755
+ * types.
756
+ */
757
+ id: string | null;
758
+ /**
759
+ * The fully-qualified unique name for this object, formed by combining the names
760
+ * of its parent objects with its own `name`, separated by colons. Not
761
+ * case-sensitive.
762
+ */
763
+ fullName: string | null;
764
+ }
765
+ /**
766
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
767
+ * expense's vendor (not the customer). If `account` refers to any other type of
768
+ * account, `payee` refers to the expense's customer (not the vendor).
769
+ */
770
+ interface Payee {
771
+ /**
772
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
773
+ * across all objects of the same type, but not across different QuickBooks object
774
+ * types.
775
+ */
776
+ id: string | null;
777
+ /**
778
+ * The fully-qualified unique name for this object, formed by combining the names
779
+ * of its parent objects with its own `name`, separated by colons. Not
780
+ * case-sensitive.
781
+ */
782
+ fullName: string | null;
783
+ }
784
+ /**
785
+ * The sales-tax code for this purchase order line, determining whether it is
786
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
787
+ * the parent transaction or the associated item.
788
+ *
789
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
790
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
791
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
792
+ * non-taxable code to all sales.
793
+ */
794
+ interface SalesTaxCode {
795
+ /**
796
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
797
+ * across all objects of the same type, but not across different QuickBooks object
798
+ * types.
799
+ */
800
+ id: string | null;
801
+ /**
802
+ * The fully-qualified unique name for this object, formed by combining the names
803
+ * of its parent objects with its own `name`, separated by colons. Not
804
+ * case-sensitive.
805
+ */
806
+ fullName: string | null;
807
+ }
808
+ }
809
+ /**
810
+ * Specifies an alternative unit-of-measure set when updating this purchase order
811
+ * line group's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows
812
+ * you to select units from a different set than the item's default unit-of-measure
813
+ * set, which remains unchanged on the item itself. The override applies only to
814
+ * this specific line. For example, you can sell an item typically measured in
815
+ * volume units using weight units in a specific transaction by specifying a
816
+ * different unit-of-measure set with this field.
817
+ */
818
+ interface OverrideUnitOfMeasureSet {
819
+ /**
820
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
821
+ * across all objects of the same type, but not across different QuickBooks object
822
+ * types.
823
+ */
824
+ id: string | null;
825
+ /**
826
+ * The fully-qualified unique name for this object, formed by combining the names
827
+ * of its parent objects with its own `name`, separated by colons. Not
828
+ * case-sensitive.
829
+ */
830
+ fullName: string | null;
831
+ }
832
+ }
833
+ interface Line {
834
+ /**
835
+ * The unique identifier assigned by QuickBooks to this purchase order line. This
836
+ * ID is unique across all transaction line types.
837
+ */
838
+ id: string;
839
+ /**
840
+ * The monetary amount of this purchase order line, represented as a decimal
841
+ * string. If both `quantity` and `rate` are specified but not `amount`, QuickBooks
842
+ * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
843
+ * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
844
+ * `1` and the suggested `rate`. This field cannot be cleared.
845
+ */
846
+ amount: string | null;
847
+ /**
848
+ * The purchase order line's class. Classes can be used to categorize objects into
849
+ * meaningful segments, such as department, location, or type of work. In
850
+ * QuickBooks, class tracking is off by default. If a class is specified for the
851
+ * entire parent transaction, it is automatically applied to all purchase order
852
+ * lines unless overridden here, at the transaction line level.
853
+ */
854
+ class: Line.Class | null;
855
+ /**
856
+ * The custom fields for the purchase order line object, added as user-defined data
857
+ * extensions, not included in the standard QuickBooks object.
858
+ */
859
+ customFields: Array<Line.CustomField>;
860
+ /**
861
+ * A description of this purchase order line.
862
+ */
863
+ description: string | null;
864
+ /**
865
+ * The specific location (e.g., bin or shelf) within the inventory site where the
866
+ * item associated with this purchase order line is stored.
867
+ */
868
+ inventorySiteLocation: Line.InventorySiteLocation | null;
869
+ /**
870
+ * Indicates whether this purchase order line has been billed.
871
+ */
872
+ isBilled: boolean | null;
873
+ /**
874
+ * Indicates whether this purchase order line has been manually marked as closed,
875
+ * even if this item has not been received or its sale has not been cancelled. If
876
+ * all the purchase order lines are marked as closed, the purchase order itself is
877
+ * marked as closed as well. You cannot change `isManuallyClosed` to `false` after
878
+ * the purchase order line has been fully received.
879
+ */
880
+ isManuallyClosed: boolean;
881
+ /**
882
+ * The item associated with this purchase order line. This can refer to any good or
883
+ * service that the business buys or sells, including item types such as a service
884
+ * item, inventory item, or special calculation item like a discount item or
885
+ * sales-tax item.
886
+ */
887
+ item: Line.Item | null;
888
+ /**
889
+ * The type of object. This value is always `"qbd_purchase_order_line"`.
890
+ */
891
+ objectType: 'qbd_purchase_order_line';
892
+ /**
893
+ * A built-in custom field for additional information specific to this purchase
894
+ * order line. Unlike the user-defined fields in the `customFields` array, this is
895
+ * a standard QuickBooks field that exists for all purchase order lines for
896
+ * convenience. Developers often use this field for tracking information that
897
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
898
+ * QuickBooks UI.
899
+ */
900
+ otherCustomField1: string | null;
901
+ /**
902
+ * A second built-in custom field for additional information specific to this
903
+ * purchase order line. Unlike the user-defined fields in the `customFields` array,
904
+ * this is a standard QuickBooks field that exists for all purchase order lines for
905
+ * convenience. Like `otherCustomField1`, developers often use this field for
906
+ * tracking information that doesn't fit into other standard QuickBooks fields.
907
+ * Hidden by default in the QuickBooks UI.
908
+ */
909
+ otherCustomField2: string | null;
910
+ /**
911
+ * Specifies an alternative unit-of-measure set when updating this purchase order
912
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
913
+ * select units from a different set than the item's default unit-of-measure set,
914
+ * which remains unchanged on the item itself. The override applies only to this
915
+ * specific line. For example, you can sell an item typically measured in volume
916
+ * units using weight units in a specific transaction by specifying a different
917
+ * unit-of-measure set with this field.
918
+ */
919
+ overrideUnitOfMeasureSet: Line.OverrideUnitOfMeasureSet | null;
920
+ /**
921
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
922
+ * expense's vendor (not the customer). If `account` refers to any other type of
923
+ * account, `payee` refers to the expense's customer (not the vendor).
924
+ */
925
+ payee: Line.Payee | null;
926
+ /**
927
+ * The quantity of the item associated with this purchase order line. This field
928
+ * cannot be cleared.
929
+ *
930
+ * **NOTE**: Do not use this field if the associated item is a discount item.
931
+ */
932
+ quantity: number | null;
933
+ /**
934
+ * The price per unit for this purchase order line. If both `rate` and `amount` are
935
+ * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
936
+ * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
937
+ * decimal string. This field cannot be cleared.
938
+ */
939
+ rate: string | null;
940
+ /**
941
+ * The quantity that has been received against this purchase order line.
942
+ */
943
+ receivedQuantity: number | null;
944
+ /**
945
+ * The sales-tax code for this purchase order line, determining whether it is
946
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
947
+ * the parent transaction or the associated item.
948
+ *
949
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
950
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
951
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
952
+ * non-taxable code to all sales.
953
+ */
954
+ salesTaxCode: Line.SalesTaxCode | null;
955
+ /**
956
+ * The date on which the service for this purchase order line was or will be
957
+ * performed, in ISO 8601 format (YYYY-MM-DD). This is particularly relevant for
958
+ * service items.
959
+ */
960
+ serviceDate: string | null;
961
+ /**
962
+ * The purchase order line's stock keeping unit (SKU), which is sometimes the
963
+ * manufacturer's part number.
964
+ */
965
+ sku: string | null;
966
+ /**
967
+ * The quantity that has not been billed for this purchase order line.
968
+ */
969
+ unbilledQuantity: number | null;
970
+ /**
971
+ * The unit-of-measure used for the `quantity` in this purchase order line. Must be
972
+ * a valid unit within the item's available units of measure.
973
+ */
974
+ unitOfMeasure: string | null;
975
+ }
976
+ namespace Line {
977
+ /**
978
+ * The purchase order line's class. Classes can be used to categorize objects into
979
+ * meaningful segments, such as department, location, or type of work. In
980
+ * QuickBooks, class tracking is off by default. If a class is specified for the
981
+ * entire parent transaction, it is automatically applied to all purchase order
982
+ * lines unless overridden here, at the transaction line level.
983
+ */
984
+ interface Class {
985
+ /**
986
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
987
+ * across all objects of the same type, but not across different QuickBooks object
988
+ * types.
989
+ */
990
+ id: string | null;
991
+ /**
992
+ * The fully-qualified unique name for this object, formed by combining the names
993
+ * of its parent objects with its own `name`, separated by colons. Not
994
+ * case-sensitive.
995
+ */
996
+ fullName: string | null;
997
+ }
998
+ interface CustomField {
999
+ /**
1000
+ * The name of the custom field, unique for the specified `ownerId`. For public
1001
+ * custom fields, this name is visible as a label in the QuickBooks UI.
1002
+ */
1003
+ name: string;
1004
+ /**
1005
+ * The identifier of the owner of the custom field, which QuickBooks internally
1006
+ * calls a "data extension". For public custom fields visible in the UI, such as
1007
+ * those added by the QuickBooks user, this is always "0". For private custom
1008
+ * fields that are only visible to the application that created them, this is a
1009
+ * valid GUID identifying the owning application. Internally, Conductor always
1010
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
1011
+ * objects.
1012
+ */
1013
+ ownerId: string;
1014
+ /**
1015
+ * The data type of this custom field.
1016
+ */
1017
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
1018
+ /**
1019
+ * The value of this custom field. The maximum length depends on the field's data
1020
+ * type.
1021
+ */
1022
+ value: string;
1023
+ }
1024
+ /**
1025
+ * The specific location (e.g., bin or shelf) within the inventory site where the
1026
+ * item associated with this purchase order line is stored.
1027
+ */
1028
+ interface InventorySiteLocation {
1029
+ /**
1030
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1031
+ * across all objects of the same type, but not across different QuickBooks object
1032
+ * types.
1033
+ */
1034
+ id: string | null;
1035
+ /**
1036
+ * The fully-qualified unique name for this object, formed by combining the names
1037
+ * of its parent objects with its own `name`, separated by colons. Not
1038
+ * case-sensitive.
1039
+ */
1040
+ fullName: string | null;
1041
+ }
1042
+ /**
1043
+ * The item associated with this purchase order line. This can refer to any good or
1044
+ * service that the business buys or sells, including item types such as a service
1045
+ * item, inventory item, or special calculation item like a discount item or
1046
+ * sales-tax item.
1047
+ */
1048
+ interface Item {
1049
+ /**
1050
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1051
+ * across all objects of the same type, but not across different QuickBooks object
1052
+ * types.
1053
+ */
1054
+ id: string | null;
1055
+ /**
1056
+ * The fully-qualified unique name for this object, formed by combining the names
1057
+ * of its parent objects with its own `name`, separated by colons. Not
1058
+ * case-sensitive.
1059
+ */
1060
+ fullName: string | null;
1061
+ }
1062
+ /**
1063
+ * Specifies an alternative unit-of-measure set when updating this purchase order
1064
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
1065
+ * select units from a different set than the item's default unit-of-measure set,
1066
+ * which remains unchanged on the item itself. The override applies only to this
1067
+ * specific line. For example, you can sell an item typically measured in volume
1068
+ * units using weight units in a specific transaction by specifying a different
1069
+ * unit-of-measure set with this field.
1070
+ */
1071
+ interface OverrideUnitOfMeasureSet {
1072
+ /**
1073
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1074
+ * across all objects of the same type, but not across different QuickBooks object
1075
+ * types.
1076
+ */
1077
+ id: string | null;
1078
+ /**
1079
+ * The fully-qualified unique name for this object, formed by combining the names
1080
+ * of its parent objects with its own `name`, separated by colons. Not
1081
+ * case-sensitive.
1082
+ */
1083
+ fullName: string | null;
1084
+ }
1085
+ /**
1086
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
1087
+ * expense's vendor (not the customer). If `account` refers to any other type of
1088
+ * account, `payee` refers to the expense's customer (not the vendor).
1089
+ */
1090
+ interface Payee {
1091
+ /**
1092
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1093
+ * across all objects of the same type, but not across different QuickBooks object
1094
+ * types.
1095
+ */
1096
+ id: string | null;
1097
+ /**
1098
+ * The fully-qualified unique name for this object, formed by combining the names
1099
+ * of its parent objects with its own `name`, separated by colons. Not
1100
+ * case-sensitive.
1101
+ */
1102
+ fullName: string | null;
1103
+ }
1104
+ /**
1105
+ * The sales-tax code for this purchase order line, determining whether it is
1106
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
1107
+ * the parent transaction or the associated item.
1108
+ *
1109
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1110
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1111
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1112
+ * non-taxable code to all sales.
1113
+ */
1114
+ interface SalesTaxCode {
1115
+ /**
1116
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1117
+ * across all objects of the same type, but not across different QuickBooks object
1118
+ * types.
1119
+ */
1120
+ id: string | null;
1121
+ /**
1122
+ * The fully-qualified unique name for this object, formed by combining the names
1123
+ * of its parent objects with its own `name`, separated by colons. Not
1124
+ * case-sensitive.
1125
+ */
1126
+ fullName: string | null;
1127
+ }
1128
+ }
1129
+ interface LinkedTransaction {
1130
+ /**
1131
+ * The unique identifier assigned by QuickBooks to this linked transaction. This ID
1132
+ * is unique across all transaction types.
1133
+ */
1134
+ id: string;
1135
+ /**
1136
+ * The monetary amount of this linked transaction, represented as a decimal string.
1137
+ */
1138
+ amount: string | null;
1139
+ /**
1140
+ * Indicates the nature of the link between the transactions: `amount` denotes an
1141
+ * amount-based link (e.g., an invoice linked to a payment), and `quantity` denotes
1142
+ * a quantity-based link (e.g., an invoice created from a sales order based on the
1143
+ * quantity of items received).
1144
+ */
1145
+ linkType: 'amount' | 'quantity' | null;
1146
+ /**
1147
+ * The type of object. This value is always `"qbd_linked_transaction"`.
1148
+ */
1149
+ objectType: 'qbd_linked_transaction';
1150
+ /**
1151
+ * The case-sensitive user-defined reference number for this linked transaction,
1152
+ * which can be used to identify the transaction in QuickBooks. This value is not
1153
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
1154
+ */
1155
+ refNumber: string | null;
1156
+ /**
1157
+ * The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD).
1158
+ */
1159
+ transactionDate: string;
1160
+ /**
1161
+ * The type of transaction for this linked transaction.
1162
+ */
1163
+ transactionType: 'ar_refund_credit_card' | 'bill' | 'bill_payment_check' | 'bill_payment_credit_card' | 'build_assembly' | 'charge' | 'check' | 'credit_card_charge' | 'credit_card_credit' | 'credit_memo' | 'deposit' | 'estimate' | 'inventory_adjustment' | 'invoice' | 'item_receipt' | 'journal_entry' | 'liability_adjustment' | 'paycheck' | 'payroll_liability_check' | 'purchase_order' | 'receive_payment' | 'sales_order' | 'sales_receipt' | 'sales_tax_payment_check' | 'transfer' | 'vendor_credit' | 'ytd_adjustment' | 'unknown';
1164
+ }
1165
+ /**
1166
+ * The sales-tax code for this purchase order, determining whether it is taxable or
1167
+ * non-taxable. If set, this overrides any sales-tax codes defined on the vendor.
1168
+ * This can be overridden on the purchase order's individual lines.
1169
+ *
1170
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1171
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1172
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1173
+ * non-taxable code to all sales.
1174
+ */
1175
+ interface SalesTaxCode {
1176
+ /**
1177
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1178
+ * across all objects of the same type, but not across different QuickBooks object
1179
+ * types.
1180
+ */
1181
+ id: string | null;
1182
+ /**
1183
+ * The fully-qualified unique name for this object, formed by combining the names
1184
+ * of its parent objects with its own `name`, separated by colons. Not
1185
+ * case-sensitive.
1186
+ */
1187
+ fullName: string | null;
1188
+ }
1189
+ /**
1190
+ * The purchase order's shipping address.
1191
+ */
1192
+ interface ShippingAddress {
1193
+ /**
1194
+ * The city, district, suburb, town, or village name of the address.
1195
+ */
1196
+ city: string | null;
1197
+ /**
1198
+ * The country name of the address.
1199
+ */
1200
+ country: string | null;
1201
+ /**
1202
+ * The first line of the address (e.g., street, PO Box, or company name).
1203
+ */
1204
+ line1: string | null;
1205
+ /**
1206
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1207
+ * building).
1208
+ */
1209
+ line2: string | null;
1210
+ /**
1211
+ * The third line of the address, if needed.
1212
+ */
1213
+ line3: string | null;
1214
+ /**
1215
+ * The fourth line of the address, if needed.
1216
+ */
1217
+ line4: string | null;
1218
+ /**
1219
+ * The fifth line of the address, if needed.
1220
+ */
1221
+ line5: string | null;
1222
+ /**
1223
+ * A note written at the bottom of the address in the form in which it appears,
1224
+ * such as the invoice form.
1225
+ */
1226
+ note: string | null;
1227
+ /**
1228
+ * The postal code or ZIP code of the address.
1229
+ */
1230
+ postalCode: string | null;
1231
+ /**
1232
+ * The state, county, province, or region name of the address.
1233
+ */
1234
+ state: string | null;
1235
+ }
1236
+ /**
1237
+ * The shipping method used for this purchase order, such as standard mail or
1238
+ * overnight delivery.
1239
+ */
1240
+ interface ShippingMethod {
1241
+ /**
1242
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1243
+ * across all objects of the same type, but not across different QuickBooks object
1244
+ * types.
1245
+ */
1246
+ id: string | null;
1247
+ /**
1248
+ * The fully-qualified unique name for this object, formed by combining the names
1249
+ * of its parent objects with its own `name`, separated by colons. Not
1250
+ * case-sensitive.
1251
+ */
1252
+ fullName: string | null;
1253
+ }
1254
+ /**
1255
+ * The customer, vendor, employee, or other entity to whom this purchase order is
1256
+ * to be shipped.
1257
+ */
1258
+ interface ShipToEntity {
1259
+ /**
1260
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1261
+ * across all objects of the same type, but not across different QuickBooks object
1262
+ * types.
1263
+ */
1264
+ id: string | null;
1265
+ /**
1266
+ * The fully-qualified unique name for this object, formed by combining the names
1267
+ * of its parent objects with its own `name`, separated by colons. Not
1268
+ * case-sensitive.
1269
+ */
1270
+ fullName: string | null;
1271
+ }
1272
+ /**
1273
+ * The purchase order's payment terms, defining when payment is due and any
1274
+ * applicable discounts.
1275
+ */
1276
+ interface Terms {
1277
+ /**
1278
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1279
+ * across all objects of the same type, but not across different QuickBooks object
1280
+ * types.
1281
+ */
1282
+ id: string | null;
1283
+ /**
1284
+ * The fully-qualified unique name for this object, formed by combining the names
1285
+ * of its parent objects with its own `name`, separated by colons. Not
1286
+ * case-sensitive.
1287
+ */
1288
+ fullName: string | null;
1289
+ }
1290
+ /**
1291
+ * The vendor who sent this purchase order for goods or services purchased.
1292
+ */
1293
+ interface Vendor {
1294
+ /**
1295
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
1296
+ * across all objects of the same type, but not across different QuickBooks object
1297
+ * types.
1298
+ */
1299
+ id: string | null;
1300
+ /**
1301
+ * The fully-qualified unique name for this object, formed by combining the names
1302
+ * of its parent objects with its own `name`, separated by colons. Not
1303
+ * case-sensitive.
1304
+ */
1305
+ fullName: string | null;
1306
+ }
1307
+ /**
1308
+ * The address of the vendor who sent this purchase order.
1309
+ */
1310
+ interface VendorAddress {
1311
+ /**
1312
+ * The city, district, suburb, town, or village name of the address.
1313
+ */
1314
+ city: string | null;
1315
+ /**
1316
+ * The country name of the address.
1317
+ */
1318
+ country: string | null;
1319
+ /**
1320
+ * The first line of the address (e.g., street, PO Box, or company name).
1321
+ */
1322
+ line1: string | null;
1323
+ /**
1324
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1325
+ * building).
1326
+ */
1327
+ line2: string | null;
1328
+ /**
1329
+ * The third line of the address, if needed.
1330
+ */
1331
+ line3: string | null;
1332
+ /**
1333
+ * The fourth line of the address, if needed.
1334
+ */
1335
+ line4: string | null;
1336
+ /**
1337
+ * The fifth line of the address, if needed.
1338
+ */
1339
+ line5: string | null;
1340
+ /**
1341
+ * A note written at the bottom of the address in the form in which it appears,
1342
+ * such as the invoice form.
1343
+ */
1344
+ note: string | null;
1345
+ /**
1346
+ * The postal code or ZIP code of the address.
1347
+ */
1348
+ postalCode: string | null;
1349
+ /**
1350
+ * The state, county, province, or region name of the address.
1351
+ */
1352
+ state: string | null;
1353
+ }
1354
+ }
1355
+ export interface PurchaseOrderDeleteResponse {
1356
+ /**
1357
+ * The QuickBooks-assigned unique identifier of the deleted purchase order.
1358
+ */
1359
+ id: string;
1360
+ /**
1361
+ * Indicates whether the purchase order was deleted.
1362
+ */
1363
+ deleted: boolean;
1364
+ /**
1365
+ * The type of object. This value is always `"qbd_purchase_order"`.
1366
+ */
1367
+ objectType: 'qbd_purchase_order';
1368
+ /**
1369
+ * The case-sensitive user-defined reference number of the deleted purchase order.
1370
+ */
1371
+ refNumber: string | null;
1372
+ }
1373
+ export interface PurchaseOrderCreateParams {
1374
+ /**
1375
+ * Body param: The date of this purchase order, in ISO 8601 format (YYYY-MM-DD).
1376
+ */
1377
+ transactionDate: string;
1378
+ /**
1379
+ * Header param: The ID of the End-User to receive this request.
1380
+ */
1381
+ conductorEndUserId: string;
1382
+ /**
1383
+ * Body param: The purchase order's class. Classes can be used to categorize
1384
+ * objects into meaningful segments, such as department, location, or type of work.
1385
+ * In QuickBooks, class tracking is off by default. A class defined here is
1386
+ * automatically used in this purchase order's line items unless overridden at the
1387
+ * line item level.
1388
+ */
1389
+ classId?: string;
1390
+ /**
1391
+ * Body param: The predefined template in QuickBooks that determines the layout and
1392
+ * formatting for this purchase order when printed or displayed.
1393
+ */
1394
+ documentTemplateId?: string;
1395
+ /**
1396
+ * Body param: The date by which this purchase order must be paid, in ISO 8601
1397
+ * format (YYYY-MM-DD).
1398
+ */
1399
+ dueDate?: string;
1400
+ /**
1401
+ * Body param: The market exchange rate between this purchase order's currency and
1402
+ * the home currency in QuickBooks at the time of this transaction. Represented as
1403
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
1404
+ * currency).
1405
+ */
1406
+ exchangeRate?: number;
1407
+ /**
1408
+ * Body param: The date on which shipment of this purchase order is expected to be
1409
+ * completed, in ISO 8601 format (YYYY-MM-DD).
1410
+ */
1411
+ expectedDate?: string;
1412
+ /**
1413
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
1414
+ * for tracking this object in your external system. This field is immutable and
1415
+ * can only be set during object creation.
1416
+ *
1417
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
1418
+ * QuickBooks will return an error.
1419
+ */
1420
+ externalId?: string;
1421
+ /**
1422
+ * Body param: The site location where inventory for the item associated with this
1423
+ * purchase order is stored.
1424
+ */
1425
+ inventorySiteId?: string;
1426
+ /**
1427
+ * Body param: Indicates whether this purchase order is included in the queue of
1428
+ * documents for QuickBooks to email to the customer.
1429
+ */
1430
+ isQueuedForEmail?: boolean;
1431
+ /**
1432
+ * Body param: Indicates whether this purchase order is included in the queue of
1433
+ * documents for QuickBooks to print.
1434
+ */
1435
+ isQueuedForPrint?: boolean;
1436
+ /**
1437
+ * Body param: The purchase order's line item groups, each representing a
1438
+ * predefined set of related items.
1439
+ *
1440
+ * **IMPORTANT**: You must specify `lines`, `lineGroups`, or both when creating a
1441
+ * purchase order.
1442
+ */
1443
+ lineGroups?: Array<PurchaseOrderCreateParams.LineGroup>;
1444
+ /**
1445
+ * Body param: The purchase order's line items, each representing a single product
1446
+ * or service ordered.
1447
+ *
1448
+ * **IMPORTANT**: You must specify `lines`, `lineGroups`, or both when creating a
1449
+ * purchase order.
1450
+ */
1451
+ lines?: Array<PurchaseOrderCreateParams.Line>;
1452
+ /**
1453
+ * Body param: A memo or note for this purchase order that appears in reports, but
1454
+ * not on the purchase order.
1455
+ */
1456
+ memo?: string;
1457
+ /**
1458
+ * Body param: A built-in custom field for additional information specific to this
1459
+ * purchase order. Unlike the user-defined fields in the `customFields` array, this
1460
+ * is a standard QuickBooks field that exists for all purchase orders for
1461
+ * convenience. Developers often use this field for tracking information that
1462
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
1463
+ * QuickBooks UI.
1464
+ */
1465
+ otherCustomField1?: string;
1466
+ /**
1467
+ * Body param: A second built-in custom field for additional information specific
1468
+ * to this purchase order. Unlike the user-defined fields in the `customFields`
1469
+ * array, this is a standard QuickBooks field that exists for all purchase orders
1470
+ * for convenience. Like `otherCustomField1`, developers often use this field for
1471
+ * tracking information that doesn't fit into other standard QuickBooks fields.
1472
+ * Hidden by default in the QuickBooks UI.
1473
+ */
1474
+ otherCustomField2?: string;
1475
+ /**
1476
+ * Body param: The case-sensitive user-defined reference number for this purchase
1477
+ * order, which can be used to identify the transaction in QuickBooks. This value
1478
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
1479
+ * user. When left blank in this create request, this field will be left blank in
1480
+ * QuickBooks (i.e., it does _not_ auto-increment).
1481
+ */
1482
+ refNumber?: string;
1483
+ /**
1484
+ * Body param: The sales-tax code for this purchase order, determining whether it
1485
+ * is taxable or non-taxable. If set, this overrides any sales-tax codes defined on
1486
+ * the vendor. This can be overridden on the purchase order's individual lines.
1487
+ *
1488
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1489
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1490
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1491
+ * non-taxable code to all sales.
1492
+ */
1493
+ salesTaxCodeId?: string;
1494
+ /**
1495
+ * Body param: The origin location from where the product associated with this
1496
+ * purchase order is shipped. This is the point at which ownership and liability
1497
+ * for goods transfer from seller to buyer. Internally, QuickBooks uses the term
1498
+ * "FOB" for this field, which stands for "freight on board". This field is
1499
+ * informational and has no accounting implications.
1500
+ */
1501
+ shipmentOrigin?: string;
1502
+ /**
1503
+ * Body param: The purchase order's shipping address.
1504
+ */
1505
+ shippingAddress?: PurchaseOrderCreateParams.ShippingAddress;
1506
+ /**
1507
+ * Body param: The shipping method used for this purchase order, such as standard
1508
+ * mail or overnight delivery.
1509
+ */
1510
+ shippingMethodId?: string;
1511
+ /**
1512
+ * Body param: The customer, vendor, employee, or other entity to whom this
1513
+ * purchase order is to be shipped.
1514
+ */
1515
+ shipToEntityId?: string;
1516
+ /**
1517
+ * Body param: The purchase order's payment terms, defining when payment is due and
1518
+ * any applicable discounts.
1519
+ */
1520
+ termsId?: string;
1521
+ /**
1522
+ * Body param: The address of the vendor who sent this purchase order.
1523
+ */
1524
+ vendorAddress?: PurchaseOrderCreateParams.VendorAddress;
1525
+ /**
1526
+ * Body param: The vendor who sent this purchase order for goods or services
1527
+ * purchased.
1528
+ */
1529
+ vendorId?: string;
1530
+ /**
1531
+ * Body param: A message to be printed on this purchase order for the vendor to
1532
+ * read.
1533
+ */
1534
+ vendorMessage?: string;
1535
+ }
1536
+ export declare namespace PurchaseOrderCreateParams {
1537
+ interface LineGroup {
1538
+ /**
1539
+ * The purchase order line group's item group, representing a predefined set of
1540
+ * items bundled because they are commonly purchased together or grouped for faster
1541
+ * entry.
1542
+ */
1543
+ itemGroupId: string;
1544
+ /**
1545
+ * The custom fields for the purchase order line group object, added as
1546
+ * user-defined data extensions, not included in the standard QuickBooks object.
1547
+ */
1548
+ customFields?: Array<LineGroup.CustomField>;
1549
+ /**
1550
+ * The specific location (e.g., bin or shelf) within the inventory site where the
1551
+ * item group associated with this purchase order line group is stored.
1552
+ */
1553
+ inventorySiteLocationId?: string;
1554
+ /**
1555
+ * The quantity of the item group associated with this purchase order line group.
1556
+ * This field cannot be cleared.
1557
+ *
1558
+ * **NOTE**: Do not use this field if the associated item group is a discount item
1559
+ * group.
1560
+ */
1561
+ quantity?: number;
1562
+ /**
1563
+ * The unit-of-measure used for the `quantity` in this purchase order line group.
1564
+ * Must be a valid unit within the item's available units of measure.
1565
+ */
1566
+ unitOfMeasure?: string;
1567
+ }
1568
+ namespace LineGroup {
1569
+ interface CustomField {
1570
+ /**
1571
+ * The name of the custom field, unique for the specified `ownerId`. For public
1572
+ * custom fields, this name is visible as a label in the QuickBooks UI.
1573
+ */
1574
+ name: string;
1575
+ /**
1576
+ * The identifier of the owner of the custom field, which QuickBooks internally
1577
+ * calls a "data extension". For public custom fields visible in the UI, such as
1578
+ * those added by the QuickBooks user, this is always "0". For private custom
1579
+ * fields that are only visible to the application that created them, this is a
1580
+ * valid GUID identifying the owning application. Internally, Conductor always
1581
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
1582
+ * objects.
1583
+ */
1584
+ ownerId: string;
1585
+ /**
1586
+ * The value of this custom field. The maximum length depends on the field's data
1587
+ * type.
1588
+ */
1589
+ value: string;
1590
+ }
1591
+ }
1592
+ interface Line {
1593
+ /**
1594
+ * The monetary amount of this purchase order line, represented as a decimal
1595
+ * string. If both `quantity` and `rate` are specified but not `amount`, QuickBooks
1596
+ * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
1597
+ * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
1598
+ * `1` and the suggested `rate`. This field cannot be cleared.
1599
+ */
1600
+ amount?: string;
1601
+ /**
1602
+ * The purchase order line's class. Classes can be used to categorize objects into
1603
+ * meaningful segments, such as department, location, or type of work. In
1604
+ * QuickBooks, class tracking is off by default. If a class is specified for the
1605
+ * entire parent transaction, it is automatically applied to all purchase order
1606
+ * lines unless overridden here, at the transaction line level.
1607
+ */
1608
+ classId?: string;
1609
+ /**
1610
+ * The custom fields for the purchase order line object, added as user-defined data
1611
+ * extensions, not included in the standard QuickBooks object.
1612
+ */
1613
+ customFields?: Array<Line.CustomField>;
1614
+ /**
1615
+ * A description of this purchase order line.
1616
+ */
1617
+ description?: string;
1618
+ /**
1619
+ * The specific location (e.g., bin or shelf) within the inventory site where the
1620
+ * item associated with this purchase order line is stored.
1621
+ */
1622
+ inventorySiteLocationId?: string;
1623
+ /**
1624
+ * The item associated with this purchase order line. This can refer to any good or
1625
+ * service that the business buys or sells, including item types such as a service
1626
+ * item, inventory item, or special calculation item like a discount item or
1627
+ * sales-tax item.
1628
+ */
1629
+ itemId?: string;
1630
+ /**
1631
+ * A built-in custom field for additional information specific to this purchase
1632
+ * order line. Unlike the user-defined fields in the `customFields` array, this is
1633
+ * a standard QuickBooks field that exists for all purchase order lines for
1634
+ * convenience. Developers often use this field for tracking information that
1635
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
1636
+ * QuickBooks UI.
1637
+ */
1638
+ otherCustomField1?: string;
1639
+ /**
1640
+ * A second built-in custom field for additional information specific to this
1641
+ * purchase order line. Unlike the user-defined fields in the `customFields` array,
1642
+ * this is a standard QuickBooks field that exists for all purchase order lines for
1643
+ * convenience. Like `otherCustomField1`, developers often use this field for
1644
+ * tracking information that doesn't fit into other standard QuickBooks fields.
1645
+ * Hidden by default in the QuickBooks UI.
1646
+ */
1647
+ otherCustomField2?: string;
1648
+ /**
1649
+ * The account to use for this purchase order line, overriding the default account
1650
+ * associated with the item.
1651
+ */
1652
+ overrideItemAccountId?: string;
1653
+ /**
1654
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
1655
+ * expense's vendor (not the customer). If `account` refers to any other type of
1656
+ * account, `payee` refers to the expense's customer (not the vendor).
1657
+ */
1658
+ payeeId?: string;
1659
+ /**
1660
+ * The quantity of the item associated with this purchase order line. This field
1661
+ * cannot be cleared.
1662
+ *
1663
+ * **NOTE**: Do not use this field if the associated item is a discount item.
1664
+ */
1665
+ quantity?: number;
1666
+ /**
1667
+ * The price per unit for this purchase order line. If both `rate` and `amount` are
1668
+ * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
1669
+ * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
1670
+ * decimal string. This field cannot be cleared.
1671
+ */
1672
+ rate?: string;
1673
+ /**
1674
+ * The sales-tax code for this purchase order line, determining whether it is
1675
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
1676
+ * the parent transaction or the associated item.
1677
+ *
1678
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1679
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1680
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1681
+ * non-taxable code to all sales.
1682
+ */
1683
+ salesTaxCodeId?: string;
1684
+ /**
1685
+ * The date on which the service for this purchase order line was or will be
1686
+ * performed, in ISO 8601 format (YYYY-MM-DD). This is particularly relevant for
1687
+ * service items.
1688
+ */
1689
+ serviceDate?: string;
1690
+ /**
1691
+ * The purchase order line's stock keeping unit (SKU), which is sometimes the
1692
+ * manufacturer's part number.
1693
+ */
1694
+ sku?: string;
1695
+ /**
1696
+ * The unit-of-measure used for the `quantity` in this purchase order line. Must be
1697
+ * a valid unit within the item's available units of measure.
1698
+ */
1699
+ unitOfMeasure?: string;
1700
+ }
1701
+ namespace Line {
1702
+ interface CustomField {
1703
+ /**
1704
+ * The name of the custom field, unique for the specified `ownerId`. For public
1705
+ * custom fields, this name is visible as a label in the QuickBooks UI.
1706
+ */
1707
+ name: string;
1708
+ /**
1709
+ * The identifier of the owner of the custom field, which QuickBooks internally
1710
+ * calls a "data extension". For public custom fields visible in the UI, such as
1711
+ * those added by the QuickBooks user, this is always "0". For private custom
1712
+ * fields that are only visible to the application that created them, this is a
1713
+ * valid GUID identifying the owning application. Internally, Conductor always
1714
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
1715
+ * objects.
1716
+ */
1717
+ ownerId: string;
1718
+ /**
1719
+ * The value of this custom field. The maximum length depends on the field's data
1720
+ * type.
1721
+ */
1722
+ value: string;
1723
+ }
1724
+ }
1725
+ /**
1726
+ * The purchase order's shipping address.
1727
+ */
1728
+ interface ShippingAddress {
1729
+ /**
1730
+ * The city, district, suburb, town, or village name of the address.
1731
+ *
1732
+ * Maximum length: 31 characters.
1733
+ */
1734
+ city?: string;
1735
+ /**
1736
+ * The country name of the address.
1737
+ */
1738
+ country?: string;
1739
+ /**
1740
+ * The first line of the address (e.g., street, PO Box, or company name).
1741
+ *
1742
+ * Maximum length: 41 characters.
1743
+ */
1744
+ line1?: string;
1745
+ /**
1746
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1747
+ * building).
1748
+ *
1749
+ * Maximum length: 41 characters.
1750
+ */
1751
+ line2?: string;
1752
+ /**
1753
+ * The third line of the address, if needed.
1754
+ *
1755
+ * Maximum length: 41 characters.
1756
+ */
1757
+ line3?: string;
1758
+ /**
1759
+ * The fourth line of the address, if needed.
1760
+ *
1761
+ * Maximum length: 41 characters.
1762
+ */
1763
+ line4?: string;
1764
+ /**
1765
+ * The fifth line of the address, if needed.
1766
+ *
1767
+ * Maximum length: 41 characters.
1768
+ */
1769
+ line5?: string;
1770
+ /**
1771
+ * A note written at the bottom of the address in the form in which it appears,
1772
+ * such as the invoice form.
1773
+ */
1774
+ note?: string;
1775
+ /**
1776
+ * The postal code or ZIP code of the address.
1777
+ *
1778
+ * Maximum length: 13 characters.
1779
+ */
1780
+ postalCode?: string;
1781
+ /**
1782
+ * The state, county, province, or region name of the address.
1783
+ *
1784
+ * Maximum length: 21 characters.
1785
+ */
1786
+ state?: string;
1787
+ }
1788
+ /**
1789
+ * The address of the vendor who sent this purchase order.
1790
+ */
1791
+ interface VendorAddress {
1792
+ /**
1793
+ * The city, district, suburb, town, or village name of the address.
1794
+ *
1795
+ * Maximum length: 31 characters.
1796
+ */
1797
+ city?: string;
1798
+ /**
1799
+ * The country name of the address.
1800
+ */
1801
+ country?: string;
1802
+ /**
1803
+ * The first line of the address (e.g., street, PO Box, or company name).
1804
+ *
1805
+ * Maximum length: 41 characters.
1806
+ */
1807
+ line1?: string;
1808
+ /**
1809
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1810
+ * building).
1811
+ *
1812
+ * Maximum length: 41 characters.
1813
+ */
1814
+ line2?: string;
1815
+ /**
1816
+ * The third line of the address, if needed.
1817
+ *
1818
+ * Maximum length: 41 characters.
1819
+ */
1820
+ line3?: string;
1821
+ /**
1822
+ * The fourth line of the address, if needed.
1823
+ *
1824
+ * Maximum length: 41 characters.
1825
+ */
1826
+ line4?: string;
1827
+ /**
1828
+ * The fifth line of the address, if needed.
1829
+ *
1830
+ * Maximum length: 41 characters.
1831
+ */
1832
+ line5?: string;
1833
+ /**
1834
+ * A note written at the bottom of the address in the form in which it appears,
1835
+ * such as the invoice form.
1836
+ */
1837
+ note?: string;
1838
+ /**
1839
+ * The postal code or ZIP code of the address.
1840
+ *
1841
+ * Maximum length: 13 characters.
1842
+ */
1843
+ postalCode?: string;
1844
+ /**
1845
+ * The state, county, province, or region name of the address.
1846
+ *
1847
+ * Maximum length: 21 characters.
1848
+ */
1849
+ state?: string;
1850
+ }
1851
+ }
1852
+ export interface PurchaseOrderRetrieveParams {
1853
+ /**
1854
+ * The ID of the End-User to receive this request.
1855
+ */
1856
+ conductorEndUserId: string;
1857
+ }
1858
+ export interface PurchaseOrderUpdateParams {
1859
+ /**
1860
+ * Body param: The current QuickBooks-assigned revision number of the purchase
1861
+ * order object you are updating, which you can get by fetching the object first.
1862
+ * Provide the most recent `revisionNumber` to ensure you're working with the
1863
+ * latest data; otherwise, the update will return an error.
1864
+ */
1865
+ revisionNumber: string;
1866
+ /**
1867
+ * Header param: The ID of the End-User to receive this request.
1868
+ */
1869
+ conductorEndUserId: string;
1870
+ /**
1871
+ * Body param: The purchase order's class. Classes can be used to categorize
1872
+ * objects into meaningful segments, such as department, location, or type of work.
1873
+ * In QuickBooks, class tracking is off by default. A class defined here is
1874
+ * automatically used in this purchase order's line items unless overridden at the
1875
+ * line item level.
1876
+ */
1877
+ classId?: string;
1878
+ /**
1879
+ * Body param: The predefined template in QuickBooks that determines the layout and
1880
+ * formatting for this purchase order when printed or displayed.
1881
+ */
1882
+ documentTemplateId?: string;
1883
+ /**
1884
+ * Body param: The date by which this purchase order must be paid, in ISO 8601
1885
+ * format (YYYY-MM-DD).
1886
+ */
1887
+ dueDate?: string;
1888
+ /**
1889
+ * Body param: The market exchange rate between this purchase order's currency and
1890
+ * the home currency in QuickBooks at the time of this transaction. Represented as
1891
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
1892
+ * currency).
1893
+ */
1894
+ exchangeRate?: number;
1895
+ /**
1896
+ * Body param: The date on which shipment of this purchase order is expected to be
1897
+ * completed, in ISO 8601 format (YYYY-MM-DD).
1898
+ */
1899
+ expectedDate?: string;
1900
+ /**
1901
+ * Body param: The site location where inventory for the item associated with this
1902
+ * purchase order is stored.
1903
+ */
1904
+ inventorySiteId?: string;
1905
+ /**
1906
+ * Body param: Indicates whether this purchase order has been manually marked as
1907
+ * closed, even if all items have not been received or the sale has not been
1908
+ * cancelled. Once the purchase order is marked as closed, all of its line items
1909
+ * become closed as well. You cannot change `isManuallyClosed` to `false` after the
1910
+ * purchase order has been fully received.
1911
+ */
1912
+ isManuallyClosed?: boolean;
1913
+ /**
1914
+ * Body param: Indicates whether this purchase order is included in the queue of
1915
+ * documents for QuickBooks to email to the customer.
1916
+ */
1917
+ isQueuedForEmail?: boolean;
1918
+ /**
1919
+ * Body param: Indicates whether this purchase order is included in the queue of
1920
+ * documents for QuickBooks to print.
1921
+ */
1922
+ isQueuedForPrint?: boolean;
1923
+ /**
1924
+ * Body param: The purchase order's line item groups, each representing a
1925
+ * predefined set of related items.
1926
+ *
1927
+ * **IMPORTANT**:
1928
+ *
1929
+ * 1. Including this array in your update request will **REPLACE** all existing
1930
+ * line item groups for the purchase order with this array. To keep any existing
1931
+ * line item groups, you must include them in this array even if they have not
1932
+ * changed. **Any line item groups not included will be removed.**
1933
+ *
1934
+ * 2. To add a new line item group, include it here with the `id` field set to
1935
+ * `-1`.
1936
+ *
1937
+ * 3. If you do not wish to modify any line item groups, omit this field entirely
1938
+ * to keep them unchanged.
1939
+ */
1940
+ lineGroups?: Array<PurchaseOrderUpdateParams.LineGroup>;
1941
+ /**
1942
+ * Body param: The purchase order's line items, each representing a single product
1943
+ * or service ordered.
1944
+ *
1945
+ * **IMPORTANT**:
1946
+ *
1947
+ * 1. Including this array in your update request will **REPLACE** all existing
1948
+ * line items for the purchase order with this array. To keep any existing line
1949
+ * items, you must include them in this array even if they have not changed.
1950
+ * **Any line items not included will be removed.**
1951
+ *
1952
+ * 2. To add a new line item, include it here with the `id` field set to `-1`.
1953
+ *
1954
+ * 3. If you do not wish to modify any line items, omit this field entirely to keep
1955
+ * them unchanged.
1956
+ */
1957
+ lines?: Array<PurchaseOrderUpdateParams.Line>;
1958
+ /**
1959
+ * Body param: A memo or note for this purchase order that appears in reports, but
1960
+ * not on the purchase order.
1961
+ */
1962
+ memo?: string;
1963
+ /**
1964
+ * Body param: A built-in custom field for additional information specific to this
1965
+ * purchase order. Unlike the user-defined fields in the `customFields` array, this
1966
+ * is a standard QuickBooks field that exists for all purchase orders for
1967
+ * convenience. Developers often use this field for tracking information that
1968
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
1969
+ * QuickBooks UI.
1970
+ */
1971
+ otherCustomField1?: string;
1972
+ /**
1973
+ * Body param: A second built-in custom field for additional information specific
1974
+ * to this purchase order. Unlike the user-defined fields in the `customFields`
1975
+ * array, this is a standard QuickBooks field that exists for all purchase orders
1976
+ * for convenience. Like `otherCustomField1`, developers often use this field for
1977
+ * tracking information that doesn't fit into other standard QuickBooks fields.
1978
+ * Hidden by default in the QuickBooks UI.
1979
+ */
1980
+ otherCustomField2?: string;
1981
+ /**
1982
+ * Body param: The case-sensitive user-defined reference number for this purchase
1983
+ * order, which can be used to identify the transaction in QuickBooks. This value
1984
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
1985
+ * user.
1986
+ */
1987
+ refNumber?: string;
1988
+ /**
1989
+ * Body param: The sales-tax code for this purchase order, determining whether it
1990
+ * is taxable or non-taxable. If set, this overrides any sales-tax codes defined on
1991
+ * the vendor. This can be overridden on the purchase order's individual lines.
1992
+ *
1993
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1994
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1995
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1996
+ * non-taxable code to all sales.
1997
+ */
1998
+ salesTaxCodeId?: string;
1999
+ /**
2000
+ * Body param: The origin location from where the product associated with this
2001
+ * purchase order is shipped. This is the point at which ownership and liability
2002
+ * for goods transfer from seller to buyer. Internally, QuickBooks uses the term
2003
+ * "FOB" for this field, which stands for "freight on board". This field is
2004
+ * informational and has no accounting implications.
2005
+ */
2006
+ shipmentOrigin?: string;
2007
+ /**
2008
+ * Body param: The purchase order's shipping address.
2009
+ */
2010
+ shippingAddress?: PurchaseOrderUpdateParams.ShippingAddress;
2011
+ /**
2012
+ * Body param: The shipping method used for this purchase order, such as standard
2013
+ * mail or overnight delivery.
2014
+ */
2015
+ shippingMethodId?: string;
2016
+ /**
2017
+ * Body param: The customer, vendor, employee, or other entity to whom this
2018
+ * purchase order is to be shipped.
2019
+ */
2020
+ shipToEntityId?: string;
2021
+ /**
2022
+ * Body param: The purchase order's payment terms, defining when payment is due and
2023
+ * any applicable discounts.
2024
+ */
2025
+ termsId?: string;
2026
+ /**
2027
+ * Body param: The date of this purchase order, in ISO 8601 format (YYYY-MM-DD).
2028
+ */
2029
+ transactionDate?: string;
2030
+ /**
2031
+ * Body param: The address of the vendor who sent this purchase order.
2032
+ */
2033
+ vendorAddress?: PurchaseOrderUpdateParams.VendorAddress;
2034
+ /**
2035
+ * Body param: The vendor who sent this purchase order for goods or services
2036
+ * purchased.
2037
+ */
2038
+ vendorId?: string;
2039
+ /**
2040
+ * Body param: A message to be printed on this purchase order for the vendor to
2041
+ * read.
2042
+ */
2043
+ vendorMessage?: string;
2044
+ }
2045
+ export declare namespace PurchaseOrderUpdateParams {
2046
+ interface LineGroup {
2047
+ /**
2048
+ * The QuickBooks-assigned unique identifier of an existing purchase order line
2049
+ * group you wish to retain or update.
2050
+ *
2051
+ * **IMPORTANT**: Set this field to `-1` for new purchase order line groups you
2052
+ * wish to add.
2053
+ */
2054
+ id: string;
2055
+ /**
2056
+ * The purchase order line group's item group, representing a predefined set of
2057
+ * items bundled because they are commonly purchased together or grouped for faster
2058
+ * entry.
2059
+ */
2060
+ itemGroupId?: string;
2061
+ /**
2062
+ * The purchase order line group's line items, each representing a single product
2063
+ * or service ordered.
2064
+ *
2065
+ * **IMPORTANT**:
2066
+ *
2067
+ * 1. Including this array in your update request will **REPLACE** all existing
2068
+ * line items for the purchase order line group with this array. To keep any
2069
+ * existing line items, you must include them in this array even if they have
2070
+ * not changed. **Any line items not included will be removed.**
2071
+ *
2072
+ * 2. To add a new line item, include it here with the `id` field set to `-1`.
2073
+ *
2074
+ * 3. If you do not wish to modify any line items, omit this field entirely to keep
2075
+ * them unchanged.
2076
+ */
2077
+ lines?: Array<LineGroup.Line>;
2078
+ /**
2079
+ * Specifies an alternative unit-of-measure set when updating this purchase order
2080
+ * line group's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows
2081
+ * you to select units from a different set than the item's default unit-of-measure
2082
+ * set, which remains unchanged on the item itself. The override applies only to
2083
+ * this specific line. For example, you can sell an item typically measured in
2084
+ * volume units using weight units in a specific transaction by specifying a
2085
+ * different unit-of-measure set with this field.
2086
+ */
2087
+ overrideUnitOfMeasureSetId?: string;
2088
+ /**
2089
+ * The quantity of the item group associated with this purchase order line group.
2090
+ * This field cannot be cleared.
2091
+ *
2092
+ * **NOTE**: Do not use this field if the associated item group is a discount item
2093
+ * group.
2094
+ */
2095
+ quantity?: number;
2096
+ /**
2097
+ * The unit-of-measure used for the `quantity` in this purchase order line group.
2098
+ * Must be a valid unit within the item's available units of measure.
2099
+ */
2100
+ unitOfMeasure?: string;
2101
+ }
2102
+ namespace LineGroup {
2103
+ interface Line {
2104
+ /**
2105
+ * The QuickBooks-assigned unique identifier of an existing purchase order line you
2106
+ * wish to retain or update.
2107
+ *
2108
+ * **IMPORTANT**: Set this field to `-1` for new purchase order lines you wish to
2109
+ * add.
2110
+ */
2111
+ id: string;
2112
+ /**
2113
+ * The monetary amount of this purchase order line, represented as a decimal
2114
+ * string. If both `quantity` and `rate` are specified but not `amount`, QuickBooks
2115
+ * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
2116
+ * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
2117
+ * `1` and the suggested `rate`. This field cannot be cleared.
2118
+ */
2119
+ amount?: string;
2120
+ /**
2121
+ * The purchase order line's class. Classes can be used to categorize objects into
2122
+ * meaningful segments, such as department, location, or type of work. In
2123
+ * QuickBooks, class tracking is off by default. If a class is specified for the
2124
+ * entire parent transaction, it is automatically applied to all purchase order
2125
+ * lines unless overridden here, at the transaction line level.
2126
+ */
2127
+ classId?: string;
2128
+ /**
2129
+ * A description of this purchase order line.
2130
+ */
2131
+ description?: string;
2132
+ /**
2133
+ * The specific location (e.g., bin or shelf) within the inventory site where the
2134
+ * item associated with this purchase order line is stored.
2135
+ */
2136
+ inventorySiteLocationId?: string;
2137
+ /**
2138
+ * Indicates whether this purchase order line has been manually marked as closed,
2139
+ * even if this item has not been received or its sale has not been cancelled. If
2140
+ * all the purchase order lines are marked as closed, the purchase order itself is
2141
+ * marked as closed as well. You cannot change `isManuallyClosed` to `false` after
2142
+ * the purchase order line has been fully received.
2143
+ */
2144
+ isManuallyClosed?: boolean;
2145
+ /**
2146
+ * The item associated with this purchase order line. This can refer to any good or
2147
+ * service that the business buys or sells, including item types such as a service
2148
+ * item, inventory item, or special calculation item like a discount item or
2149
+ * sales-tax item.
2150
+ */
2151
+ itemId?: string;
2152
+ /**
2153
+ * A built-in custom field for additional information specific to this purchase
2154
+ * order line. Unlike the user-defined fields in the `customFields` array, this is
2155
+ * a standard QuickBooks field that exists for all purchase order lines for
2156
+ * convenience. Developers often use this field for tracking information that
2157
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
2158
+ * QuickBooks UI.
2159
+ */
2160
+ otherCustomField1?: string;
2161
+ /**
2162
+ * A second built-in custom field for additional information specific to this
2163
+ * purchase order line. Unlike the user-defined fields in the `customFields` array,
2164
+ * this is a standard QuickBooks field that exists for all purchase order lines for
2165
+ * convenience. Like `otherCustomField1`, developers often use this field for
2166
+ * tracking information that doesn't fit into other standard QuickBooks fields.
2167
+ * Hidden by default in the QuickBooks UI.
2168
+ */
2169
+ otherCustomField2?: string;
2170
+ /**
2171
+ * The account to use for this purchase order line, overriding the default account
2172
+ * associated with the item.
2173
+ */
2174
+ overrideItemAccountId?: string;
2175
+ /**
2176
+ * Specifies an alternative unit-of-measure set when updating this purchase order
2177
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
2178
+ * select units from a different set than the item's default unit-of-measure set,
2179
+ * which remains unchanged on the item itself. The override applies only to this
2180
+ * specific line. For example, you can sell an item typically measured in volume
2181
+ * units using weight units in a specific transaction by specifying a different
2182
+ * unit-of-measure set with this field.
2183
+ */
2184
+ overrideUnitOfMeasureSetId?: string;
2185
+ /**
2186
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
2187
+ * expense's vendor (not the customer). If `account` refers to any other type of
2188
+ * account, `payee` refers to the expense's customer (not the vendor).
2189
+ */
2190
+ payeeId?: string;
2191
+ /**
2192
+ * The quantity of the item associated with this purchase order line. This field
2193
+ * cannot be cleared.
2194
+ *
2195
+ * **NOTE**: Do not use this field if the associated item is a discount item.
2196
+ */
2197
+ quantity?: number;
2198
+ /**
2199
+ * The price per unit for this purchase order line. If both `rate` and `amount` are
2200
+ * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
2201
+ * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
2202
+ * decimal string. This field cannot be cleared.
2203
+ */
2204
+ rate?: string;
2205
+ /**
2206
+ * The sales-tax code for this purchase order line, determining whether it is
2207
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
2208
+ * the parent transaction or the associated item.
2209
+ *
2210
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
2211
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
2212
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
2213
+ * non-taxable code to all sales.
2214
+ */
2215
+ salesTaxCodeId?: string;
2216
+ /**
2217
+ * The date on which the service for this purchase order line was or will be
2218
+ * performed, in ISO 8601 format (YYYY-MM-DD). This is particularly relevant for
2219
+ * service items.
2220
+ */
2221
+ serviceDate?: string;
2222
+ /**
2223
+ * The purchase order line's stock keeping unit (SKU), which is sometimes the
2224
+ * manufacturer's part number.
2225
+ */
2226
+ sku?: string;
2227
+ /**
2228
+ * The unit-of-measure used for the `quantity` in this purchase order line. Must be
2229
+ * a valid unit within the item's available units of measure.
2230
+ */
2231
+ unitOfMeasure?: string;
2232
+ }
2233
+ }
2234
+ interface Line {
2235
+ /**
2236
+ * The QuickBooks-assigned unique identifier of an existing purchase order line you
2237
+ * wish to retain or update.
2238
+ *
2239
+ * **IMPORTANT**: Set this field to `-1` for new purchase order lines you wish to
2240
+ * add.
2241
+ */
2242
+ id: string;
2243
+ /**
2244
+ * The monetary amount of this purchase order line, represented as a decimal
2245
+ * string. If both `quantity` and `rate` are specified but not `amount`, QuickBooks
2246
+ * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
2247
+ * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
2248
+ * `1` and the suggested `rate`. This field cannot be cleared.
2249
+ */
2250
+ amount?: string;
2251
+ /**
2252
+ * The purchase order line's class. Classes can be used to categorize objects into
2253
+ * meaningful segments, such as department, location, or type of work. In
2254
+ * QuickBooks, class tracking is off by default. If a class is specified for the
2255
+ * entire parent transaction, it is automatically applied to all purchase order
2256
+ * lines unless overridden here, at the transaction line level.
2257
+ */
2258
+ classId?: string;
2259
+ /**
2260
+ * A description of this purchase order line.
2261
+ */
2262
+ description?: string;
2263
+ /**
2264
+ * The specific location (e.g., bin or shelf) within the inventory site where the
2265
+ * item associated with this purchase order line is stored.
2266
+ */
2267
+ inventorySiteLocationId?: string;
2268
+ /**
2269
+ * Indicates whether this purchase order line has been manually marked as closed,
2270
+ * even if this item has not been received or its sale has not been cancelled. If
2271
+ * all the purchase order lines are marked as closed, the purchase order itself is
2272
+ * marked as closed as well. You cannot change `isManuallyClosed` to `false` after
2273
+ * the purchase order line has been fully received.
2274
+ */
2275
+ isManuallyClosed?: boolean;
2276
+ /**
2277
+ * The item associated with this purchase order line. This can refer to any good or
2278
+ * service that the business buys or sells, including item types such as a service
2279
+ * item, inventory item, or special calculation item like a discount item or
2280
+ * sales-tax item.
2281
+ */
2282
+ itemId?: string;
2283
+ /**
2284
+ * A built-in custom field for additional information specific to this purchase
2285
+ * order line. Unlike the user-defined fields in the `customFields` array, this is
2286
+ * a standard QuickBooks field that exists for all purchase order lines for
2287
+ * convenience. Developers often use this field for tracking information that
2288
+ * doesn't fit into other standard QuickBooks fields. Hidden by default in the
2289
+ * QuickBooks UI.
2290
+ */
2291
+ otherCustomField1?: string;
2292
+ /**
2293
+ * A second built-in custom field for additional information specific to this
2294
+ * purchase order line. Unlike the user-defined fields in the `customFields` array,
2295
+ * this is a standard QuickBooks field that exists for all purchase order lines for
2296
+ * convenience. Like `otherCustomField1`, developers often use this field for
2297
+ * tracking information that doesn't fit into other standard QuickBooks fields.
2298
+ * Hidden by default in the QuickBooks UI.
2299
+ */
2300
+ otherCustomField2?: string;
2301
+ /**
2302
+ * The account to use for this purchase order line, overriding the default account
2303
+ * associated with the item.
2304
+ */
2305
+ overrideItemAccountId?: string;
2306
+ /**
2307
+ * Specifies an alternative unit-of-measure set when updating this purchase order
2308
+ * line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
2309
+ * select units from a different set than the item's default unit-of-measure set,
2310
+ * which remains unchanged on the item itself. The override applies only to this
2311
+ * specific line. For example, you can sell an item typically measured in volume
2312
+ * units using weight units in a specific transaction by specifying a different
2313
+ * unit-of-measure set with this field.
2314
+ */
2315
+ overrideUnitOfMeasureSetId?: string;
2316
+ /**
2317
+ * If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
2318
+ * expense's vendor (not the customer). If `account` refers to any other type of
2319
+ * account, `payee` refers to the expense's customer (not the vendor).
2320
+ */
2321
+ payeeId?: string;
2322
+ /**
2323
+ * The quantity of the item associated with this purchase order line. This field
2324
+ * cannot be cleared.
2325
+ *
2326
+ * **NOTE**: Do not use this field if the associated item is a discount item.
2327
+ */
2328
+ quantity?: number;
2329
+ /**
2330
+ * The price per unit for this purchase order line. If both `rate` and `amount` are
2331
+ * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
2332
+ * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
2333
+ * decimal string. This field cannot be cleared.
2334
+ */
2335
+ rate?: string;
2336
+ /**
2337
+ * The sales-tax code for this purchase order line, determining whether it is
2338
+ * taxable or non-taxable. If set, this overrides any sales-tax codes defined on
2339
+ * the parent transaction or the associated item.
2340
+ *
2341
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
2342
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
2343
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
2344
+ * non-taxable code to all sales.
2345
+ */
2346
+ salesTaxCodeId?: string;
2347
+ /**
2348
+ * The date on which the service for this purchase order line was or will be
2349
+ * performed, in ISO 8601 format (YYYY-MM-DD). This is particularly relevant for
2350
+ * service items.
2351
+ */
2352
+ serviceDate?: string;
2353
+ /**
2354
+ * The purchase order line's stock keeping unit (SKU), which is sometimes the
2355
+ * manufacturer's part number.
2356
+ */
2357
+ sku?: string;
2358
+ /**
2359
+ * The unit-of-measure used for the `quantity` in this purchase order line. Must be
2360
+ * a valid unit within the item's available units of measure.
2361
+ */
2362
+ unitOfMeasure?: string;
2363
+ }
2364
+ /**
2365
+ * The purchase order's shipping address.
2366
+ */
2367
+ interface ShippingAddress {
2368
+ /**
2369
+ * The city, district, suburb, town, or village name of the address.
2370
+ *
2371
+ * Maximum length: 31 characters.
2372
+ */
2373
+ city?: string;
2374
+ /**
2375
+ * The country name of the address.
2376
+ */
2377
+ country?: string;
2378
+ /**
2379
+ * The first line of the address (e.g., street, PO Box, or company name).
2380
+ *
2381
+ * Maximum length: 41 characters.
2382
+ */
2383
+ line1?: string;
2384
+ /**
2385
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
2386
+ * building).
2387
+ *
2388
+ * Maximum length: 41 characters.
2389
+ */
2390
+ line2?: string;
2391
+ /**
2392
+ * The third line of the address, if needed.
2393
+ *
2394
+ * Maximum length: 41 characters.
2395
+ */
2396
+ line3?: string;
2397
+ /**
2398
+ * The fourth line of the address, if needed.
2399
+ *
2400
+ * Maximum length: 41 characters.
2401
+ */
2402
+ line4?: string;
2403
+ /**
2404
+ * The fifth line of the address, if needed.
2405
+ *
2406
+ * Maximum length: 41 characters.
2407
+ */
2408
+ line5?: string;
2409
+ /**
2410
+ * A note written at the bottom of the address in the form in which it appears,
2411
+ * such as the invoice form.
2412
+ */
2413
+ note?: string;
2414
+ /**
2415
+ * The postal code or ZIP code of the address.
2416
+ *
2417
+ * Maximum length: 13 characters.
2418
+ */
2419
+ postalCode?: string;
2420
+ /**
2421
+ * The state, county, province, or region name of the address.
2422
+ *
2423
+ * Maximum length: 21 characters.
2424
+ */
2425
+ state?: string;
2426
+ }
2427
+ /**
2428
+ * The address of the vendor who sent this purchase order.
2429
+ */
2430
+ interface VendorAddress {
2431
+ /**
2432
+ * The city, district, suburb, town, or village name of the address.
2433
+ *
2434
+ * Maximum length: 31 characters.
2435
+ */
2436
+ city?: string;
2437
+ /**
2438
+ * The country name of the address.
2439
+ */
2440
+ country?: string;
2441
+ /**
2442
+ * The first line of the address (e.g., street, PO Box, or company name).
2443
+ *
2444
+ * Maximum length: 41 characters.
2445
+ */
2446
+ line1?: string;
2447
+ /**
2448
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
2449
+ * building).
2450
+ *
2451
+ * Maximum length: 41 characters.
2452
+ */
2453
+ line2?: string;
2454
+ /**
2455
+ * The third line of the address, if needed.
2456
+ *
2457
+ * Maximum length: 41 characters.
2458
+ */
2459
+ line3?: string;
2460
+ /**
2461
+ * The fourth line of the address, if needed.
2462
+ *
2463
+ * Maximum length: 41 characters.
2464
+ */
2465
+ line4?: string;
2466
+ /**
2467
+ * The fifth line of the address, if needed.
2468
+ *
2469
+ * Maximum length: 41 characters.
2470
+ */
2471
+ line5?: string;
2472
+ /**
2473
+ * A note written at the bottom of the address in the form in which it appears,
2474
+ * such as the invoice form.
2475
+ */
2476
+ note?: string;
2477
+ /**
2478
+ * The postal code or ZIP code of the address.
2479
+ *
2480
+ * Maximum length: 13 characters.
2481
+ */
2482
+ postalCode?: string;
2483
+ /**
2484
+ * The state, county, province, or region name of the address.
2485
+ *
2486
+ * Maximum length: 21 characters.
2487
+ */
2488
+ state?: string;
2489
+ }
2490
+ }
2491
+ export interface PurchaseOrderListParams extends CursorPageParams {
2492
+ /**
2493
+ * Header param: The ID of the End-User to receive this request.
2494
+ */
2495
+ conductorEndUserId: string;
2496
+ /**
2497
+ * Query param: Filter for purchase orders associated with these accounts.
2498
+ */
2499
+ accountIds?: Array<string>;
2500
+ /**
2501
+ * Query param: Filter for purchase orders in these currencies.
2502
+ */
2503
+ currencyIds?: Array<string>;
2504
+ /**
2505
+ * Query param: Filter for specific purchase orders by their QuickBooks-assigned
2506
+ * unique identifier(s).
2507
+ *
2508
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2509
+ * query parameters for this request.
2510
+ *
2511
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2512
+ * request will return an error.
2513
+ */
2514
+ ids?: Array<string>;
2515
+ /**
2516
+ * Query param: Whether to include line items in the response. Defaults to `true`.
2517
+ */
2518
+ includeLineItems?: boolean;
2519
+ /**
2520
+ * Query param: Whether to include linked transactions in the response. Defaults to
2521
+ * `false`. For example, a payment linked to the corresponding purchase order.
2522
+ */
2523
+ includeLinkedTransactions?: boolean;
2524
+ /**
2525
+ * Query param: Filter for purchase orders whose `refNumber` contains this
2526
+ * substring.
2527
+ *
2528
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberStartsWith`
2529
+ * or `refNumberEndsWith`.
2530
+ */
2531
+ refNumberContains?: string;
2532
+ /**
2533
+ * Query param: Filter for purchase orders whose `refNumber` ends with this
2534
+ * substring.
2535
+ *
2536
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
2537
+ * `refNumberStartsWith`.
2538
+ */
2539
+ refNumberEndsWith?: string;
2540
+ /**
2541
+ * Query param: Filter for purchase orders whose `refNumber` is greater than or
2542
+ * equal to this value. If omitted, the range will begin with the first number of
2543
+ * the list. Uses a numerical comparison for values that contain only digits;
2544
+ * otherwise, uses a lexicographical comparison.
2545
+ */
2546
+ refNumberFrom?: string;
2547
+ /**
2548
+ * Query param: Filter for specific purchase orders by their ref-number(s),
2549
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
2550
+ * be arbitrarily changed by the QuickBooks user.
2551
+ *
2552
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2553
+ * query parameters for this request.
2554
+ *
2555
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2556
+ * request will return an error.
2557
+ */
2558
+ refNumbers?: Array<string>;
2559
+ /**
2560
+ * Query param: Filter for purchase orders whose `refNumber` starts with this
2561
+ * substring.
2562
+ *
2563
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
2564
+ * `refNumberEndsWith`.
2565
+ */
2566
+ refNumberStartsWith?: string;
2567
+ /**
2568
+ * Query param: Filter for purchase orders whose `refNumber` is less than or equal
2569
+ * to this value. If omitted, the range will end with the last number of the list.
2570
+ * Uses a numerical comparison for values that contain only digits; otherwise, uses
2571
+ * a lexicographical comparison.
2572
+ */
2573
+ refNumberTo?: string;
2574
+ /**
2575
+ * Query param: Filter for purchase orders whose `date` field is on or after this
2576
+ * date, in ISO 8601 format (YYYY-MM-DD).
2577
+ *
2578
+ * **NOTE:** QuickBooks Desktop interprets this date as the **start of the
2579
+ * specified day** in the local timezone of the end-user's computer (e.g.,
2580
+ * `2025-01-01` → `2025-01-01T00:00:00`).
2581
+ */
2582
+ transactionDateFrom?: string;
2583
+ /**
2584
+ * Query param: Filter for purchase orders whose `date` field is on or before this
2585
+ * date, in ISO 8601 format (YYYY-MM-DD).
2586
+ *
2587
+ * **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
2588
+ * day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
2589
+ * `2025-01-01T23:59:59`).
2590
+ */
2591
+ transactionDateTo?: string;
2592
+ /**
2593
+ * Query param: Filter for purchase orders updated on or after this date/time.
2594
+ * Accepts the following ISO 8601 formats:
2595
+ *
2596
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
2597
+ * **start of the specified day** in the local timezone of the end-user's
2598
+ * computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
2599
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
2600
+ * interprets the timestamp in the local timezone of the end-user's computer.
2601
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
2602
+ * interprets the timestamp using the specified timezone.
2603
+ */
2604
+ updatedAfter?: string;
2605
+ /**
2606
+ * Query param: Filter for purchase orders updated on or before this date/time.
2607
+ * Accepts the following ISO 8601 formats:
2608
+ *
2609
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
2610
+ * **end of the specified day** in the local timezone of the end-user's computer
2611
+ * (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
2612
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
2613
+ * interprets the timestamp in the local timezone of the end-user's computer.
2614
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
2615
+ * interprets the timestamp using the specified timezone.
2616
+ */
2617
+ updatedBefore?: string;
2618
+ /**
2619
+ * Query param: Filter for purchase orders sent to these vendors.
2620
+ */
2621
+ vendorIds?: Array<string>;
2622
+ }
2623
+ export interface PurchaseOrderDeleteParams {
2624
+ /**
2625
+ * The ID of the End-User to receive this request.
2626
+ */
2627
+ conductorEndUserId: string;
2628
+ }
2629
+ export declare namespace PurchaseOrders {
2630
+ export { type PurchaseOrder as PurchaseOrder, type PurchaseOrderDeleteResponse as PurchaseOrderDeleteResponse, type PurchaseOrdersCursorPage as PurchaseOrdersCursorPage, type PurchaseOrderCreateParams as PurchaseOrderCreateParams, type PurchaseOrderRetrieveParams as PurchaseOrderRetrieveParams, type PurchaseOrderUpdateParams as PurchaseOrderUpdateParams, type PurchaseOrderListParams as PurchaseOrderListParams, type PurchaseOrderDeleteParams as PurchaseOrderDeleteParams, };
2631
+ }
2632
+ //# sourceMappingURL=purchase-orders.d.mts.map