conductor-node 11.10.0 → 12.0.0-beta.1

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 (510) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +201 -21
  3. package/README.md +330 -63
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +121 -0
  87. package/index.d.ts +121 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +133 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/internal/qs/formats.d.ts +6 -0
  94. package/internal/qs/formats.d.ts.map +1 -0
  95. package/internal/qs/formats.js +11 -0
  96. package/internal/qs/formats.js.map +1 -0
  97. package/internal/qs/formats.mjs +8 -0
  98. package/internal/qs/formats.mjs.map +1 -0
  99. package/internal/qs/index.d.ts +10 -0
  100. package/internal/qs/index.d.ts.map +1 -0
  101. package/internal/qs/index.js +14 -0
  102. package/internal/qs/index.js.map +1 -0
  103. package/internal/qs/index.mjs +10 -0
  104. package/internal/qs/index.mjs.map +1 -0
  105. package/internal/qs/stringify.d.ts +3 -0
  106. package/internal/qs/stringify.d.ts.map +1 -0
  107. package/internal/qs/stringify.js +280 -0
  108. package/internal/qs/stringify.js.map +1 -0
  109. package/internal/qs/stringify.mjs +276 -0
  110. package/internal/qs/stringify.mjs.map +1 -0
  111. package/internal/qs/types.d.ts +57 -0
  112. package/internal/qs/types.d.ts.map +1 -0
  113. package/{dist/src/resources → internal/qs}/types.js +1 -0
  114. package/internal/qs/types.js.map +1 -0
  115. package/internal/qs/types.mjs +2 -0
  116. package/internal/qs/types.mjs.map +1 -0
  117. package/internal/qs/utils.d.ts +14 -0
  118. package/internal/qs/utils.d.ts.map +1 -0
  119. package/internal/qs/utils.js +229 -0
  120. package/internal/qs/utils.js.map +1 -0
  121. package/internal/qs/utils.mjs +217 -0
  122. package/internal/qs/utils.mjs.map +1 -0
  123. package/package.json +111 -35
  124. package/pagination.d.ts +18 -0
  125. package/pagination.d.ts.map +1 -0
  126. package/pagination.js +40 -0
  127. package/pagination.js.map +1 -0
  128. package/pagination.mjs +36 -0
  129. package/pagination.mjs.map +1 -0
  130. package/resource.d.ts +6 -0
  131. package/resource.d.ts.map +1 -0
  132. package/resource.js +11 -0
  133. package/resource.js.map +1 -0
  134. package/resource.mjs +7 -0
  135. package/resource.mjs.map +1 -0
  136. package/resources/auth-sessions.d.ts +79 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +23 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +19 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +154 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +48 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +44 -0
  147. package/resources/end-users.mjs.map +1 -0
  148. package/resources/index.d.ts +4 -0
  149. package/resources/index.d.ts.map +1 -0
  150. package/resources/index.js +11 -0
  151. package/resources/index.js.map +1 -0
  152. package/resources/index.mjs +5 -0
  153. package/resources/index.mjs.map +1 -0
  154. package/resources/qbd/accounts.d.ts +579 -0
  155. package/resources/qbd/accounts.d.ts.map +1 -0
  156. package/resources/qbd/accounts.js +54 -0
  157. package/resources/qbd/accounts.js.map +1 -0
  158. package/resources/qbd/accounts.mjs +50 -0
  159. package/resources/qbd/accounts.mjs.map +1 -0
  160. package/resources/qbd/bill-check-payments.d.ts +831 -0
  161. package/resources/qbd/bill-check-payments.d.ts.map +1 -0
  162. package/resources/qbd/bill-check-payments.js +70 -0
  163. package/resources/qbd/bill-check-payments.js.map +1 -0
  164. package/resources/qbd/bill-check-payments.mjs +65 -0
  165. package/resources/qbd/bill-check-payments.mjs.map +1 -0
  166. package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
  167. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
  168. package/resources/qbd/bill-credit-card-payments.js +55 -0
  169. package/resources/qbd/bill-credit-card-payments.js.map +1 -0
  170. package/resources/qbd/bill-credit-card-payments.mjs +50 -0
  171. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
  172. package/resources/qbd/bills.d.ts +2561 -0
  173. package/resources/qbd/bills.d.ts.map +1 -0
  174. package/resources/qbd/bills.js +69 -0
  175. package/resources/qbd/bills.js.map +1 -0
  176. package/resources/qbd/bills.mjs +64 -0
  177. package/resources/qbd/bills.mjs.map +1 -0
  178. package/resources/qbd/checks.d.ts +2528 -0
  179. package/resources/qbd/checks.d.ts.map +1 -0
  180. package/resources/qbd/checks.js +69 -0
  181. package/resources/qbd/checks.js.map +1 -0
  182. package/resources/qbd/checks.mjs +64 -0
  183. package/resources/qbd/checks.mjs.map +1 -0
  184. package/resources/qbd/classes.d.ts +289 -0
  185. package/resources/qbd/classes.d.ts.map +1 -0
  186. package/resources/qbd/classes.js +54 -0
  187. package/resources/qbd/classes.js.map +1 -0
  188. package/resources/qbd/classes.mjs +50 -0
  189. package/resources/qbd/classes.mjs.map +1 -0
  190. package/resources/qbd/credit-card-charges.d.ts +2236 -0
  191. package/resources/qbd/credit-card-charges.d.ts.map +1 -0
  192. package/resources/qbd/credit-card-charges.js +69 -0
  193. package/resources/qbd/credit-card-charges.js.map +1 -0
  194. package/resources/qbd/credit-card-charges.mjs +64 -0
  195. package/resources/qbd/credit-card-charges.mjs.map +1 -0
  196. package/resources/qbd/credit-card-credits.d.ts +2233 -0
  197. package/resources/qbd/credit-card-credits.d.ts.map +1 -0
  198. package/resources/qbd/credit-card-credits.js +69 -0
  199. package/resources/qbd/credit-card-credits.js.map +1 -0
  200. package/resources/qbd/credit-card-credits.mjs +64 -0
  201. package/resources/qbd/credit-card-credits.mjs.map +1 -0
  202. package/resources/qbd/credit-memos.d.ts +2649 -0
  203. package/resources/qbd/credit-memos.d.ts.map +1 -0
  204. package/resources/qbd/credit-memos.js +69 -0
  205. package/resources/qbd/credit-memos.js.map +1 -0
  206. package/resources/qbd/credit-memos.mjs +64 -0
  207. package/resources/qbd/credit-memos.mjs.map +1 -0
  208. package/resources/qbd/customers.d.ts +2106 -0
  209. package/resources/qbd/customers.d.ts.map +1 -0
  210. package/resources/qbd/customers.js +58 -0
  211. package/resources/qbd/customers.js.map +1 -0
  212. package/resources/qbd/customers.mjs +53 -0
  213. package/resources/qbd/customers.mjs.map +1 -0
  214. package/resources/qbd/date-driven-terms.d.ts +242 -0
  215. package/resources/qbd/date-driven-terms.d.ts.map +1 -0
  216. package/resources/qbd/date-driven-terms.js +43 -0
  217. package/resources/qbd/date-driven-terms.js.map +1 -0
  218. package/resources/qbd/date-driven-terms.mjs +39 -0
  219. package/resources/qbd/date-driven-terms.mjs.map +1 -0
  220. package/resources/qbd/discount-items.d.ts +576 -0
  221. package/resources/qbd/discount-items.d.ts.map +1 -0
  222. package/resources/qbd/discount-items.js +58 -0
  223. package/resources/qbd/discount-items.js.map +1 -0
  224. package/resources/qbd/discount-items.mjs +53 -0
  225. package/resources/qbd/discount-items.mjs.map +1 -0
  226. package/resources/qbd/employees.d.ts +1669 -0
  227. package/resources/qbd/employees.d.ts.map +1 -0
  228. package/resources/qbd/employees.js +58 -0
  229. package/resources/qbd/employees.js.map +1 -0
  230. package/resources/qbd/employees.mjs +53 -0
  231. package/resources/qbd/employees.mjs.map +1 -0
  232. package/resources/qbd/estimates.d.ts +2493 -0
  233. package/resources/qbd/estimates.d.ts.map +1 -0
  234. package/resources/qbd/estimates.js +69 -0
  235. package/resources/qbd/estimates.js.map +1 -0
  236. package/resources/qbd/estimates.mjs +64 -0
  237. package/resources/qbd/estimates.mjs.map +1 -0
  238. package/resources/qbd/index.d.ts +37 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +105 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +38 -0
  243. package/resources/qbd/index.mjs.map +1 -0
  244. package/resources/qbd/inventory-adjustments.d.ts +814 -0
  245. package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
  246. package/resources/qbd/inventory-adjustments.js +66 -0
  247. package/resources/qbd/inventory-adjustments.js.map +1 -0
  248. package/resources/qbd/inventory-adjustments.mjs +62 -0
  249. package/resources/qbd/inventory-adjustments.mjs.map +1 -0
  250. package/resources/qbd/inventory-assembly-items.d.ts +931 -0
  251. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
  252. package/resources/qbd/inventory-assembly-items.js +54 -0
  253. package/resources/qbd/inventory-assembly-items.js.map +1 -0
  254. package/resources/qbd/inventory-assembly-items.mjs +49 -0
  255. package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
  256. package/resources/qbd/inventory-items.d.ts +844 -0
  257. package/resources/qbd/inventory-items.d.ts.map +1 -0
  258. package/resources/qbd/inventory-items.js +58 -0
  259. package/resources/qbd/inventory-items.js.map +1 -0
  260. package/resources/qbd/inventory-items.mjs +53 -0
  261. package/resources/qbd/inventory-items.mjs.map +1 -0
  262. package/resources/qbd/inventory-sites.d.ts +477 -0
  263. package/resources/qbd/inventory-sites.d.ts.map +1 -0
  264. package/resources/qbd/inventory-sites.js +54 -0
  265. package/resources/qbd/inventory-sites.js.map +1 -0
  266. package/resources/qbd/inventory-sites.mjs +50 -0
  267. package/resources/qbd/inventory-sites.mjs.map +1 -0
  268. package/resources/qbd/invoices.d.ts +2873 -0
  269. package/resources/qbd/invoices.d.ts.map +1 -0
  270. package/resources/qbd/invoices.js +69 -0
  271. package/resources/qbd/invoices.js.map +1 -0
  272. package/resources/qbd/invoices.mjs +64 -0
  273. package/resources/qbd/invoices.mjs.map +1 -0
  274. package/resources/qbd/journal-entries.d.ts +856 -0
  275. package/resources/qbd/journal-entries.d.ts.map +1 -0
  276. package/resources/qbd/journal-entries.js +69 -0
  277. package/resources/qbd/journal-entries.js.map +1 -0
  278. package/resources/qbd/journal-entries.mjs +64 -0
  279. package/resources/qbd/journal-entries.mjs.map +1 -0
  280. package/resources/qbd/non-inventory-items.d.ts +950 -0
  281. package/resources/qbd/non-inventory-items.d.ts.map +1 -0
  282. package/resources/qbd/non-inventory-items.js +58 -0
  283. package/resources/qbd/non-inventory-items.js.map +1 -0
  284. package/resources/qbd/non-inventory-items.mjs +53 -0
  285. package/resources/qbd/non-inventory-items.mjs.map +1 -0
  286. package/resources/qbd/payroll-wage-items.d.ts +215 -0
  287. package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
  288. package/resources/qbd/payroll-wage-items.js +47 -0
  289. package/resources/qbd/payroll-wage-items.js.map +1 -0
  290. package/resources/qbd/payroll-wage-items.mjs +42 -0
  291. package/resources/qbd/payroll-wage-items.mjs.map +1 -0
  292. package/resources/qbd/purchase-orders.d.ts +2554 -0
  293. package/resources/qbd/purchase-orders.d.ts.map +1 -0
  294. package/resources/qbd/purchase-orders.js +69 -0
  295. package/resources/qbd/purchase-orders.js.map +1 -0
  296. package/resources/qbd/purchase-orders.mjs +64 -0
  297. package/resources/qbd/purchase-orders.mjs.map +1 -0
  298. package/resources/qbd/qbd.d.ts +146 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +202 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +175 -0
  303. package/resources/qbd/qbd.mjs.map +1 -0
  304. package/resources/qbd/receive-payments.d.ts +1282 -0
  305. package/resources/qbd/receive-payments.d.ts.map +1 -0
  306. package/resources/qbd/receive-payments.js +70 -0
  307. package/resources/qbd/receive-payments.js.map +1 -0
  308. package/resources/qbd/receive-payments.mjs +65 -0
  309. package/resources/qbd/receive-payments.mjs.map +1 -0
  310. package/resources/qbd/sales-orders.d.ts +2628 -0
  311. package/resources/qbd/sales-orders.d.ts.map +1 -0
  312. package/resources/qbd/sales-orders.js +69 -0
  313. package/resources/qbd/sales-orders.js.map +1 -0
  314. package/resources/qbd/sales-orders.mjs +64 -0
  315. package/resources/qbd/sales-orders.mjs.map +1 -0
  316. package/resources/qbd/sales-receipts.d.ts +3373 -0
  317. package/resources/qbd/sales-receipts.d.ts.map +1 -0
  318. package/resources/qbd/sales-receipts.js +69 -0
  319. package/resources/qbd/sales-receipts.js.map +1 -0
  320. package/resources/qbd/sales-receipts.mjs +64 -0
  321. package/resources/qbd/sales-receipts.mjs.map +1 -0
  322. package/resources/qbd/sales-representatives.d.ts +251 -0
  323. package/resources/qbd/sales-representatives.d.ts.map +1 -0
  324. package/resources/qbd/sales-representatives.js +54 -0
  325. package/resources/qbd/sales-representatives.js.map +1 -0
  326. package/resources/qbd/sales-representatives.mjs +50 -0
  327. package/resources/qbd/sales-representatives.mjs.map +1 -0
  328. package/resources/qbd/sales-tax-codes.d.ts +306 -0
  329. package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
  330. package/resources/qbd/sales-tax-codes.js +54 -0
  331. package/resources/qbd/sales-tax-codes.js.map +1 -0
  332. package/resources/qbd/sales-tax-codes.mjs +50 -0
  333. package/resources/qbd/sales-tax-codes.mjs.map +1 -0
  334. package/resources/qbd/sales-tax-items.d.ts +458 -0
  335. package/resources/qbd/sales-tax-items.d.ts.map +1 -0
  336. package/resources/qbd/sales-tax-items.js +58 -0
  337. package/resources/qbd/sales-tax-items.js.map +1 -0
  338. package/resources/qbd/sales-tax-items.mjs +53 -0
  339. package/resources/qbd/sales-tax-items.mjs.map +1 -0
  340. package/resources/qbd/service-items.d.ts +923 -0
  341. package/resources/qbd/service-items.d.ts.map +1 -0
  342. package/resources/qbd/service-items.js +58 -0
  343. package/resources/qbd/service-items.js.map +1 -0
  344. package/resources/qbd/service-items.mjs +53 -0
  345. package/resources/qbd/service-items.mjs.map +1 -0
  346. package/resources/qbd/standard-terms.d.ts +225 -0
  347. package/resources/qbd/standard-terms.d.ts.map +1 -0
  348. package/resources/qbd/standard-terms.js +43 -0
  349. package/resources/qbd/standard-terms.js.map +1 -0
  350. package/resources/qbd/standard-terms.mjs +39 -0
  351. package/resources/qbd/standard-terms.mjs.map +1 -0
  352. package/resources/qbd/subtotal-items.d.ts +323 -0
  353. package/resources/qbd/subtotal-items.d.ts.map +1 -0
  354. package/resources/qbd/subtotal-items.js +58 -0
  355. package/resources/qbd/subtotal-items.js.map +1 -0
  356. package/resources/qbd/subtotal-items.mjs +53 -0
  357. package/resources/qbd/subtotal-items.mjs.map +1 -0
  358. package/resources/qbd/transfers.d.ts +269 -0
  359. package/resources/qbd/transfers.d.ts.map +1 -0
  360. package/resources/qbd/transfers.js +58 -0
  361. package/resources/qbd/transfers.js.map +1 -0
  362. package/resources/qbd/transfers.mjs +53 -0
  363. package/resources/qbd/transfers.mjs.map +1 -0
  364. package/resources/qbd/vendor-credits.d.ts +2298 -0
  365. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  366. package/resources/qbd/vendor-credits.js +69 -0
  367. package/resources/qbd/vendor-credits.js.map +1 -0
  368. package/resources/qbd/vendor-credits.mjs +64 -0
  369. package/resources/qbd/vendor-credits.mjs.map +1 -0
  370. package/resources/qbd/vendors.d.ts +1677 -0
  371. package/resources/qbd/vendors.d.ts.map +1 -0
  372. package/resources/qbd/vendors.js +58 -0
  373. package/resources/qbd/vendors.js.map +1 -0
  374. package/resources/qbd/vendors.mjs +53 -0
  375. package/resources/qbd/vendors.mjs.map +1 -0
  376. package/shims/node.d.ts +30 -0
  377. package/shims/node.d.ts.map +1 -0
  378. package/shims/node.js +31 -0
  379. package/shims/node.js.map +1 -0
  380. package/shims/node.mjs +5 -0
  381. package/shims/node.mjs.map +1 -0
  382. package/shims/web.d.ts +26 -0
  383. package/shims/web.d.ts.map +1 -0
  384. package/shims/web.js +31 -0
  385. package/shims/web.js.map +1 -0
  386. package/shims/web.mjs +5 -0
  387. package/shims/web.mjs.map +1 -0
  388. package/src/_shims/MultipartBody.ts +9 -0
  389. package/src/_shims/README.md +46 -0
  390. package/src/_shims/auto/runtime-bun.ts +4 -0
  391. package/src/_shims/auto/runtime-node.ts +4 -0
  392. package/src/_shims/auto/runtime.ts +4 -0
  393. package/src/_shims/auto/types-node.ts +4 -0
  394. package/src/_shims/auto/types.d.ts +101 -0
  395. package/src/_shims/auto/types.js +3 -0
  396. package/src/_shims/auto/types.mjs +3 -0
  397. package/src/_shims/bun-runtime.ts +14 -0
  398. package/src/_shims/index.d.ts +81 -0
  399. package/src/_shims/index.js +13 -0
  400. package/src/_shims/index.mjs +7 -0
  401. package/src/_shims/manual-types.d.ts +12 -0
  402. package/src/_shims/manual-types.js +3 -0
  403. package/src/_shims/manual-types.mjs +3 -0
  404. package/src/_shims/node-runtime.ts +81 -0
  405. package/src/_shims/node-types.d.ts +42 -0
  406. package/src/_shims/node-types.js +3 -0
  407. package/src/_shims/node-types.mjs +3 -0
  408. package/src/_shims/registry.ts +67 -0
  409. package/src/_shims/web-runtime.ts +103 -0
  410. package/src/_shims/web-types.d.ts +83 -0
  411. package/src/_shims/web-types.js +3 -0
  412. package/src/_shims/web-types.mjs +3 -0
  413. package/src/core.ts +1208 -0
  414. package/src/error.ts +130 -0
  415. package/src/index.ts +227 -0
  416. package/src/internal/qs/LICENSE.md +13 -0
  417. package/src/internal/qs/README.md +3 -0
  418. package/src/internal/qs/formats.ts +9 -0
  419. package/src/internal/qs/index.ts +13 -0
  420. package/src/internal/qs/stringify.ts +388 -0
  421. package/src/internal/qs/types.ts +71 -0
  422. package/src/internal/qs/utils.ts +265 -0
  423. package/src/lib/.keep +4 -0
  424. package/src/pagination.ts +60 -0
  425. package/src/resource.ts +11 -0
  426. package/src/resources/auth-sessions.ts +99 -0
  427. package/src/resources/end-users.ts +216 -0
  428. package/src/resources/index.ts +14 -0
  429. package/src/resources/qbd/accounts.ts +797 -0
  430. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  431. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  432. package/src/resources/qbd/bills.ts +3039 -0
  433. package/src/resources/qbd/checks.ts +3003 -0
  434. package/src/resources/qbd/classes.ts +366 -0
  435. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  436. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  437. package/src/resources/qbd/credit-memos.ts +3157 -0
  438. package/src/resources/qbd/customers.ts +2518 -0
  439. package/src/resources/qbd/date-driven-terms.ts +314 -0
  440. package/src/resources/qbd/discount-items.ts +712 -0
  441. package/src/resources/qbd/employees.ts +2266 -0
  442. package/src/resources/qbd/estimates.ts +2975 -0
  443. package/src/resources/qbd/index.ts +346 -0
  444. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  445. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  446. package/src/resources/qbd/inventory-items.ts +1026 -0
  447. package/src/resources/qbd/inventory-sites.ts +605 -0
  448. package/src/resources/qbd/invoices.ts +3398 -0
  449. package/src/resources/qbd/journal-entries.ts +1051 -0
  450. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  451. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  452. package/src/resources/qbd/purchase-orders.ts +3045 -0
  453. package/src/resources/qbd/qbd.ts +876 -0
  454. package/src/resources/qbd/receive-payments.ts +1609 -0
  455. package/src/resources/qbd/sales-orders.ts +3141 -0
  456. package/src/resources/qbd/sales-receipts.ts +3977 -0
  457. package/src/resources/qbd/sales-representatives.ts +340 -0
  458. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  459. package/src/resources/qbd/sales-tax-items.ts +583 -0
  460. package/src/resources/qbd/service-items.ts +1105 -0
  461. package/src/resources/qbd/standard-terms.ts +295 -0
  462. package/src/resources/qbd/subtotal-items.ts +430 -0
  463. package/src/resources/qbd/transfers.ts +359 -0
  464. package/src/resources/qbd/vendor-credits.ts +2742 -0
  465. package/src/resources/qbd/vendors.ts +2017 -0
  466. package/src/shims/node.ts +50 -0
  467. package/src/shims/web.ts +50 -0
  468. package/src/tsconfig.json +11 -0
  469. package/src/uploads.ts +255 -0
  470. package/src/version.ts +1 -0
  471. package/uploads.d.ts +75 -0
  472. package/uploads.d.ts.map +1 -0
  473. package/uploads.js +171 -0
  474. package/uploads.js.map +1 -0
  475. package/uploads.mjs +158 -0
  476. package/uploads.mjs.map +1 -0
  477. package/version.d.ts +2 -0
  478. package/version.d.ts.map +1 -0
  479. package/version.js +5 -0
  480. package/version.js.map +1 -0
  481. package/version.mjs +2 -0
  482. package/version.mjs.map +1 -0
  483. package/dist/package.json +0 -48
  484. package/dist/src/Client.d.ts +0 -21
  485. package/dist/src/Client.js +0 -54
  486. package/dist/src/index.d.ts +0 -11
  487. package/dist/src/index.js +0 -59
  488. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  489. package/dist/src/integrations/BaseIntegration.js +0 -14
  490. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  491. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  492. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  493. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  494. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  495. package/dist/src/interceptors/errorHandling.js +0 -53
  496. package/dist/src/interceptors/logging.d.ts +0 -18
  497. package/dist/src/interceptors/logging.js +0 -70
  498. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  499. package/dist/src/resources/AuthSessionsResource.js +0 -26
  500. package/dist/src/resources/BaseResource.d.ts +0 -6
  501. package/dist/src/resources/BaseResource.js +0 -9
  502. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  503. package/dist/src/resources/EndUsersResource.js +0 -57
  504. package/dist/src/resources/types.d.ts +0 -40
  505. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  506. package/dist/src/utils/checkForUpdates.js +0 -62
  507. package/dist/src/utils/env.d.ts +0 -1
  508. package/dist/src/utils/env.js +0 -15
  509. package/dist/src/utils/error.d.ts +0 -184
  510. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,1677 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import { CursorPage, type CursorPageParams } from "../../pagination.js";
