conductor-node 11.10.0 → 12.0.0-beta.1

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