conductor-node 11.10.1 → 12.0.0-beta.2

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