conductor-node 14.9.0 → 14.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/bin/cli +12 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +11 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +11 -0
  8. package/client.mjs.map +1 -1
  9. package/internal/types.d.mts +6 -6
  10. package/internal/types.d.mts.map +1 -1
  11. package/internal/types.d.ts +6 -6
  12. package/internal/types.d.ts.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/qbd/account-tax-lines.d.mts +5 -3
  15. package/resources/qbd/account-tax-lines.d.mts.map +1 -1
  16. package/resources/qbd/account-tax-lines.d.ts +5 -3
  17. package/resources/qbd/account-tax-lines.d.ts.map +1 -1
  18. package/resources/qbd/account-tax-lines.js +5 -3
  19. package/resources/qbd/account-tax-lines.js.map +1 -1
  20. package/resources/qbd/account-tax-lines.mjs +5 -3
  21. package/resources/qbd/account-tax-lines.mjs.map +1 -1
  22. package/resources/qbd/accounts.d.mts +4 -3
  23. package/resources/qbd/accounts.d.mts.map +1 -1
  24. package/resources/qbd/accounts.d.ts +4 -3
  25. package/resources/qbd/accounts.d.ts.map +1 -1
  26. package/resources/qbd/accounts.js +4 -3
  27. package/resources/qbd/accounts.js.map +1 -1
  28. package/resources/qbd/accounts.mjs +4 -3
  29. package/resources/qbd/accounts.mjs.map +1 -1
  30. package/resources/qbd/bill-check-payments.d.mts +52 -1
  31. package/resources/qbd/bill-check-payments.d.mts.map +1 -1
  32. package/resources/qbd/bill-check-payments.d.ts +52 -1
  33. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  34. package/resources/qbd/bill-check-payments.js +20 -0
  35. package/resources/qbd/bill-check-payments.js.map +1 -1
  36. package/resources/qbd/bill-check-payments.mjs +20 -0
  37. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  38. package/resources/qbd/bill-credit-card-payments.d.mts +54 -1
  39. package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -1
  40. package/resources/qbd/bill-credit-card-payments.d.ts +54 -1
  41. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  42. package/resources/qbd/bill-credit-card-payments.js +21 -0
  43. package/resources/qbd/bill-credit-card-payments.js.map +1 -1
  44. package/resources/qbd/bill-credit-card-payments.mjs +21 -0
  45. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  46. package/resources/qbd/bills.d.mts +55 -1
  47. package/resources/qbd/bills.d.mts.map +1 -1
  48. package/resources/qbd/bills.d.ts +55 -1
  49. package/resources/qbd/bills.d.ts.map +1 -1
  50. package/resources/qbd/bills.js +24 -0
  51. package/resources/qbd/bills.js.map +1 -1
  52. package/resources/qbd/bills.mjs +24 -0
  53. package/resources/qbd/bills.mjs.map +1 -1
  54. package/resources/qbd/checks.d.mts +55 -1
  55. package/resources/qbd/checks.d.mts.map +1 -1
  56. package/resources/qbd/checks.d.ts +55 -1
  57. package/resources/qbd/checks.d.ts.map +1 -1
  58. package/resources/qbd/checks.js +24 -0
  59. package/resources/qbd/checks.js.map +1 -1
  60. package/resources/qbd/checks.mjs +24 -0
  61. package/resources/qbd/checks.mjs.map +1 -1
  62. package/resources/qbd/classes.d.mts +4 -3
  63. package/resources/qbd/classes.d.mts.map +1 -1
  64. package/resources/qbd/classes.d.ts +4 -3
  65. package/resources/qbd/classes.d.ts.map +1 -1
  66. package/resources/qbd/classes.js +4 -3
  67. package/resources/qbd/classes.js.map +1 -1
  68. package/resources/qbd/classes.mjs +4 -3
  69. package/resources/qbd/classes.mjs.map +1 -1
  70. package/resources/qbd/credit-card-charges.d.mts +56 -1
  71. package/resources/qbd/credit-card-charges.d.mts.map +1 -1
  72. package/resources/qbd/credit-card-charges.d.ts +56 -1
  73. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  74. package/resources/qbd/credit-card-charges.js +24 -0
  75. package/resources/qbd/credit-card-charges.js.map +1 -1
  76. package/resources/qbd/credit-card-charges.mjs +24 -0
  77. package/resources/qbd/credit-card-charges.mjs.map +1 -1
  78. package/resources/qbd/credit-card-credits.d.mts +56 -1
  79. package/resources/qbd/credit-card-credits.d.mts.map +1 -1
  80. package/resources/qbd/credit-card-credits.d.ts +56 -1
  81. package/resources/qbd/credit-card-credits.d.ts.map +1 -1
  82. package/resources/qbd/credit-card-credits.js +24 -0
  83. package/resources/qbd/credit-card-credits.js.map +1 -1
  84. package/resources/qbd/credit-card-credits.mjs +24 -0
  85. package/resources/qbd/credit-card-credits.mjs.map +1 -1
  86. package/resources/qbd/credit-card-refunds.d.mts +52 -1
  87. package/resources/qbd/credit-card-refunds.d.mts.map +1 -1
  88. package/resources/qbd/credit-card-refunds.d.ts +52 -1
  89. package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
  90. package/resources/qbd/credit-card-refunds.js +20 -0
  91. package/resources/qbd/credit-card-refunds.js.map +1 -1
  92. package/resources/qbd/credit-card-refunds.mjs +20 -0
  93. package/resources/qbd/credit-card-refunds.mjs.map +1 -1
  94. package/resources/qbd/credit-memos.d.mts +55 -1
  95. package/resources/qbd/credit-memos.d.mts.map +1 -1
  96. package/resources/qbd/credit-memos.d.ts +55 -1
  97. package/resources/qbd/credit-memos.d.ts.map +1 -1
  98. package/resources/qbd/credit-memos.js +24 -0
  99. package/resources/qbd/credit-memos.js.map +1 -1
  100. package/resources/qbd/credit-memos.mjs +24 -0
  101. package/resources/qbd/credit-memos.mjs.map +1 -1
  102. package/resources/qbd/currencies.d.mts +4 -3
  103. package/resources/qbd/currencies.d.mts.map +1 -1
  104. package/resources/qbd/currencies.d.ts +4 -3
  105. package/resources/qbd/currencies.d.ts.map +1 -1
  106. package/resources/qbd/currencies.js +4 -3
  107. package/resources/qbd/currencies.js.map +1 -1
  108. package/resources/qbd/currencies.mjs +4 -3
  109. package/resources/qbd/currencies.mjs.map +1 -1
  110. package/resources/qbd/customer-types.d.mts +4 -3
  111. package/resources/qbd/customer-types.d.mts.map +1 -1
  112. package/resources/qbd/customer-types.d.ts +4 -3
  113. package/resources/qbd/customer-types.d.ts.map +1 -1
  114. package/resources/qbd/customer-types.js +4 -3
  115. package/resources/qbd/customer-types.js.map +1 -1
  116. package/resources/qbd/customer-types.mjs +4 -3
  117. package/resources/qbd/customer-types.mjs.map +1 -1
  118. package/resources/qbd/customers.d.mts +17 -2
  119. package/resources/qbd/customers.d.mts.map +1 -1
  120. package/resources/qbd/customers.d.ts +17 -2
  121. package/resources/qbd/customers.d.ts.map +1 -1
  122. package/resources/qbd/customers.js +4 -0
  123. package/resources/qbd/customers.js.map +1 -1
  124. package/resources/qbd/customers.mjs +4 -0
  125. package/resources/qbd/customers.mjs.map +1 -1
  126. package/resources/qbd/date-driven-terms.d.mts +5 -3
  127. package/resources/qbd/date-driven-terms.d.mts.map +1 -1
  128. package/resources/qbd/date-driven-terms.d.ts +5 -3
  129. package/resources/qbd/date-driven-terms.d.ts.map +1 -1
  130. package/resources/qbd/date-driven-terms.js +5 -3
  131. package/resources/qbd/date-driven-terms.js.map +1 -1
  132. package/resources/qbd/date-driven-terms.mjs +5 -3
  133. package/resources/qbd/date-driven-terms.mjs.map +1 -1
  134. package/resources/qbd/deleted-list-objects.d.mts +4 -0
  135. package/resources/qbd/deleted-list-objects.d.mts.map +1 -1
  136. package/resources/qbd/deleted-list-objects.d.ts +4 -0
  137. package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
  138. package/resources/qbd/deleted-list-objects.js +4 -0
  139. package/resources/qbd/deleted-list-objects.js.map +1 -1
  140. package/resources/qbd/deleted-list-objects.mjs +4 -0
  141. package/resources/qbd/deleted-list-objects.mjs.map +1 -1
  142. package/resources/qbd/deleted-transactions.d.mts +4 -0
  143. package/resources/qbd/deleted-transactions.d.mts.map +1 -1
  144. package/resources/qbd/deleted-transactions.d.ts +4 -0
  145. package/resources/qbd/deleted-transactions.d.ts.map +1 -1
  146. package/resources/qbd/deleted-transactions.js +4 -0
  147. package/resources/qbd/deleted-transactions.js.map +1 -1
  148. package/resources/qbd/deleted-transactions.mjs +4 -0
  149. package/resources/qbd/deleted-transactions.mjs.map +1 -1
  150. package/resources/qbd/deposits.d.mts +879 -0
  151. package/resources/qbd/deposits.d.mts.map +1 -0
  152. package/resources/qbd/deposits.d.ts +879 -0
  153. package/resources/qbd/deposits.d.ts.map +1 -0
  154. package/resources/qbd/deposits.js +144 -0
  155. package/resources/qbd/deposits.js.map +1 -0
  156. package/resources/qbd/deposits.mjs +140 -0
  157. package/resources/qbd/deposits.mjs.map +1 -0
  158. package/resources/qbd/employees.d.mts +4 -3
  159. package/resources/qbd/employees.d.mts.map +1 -1
  160. package/resources/qbd/employees.d.ts +4 -3
  161. package/resources/qbd/employees.d.ts.map +1 -1
  162. package/resources/qbd/employees.js +4 -3
  163. package/resources/qbd/employees.js.map +1 -1
  164. package/resources/qbd/employees.mjs +4 -3
  165. package/resources/qbd/employees.mjs.map +1 -1
  166. package/resources/qbd/estimates.d.mts +4 -0
  167. package/resources/qbd/estimates.d.mts.map +1 -1
  168. package/resources/qbd/estimates.d.ts +4 -0
  169. package/resources/qbd/estimates.d.ts.map +1 -1
  170. package/resources/qbd/estimates.js +4 -0
  171. package/resources/qbd/estimates.js.map +1 -1
  172. package/resources/qbd/estimates.mjs +4 -0
  173. package/resources/qbd/estimates.mjs.map +1 -1
  174. package/resources/qbd/index.d.mts +16 -14
  175. package/resources/qbd/index.d.mts.map +1 -1
  176. package/resources/qbd/index.d.ts +16 -14
  177. package/resources/qbd/index.d.ts.map +1 -1
  178. package/resources/qbd/index.js +6 -2
  179. package/resources/qbd/index.js.map +1 -1
  180. package/resources/qbd/index.mjs +2 -0
  181. package/resources/qbd/index.mjs.map +1 -1
  182. package/resources/qbd/inventory-adjustments.d.mts +62 -4
  183. package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
  184. package/resources/qbd/inventory-adjustments.d.ts +62 -4
  185. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  186. package/resources/qbd/inventory-adjustments.js +30 -3
  187. package/resources/qbd/inventory-adjustments.js.map +1 -1
  188. package/resources/qbd/inventory-adjustments.mjs +30 -3
  189. package/resources/qbd/inventory-adjustments.mjs.map +1 -1
  190. package/resources/qbd/inventory-sites.d.mts +4 -3
  191. package/resources/qbd/inventory-sites.d.mts.map +1 -1
  192. package/resources/qbd/inventory-sites.d.ts +4 -3
  193. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  194. package/resources/qbd/inventory-sites.js +4 -3
  195. package/resources/qbd/inventory-sites.js.map +1 -1
  196. package/resources/qbd/inventory-sites.mjs +4 -3
  197. package/resources/qbd/inventory-sites.mjs.map +1 -1
  198. package/resources/qbd/invoices.d.mts +55 -1
  199. package/resources/qbd/invoices.d.mts.map +1 -1
  200. package/resources/qbd/invoices.d.ts +55 -1
  201. package/resources/qbd/invoices.d.ts.map +1 -1
  202. package/resources/qbd/invoices.js +24 -0
  203. package/resources/qbd/invoices.js.map +1 -1
  204. package/resources/qbd/invoices.mjs +24 -0
  205. package/resources/qbd/invoices.mjs.map +1 -1
  206. package/resources/qbd/item-receipts.d.mts +55 -1
  207. package/resources/qbd/item-receipts.d.mts.map +1 -1
  208. package/resources/qbd/item-receipts.d.ts +55 -1
  209. package/resources/qbd/item-receipts.d.ts.map +1 -1
  210. package/resources/qbd/item-receipts.js +24 -0
  211. package/resources/qbd/item-receipts.js.map +1 -1
  212. package/resources/qbd/item-receipts.mjs +24 -0
  213. package/resources/qbd/item-receipts.mjs.map +1 -1
  214. package/resources/qbd/journal-entries.d.mts +55 -1
  215. package/resources/qbd/journal-entries.d.mts.map +1 -1
  216. package/resources/qbd/journal-entries.d.ts +55 -1
  217. package/resources/qbd/journal-entries.d.ts.map +1 -1
  218. package/resources/qbd/journal-entries.js +24 -0
  219. package/resources/qbd/journal-entries.js.map +1 -1
  220. package/resources/qbd/journal-entries.mjs +24 -0
  221. package/resources/qbd/journal-entries.mjs.map +1 -1
  222. package/resources/qbd/other-names.d.mts +4 -3
  223. package/resources/qbd/other-names.d.mts.map +1 -1
  224. package/resources/qbd/other-names.d.ts +4 -3
  225. package/resources/qbd/other-names.d.ts.map +1 -1
  226. package/resources/qbd/other-names.js +4 -3
  227. package/resources/qbd/other-names.js.map +1 -1
  228. package/resources/qbd/other-names.mjs +4 -3
  229. package/resources/qbd/other-names.mjs.map +1 -1
  230. package/resources/qbd/payment-methods.d.mts +4 -3
  231. package/resources/qbd/payment-methods.d.mts.map +1 -1
  232. package/resources/qbd/payment-methods.d.ts +4 -3
  233. package/resources/qbd/payment-methods.d.ts.map +1 -1
  234. package/resources/qbd/payment-methods.js +4 -3
  235. package/resources/qbd/payment-methods.js.map +1 -1
  236. package/resources/qbd/payment-methods.mjs +4 -3
  237. package/resources/qbd/payment-methods.mjs.map +1 -1
  238. package/resources/qbd/payments-to-deposit.d.mts +139 -0
  239. package/resources/qbd/payments-to-deposit.d.mts.map +1 -0
  240. package/resources/qbd/payments-to-deposit.d.ts +139 -0
  241. package/resources/qbd/payments-to-deposit.d.ts.map +1 -0
  242. package/resources/qbd/payments-to-deposit.js +35 -0
  243. package/resources/qbd/payments-to-deposit.js.map +1 -0
  244. package/resources/qbd/payments-to-deposit.mjs +31 -0
  245. package/resources/qbd/payments-to-deposit.mjs.map +1 -0
  246. package/resources/qbd/price-levels.d.mts +4 -3
  247. package/resources/qbd/price-levels.d.mts.map +1 -1
  248. package/resources/qbd/price-levels.d.ts +4 -3
  249. package/resources/qbd/price-levels.d.ts.map +1 -1
  250. package/resources/qbd/price-levels.js +4 -3
  251. package/resources/qbd/price-levels.js.map +1 -1
  252. package/resources/qbd/price-levels.mjs +4 -3
  253. package/resources/qbd/price-levels.mjs.map +1 -1
  254. package/resources/qbd/purchase-orders.d.mts +4 -0
  255. package/resources/qbd/purchase-orders.d.mts.map +1 -1
  256. package/resources/qbd/purchase-orders.d.ts +4 -0
  257. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  258. package/resources/qbd/purchase-orders.js +4 -0
  259. package/resources/qbd/purchase-orders.js.map +1 -1
  260. package/resources/qbd/purchase-orders.mjs +4 -0
  261. package/resources/qbd/purchase-orders.mjs.map +1 -1
  262. package/resources/qbd/qbd.d.mts +36 -28
  263. package/resources/qbd/qbd.d.mts.map +1 -1
  264. package/resources/qbd/qbd.d.ts +36 -28
  265. package/resources/qbd/qbd.d.ts.map +1 -1
  266. package/resources/qbd/qbd.js +8 -0
  267. package/resources/qbd/qbd.js.map +1 -1
  268. package/resources/qbd/qbd.mjs +8 -0
  269. package/resources/qbd/qbd.mjs.map +1 -1
  270. package/resources/qbd/sales-orders.d.mts +4 -0
  271. package/resources/qbd/sales-orders.d.mts.map +1 -1
  272. package/resources/qbd/sales-orders.d.ts +4 -0
  273. package/resources/qbd/sales-orders.d.ts.map +1 -1
  274. package/resources/qbd/sales-orders.js +4 -0
  275. package/resources/qbd/sales-orders.js.map +1 -1
  276. package/resources/qbd/sales-orders.mjs +4 -0
  277. package/resources/qbd/sales-orders.mjs.map +1 -1
  278. package/resources/qbd/sales-receipts.d.mts +55 -1
  279. package/resources/qbd/sales-receipts.d.mts.map +1 -1
  280. package/resources/qbd/sales-receipts.d.ts +55 -1
  281. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  282. package/resources/qbd/sales-receipts.js +24 -0
  283. package/resources/qbd/sales-receipts.js.map +1 -1
  284. package/resources/qbd/sales-receipts.mjs +24 -0
  285. package/resources/qbd/sales-receipts.mjs.map +1 -1
  286. package/resources/qbd/sales-representatives.d.mts +5 -3
  287. package/resources/qbd/sales-representatives.d.mts.map +1 -1
  288. package/resources/qbd/sales-representatives.d.ts +5 -3
  289. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  290. package/resources/qbd/sales-representatives.js +5 -3
  291. package/resources/qbd/sales-representatives.js.map +1 -1
  292. package/resources/qbd/sales-representatives.mjs +5 -3
  293. package/resources/qbd/sales-representatives.mjs.map +1 -1
  294. package/resources/qbd/sales-tax-codes.d.mts +4 -3
  295. package/resources/qbd/sales-tax-codes.d.mts.map +1 -1
  296. package/resources/qbd/sales-tax-codes.d.ts +4 -3
  297. package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
  298. package/resources/qbd/sales-tax-codes.js +4 -3
  299. package/resources/qbd/sales-tax-codes.js.map +1 -1
  300. package/resources/qbd/sales-tax-codes.mjs +4 -3
  301. package/resources/qbd/sales-tax-codes.mjs.map +1 -1
  302. package/resources/qbd/shipping-methods.d.mts +5 -3
  303. package/resources/qbd/shipping-methods.d.mts.map +1 -1
  304. package/resources/qbd/shipping-methods.d.ts +5 -3
  305. package/resources/qbd/shipping-methods.d.ts.map +1 -1
  306. package/resources/qbd/shipping-methods.js +5 -3
  307. package/resources/qbd/shipping-methods.js.map +1 -1
  308. package/resources/qbd/shipping-methods.mjs +5 -3
  309. package/resources/qbd/shipping-methods.mjs.map +1 -1
  310. package/resources/qbd/standard-terms.d.mts +4 -3
  311. package/resources/qbd/standard-terms.d.mts.map +1 -1
  312. package/resources/qbd/standard-terms.d.ts +4 -3
  313. package/resources/qbd/standard-terms.d.ts.map +1 -1
  314. package/resources/qbd/standard-terms.js +4 -3
  315. package/resources/qbd/standard-terms.js.map +1 -1
  316. package/resources/qbd/standard-terms.mjs +4 -3
  317. package/resources/qbd/standard-terms.mjs.map +1 -1
  318. package/resources/qbd/time-tracking-activities.d.mts +0 -5
  319. package/resources/qbd/time-tracking-activities.d.mts.map +1 -1
  320. package/resources/qbd/time-tracking-activities.d.ts +0 -5
  321. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  322. package/resources/qbd/transactions.d.mts +2 -1
  323. package/resources/qbd/transactions.d.mts.map +1 -1
  324. package/resources/qbd/transactions.d.ts +2 -1
  325. package/resources/qbd/transactions.d.ts.map +1 -1
  326. package/resources/qbd/transactions.js +2 -1
  327. package/resources/qbd/transactions.js.map +1 -1
  328. package/resources/qbd/transactions.mjs +2 -1
  329. package/resources/qbd/transactions.mjs.map +1 -1
  330. package/resources/qbd/unit-of-measure-sets.d.mts +4 -0
  331. package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -1
  332. package/resources/qbd/unit-of-measure-sets.d.ts +4 -0
  333. package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
  334. package/resources/qbd/unit-of-measure-sets.js +4 -0
  335. package/resources/qbd/unit-of-measure-sets.js.map +1 -1
  336. package/resources/qbd/unit-of-measure-sets.mjs +4 -0
  337. package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
  338. package/resources/qbd/vendor-credits.d.mts +55 -1
  339. package/resources/qbd/vendor-credits.d.mts.map +1 -1
  340. package/resources/qbd/vendor-credits.d.ts +55 -1
  341. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  342. package/resources/qbd/vendor-credits.js +24 -0
  343. package/resources/qbd/vendor-credits.js.map +1 -1
  344. package/resources/qbd/vendor-credits.mjs +24 -0
  345. package/resources/qbd/vendor-credits.mjs.map +1 -1
  346. package/src/client.ts +12 -0
  347. package/src/internal/types.ts +6 -8
  348. package/src/resources/qbd/account-tax-lines.ts +5 -3
  349. package/src/resources/qbd/accounts.ts +4 -3
  350. package/src/resources/qbd/bill-check-payments.ts +71 -0
  351. package/src/resources/qbd/bill-credit-card-payments.ts +73 -0
  352. package/src/resources/qbd/bills.ts +70 -0
  353. package/src/resources/qbd/checks.ts +70 -0
  354. package/src/resources/qbd/classes.ts +4 -3
  355. package/src/resources/qbd/credit-card-charges.ts +75 -0
  356. package/src/resources/qbd/credit-card-credits.ts +75 -0
  357. package/src/resources/qbd/credit-card-refunds.ts +71 -0
  358. package/src/resources/qbd/credit-memos.ts +74 -0
  359. package/src/resources/qbd/currencies.ts +4 -3
  360. package/src/resources/qbd/customer-types.ts +4 -3
  361. package/src/resources/qbd/customers.ts +18 -2
  362. package/src/resources/qbd/date-driven-terms.ts +5 -3
  363. package/src/resources/qbd/deleted-list-objects.ts +4 -0
  364. package/src/resources/qbd/deleted-transactions.ts +4 -0
  365. package/src/resources/qbd/deposits.ts +1101 -0
  366. package/src/resources/qbd/employees.ts +4 -3
  367. package/src/resources/qbd/estimates.ts +4 -0
  368. package/src/resources/qbd/index.ts +47 -0
  369. package/src/resources/qbd/inventory-adjustments.ts +81 -3
  370. package/src/resources/qbd/inventory-sites.ts +4 -3
  371. package/src/resources/qbd/invoices.ts +70 -0
  372. package/src/resources/qbd/item-receipts.ts +74 -0
  373. package/src/resources/qbd/journal-entries.ts +74 -0
  374. package/src/resources/qbd/other-names.ts +4 -3
  375. package/src/resources/qbd/payment-methods.ts +4 -3
  376. package/src/resources/qbd/payments-to-deposit.ts +201 -0
  377. package/src/resources/qbd/price-levels.ts +4 -3
  378. package/src/resources/qbd/purchase-orders.ts +4 -0
  379. package/src/resources/qbd/qbd.ts +104 -0
  380. package/src/resources/qbd/sales-orders.ts +4 -0
  381. package/src/resources/qbd/sales-receipts.ts +74 -0
  382. package/src/resources/qbd/sales-representatives.ts +5 -3
  383. package/src/resources/qbd/sales-tax-codes.ts +4 -3
  384. package/src/resources/qbd/shipping-methods.ts +5 -3
  385. package/src/resources/qbd/standard-terms.ts +4 -3
  386. package/src/resources/qbd/time-tracking-activities.ts +0 -6
  387. package/src/resources/qbd/transactions.ts +2 -1
  388. package/src/resources/qbd/unit-of-measure-sets.ts +4 -0
  389. package/src/resources/qbd/vendor-credits.ts +74 -0
  390. package/src/version.ts +1 -1
  391. package/version.d.mts +1 -1
  392. package/version.d.mts.map +1 -1
  393. package/version.d.ts +1 -1
  394. package/version.d.ts.map +1 -1
  395. package/version.js +1 -1
  396. package/version.js.map +1 -1
  397. package/version.mjs +1 -1
  398. package/version.mjs.map +1 -1
