conductor-node 11.10.0 → 12.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +201 -21
  3. package/README.md +330 -63
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +121 -0
  87. package/index.d.ts +121 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +133 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/internal/qs/formats.d.ts +6 -0
  94. package/internal/qs/formats.d.ts.map +1 -0
  95. package/internal/qs/formats.js +11 -0
  96. package/internal/qs/formats.js.map +1 -0
  97. package/internal/qs/formats.mjs +8 -0
  98. package/internal/qs/formats.mjs.map +1 -0
  99. package/internal/qs/index.d.ts +10 -0
  100. package/internal/qs/index.d.ts.map +1 -0
  101. package/internal/qs/index.js +14 -0
  102. package/internal/qs/index.js.map +1 -0
  103. package/internal/qs/index.mjs +10 -0
  104. package/internal/qs/index.mjs.map +1 -0
  105. package/internal/qs/stringify.d.ts +3 -0
  106. package/internal/qs/stringify.d.ts.map +1 -0
  107. package/internal/qs/stringify.js +280 -0
  108. package/internal/qs/stringify.js.map +1 -0
  109. package/internal/qs/stringify.mjs +276 -0
  110. package/internal/qs/stringify.mjs.map +1 -0
  111. package/internal/qs/types.d.ts +57 -0
  112. package/internal/qs/types.d.ts.map +1 -0
  113. package/{dist/src/resources → internal/qs}/types.js +1 -0
  114. package/internal/qs/types.js.map +1 -0
  115. package/internal/qs/types.mjs +2 -0
  116. package/internal/qs/types.mjs.map +1 -0
  117. package/internal/qs/utils.d.ts +14 -0
  118. package/internal/qs/utils.d.ts.map +1 -0
  119. package/internal/qs/utils.js +229 -0
  120. package/internal/qs/utils.js.map +1 -0
  121. package/internal/qs/utils.mjs +217 -0
  122. package/internal/qs/utils.mjs.map +1 -0
  123. package/package.json +111 -35
  124. package/pagination.d.ts +18 -0
  125. package/pagination.d.ts.map +1 -0
  126. package/pagination.js +40 -0
  127. package/pagination.js.map +1 -0
  128. package/pagination.mjs +36 -0
  129. package/pagination.mjs.map +1 -0
  130. package/resource.d.ts +6 -0
  131. package/resource.d.ts.map +1 -0
  132. package/resource.js +11 -0
  133. package/resource.js.map +1 -0
  134. package/resource.mjs +7 -0
  135. package/resource.mjs.map +1 -0
  136. package/resources/auth-sessions.d.ts +79 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +23 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +19 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +154 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +48 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +44 -0
  147. package/resources/end-users.mjs.map +1 -0
  148. package/resources/index.d.ts +4 -0
  149. package/resources/index.d.ts.map +1 -0
  150. package/resources/index.js +11 -0
  151. package/resources/index.js.map +1 -0
  152. package/resources/index.mjs +5 -0
  153. package/resources/index.mjs.map +1 -0
  154. package/resources/qbd/accounts.d.ts +579 -0
  155. package/resources/qbd/accounts.d.ts.map +1 -0
  156. package/resources/qbd/accounts.js +54 -0
  157. package/resources/qbd/accounts.js.map +1 -0
  158. package/resources/qbd/accounts.mjs +50 -0
  159. package/resources/qbd/accounts.mjs.map +1 -0
  160. package/resources/qbd/bill-check-payments.d.ts +831 -0
  161. package/resources/qbd/bill-check-payments.d.ts.map +1 -0
  162. package/resources/qbd/bill-check-payments.js +70 -0
  163. package/resources/qbd/bill-check-payments.js.map +1 -0
  164. package/resources/qbd/bill-check-payments.mjs +65 -0
  165. package/resources/qbd/bill-check-payments.mjs.map +1 -0
  166. package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
  167. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
  168. package/resources/qbd/bill-credit-card-payments.js +55 -0
  169. package/resources/qbd/bill-credit-card-payments.js.map +1 -0
  170. package/resources/qbd/bill-credit-card-payments.mjs +50 -0
  171. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
  172. package/resources/qbd/bills.d.ts +2561 -0
  173. package/resources/qbd/bills.d.ts.map +1 -0
  174. package/resources/qbd/bills.js +69 -0
  175. package/resources/qbd/bills.js.map +1 -0
  176. package/resources/qbd/bills.mjs +64 -0
  177. package/resources/qbd/bills.mjs.map +1 -0
  178. package/resources/qbd/checks.d.ts +2528 -0
  179. package/resources/qbd/checks.d.ts.map +1 -0
  180. package/resources/qbd/checks.js +69 -0
  181. package/resources/qbd/checks.js.map +1 -0
  182. package/resources/qbd/checks.mjs +64 -0
  183. package/resources/qbd/checks.mjs.map +1 -0
  184. package/resources/qbd/classes.d.ts +289 -0
  185. package/resources/qbd/classes.d.ts.map +1 -0
  186. package/resources/qbd/classes.js +54 -0
  187. package/resources/qbd/classes.js.map +1 -0
  188. package/resources/qbd/classes.mjs +50 -0
  189. package/resources/qbd/classes.mjs.map +1 -0
  190. package/resources/qbd/credit-card-charges.d.ts +2236 -0
  191. package/resources/qbd/credit-card-charges.d.ts.map +1 -0
  192. package/resources/qbd/credit-card-charges.js +69 -0
  193. package/resources/qbd/credit-card-charges.js.map +1 -0
  194. package/resources/qbd/credit-card-charges.mjs +64 -0
  195. package/resources/qbd/credit-card-charges.mjs.map +1 -0
  196. package/resources/qbd/credit-card-credits.d.ts +2233 -0
  197. package/resources/qbd/credit-card-credits.d.ts.map +1 -0
  198. package/resources/qbd/credit-card-credits.js +69 -0
  199. package/resources/qbd/credit-card-credits.js.map +1 -0
  200. package/resources/qbd/credit-card-credits.mjs +64 -0
  201. package/resources/qbd/credit-card-credits.mjs.map +1 -0
  202. package/resources/qbd/credit-memos.d.ts +2649 -0
  203. package/resources/qbd/credit-memos.d.ts.map +1 -0
  204. package/resources/qbd/credit-memos.js +69 -0
  205. package/resources/qbd/credit-memos.js.map +1 -0
  206. package/resources/qbd/credit-memos.mjs +64 -0
  207. package/resources/qbd/credit-memos.mjs.map +1 -0
  208. package/resources/qbd/customers.d.ts +2106 -0
  209. package/resources/qbd/customers.d.ts.map +1 -0
  210. package/resources/qbd/customers.js +58 -0
  211. package/resources/qbd/customers.js.map +1 -0
  212. package/resources/qbd/customers.mjs +53 -0
  213. package/resources/qbd/customers.mjs.map +1 -0
  214. package/resources/qbd/date-driven-terms.d.ts +242 -0
  215. package/resources/qbd/date-driven-terms.d.ts.map +1 -0
  216. package/resources/qbd/date-driven-terms.js +43 -0
  217. package/resources/qbd/date-driven-terms.js.map +1 -0
  218. package/resources/qbd/date-driven-terms.mjs +39 -0
  219. package/resources/qbd/date-driven-terms.mjs.map +1 -0
  220. package/resources/qbd/discount-items.d.ts +576 -0
  221. package/resources/qbd/discount-items.d.ts.map +1 -0
  222. package/resources/qbd/discount-items.js +58 -0
  223. package/resources/qbd/discount-items.js.map +1 -0
  224. package/resources/qbd/discount-items.mjs +53 -0
  225. package/resources/qbd/discount-items.mjs.map +1 -0
  226. package/resources/qbd/employees.d.ts +1669 -0
  227. package/resources/qbd/employees.d.ts.map +1 -0
  228. package/resources/qbd/employees.js +58 -0
  229. package/resources/qbd/employees.js.map +1 -0
  230. package/resources/qbd/employees.mjs +53 -0
  231. package/resources/qbd/employees.mjs.map +1 -0
  232. package/resources/qbd/estimates.d.ts +2493 -0
  233. package/resources/qbd/estimates.d.ts.map +1 -0
  234. package/resources/qbd/estimates.js +69 -0
  235. package/resources/qbd/estimates.js.map +1 -0
  236. package/resources/qbd/estimates.mjs +64 -0
  237. package/resources/qbd/estimates.mjs.map +1 -0
  238. package/resources/qbd/index.d.ts +37 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +105 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +38 -0
  243. package/resources/qbd/index.mjs.map +1 -0
  244. package/resources/qbd/inventory-adjustments.d.ts +814 -0
  245. package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
  246. package/resources/qbd/inventory-adjustments.js +66 -0
  247. package/resources/qbd/inventory-adjustments.js.map +1 -0
  248. package/resources/qbd/inventory-adjustments.mjs +62 -0
  249. package/resources/qbd/inventory-adjustments.mjs.map +1 -0
  250. package/resources/qbd/inventory-assembly-items.d.ts +931 -0
  251. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
  252. package/resources/qbd/inventory-assembly-items.js +54 -0
  253. package/resources/qbd/inventory-assembly-items.js.map +1 -0
  254. package/resources/qbd/inventory-assembly-items.mjs +49 -0
  255. package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
  256. package/resources/qbd/inventory-items.d.ts +844 -0
  257. package/resources/qbd/inventory-items.d.ts.map +1 -0
  258. package/resources/qbd/inventory-items.js +58 -0
  259. package/resources/qbd/inventory-items.js.map +1 -0
  260. package/resources/qbd/inventory-items.mjs +53 -0
  261. package/resources/qbd/inventory-items.mjs.map +1 -0
  262. package/resources/qbd/inventory-sites.d.ts +477 -0
  263. package/resources/qbd/inventory-sites.d.ts.map +1 -0
  264. package/resources/qbd/inventory-sites.js +54 -0
  265. package/resources/qbd/inventory-sites.js.map +1 -0
  266. package/resources/qbd/inventory-sites.mjs +50 -0
  267. package/resources/qbd/inventory-sites.mjs.map +1 -0
  268. package/resources/qbd/invoices.d.ts +2873 -0
  269. package/resources/qbd/invoices.d.ts.map +1 -0
  270. package/resources/qbd/invoices.js +69 -0
  271. package/resources/qbd/invoices.js.map +1 -0
  272. package/resources/qbd/invoices.mjs +64 -0
  273. package/resources/qbd/invoices.mjs.map +1 -0
  274. package/resources/qbd/journal-entries.d.ts +856 -0
  275. package/resources/qbd/journal-entries.d.ts.map +1 -0
  276. package/resources/qbd/journal-entries.js +69 -0
  277. package/resources/qbd/journal-entries.js.map +1 -0
  278. package/resources/qbd/journal-entries.mjs +64 -0
  279. package/resources/qbd/journal-entries.mjs.map +1 -0
  280. package/resources/qbd/non-inventory-items.d.ts +950 -0
  281. package/resources/qbd/non-inventory-items.d.ts.map +1 -0
  282. package/resources/qbd/non-inventory-items.js +58 -0
  283. package/resources/qbd/non-inventory-items.js.map +1 -0
  284. package/resources/qbd/non-inventory-items.mjs +53 -0
  285. package/resources/qbd/non-inventory-items.mjs.map +1 -0
  286. package/resources/qbd/payroll-wage-items.d.ts +215 -0
  287. package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
  288. package/resources/qbd/payroll-wage-items.js +47 -0
  289. package/resources/qbd/payroll-wage-items.js.map +1 -0
  290. package/resources/qbd/payroll-wage-items.mjs +42 -0
  291. package/resources/qbd/payroll-wage-items.mjs.map +1 -0
  292. package/resources/qbd/purchase-orders.d.ts +2554 -0
  293. package/resources/qbd/purchase-orders.d.ts.map +1 -0
  294. package/resources/qbd/purchase-orders.js +69 -0
  295. package/resources/qbd/purchase-orders.js.map +1 -0
  296. package/resources/qbd/purchase-orders.mjs +64 -0
  297. package/resources/qbd/purchase-orders.mjs.map +1 -0
  298. package/resources/qbd/qbd.d.ts +146 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +202 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +175 -0
  303. package/resources/qbd/qbd.mjs.map +1 -0
  304. package/resources/qbd/receive-payments.d.ts +1282 -0
  305. package/resources/qbd/receive-payments.d.ts.map +1 -0
  306. package/resources/qbd/receive-payments.js +70 -0
  307. package/resources/qbd/receive-payments.js.map +1 -0
  308. package/resources/qbd/receive-payments.mjs +65 -0
  309. package/resources/qbd/receive-payments.mjs.map +1 -0
  310. package/resources/qbd/sales-orders.d.ts +2628 -0
  311. package/resources/qbd/sales-orders.d.ts.map +1 -0
  312. package/resources/qbd/sales-orders.js +69 -0
  313. package/resources/qbd/sales-orders.js.map +1 -0
  314. package/resources/qbd/sales-orders.mjs +64 -0
  315. package/resources/qbd/sales-orders.mjs.map +1 -0
  316. package/resources/qbd/sales-receipts.d.ts +3373 -0
  317. package/resources/qbd/sales-receipts.d.ts.map +1 -0
  318. package/resources/qbd/sales-receipts.js +69 -0
  319. package/resources/qbd/sales-receipts.js.map +1 -0
  320. package/resources/qbd/sales-receipts.mjs +64 -0
  321. package/resources/qbd/sales-receipts.mjs.map +1 -0
  322. package/resources/qbd/sales-representatives.d.ts +251 -0
  323. package/resources/qbd/sales-representatives.d.ts.map +1 -0
  324. package/resources/qbd/sales-representatives.js +54 -0
  325. package/resources/qbd/sales-representatives.js.map +1 -0
  326. package/resources/qbd/sales-representatives.mjs +50 -0
  327. package/resources/qbd/sales-representatives.mjs.map +1 -0
  328. package/resources/qbd/sales-tax-codes.d.ts +306 -0
  329. package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
  330. package/resources/qbd/sales-tax-codes.js +54 -0
  331. package/resources/qbd/sales-tax-codes.js.map +1 -0
  332. package/resources/qbd/sales-tax-codes.mjs +50 -0
  333. package/resources/qbd/sales-tax-codes.mjs.map +1 -0
  334. package/resources/qbd/sales-tax-items.d.ts +458 -0
  335. package/resources/qbd/sales-tax-items.d.ts.map +1 -0
  336. package/resources/qbd/sales-tax-items.js +58 -0
  337. package/resources/qbd/sales-tax-items.js.map +1 -0
  338. package/resources/qbd/sales-tax-items.mjs +53 -0
  339. package/resources/qbd/sales-tax-items.mjs.map +1 -0
  340. package/resources/qbd/service-items.d.ts +923 -0
  341. package/resources/qbd/service-items.d.ts.map +1 -0
  342. package/resources/qbd/service-items.js +58 -0
  343. package/resources/qbd/service-items.js.map +1 -0
  344. package/resources/qbd/service-items.mjs +53 -0
  345. package/resources/qbd/service-items.mjs.map +1 -0
  346. package/resources/qbd/standard-terms.d.ts +225 -0
  347. package/resources/qbd/standard-terms.d.ts.map +1 -0
  348. package/resources/qbd/standard-terms.js +43 -0
  349. package/resources/qbd/standard-terms.js.map +1 -0
  350. package/resources/qbd/standard-terms.mjs +39 -0
  351. package/resources/qbd/standard-terms.mjs.map +1 -0
  352. package/resources/qbd/subtotal-items.d.ts +323 -0
  353. package/resources/qbd/subtotal-items.d.ts.map +1 -0
  354. package/resources/qbd/subtotal-items.js +58 -0
  355. package/resources/qbd/subtotal-items.js.map +1 -0
  356. package/resources/qbd/subtotal-items.mjs +53 -0
  357. package/resources/qbd/subtotal-items.mjs.map +1 -0
  358. package/resources/qbd/transfers.d.ts +269 -0
  359. package/resources/qbd/transfers.d.ts.map +1 -0
  360. package/resources/qbd/transfers.js +58 -0
  361. package/resources/qbd/transfers.js.map +1 -0
  362. package/resources/qbd/transfers.mjs +53 -0
  363. package/resources/qbd/transfers.mjs.map +1 -0
  364. package/resources/qbd/vendor-credits.d.ts +2298 -0
  365. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  366. package/resources/qbd/vendor-credits.js +69 -0
  367. package/resources/qbd/vendor-credits.js.map +1 -0
  368. package/resources/qbd/vendor-credits.mjs +64 -0
  369. package/resources/qbd/vendor-credits.mjs.map +1 -0
  370. package/resources/qbd/vendors.d.ts +1677 -0
  371. package/resources/qbd/vendors.d.ts.map +1 -0
  372. package/resources/qbd/vendors.js +58 -0
  373. package/resources/qbd/vendors.js.map +1 -0
  374. package/resources/qbd/vendors.mjs +53 -0
  375. package/resources/qbd/vendors.mjs.map +1 -0
  376. package/shims/node.d.ts +30 -0
  377. package/shims/node.d.ts.map +1 -0
  378. package/shims/node.js +31 -0
  379. package/shims/node.js.map +1 -0
  380. package/shims/node.mjs +5 -0
  381. package/shims/node.mjs.map +1 -0
  382. package/shims/web.d.ts +26 -0
  383. package/shims/web.d.ts.map +1 -0
  384. package/shims/web.js +31 -0
  385. package/shims/web.js.map +1 -0
  386. package/shims/web.mjs +5 -0
  387. package/shims/web.mjs.map +1 -0
  388. package/src/_shims/MultipartBody.ts +9 -0
  389. package/src/_shims/README.md +46 -0
  390. package/src/_shims/auto/runtime-bun.ts +4 -0
  391. package/src/_shims/auto/runtime-node.ts +4 -0
  392. package/src/_shims/auto/runtime.ts +4 -0
  393. package/src/_shims/auto/types-node.ts +4 -0
  394. package/src/_shims/auto/types.d.ts +101 -0
  395. package/src/_shims/auto/types.js +3 -0
  396. package/src/_shims/auto/types.mjs +3 -0
  397. package/src/_shims/bun-runtime.ts +14 -0
  398. package/src/_shims/index.d.ts +81 -0
  399. package/src/_shims/index.js +13 -0
  400. package/src/_shims/index.mjs +7 -0
  401. package/src/_shims/manual-types.d.ts +12 -0
  402. package/src/_shims/manual-types.js +3 -0
  403. package/src/_shims/manual-types.mjs +3 -0
  404. package/src/_shims/node-runtime.ts +81 -0
  405. package/src/_shims/node-types.d.ts +42 -0
  406. package/src/_shims/node-types.js +3 -0
  407. package/src/_shims/node-types.mjs +3 -0
  408. package/src/_shims/registry.ts +67 -0
  409. package/src/_shims/web-runtime.ts +103 -0
  410. package/src/_shims/web-types.d.ts +83 -0
  411. package/src/_shims/web-types.js +3 -0
  412. package/src/_shims/web-types.mjs +3 -0
  413. package/src/core.ts +1208 -0
  414. package/src/error.ts +130 -0
  415. package/src/index.ts +227 -0
  416. package/src/internal/qs/LICENSE.md +13 -0
  417. package/src/internal/qs/README.md +3 -0
  418. package/src/internal/qs/formats.ts +9 -0
  419. package/src/internal/qs/index.ts +13 -0
  420. package/src/internal/qs/stringify.ts +388 -0
  421. package/src/internal/qs/types.ts +71 -0
  422. package/src/internal/qs/utils.ts +265 -0
  423. package/src/lib/.keep +4 -0
  424. package/src/pagination.ts +60 -0
  425. package/src/resource.ts +11 -0
  426. package/src/resources/auth-sessions.ts +99 -0
  427. package/src/resources/end-users.ts +216 -0
  428. package/src/resources/index.ts +14 -0
  429. package/src/resources/qbd/accounts.ts +797 -0
  430. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  431. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  432. package/src/resources/qbd/bills.ts +3039 -0
  433. package/src/resources/qbd/checks.ts +3003 -0
  434. package/src/resources/qbd/classes.ts +366 -0
  435. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  436. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  437. package/src/resources/qbd/credit-memos.ts +3157 -0
  438. package/src/resources/qbd/customers.ts +2518 -0
  439. package/src/resources/qbd/date-driven-terms.ts +314 -0
  440. package/src/resources/qbd/discount-items.ts +712 -0
  441. package/src/resources/qbd/employees.ts +2266 -0
  442. package/src/resources/qbd/estimates.ts +2975 -0
  443. package/src/resources/qbd/index.ts +346 -0
  444. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  445. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  446. package/src/resources/qbd/inventory-items.ts +1026 -0
  447. package/src/resources/qbd/inventory-sites.ts +605 -0
  448. package/src/resources/qbd/invoices.ts +3398 -0
  449. package/src/resources/qbd/journal-entries.ts +1051 -0
  450. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  451. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  452. package/src/resources/qbd/purchase-orders.ts +3045 -0
  453. package/src/resources/qbd/qbd.ts +876 -0
  454. package/src/resources/qbd/receive-payments.ts +1609 -0
  455. package/src/resources/qbd/sales-orders.ts +3141 -0
  456. package/src/resources/qbd/sales-receipts.ts +3977 -0
  457. package/src/resources/qbd/sales-representatives.ts +340 -0
  458. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  459. package/src/resources/qbd/sales-tax-items.ts +583 -0
  460. package/src/resources/qbd/service-items.ts +1105 -0
  461. package/src/resources/qbd/standard-terms.ts +295 -0
  462. package/src/resources/qbd/subtotal-items.ts +430 -0
  463. package/src/resources/qbd/transfers.ts +359 -0
  464. package/src/resources/qbd/vendor-credits.ts +2742 -0
  465. package/src/resources/qbd/vendors.ts +2017 -0
  466. package/src/shims/node.ts +50 -0
  467. package/src/shims/web.ts +50 -0
  468. package/src/tsconfig.json +11 -0
  469. package/src/uploads.ts +255 -0
  470. package/src/version.ts +1 -0
  471. package/uploads.d.ts +75 -0
  472. package/uploads.d.ts.map +1 -0
  473. package/uploads.js +171 -0
  474. package/uploads.js.map +1 -0
  475. package/uploads.mjs +158 -0
  476. package/uploads.mjs.map +1 -0
  477. package/version.d.ts +2 -0
  478. package/version.d.ts.map +1 -0
  479. package/version.js +5 -0
  480. package/version.js.map +1 -0
  481. package/version.mjs +2 -0
  482. package/version.mjs.map +1 -0
  483. package/dist/package.json +0 -48
  484. package/dist/src/Client.d.ts +0 -21
  485. package/dist/src/Client.js +0 -54
  486. package/dist/src/index.d.ts +0 -11
  487. package/dist/src/index.js +0 -59
  488. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  489. package/dist/src/integrations/BaseIntegration.js +0 -14
  490. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  491. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  492. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  493. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  494. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  495. package/dist/src/interceptors/errorHandling.js +0 -53
  496. package/dist/src/interceptors/logging.d.ts +0 -18
  497. package/dist/src/interceptors/logging.js +0 -70
  498. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  499. package/dist/src/resources/AuthSessionsResource.js +0 -26
  500. package/dist/src/resources/BaseResource.d.ts +0 -6
  501. package/dist/src/resources/BaseResource.js +0 -9
  502. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  503. package/dist/src/resources/EndUsersResource.js +0 -57
  504. package/dist/src/resources/types.d.ts +0 -40
  505. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  506. package/dist/src/utils/checkForUpdates.js +0 -62
  507. package/dist/src/utils/env.d.ts +0 -1
  508. package/dist/src/utils/env.js +0 -15
  509. package/dist/src/utils/error.d.ts +0 -184
  510. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,2106 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import { CursorPage, type CursorPageParams } from "../../pagination.js";
