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,1086 @@
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 BillCheckPayments extends APIResource {
8
+ /**
9
+ * Creates a new bill check payment.
10
+ */
11
+ create(
12
+ params: BillCheckPaymentCreateParams,
13
+ options?: Core.RequestOptions,
14
+ ): Core.APIPromise<BillCheckPayment> {
15
+ const { conductorEndUserId, ...body } = params;
16
+ return this._client.post('/quickbooks-desktop/bill-check-payments', {
17
+ body,
18
+ ...options,
19
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
20
+ });
21
+ }
22
+
23
+ /**
24
+ * Retrieves a bill check payment by ID.
25
+ */
26
+ retrieve(
27
+ id: string,
28
+ params: BillCheckPaymentRetrieveParams,
29
+ options?: Core.RequestOptions,
30
+ ): Core.APIPromise<BillCheckPayment> {
31
+ const { conductorEndUserId } = params;
32
+ return this._client.get(`/quickbooks-desktop/bill-check-payments/${id}`, {
33
+ ...options,
34
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
35
+ });
36
+ }
37
+
38
+ /**
39
+ * Updates an existing bill check payment.
40
+ */
41
+ update(
42
+ id: string,
43
+ params: BillCheckPaymentUpdateParams,
44
+ options?: Core.RequestOptions,
45
+ ): Core.APIPromise<BillCheckPayment> {
46
+ const { conductorEndUserId, ...body } = params;
47
+ return this._client.post(`/quickbooks-desktop/bill-check-payments/${id}`, {
48
+ body,
49
+ ...options,
50
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
51
+ });
52
+ }
53
+
54
+ /**
55
+ * Returns a list of bill check payments. Use the `cursor` parameter to paginate
56
+ * through the results.
57
+ */
58
+ list(
59
+ params: BillCheckPaymentListParams,
60
+ options?: Core.RequestOptions,
61
+ ): Core.PagePromise<BillCheckPaymentsCursorPage, BillCheckPayment> {
62
+ const { conductorEndUserId, ...query } = params;
63
+ return this._client.getAPIList('/quickbooks-desktop/bill-check-payments', BillCheckPaymentsCursorPage, {
64
+ query,
65
+ ...options,
66
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
67
+ });
68
+ }
69
+
70
+ /**
71
+ * Permanently deletes a a bill check payment. The deletion will fail if the bill
72
+ * check payment is currently in use or has any linked transactions that are in
73
+ * use.
74
+ */
75
+ delete(
76
+ id: string,
77
+ params: BillCheckPaymentDeleteParams,
78
+ options?: Core.RequestOptions,
79
+ ): Core.APIPromise<BillCheckPaymentDeleteResponse> {
80
+ const { conductorEndUserId } = params;
81
+ return this._client.delete(`/quickbooks-desktop/bill-check-payments/${id}`, {
82
+ ...options,
83
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
84
+ });
85
+ }
86
+ }
87
+
88
+ export class BillCheckPaymentsCursorPage extends CursorPage<BillCheckPayment> {}
89
+
90
+ export interface BillCheckPayment {
91
+ /**
92
+ * The unique identifier assigned by QuickBooks to this bill check payment. This ID
93
+ * is unique across all transaction types.
94
+ */
95
+ id: string;
96
+
97
+ /**
98
+ * The address that is printed on the bill check payment.
99
+ */
100
+ address: BillCheckPayment.Address | null;
101
+
102
+ /**
103
+ * The monetary amount of this bill check payment, represented as a decimal string.
104
+ */
105
+ amount: string;
106
+
107
+ /**
108
+ * The monetary amount of this bill check payment converted to the home currency of
109
+ * the QuickBooks company file. Represented as a decimal string.
110
+ */
111
+ amountInHomeCurrency: string | null;
112
+
113
+ /**
114
+ * The bill(s) paid by this bill check payment.
115
+ */
116
+ appliedToTransactions: Array<BillCheckPayment.AppliedToTransaction>;
117
+
118
+ /**
119
+ * The bank account from which the funds are being drawn for this bill check
120
+ * payment; e.g., Checking or Savings. This bill check payment will decrease the
121
+ * balance of this account.
122
+ */
123
+ bankAccount: BillCheckPayment.BankAccount;
124
+
125
+ /**
126
+ * The date and time when this bill check payment was created, in ISO 8601 format
127
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
128
+ * in QuickBooks.
129
+ */
130
+ createdAt: string;
131
+
132
+ /**
133
+ * The bill check payment's currency. For built-in currencies, the name and code
134
+ * are standard international values. For user-defined currencies, all values are
135
+ * editable.
136
+ */
137
+ currency: BillCheckPayment.Currency | null;
138
+
139
+ /**
140
+ * The custom fields for the bill check payment object, added as user-defined data
141
+ * extensions, not included in the standard QuickBooks object.
142
+ */
143
+ customFields: Array<BillCheckPayment.CustomField>;
144
+
145
+ /**
146
+ * The market exchange rate between this bill check payment's currency and the home
147
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
148
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
149
+ */
150
+ exchangeRate: number | null;
151
+
152
+ /**
153
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
154
+ * this object in your external system. This field is immutable and can only be set
155
+ * during object creation.
156
+ */
157
+ externalId: string | null;
158
+
159
+ /**
160
+ * Indicates whether this bill check payment is included in the queue of documents
161
+ * for QuickBooks to print.
162
+ */
163
+ isQueuedForPrint: boolean | null;
164
+
165
+ /**
166
+ * A memo or note for this bill check payment.
167
+ */
168
+ memo: string | null;
169
+
170
+ /**
171
+ * The type of object. This value is always `"qbd_bill_check_payment"`.
172
+ */
173
+ objectType: 'qbd_bill_check_payment';
174
+
175
+ /**
176
+ * The Accounts-Payable (A/P) account to which this bill check payment is assigned,
177
+ * used to track the amount owed. If not specified, QuickBooks Desktop will use its
178
+ * default A/P account.
179
+ *
180
+ * **IMPORTANT**: If this bill check payment is linked to other transactions, this
181
+ * A/P account must match the `payablesAccount` used in those other transactions.
182
+ */
183
+ payablesAccount: BillCheckPayment.PayablesAccount | null;
184
+
185
+ /**
186
+ * The case-sensitive user-defined reference number for this bill check payment,
187
+ * which can be used to identify the transaction in QuickBooks. This value is not
188
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
189
+ *
190
+ * **IMPORTANT**: For checks, this field is the check number.
191
+ */
192
+ refNumber: string | null;
193
+
194
+ /**
195
+ * The current QuickBooks-assigned revision number of this bill check payment
196
+ * object, which changes each time the object is modified. When updating this
197
+ * object, you must provide the most recent `revisionNumber` to ensure you're
198
+ * working with the latest data; otherwise, the update will return an error.
199
+ */
200
+ revisionNumber: string;
201
+
202
+ /**
203
+ * The date of this bill check payment, in ISO 8601 format (YYYY-MM-DD).
204
+ */
205
+ transactionDate: string;
206
+
207
+ /**
208
+ * The date and time when this bill check payment was last updated, in ISO 8601
209
+ * format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time
210
+ * zone in QuickBooks.
211
+ */
212
+ updatedAt: string;
213
+
214
+ /**
215
+ * The vendor who sent the bill(s) that this bill check payment is paying and who
216
+ * will receive this payment.
217
+ *
218
+ * **IMPORTANT**: This vendor must match the `vendor` on the bill(s) specified in
219
+ * `applyToTransactions`.
220
+ */
221
+ vendor: BillCheckPayment.Vendor | null;
222
+ }
223
+
224
+ export namespace BillCheckPayment {
225
+ /**
226
+ * The address that is printed on the bill check payment.
227
+ */
228
+ export interface Address {
229
+ /**
230
+ * The city, district, suburb, town, or village name of the address.
231
+ */
232
+ city: string | null;
233
+
234
+ /**
235
+ * The country name of the address.
236
+ */
237
+ country: string | null;
238
+
239
+ /**
240
+ * The first line of the address (e.g., street, PO Box, or company name).
241
+ */
242
+ line1: string | null;
243
+
244
+ /**
245
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
246
+ * building).
247
+ */
248
+ line2: string | null;
249
+
250
+ /**
251
+ * The third line of the address, if needed.
252
+ */
253
+ line3: string | null;
254
+
255
+ /**
256
+ * The fourth line of the address, if needed.
257
+ */
258
+ line4: string | null;
259
+
260
+ /**
261
+ * The fifth line of the address, if needed.
262
+ */
263
+ line5: string | null;
264
+
265
+ /**
266
+ * A note written at the bottom of the address in the form in which it appears,
267
+ * such as the invoice form.
268
+ */
269
+ note: string | null;
270
+
271
+ /**
272
+ * The postal code or ZIP code of the address.
273
+ */
274
+ postalCode: string | null;
275
+
276
+ /**
277
+ * The state, county, province, or region name of the address.
278
+ */
279
+ state: string | null;
280
+ }
281
+
282
+ export interface AppliedToTransaction {
283
+ /**
284
+ * The monetary amount of this receivable transaction, represented as a decimal
285
+ * string.
286
+ */
287
+ amount: string | null;
288
+
289
+ /**
290
+ * The outstanding balance of this receivable transaction after applying any
291
+ * credits or payments. Represented as a decimal string.
292
+ */
293
+ balanceRemaining: string | null;
294
+
295
+ /**
296
+ * The financial account used to track this receivable transaction's discount.
297
+ */
298
+ discountAccount: AppliedToTransaction.DiscountAccount | null;
299
+
300
+ /**
301
+ * The monetary amount by which to reduce the receivable transaction's receivable
302
+ * amount, represented as a decimal string.
303
+ */
304
+ discountAmount: string | null;
305
+
306
+ /**
307
+ * The class used to track this receivable transaction's discount.
308
+ */
309
+ discountClass: AppliedToTransaction.DiscountClass | null;
310
+
311
+ /**
312
+ * The receivable transaction's linked transactions, such as payments applied,
313
+ * credits used, or associated purchase orders.
314
+ *
315
+ * **IMPORTANT**: You must specify the parameter `includeLinkedTransactions` when
316
+ * fetching a list of receivable transactions to receive this field because it is
317
+ * not returned by default.
318
+ */
319
+ linkedTransactions: Array<AppliedToTransaction.LinkedTransaction>;
320
+
321
+ /**
322
+ * The case-sensitive user-defined reference number for this receivable
323
+ * transaction, which can be used to identify the transaction in QuickBooks. This
324
+ * value is not required to be unique and can be arbitrarily changed by the
325
+ * QuickBooks user.
326
+ */
327
+ refNumber: string | null;
328
+
329
+ /**
330
+ * The date of this receivable transaction, in ISO 8601 format (YYYY-MM-DD).
331
+ */
332
+ transactionDate: string;
333
+
334
+ /**
335
+ * The ID of the receivable transaction to which this payment is applied.
336
+ */
337
+ transactionId: string;
338
+
339
+ /**
340
+ * The type of transaction for this receivable transaction.
341
+ */
342
+ transactionType:
343
+ | 'ar_refund_credit_card'
344
+ | 'bill'
345
+ | 'bill_payment_check'
346
+ | 'bill_payment_credit_card'
347
+ | 'build_assembly'
348
+ | 'charge'
349
+ | 'check'
350
+ | 'credit_card_charge'
351
+ | 'credit_card_credit'
352
+ | 'credit_memo'
353
+ | 'deposit'
354
+ | 'estimate'
355
+ | 'inventory_adjustment'
356
+ | 'invoice'
357
+ | 'item_receipt'
358
+ | 'journal_entry'
359
+ | 'liability_adjustment'
360
+ | 'paycheck'
361
+ | 'payroll_liability_check'
362
+ | 'purchase_order'
363
+ | 'receive_payment'
364
+ | 'sales_order'
365
+ | 'sales_receipt'
366
+ | 'sales_tax_payment_check'
367
+ | 'transfer'
368
+ | 'vendor_credit'
369
+ | 'ytd_adjustment';
370
+ }
371
+
372
+ export namespace AppliedToTransaction {
373
+ /**
374
+ * The financial account used to track this receivable transaction's discount.
375
+ */
376
+ export interface DiscountAccount {
377
+ /**
378
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
379
+ * across all objects of the same type, but not across different QuickBooks object
380
+ * types.
381
+ */
382
+ id: string | null;
383
+
384
+ /**
385
+ * The fully-qualified unique name for this object, formed by combining the names
386
+ * of its parent objects with its own `name`, separated by colons. Not
387
+ * case-sensitive.
388
+ */
389
+ fullName: string | null;
390
+ }
391
+
392
+ /**
393
+ * The class used to track this receivable transaction's discount.
394
+ */
395
+ export interface DiscountClass {
396
+ /**
397
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
398
+ * across all objects of the same type, but not across different QuickBooks object
399
+ * types.
400
+ */
401
+ id: string | null;
402
+
403
+ /**
404
+ * The fully-qualified unique name for this object, formed by combining the names
405
+ * of its parent objects with its own `name`, separated by colons. Not
406
+ * case-sensitive.
407
+ */
408
+ fullName: string | null;
409
+ }
410
+
411
+ export interface LinkedTransaction {
412
+ /**
413
+ * The unique identifier assigned by QuickBooks to this linked transaction. This ID
414
+ * is unique across all transaction types.
415
+ */
416
+ id: string;
417
+
418
+ /**
419
+ * The monetary amount of this linked transaction, represented as a decimal string.
420
+ */
421
+ amount: string | null;
422
+
423
+ /**
424
+ * Indicates the nature of the link between the transactions: `amount` denotes an
425
+ * amount-based link (e.g., an invoice linked to a payment), and `quantity` denotes
426
+ * a quantity-based link (e.g., an invoice created from a sales order based on the
427
+ * quantity of items received).
428
+ */
429
+ linkType: 'amount' | 'quantity' | null;
430
+
431
+ /**
432
+ * The type of object. This value is always `"qbd_linked_transaction"`.
433
+ */
434
+ objectType: 'qbd_linked_transaction';
435
+
436
+ /**
437
+ * The case-sensitive user-defined reference number for this linked transaction,
438
+ * which can be used to identify the transaction in QuickBooks. This value is not
439
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
440
+ */
441
+ refNumber: string | null;
442
+
443
+ /**
444
+ * The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD).
445
+ */
446
+ transactionDate: string;
447
+
448
+ /**
449
+ * The type of transaction for this linked transaction.
450
+ */
451
+ transactionType:
452
+ | 'ar_refund_credit_card'
453
+ | 'bill'
454
+ | 'bill_payment_check'
455
+ | 'bill_payment_credit_card'
456
+ | 'build_assembly'
457
+ | 'charge'
458
+ | 'check'
459
+ | 'credit_card_charge'
460
+ | 'credit_card_credit'
461
+ | 'credit_memo'
462
+ | 'deposit'
463
+ | 'estimate'
464
+ | 'inventory_adjustment'
465
+ | 'invoice'
466
+ | 'item_receipt'
467
+ | 'journal_entry'
468
+ | 'liability_adjustment'
469
+ | 'paycheck'
470
+ | 'payroll_liability_check'
471
+ | 'purchase_order'
472
+ | 'receive_payment'
473
+ | 'sales_order'
474
+ | 'sales_receipt'
475
+ | 'sales_tax_payment_check'
476
+ | 'transfer'
477
+ | 'vendor_credit'
478
+ | 'ytd_adjustment';
479
+ }
480
+ }
481
+
482
+ /**
483
+ * The bank account from which the funds are being drawn for this bill check
484
+ * payment; e.g., Checking or Savings. This bill check payment will decrease the
485
+ * balance of this account.
486
+ */
487
+ export interface BankAccount {
488
+ /**
489
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
490
+ * across all objects of the same type, but not across different QuickBooks object
491
+ * types.
492
+ */
493
+ id: string | null;
494
+
495
+ /**
496
+ * The fully-qualified unique name for this object, formed by combining the names
497
+ * of its parent objects with its own `name`, separated by colons. Not
498
+ * case-sensitive.
499
+ */
500
+ fullName: string | null;
501
+ }
502
+
503
+ /**
504
+ * The bill check payment's currency. For built-in currencies, the name and code
505
+ * are standard international values. For user-defined currencies, all values are
506
+ * editable.
507
+ */
508
+ export interface Currency {
509
+ /**
510
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
511
+ * across all objects of the same type, but not across different QuickBooks object
512
+ * types.
513
+ */
514
+ id: string | null;
515
+
516
+ /**
517
+ * The fully-qualified unique name for this object, formed by combining the names
518
+ * of its parent objects with its own `name`, separated by colons. Not
519
+ * case-sensitive.
520
+ */
521
+ fullName: string | null;
522
+ }
523
+
524
+ export interface CustomField {
525
+ /**
526
+ * The name of the custom field, unique for the specified `ownerId`. For public
527
+ * custom fields, this name is visible as a label in the QuickBooks UI.
528
+ */
529
+ name: string;
530
+
531
+ /**
532
+ * The identifier of the owner of the custom field, which QuickBooks internally
533
+ * calls a "data extension". For public custom fields visible in the UI, such as
534
+ * those added by the QuickBooks user, this is always "0". For private custom
535
+ * fields that are only visible to the application that created them, this is a
536
+ * valid GUID identifying the owning application. Internally, Conductor always
537
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
538
+ * objects.
539
+ */
540
+ ownerId: string;
541
+
542
+ /**
543
+ * The data type of this custom field.
544
+ */
545
+ type:
546
+ | 'amount_type'
547
+ | 'date_time_type'
548
+ | 'integer_type'
549
+ | 'percent_type'
550
+ | 'price_type'
551
+ | 'quantity_type'
552
+ | 'string_1024_type'
553
+ | 'string_255_type';
554
+
555
+ /**
556
+ * The value of this custom field. The maximum length depends on the field's data
557
+ * type.
558
+ */
559
+ value: string;
560
+ }
561
+
562
+ /**
563
+ * The Accounts-Payable (A/P) account to which this bill check payment is assigned,
564
+ * used to track the amount owed. If not specified, QuickBooks Desktop will use its
565
+ * default A/P account.
566
+ *
567
+ * **IMPORTANT**: If this bill check payment is linked to other transactions, this
568
+ * A/P account must match the `payablesAccount` used in those other transactions.
569
+ */
570
+ export interface PayablesAccount {
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
+ /**
587
+ * The vendor who sent the bill(s) that this bill check payment is paying and who
588
+ * will receive this payment.
589
+ *
590
+ * **IMPORTANT**: This vendor must match the `vendor` on the bill(s) specified in
591
+ * `applyToTransactions`.
592
+ */
593
+ export interface Vendor {
594
+ /**
595
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
596
+ * across all objects of the same type, but not across different QuickBooks object
597
+ * types.
598
+ */
599
+ id: string | null;
600
+
601
+ /**
602
+ * The fully-qualified unique name for this object, formed by combining the names
603
+ * of its parent objects with its own `name`, separated by colons. Not
604
+ * case-sensitive.
605
+ */
606
+ fullName: string | null;
607
+ }
608
+ }
609
+
610
+ export interface BillCheckPaymentDeleteResponse {
611
+ /**
612
+ * The QuickBooks-assigned unique identifier of the deleted bill check payment.
613
+ */
614
+ id: string;
615
+
616
+ /**
617
+ * Indicates whether the bill check payment was deleted.
618
+ */
619
+ deleted: boolean;
620
+
621
+ /**
622
+ * The type of object. This value is always `"qbd_bill_check_payment"`.
623
+ */
624
+ objectType: 'qbd_bill_check_payment';
625
+
626
+ /**
627
+ * The case-sensitive user-defined reference number of the deleted bill check
628
+ * payment.
629
+ */
630
+ refNumber: string | null;
631
+ }
632
+
633
+ export interface BillCheckPaymentCreateParams {
634
+ /**
635
+ * Body param: The bills to be paid by this bill check payment. This will create a
636
+ * link between this bill check payment and the specified bills.
637
+ *
638
+ * **IMPORTANT**: In each `applyToTransactions` object, you must specify either
639
+ * `paymentAmount`, `applyCredits`, `discountAmount`, or any combination of these;
640
+ * if none of these are specified, you will receive an error for an empty
641
+ * transaction.
642
+ *
643
+ * **IMPORTANT**: The target bill must have `isPaid=false`, otherwise, QuickBooks
644
+ * will report this object as "cannot be found".
645
+ */
646
+ applyToTransactions: Array<BillCheckPaymentCreateParams.ApplyToTransaction>;
647
+
648
+ /**
649
+ * Body param: The bank account from which the funds are being drawn for this bill
650
+ * check payment; e.g., Checking or Savings. This bill check payment will decrease
651
+ * the balance of this account.
652
+ */
653
+ bankAccountId: string;
654
+
655
+ /**
656
+ * Body param: The date of this bill check payment, in ISO 8601 format
657
+ * (YYYY-MM-DD).
658
+ */
659
+ transactionDate: string;
660
+
661
+ /**
662
+ * Body param: The vendor who sent the bill(s) that this bill check payment is
663
+ * paying and who will receive this payment.
664
+ *
665
+ * **IMPORTANT**: This vendor must match the `vendor` on the bill(s) specified in
666
+ * `applyToTransactions`; otherwise, QuickBooks will say the `transactionId` in
667
+ * `applyToTransactions` "does not exist".
668
+ */
669
+ vendorId: string;
670
+
671
+ /**
672
+ * Header param: The ID of the EndUser to receive this request (e.g.,
673
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
674
+ */
675
+ conductorEndUserId: string;
676
+
677
+ /**
678
+ * Body param: The market exchange rate between this bill check payment's currency
679
+ * and the home currency in QuickBooks at the time of this transaction. Represented
680
+ * as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
681
+ * currency).
682
+ */
683
+ exchangeRate?: number;
684
+
685
+ /**
686
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
687
+ * for tracking this object in your external system. This field is immutable and
688
+ * can only be set during object creation.
689
+ *
690
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
691
+ * QuickBooks will return an error.
692
+ */
693
+ externalId?: string;
694
+
695
+ /**
696
+ * Body param: Indicates whether this bill check payment is included in the queue
697
+ * of documents for QuickBooks to print.
698
+ */
699
+ isQueuedForPrint?: boolean;
700
+
701
+ /**
702
+ * Body param: A memo or note for this bill check payment.
703
+ */
704
+ memo?: string;
705
+
706
+ /**
707
+ * Body param: The Accounts-Payable (A/P) account to which this bill check payment
708
+ * is assigned, used to track the amount owed. If not specified, QuickBooks Desktop
709
+ * will use its default A/P account.
710
+ *
711
+ * **IMPORTANT**: If this bill check payment is linked to other transactions, this
712
+ * A/P account must match the `payablesAccount` used in those other transactions.
713
+ */
714
+ payablesAccountId?: string;
715
+
716
+ /**
717
+ * Body param: The case-sensitive user-defined reference number for this bill check
718
+ * payment, which can be used to identify the transaction in QuickBooks. This value
719
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
720
+ * user. When left blank in this create request, this field will be left blank in
721
+ * QuickBooks (i.e., it does _not_ auto-increment).
722
+ *
723
+ * **IMPORTANT**: For checks, this field is the check number.
724
+ */
725
+ refNumber?: string;
726
+ }
727
+
728
+ export namespace BillCheckPaymentCreateParams {
729
+ export interface ApplyToTransaction {
730
+ /**
731
+ * The ID of the receivable transaction to which this payment is applied.
732
+ */
733
+ transactionId: string;
734
+
735
+ /**
736
+ * Credit memos to apply to this receivable transaction, reducing its balance. This
737
+ * creates a link between this receivable transaction and the specified credit
738
+ * memos.
739
+ *
740
+ * **IMPORTANT**: By default, QuickBooks will not return any information about the
741
+ * linked transactions in this endpoint's response even when this request is
742
+ * successful. To see the transactions linked via this field, refetch the
743
+ * receivable transaction and check the `linkedTransactions` response field. If
744
+ * fetching a list of receivable transactions, you must also specify the parameter
745
+ * `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
746
+ */
747
+ applyCredits?: Array<ApplyToTransaction.ApplyCredit>;
748
+
749
+ /**
750
+ * The financial account used to track this receivable transaction's discount.
751
+ */
752
+ discountAccountId?: string;
753
+
754
+ /**
755
+ * The monetary amount by which to reduce the receivable transaction's receivable
756
+ * amount, represented as a decimal string.
757
+ */
758
+ discountAmount?: string;
759
+
760
+ /**
761
+ * The class used to track this receivable transaction's discount.
762
+ */
763
+ discountClassId?: string;
764
+
765
+ /**
766
+ * The monetary amount to apply to the receivable transaction, represented as a
767
+ * decimal string.
768
+ */
769
+ paymentAmount?: string;
770
+ }
771
+
772
+ export namespace ApplyToTransaction {
773
+ export interface ApplyCredit {
774
+ /**
775
+ * The amount of credit applied to this transaction. This could include customer
776
+ * deposits, payments, or credits. Represented as a decimal string.
777
+ */
778
+ appliedAmount: string;
779
+
780
+ /**
781
+ * The unique identifier of the credit transaction (credit memo or vendor credit)
782
+ * to apply to this transaction.
783
+ */
784
+ creditTransactionId: string;
785
+
786
+ /**
787
+ * Indicates whether to override the credit.
788
+ */
789
+ overrideCreditApplication?: boolean;
790
+ }
791
+ }
792
+ }
793
+
794
+ export interface BillCheckPaymentRetrieveParams {
795
+ /**
796
+ * The ID of the EndUser to receive this request (e.g.,
797
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
798
+ */
799
+ conductorEndUserId: string;
800
+ }
801
+
802
+ export interface BillCheckPaymentUpdateParams {
803
+ /**
804
+ * Body param: The current QuickBooks-assigned revision number of the bill check
805
+ * payment object you are updating, which you can get by fetching the object first.
806
+ * Provide the most recent `revisionNumber` to ensure you're working with the
807
+ * latest data; otherwise, the update will return an error.
808
+ */
809
+ revisionNumber: string;
810
+
811
+ /**
812
+ * Header param: The ID of the EndUser to receive this request (e.g.,
813
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
814
+ */
815
+ conductorEndUserId: string;
816
+
817
+ /**
818
+ * Body param: The monetary amount of this bill check payment, represented as a
819
+ * decimal string.
820
+ */
821
+ amount?: string;
822
+
823
+ /**
824
+ * Body param: The bills to be paid by this bill check payment. This will create a
825
+ * link between this bill check payment and the specified bills.
826
+ *
827
+ * **IMPORTANT**: In each `applyToTransactions` object, you must specify either
828
+ * `paymentAmount`, `applyCredits`, `discountAmount`, or any combination of these;
829
+ * if none of these are specified, you will receive an error for an empty
830
+ * transaction.
831
+ *
832
+ * **IMPORTANT**: The target bill must have `isPaid=false`, otherwise, QuickBooks
833
+ * will report this object as "cannot be found".
834
+ */
835
+ applyToTransactions?: Array<BillCheckPaymentUpdateParams.ApplyToTransaction>;
836
+
837
+ /**
838
+ * Body param: The bank account from which the funds are being drawn for this bill
839
+ * check payment; e.g., Checking or Savings. This bill check payment will decrease
840
+ * the balance of this account.
841
+ */
842
+ bankAccountId?: string;
843
+
844
+ /**
845
+ * Body param: The market exchange rate between this bill check payment's currency
846
+ * and the home currency in QuickBooks at the time of this transaction. Represented
847
+ * as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
848
+ * currency).
849
+ */
850
+ exchangeRate?: number;
851
+
852
+ /**
853
+ * Body param: Indicates whether this bill check payment is included in the queue
854
+ * of documents for QuickBooks to print.
855
+ */
856
+ isQueuedForPrint?: boolean;
857
+
858
+ /**
859
+ * Body param: A memo or note for this bill check payment.
860
+ */
861
+ memo?: string;
862
+
863
+ /**
864
+ * Body param: The case-sensitive user-defined reference number for this bill check
865
+ * payment, which can be used to identify the transaction in QuickBooks. This value
866
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
867
+ * user.
868
+ *
869
+ * **IMPORTANT**: For checks, this field is the check number.
870
+ */
871
+ refNumber?: string;
872
+
873
+ /**
874
+ * Body param: The date of this bill check payment, in ISO 8601 format
875
+ * (YYYY-MM-DD).
876
+ */
877
+ transactionDate?: string;
878
+ }
879
+
880
+ export namespace BillCheckPaymentUpdateParams {
881
+ export interface ApplyToTransaction {
882
+ /**
883
+ * The ID of the receivable transaction to which this payment is applied.
884
+ */
885
+ transactionId: string;
886
+
887
+ /**
888
+ * Credit memos to apply to this receivable transaction, reducing its balance. This
889
+ * creates a link between this receivable transaction and the specified credit
890
+ * memos.
891
+ *
892
+ * **IMPORTANT**: By default, QuickBooks will not return any information about the
893
+ * linked transactions in this endpoint's response even when this request is
894
+ * successful. To see the transactions linked via this field, refetch the
895
+ * receivable transaction and check the `linkedTransactions` response field. If
896
+ * fetching a list of receivable transactions, you must also specify the parameter
897
+ * `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
898
+ */
899
+ applyCredits?: Array<ApplyToTransaction.ApplyCredit>;
900
+
901
+ /**
902
+ * The financial account used to track this receivable transaction's discount.
903
+ */
904
+ discountAccountId?: string;
905
+
906
+ /**
907
+ * The monetary amount by which to reduce the receivable transaction's receivable
908
+ * amount, represented as a decimal string.
909
+ */
910
+ discountAmount?: string;
911
+
912
+ /**
913
+ * The class used to track this receivable transaction's discount.
914
+ */
915
+ discountClassId?: string;
916
+
917
+ /**
918
+ * The monetary amount to apply to the receivable transaction, represented as a
919
+ * decimal string.
920
+ */
921
+ paymentAmount?: string;
922
+ }
923
+
924
+ export namespace ApplyToTransaction {
925
+ export interface ApplyCredit {
926
+ /**
927
+ * The amount of credit applied to this transaction. This could include customer
928
+ * deposits, payments, or credits. Represented as a decimal string.
929
+ */
930
+ appliedAmount: string;
931
+
932
+ /**
933
+ * The unique identifier of the credit transaction (credit memo or vendor credit)
934
+ * to apply to this transaction.
935
+ */
936
+ creditTransactionId: string;
937
+
938
+ /**
939
+ * Indicates whether to override the credit.
940
+ */
941
+ overrideCreditApplication?: boolean;
942
+ }
943
+ }
944
+ }
945
+
946
+ export interface BillCheckPaymentListParams extends CursorPageParams {
947
+ /**
948
+ * Header param: The ID of the EndUser to receive this request (e.g.,
949
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
950
+ */
951
+ conductorEndUserId: string;
952
+
953
+ /**
954
+ * Query param: Filter for bill check payments associated with these accounts.
955
+ */
956
+ accountIds?: Array<string>;
957
+
958
+ /**
959
+ * Query param: Filter for bill check payments in these currencies.
960
+ */
961
+ currencyIds?: Array<string>;
962
+
963
+ /**
964
+ * Query param: Filter for specific bill check payments by their
965
+ * QuickBooks-assigned unique identifier(s).
966
+ *
967
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
968
+ * query parameters for this request.
969
+ *
970
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
971
+ * request will return an error.
972
+ */
973
+ ids?: Array<string>;
974
+
975
+ /**
976
+ * Query param: Whether to include line items in the response. Defaults to `true`.
977
+ */
978
+ includeLineItems?: boolean;
979
+
980
+ /**
981
+ * Query param: Filter for bill check payments whose `refNumber` contains this
982
+ * substring. (For checks, this field is the check number.) NOTE: If you use this
983
+ * parameter, you cannot also use `refNumberStartsWith` or `refNumberEndsWith`.
984
+ */
985
+ refNumberContains?: string;
986
+
987
+ /**
988
+ * Query param: Filter for bill check payments whose `refNumber` ends with this
989
+ * substring. (For checks, this field is the check number.) NOTE: If you use this
990
+ * parameter, you cannot also use `refNumberContains` or `refNumberStartsWith`.
991
+ */
992
+ refNumberEndsWith?: string;
993
+
994
+ /**
995
+ * Query param: Filter for bill check payments whose `refNumber` is greater than or
996
+ * equal to this value. (For checks, this field is the check number.) If omitted,
997
+ * the range will begin with the first number of the list. Uses a numerical
998
+ * comparison for values that contain only digits; otherwise, uses a
999
+ * lexicographical comparison.
1000
+ */
1001
+ refNumberFrom?: string;
1002
+
1003
+ /**
1004
+ * Query param: Filter for specific bill check payments by their ref-number(s),
1005
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
1006
+ * be arbitrarily changed by the QuickBooks user.
1007
+ *
1008
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1009
+ * query parameters for this request.
1010
+ *
1011
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1012
+ * request will return an error.
1013
+ */
1014
+ refNumbers?: Array<string>;
1015
+
1016
+ /**
1017
+ * Query param: Filter for bill check payments whose `refNumber` starts with this
1018
+ * substring. (For checks, this field is the check number.) NOTE: If you use this
1019
+ * parameter, you cannot also use `refNumberContains` or `refNumberEndsWith`.
1020
+ */
1021
+ refNumberStartsWith?: string;
1022
+
1023
+ /**
1024
+ * Query param: Filter for bill check payments whose `refNumber` is less than or
1025
+ * equal to this value. (For checks, this field is the check number.) If omitted,
1026
+ * the range will end with the last number of the list. Uses a numerical comparison
1027
+ * for values that contain only digits; otherwise, uses a lexicographical
1028
+ * comparison.
1029
+ */
1030
+ refNumberTo?: string;
1031
+
1032
+ /**
1033
+ * Query param: Filter for bill check payments created on or after this date, in
1034
+ * ISO 8601 format (YYYY-MM-DD).
1035
+ */
1036
+ transactionDateFrom?: string;
1037
+
1038
+ /**
1039
+ * Query param: Filter for bill check payments created on or before this date, in
1040
+ * ISO 8601 format (YYYY-MM-DD).
1041
+ */
1042
+ transactionDateTo?: string;
1043
+
1044
+ /**
1045
+ * Query param: Filter for bill check payments updated on or after this date and
1046
+ * time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1047
+ * (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
1048
+ */
1049
+ updatedAfter?: string;
1050
+
1051
+ /**
1052
+ * Query param: Filter for bill check payments updated on or before this date and
1053
+ * time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1054
+ * (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
1055
+ */
1056
+ updatedBefore?: string;
1057
+
1058
+ /**
1059
+ * Query param: Filter for bill check payments sent to these vendors. These are the
1060
+ * vendors who sent the bills paid by these checks.
1061
+ */
1062
+ vendorIds?: Array<string>;
1063
+ }
1064
+
1065
+ export interface BillCheckPaymentDeleteParams {
1066
+ /**
1067
+ * The ID of the EndUser to receive this request (e.g.,
1068
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1069
+ */
1070
+ conductorEndUserId: string;
1071
+ }
1072
+
1073
+ BillCheckPayments.BillCheckPaymentsCursorPage = BillCheckPaymentsCursorPage;
1074
+
1075
+ export declare namespace BillCheckPayments {
1076
+ export {
1077
+ type BillCheckPayment as BillCheckPayment,
1078
+ type BillCheckPaymentDeleteResponse as BillCheckPaymentDeleteResponse,
1079
+ BillCheckPaymentsCursorPage as BillCheckPaymentsCursorPage,
1080
+ type BillCheckPaymentCreateParams as BillCheckPaymentCreateParams,
1081
+ type BillCheckPaymentRetrieveParams as BillCheckPaymentRetrieveParams,
1082
+ type BillCheckPaymentUpdateParams as BillCheckPaymentUpdateParams,
1083
+ type BillCheckPaymentListParams as BillCheckPaymentListParams,
1084
+ type BillCheckPaymentDeleteParams as BillCheckPaymentDeleteParams,
1085
+ };
1086
+ }