@@ -0,0 +1,1101 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
6
+ import { buildHeaders } from '../../internal/headers';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ export class Deposits extends APIResource {
11
+ /**
12
+ * Creates a deposit into a QuickBooks Desktop bank or other asset account. Lines
13
+ * can either reference existing payments waiting to be deposited, using
14
+ * `paymentTransactionId` and optionally `paymentTransactionLineId`, or describe a
15
+ * manual transfer from another account using `accountId` and related line details.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const deposit = await conductor.qbd.deposits.create({
20
+ * depositToAccountId: '80000001-1234567890',
21
+ * transactionDate: '2024-10-01',
22
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
23
+ * });
24
+ * ```
25
+ */
26
+ create(params: DepositCreateParams, options?: RequestOptions): APIPromise<Deposit> {
27
+ const { conductorEndUserId, ...body } = params;
28
+ return this._client.post('/quickbooks-desktop/deposits', {
29
+ body,
30
+ ...options,
31
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
32
+ });
33
+ }
34
+
35
+ /**
36
+ * Retrieves a deposit by ID.
37
+ *
38
+ * **IMPORTANT:** If you need to fetch multiple specific deposits by ID, use the
39
+ * list endpoint instead with the `ids` parameter. It accepts an array of IDs so
40
+ * you can batch the request into a single call, which is significantly faster.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const deposit = await conductor.qbd.deposits.retrieve(
45
+ * '123ABC-1234567890',
46
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
47
+ * );
48
+ * ```
49
+ */
50
+ retrieve(id: string, params: DepositRetrieveParams, options?: RequestOptions): APIPromise<Deposit> {
51
+ const { conductorEndUserId } = params;
52
+ return this._client.get(path`/quickbooks-desktop/deposits/${id}`, {
53
+ ...options,
54
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
55
+ });
56
+ }
57
+
58
+ /**
59
+ * Updates an existing deposit.
60
+ *
61
+ * **NOTE:** If you include `lines`, QuickBooks Desktop replaces that line list
62
+ * with the array you send, so include unchanged lines you want to keep and use
63
+ * `id: "-1"` for new lines.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const deposit = await conductor.qbd.deposits.update(
68
+ * '123ABC-1234567890',
69
+ * {
70
+ * revisionNumber: '1721172183',
71
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
72
+ * },
73
+ * );
74
+ * ```
75
+ */
76
+ update(id: string, params: DepositUpdateParams, options?: RequestOptions): APIPromise<Deposit> {
77
+ const { conductorEndUserId, ...body } = params;
78
+ return this._client.post(path`/quickbooks-desktop/deposits/${id}`, {
79
+ body,
80
+ ...options,
81
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
82
+ });
83
+ }
84
+
85
+ /**
86
+ * Returns a list of deposits. Use the `cursor` parameter to paginate through the
87
+ * results.
88
+ *
89
+ * @example
90
+ * ```ts
91
+ * // Automatically fetches more pages as needed.
92
+ * for await (const deposit of conductor.qbd.deposits.list({
93
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
94
+ * })) {
95
+ * // ...
96
+ * }
97
+ * ```
98
+ */
99
+ list(params: DepositListParams, options?: RequestOptions): PagePromise<DepositsCursorPage, Deposit> {
100
+ const { conductorEndUserId, ...query } = params;
101
+ return this._client.getAPIList('/quickbooks-desktop/deposits', CursorPage<Deposit>, {
102
+ query,
103
+ ...options,
104
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
105
+ });
106
+ }
107
+
108
+ /**
109
+ * Permanently deletes a a deposit. The deletion will fail if the deposit is
110
+ * currently in use or has any linked transactions that are in use.
111
+ *
112
+ * @example
113
+ * ```ts
114
+ * const deposit = await conductor.qbd.deposits.delete(
115
+ * '123ABC-1234567890',
116
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
117
+ * );
118
+ * ```
119
+ */
120
+ delete(
121
+ id: string,
122
+ params: DepositDeleteParams,
123
+ options?: RequestOptions,
124
+ ): APIPromise<DepositDeleteResponse> {
125
+ const { conductorEndUserId } = params;
126
+ return this._client.delete(path`/quickbooks-desktop/deposits/${id}`, {
127
+ ...options,
128
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
129
+ });
130
+ }
131
+
132
+ /**
133
+ * Voids a deposit by setting its amount to zero while keeping a record of it in
134
+ * QuickBooks. The void will fail if the deposit is currently in use or has any
135
+ * linked transactions that are in use.
136
+ *
137
+ * @example
138
+ * ```ts
139
+ * const response = await conductor.qbd.deposits.void(
140
+ * '123ABC-1234567890',
141
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
142
+ * );
143
+ * ```
144
+ */
145
+ void(id: string, params: DepositVoidParams, options?: RequestOptions): APIPromise<DepositVoidResponse> {
146
+ const { conductorEndUserId } = params;
147
+ return this._client.post(path`/quickbooks-desktop/deposits/${id}/void`, {
148
+ ...options,
149
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
150
+ });
151
+ }
152
+ }
153
+
154
+ export type DepositsCursorPage = CursorPage<Deposit>;
155
+
156
+ export interface Deposit {
157
+ /**
158
+ * The unique identifier assigned by QuickBooks to this deposit. This ID is unique
159
+ * across all transaction types.
160
+ */
161
+ id: string;
162
+
163
+ /**
164
+ * Cash back taken out of this deposit and recorded to another account, such as
165
+ * Petty Cash.
166
+ */
167
+ cashBack: Deposit.CashBack | null;
168
+
169
+ /**
170
+ * The date and time when this deposit was created, in ISO 8601 format
171
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
172
+ * timezone of the end-user's computer.
173
+ */
174
+ createdAt: string;
175
+
176
+ /**
177
+ * The deposit's currency. For built-in currencies, the name and code are standard
178
+ * ISO 4217 international values. For user-defined currencies, all values are
179
+ * editable.
180
+ */
181
+ currency: Deposit.Currency | null;
182
+
183
+ /**
184
+ * The custom fields for the deposit object, added as user-defined data extensions,
185
+ * not included in the standard QuickBooks object.
186
+ */
187
+ customFields: Array<Deposit.CustomField>;
188
+
189
+ /**
190
+ * The account where the funds for this deposit have been deposited.
191
+ */
192
+ depositToAccount: Deposit.DepositToAccount | null;
193
+
194
+ /**
195
+ * The market exchange rate between this deposit's currency and the home currency
196
+ * in QuickBooks at the time of this transaction. Represented as a decimal value
197
+ * (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
198
+ */
199
+ exchangeRate: number | null;
200
+
201
+ /**
202
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
203
+ * this object in your external system. This field is immutable and can only be set
204
+ * during object creation.
205
+ */
206
+ externalId: string | null;
207
+
208
+ /**
209
+ * The deposit's deposit lines, each representing either an existing payment
210
+ * selected for deposit or a manual transfer from another account into the deposit
211
+ * account.
212
+ */
213
+ lines: Array<Deposit.Line>;
214
+
215
+ /**
216
+ * A memo or note for this deposit.
217
+ */
218
+ memo: string | null;
219
+
220
+ /**
221
+ * The type of object. This value is always `"qbd_deposit"`.
222
+ */
223
+ objectType: 'qbd_deposit';
224
+
225
+ /**
226
+ * The current QuickBooks-assigned revision number of this deposit object, which
227
+ * changes each time the object is modified. When updating this object, you must
228
+ * provide the most recent `revisionNumber` to ensure you're working with the
229
+ * latest data; otherwise, the update will return an error.
230
+ */
231
+ revisionNumber: string;
232
+
233
+ /**
234
+ * The total monetary amount deposited into this deposit's destination account,
235
+ * represented as a decimal string.
236
+ */
237
+ totalAmount: string | null;
238
+
239
+ /**
240
+ * This deposit's total monetary amount converted to the home currency of the
241
+ * QuickBooks company file, represented as a decimal string.
242
+ */
243
+ totalAmountInHomeCurrency: string | null;
244
+
245
+ /**
246
+ * The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
247
+ */
248
+ transactionDate: string;
249
+
250
+ /**
251
+ * The date and time when this deposit was last updated, in ISO 8601 format
252
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
253
+ * timezone of the end-user's computer.
254
+ */
255
+ updatedAt: string;
256
+ }
257
+
258
+ export namespace Deposit {
259
+ /**
260
+ * Cash back taken out of this deposit and recorded to another account, such as
261
+ * Petty Cash.
262
+ */
263
+ export interface CashBack {
264
+ /**
265
+ * The unique identifier assigned by QuickBooks to this deposit cash-back line.
266
+ * This ID is unique across all transaction line types.
267
+ */
268
+ id: string;
269
+
270
+ /**
271
+ * The account where this deposit cash-back line's cash-back amount is recorded,
272
+ * such as Petty Cash. This amount reduces the total credited to the deposit's
273
+ * destination account.
274
+ */
275
+ account: CashBack.Account;
276
+
277
+ /**
278
+ * The cash-back amount taken out of the deposit and recorded to this deposit
279
+ * cash-back line's account, represented as a decimal string.
280
+ */
281
+ amount: string | null;
282
+
283
+ /**
284
+ * A memo or note for this deposit cash-back line.
285
+ */
286
+ memo: string | null;
287
+
288
+ /**
289
+ * The type of object. This value is always `"qbd_deposit_cash_back_line"`.
290
+ */
291
+ objectType: 'qbd_deposit_cash_back_line';
292
+ }
293
+
294
+ export namespace CashBack {
295
+ /**
296
+ * The account where this deposit cash-back line's cash-back amount is recorded,
297
+ * such as Petty Cash. This amount reduces the total credited to the deposit's
298
+ * destination account.
299
+ */
300
+ export interface Account {
301
+ /**
302
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
303
+ * across all objects of the same type, but not across different QuickBooks object
304
+ * types.
305
+ */
306
+ id: string | null;
307
+
308
+ /**
309
+ * The fully-qualified unique name for this object, formed by combining the names
310
+ * of its parent objects with its own `name`, separated by colons. Not
311
+ * case-sensitive.
312
+ */
313
+ fullName: string | null;
314
+ }
315
+ }
316
+
317
+ /**
318
+ * The deposit's currency. For built-in currencies, the name and code are standard
319
+ * ISO 4217 international values. For user-defined currencies, all values are
320
+ * editable.
321
+ */
322
+ export interface Currency {
323
+ /**
324
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
325
+ * across all objects of the same type, but not across different QuickBooks object
326
+ * types.
327
+ */
328
+ id: string | null;
329
+
330
+ /**
331
+ * The fully-qualified unique name for this object, formed by combining the names
332
+ * of its parent objects with its own `name`, separated by colons. Not
333
+ * case-sensitive.
334
+ */
335
+ fullName: string | null;
336
+ }
337
+
338
+ export interface CustomField {
339
+ /**
340
+ * The name of the custom field, unique for the specified `ownerId`. For public
341
+ * custom fields, this name is visible as a label in the QuickBooks UI.
342
+ */
343
+ name: string;
344
+
345
+ /**
346
+ * The identifier of the owner of the custom field, which QuickBooks internally
347
+ * calls a "data extension". For public custom fields visible in the UI, such as
348
+ * those added by the QuickBooks user, this is always "0". For private custom
349
+ * fields that are only visible to the application that created them, this is a
350
+ * valid GUID identifying the owning application. Internally, Conductor always
351
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
352
+ * objects.
353
+ */
354
+ ownerId: string;
355
+
356
+ /**
357
+ * The data type of this custom field.
358
+ */
359
+ type:
360
+ | 'amount_type'
361
+ | 'date_time_type'
362
+ | 'integer_type'
363
+ | 'percent_type'
364
+ | 'price_type'
365
+ | 'quantity_type'
366
+ | 'string_1024_type'
367
+ | 'string_255_type';
368
+
369
+ /**
370
+ * The value of this custom field. The maximum length depends on the field's data
371
+ * type.
372
+ */
373
+ value: string;
374
+ }
375
+
376
+ /**
377
+ * The account where the funds for this deposit have been deposited.
378
+ */
379
+ export interface DepositToAccount {
380
+ /**
381
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
382
+ * across all objects of the same type, but not across different QuickBooks object
383
+ * types.
384
+ */
385
+ id: string | null;
386
+
387
+ /**
388
+ * The fully-qualified unique name for this object, formed by combining the names
389
+ * of its parent objects with its own `name`, separated by colons. Not
390
+ * case-sensitive.
391
+ */
392
+ fullName: string | null;
393
+ }
394
+
395
+ export interface Line {
396
+ /**
397
+ * The unique identifier assigned by QuickBooks to this deposit line. This ID is
398
+ * unique across all transaction line types.
399
+ */
400
+ id: string;
401
+
402
+ /**
403
+ * The account associated with this deposit line. For manual deposit lines, this is
404
+ * the account the funds were transferred from into the deposit's destination
405
+ * account.
406
+ */
407
+ account: Line.Account | null;
408
+
409
+ /**
410
+ * The amount this deposit line contributes to the deposit's destination account,
411
+ * represented as a decimal string.
412
+ */
413
+ amount: string | null;
414
+
415
+ /**
416
+ * The check number of a check received for this deposit line.
417
+ */
418
+ checkNumber: string | null;
419
+
420
+ /**
421
+ * The deposit line's class. Classes can be used to categorize objects into
422
+ * meaningful segments, such as department, location, or type of work. In
423
+ * QuickBooks, class tracking is off by default.
424
+ */
425
+ class: Line.Class | null;
426
+
427
+ /**
428
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
429
+ * associated with this deposit line.
430
+ */
431
+ entity: Line.Entity | null;
432
+
433
+ /**
434
+ * A memo or note for this deposit line.
435
+ */
436
+ memo: string | null;
437
+
438
+ /**
439
+ * The type of object. This value is always `"qbd_deposit_line"`.
440
+ */
441
+ objectType: 'qbd_deposit_line';
442
+
443
+ /**
444
+ * The deposit line's payment method (e.g., cash, check, credit card).
445
+ */
446
+ paymentMethod: Line.PaymentMethod | null;
447
+
448
+ /**
449
+ * For payment-based deposit lines, the ID of the source payment included in this
450
+ * deposit line. For manual deposit lines, this is null.
451
+ */
452
+ paymentTransactionId: string | null;
453
+
454
+ /**
455
+ * For payment-based deposit lines, the line ID of the specific source payment line
456
+ * included in this deposit line. For manual deposit lines, this is null.
457
+ */
458
+ paymentTransactionLineId: string | null;
459
+
460
+ /**
461
+ * The type of transaction for this deposit line.
462
+ */
463
+ transactionType:
464
+ | 'ar_refund_credit_card'
465
+ | 'bill'
466
+ | 'bill_payment_check'
467
+ | 'bill_payment_credit_card'
468
+ | 'build_assembly'
469
+ | 'charge'
470
+ | 'check'
471
+ | 'credit_card_charge'
472
+ | 'credit_card_credit'
473
+ | 'credit_memo'
474
+ | 'deposit'
475
+ | 'estimate'
476
+ | 'inventory_adjustment'
477
+ | 'invoice'
478
+ | 'item_receipt'
479
+ | 'journal_entry'
480
+ | 'liability_adjustment'
481
+ | 'paycheck'
482
+ | 'payroll_liability_check'
483
+ | 'purchase_order'
484
+ | 'receive_payment'
485
+ | 'sales_order'
486
+ | 'sales_receipt'
487
+ | 'sales_tax_payment_check'
488
+ | 'transfer'
489
+ | 'vendor_credit'
490
+ | 'ytd_adjustment'
491
+ | null;
492
+ }
493
+
494
+ export namespace Line {
495
+ /**
496
+ * The account associated with this deposit line. For manual deposit lines, this is
497
+ * the account the funds were transferred from into the deposit's destination
498
+ * account.
499
+ */
500
+ export interface Account {
501
+ /**
502
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
503
+ * across all objects of the same type, but not across different QuickBooks object
504
+ * types.
505
+ */
506
+ id: string | null;
507
+
508
+ /**
509
+ * The fully-qualified unique name for this object, formed by combining the names
510
+ * of its parent objects with its own `name`, separated by colons. Not
511
+ * case-sensitive.
512
+ */
513
+ fullName: string | null;
514
+ }
515
+
516
+ /**
517
+ * The deposit line's class. Classes can be used to categorize objects into
518
+ * meaningful segments, such as department, location, or type of work. In
519
+ * QuickBooks, class tracking is off by default.
520
+ */
521
+ export interface Class {
522
+ /**
523
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
524
+ * across all objects of the same type, but not across different QuickBooks object
525
+ * types.
526
+ */
527
+ id: string | null;
528
+
529
+ /**
530
+ * The fully-qualified unique name for this object, formed by combining the names
531
+ * of its parent objects with its own `name`, separated by colons. Not
532
+ * case-sensitive.
533
+ */
534
+ fullName: string | null;
535
+ }
536
+
537
+ /**
538
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
539
+ * associated with this deposit line.
540
+ */
541
+ export interface Entity {
542
+ /**
543
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
544
+ * across all objects of the same type, but not across different QuickBooks object
545
+ * types.
546
+ */
547
+ id: string | null;
548
+
549
+ /**
550
+ * The fully-qualified unique name for this object, formed by combining the names
551
+ * of its parent objects with its own `name`, separated by colons. Not
552
+ * case-sensitive.
553
+ */
554
+ fullName: string | null;
555
+ }
556
+
557
+ /**
558
+ * The deposit line's payment method (e.g., cash, check, credit card).
559
+ */
560
+ export interface PaymentMethod {
561
+ /**
562
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
563
+ * across all objects of the same type, but not across different QuickBooks object
564
+ * types.
565
+ */
566
+ id: string | null;
567
+
568
+ /**
569
+ * The fully-qualified unique name for this object, formed by combining the names
570
+ * of its parent objects with its own `name`, separated by colons. Not
571
+ * case-sensitive.
572
+ */
573
+ fullName: string | null;
574
+ }
575
+ }
576
+ }
577
+
578
+ export interface DepositDeleteResponse {
579
+ /**
580
+ * The QuickBooks-assigned unique identifier of the deleted deposit.
581
+ */
582
+ id: string;
583
+
584
+ /**
585
+ * Indicates whether the deposit was deleted.
586
+ */
587
+ deleted: boolean;
588
+
589
+ /**
590
+ * The type of object. This value is always `"qbd_deposit"`.
591
+ */
592
+ objectType: 'qbd_deposit';
593
+ }
594
+
595
+ export interface DepositVoidResponse {
596
+ /**
597
+ * The QuickBooks-assigned unique identifier of the voided deposit.
598
+ */
599
+ id: string;
600
+
601
+ /**
602
+ * The date and time when this deposit was created, in ISO 8601 format
603
+ * (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
604
+ * timezone of the end-user's computer.
605
+ */
606
+ createdAt: string | null;
607
+
608
+ /**
609
+ * The type of object. This value is always `"qbd_deposit"`.
610
+ */
611
+ objectType: 'qbd_deposit';
612
+
613
+ /**
614
+ * The date and time when this deposit was last updated, in ISO 8601 format
615
+ * (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
616
+ * timezone of the end-user's computer.
617
+ */
618
+ updatedAt: string | null;
619
+
620
+ /**
621
+ * Indicates whether the deposit was voided.
622
+ */
623
+ voided: boolean;
624
+ }
625
+
626
+ export interface DepositCreateParams {
627
+ /**
628
+ * Body param: The account where the funds for this deposit will be deposited.
629
+ */
630
+ depositToAccountId: string;
631
+
632
+ /**
633
+ * Body param: The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
634
+ */
635
+ transactionDate: string;
636
+
637
+ /**
638
+ * Header param: The ID of the End-User to receive this request.
639
+ */
640
+ conductorEndUserId: string;
641
+
642
+ /**
643
+ * Body param: Cash back taken out of this deposit and recorded to another account,
644
+ * such as Petty Cash.
645
+ */
646
+ cashBack?: DepositCreateParams.CashBack;
647
+
648
+ /**
649
+ * Body param: The deposit's currency. For built-in currencies, the name and code
650
+ * are standard ISO 4217 international values. For user-defined currencies, all
651
+ * values are editable.
652
+ */
653
+ currencyId?: string;
654
+
655
+ /**
656
+ * Body param: The market exchange rate between this deposit's currency and the
657
+ * home currency in QuickBooks at the time of this transaction. Represented as a
658
+ * decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
659
+ */
660
+ exchangeRate?: number;
661
+
662
+ /**
663
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
664
+ * for tracking this object in your external system. This field is immutable and
665
+ * can only be set during object creation.
666
+ *
667
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
668
+ * QuickBooks will return an error.
669
+ */
670
+ externalId?: string;
671
+
672
+ /**
673
+ * Body param: The deposit's deposit lines, each representing either an existing
674
+ * payment selected for deposit or a manual transfer from another account into the
675
+ * deposit account.
676
+ */
677
+ lines?: Array<DepositCreateParams.Line>;
678
+
679
+ /**
680
+ * Body param: A memo or note for this deposit.
681
+ */
682
+ memo?: string;
683
+ }
684
+
685
+ export namespace DepositCreateParams {
686
+ /**
687
+ * Cash back taken out of this deposit and recorded to another account, such as
688
+ * Petty Cash.
689
+ */
690
+ export interface CashBack {
691
+ /**
692
+ * The account where this deposit cash-back line's cash-back amount is recorded,
693
+ * such as Petty Cash. This amount reduces the total credited to the deposit's
694
+ * destination account.
695
+ */
696
+ accountId: string;
697
+
698
+ /**
699
+ * The cash-back amount taken out of the deposit and recorded to this deposit
700
+ * cash-back line's account, represented as a decimal string.
701
+ */
702
+ amount?: string;
703
+
704
+ /**
705
+ * A memo or note for this deposit cash-back line.
706
+ */
707
+ memo?: string;
708
+ }
709
+
710
+ export interface Line {
711
+ /**
712
+ * For a manual deposit line, the account that the funds are transferred from into
713
+ * the deposit's destination account. To deposit an existing payment instead, use
714
+ * `paymentTransactionId` and, when needed, `paymentTransactionLineId`.
715
+ */
716
+ accountId?: string;
717
+
718
+ /**
719
+ * For a manual deposit line, the amount transferred from the line's account into
720
+ * the deposit's destination account, represented as a decimal string.
721
+ */
722
+ amount?: string;
723
+
724
+ /**
725
+ * The check number of a check received for this deposit line.
726
+ */
727
+ checkNumber?: string;
728
+
729
+ /**
730
+ * The deposit line's class. Classes can be used to categorize objects into
731
+ * meaningful segments, such as department, location, or type of work. In
732
+ * QuickBooks, class tracking is off by default.
733
+ */
734
+ classId?: string;
735
+
736
+ /**
737
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
738
+ * associated with this manual deposit line.
739
+ */
740
+ entityId?: string;
741
+
742
+ /**
743
+ * A memo or note for this deposit line.
744
+ */
745
+ memo?: string;
746
+
747
+ /**
748
+ * The check number to use for this deposit line, overriding the check number from
749
+ * the existing payment line.
750
+ *
751
+ * Maximum length: 11 characters.
752
+ */
753
+ overrideCheckNumber?: string;
754
+
755
+ /**
756
+ * The class to use for this deposit line, overriding the class from the existing
757
+ * payment line.
758
+ */
759
+ overrideClassId?: string;
760
+
761
+ /**
762
+ * The memo to use for this deposit line, overriding the memo from the existing
763
+ * payment line.
764
+ *
765
+ * Maximum length: 4095 characters.
766
+ */
767
+ overrideMemo?: string;
768
+
769
+ /**
770
+ * The deposit line's payment method (e.g., cash, check, credit card).
771
+ */
772
+ paymentMethodId?: string;
773
+
774
+ /**
775
+ * The ID of an existing undeposited payment to include in this deposit line. Use
776
+ * the `paymentTransactionId` from a payments-to-deposit result, or the `id` from
777
+ * the original receive-payment response. If the source payment has multiple
778
+ * depositable lines and you omit `paymentTransactionLineId`, QuickBooks Desktop
779
+ * deposits only the first line.
780
+ */
781
+ paymentTransactionId?: string;
782
+
783
+ /**
784
+ * The line ID for the specific undeposited payment line to include in this deposit
785
+ * line. Use the `paymentTransactionLineId` from a payments-to-deposit result. If
786
+ * the source payment has multiple depositable lines, provide this field with
787
+ * `paymentTransactionId` to choose the exact line.
788
+ */
789
+ paymentTransactionLineId?: string;
790
+ }
791
+ }
792
+
793
+ export interface DepositRetrieveParams {
794
+ /**
795
+ * The ID of the End-User to receive this request.
796
+ */
797
+ conductorEndUserId: string;
798
+ }
799
+
800
+ export interface DepositUpdateParams {
801
+ /**
802
+ * Body param: The current QuickBooks-assigned revision number of the deposit
803
+ * object you are updating, which you can get by fetching the object first. Provide
804
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
805
+ * otherwise, the update will return an error.
806
+ */
807
+ revisionNumber: string;
808
+
809
+ /**
810
+ * Header param: The ID of the End-User to receive this request.
811
+ */
812
+ conductorEndUserId: string;
813
+
814
+ /**
815
+ * Body param: Cash back taken out of this deposit and recorded to another account,
816
+ * such as Petty Cash.
817
+ */
818
+ cashBack?: DepositUpdateParams.CashBack;
819
+
820
+ /**
821
+ * Body param: The deposit's currency. For built-in currencies, the name and code
822
+ * are standard ISO 4217 international values. For user-defined currencies, all
823
+ * values are editable.
824
+ */
825
+ currencyId?: string;
826
+
827
+ /**
828
+ * Body param: The account where the funds for this deposit will be deposited.
829
+ */
830
+ depositToAccountId?: string;
831
+
832
+ /**
833
+ * Body param: The market exchange rate between this deposit's currency and the
834
+ * home currency in QuickBooks at the time of this transaction. Represented as a
835
+ * decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
836
+ */
837
+ exchangeRate?: number;
838
+
839
+ /**
840
+ * Body param: The deposit's deposit lines, each representing either an existing
841
+ * payment selected for deposit or a manual transfer from another account into the
842
+ * deposit account.
843
+ *
844
+ * **IMPORTANT**:
845
+ *
846
+ * 1. Including this array in your update request will **REPLACE** all existing
847
+ * deposit lines for the deposit with this array. To keep any existing deposit
848
+ * lines, you must include them in this array even if they have not changed.
849
+ * **Any deposit lines not included will be removed.**
850
+ *
851
+ * 2. To add a new deposit line, include it here with the `id` field set to `-1`.
852
+ *
853
+ * 3. If you do not wish to modify any deposit lines, omit this field entirely to
854
+ * keep them unchanged.
855
+ */
856
+ lines?: Array<DepositUpdateParams.Line>;
857
+
858
+ /**
859
+ * Body param: A memo or note for this deposit.
860
+ */
861
+ memo?: string;
862
+
863
+ /**
864
+ * Body param: The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
865
+ */
866
+ transactionDate?: string;
867
+ }
868
+
869
+ export namespace DepositUpdateParams {
870
+ /**
871
+ * Cash back taken out of this deposit and recorded to another account, such as
872
+ * Petty Cash.
873
+ */
874
+ export interface CashBack {
875
+ /**
876
+ * The account where this deposit cash-back line's cash-back amount is recorded,
877
+ * such as Petty Cash. This amount reduces the total credited to the deposit's
878
+ * destination account.
879
+ */
880
+ accountId?: string;
881
+
882
+ /**
883
+ * The cash-back amount taken out of the deposit and recorded to this deposit
884
+ * cash-back line's account, represented as a decimal string.
885
+ */
886
+ amount?: string;
887
+
888
+ /**
889
+ * A memo or note for this deposit cash-back line.
890
+ */
891
+ memo?: string;
892
+ }
893
+
894
+ export interface Line {
895
+ /**
896
+ * The QuickBooks-assigned unique identifier of an existing deposit line you wish
897
+ * to retain or update.
898
+ *
899
+ * **IMPORTANT**: Set this field to `-1` for new deposit lines you wish to add.
900
+ */
901
+ id: string;
902
+
903
+ /**
904
+ * For a manual deposit line, the account that the funds are transferred from into
905
+ * the deposit's destination account. To deposit an existing payment instead, use
906
+ * `paymentTransactionId` and, when needed, `paymentTransactionLineId`.
907
+ */
908
+ accountId?: string;
909
+
910
+ /**
911
+ * For a manual deposit line, the amount transferred from the line's account into
912
+ * the deposit's destination account, represented as a decimal string.
913
+ */
914
+ amount?: string;
915
+
916
+ /**
917
+ * The check number of a check received for this deposit line.
918
+ */
919
+ checkNumber?: string;
920
+
921
+ /**
922
+ * The deposit line's class. Classes can be used to categorize objects into
923
+ * meaningful segments, such as department, location, or type of work. In
924
+ * QuickBooks, class tracking is off by default.
925
+ */
926
+ classId?: string;
927
+
928
+ /**
929
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
930
+ * associated with this manual deposit line.
931
+ */
932
+ entityId?: string;
933
+
934
+ /**
935
+ * A memo or note for this deposit line.
936
+ */
937
+ memo?: string;
938
+
939
+ /**
940
+ * The check number to use for this deposit line, overriding the check number from
941
+ * the existing payment line.
942
+ *
943
+ * Maximum length: 11 characters.
944
+ */
945
+ overrideCheckNumber?: string;
946
+
947
+ /**
948
+ * The class to use for this deposit line, overriding the class from the existing
949
+ * payment line.
950
+ */
951
+ overrideClassId?: string;
952
+
953
+ /**
954
+ * The memo to use for this deposit line, overriding the memo from the existing
955
+ * payment line.
956
+ *
957
+ * Maximum length: 4095 characters.
958
+ */
959
+ overrideMemo?: string;
960
+
961
+ /**
962
+ * The deposit line's payment method (e.g., cash, check, credit card).
963
+ */
964
+ paymentMethodId?: string;
965
+
966
+ /**
967
+ * The ID of an existing undeposited payment to include in this deposit line. Use
968
+ * the `paymentTransactionId` from a payments-to-deposit result, or the `id` from
969
+ * the original receive-payment response. If the source payment has multiple
970
+ * depositable lines and you omit `paymentTransactionLineId`, QuickBooks Desktop
971
+ * deposits only the first line.
972
+ */
973
+ paymentTransactionId?: string;
974
+
975
+ /**
976
+ * The line ID for the specific undeposited payment line to include in this deposit
977
+ * line. Use the `paymentTransactionLineId` from a payments-to-deposit result. If
978
+ * the source payment has multiple depositable lines, provide this field with
979
+ * `paymentTransactionId` to choose the exact line.
980
+ */
981
+ paymentTransactionLineId?: string;
982
+ }
983
+ }
984
+
985
+ export interface DepositListParams extends CursorPageParams {
986
+ /**
987
+ * Header param: The ID of the End-User to receive this request.
988
+ */
989
+ conductorEndUserId: string;
990
+
991
+ /**
992
+ * Query param: Filter for deposits associated with these accounts.
993
+ */
994
+ accountIds?: Array<string>;
995
+
996
+ /**
997
+ * Query param: Filter for deposits in these currencies.
998
+ */
999
+ currencyIds?: Array<string>;
1000
+
1001
+ /**
1002
+ * Query param: Filter for deposits associated with these entities (customers,
1003
+ * vendors, employees, etc.). These are the entities referenced on the deposit's
1004
+ * manual lines.
1005
+ */
1006
+ entityIds?: Array<string>;
1007
+
1008
+ /**
1009
+ * Query param: Filter for specific deposits by their QuickBooks-assigned unique
1010
+ * identifier(s).
1011
+ *
1012
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1013
+ * query parameters for this request.
1014
+ *
1015
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1016
+ * request will return an error.
1017
+ */
1018
+ ids?: Array<string>;
1019
+
1020
+ /**
1021
+ * Query param: Whether to include line items in the response. Defaults to `true`.
1022
+ */
1023
+ includeLineItems?: boolean;
1024
+
1025
+ /**
1026
+ * Query param: Filter for deposits whose `date` field is on or after this date, in
1027
+ * ISO 8601 format (YYYY-MM-DD).
1028
+ *
1029
+ * **NOTE:** QuickBooks Desktop interprets this date as the **start of the
1030
+ * specified day** in the local timezone of the end-user's computer (e.g.,
1031
+ * `2025-01-01` → `2025-01-01T00:00:00`).
1032
+ */
1033
+ transactionDateFrom?: string;
1034
+
1035
+ /**
1036
+ * Query param: Filter for deposits whose `date` field is on or before this date,
1037
+ * in ISO 8601 format (YYYY-MM-DD).
1038
+ *
1039
+ * **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
1040
+ * day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
1041
+ * `2025-01-01T23:59:59`).
1042
+ */
1043
+ transactionDateTo?: string;
1044
+
1045
+ /**
1046
+ * Query param: Filter for deposits updated on or after this date/time. Accepts the
1047
+ * following ISO 8601 formats:
1048
+ *
1049
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
1050
+ * **start of the specified day** in the local timezone of the end-user's
1051
+ * computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
1052
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
1053
+ * interprets the timestamp in the local timezone of the end-user's computer.
1054
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
1055
+ * interprets the timestamp using the specified timezone.
1056
+ */
1057
+ updatedAfter?: string;
1058
+
1059
+ /**
1060
+ * Query param: Filter for deposits updated on or before this date/time. Accepts
1061
+ * the following ISO 8601 formats:
1062
+ *
1063
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
1064
+ * **end of the specified day** in the local timezone of the end-user's computer
1065
+ * (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
1066
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
1067
+ * interprets the timestamp in the local timezone of the end-user's computer.
1068
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
1069
+ * interprets the timestamp using the specified timezone.
1070
+ */
1071
+ updatedBefore?: string;
1072
+ }
1073
+
1074
+ export interface DepositDeleteParams {
1075
+ /**
1076
+ * The ID of the End-User to receive this request.
1077
+ */
1078
+ conductorEndUserId: string;
1079
+ }
1080
+
1081
+ export interface DepositVoidParams {
1082
+ /**
1083
+ * The ID of the End-User to receive this request.
1084
+ */
1085
+ conductorEndUserId: string;
1086
+ }
1087
+
1088
+ export declare namespace Deposits {
1089
+ export {
1090
+ type Deposit as Deposit,
1091
+ type DepositDeleteResponse as DepositDeleteResponse,
1092
+ type DepositVoidResponse as DepositVoidResponse,
1093
+ type DepositsCursorPage as DepositsCursorPage,
1094
+ type DepositCreateParams as DepositCreateParams,
1095
+ type DepositRetrieveParams as DepositRetrieveParams,
1096
+ type DepositUpdateParams as DepositUpdateParams,
1097
+ type DepositListParams as DepositListParams,
1098
+ type DepositDeleteParams as DepositDeleteParams,
1099
+ type DepositVoidParams as DepositVoidParams,
1100
+ };
1101
+ }