conductor-node 11.10.1 → 12.0.0-beta.10

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