4
+ export declare class Customers extends APIResource {
5
+ /**
6
+ * Creates a new customer.
7
+ */
8
+ create(params: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<Customer>;
9
+ /**
10
+ * Retrieves a customer by ID.
11
+ */
12
+ retrieve(id: string, params: CustomerRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Customer>;
13
+ /**
14
+ * Updates an existing customer.
15
+ */
16
+ update(id: string, params: CustomerUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Customer>;
17
+ /**
18
+ * Returns a list of customers. Use the `cursor` parameter to paginate through the
19
+ * results.
20
+ */
21
+ list(params: CustomerListParams, options?: Core.RequestOptions): Core.PagePromise<CustomersCursorPage, Customer>;
22
+ }
23
+ export declare class CustomersCursorPage extends CursorPage<Customer> {
24
+ }
25
+ export interface Customer {
26
+ /**
27
+ * The unique identifier assigned by QuickBooks to this customer. This ID is unique
28
+ * across all customers but not across different QuickBooks object types.
29
+ */
30
+ id: string;
31
+ /**
32
+ * The customer's account number, which appears in the QuickBooks chart of
33
+ * accounts, reports, and graphs.
34
+ *
35
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
36
+ * the account number may not be visible in the user interface, but it can still be
37
+ * set and retrieved through the API.
38
+ */
39
+ accountNumber: string | null;
40
+ /**
41
+ * Additional alternate contacts for this customer.
42
+ */
43
+ additionalContacts: Array<Customer.AdditionalContact>;
44
+ /**
45
+ * Additional notes about this customer.
46
+ */
47
+ additionalNotes: Array<Customer.AdditionalNote>;
48
+ /**
49
+ * The name of a alternate contact person for this customer.
50
+ */
51
+ alternateContact: string | null;
52
+ /**
53
+ * The customer's alternate telephone number.
54
+ */
55
+ alternatePhone: string | null;
56
+ /**
57
+ * A list of additional shipping addresses for this customer. Useful when the
58
+ * customer has multiple shipping locations.
59
+ */
60
+ alternateShippingAddresses: Array<Customer.AlternateShippingAddress>;
61
+ /**
62
+ * The current balance owed by this customer, excluding balances from any jobs
63
+ * (i.e., sub-customers), represented as a decimal string. Compare with
64
+ * `totalBalance`. A positive number indicates money owed by the customer.
65
+ */
66
+ balance: string | null;
67
+ /**
68
+ * The customer's billing address.
69
+ */
70
+ billingAddress: Customer.BillingAddress | null;
71
+ /**
72
+ * An email address to carbon copy (CC) on communications with this customer.
73
+ */
74
+ ccEmail: string | null;
75
+ /**
76
+ * The customer's class. Classes can be used to categorize objects into meaningful
77
+ * segments, such as department, location, or type of work. In QuickBooks, class
78
+ * tracking is off by default.
79
+ */
80
+ class: Customer.Class | null;
81
+ /**
82
+ * The name of the company associated with this customer. This name is used on
83
+ * invoices, checks, and other forms.
84
+ */
85
+ companyName: string | null;
86
+ /**
87
+ * The name of the primary contact person for this customer.
88
+ */
89
+ contact: string | null;
90
+ /**
91
+ * The date and time when this customer was created, in ISO 8601 format
92
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
93
+ * in QuickBooks.
94
+ */
95
+ createdAt: string;
96
+ /**
97
+ * The customer's credit card information, including card type, number, and
98
+ * expiration date, used for processing credit card payments.
99
+ */
100
+ creditCard: Customer.CreditCard | null;
101
+ /**
102
+ * The customer's credit limit, represented as a decimal string. This is the
103
+ * maximum amount of money this customer can spend before being billed. If `null`,
104
+ * there is no credit limit.
105
+ */
106
+ creditLimit: string | null;
107
+ /**
108
+ * The customer's currency. For built-in currencies, the name and code are standard
109
+ * international values. For user-defined currencies, all values are editable.
110
+ */
111
+ currency: Customer.Currency | null;
112
+ /**
113
+ * Additional custom contact fields for this customer, such as phone numbers or
114
+ * email addresses.
115
+ */
116
+ customContactFields: Array<Customer.CustomContactField>;
117
+ /**
118
+ * The customer's type, used for categorizing customers into meaningful segments,
119
+ * such as industry or region.
120
+ */
121
+ customerType: Customer.CustomerType | null;
122
+ /**
123
+ * The custom fields for the customer object, added as user-defined data
124
+ * extensions, not included in the standard QuickBooks object.
125
+ */
126
+ customFields: Array<Customer.CustomField>;
127
+ /**
128
+ * The customer's email address.
129
+ */
130
+ email: string | null;
131
+ /**
132
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
133
+ * this object in your external system. This field is immutable and can only be set
134
+ * during object creation.
135
+ */
136
+ externalId: string | null;
137
+ /**
138
+ * The customer's fax number.
139
+ */
140
+ fax: string | null;
141
+ /**
142
+ * The first name of the contact person for this customer.
143
+ */
144
+ firstName: string | null;
145
+ /**
146
+ * The case-insensitive fully-qualified unique name of this customer, formed by
147
+ * combining the names of its hierarchical parent objects with its own `name`,
148
+ * separated by colons. For example, if a customer is under "ABC Corporation" and
149
+ * has the `name` "Website Redesign Project", its `fullName` would be "ABC
150
+ * Corporation:Website Redesign Project".
151
+ *
152
+ * **NOTE**: Unlike `name`, `fullName` is guaranteed to be unique across all
153
+ * customer objects. However, `fullName` can still be arbitrarily changed by the
154
+ * QuickBooks user when they modify the underlying `name` field.
155
+ *
156
+ * **IMPORTANT**: If this object is a job (i.e., a sub-customer), this value would
157
+ * likely be the job's `name` prefixed by the customer's `name`.
158
+ */
159
+ fullName: string;
160
+ /**
161
+ * Indicates whether this customer is active. Inactive objects are typically hidden
162
+ * from views and reports in QuickBooks. Defaults to `true`.
163
+ */
164
+ isActive: boolean;
165
+ /**
166
+ * A brief description of this customer's job, if this object is a job (i.e.,
167
+ * sub-customer).
168
+ */
169
+ jobDescription: string | null;
170
+ /**
171
+ * The actual completion date of this customer's job, if applicable, in ISO 8601
172
+ * format (YYYY-MM-DD).
173
+ */
174
+ jobEndDate: string | null;
175
+ /**
176
+ * The projected completion date for this customer's job, if applicable, in ISO
177
+ * 8601 format (YYYY-MM-DD).
178
+ */
179
+ jobProjectedEndDate: string | null;
180
+ /**
181
+ * The date when work on this customer's job began, if applicable, in ISO 8601
182
+ * format (YYYY-MM-DD).
183
+ */
184
+ jobStartDate: string | null;
185
+ /**
186
+ * The status of this customer's job, if this object is a job (i.e., sub-customer).
187
+ */
188
+ jobStatus: 'awarded' | 'closed' | 'in_progress' | 'none' | 'not_awarded' | 'pending' | null;
189
+ /**
190
+ * The job title of the contact person for this customer.
191
+ */
192
+ jobTitle: string | null;
193
+ /**
194
+ * The type or category of this customer's job, if this object is a job (i.e.,
195
+ * sub-customer). Useful for classifying into meaningful segments (e.g., repair,
196
+ * installation, consulting).
197
+ */
198
+ jobType: Customer.JobType | null;
199
+ /**
200
+ * The last name of the contact person for this customer.
201
+ */
202
+ lastName: string | null;
203
+ /**
204
+ * The middle name of the contact person for this customer.
205
+ */
206
+ middleName: string | null;
207
+ /**
208
+ * The case-insensitive name of this customer. Not guaranteed to be unique because
209
+ * it does not include the names of its hierarchical parent objects like `fullName`
210
+ * does. For example, two customers could both have the `name` "Website Redesign
211
+ * Project", but they could have unique `fullName` values, such as "ABC
212
+ * Corporation:Website Redesign Project" and "Baker:Website Redesign Project".
213
+ */
214
+ name: string;
215
+ /**
216
+ * A note or comment about this customer.
217
+ */
218
+ note: string | null;
219
+ /**
220
+ * The type of object. This value is always `"qbd_customer"`.
221
+ */
222
+ objectType: 'qbd_customer';
223
+ /**
224
+ * The parent customer one level above this one in the hierarchy. For example, if
225
+ * this customer has a `fullName` of "ABC Corporation:Website Redesign Project",
226
+ * its parent has a `fullName` of "ABC Corporation". If this customer is at the top
227
+ * level, this field will be `null`.
228
+ */
229
+ parent: Customer.Parent | null;
230
+ /**
231
+ * The customer's primary telephone number.
232
+ */
233
+ phone: string | null;
234
+ /**
235
+ * The preferred method for delivering invoices and other documents to this
236
+ * customer.
237
+ */
238
+ preferredDeliveryMethod: 'email' | 'mail' | 'none' | null;
239
+ /**
240
+ * The customer's preferred payment method (e.g., cash, check, credit card).
241
+ */
242
+ preferredPaymentMethod: Customer.PreferredPaymentMethod | null;
243
+ /**
244
+ * The customer's custom price level that QuickBooks automatically applies to
245
+ * calculate item rates in new transactions (e.g., invoices, sales receipts, sales
246
+ * orders, and credit memos) for this customer. While applied automatically, this
247
+ * can be overridden when creating individual transactions. Note that transactions
248
+ * will not show the price level itself, only the final `rate` calculated from it.
249
+ */
250
+ priceLevel: Customer.PriceLevel | null;
251
+ /**
252
+ * The customer's resale number, used if the customer is purchasing items for
253
+ * resale. This number does not affect sales tax calculations or reports in
254
+ * QuickBooks.
255
+ */
256
+ resaleNumber: string | null;
257
+ /**
258
+ * The current QuickBooks-assigned revision number of this customer object, which
259
+ * changes each time the object is modified. When updating this object, you must
260
+ * provide the most recent `revisionNumber` to ensure you're working with the
261
+ * latest data; otherwise, the update will return an error.
262
+ */
263
+ revisionNumber: string;
264
+ /**
265
+ * The customer's sales representative. Sales representatives can be employees,
266
+ * vendors, or other names in QuickBooks.
267
+ */
268
+ salesRepresentative: Customer.SalesRepresentative | null;
269
+ /**
270
+ * The default sales-tax code for transactions with this customer, determining
271
+ * whether the transactions are taxable or non-taxable. This can be overridden at
272
+ * the transaction or transaction-line level.
273
+ *
274
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
275
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
276
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
277
+ * non-taxable code to all sales.
278
+ */
279
+ salesTaxCode: Customer.SalesTaxCode | null;
280
+ /**
281
+ * The country for which sales tax is collected for this customer.
282
+ */
283
+ salesTaxCountry: 'australia' | 'canada' | 'uk' | 'us' | null;
284
+ /**
285
+ * The sales-tax item used to calculate the actual tax amount for this customer's
286
+ * transactions by applying a specific tax rate collected for a single tax agency.
287
+ * Unlike `salesTaxCode`, which only indicates general taxability, this field
288
+ * drives the actual tax calculation and reporting.
289
+ */
290
+ salesTaxItem: Customer.SalesTaxItem | null;
291
+ /**
292
+ * The formal salutation title that precedes the name of the contact person for
293
+ * this customer, such as "Mr.", "Ms.", or "Dr.".
294
+ */
295
+ salutation: string | null;
296
+ /**
297
+ * The customer's shipping address.
298
+ */
299
+ shippingAddress: Customer.ShippingAddress | null;
300
+ /**
301
+ * The depth level of this customer in the hierarchy. A top-level customer has a
302
+ * `sublevel` of 0; each subsequent sublevel increases this number by 1. For
303
+ * example, a customer with a `fullName` of "ABC Corporation:Website Redesign
304
+ * Project" would have a `sublevel` of 1. When `sublevel` is 0, this object is a
305
+ * customer; when `sublevel` is greater than 0, this object is typically a job
306
+ * (i.e., a sub-customer).
307
+ */
308
+ sublevel: number;
309
+ /**
310
+ * The customer's tax registration number, for use in Canada or the UK.
311
+ */
312
+ taxRegistrationNumber: string | null;
313
+ /**
314
+ * The customer's payment terms, defining when payment is due and any applicable
315
+ * discounts.
316
+ */
317
+ terms: Customer.Terms | null;
318
+ /**
319
+ * The combined balance of this customer and all of this customer's jobs (i.e.,
320
+ * sub-customers), represented as a decimal string. If there are no sub-customers,
321
+ * `totalBalance` and `balance` are equal. A positive number indicates money owed
322
+ * by the customer.
323
+ */
324
+ totalBalance: string | null;
325
+ /**
326
+ * The date and time when this customer was last updated, in ISO 8601 format
327
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
328
+ * in QuickBooks.
329
+ */
330
+ updatedAt: string;
331
+ }
332
+ export declare namespace Customer {
333
+ interface AdditionalContact {
334
+ /**
335
+ * The unique identifier assigned by QuickBooks to this contact. This ID is unique
336
+ * across all contacts but not across different QuickBooks object types.
337
+ */
338
+ id: string;
339
+ /**
340
+ * The date and time when this contact was created, in ISO 8601 format
341
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
342
+ * in QuickBooks.
343
+ */
344
+ createdAt: string;
345
+ /**
346
+ * Additional custom contact fields for this contact, such as phone numbers or
347
+ * email addresses.
348
+ */
349
+ customContactFields: Array<AdditionalContact.CustomContactField>;
350
+ /**
351
+ * The contact's first name.
352
+ */
353
+ firstName: string;
354
+ /**
355
+ * The contact's job title.
356
+ */
357
+ jobTitle: string | null;
358
+ /**
359
+ * The contact's last name.
360
+ */
361
+ lastName: string | null;
362
+ /**
363
+ * The contact's middle name.
364
+ */
365
+ middleName: string | null;
366
+ /**
367
+ * The contact's full name.
368
+ */
369
+ name: string | null;
370
+ /**
371
+ * The type of object. This value is always `"qbd_contact"`.
372
+ */
373
+ objectType: 'qbd_contact';
374
+ /**
375
+ * The current QuickBooks-assigned revision number of this contact object, which
376
+ * changes each time the object is modified. When updating this object, you must
377
+ * provide the most recent `revisionNumber` to ensure you're working with the
378
+ * latest data; otherwise, the update will return an error.
379
+ */
380
+ revisionNumber: string;
381
+ /**
382
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
383
+ * "Ms.", or "Dr.".
384
+ */
385
+ salutation: string | null;
386
+ /**
387
+ * The date and time when this contact was last updated, in ISO 8601 format
388
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
389
+ * in QuickBooks.
390
+ */
391
+ updatedAt: string;
392
+ }
393
+ namespace AdditionalContact {
394
+ interface CustomContactField {
395
+ /**
396
+ * The name of the contact field (e.g., "old address", "secondary phone").
397
+ */
398
+ name: string;
399
+ /**
400
+ * The value of the contact field.
401
+ */
402
+ value: string;
403
+ }
404
+ }
405
+ interface AdditionalNote {
406
+ /**
407
+ * The auto-incrementing identifier assigned by QuickBooks to this note.
408
+ */
409
+ id: number;
410
+ /**
411
+ * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
412
+ */
413
+ date: string;
414
+ /**
415
+ * The text of this note.
416
+ */
417
+ note: string;
418
+ }
419
+ interface AlternateShippingAddress {
420
+ /**
421
+ * The city, district, suburb, town, or village name of the shipping address.
422
+ */
423
+ city: string | null;
424
+ /**
425
+ * The country name of the shipping address.
426
+ */
427
+ country: string | null;
428
+ /**
429
+ * Indicates whether this shipping address is the default shipping address.
430
+ */
431
+ isDefaultShippingAddress: boolean | null;
432
+ /**
433
+ * The first line of the shipping address (e.g., street, PO Box, or company name).
434
+ */
435
+ line1: string | null;
436
+ /**
437
+ * The second line of the shipping address, if needed (e.g., apartment, suite,
438
+ * unit, or building).
439
+ */
440
+ line2: string | null;
441
+ /**
442
+ * The third line of the shipping address, if needed.
443
+ */
444
+ line3: string | null;
445
+ /**
446
+ * The fourth line of the shipping address, if needed.
447
+ */
448
+ line4: string | null;
449
+ /**
450
+ * The fifth line of the shipping address, if needed.
451
+ */
452
+ line5: string | null;
453
+ /**
454
+ * The case-insensitive unique name of this shipping address, unique across all
455
+ * shipping addresses.
456
+ *
457
+ * **NOTE**: Shipping addresses do not have a `fullName` field because they are not
458
+ * hierarchical objects, which is why `name` is unique for them but not for objects
459
+ * that have parents.
460
+ */
461
+ name: string;
462
+ /**
463
+ * A note written at the bottom of the shipping address in the form in which it
464
+ * appears, such as the invoice form.
465
+ */
466
+ note: string | null;
467
+ /**
468
+ * The postal code or ZIP code of the shipping address.
469
+ */
470
+ postalCode: string | null;
471
+ /**
472
+ * The state, county, province, or region name of the shipping address.
473
+ */
474
+ state: string | null;
475
+ }
476
+ /**
477
+ * The customer's billing address.
478
+ */
479
+ interface BillingAddress {
480
+ /**
481
+ * The city, district, suburb, town, or village name of the address.
482
+ */
483
+ city: string | null;
484
+ /**
485
+ * The country name of the address.
486
+ */
487
+ country: string | null;
488
+ /**
489
+ * The first line of the address (e.g., street, PO Box, or company name).
490
+ */
491
+ line1: string | null;
492
+ /**
493
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
494
+ * building).
495
+ */
496
+ line2: string | null;
497
+ /**
498
+ * The third line of the address, if needed.
499
+ */
500
+ line3: string | null;
501
+ /**
502
+ * The fourth line of the address, if needed.
503
+ */
504
+ line4: string | null;
505
+ /**
506
+ * The fifth line of the address, if needed.
507
+ */
508
+ line5: string | null;
509
+ /**
510
+ * A note written at the bottom of the address in the form in which it appears,
511
+ * such as the invoice form.
512
+ */
513
+ note: string | null;
514
+ /**
515
+ * The postal code or ZIP code of the address.
516
+ */
517
+ postalCode: string | null;
518
+ /**
519
+ * The state, county, province, or region name of the address.
520
+ */
521
+ state: string | null;
522
+ }
523
+ /**
524
+ * The customer's class. Classes can be used to categorize objects into meaningful
525
+ * segments, such as department, location, or type of work. In QuickBooks, class
526
+ * tracking is off by default.
527
+ */
528
+ interface Class {
529
+ /**
530
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
531
+ * across all objects of the same type, but not across different QuickBooks object
532
+ * types.
533
+ */
534
+ id: string | null;
535
+ /**
536
+ * The fully-qualified unique name for this object, formed by combining the names
537
+ * of its parent objects with its own `name`, separated by colons. Not
538
+ * case-sensitive.
539
+ */
540
+ fullName: string | null;
541
+ }
542
+ /**
543
+ * The customer's credit card information, including card type, number, and
544
+ * expiration date, used for processing credit card payments.
545
+ */
546
+ interface CreditCard {
547
+ /**
548
+ * The card's billing address.
549
+ */
550
+ address: string | null;
551
+ /**
552
+ * The month when the credit card expires.
553
+ */
554
+ expirationMonth: number | null;
555
+ /**
556
+ * The year when the credit card expires.
557
+ */
558
+ expirationYear: number | null;
559
+ /**
560
+ * The cardholder's name on the card.
561
+ */
562
+ name: string | null;
563
+ /**
564
+ * The credit card number. Must be masked with lower case "x" and no dashes.
565
+ */
566
+ number: string | null;
567
+ /**
568
+ * The card's billing address ZIP or postal code.
569
+ */
570
+ postalCode: string | null;
571
+ }
572
+ /**
573
+ * The customer's currency. For built-in currencies, the name and code are standard
574
+ * international values. For user-defined currencies, all values are editable.
575
+ */
576
+ interface Currency {
577
+ /**
578
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
579
+ * across all objects of the same type, but not across different QuickBooks object
580
+ * types.
581
+ */
582
+ id: string | null;
583
+ /**
584
+ * The fully-qualified unique name for this object, formed by combining the names
585
+ * of its parent objects with its own `name`, separated by colons. Not
586
+ * case-sensitive.
587
+ */
588
+ fullName: string | null;
589
+ }
590
+ interface CustomContactField {
591
+ /**
592
+ * The name of the contact field (e.g., "old address", "secondary phone").
593
+ */
594
+ name: string;
595
+ /**
596
+ * The value of the contact field.
597
+ */
598
+ value: string;
599
+ }
600
+ /**
601
+ * The customer's type, used for categorizing customers into meaningful segments,
602
+ * such as industry or region.
603
+ */
604
+ interface CustomerType {
605
+ /**
606
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
607
+ * across all objects of the same type, but not across different QuickBooks object
608
+ * types.
609
+ */
610
+ id: string | null;
611
+ /**
612
+ * The fully-qualified unique name for this object, formed by combining the names
613
+ * of its parent objects with its own `name`, separated by colons. Not
614
+ * case-sensitive.
615
+ */
616
+ fullName: string | null;
617
+ }
618
+ interface CustomField {
619
+ /**
620
+ * The name of the custom field, unique for the specified `ownerId`. For public
621
+ * custom fields, this name is visible as a label in the QuickBooks UI.
622
+ */
623
+ name: string;
624
+ /**
625
+ * The identifier of the owner of the custom field, which QuickBooks internally
626
+ * calls a "data extension". For public custom fields visible in the UI, such as
627
+ * those added by the QuickBooks user, this is always "0". For private custom
628
+ * fields that are only visible to the application that created them, this is a
629
+ * valid GUID identifying the owning application. Internally, Conductor always
630
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
631
+ * objects.
632
+ */
633
+ ownerId: string;
634
+ /**
635
+ * The data type of this custom field.
636
+ */
637
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
638
+ /**
639
+ * The value of this custom field. The maximum length depends on the field's data
640
+ * type.
641
+ */
642
+ value: string;
643
+ }
644
+ /**
645
+ * The type or category of this customer's job, if this object is a job (i.e.,
646
+ * sub-customer). Useful for classifying into meaningful segments (e.g., repair,
647
+ * installation, consulting).
648
+ */
649
+ interface JobType {
650
+ /**
651
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
652
+ * across all objects of the same type, but not across different QuickBooks object
653
+ * types.
654
+ */
655
+ id: string | null;
656
+ /**
657
+ * The fully-qualified unique name for this object, formed by combining the names
658
+ * of its parent objects with its own `name`, separated by colons. Not
659
+ * case-sensitive.
660
+ */
661
+ fullName: string | null;
662
+ }
663
+ /**
664
+ * The parent customer one level above this one in the hierarchy. For example, if
665
+ * this customer has a `fullName` of "ABC Corporation:Website Redesign Project",
666
+ * its parent has a `fullName` of "ABC Corporation". If this customer is at the top
667
+ * level, this field will be `null`.
668
+ */
669
+ interface Parent {
670
+ /**
671
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
672
+ * across all objects of the same type, but not across different QuickBooks object
673
+ * types.
674
+ */
675
+ id: string | null;
676
+ /**
677
+ * The fully-qualified unique name for this object, formed by combining the names
678
+ * of its parent objects with its own `name`, separated by colons. Not
679
+ * case-sensitive.
680
+ */
681
+ fullName: string | null;
682
+ }
683
+ /**
684
+ * The customer's preferred payment method (e.g., cash, check, credit card).
685
+ */
686
+ interface PreferredPaymentMethod {
687
+ /**
688
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
689
+ * across all objects of the same type, but not across different QuickBooks object
690
+ * types.
691
+ */
692
+ id: string | null;
693
+ /**
694
+ * The fully-qualified unique name for this object, formed by combining the names
695
+ * of its parent objects with its own `name`, separated by colons. Not
696
+ * case-sensitive.
697
+ */
698
+ fullName: string | null;
699
+ }
700
+ /**
701
+ * The customer's custom price level that QuickBooks automatically applies to
702
+ * calculate item rates in new transactions (e.g., invoices, sales receipts, sales
703
+ * orders, and credit memos) for this customer. While applied automatically, this
704
+ * can be overridden when creating individual transactions. Note that transactions
705
+ * will not show the price level itself, only the final `rate` calculated from it.
706
+ */
707
+ interface PriceLevel {
708
+ /**
709
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
710
+ * across all objects of the same type, but not across different QuickBooks object
711
+ * types.
712
+ */
713
+ id: string | null;
714
+ /**
715
+ * The fully-qualified unique name for this object, formed by combining the names
716
+ * of its parent objects with its own `name`, separated by colons. Not
717
+ * case-sensitive.
718
+ */
719
+ fullName: string | null;
720
+ }
721
+ /**
722
+ * The customer's sales representative. Sales representatives can be employees,
723
+ * vendors, or other names in QuickBooks.
724
+ */
725
+ interface SalesRepresentative {
726
+ /**
727
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
728
+ * across all objects of the same type, but not across different QuickBooks object
729
+ * types.
730
+ */
731
+ id: string | null;
732
+ /**
733
+ * The fully-qualified unique name for this object, formed by combining the names
734
+ * of its parent objects with its own `name`, separated by colons. Not
735
+ * case-sensitive.
736
+ */
737
+ fullName: string | null;
738
+ }
739
+ /**
740
+ * The default sales-tax code for transactions with this customer, determining
741
+ * whether the transactions are taxable or non-taxable. This can be overridden at
742
+ * the transaction or transaction-line level.
743
+ *
744
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
745
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
746
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
747
+ * non-taxable code to all sales.
748
+ */
749
+ interface SalesTaxCode {
750
+ /**
751
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
752
+ * across all objects of the same type, but not across different QuickBooks object
753
+ * types.
754
+ */
755
+ id: string | null;
756
+ /**
757
+ * The fully-qualified unique name for this object, formed by combining the names
758
+ * of its parent objects with its own `name`, separated by colons. Not
759
+ * case-sensitive.
760
+ */
761
+ fullName: string | null;
762
+ }
763
+ /**
764
+ * The sales-tax item used to calculate the actual tax amount for this customer's
765
+ * transactions by applying a specific tax rate collected for a single tax agency.
766
+ * Unlike `salesTaxCode`, which only indicates general taxability, this field
767
+ * drives the actual tax calculation and reporting.
768
+ */
769
+ interface SalesTaxItem {
770
+ /**
771
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
772
+ * across all objects of the same type, but not across different QuickBooks object
773
+ * types.
774
+ */
775
+ id: string | null;
776
+ /**
777
+ * The fully-qualified unique name for this object, formed by combining the names
778
+ * of its parent objects with its own `name`, separated by colons. Not
779
+ * case-sensitive.
780
+ */
781
+ fullName: string | null;
782
+ }
783
+ /**
784
+ * The customer's shipping address.
785
+ */
786
+ interface ShippingAddress {
787
+ /**
788
+ * The city, district, suburb, town, or village name of the address.
789
+ */
790
+ city: string | null;
791
+ /**
792
+ * The country name of the address.
793
+ */
794
+ country: string | null;
795
+ /**
796
+ * The first line of the address (e.g., street, PO Box, or company name).
797
+ */
798
+ line1: string | null;
799
+ /**
800
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
801
+ * building).
802
+ */
803
+ line2: string | null;
804
+ /**
805
+ * The third line of the address, if needed.
806
+ */
807
+ line3: string | null;
808
+ /**
809
+ * The fourth line of the address, if needed.
810
+ */
811
+ line4: string | null;
812
+ /**
813
+ * The fifth line of the address, if needed.
814
+ */
815
+ line5: string | null;
816
+ /**
817
+ * A note written at the bottom of the address in the form in which it appears,
818
+ * such as the invoice form.
819
+ */
820
+ note: string | null;
821
+ /**
822
+ * The postal code or ZIP code of the address.
823
+ */
824
+ postalCode: string | null;
825
+ /**
826
+ * The state, county, province, or region name of the address.
827
+ */
828
+ state: string | null;
829
+ }
830
+ /**
831
+ * The customer's payment terms, defining when payment is due and any applicable
832
+ * discounts.
833
+ */
834
+ interface Terms {
835
+ /**
836
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
837
+ * across all objects of the same type, but not across different QuickBooks object
838
+ * types.
839
+ */
840
+ id: string | null;
841
+ /**
842
+ * The fully-qualified unique name for this object, formed by combining the names
843
+ * of its parent objects with its own `name`, separated by colons. Not
844
+ * case-sensitive.
845
+ */
846
+ fullName: string | null;
847
+ }
848
+ }
849
+ export interface CustomerCreateParams {
850
+ /**
851
+ * Body param: The case-insensitive name of this customer. Not guaranteed to be
852
+ * unique because it does not include the names of its hierarchical parent objects
853
+ * like `fullName` does. For example, two customers could both have the `name`
854
+ * "Website Redesign Project", but they could have unique `fullName` values, such
855
+ * as "ABC Corporation:Website Redesign Project" and "Baker:Website Redesign
856
+ * Project".
857
+ *
858
+ * Maximum length: 41 characters.
859
+ */
860
+ name: string;
861
+ /**
862
+ * Header param: The ID of the EndUser to receive this request (e.g.,
863
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
864
+ */
865
+ conductorEndUserId: string;
866
+ /**
867
+ * Body param: The customer's account number, which appears in the QuickBooks chart
868
+ * of accounts, reports, and graphs.
869
+ *
870
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
871
+ * the account number may not be visible in the user interface, but it can still be
872
+ * set and retrieved through the API.
873
+ */
874
+ accountNumber?: string;
875
+ /**
876
+ * Body param: Additional alternate contacts for this customer.
877
+ */
878
+ additionalContacts?: Array<CustomerCreateParams.AdditionalContact>;
879
+ /**
880
+ * Body param: Additional notes about this customer.
881
+ */
882
+ additionalNotes?: Array<CustomerCreateParams.AdditionalNote>;
883
+ /**
884
+ * Body param: The name of a alternate contact person for this customer.
885
+ */
886
+ alternateContact?: string;
887
+ /**
888
+ * Body param: The customer's alternate telephone number.
889
+ */
890
+ alternatePhone?: string;
891
+ /**
892
+ * Body param: A list of additional shipping addresses for this customer. Useful
893
+ * when the customer has multiple shipping locations.
894
+ */
895
+ alternateShippingAddresses?: Array<CustomerCreateParams.AlternateShippingAddress>;
896
+ /**
897
+ * Body param: The customer's billing address.
898
+ */
899
+ billingAddress?: CustomerCreateParams.BillingAddress;
900
+ /**
901
+ * Body param: An email address to carbon copy (CC) on communications with this
902
+ * customer.
903
+ */
904
+ ccEmail?: string;
905
+ /**
906
+ * Body param: The customer's class. Classes can be used to categorize objects into
907
+ * meaningful segments, such as department, location, or type of work. In
908
+ * QuickBooks, class tracking is off by default.
909
+ */
910
+ classId?: string;
911
+ /**
912
+ * Body param: The name of the company associated with this customer. This name is
913
+ * used on invoices, checks, and other forms.
914
+ */
915
+ companyName?: string;
916
+ /**
917
+ * Body param: The name of the primary contact person for this customer.
918
+ */
919
+ contact?: string;
920
+ /**
921
+ * Body param: The customer's credit card information, including card type, number,
922
+ * and expiration date, used for processing credit card payments.
923
+ */
924
+ creditCard?: CustomerCreateParams.CreditCard;
925
+ /**
926
+ * Body param: The customer's credit limit, represented as a decimal string. This
927
+ * is the maximum amount of money this customer can spend before being billed. If
928
+ * `null`, there is no credit limit.
929
+ */
930
+ creditLimit?: string;
931
+ /**
932
+ * Body param: The customer's currency. For built-in currencies, the name and code
933
+ * are standard international values. For user-defined currencies, all values are
934
+ * editable.
935
+ */
936
+ currencyId?: string;
937
+ /**
938
+ * Body param: Additional custom contact fields for this customer, such as phone
939
+ * numbers or email addresses.
940
+ */
941
+ customContactFields?: Array<CustomerCreateParams.CustomContactField>;
942
+ /**
943
+ * Body param: The customer's type, used for categorizing customers into meaningful
944
+ * segments, such as industry or region.
945
+ */
946
+ customerTypeId?: string;
947
+ /**
948
+ * Body param: The customer's email address.
949
+ */
950
+ email?: string;
951
+ /**
952
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
953
+ * for tracking this object in your external system. This field is immutable and
954
+ * can only be set during object creation.
955
+ *
956
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
957
+ * QuickBooks will return an error.
958
+ */
959
+ externalId?: string;
960
+ /**
961
+ * Body param: The customer's fax number.
962
+ */
963
+ fax?: string;
964
+ /**
965
+ * Body param: The first name of the contact person for this customer.
966
+ *
967
+ * Maximum length: 25 characters.
968
+ */
969
+ firstName?: string;
970
+ /**
971
+ * Body param: Indicates whether this customer is active. Inactive objects are
972
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
973
+ */
974
+ isActive?: boolean;
975
+ /**
976
+ * Body param: A brief description of this customer's job, if this object is a job
977
+ * (i.e., sub-customer).
978
+ */
979
+ jobDescription?: string;
980
+ /**
981
+ * Body param: The actual completion date of this customer's job, if applicable, in
982
+ * ISO 8601 format (YYYY-MM-DD).
983
+ */
984
+ jobEndDate?: string;
985
+ /**
986
+ * Body param: The projected completion date for this customer's job, if
987
+ * applicable, in ISO 8601 format (YYYY-MM-DD).
988
+ */
989
+ jobProjectedEndDate?: string;
990
+ /**
991
+ * Body param: The date when work on this customer's job began, if applicable, in
992
+ * ISO 8601 format (YYYY-MM-DD).
993
+ */
994
+ jobStartDate?: string;
995
+ /**
996
+ * Body param: The status of this customer's job, if this object is a job (i.e.,
997
+ * sub-customer).
998
+ */
999
+ jobStatus?: 'awarded' | 'closed' | 'in_progress' | 'none' | 'not_awarded' | 'pending';
1000
+ /**
1001
+ * Body param: The job title of the contact person for this customer.
1002
+ */
1003
+ jobTitle?: string;
1004
+ /**
1005
+ * Body param: The type or category of this customer's job, if this object is a job
1006
+ * (i.e., sub-customer). Useful for classifying into meaningful segments (e.g.,
1007
+ * repair, installation, consulting).
1008
+ */
1009
+ jobTypeId?: string;
1010
+ /**
1011
+ * Body param: The last name of the contact person for this customer.
1012
+ *
1013
+ * Maximum length: 25 characters.
1014
+ */
1015
+ lastName?: string;
1016
+ /**
1017
+ * Body param: The middle name of the contact person for this customer.
1018
+ *
1019
+ * Maximum length: 5 characters.
1020
+ */
1021
+ middleName?: string;
1022
+ /**
1023
+ * Body param: A note or comment about this customer.
1024
+ */
1025
+ note?: string;
1026
+ /**
1027
+ * Body param: The opening balance of this customer's account, indicating the
1028
+ * amount owed by this customer, represented as a decimal string.
1029
+ */
1030
+ openingBalance?: string;
1031
+ /**
1032
+ * Body param: The date of the opening balance of this customer, in ISO 8601 format
1033
+ * (YYYY-MM-DD).
1034
+ */
1035
+ openingBalanceDate?: string;
1036
+ /**
1037
+ * Body param: The parent customer one level above this one in the hierarchy. For
1038
+ * example, if this customer has a `fullName` of "ABC Corporation:Website Redesign
1039
+ * Project", its parent has a `fullName` of "ABC Corporation". If this customer is
1040
+ * at the top level, this field will be `null`.
1041
+ */
1042
+ parentId?: string;
1043
+ /**
1044
+ * Body param: The customer's primary telephone number.
1045
+ */
1046
+ phone?: string;
1047
+ /**
1048
+ * Body param: The preferred method for delivering invoices and other documents to
1049
+ * this customer.
1050
+ */
1051
+ preferredDeliveryMethod?: 'email' | 'mail' | 'none';
1052
+ /**
1053
+ * Body param: The customer's preferred payment method (e.g., cash, check, credit
1054
+ * card).
1055
+ */
1056
+ preferredPaymentMethodId?: string;
1057
+ /**
1058
+ * Body param: The customer's custom price level that QuickBooks automatically
1059
+ * applies to calculate item rates in new transactions (e.g., invoices, sales
1060
+ * receipts, sales orders, and credit memos) for this customer. While applied
1061
+ * automatically, this can be overridden when creating individual transactions.
1062
+ * Note that transactions will not show the price level itself, only the final
1063
+ * `rate` calculated from it.
1064
+ */
1065
+ priceLevelId?: string;
1066
+ /**
1067
+ * Body param: The customer's resale number, used if the customer is purchasing
1068
+ * items for resale. This number does not affect sales tax calculations or reports
1069
+ * in QuickBooks.
1070
+ */
1071
+ resaleNumber?: string;
1072
+ /**
1073
+ * Body param: The customer's sales representative. Sales representatives can be
1074
+ * employees, vendors, or other names in QuickBooks.
1075
+ */
1076
+ salesRepresentativeId?: string;
1077
+ /**
1078
+ * Body param: The default sales-tax code for transactions with this customer,
1079
+ * determining whether the transactions are taxable or non-taxable. This can be
1080
+ * overridden at the transaction or transaction-line level.
1081
+ *
1082
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1083
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1084
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1085
+ * non-taxable code to all sales.
1086
+ */
1087
+ salesTaxCodeId?: string;
1088
+ /**
1089
+ * Body param: The country for which sales tax is collected for this customer.
1090
+ */
1091
+ salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
1092
+ /**
1093
+ * Body param: The sales-tax item used to calculate the actual tax amount for this
1094
+ * customer's transactions by applying a specific tax rate collected for a single
1095
+ * tax agency. Unlike `salesTaxCode`, which only indicates general taxability, this
1096
+ * field drives the actual tax calculation and reporting.
1097
+ */
1098
+ salesTaxItemId?: string;
1099
+ /**
1100
+ * Body param: The formal salutation title that precedes the name of the contact
1101
+ * person for this customer, such as "Mr.", "Ms.", or "Dr.".
1102
+ */
1103
+ salutation?: string;
1104
+ /**
1105
+ * Body param: The customer's shipping address.
1106
+ */
1107
+ shippingAddress?: CustomerCreateParams.ShippingAddress;
1108
+ /**
1109
+ * Body param: The customer's tax registration number, for use in Canada or the UK.
1110
+ */
1111
+ taxRegistrationNumber?: string;
1112
+ /**
1113
+ * Body param: The customer's payment terms, defining when payment is due and any
1114
+ * applicable discounts.
1115
+ */
1116
+ termsId?: string;
1117
+ }
1118
+ export declare namespace CustomerCreateParams {
1119
+ interface AdditionalContact {
1120
+ /**
1121
+ * The contact's first name.
1122
+ *
1123
+ * Maximum length: 25 characters.
1124
+ */
1125
+ firstName: string;
1126
+ /**
1127
+ * Additional custom contact fields for this contact, such as phone numbers or
1128
+ * email addresses.
1129
+ */
1130
+ customContactFields?: Array<AdditionalContact.CustomContactField>;
1131
+ /**
1132
+ * The contact's job title.
1133
+ */
1134
+ jobTitle?: string;
1135
+ /**
1136
+ * The contact's last name.
1137
+ *
1138
+ * Maximum length: 25 characters.
1139
+ */
1140
+ lastName?: string;
1141
+ /**
1142
+ * The contact's middle name.
1143
+ *
1144
+ * Maximum length: 5 characters.
1145
+ */
1146
+ middleName?: string;
1147
+ /**
1148
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
1149
+ * "Ms.", or "Dr.".
1150
+ */
1151
+ salutation?: string;
1152
+ }
1153
+ namespace AdditionalContact {
1154
+ interface CustomContactField {
1155
+ /**
1156
+ * The name of the contact field (e.g., "old address", "secondary phone").
1157
+ */
1158
+ name: string;
1159
+ /**
1160
+ * The value of the contact field.
1161
+ */
1162
+ value: string;
1163
+ }
1164
+ }
1165
+ interface AdditionalNote {
1166
+ /**
1167
+ * The text of this note.
1168
+ */
1169
+ note: string;
1170
+ }
1171
+ interface AlternateShippingAddress {
1172
+ /**
1173
+ * The case-insensitive unique name of this shipping address, unique across all
1174
+ * shipping addresses.
1175
+ *
1176
+ * **NOTE**: Shipping addresses do not have a `fullName` field because they are not
1177
+ * hierarchical objects, which is why `name` is unique for them but not for objects
1178
+ * that have parents.
1179
+ *
1180
+ * Maximum length: 41 characters.
1181
+ */
1182
+ name: string;
1183
+ /**
1184
+ * The city, district, suburb, town, or village name of the shipping address.
1185
+ *
1186
+ * Maximum length: 31 characters.
1187
+ */
1188
+ city?: string;
1189
+ /**
1190
+ * The country name of the shipping address.
1191
+ */
1192
+ country?: string;
1193
+ /**
1194
+ * Indicates whether this shipping address is the default shipping address.
1195
+ */
1196
+ isDefaultShippingAddress?: boolean;
1197
+ /**
1198
+ * The first line of the shipping address (e.g., street, PO Box, or company name).
1199
+ *
1200
+ * Maximum length: 41 characters.
1201
+ */
1202
+ line1?: string;
1203
+ /**
1204
+ * The second line of the shipping address, if needed (e.g., apartment, suite,
1205
+ * unit, or building).
1206
+ *
1207
+ * Maximum length: 41 characters.
1208
+ */
1209
+ line2?: string;
1210
+ /**
1211
+ * The third line of the shipping address, if needed.
1212
+ *
1213
+ * Maximum length: 41 characters.
1214
+ */
1215
+ line3?: string;
1216
+ /**
1217
+ * The fourth line of the shipping address, if needed.
1218
+ *
1219
+ * Maximum length: 41 characters.
1220
+ */
1221
+ line4?: string;
1222
+ /**
1223
+ * The fifth line of the shipping address, if needed.
1224
+ *
1225
+ * Maximum length: 41 characters.
1226
+ */
1227
+ line5?: string;
1228
+ /**
1229
+ * A note written at the bottom of the shipping address in the form in which it
1230
+ * appears, such as the invoice form.
1231
+ */
1232
+ note?: string;
1233
+ /**
1234
+ * The postal code or ZIP code of the shipping address.
1235
+ *
1236
+ * Maximum length: 13 characters.
1237
+ */
1238
+ postalCode?: string;
1239
+ /**
1240
+ * The state, county, province, or region name of the shipping address.
1241
+ *
1242
+ * Maximum length: 21 characters.
1243
+ */
1244
+ state?: string;
1245
+ }
1246
+ /**
1247
+ * The customer's billing address.
1248
+ */
1249
+ interface BillingAddress {
1250
+ /**
1251
+ * The city, district, suburb, town, or village name of the address.
1252
+ *
1253
+ * Maximum length: 31 characters.
1254
+ */
1255
+ city?: string;
1256
+ /**
1257
+ * The country name of the address.
1258
+ */
1259
+ country?: string;
1260
+ /**
1261
+ * The first line of the address (e.g., street, PO Box, or company name).
1262
+ *
1263
+ * Maximum length: 41 characters.
1264
+ */
1265
+ line1?: string;
1266
+ /**
1267
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1268
+ * building).
1269
+ *
1270
+ * Maximum length: 41 characters.
1271
+ */
1272
+ line2?: string;
1273
+ /**
1274
+ * The third line of the address, if needed.
1275
+ *
1276
+ * Maximum length: 41 characters.
1277
+ */
1278
+ line3?: string;
1279
+ /**
1280
+ * The fourth line of the address, if needed.
1281
+ *
1282
+ * Maximum length: 41 characters.
1283
+ */
1284
+ line4?: string;
1285
+ /**
1286
+ * The fifth line of the address, if needed.
1287
+ *
1288
+ * Maximum length: 41 characters.
1289
+ */
1290
+ line5?: string;
1291
+ /**
1292
+ * A note written at the bottom of the address in the form in which it appears,
1293
+ * such as the invoice form.
1294
+ */
1295
+ note?: string;
1296
+ /**
1297
+ * The postal code or ZIP code of the address.
1298
+ *
1299
+ * Maximum length: 13 characters.
1300
+ */
1301
+ postalCode?: string;
1302
+ /**
1303
+ * The state, county, province, or region name of the address.
1304
+ *
1305
+ * Maximum length: 21 characters.
1306
+ */
1307
+ state?: string;
1308
+ }
1309
+ /**
1310
+ * The customer's credit card information, including card type, number, and
1311
+ * expiration date, used for processing credit card payments.
1312
+ */
1313
+ interface CreditCard {
1314
+ /**
1315
+ * The card's billing address.
1316
+ */
1317
+ address?: string;
1318
+ /**
1319
+ * The month when the credit card expires.
1320
+ */
1321
+ expirationMonth?: number;
1322
+ /**
1323
+ * The year when the credit card expires.
1324
+ */
1325
+ expirationYear?: number;
1326
+ /**
1327
+ * The cardholder's name on the card.
1328
+ */
1329
+ name?: string;
1330
+ /**
1331
+ * The credit card number. Must be masked with lower case "x" and no dashes.
1332
+ */
1333
+ number?: string;
1334
+ /**
1335
+ * The card's billing address ZIP or postal code.
1336
+ */
1337
+ postalCode?: string;
1338
+ }
1339
+ interface CustomContactField {
1340
+ /**
1341
+ * The name of the contact field (e.g., "old address", "secondary phone").
1342
+ */
1343
+ name: string;
1344
+ /**
1345
+ * The value of the contact field.
1346
+ */
1347
+ value: string;
1348
+ }
1349
+ /**
1350
+ * The customer's shipping address.
1351
+ */
1352
+ interface ShippingAddress {
1353
+ /**
1354
+ * The city, district, suburb, town, or village name of the address.
1355
+ *
1356
+ * Maximum length: 31 characters.
1357
+ */
1358
+ city?: string;
1359
+ /**
1360
+ * The country name of the address.
1361
+ */
1362
+ country?: string;
1363
+ /**
1364
+ * The first line of the address (e.g., street, PO Box, or company name).
1365
+ *
1366
+ * Maximum length: 41 characters.
1367
+ */
1368
+ line1?: string;
1369
+ /**
1370
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1371
+ * building).
1372
+ *
1373
+ * Maximum length: 41 characters.
1374
+ */
1375
+ line2?: string;
1376
+ /**
1377
+ * The third line of the address, if needed.
1378
+ *
1379
+ * Maximum length: 41 characters.
1380
+ */
1381
+ line3?: string;
1382
+ /**
1383
+ * The fourth line of the address, if needed.
1384
+ *
1385
+ * Maximum length: 41 characters.
1386
+ */
1387
+ line4?: string;
1388
+ /**
1389
+ * The fifth line of the address, if needed.
1390
+ *
1391
+ * Maximum length: 41 characters.
1392
+ */
1393
+ line5?: string;
1394
+ /**
1395
+ * A note written at the bottom of the address in the form in which it appears,
1396
+ * such as the invoice form.
1397
+ */
1398
+ note?: string;
1399
+ /**
1400
+ * The postal code or ZIP code of the address.
1401
+ *
1402
+ * Maximum length: 13 characters.
1403
+ */
1404
+ postalCode?: string;
1405
+ /**
1406
+ * The state, county, province, or region name of the address.
1407
+ *
1408
+ * Maximum length: 21 characters.
1409
+ */
1410
+ state?: string;
1411
+ }
1412
+ }
1413
+ export interface CustomerRetrieveParams {
1414
+ /**
1415
+ * The ID of the EndUser to receive this request (e.g.,
1416
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1417
+ */
1418
+ conductorEndUserId: string;
1419
+ }
1420
+ export interface CustomerUpdateParams {
1421
+ /**
1422
+ * Body param: The current QuickBooks-assigned revision number of the customer
1423
+ * object you are updating, which you can get by fetching the object first. Provide
1424
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
1425
+ * otherwise, the update will return an error.
1426
+ */
1427
+ revisionNumber: string;
1428
+ /**
1429
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1430
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1431
+ */
1432
+ conductorEndUserId: string;
1433
+ /**
1434
+ * Body param: The customer's account number, which appears in the QuickBooks chart
1435
+ * of accounts, reports, and graphs.
1436
+ *
1437
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
1438
+ * the account number may not be visible in the user interface, but it can still be
1439
+ * set and retrieved through the API.
1440
+ */
1441
+ accountNumber?: string;
1442
+ /**
1443
+ * Body param: Additional alternate contacts for this customer.
1444
+ */
1445
+ additionalContacts?: Array<CustomerUpdateParams.AdditionalContact>;
1446
+ /**
1447
+ * Body param: Additional notes about this customer.
1448
+ */
1449
+ additionalNotes?: Array<CustomerUpdateParams.AdditionalNote>;
1450
+ /**
1451
+ * Body param: The name of a alternate contact person for this customer.
1452
+ */
1453
+ alternateContact?: string;
1454
+ /**
1455
+ * Body param: The customer's alternate telephone number.
1456
+ */
1457
+ alternatePhone?: string;
1458
+ /**
1459
+ * Body param: A list of additional shipping addresses for this customer. Useful
1460
+ * when the customer has multiple shipping locations.
1461
+ */
1462
+ alternateShippingAddresses?: Array<CustomerUpdateParams.AlternateShippingAddress>;
1463
+ /**
1464
+ * Body param: The customer's billing address.
1465
+ */
1466
+ billingAddress?: CustomerUpdateParams.BillingAddress;
1467
+ /**
1468
+ * Body param: An email address to carbon copy (CC) on communications with this
1469
+ * customer.
1470
+ */
1471
+ ccEmail?: string;
1472
+ /**
1473
+ * Body param: The customer's class. Classes can be used to categorize objects into
1474
+ * meaningful segments, such as department, location, or type of work. In
1475
+ * QuickBooks, class tracking is off by default.
1476
+ */
1477
+ classId?: string;
1478
+ /**
1479
+ * Body param: The name of the company associated with this customer. This name is
1480
+ * used on invoices, checks, and other forms.
1481
+ */
1482
+ companyName?: string;
1483
+ /**
1484
+ * Body param: The name of the primary contact person for this customer.
1485
+ */
1486
+ contact?: string;
1487
+ /**
1488
+ * Body param: The customer's credit card information, including card type, number,
1489
+ * and expiration date, used for processing credit card payments.
1490
+ */
1491
+ creditCard?: CustomerUpdateParams.CreditCard;
1492
+ /**
1493
+ * Body param: The customer's credit limit, represented as a decimal string. This
1494
+ * is the maximum amount of money this customer can spend before being billed. If
1495
+ * `null`, there is no credit limit.
1496
+ */
1497
+ creditLimit?: string;
1498
+ /**
1499
+ * Body param: The customer's currency. For built-in currencies, the name and code
1500
+ * are standard international values. For user-defined currencies, all values are
1501
+ * editable.
1502
+ */
1503
+ currencyId?: string;
1504
+ /**
1505
+ * Body param: Additional custom contact fields for this customer, such as phone
1506
+ * numbers or email addresses.
1507
+ */
1508
+ customContactFields?: Array<CustomerUpdateParams.CustomContactField>;
1509
+ /**
1510
+ * Body param: The customer's type, used for categorizing customers into meaningful
1511
+ * segments, such as industry or region.
1512
+ */
1513
+ customerTypeId?: string;
1514
+ /**
1515
+ * Body param: The customer's email address.
1516
+ */
1517
+ email?: string;
1518
+ /**
1519
+ * Body param: The customer's fax number.
1520
+ */
1521
+ fax?: string;
1522
+ /**
1523
+ * Body param: The first name of the contact person for this customer.
1524
+ *
1525
+ * Maximum length: 25 characters.
1526
+ */
1527
+ firstName?: string;
1528
+ /**
1529
+ * Body param: Indicates whether this customer is active. Inactive objects are
1530
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1531
+ */
1532
+ isActive?: boolean;
1533
+ /**
1534
+ * Body param: A brief description of this customer's job, if this object is a job
1535
+ * (i.e., sub-customer).
1536
+ */
1537
+ jobDescription?: string;
1538
+ /**
1539
+ * Body param: The actual completion date of this customer's job, if applicable, in
1540
+ * ISO 8601 format (YYYY-MM-DD).
1541
+ */
1542
+ jobEndDate?: string;
1543
+ /**
1544
+ * Body param: The projected completion date for this customer's job, if
1545
+ * applicable, in ISO 8601 format (YYYY-MM-DD).
1546
+ */
1547
+ jobProjectedEndDate?: string;
1548
+ /**
1549
+ * Body param: The date when work on this customer's job began, if applicable, in
1550
+ * ISO 8601 format (YYYY-MM-DD).
1551
+ */
1552
+ jobStartDate?: string;
1553
+ /**
1554
+ * Body param: The status of this customer's job, if this object is a job (i.e.,
1555
+ * sub-customer).
1556
+ */
1557
+ jobStatus?: 'awarded' | 'closed' | 'in_progress' | 'none' | 'not_awarded' | 'pending';
1558
+ /**
1559
+ * Body param: The job title of the contact person for this customer.
1560
+ */
1561
+ jobTitle?: string;
1562
+ /**
1563
+ * Body param: The type or category of this customer's job, if this object is a job
1564
+ * (i.e., sub-customer). Useful for classifying into meaningful segments (e.g.,
1565
+ * repair, installation, consulting).
1566
+ */
1567
+ jobTypeId?: string;
1568
+ /**
1569
+ * Body param: The last name of the contact person for this customer.
1570
+ *
1571
+ * Maximum length: 25 characters.
1572
+ */
1573
+ lastName?: string;
1574
+ /**
1575
+ * Body param: The middle name of the contact person for this customer.
1576
+ *
1577
+ * Maximum length: 5 characters.
1578
+ */
1579
+ middleName?: string;
1580
+ /**
1581
+ * Body param: The case-insensitive name of this customer. Not guaranteed to be
1582
+ * unique because it does not include the names of its hierarchical parent objects
1583
+ * like `fullName` does. For example, two customers could both have the `name`
1584
+ * "Website Redesign Project", but they could have unique `fullName` values, such
1585
+ * as "ABC Corporation:Website Redesign Project" and "Baker:Website Redesign
1586
+ * Project".
1587
+ *
1588
+ * Maximum length: 41 characters.
1589
+ */
1590
+ name?: string;
1591
+ /**
1592
+ * Body param: A note or comment about this customer.
1593
+ */
1594
+ note?: string;
1595
+ /**
1596
+ * Body param: The parent customer one level above this one in the hierarchy. For
1597
+ * example, if this customer has a `fullName` of "ABC Corporation:Website Redesign
1598
+ * Project", its parent has a `fullName` of "ABC Corporation". If this customer is
1599
+ * at the top level, this field will be `null`.
1600
+ */
1601
+ parentId?: string;
1602
+ /**
1603
+ * Body param: The customer's primary telephone number.
1604
+ */
1605
+ phone?: string;
1606
+ /**
1607
+ * Body param: The preferred method for delivering invoices and other documents to
1608
+ * this customer.
1609
+ */
1610
+ preferredDeliveryMethod?: 'email' | 'mail' | 'none';
1611
+ /**
1612
+ * Body param: The customer's preferred payment method (e.g., cash, check, credit
1613
+ * card).
1614
+ */
1615
+ preferredPaymentMethodId?: string;
1616
+ /**
1617
+ * Body param: The customer's custom price level that QuickBooks automatically
1618
+ * applies to calculate item rates in new transactions (e.g., invoices, sales
1619
+ * receipts, sales orders, and credit memos) for this customer. While applied
1620
+ * automatically, this can be overridden when creating individual transactions.
1621
+ * Note that transactions will not show the price level itself, only the final
1622
+ * `rate` calculated from it.
1623
+ */
1624
+ priceLevelId?: string;
1625
+ /**
1626
+ * Body param: The customer's resale number, used if the customer is purchasing
1627
+ * items for resale. This number does not affect sales tax calculations or reports
1628
+ * in QuickBooks.
1629
+ */
1630
+ resaleNumber?: string;
1631
+ /**
1632
+ * Body param: The customer's sales representative. Sales representatives can be
1633
+ * employees, vendors, or other names in QuickBooks.
1634
+ */
1635
+ salesRepresentativeId?: string;
1636
+ /**
1637
+ * Body param: The default sales-tax code for transactions with this customer,
1638
+ * determining whether the transactions are taxable or non-taxable. This can be
1639
+ * overridden at the transaction or transaction-line level.
1640
+ *
1641
+ * Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
1642
+ * can also be created in QuickBooks. If QuickBooks is not set up to charge sales
1643
+ * tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
1644
+ * non-taxable code to all sales.
1645
+ */
1646
+ salesTaxCodeId?: string;
1647
+ /**
1648
+ * Body param: The country for which sales tax is collected for this customer.
1649
+ */
1650
+ salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
1651
+ /**
1652
+ * Body param: The sales-tax item used to calculate the actual tax amount for this
1653
+ * customer's transactions by applying a specific tax rate collected for a single
1654
+ * tax agency. Unlike `salesTaxCode`, which only indicates general taxability, this
1655
+ * field drives the actual tax calculation and reporting.
1656
+ */
1657
+ salesTaxItemId?: string;
1658
+ /**
1659
+ * Body param: The formal salutation title that precedes the name of the contact
1660
+ * person for this customer, such as "Mr.", "Ms.", or "Dr.".
1661
+ */
1662
+ salutation?: string;
1663
+ /**
1664
+ * Body param: The customer's shipping address.
1665
+ */
1666
+ shippingAddress?: CustomerUpdateParams.ShippingAddress;
1667
+ /**
1668
+ * Body param: The customer's tax registration number, for use in Canada or the UK.
1669
+ */
1670
+ taxRegistrationNumber?: string;
1671
+ /**
1672
+ * Body param: The customer's payment terms, defining when payment is due and any
1673
+ * applicable discounts.
1674
+ */
1675
+ termsId?: string;
1676
+ }
1677
+ export declare namespace CustomerUpdateParams {
1678
+ interface AdditionalContact {
1679
+ /**
1680
+ * The QuickBooks-assigned unique identifier of the contact to update.
1681
+ */
1682
+ id: string;
1683
+ /**
1684
+ * The current QuickBooks-assigned revision number of the contact object you are
1685
+ * updating, which you can get by fetching the object first. Provide the most
1686
+ * recent `revisionNumber` to ensure you're working with the latest data;
1687
+ * otherwise, the update will return an error.
1688
+ */
1689
+ revisionNumber: string;
1690
+ /**
1691
+ * Additional custom contact fields for this contact, such as phone numbers or
1692
+ * email addresses.
1693
+ */
1694
+ customContactFields?: Array<AdditionalContact.CustomContactField>;
1695
+ /**
1696
+ * The contact's first name.
1697
+ *
1698
+ * Maximum length: 25 characters.
1699
+ */
1700
+ firstName?: string;
1701
+ /**
1702
+ * The contact's job title.
1703
+ */
1704
+ jobTitle?: string;
1705
+ /**
1706
+ * The contact's last name.
1707
+ *
1708
+ * Maximum length: 25 characters.
1709
+ */
1710
+ lastName?: string;
1711
+ /**
1712
+ * The contact's middle name.
1713
+ *
1714
+ * Maximum length: 5 characters.
1715
+ */
1716
+ middleName?: string;
1717
+ /**
1718
+ * The contact's formal salutation title that precedes their name, such as "Mr.",
1719
+ * "Ms.", or "Dr.".
1720
+ */
1721
+ salutation?: string;
1722
+ }
1723
+ namespace AdditionalContact {
1724
+ interface CustomContactField {
1725
+ /**
1726
+ * The name of the contact field (e.g., "old address", "secondary phone").
1727
+ */
1728
+ name: string;
1729
+ /**
1730
+ * The value of the contact field.
1731
+ */
1732
+ value: string;
1733
+ }
1734
+ }
1735
+ interface AdditionalNote {
1736
+ /**
1737
+ * The ID of the note to update.
1738
+ */
1739
+ id: number;
1740
+ /**
1741
+ * The text of this note.
1742
+ */
1743
+ note?: string;
1744
+ }
1745
+ interface AlternateShippingAddress {
1746
+ /**
1747
+ * The case-insensitive unique name of this shipping address, unique across all
1748
+ * shipping addresses.
1749
+ *
1750
+ * **NOTE**: Shipping addresses do not have a `fullName` field because they are not
1751
+ * hierarchical objects, which is why `name` is unique for them but not for objects
1752
+ * that have parents.
1753
+ *
1754
+ * Maximum length: 41 characters.
1755
+ */
1756
+ name: string;
1757
+ /**
1758
+ * The city, district, suburb, town, or village name of the shipping address.
1759
+ *
1760
+ * Maximum length: 31 characters.
1761
+ */
1762
+ city?: string;
1763
+ /**
1764
+ * The country name of the shipping address.
1765
+ */
1766
+ country?: string;
1767
+ /**
1768
+ * Indicates whether this shipping address is the default shipping address.
1769
+ */
1770
+ isDefaultShippingAddress?: boolean;
1771
+ /**
1772
+ * The first line of the shipping address (e.g., street, PO Box, or company name).
1773
+ *
1774
+ * Maximum length: 41 characters.
1775
+ */
1776
+ line1?: string;
1777
+ /**
1778
+ * The second line of the shipping address, if needed (e.g., apartment, suite,
1779
+ * unit, or building).
1780
+ *
1781
+ * Maximum length: 41 characters.
1782
+ */
1783
+ line2?: string;
1784
+ /**
1785
+ * The third line of the shipping address, if needed.
1786
+ *
1787
+ * Maximum length: 41 characters.
1788
+ */
1789
+ line3?: string;
1790
+ /**
1791
+ * The fourth line of the shipping address, if needed.
1792
+ *
1793
+ * Maximum length: 41 characters.
1794
+ */
1795
+ line4?: string;
1796
+ /**
1797
+ * The fifth line of the shipping address, if needed.
1798
+ *
1799
+ * Maximum length: 41 characters.
1800
+ */
1801
+ line5?: string;
1802
+ /**
1803
+ * A note written at the bottom of the shipping address in the form in which it
1804
+ * appears, such as the invoice form.
1805
+ */
1806
+ note?: string;
1807
+ /**
1808
+ * The postal code or ZIP code of the shipping address.
1809
+ *
1810
+ * Maximum length: 13 characters.
1811
+ */
1812
+ postalCode?: string;
1813
+ /**
1814
+ * The state, county, province, or region name of the shipping address.
1815
+ *
1816
+ * Maximum length: 21 characters.
1817
+ */
1818
+ state?: string;
1819
+ }
1820
+ /**
1821
+ * The customer's billing address.
1822
+ */
1823
+ interface BillingAddress {
1824
+ /**
1825
+ * The city, district, suburb, town, or village name of the address.
1826
+ *
1827
+ * Maximum length: 31 characters.
1828
+ */
1829
+ city?: string;
1830
+ /**
1831
+ * The country name of the address.
1832
+ */
1833
+ country?: string;
1834
+ /**
1835
+ * The first line of the address (e.g., street, PO Box, or company name).
1836
+ *
1837
+ * Maximum length: 41 characters.
1838
+ */
1839
+ line1?: string;
1840
+ /**
1841
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1842
+ * building).
1843
+ *
1844
+ * Maximum length: 41 characters.
1845
+ */
1846
+ line2?: string;
1847
+ /**
1848
+ * The third line of the address, if needed.
1849
+ *
1850
+ * Maximum length: 41 characters.
1851
+ */
1852
+ line3?: string;
1853
+ /**
1854
+ * The fourth line of the address, if needed.
1855
+ *
1856
+ * Maximum length: 41 characters.
1857
+ */
1858
+ line4?: string;
1859
+ /**
1860
+ * The fifth line of the address, if needed.
1861
+ *
1862
+ * Maximum length: 41 characters.
1863
+ */
1864
+ line5?: string;
1865
+ /**
1866
+ * A note written at the bottom of the address in the form in which it appears,
1867
+ * such as the invoice form.
1868
+ */
1869
+ note?: string;
1870
+ /**
1871
+ * The postal code or ZIP code of the address.
1872
+ *
1873
+ * Maximum length: 13 characters.
1874
+ */
1875
+ postalCode?: string;
1876
+ /**
1877
+ * The state, county, province, or region name of the address.
1878
+ *
1879
+ * Maximum length: 21 characters.
1880
+ */
1881
+ state?: string;
1882
+ }
1883
+ /**
1884
+ * The customer's credit card information, including card type, number, and
1885
+ * expiration date, used for processing credit card payments.
1886
+ */
1887
+ interface CreditCard {
1888
+ /**
1889
+ * The card's billing address.
1890
+ */
1891
+ address?: string;
1892
+ /**
1893
+ * The month when the credit card expires.
1894
+ */
1895
+ expirationMonth?: number;
1896
+ /**
1897
+ * The year when the credit card expires.
1898
+ */
1899
+ expirationYear?: number;
1900
+ /**
1901
+ * The cardholder's name on the card.
1902
+ */
1903
+ name?: string;
1904
+ /**
1905
+ * The credit card number. Must be masked with lower case "x" and no dashes.
1906
+ */
1907
+ number?: string;
1908
+ /**
1909
+ * The card's billing address ZIP or postal code.
1910
+ */
1911
+ postalCode?: string;
1912
+ }
1913
+ interface CustomContactField {
1914
+ /**
1915
+ * The name of the contact field (e.g., "old address", "secondary phone").
1916
+ */
1917
+ name: string;
1918
+ /**
1919
+ * The value of the contact field.
1920
+ */
1921
+ value: string;
1922
+ }
1923
+ /**
1924
+ * The customer's shipping address.
1925
+ */
1926
+ interface ShippingAddress {
1927
+ /**
1928
+ * The city, district, suburb, town, or village name of the address.
1929
+ *
1930
+ * Maximum length: 31 characters.
1931
+ */
1932
+ city?: string;
1933
+ /**
1934
+ * The country name of the address.
1935
+ */
1936
+ country?: string;
1937
+ /**
1938
+ * The first line of the address (e.g., street, PO Box, or company name).
1939
+ *
1940
+ * Maximum length: 41 characters.
1941
+ */
1942
+ line1?: string;
1943
+ /**
1944
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
1945
+ * building).
1946
+ *
1947
+ * Maximum length: 41 characters.
1948
+ */
1949
+ line2?: string;
1950
+ /**
1951
+ * The third line of the address, if needed.
1952
+ *
1953
+ * Maximum length: 41 characters.
1954
+ */
1955
+ line3?: string;
1956
+ /**
1957
+ * The fourth line of the address, if needed.
1958
+ *
1959
+ * Maximum length: 41 characters.
1960
+ */
1961
+ line4?: string;
1962
+ /**
1963
+ * The fifth line of the address, if needed.
1964
+ *
1965
+ * Maximum length: 41 characters.
1966
+ */
1967
+ line5?: string;
1968
+ /**
1969
+ * A note written at the bottom of the address in the form in which it appears,
1970
+ * such as the invoice form.
1971
+ */
1972
+ note?: string;
1973
+ /**
1974
+ * The postal code or ZIP code of the address.
1975
+ *
1976
+ * Maximum length: 13 characters.
1977
+ */
1978
+ postalCode?: string;
1979
+ /**
1980
+ * The state, county, province, or region name of the address.
1981
+ *
1982
+ * Maximum length: 21 characters.
1983
+ */
1984
+ state?: string;
1985
+ }
1986
+ }
1987
+ export interface CustomerListParams extends CursorPageParams {
1988
+ /**
1989
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1990
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1991
+ */
1992
+ conductorEndUserId: string;
1993
+ /**
1994
+ * Query param: Filter for customers of these classes. A class is a way end-users
1995
+ * can categorize customers in QuickBooks.
1996
+ */
1997
+ classIds?: Array<string>;
1998
+ /**
1999
+ * Query param: Filter for customers in these currencies.
2000
+ */
2001
+ currencyIds?: Array<string>;
2002
+ /**
2003
+ * Query param: Filter for specific customers by their full-name(s),
2004
+ * case-insensitive. Like `id`, `fullName` is a unique identifier for a customer,
2005
+ * formed by by combining the names of its parent objects with its own `name`,
2006
+ * separated by colons. For example, if a customer is under "ABC Corporation" and
2007
+ * has the `name` "Website Redesign Project", its `fullName` would be "ABC
2008
+ * Corporation:Website Redesign Project".
2009
+ *
2010
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2011
+ * query parameters for this request.
2012
+ *
2013
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2014
+ * request will return an error.
2015
+ */
2016
+ fullNames?: Array<string>;
2017
+ /**
2018
+ * Query param: Filter for specific customers by their QuickBooks-assigned unique
2019
+ * identifier(s).
2020
+ *
2021
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2022
+ * query parameters for this request.
2023
+ *
2024
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2025
+ * request will return an error.
2026
+ */
2027
+ ids?: Array<string>;
2028
+ /**
2029
+ * Query param: Filter for customers whose `name` contains this substring,
2030
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2031
+ * `nameStartsWith` or `nameEndsWith`.
2032
+ */
2033
+ nameContains?: string;
2034
+ /**
2035
+ * Query param: Filter for customers whose `name` ends with this substring,
2036
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2037
+ * `nameContains` or `nameStartsWith`.
2038
+ */
2039
+ nameEndsWith?: string;
2040
+ /**
2041
+ * Query param: Filter for customers whose `name` is alphabetically greater than or
2042
+ * equal to this value.
2043
+ */
2044
+ nameFrom?: string;
2045
+ /**
2046
+ * Query param: Filter for customers whose `name` starts with this substring,
2047
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2048
+ * `nameContains` or `nameEndsWith`.
2049
+ */
2050
+ nameStartsWith?: string;
2051
+ /**
2052
+ * Query param: Filter for customers whose `name` is alphabetically less than or
2053
+ * equal to this value.
2054
+ */
2055
+ nameTo?: string;
2056
+ /**
2057
+ * Query param: Filter for customers that are active, inactive, or both.
2058
+ */
2059
+ status?: 'active' | 'all' | 'inactive';
2060
+ /**
2061
+ * Query param: Filter for customers whose `totalBalance` equals this amount,
2062
+ * represented as a decimal string. You can only use one total-balance filter at a
2063
+ * time.
2064
+ */
2065
+ totalBalance?: string;
2066
+ /**
2067
+ * Query param: Filter for customers whose `totalBalance` is greater than this
2068
+ * amount, represented as a decimal string. You can only use one total-balance
2069
+ * filter at a time.
2070
+ */
2071
+ totalBalanceGreaterThan?: string;
2072
+ /**
2073
+ * Query param: Filter for customers whose `totalBalance` is greater than or equal
2074
+ * to this amount, represented as a decimal string. You can only use one
2075
+ * total-balance filter at a time.
2076
+ */
2077
+ totalBalanceGreaterThanOrEqualTo?: string;
2078
+ /**
2079
+ * Query param: Filter for customers whose `totalBalance` is less than this amount,
2080
+ * represented as a decimal string. You can only use one total-balance filter at a
2081
+ * time.
2082
+ */
2083
+ totalBalanceLessThan?: string;
2084
+ /**
2085
+ * Query param: Filter for customers whose `totalBalance` is less than or equal to
2086
+ * this amount, represented as a decimal string. You can only use one total-balance
2087
+ * filter at a time.
2088
+ */
2089
+ totalBalanceLessThanOrEqualTo?: string;
2090
+ /**
2091
+ * Query param: Filter for customers updated on or after this date and time, in ISO
2092
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
2093
+ * time is assumed to be 00:00:00 of that day.
2094
+ */
2095
+ updatedAfter?: string;
2096
+ /**
2097
+ * Query param: Filter for customers updated on or before this date and time, in
2098
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
2099
+ * the time is assumed to be 23:59:59 of that day.
2100
+ */
2101
+ updatedBefore?: string;
2102
+ }
2103
+ export declare namespace Customers {
2104
+ export { type Customer as Customer, CustomersCursorPage as CustomersCursorPage, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, };
2105
+ }
2106
+ //# sourceMappingURL=customers.d.ts.map