conductor-node 12.42.0 → 13.0.0

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