4
+ export declare class Vendors extends APIResource {
5
+ /**
6
+ * Creates a new vendor.
7
+ */
8
+ create(params: VendorCreateParams, options?: Core.RequestOptions): Core.APIPromise<Vendor>;
9
+ /**
10
+ * Retrieves a vendor by ID.
11
+ */
12
+ retrieve(id: string, params: VendorRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Vendor>;
13
+ /**
14
+ * Updates an existing vendor.
15
+ */
16
+ update(id: string, params: VendorUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Vendor>;
17
+ /**
18
+ * Returns a list of vendors. Use the `cursor` parameter to paginate through the
19
+ * results.
20
+ */
21
+ list(params: VendorListParams, options?: Core.RequestOptions): Core.PagePromise<VendorsCursorPage, Vendor>;
22
+ }
23
+ export declare class VendorsCursorPage extends CursorPage<Vendor> {
24
+ }
25
+ export interface Vendor {
26
+ /**
27
+ * The unique identifier assigned by QuickBooks to this vendor. This ID is unique
28
+ * across all vendors but not across different QuickBooks object types.
29
+ */
30
+ id: string;
31
+ /**
32
+ * The vendor's account number, which appears in the QuickBooks chart of accounts,
33
+ * reports, and graphs.
34
+ *
35
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
36
+ * the account number may not be visible in the user interface, but it can still be
37
+ * set and retrieved through the API.
38
+ */
39
+ accountNumber: string | null;
40
+ /**
41
+ * Additional alternate contacts for this vendor.
42
+ */
43
+ additionalContacts: Array<Vendor.AdditionalContact>;
44
+ /**
45
+ * Additional notes about this vendor.
46
+ */
47
+ additionalNotes: Array<Vendor.AdditionalNote>;
48
+ /**
49
+ * The name of a alternate contact person for this vendor.
50
+ */
51
+ alternateContact: string | null;
52
+ /**
53
+ * The vendor's alternate telephone number.
54
+ */
55
+ alternatePhone: string | null;
56
+ /**
57
+ * The current balance owed to this vendor, represented as a decimal string. A
58
+ * positive number indicates money owed to the vendor.
59
+ */
60
+ balance: string | null;
61
+ /**
62
+ * The vendor's billing address.
63
+ */
64
+ billingAddress: Vendor.BillingAddress | null;
65
+ /**
66
+ * The vendor's billing rate, used to override service item rates in time tracking
67
+ * transactions.
68
+ */
69
+ billingRate: Vendor.BillingRate | null;
70
+ /**
71
+ * An email address to carbon copy (CC) on communications with this vendor.
72
+ */
73
+ ccEmail: string | null;
74
+ /**
75
+ * The vendor's class. Classes can be used to categorize objects into meaningful
76
+ * segments, such as department, location, or type of work. In QuickBooks, class
77
+ * tracking is off by default.
78
+ */
79
+ class: Vendor.Class | null;
80
+ /**
81
+ * The name of the company associated with this vendor. This name is used on
82
+ * invoices, checks, and other forms.
83
+ */
84
+ companyName: string | null;
85
+ /**
86
+ * The name of the primary contact person for this vendor.
87
+ */
88
+ contact: string | null;
89
+ /**
90
+ * The date and time when this vendor was created, in ISO 8601 format
91
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
92
+ * in QuickBooks.
93
+ */
94
+ createdAt: string;
95
+ /**
96
+ * The vendor's credit limit, represented as a decimal string. This is the maximum
97
+ * amount of money that can be spent being before billed by this vendor. If `null`,
98
+ * there is no credit limit.
99
+ */
100
+ creditLimit: string | null;
101
+ /**
102
+ * The vendor's currency. For built-in currencies, the name and code are standard
103
+ * international values. For user-defined currencies, all values are editable.
104
+ */
105
+ currency: Vendor.Currency | null;
106
+ /**
107
+ * Additional custom contact fields for this vendor, such as phone numbers or email
108
+ * addresses.
109
+ */
110
+ customContactFields: Array<Vendor.CustomContactField>;
111
+ /**
112
+ * The custom fields for the vendor object, added as user-defined data extensions,
113
+ * not included in the standard QuickBooks object.
114
+ */
115
+ customFields: Array<Vendor.CustomField>;
116
+ /**
117
+ * The expense accounts to prefill when entering bills for this vendor.
118
+ */
119
+ defaultExpenseAccounts: Array<Vendor.DefaultExpenseAccount>;
120
+ /**
121
+ * The vendor's email address.
122
+ */
123
+ email: string | null;
124
+ /**
125
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
126
+ * this object in your external system. This field is immutable and can only be set
127
+ * during object creation.
128
+ */
129
+ externalId: string | null;
130
+ /**
131
+ * The vendor's fax number.
132
+ */
133
+ fax: string | null;
134
+ /**
135
+ * The first name of the contact person for this vendor.
136
+ */
137
+ firstName: string | null;
138
+ /**
139
+ * Indicates whether this vendor is active. Inactive objects are typically hidden
140
+ * from views and reports in QuickBooks. Defaults to `true`.
141
+ */
142
+ isActive: boolean;
143
+ /**
144
+ * Indicates whether tax is charged on top of tax for this vendor, for use in
145
+ * Canada or the UK.
146
+ */
147
+ isCompoundingTax: boolean | null;
148
+ /**
149
+ * Indicates whether this vendor is eligible to receive a 1099 form for tax
150
+ * reporting purposes. When `true`, then the fields `taxId` and `billingAddress`
151
+ * are required.
152
+ */
153
+ isEligibleFor1099: boolean | null;
154
+ /**
155
+ * Indicates whether this vendor is a sales tax agency.
156
+ */
157
+ isSalesTaxAgency: boolean | null;
158
+ /**
159
+ * Indicates whether tax is tracked on purchases for this vendor, for use in Canada
160
+ * or the UK.
161
+ */
162
+ isTrackingPurchaseTax: boolean | null;
163
+ /**
164
+ * Indicates whether tax is tracked on sales for this vendor, for use in Canada or
165
+ * the UK.
166
+ */
167
+ isTrackingSalesTax: boolean | null;
168
+ /**
169
+ * The job title of the contact person for this vendor.
170
+ */
171
+ jobTitle: string | null;
172
+ /**
173
+ * The last name of the contact person for this vendor.
174
+ */
175
+ lastName: string | null;
176
+ /**
177
+ * The middle name of the contact person for this vendor.
178
+ */
179
+ middleName: string | null;
180
+ /**
181
+ * The case-insensitive unique name of this vendor, unique across all vendors.
182
+ *
183
+ * **NOTE**: Vendors do not have a `fullName` field because they are not
184
+ * hierarchical objects, which is why `name` is unique for them but not for objects
185
+ * that have parents.
186
+ */
187
+ name: string;
188
+ /**
189
+ * The vendor's name as it should appear on checks issued to this vendor.
190
+ */
191
+ nameOnCheck: string | null;
192
+ /**
193
+ * A note or comment about this vendor.
194
+ */
195
+ note: string | null;
196
+ /**
197
+ * The type of object. This value is always `"qbd_vendor"`.
198
+ */
199
+ objectType: 'qbd_vendor';
200
+ /**
201
+ * The vendor's primary telephone number.
202
+ */
203
+ phone: string | null;
204
+ /**
205
+ * The account used for tracking taxes on purchases for this vendor, for use in
206
+ * Canada or the UK.
207
+ */
208
+ purchaseTaxAccount: Vendor.PurchaseTaxAccount | null;
209
+ /**
210
+ * The vendor's tax reporting period, for use in Canada or the UK.
211
+ */
212
+ reportingPeriod: 'monthly' | 'quarterly' | null;
213
+ /**
214
+ * The current QuickBooks-assigned revision number of this vendor object, which
215
+ * changes each time the object is modified. When updating this object, you must
216
+ * provide the most recent `revisionNumber` to ensure you're working with the
217
+ * latest data; otherwise, the update will return an error.
218
+ */
219
+ revisionNumber: string;
220
+ /**
221
+ * The account used for tracking taxes on sales for this vendor, for use in Canada
222
+ * or the UK.
223
+ */
224
+ salesTaxAccount: Vendor.SalesTaxAccount | null;
225
+ /**
226
+ * The default sales-tax code for transactions with this vendor, determining
227
+ * whether the transactions are taxable or non-taxable. This can be overridden at
228
+ * the transaction or transaction-line level.
229
+ *
230
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
231
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
232
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
233
+ * non-taxable code to all sales.
234
+ */
235
+ salesTaxCode: Vendor.SalesTaxCode | null;
236
+ /**
237
+ * The country for which sales tax is collected for this vendor.
238
+ */
239
+ salesTaxCountry: 'australia' | 'canada' | 'uk' | 'us' | null;
240
+ /**
241
+ * The vendor's sales tax return information, used for tracking and reporting sales
242
+ * tax liabilities.
243
+ */
244
+ salesTaxReturn: Vendor.SalesTaxReturn | null;
245
+ /**
246
+ * The formal salutation title that precedes the name of the contact person for
247
+ * this vendor, such as "Mr.", "Ms.", or "Dr.".
248
+ */
249
+ salutation: string | null;
250
+ /**
251
+ * The vendor's shipping address.
252
+ */
253
+ shippingAddress: Vendor.ShippingAddress | null;
254
+ /**
255
+ * The vendor's tax identification number (e.g., EIN or SSN).
256
+ */
257
+ taxIdentificationNumber: string | null;
258
+ /**
259
+ * The vendor's tax registration number, for use in Canada or the UK.
260
+ */
261
+ taxRegistrationNumber: string | null;
262
+ /**
263
+ * The vendor's payment terms, defining when payment is due and any applicable
264
+ * discounts.
265
+ */
266
+ terms: Vendor.Terms | null;
267
+ /**
268
+ * The date and time when this vendor was last updated, in ISO 8601 format
269
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
270
+ * in QuickBooks.
271
+ */
272
+ updatedAt: string;
273
+ /**
274
+ * The vendor's type, used for categorizing vendors into meaningful segments, such
275
+ * as industry or region.
276
+ */
277
+ vendorType: Vendor.VendorType | null;
278
+ }
279
+ export declare namespace Vendor {
280
+ interface AdditionalContact {
281
+ /**
282
+ * The unique identifier assigned by QuickBooks to this contact. This ID is unique
283
+ * across all contacts but not across different QuickBooks object types.
284
+ */
285
+ id: string;
286
+ /**
287
+ * The date and time when this contact was created, in ISO 8601 format
288
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
289
+ * in QuickBooks.
290
+ */
291
+ createdAt: string;
292
+ /**
293
+ * Additional custom contact fields for this contact, such as phone numbers or
294
+ * email addresses.
295
+ */
296
+ customContactFields: Array<AdditionalContact.CustomContactField>;
297
+ /**
298
+ * The contact's first name.
299
+ */
300
+ firstName: string;
301
+ /**
302
+ * The contact's job title.
303
+ */
304
+ jobTitle: string | null;
305
+ /**
306
+ * The contact's last name.
307
+ */
308
+ lastName: string | null;
309
+ /**
310
+ * The contact's middle name.
311
+ */
312
+ middleName: string | null;
313
+ /**
314
+ * The contact's full name.
315
+ */
316
+ name: string | null;
317
+ /**
318
+ * The type of object. This value is always `"qbd_contact"`.
319
+ */
320
+ objectType: 'qbd_contact';
321
+ /**
322
+ * The current QuickBooks-assigned revision number of this contact object, which
323
+ * changes each time the object is modified. When updating this object, you must
324
+ * provide the most recent `revisionNumber` to ensure you're working with the
325
+ * latest data; otherwise, the update will return an error.
326
+ */
327
+ revisionNumber: string;
328
+ /**
329
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
330
+ * "Ms.", or "Dr.".
331
+ */
332
+ salutation: string | null;
333
+ /**
334
+ * The date and time when this contact was last updated, in ISO 8601 format
335
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
336
+ * in QuickBooks.
337
+ */
338
+ updatedAt: string;
339
+ }
340
+ namespace AdditionalContact {
341
+ interface CustomContactField {
342
+ /**
343
+ * The name of the contact field (e.g., "old address", "secondary phone").
344
+ */
345
+ name: string;
346
+ /**
347
+ * The value of the contact field.
348
+ */
349
+ value: string;
350
+ }
351
+ }
352
+ interface AdditionalNote {
353
+ /**
354
+ * The auto-incrementing identifier assigned by QuickBooks to this note.
355
+ */
356
+ id: number;
357
+ /**
358
+ * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
359
+ */
360
+ date: string;
361
+ /**
362
+ * The text of this note.
363
+ */
364
+ note: string;
365
+ }
366
+ /**
367
+ * The vendor's billing address.
368
+ */
369
+ interface BillingAddress {
370
+ /**
371
+ * The city, district, suburb, town, or village name of the address.
372
+ */
373
+ city: string | null;
374
+ /**
375
+ * The country name of the address.
376
+ */
377
+ country: string | null;
378
+ /**
379
+ * The first line of the address (e.g., street, PO Box, or company name).
380
+ */
381
+ line1: string | null;
382
+ /**
383
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
384
+ * building).
385
+ */
386
+ line2: string | null;
387
+ /**
388
+ * The third line of the address, if needed.
389
+ */
390
+ line3: string | null;
391
+ /**
392
+ * The fourth line of the address, if needed.
393
+ */
394
+ line4: string | null;
395
+ /**
396
+ * The fifth line of the address, if needed.
397
+ */
398
+ line5: string | null;
399
+ /**
400
+ * A note written at the bottom of the address in the form in which it appears,
401
+ * such as the invoice form.
402
+ */
403
+ note: string | null;
404
+ /**
405
+ * The postal code or ZIP code of the address.
406
+ */
407
+ postalCode: string | null;
408
+ /**
409
+ * The state, county, province, or region name of the address.
410
+ */
411
+ state: string | null;
412
+ }
413
+ /**
414
+ * The vendor's billing rate, used to override service item rates in time tracking
415
+ * transactions.
416
+ */
417
+ interface BillingRate {
418
+ /**
419
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
420
+ * across all objects of the same type, but not across different QuickBooks object
421
+ * types.
422
+ */
423
+ id: string | null;
424
+ /**
425
+ * The fully-qualified unique name for this object, formed by combining the names
426
+ * of its parent objects with its own `name`, separated by colons. Not
427
+ * case-sensitive.
428
+ */
429
+ fullName: string | null;
430
+ }
431
+ /**
432
+ * The vendor's class. Classes can be used to categorize objects into meaningful
433
+ * segments, such as department, location, or type of work. In QuickBooks, class
434
+ * tracking is off by default.
435
+ */
436
+ interface Class {
437
+ /**
438
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
439
+ * across all objects of the same type, but not across different QuickBooks object
440
+ * types.
441
+ */
442
+ id: string | null;
443
+ /**
444
+ * The fully-qualified unique name for this object, formed by combining the names
445
+ * of its parent objects with its own `name`, separated by colons. Not
446
+ * case-sensitive.
447
+ */
448
+ fullName: string | null;
449
+ }
450
+ /**
451
+ * The vendor's currency. For built-in currencies, the name and code are standard
452
+ * international values. For user-defined currencies, all values are editable.
453
+ */
454
+ interface Currency {
455
+ /**
456
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
457
+ * across all objects of the same type, but not across different QuickBooks object
458
+ * types.
459
+ */
460
+ id: string | null;
461
+ /**
462
+ * The fully-qualified unique name for this object, formed by combining the names
463
+ * of its parent objects with its own `name`, separated by colons. Not
464
+ * case-sensitive.
465
+ */
466
+ fullName: string | null;
467
+ }
468
+ interface CustomContactField {
469
+ /**
470
+ * The name of the contact field (e.g., "old address", "secondary phone").
471
+ */
472
+ name: string;
473
+ /**
474
+ * The value of the contact field.
475
+ */
476
+ value: string;
477
+ }
478
+ interface CustomField {
479
+ /**
480
+ * The name of the custom field, unique for the specified `ownerId`. For public
481
+ * custom fields, this name is visible as a label in the QuickBooks UI.
482
+ */
483
+ name: string;
484
+ /**
485
+ * The identifier of the owner of the custom field, which QuickBooks internally
486
+ * calls a "data extension". For public custom fields visible in the UI, such as
487
+ * those added by the QuickBooks user, this is always "0". For private custom
488
+ * fields that are only visible to the application that created them, this is a
489
+ * valid GUID identifying the owning application. Internally, Conductor always
490
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
491
+ * objects.
492
+ */
493
+ ownerId: string;
494
+ /**
495
+ * The data type of this custom field.
496
+ */
497
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
498
+ /**
499
+ * The value of this custom field. The maximum length depends on the field's data
500
+ * type.
501
+ */
502
+ value: string;
503
+ }
504
+ interface DefaultExpenseAccount {
505
+ /**
506
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
507
+ * across all objects of the same type, but not across different QuickBooks object
508
+ * types.
509
+ */
510
+ id: string | null;
511
+ /**
512
+ * The fully-qualified unique name for this object, formed by combining the names
513
+ * of its parent objects with its own `name`, separated by colons. Not
514
+ * case-sensitive.
515
+ */
516
+ fullName: string | null;
517
+ }
518
+ /**
519
+ * The account used for tracking taxes on purchases for this vendor, for use in
520
+ * Canada or the UK.
521
+ */
522
+ interface PurchaseTaxAccount {
523
+ /**
524
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
525
+ * across all objects of the same type, but not across different QuickBooks object
526
+ * types.
527
+ */
528
+ id: string | null;
529
+ /**
530
+ * The fully-qualified unique name for this object, formed by combining the names
531
+ * of its parent objects with its own `name`, separated by colons. Not
532
+ * case-sensitive.
533
+ */
534
+ fullName: string | null;
535
+ }
536
+ /**
537
+ * The account used for tracking taxes on sales for this vendor, for use in Canada
538
+ * or the UK.
539
+ */
540
+ interface SalesTaxAccount {
541
+ /**
542
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
543
+ * across all objects of the same type, but not across different QuickBooks object
544
+ * types.
545
+ */
546
+ id: string | null;
547
+ /**
548
+ * The fully-qualified unique name for this object, formed by combining the names
549
+ * of its parent objects with its own `name`, separated by colons. Not
550
+ * case-sensitive.
551
+ */
552
+ fullName: string | null;
553
+ }
554
+ /**
555
+ * The default sales-tax code for transactions with this vendor, determining
556
+ * whether the transactions are taxable or non-taxable. This can be overridden at
557
+ * the transaction or transaction-line level.
558
+ *
559
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
560
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
561
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
562
+ * non-taxable code to all sales.
563
+ */
564
+ interface SalesTaxCode {
565
+ /**
566
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
567
+ * across all objects of the same type, but not across different QuickBooks object
568
+ * types.
569
+ */
570
+ id: string | null;
571
+ /**
572
+ * The fully-qualified unique name for this object, formed by combining the names
573
+ * of its parent objects with its own `name`, separated by colons. Not
574
+ * case-sensitive.
575
+ */
576
+ fullName: string | null;
577
+ }
578
+ /**
579
+ * The vendor's sales tax return information, used for tracking and reporting sales
580
+ * tax liabilities.
581
+ */
582
+ interface SalesTaxReturn {
583
+ /**
584
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
585
+ * across all objects of the same type, but not across different QuickBooks object
586
+ * types.
587
+ */
588
+ id: string | null;
589
+ /**
590
+ * The fully-qualified unique name for this object, formed by combining the names
591
+ * of its parent objects with its own `name`, separated by colons. Not
592
+ * case-sensitive.
593
+ */
594
+ fullName: string | null;
595
+ }
596
+ /**
597
+ * The vendor's shipping address.
598
+ */
599
+ interface ShippingAddress {
600
+ /**
601
+ * The city, district, suburb, town, or village name of the address.
602
+ */
603
+ city: string | null;
604
+ /**
605
+ * The country name of the address.
606
+ */
607
+ country: string | null;
608
+ /**
609
+ * The first line of the address (e.g., street, PO Box, or company name).
610
+ */
611
+ line1: string | null;
612
+ /**
613
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
614
+ * building).
615
+ */
616
+ line2: string | null;
617
+ /**
618
+ * The third line of the address, if needed.
619
+ */
620
+ line3: string | null;
621
+ /**
622
+ * The fourth line of the address, if needed.
623
+ */
624
+ line4: string | null;
625
+ /**
626
+ * The fifth line of the address, if needed.
627
+ */
628
+ line5: string | null;
629
+ /**
630
+ * A note written at the bottom of the address in the form in which it appears,
631
+ * such as the invoice form.
632
+ */
633
+ note: string | null;
634
+ /**
635
+ * The postal code or ZIP code of the address.
636
+ */
637
+ postalCode: string | null;
638
+ /**
639
+ * The state, county, province, or region name of the address.
640
+ */
641
+ state: string | null;
642
+ }
643
+ /**
644
+ * The vendor's payment terms, defining when payment is due and any applicable
645
+ * discounts.
646
+ */
647
+ interface Terms {
648
+ /**
649
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
650
+ * across all objects of the same type, but not across different QuickBooks object
651
+ * types.
652
+ */
653
+ id: string | null;
654
+ /**
655
+ * The fully-qualified unique name for this object, formed by combining the names
656
+ * of its parent objects with its own `name`, separated by colons. Not
657
+ * case-sensitive.
658
+ */
659
+ fullName: string | null;
660
+ }
661
+ /**
662
+ * The vendor's type, used for categorizing vendors into meaningful segments, such
663
+ * as industry or region.
664
+ */
665
+ interface VendorType {
666
+ /**
667
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
668
+ * across all objects of the same type, but not across different QuickBooks object
669
+ * types.
670
+ */
671
+ id: string | null;
672
+ /**
673
+ * The fully-qualified unique name for this object, formed by combining the names
674
+ * of its parent objects with its own `name`, separated by colons. Not
675
+ * case-sensitive.
676
+ */
677
+ fullName: string | null;
678
+ }
679
+ }
680
+ export interface VendorCreateParams {
681
+ /**
682
+ * Body param: The case-insensitive unique name of this vendor, unique across all
683
+ * vendors.
684
+ *
685
+ * **NOTE**: Vendors do not have a `fullName` field because they are not
686
+ * hierarchical objects, which is why `name` is unique for them but not for objects
687
+ * that have parents.
688
+ *
689
+ * Maximum length: 41 characters.
690
+ */
691
+ name: string;
692
+ /**
693
+ * Header param: The ID of the EndUser to receive this request (e.g.,
694
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
695
+ */
696
+ conductorEndUserId: string;
697
+ /**
698
+ * Body param: The vendor's account number, which appears in the QuickBooks chart
699
+ * of accounts, reports, and graphs.
700
+ *
701
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
702
+ * the account number may not be visible in the user interface, but it can still be
703
+ * set and retrieved through the API.
704
+ */
705
+ accountNumber?: string;
706
+ /**
707
+ * Body param: Additional alternate contacts for this vendor.
708
+ */
709
+ additionalContacts?: Array<VendorCreateParams.AdditionalContact>;
710
+ /**
711
+ * Body param: Additional notes about this vendor.
712
+ */
713
+ additionalNotes?: Array<VendorCreateParams.AdditionalNote>;
714
+ /**
715
+ * Body param: The name of a alternate contact person for this vendor.
716
+ */
717
+ alternateContact?: string;
718
+ /**
719
+ * Body param: The vendor's alternate telephone number.
720
+ */
721
+ alternatePhone?: string;
722
+ /**
723
+ * Body param: The vendor's billing address.
724
+ */
725
+ billingAddress?: VendorCreateParams.BillingAddress;
726
+ /**
727
+ * Body param: The vendor's billing rate, used to override service item rates in
728
+ * time tracking transactions.
729
+ */
730
+ billingRateId?: string;
731
+ /**
732
+ * Body param: An email address to carbon copy (CC) on communications with this
733
+ * vendor.
734
+ */
735
+ ccEmail?: string;
736
+ /**
737
+ * Body param: The vendor's class. Classes can be used to categorize objects into
738
+ * meaningful segments, such as department, location, or type of work. In
739
+ * QuickBooks, class tracking is off by default.
740
+ */
741
+ classId?: string;
742
+ /**
743
+ * Body param: The name of the company associated with this vendor. This name is
744
+ * used on invoices, checks, and other forms.
745
+ */
746
+ companyName?: string;
747
+ /**
748
+ * Body param: The name of the primary contact person for this vendor.
749
+ */
750
+ contact?: string;
751
+ /**
752
+ * Body param: The vendor's credit limit, represented as a decimal string. This is
753
+ * the maximum amount of money that can be spent being before billed by this
754
+ * vendor. If `null`, there is no credit limit.
755
+ */
756
+ creditLimit?: string;
757
+ /**
758
+ * Body param: The vendor's currency. For built-in currencies, the name and code
759
+ * are standard international values. For user-defined currencies, all values are
760
+ * editable.
761
+ */
762
+ currencyId?: string;
763
+ /**
764
+ * Body param: Additional custom contact fields for this vendor, such as phone
765
+ * numbers or email addresses.
766
+ */
767
+ customContactFields?: Array<VendorCreateParams.CustomContactField>;
768
+ /**
769
+ * Body param: The expense accounts to prefill when entering bills for this vendor.
770
+ */
771
+ defaultExpenseAccountIds?: Array<string>;
772
+ /**
773
+ * Body param: The vendor's email address.
774
+ */
775
+ email?: string;
776
+ /**
777
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
778
+ * for tracking this object in your external system. This field is immutable and
779
+ * can only be set during object creation.
780
+ *
781
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
782
+ * QuickBooks will return an error.
783
+ */
784
+ externalId?: string;
785
+ /**
786
+ * Body param: The vendor's fax number.
787
+ */
788
+ fax?: string;
789
+ /**
790
+ * Body param: The first name of the contact person for this vendor.
791
+ *
792
+ * Maximum length: 25 characters.
793
+ */
794
+ firstName?: string;
795
+ /**
796
+ * Body param: Indicates whether this vendor is active. Inactive objects are
797
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
798
+ */
799
+ isActive?: boolean;
800
+ /**
801
+ * Body param: Indicates whether tax is charged on top of tax for this vendor, for
802
+ * use in Canada or the UK.
803
+ */
804
+ isCompoundingTax?: boolean;
805
+ /**
806
+ * Body param: Indicates whether this vendor is eligible to receive a 1099 form for
807
+ * tax reporting purposes. When `true`, then the fields `taxId` and
808
+ * `billingAddress` are required.
809
+ */
810
+ isEligibleFor1099?: boolean;
811
+ /**
812
+ * Body param: Indicates whether this vendor is a sales tax agency.
813
+ */
814
+ isSalesTaxAgency?: boolean;
815
+ /**
816
+ * Body param: Indicates whether tax is tracked on purchases for this vendor, for
817
+ * use in Canada or the UK.
818
+ */
819
+ isTrackingPurchaseTax?: boolean;
820
+ /**
821
+ * Body param: Indicates whether tax is tracked on sales for this vendor, for use
822
+ * in Canada or the UK.
823
+ */
824
+ isTrackingSalesTax?: boolean;
825
+ /**
826
+ * Body param: The job title of the contact person for this vendor.
827
+ */
828
+ jobTitle?: string;
829
+ /**
830
+ * Body param: The last name of the contact person for this vendor.
831
+ *
832
+ * Maximum length: 25 characters.
833
+ */
834
+ lastName?: string;
835
+ /**
836
+ * Body param: The middle name of the contact person for this vendor.
837
+ *
838
+ * Maximum length: 5 characters.
839
+ */
840
+ middleName?: string;
841
+ /**
842
+ * Body param: The vendor's name as it should appear on checks issued to this
843
+ * vendor.
844
+ */
845
+ nameOnCheck?: string;
846
+ /**
847
+ * Body param: A note or comment about this vendor.
848
+ */
849
+ note?: string;
850
+ /**
851
+ * Body param: The opening balance of this vendor's account, indicating the amount
852
+ * owed to this vendor, represented as a decimal string.
853
+ */
854
+ openingBalance?: string;
855
+ /**
856
+ * Body param: The date of the opening balance of this vendor, in ISO 8601 format
857
+ * (YYYY-MM-DD).
858
+ */
859
+ openingBalanceDate?: string;
860
+ /**
861
+ * Body param: The vendor's primary telephone number.
862
+ */
863
+ phone?: string;
864
+ /**
865
+ * Body param: The account used for tracking taxes on purchases for this vendor,
866
+ * for use in Canada or the UK.
867
+ */
868
+ purchaseTaxAccountId?: string;
869
+ /**
870
+ * Body param: The vendor's tax reporting period, for use in Canada or the UK.
871
+ */
872
+ reportingPeriod?: 'monthly' | 'quarterly';
873
+ /**
874
+ * Body param: The account used for tracking taxes on sales for this vendor, for
875
+ * use in Canada or the UK.
876
+ */
877
+ salesTaxAccountId?: string;
878
+ /**
879
+ * Body param: The default sales-tax code for transactions with this vendor,
880
+ * determining whether the transactions are taxable or non-taxable. This can be
881
+ * overridden at the transaction or transaction-line level.
882
+ *
883
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
884
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
885
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
886
+ * non-taxable code to all sales.
887
+ */
888
+ salesTaxCodeId?: string;
889
+ /**
890
+ * Body param: The country for which sales tax is collected for this vendor.
891
+ */
892
+ salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
893
+ /**
894
+ * Body param: The vendor's sales tax return information, used for tracking and
895
+ * reporting sales tax liabilities.
896
+ */
897
+ salesTaxReturnId?: string;
898
+ /**
899
+ * Body param: The formal salutation title that precedes the name of the contact
900
+ * person for this vendor, such as "Mr.", "Ms.", or "Dr.".
901
+ */
902
+ salutation?: string;
903
+ /**
904
+ * Body param: The vendor's shipping address.
905
+ */
906
+ shippingAddress?: VendorCreateParams.ShippingAddress;
907
+ /**
908
+ * Body param: The vendor's tax identification number (e.g., EIN or SSN).
909
+ */
910
+ taxIdentificationNumber?: string;
911
+ /**
912
+ * Body param: The vendor's tax registration number, for use in Canada or the UK.
913
+ */
914
+ taxRegistrationNumber?: string;
915
+ /**
916
+ * Body param: The vendor's payment terms, defining when payment is due and any
917
+ * applicable discounts.
918
+ */
919
+ termsId?: string;
920
+ /**
921
+ * Body param: The vendor's type, used for categorizing vendors into meaningful
922
+ * segments, such as industry or region.
923
+ */
924
+ vendorTypeId?: string;
925
+ }
926
+ export declare namespace VendorCreateParams {
927
+ interface AdditionalContact {
928
+ /**
929
+ * The contact's first name.
930
+ *
931
+ * Maximum length: 25 characters.
932
+ */
933
+ firstName: string;
934
+ /**
935
+ * Additional custom contact fields for this contact, such as phone numbers or
936
+ * email addresses.
937
+ */
938
+ customContactFields?: Array<AdditionalContact.CustomContactField>;
939
+ /**
940
+ * The contact's job title.
941
+ */
942
+ jobTitle?: string;
943
+ /**
944
+ * The contact's last name.
945
+ *
946
+ * Maximum length: 25 characters.
947
+ */
948
+ lastName?: string;
949
+ /**
950
+ * The contact's middle name.
951
+ *
952
+ * Maximum length: 5 characters.
953
+ */
954
+ middleName?: string;
955
+ /**
956
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
957
+ * "Ms.", or "Dr.".
958
+ */
959
+ salutation?: string;
960
+ }
961
+ namespace AdditionalContact {
962
+ interface CustomContactField {
963
+ /**
964
+ * The name of the contact field (e.g., "old address", "secondary phone").
965
+ */
966
+ name: string;
967
+ /**
968
+ * The value of the contact field.
969
+ */
970
+ value: string;
971
+ }
972
+ }
973
+ interface AdditionalNote {
974
+ /**
975
+ * The text of this note.
976
+ */
977
+ note: string;
978
+ }
979
+ /**
980
+ * The vendor's billing address.
981
+ */
982
+ interface BillingAddress {
983
+ /**
984
+ * The city, district, suburb, town, or village name of the address.
985
+ *
986
+ * Maximum length: 31 characters.
987
+ */
988
+ city?: string;
989
+ /**
990
+ * The country name of the address.
991
+ */
992
+ country?: string;
993
+ /**
994
+ * The first line of the address (e.g., street, PO Box, or company name).
995
+ *
996
+ * Maximum length: 41 characters.
997
+ */
998
+ line1?: string;
999
+ /**
1000
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1001
+ * building).
1002
+ *
1003
+ * Maximum length: 41 characters.
1004
+ */
1005
+ line2?: string;
1006
+ /**
1007
+ * The third line of the address, if needed.
1008
+ *
1009
+ * Maximum length: 41 characters.
1010
+ */
1011
+ line3?: string;
1012
+ /**
1013
+ * The fourth line of the address, if needed.
1014
+ *
1015
+ * Maximum length: 41 characters.
1016
+ */
1017
+ line4?: string;
1018
+ /**
1019
+ * The fifth line of the address, if needed.
1020
+ *
1021
+ * Maximum length: 41 characters.
1022
+ */
1023
+ line5?: string;
1024
+ /**
1025
+ * A note written at the bottom of the address in the form in which it appears,
1026
+ * such as the invoice form.
1027
+ */
1028
+ note?: string;
1029
+ /**
1030
+ * The postal code or ZIP code of the address.
1031
+ *
1032
+ * Maximum length: 13 characters.
1033
+ */
1034
+ postalCode?: string;
1035
+ /**
1036
+ * The state, county, province, or region name of the address.
1037
+ *
1038
+ * Maximum length: 21 characters.
1039
+ */
1040
+ state?: string;
1041
+ }
1042
+ interface CustomContactField {
1043
+ /**
1044
+ * The name of the contact field (e.g., "old address", "secondary phone").
1045
+ */
1046
+ name: string;
1047
+ /**
1048
+ * The value of the contact field.
1049
+ */
1050
+ value: string;
1051
+ }
1052
+ /**
1053
+ * The vendor's shipping address.
1054
+ */
1055
+ interface ShippingAddress {
1056
+ /**
1057
+ * The city, district, suburb, town, or village name of the address.
1058
+ *
1059
+ * Maximum length: 31 characters.
1060
+ */
1061
+ city?: string;
1062
+ /**
1063
+ * The country name of the address.
1064
+ */
1065
+ country?: string;
1066
+ /**
1067
+ * The first line of the address (e.g., street, PO Box, or company name).
1068
+ *
1069
+ * Maximum length: 41 characters.
1070
+ */
1071
+ line1?: string;
1072
+ /**
1073
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1074
+ * building).
1075
+ *
1076
+ * Maximum length: 41 characters.
1077
+ */
1078
+ line2?: string;
1079
+ /**
1080
+ * The third line of the address, if needed.
1081
+ *
1082
+ * Maximum length: 41 characters.
1083
+ */
1084
+ line3?: string;
1085
+ /**
1086
+ * The fourth line of the address, if needed.
1087
+ *
1088
+ * Maximum length: 41 characters.
1089
+ */
1090
+ line4?: string;
1091
+ /**
1092
+ * The fifth line of the address, if needed.
1093
+ *
1094
+ * Maximum length: 41 characters.
1095
+ */
1096
+ line5?: string;
1097
+ /**
1098
+ * A note written at the bottom of the address in the form in which it appears,
1099
+ * such as the invoice form.
1100
+ */
1101
+ note?: string;
1102
+ /**
1103
+ * The postal code or ZIP code of the address.
1104
+ *
1105
+ * Maximum length: 13 characters.
1106
+ */
1107
+ postalCode?: string;
1108
+ /**
1109
+ * The state, county, province, or region name of the address.
1110
+ *
1111
+ * Maximum length: 21 characters.
1112
+ */
1113
+ state?: string;
1114
+ }
1115
+ }
1116
+ export interface VendorRetrieveParams {
1117
+ /**
1118
+ * The ID of the EndUser to receive this request (e.g.,
1119
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1120
+ */
1121
+ conductorEndUserId: string;
1122
+ }
1123
+ export interface VendorUpdateParams {
1124
+ /**
1125
+ * Body param: The current QuickBooks-assigned revision number of the vendor object
1126
+ * you are updating, which you can get by fetching the object first. Provide the
1127
+ * most recent `revisionNumber` to ensure you're working with the latest data;
1128
+ * otherwise, the update will return an error.
1129
+ */
1130
+ revisionNumber: string;
1131
+ /**
1132
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1133
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1134
+ */
1135
+ conductorEndUserId: string;
1136
+ /**
1137
+ * Body param: The vendor's account number, which appears in the QuickBooks chart
1138
+ * of accounts, reports, and graphs.
1139
+ *
1140
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
1141
+ * the account number may not be visible in the user interface, but it can still be
1142
+ * set and retrieved through the API.
1143
+ */
1144
+ accountNumber?: string;
1145
+ /**
1146
+ * Body param: Additional alternate contacts for this vendor.
1147
+ */
1148
+ additionalContacts?: Array<VendorUpdateParams.AdditionalContact>;
1149
+ /**
1150
+ * Body param: Additional notes about this vendor.
1151
+ */
1152
+ additionalNotes?: Array<VendorUpdateParams.AdditionalNote>;
1153
+ /**
1154
+ * Body param: The name of a alternate contact person for this vendor.
1155
+ */
1156
+ alternateContact?: string;
1157
+ /**
1158
+ * Body param: The vendor's alternate telephone number.
1159
+ */
1160
+ alternatePhone?: string;
1161
+ /**
1162
+ * Body param: The vendor's billing address.
1163
+ */
1164
+ billingAddress?: VendorUpdateParams.BillingAddress;
1165
+ /**
1166
+ * Body param: The vendor's billing rate, used to override service item rates in
1167
+ * time tracking transactions.
1168
+ */
1169
+ billingRateId?: string;
1170
+ /**
1171
+ * Body param: An email address to carbon copy (CC) on communications with this
1172
+ * vendor.
1173
+ */
1174
+ ccEmail?: string;
1175
+ /**
1176
+ * Body param: The vendor's class. Classes can be used to categorize objects into
1177
+ * meaningful segments, such as department, location, or type of work. In
1178
+ * QuickBooks, class tracking is off by default.
1179
+ */
1180
+ classId?: string;
1181
+ /**
1182
+ * Body param: The name of the company associated with this vendor. This name is
1183
+ * used on invoices, checks, and other forms.
1184
+ */
1185
+ companyName?: string;
1186
+ /**
1187
+ * Body param: The name of the primary contact person for this vendor.
1188
+ */
1189
+ contact?: string;
1190
+ /**
1191
+ * Body param: The vendor's credit limit, represented as a decimal string. This is
1192
+ * the maximum amount of money that can be spent being before billed by this
1193
+ * vendor. If `null`, there is no credit limit.
1194
+ */
1195
+ creditLimit?: string;
1196
+ /**
1197
+ * Body param: The vendor's currency. For built-in currencies, the name and code
1198
+ * are standard international values. For user-defined currencies, all values are
1199
+ * editable.
1200
+ */
1201
+ currencyId?: string;
1202
+ /**
1203
+ * Body param: Additional custom contact fields for this vendor, such as phone
1204
+ * numbers or email addresses.
1205
+ */
1206
+ customContactFields?: Array<VendorUpdateParams.CustomContactField>;
1207
+ /**
1208
+ * Body param: The expense accounts to prefill when entering bills for this vendor.
1209
+ */
1210
+ defaultExpenseAccountIds?: Array<string>;
1211
+ /**
1212
+ * Body param: The vendor's email address.
1213
+ */
1214
+ email?: string;
1215
+ /**
1216
+ * Body param: The vendor's fax number.
1217
+ */
1218
+ fax?: string;
1219
+ /**
1220
+ * Body param: The first name of the contact person for this vendor.
1221
+ *
1222
+ * Maximum length: 25 characters.
1223
+ */
1224
+ firstName?: string;
1225
+ /**
1226
+ * Body param: Indicates whether this vendor is active. Inactive objects are
1227
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1228
+ */
1229
+ isActive?: boolean;
1230
+ /**
1231
+ * Body param: Indicates whether tax is charged on top of tax for this vendor, for
1232
+ * use in Canada or the UK.
1233
+ */
1234
+ isCompoundingTax?: boolean;
1235
+ /**
1236
+ * Body param: Indicates whether this vendor is eligible to receive a 1099 form for
1237
+ * tax reporting purposes. When `true`, then the fields `taxId` and
1238
+ * `billingAddress` are required.
1239
+ */
1240
+ isEligibleFor1099?: boolean;
1241
+ /**
1242
+ * Body param: Indicates whether this vendor is a sales tax agency.
1243
+ */
1244
+ isSalesTaxAgency?: boolean;
1245
+ /**
1246
+ * Body param: Indicates whether tax is tracked on purchases for this vendor, for
1247
+ * use in Canada or the UK.
1248
+ */
1249
+ isTrackingPurchaseTax?: boolean;
1250
+ /**
1251
+ * Body param: Indicates whether tax is tracked on sales for this vendor, for use
1252
+ * in Canada or the UK.
1253
+ */
1254
+ isTrackingSalesTax?: boolean;
1255
+ /**
1256
+ * Body param: The job title of the contact person for this vendor.
1257
+ */
1258
+ jobTitle?: string;
1259
+ /**
1260
+ * Body param: The last name of the contact person for this vendor.
1261
+ *
1262
+ * Maximum length: 25 characters.
1263
+ */
1264
+ lastName?: string;
1265
+ /**
1266
+ * Body param: The middle name of the contact person for this vendor.
1267
+ *
1268
+ * Maximum length: 5 characters.
1269
+ */
1270
+ middleName?: string;
1271
+ /**
1272
+ * Body param: The case-insensitive unique name of this vendor, unique across all
1273
+ * vendors.
1274
+ *
1275
+ * **NOTE**: Vendors do not have a `fullName` field because they are not
1276
+ * hierarchical objects, which is why `name` is unique for them but not for objects
1277
+ * that have parents.
1278
+ *
1279
+ * Maximum length: 41 characters.
1280
+ */
1281
+ name?: string;
1282
+ /**
1283
+ * Body param: The vendor's name as it should appear on checks issued to this
1284
+ * vendor.
1285
+ */
1286
+ nameOnCheck?: string;
1287
+ /**
1288
+ * Body param: A note or comment about this vendor.
1289
+ */
1290
+ note?: string;
1291
+ /**
1292
+ * Body param: The vendor's primary telephone number.
1293
+ */
1294
+ phone?: string;
1295
+ /**
1296
+ * Body param: The account used for tracking taxes on purchases for this vendor,
1297
+ * for use in Canada or the UK.
1298
+ */
1299
+ purchaseTaxAccountId?: string;
1300
+ /**
1301
+ * Body param: The vendor's tax reporting period, for use in Canada or the UK.
1302
+ */
1303
+ reportingPeriod?: 'monthly' | 'quarterly';
1304
+ /**
1305
+ * Body param: The account used for tracking taxes on sales for this vendor, for
1306
+ * use in Canada or the UK.
1307
+ */
1308
+ salesTaxAccountId?: string;
1309
+ /**
1310
+ * Body param: The default sales-tax code for transactions with this vendor,
1311
+ * determining whether the transactions are taxable or non-taxable. This can be
1312
+ * overridden at the transaction or transaction-line level.
1313
+ *
1314
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1315
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1316
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1317
+ * non-taxable code to all sales.
1318
+ */
1319
+ salesTaxCodeId?: string;
1320
+ /**
1321
+ * Body param: The country for which sales tax is collected for this vendor.
1322
+ */
1323
+ salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
1324
+ /**
1325
+ * Body param: The vendor's sales tax return information, used for tracking and
1326
+ * reporting sales tax liabilities.
1327
+ */
1328
+ salesTaxReturnId?: string;
1329
+ /**
1330
+ * Body param: The formal salutation title that precedes the name of the contact
1331
+ * person for this vendor, such as "Mr.", "Ms.", or "Dr.".
1332
+ */
1333
+ salutation?: string;
1334
+ /**
1335
+ * Body param: The vendor's shipping address.
1336
+ */
1337
+ shippingAddress?: VendorUpdateParams.ShippingAddress;
1338
+ /**
1339
+ * Body param: The vendor's tax identification number (e.g., EIN or SSN).
1340
+ */
1341
+ taxIdentificationNumber?: string;
1342
+ /**
1343
+ * Body param: The vendor's tax registration number, for use in Canada or the UK.
1344
+ */
1345
+ taxRegistrationNumber?: string;
1346
+ /**
1347
+ * Body param: The vendor's payment terms, defining when payment is due and any
1348
+ * applicable discounts.
1349
+ */
1350
+ termsId?: string;
1351
+ /**
1352
+ * Body param: The vendor's type, used for categorizing vendors into meaningful
1353
+ * segments, such as industry or region.
1354
+ */
1355
+ vendorTypeId?: string;
1356
+ }
1357
+ export declare namespace VendorUpdateParams {
1358
+ interface AdditionalContact {
1359
+ /**
1360
+ * The QuickBooks-assigned unique identifier of the contact to update.
1361
+ */
1362
+ id: string;
1363
+ /**
1364
+ * The current QuickBooks-assigned revision number of the contact object you are
1365
+ * updating, which you can get by fetching the object first. Provide the most
1366
+ * recent `revisionNumber` to ensure you're working with the latest data;
1367
+ * otherwise, the update will return an error.
1368
+ */
1369
+ revisionNumber: string;
1370
+ /**
1371
+ * Additional custom contact fields for this contact, such as phone numbers or
1372
+ * email addresses.
1373
+ */
1374
+ customContactFields?: Array<AdditionalContact.CustomContactField>;
1375
+ /**
1376
+ * The contact's first name.
1377
+ *
1378
+ * Maximum length: 25 characters.
1379
+ */
1380
+ firstName?: string;
1381
+ /**
1382
+ * The contact's job title.
1383
+ */
1384
+ jobTitle?: string;
1385
+ /**
1386
+ * The contact's last name.
1387
+ *
1388
+ * Maximum length: 25 characters.
1389
+ */
1390
+ lastName?: string;
1391
+ /**
1392
+ * The contact's middle name.
1393
+ *
1394
+ * Maximum length: 5 characters.
1395
+ */
1396
+ middleName?: string;
1397
+ /**
1398
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
1399
+ * "Ms.", or "Dr.".
1400
+ */
1401
+ salutation?: string;
1402
+ }
1403
+ namespace AdditionalContact {
1404
+ interface CustomContactField {
1405
+ /**
1406
+ * The name of the contact field (e.g., "old address", "secondary phone").
1407
+ */
1408
+ name: string;
1409
+ /**
1410
+ * The value of the contact field.
1411
+ */
1412
+ value: string;
1413
+ }
1414
+ }
1415
+ interface AdditionalNote {
1416
+ /**
1417
+ * The ID of the note to update.
1418
+ */
1419
+ id: number;
1420
+ /**
1421
+ * The text of this note.
1422
+ */
1423
+ note?: string;
1424
+ }
1425
+ /**
1426
+ * The vendor's billing address.
1427
+ */
1428
+ interface BillingAddress {
1429
+ /**
1430
+ * The city, district, suburb, town, or village name of the address.
1431
+ *
1432
+ * Maximum length: 31 characters.
1433
+ */
1434
+ city?: string;
1435
+ /**
1436
+ * The country name of the address.
1437
+ */
1438
+ country?: string;
1439
+ /**
1440
+ * The first line of the address (e.g., street, PO Box, or company name).
1441
+ *
1442
+ * Maximum length: 41 characters.
1443
+ */
1444
+ line1?: string;
1445
+ /**
1446
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1447
+ * building).
1448
+ *
1449
+ * Maximum length: 41 characters.
1450
+ */
1451
+ line2?: string;
1452
+ /**
1453
+ * The third line of the address, if needed.
1454
+ *
1455
+ * Maximum length: 41 characters.
1456
+ */
1457
+ line3?: string;
1458
+ /**
1459
+ * The fourth line of the address, if needed.
1460
+ *
1461
+ * Maximum length: 41 characters.
1462
+ */
1463
+ line4?: string;
1464
+ /**
1465
+ * The fifth line of the address, if needed.
1466
+ *
1467
+ * Maximum length: 41 characters.
1468
+ */
1469
+ line5?: string;
1470
+ /**
1471
+ * A note written at the bottom of the address in the form in which it appears,
1472
+ * such as the invoice form.
1473
+ */
1474
+ note?: string;
1475
+ /**
1476
+ * The postal code or ZIP code of the address.
1477
+ *
1478
+ * Maximum length: 13 characters.
1479
+ */
1480
+ postalCode?: string;
1481
+ /**
1482
+ * The state, county, province, or region name of the address.
1483
+ *
1484
+ * Maximum length: 21 characters.
1485
+ */
1486
+ state?: string;
1487
+ }
1488
+ interface CustomContactField {
1489
+ /**
1490
+ * The name of the contact field (e.g., "old address", "secondary phone").
1491
+ */
1492
+ name: string;
1493
+ /**
1494
+ * The value of the contact field.
1495
+ */
1496
+ value: string;
1497
+ }
1498
+ /**
1499
+ * The vendor's shipping address.
1500
+ */
1501
+ interface ShippingAddress {
1502
+ /**
1503
+ * The city, district, suburb, town, or village name of the address.
1504
+ *
1505
+ * Maximum length: 31 characters.
1506
+ */
1507
+ city?: string;
1508
+ /**
1509
+ * The country name of the address.
1510
+ */
1511
+ country?: string;
1512
+ /**
1513
+ * The first line of the address (e.g., street, PO Box, or company name).
1514
+ *
1515
+ * Maximum length: 41 characters.
1516
+ */
1517
+ line1?: string;
1518
+ /**
1519
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1520
+ * building).
1521
+ *
1522
+ * Maximum length: 41 characters.
1523
+ */
1524
+ line2?: string;
1525
+ /**
1526
+ * The third line of the address, if needed.
1527
+ *
1528
+ * Maximum length: 41 characters.
1529
+ */
1530
+ line3?: string;
1531
+ /**
1532
+ * The fourth line of the address, if needed.
1533
+ *
1534
+ * Maximum length: 41 characters.
1535
+ */
1536
+ line4?: string;
1537
+ /**
1538
+ * The fifth line of the address, if needed.
1539
+ *
1540
+ * Maximum length: 41 characters.
1541
+ */
1542
+ line5?: string;
1543
+ /**
1544
+ * A note written at the bottom of the address in the form in which it appears,
1545
+ * such as the invoice form.
1546
+ */
1547
+ note?: string;
1548
+ /**
1549
+ * The postal code or ZIP code of the address.
1550
+ *
1551
+ * Maximum length: 13 characters.
1552
+ */
1553
+ postalCode?: string;
1554
+ /**
1555
+ * The state, county, province, or region name of the address.
1556
+ *
1557
+ * Maximum length: 21 characters.
1558
+ */
1559
+ state?: string;
1560
+ }
1561
+ }
1562
+ export interface VendorListParams extends CursorPageParams {
1563
+ /**
1564
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1565
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1566
+ */
1567
+ conductorEndUserId: string;
1568
+ /**
1569
+ * Query param: Filter for vendors of these classes. A class is a way end-users can
1570
+ * categorize vendors in QuickBooks.
1571
+ */
1572
+ classIds?: Array<string>;
1573
+ /**
1574
+ * Query param: Filter for vendors in these currencies.
1575
+ */
1576
+ currencyIds?: Array<string>;
1577
+ /**
1578
+ * Query param: Filter for specific vendors by their QuickBooks-assigned unique
1579
+ * identifier(s).
1580
+ *
1581
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1582
+ * query parameters for this request.
1583
+ *
1584
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1585
+ * request will return an error.
1586
+ */
1587
+ ids?: Array<string>;
1588
+ /**
1589
+ * Query param: Filter for vendors whose `name` contains this substring,
1590
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1591
+ * `nameStartsWith` or `nameEndsWith`.
1592
+ */
1593
+ nameContains?: string;
1594
+ /**
1595
+ * Query param: Filter for vendors whose `name` ends with this substring,
1596
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1597
+ * `nameContains` or `nameStartsWith`.
1598
+ */
1599
+ nameEndsWith?: string;
1600
+ /**
1601
+ * Query param: Filter for vendors whose `name` is alphabetically greater than or
1602
+ * equal to this value.
1603
+ */
1604
+ nameFrom?: string;
1605
+ /**
1606
+ * Query param: Filter for specific vendors by their name(s), case-insensitive.
1607
+ * Like `id`, `name` is a unique identifier for a vendor.
1608
+ *
1609
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1610
+ * query parameters for this request.
1611
+ *
1612
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1613
+ * request will return an error.
1614
+ */
1615
+ names?: Array<string>;
1616
+ /**
1617
+ * Query param: Filter for vendors whose `name` starts with this substring,
1618
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1619
+ * `nameContains` or `nameEndsWith`.
1620
+ */
1621
+ nameStartsWith?: string;
1622
+ /**
1623
+ * Query param: Filter for vendors whose `name` is alphabetically less than or
1624
+ * equal to this value.
1625
+ */
1626
+ nameTo?: string;
1627
+ /**
1628
+ * Query param: Filter for vendors that are active, inactive, or both.
1629
+ */
1630
+ status?: 'active' | 'all' | 'inactive';
1631
+ /**
1632
+ * Query param: Filter for vendors whose `totalBalance` equals this amount,
1633
+ * represented as a decimal string. You can only use one total-balance filter at a
1634
+ * time.
1635
+ */
1636
+ totalBalance?: string;
1637
+ /**
1638
+ * Query param: Filter for vendors whose `totalBalance` is greater than this
1639
+ * amount, represented as a decimal string. You can only use one total-balance
1640
+ * filter at a time.
1641
+ */
1642
+ totalBalanceGreaterThan?: string;
1643
+ /**
1644
+ * Query param: Filter for vendors whose `totalBalance` is greater than or equal to
1645
+ * this amount, represented as a decimal string. You can only use one total-balance
1646
+ * filter at a time.
1647
+ */
1648
+ totalBalanceGreaterThanOrEqualTo?: string;
1649
+ /**
1650
+ * Query param: Filter for vendors whose `totalBalance` is less than this amount,
1651
+ * represented as a decimal string. You can only use one total-balance filter at a
1652
+ * time.
1653
+ */
1654
+ totalBalanceLessThan?: string;
1655
+ /**
1656
+ * Query param: Filter for vendors whose `totalBalance` is less than or equal to
1657
+ * this amount, represented as a decimal string. You can only use one total-balance
1658
+ * filter at a time.
1659
+ */
1660
+ totalBalanceLessThanOrEqualTo?: string;
1661
+ /**
1662
+ * Query param: Filter for vendors updated on or after this date and time, in ISO
1663
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
1664
+ * time is assumed to be 00:00:00 of that day.
1665
+ */
1666
+ updatedAfter?: string;
1667
+ /**
1668
+ * Query param: Filter for vendors updated on or before this date and time, in ISO
1669
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
1670
+ * time is assumed to be 23:59:59 of that day.
1671
+ */
1672
+ updatedBefore?: string;
1673
+ }
1674
+ export declare namespace Vendors {
1675
+ export { type Vendor as Vendor, VendorsCursorPage as VendorsCursorPage, type VendorCreateParams as VendorCreateParams, type VendorRetrieveParams as VendorRetrieveParams, type VendorUpdateParams as VendorUpdateParams, type VendorListParams as VendorListParams, };
1676
+ }
1677
+ //# sourceMappingURL=vendors.d.ts.map