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,1282 @@
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 ReceivePayments extends APIResource {
5
+ /**
6
+ * Creates a new receive-payment.
7
+ */
8
+ create(params: ReceivePaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<ReceivePayment>;
9
+ /**
10
+ * Retrieves a receive-payment by ID.
11
+ */
12
+ retrieve(id: string, params: ReceivePaymentRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<ReceivePayment>;
13
+ /**
14
+ * Updates an existing receive-payment.
15
+ */
16
+ update(id: string, params: ReceivePaymentUpdateParams, options?: Core.RequestOptions): Core.APIPromise<ReceivePayment>;
17
+ /**
18
+ * Returns a list of receive-payments. Use the `cursor` parameter to paginate
19
+ * through the results.
20
+ */
21
+ list(params: ReceivePaymentListParams, options?: Core.RequestOptions): Core.PagePromise<ReceivePaymentsCursorPage, ReceivePayment>;
22
+ /**
23
+ * Permanently deletes a a receive-payment. The deletion will fail if the
24
+ * receive-payment is currently in use or has any linked transactions that are in
25
+ * use.
26
+ */
27
+ delete(id: string, params: ReceivePaymentDeleteParams, options?: Core.RequestOptions): Core.APIPromise<ReceivePaymentDeleteResponse>;
28
+ }
29
+ export declare class ReceivePaymentsCursorPage extends CursorPage<ReceivePayment> {
30
+ }
31
+ export interface ReceivePayment {
32
+ /**
33
+ * The unique identifier assigned by QuickBooks to this receive-payment. This ID is
34
+ * unique across all transaction types.
35
+ */
36
+ id: string;
37
+ /**
38
+ * The invoice(s) paid by this receive-payment.
39
+ */
40
+ appliedToTransactions: Array<ReceivePayment.AppliedToTransaction>;
41
+ /**
42
+ * The date and time when this receive-payment was created, in ISO 8601 format
43
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
44
+ * in QuickBooks.
45
+ */
46
+ createdAt: string;
47
+ /**
48
+ * The credit card transaction data for this receive-payment's payment when using
49
+ * QuickBooks Merchant Services (QBMS).
50
+ */
51
+ creditCardTransaction: ReceivePayment.CreditCardTransaction | null;
52
+ /**
53
+ * The receive-payment's currency. For built-in currencies, the name and code are
54
+ * standard international values. For user-defined currencies, all values are
55
+ * editable.
56
+ */
57
+ currency: ReceivePayment.Currency | null;
58
+ /**
59
+ * The customer or customer-job to which the payment for this receive-payment is
60
+ * credited.
61
+ */
62
+ customer: ReceivePayment.Customer;
63
+ /**
64
+ * The custom fields for the receive-payment object, added as user-defined data
65
+ * extensions, not included in the standard QuickBooks object.
66
+ */
67
+ customFields: Array<ReceivePayment.CustomField>;
68
+ /**
69
+ * The account where the funds for this receive-payment will be or have been
70
+ * deposited.
71
+ */
72
+ depositToAccount: ReceivePayment.DepositToAccount | null;
73
+ /**
74
+ * The market exchange rate between this receive-payment's currency and the home
75
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
76
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
77
+ */
78
+ exchangeRate: number | null;
79
+ /**
80
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
81
+ * this object in your external system. This field is immutable and can only be set
82
+ * during object creation.
83
+ */
84
+ externalId: string | null;
85
+ /**
86
+ * A memo or note for this receive-payment that will be displayed at the beginning
87
+ * of reports containing details about this receive-payment.
88
+ */
89
+ memo: string | null;
90
+ /**
91
+ * The type of object. This value is always `"qbd_receive_payment"`.
92
+ */
93
+ objectType: 'qbd_receive_payment';
94
+ /**
95
+ * The receive-payment's payment method (e.g., cash, check, credit card).
96
+ */
97
+ paymentMethod: ReceivePayment.PaymentMethod | null;
98
+ /**
99
+ * The Accounts-Receivable (A/R) account to which this receive-payment is assigned,
100
+ * used to track the amount owed. If not specified, QuickBooks Desktop will use its
101
+ * default A/R account.
102
+ *
103
+ * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
104
+ * account must match the `receivablesAccount` used in all linked transactions. For
105
+ * example, when refunding a credit card payment, the A/R account must match the
106
+ * one used in the original credit transactions being refunded.
107
+ */
108
+ receivablesAccount: ReceivePayment.ReceivablesAccount | null;
109
+ /**
110
+ * The case-sensitive user-defined reference number for this receive-payment, which
111
+ * can be used to identify the transaction in QuickBooks. This value is not
112
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
113
+ */
114
+ refNumber: string | null;
115
+ /**
116
+ * The current QuickBooks-assigned revision number of this receive-payment object,
117
+ * which changes each time the object is modified. When updating this object, you
118
+ * must provide the most recent `revisionNumber` to ensure you're working with the
119
+ * latest data; otherwise, the update will return an error.
120
+ */
121
+ revisionNumber: string;
122
+ /**
123
+ * The total monetary amount of this receive-payment, represented as a decimal
124
+ * string.
125
+ */
126
+ totalAmount: string;
127
+ /**
128
+ * The total monetary amount of this receive-payment converted to the home currency
129
+ * of the QuickBooks company file. Represented as a decimal string.
130
+ */
131
+ totalAmountInHomeCurrency: string | null;
132
+ /**
133
+ * The date of this receive-payment, in ISO 8601 format (YYYY-MM-DD).
134
+ */
135
+ transactionDate: string;
136
+ /**
137
+ * The amount of credit that remains unused after applying credits to this
138
+ * receive-payment. This occurs when the `applyCredit.appliedAmount` specified for
139
+ * a credit memo (`applyCredit.creditMemoId`) in the `applyToTransactions` array is
140
+ * less than the total available credit amount for that credit memo.
141
+ */
142
+ unusedCredits: string | null;
143
+ /**
144
+ * The amount of this receive-payment that remains unapplied to any transactions.
145
+ * This occurs in two cases: (1) When the sum of `paymentAmount` amounts in
146
+ * `applyToTransactions` is less than `totalAmount`, leaving a portion of the
147
+ * payment unused, or (2) When a payment is received that equals the exact amount
148
+ * of an invoice, but credits or discounts are also applied, resulting in excess
149
+ * payment.
150
+ */
151
+ unusedPayment: string | null;
152
+ /**
153
+ * The date and time when this receive-payment was last updated, in ISO 8601 format
154
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
155
+ * in QuickBooks.
156
+ */
157
+ updatedAt: string;
158
+ }
159
+ export declare namespace ReceivePayment {
160
+ interface AppliedToTransaction {
161
+ /**
162
+ * The monetary amount of this receivable transaction, represented as a decimal
163
+ * string.
164
+ */
165
+ amount: string | null;
166
+ /**
167
+ * The outstanding balance of this receivable transaction after applying any
168
+ * credits or payments. Represented as a decimal string.
169
+ */
170
+ balanceRemaining: string | null;
171
+ /**
172
+ * The financial account used to track this receivable transaction's discount.
173
+ */
174
+ discountAccount: AppliedToTransaction.DiscountAccount | null;
175
+ /**
176
+ * The monetary amount by which to reduce the receivable transaction's receivable
177
+ * amount, represented as a decimal string.
178
+ */
179
+ discountAmount: string | null;
180
+ /**
181
+ * The class used to track this receivable transaction's discount.
182
+ */
183
+ discountClass: AppliedToTransaction.DiscountClass | null;
184
+ /**
185
+ * The receivable transaction's linked transactions, such as payments applied,
186
+ * credits used, or associated purchase orders.
187
+ *
188
+ * **IMPORTANT**: You must specify the parameter `includeLinkedTransactions` when
189
+ * fetching a list of receivable transactions to receive this field because it is
190
+ * not returned by default.
191
+ */
192
+ linkedTransactions: Array<AppliedToTransaction.LinkedTransaction>;
193
+ /**
194
+ * The case-sensitive user-defined reference number for this receivable
195
+ * transaction, which can be used to identify the transaction in QuickBooks. This
196
+ * value is not required to be unique and can be arbitrarily changed by the
197
+ * QuickBooks user.
198
+ */
199
+ refNumber: string | null;
200
+ /**
201
+ * The date of this receivable transaction, in ISO 8601 format (YYYY-MM-DD).
202
+ */
203
+ transactionDate: string;
204
+ /**
205
+ * The ID of the receivable transaction to which this payment is applied.
206
+ */
207
+ transactionId: string;
208
+ /**
209
+ * The type of transaction for this receivable transaction.
210
+ */
211
+ transactionType: 'ar_refund_credit_card' | 'bill' | 'bill_payment_check' | 'bill_payment_credit_card' | 'build_assembly' | 'charge' | 'check' | 'credit_card_charge' | 'credit_card_credit' | 'credit_memo' | 'deposit' | 'estimate' | 'inventory_adjustment' | 'invoice' | 'item_receipt' | 'journal_entry' | 'liability_adjustment' | 'paycheck' | 'payroll_liability_check' | 'purchase_order' | 'receive_payment' | 'sales_order' | 'sales_receipt' | 'sales_tax_payment_check' | 'transfer' | 'vendor_credit' | 'ytd_adjustment';
212
+ }
213
+ namespace AppliedToTransaction {
214
+ /**
215
+ * The financial account used to track this receivable transaction's discount.
216
+ */
217
+ interface DiscountAccount {
218
+ /**
219
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
220
+ * across all objects of the same type, but not across different QuickBooks object
221
+ * types.
222
+ */
223
+ id: string | null;
224
+ /**
225
+ * The fully-qualified unique name for this object, formed by combining the names
226
+ * of its parent objects with its own `name`, separated by colons. Not
227
+ * case-sensitive.
228
+ */
229
+ fullName: string | null;
230
+ }
231
+ /**
232
+ * The class used to track this receivable transaction's discount.
233
+ */
234
+ interface DiscountClass {
235
+ /**
236
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
237
+ * across all objects of the same type, but not across different QuickBooks object
238
+ * types.
239
+ */
240
+ id: string | null;
241
+ /**
242
+ * The fully-qualified unique name for this object, formed by combining the names
243
+ * of its parent objects with its own `name`, separated by colons. Not
244
+ * case-sensitive.
245
+ */
246
+ fullName: string | null;
247
+ }
248
+ interface LinkedTransaction {
249
+ /**
250
+ * The unique identifier assigned by QuickBooks to this linked transaction. This ID
251
+ * is unique across all transaction types.
252
+ */
253
+ id: string;
254
+ /**
255
+ * The monetary amount of this linked transaction, represented as a decimal string.
256
+ */
257
+ amount: string | null;
258
+ /**
259
+ * Indicates the nature of the link between the transactions: `amount` denotes an
260
+ * amount-based link (e.g., an invoice linked to a payment), and `quantity` denotes
261
+ * a quantity-based link (e.g., an invoice created from a sales order based on the
262
+ * quantity of items received).
263
+ */
264
+ linkType: 'amount' | 'quantity' | null;
265
+ /**
266
+ * The type of object. This value is always `"qbd_linked_transaction"`.
267
+ */
268
+ objectType: 'qbd_linked_transaction';
269
+ /**
270
+ * The case-sensitive user-defined reference number for this linked transaction,
271
+ * which can be used to identify the transaction in QuickBooks. This value is not
272
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
273
+ */
274
+ refNumber: string | null;
275
+ /**
276
+ * The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD).
277
+ */
278
+ transactionDate: string;
279
+ /**
280
+ * The type of transaction for this linked transaction.
281
+ */
282
+ transactionType: 'ar_refund_credit_card' | 'bill' | 'bill_payment_check' | 'bill_payment_credit_card' | 'build_assembly' | 'charge' | 'check' | 'credit_card_charge' | 'credit_card_credit' | 'credit_memo' | 'deposit' | 'estimate' | 'inventory_adjustment' | 'invoice' | 'item_receipt' | 'journal_entry' | 'liability_adjustment' | 'paycheck' | 'payroll_liability_check' | 'purchase_order' | 'receive_payment' | 'sales_order' | 'sales_receipt' | 'sales_tax_payment_check' | 'transfer' | 'vendor_credit' | 'ytd_adjustment';
283
+ }
284
+ }
285
+ /**
286
+ * The credit card transaction data for this receive-payment's payment when using
287
+ * QuickBooks Merchant Services (QBMS).
288
+ */
289
+ interface CreditCardTransaction {
290
+ /**
291
+ * The transaction request data originally supplied for this credit card
292
+ * transaction when using QuickBooks Merchant Services (QBMS).
293
+ */
294
+ request: CreditCardTransaction.Request | null;
295
+ /**
296
+ * The transaction response data for this credit card transaction when using
297
+ * QuickBooks Merchant Services (QBMS).
298
+ */
299
+ response: CreditCardTransaction.Response | null;
300
+ }
301
+ namespace CreditCardTransaction {
302
+ /**
303
+ * The transaction request data originally supplied for this credit card
304
+ * transaction when using QuickBooks Merchant Services (QBMS).
305
+ */
306
+ interface Request {
307
+ /**
308
+ * The card's billing address.
309
+ */
310
+ address: string | null;
311
+ /**
312
+ * The commercial card code identifies the type of business credit card being used
313
+ * (purchase, corporate, or business) for Visa and Mastercard transactions only.
314
+ * When provided, this code may qualify the transaction for lower processing fees
315
+ * compared to the standard rates that apply when no code is specified.
316
+ */
317
+ commercialCardCode: string | null;
318
+ /**
319
+ * The month when the credit card expires.
320
+ */
321
+ expirationMonth: number;
322
+ /**
323
+ * The year when the credit card expires.
324
+ */
325
+ expirationYear: number;
326
+ /**
327
+ * The cardholder's name on the card.
328
+ */
329
+ name: string;
330
+ /**
331
+ * The credit card number. Must be masked with lower case "x" and no dashes.
332
+ */
333
+ number: string;
334
+ /**
335
+ * The card's billing address ZIP or postal code.
336
+ */
337
+ postalCode: string | null;
338
+ /**
339
+ * Indicates whether this credit card transaction came from a card swipe
340
+ * (`card_present`) or not (`card_not_present`).
341
+ */
342
+ transactionMode: 'card_not_present' | 'card_present' | null;
343
+ /**
344
+ * The QBMS transaction type from which the current transaction data originated.
345
+ */
346
+ transactionType: 'authorization' | 'capture' | 'charge' | 'refund' | 'voice_authorization' | null;
347
+ }
348
+ /**
349
+ * The transaction response data for this credit card transaction when using
350
+ * QuickBooks Merchant Services (QBMS).
351
+ */
352
+ interface Response {
353
+ /**
354
+ * The authorization code returned from the credit card processor to indicate that
355
+ * this charge will be paid by the card issuer.
356
+ */
357
+ authorizationCode: string | null;
358
+ /**
359
+ * Indicates whether the street address supplied in the transaction request matches
360
+ * the customer's address on file at the card issuer.
361
+ */
362
+ avsStreetStatus: 'fail' | 'not_available' | 'pass' | null;
363
+ /**
364
+ * Indicates whether the customer postal ZIP code supplied in the transaction
365
+ * request matches the customer's postal code recognized at the card issuer.
366
+ */
367
+ avsZipStatus: 'fail' | 'not_available' | 'pass' | null;
368
+ /**
369
+ * Indicates whether the card security code supplied in the transaction request
370
+ * matches the card security code recognized for that credit card number at the
371
+ * card issuer.
372
+ */
373
+ cardSecurityCodeMatch: 'fail' | 'not_available' | 'pass' | null;
374
+ /**
375
+ * A value returned from QBMS transactions for future use by the QuickBooks
376
+ * Reconciliation feature.
377
+ */
378
+ clientTransactionId: string | null;
379
+ /**
380
+ * The ID returned from the credit card processor for this credit card transaction.
381
+ */
382
+ creditCardTransactionId: string;
383
+ /**
384
+ * The QBMS account number of the merchant who is running this transaction using
385
+ * the customer's credit card.
386
+ */
387
+ merchantAccountNumber: string;
388
+ /**
389
+ * An internal code returned by QuickBooks Merchant Services (QBMS) from the
390
+ * transaction request, needed for the QuickBooks reconciliation feature.
391
+ */
392
+ paymentGroupingCode: number | null;
393
+ /**
394
+ * Indicates whether this credit card transaction is known to have been
395
+ * successfully processed by the card issuer.
396
+ */
397
+ paymentStatus: 'completed' | 'unknown';
398
+ /**
399
+ * An internal ID returned by QuickBooks Merchant Services (QBMS) from the
400
+ * transaction request, needed for the QuickBooks reconciliation feature.
401
+ */
402
+ reconBatchId: string | null;
403
+ /**
404
+ * The status code returned in the original QBMS transaction response for this
405
+ * credit card transaction.
406
+ */
407
+ statusCode: number;
408
+ /**
409
+ * The status message returned in the original QBMS transaction response for this
410
+ * credit card transaction.
411
+ */
412
+ statusMessage: string;
413
+ /**
414
+ * An internal value for this credit card transaction, needed for the QuickBooks
415
+ * reconciliation feature.
416
+ */
417
+ transactionAuthorizationStamp: number | null;
418
+ /**
419
+ * The date and time when the credit card processor authorized this credit card
420
+ * transaction.
421
+ */
422
+ transactionAuthorizedAt: string;
423
+ }
424
+ }
425
+ /**
426
+ * The receive-payment's currency. For built-in currencies, the name and code are
427
+ * standard international values. For user-defined currencies, all values are
428
+ * editable.
429
+ */
430
+ interface Currency {
431
+ /**
432
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
433
+ * across all objects of the same type, but not across different QuickBooks object
434
+ * types.
435
+ */
436
+ id: string | null;
437
+ /**
438
+ * The fully-qualified unique name for this object, formed by combining the names
439
+ * of its parent objects with its own `name`, separated by colons. Not
440
+ * case-sensitive.
441
+ */
442
+ fullName: string | null;
443
+ }
444
+ /**
445
+ * The customer or customer-job to which the payment for this receive-payment is
446
+ * credited.
447
+ */
448
+ interface Customer {
449
+ /**
450
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
451
+ * across all objects of the same type, but not across different QuickBooks object
452
+ * types.
453
+ */
454
+ id: string | null;
455
+ /**
456
+ * The fully-qualified unique name for this object, formed by combining the names
457
+ * of its parent objects with its own `name`, separated by colons. Not
458
+ * case-sensitive.
459
+ */
460
+ fullName: string | null;
461
+ }
462
+ interface CustomField {
463
+ /**
464
+ * The name of the custom field, unique for the specified `ownerId`. For public
465
+ * custom fields, this name is visible as a label in the QuickBooks UI.
466
+ */
467
+ name: string;
468
+ /**
469
+ * The identifier of the owner of the custom field, which QuickBooks internally
470
+ * calls a "data extension". For public custom fields visible in the UI, such as
471
+ * those added by the QuickBooks user, this is always "0". For private custom
472
+ * fields that are only visible to the application that created them, this is a
473
+ * valid GUID identifying the owning application. Internally, Conductor always
474
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
475
+ * objects.
476
+ */
477
+ ownerId: string;
478
+ /**
479
+ * The data type of this custom field.
480
+ */
481
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
482
+ /**
483
+ * The value of this custom field. The maximum length depends on the field's data
484
+ * type.
485
+ */
486
+ value: string;
487
+ }
488
+ /**
489
+ * The account where the funds for this receive-payment will be or have been
490
+ * deposited.
491
+ */
492
+ interface DepositToAccount {
493
+ /**
494
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
495
+ * across all objects of the same type, but not across different QuickBooks object
496
+ * types.
497
+ */
498
+ id: string | null;
499
+ /**
500
+ * The fully-qualified unique name for this object, formed by combining the names
501
+ * of its parent objects with its own `name`, separated by colons. Not
502
+ * case-sensitive.
503
+ */
504
+ fullName: string | null;
505
+ }
506
+ /**
507
+ * The receive-payment's payment method (e.g., cash, check, credit card).
508
+ */
509
+ interface PaymentMethod {
510
+ /**
511
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
512
+ * across all objects of the same type, but not across different QuickBooks object
513
+ * types.
514
+ */
515
+ id: string | null;
516
+ /**
517
+ * The fully-qualified unique name for this object, formed by combining the names
518
+ * of its parent objects with its own `name`, separated by colons. Not
519
+ * case-sensitive.
520
+ */
521
+ fullName: string | null;
522
+ }
523
+ /**
524
+ * The Accounts-Receivable (A/R) account to which this receive-payment is assigned,
525
+ * used to track the amount owed. If not specified, QuickBooks Desktop will use its
526
+ * default A/R account.
527
+ *
528
+ * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
529
+ * account must match the `receivablesAccount` used in all linked transactions. For
530
+ * example, when refunding a credit card payment, the A/R account must match the
531
+ * one used in the original credit transactions being refunded.
532
+ */
533
+ interface ReceivablesAccount {
534
+ /**
535
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
536
+ * across all objects of the same type, but not across different QuickBooks object
537
+ * types.
538
+ */
539
+ id: string | null;
540
+ /**
541
+ * The fully-qualified unique name for this object, formed by combining the names
542
+ * of its parent objects with its own `name`, separated by colons. Not
543
+ * case-sensitive.
544
+ */
545
+ fullName: string | null;
546
+ }
547
+ }
548
+ export interface ReceivePaymentDeleteResponse {
549
+ /**
550
+ * The QuickBooks-assigned unique identifier of the deleted receive-payment.
551
+ */
552
+ id: string;
553
+ /**
554
+ * Indicates whether the receive-payment was deleted.
555
+ */
556
+ deleted: boolean;
557
+ /**
558
+ * The type of object. This value is always `"qbd_receive_payment"`.
559
+ */
560
+ objectType: 'qbd_receive_payment';
561
+ /**
562
+ * The case-sensitive user-defined reference number of the deleted receive-payment.
563
+ */
564
+ refNumber: string | null;
565
+ }
566
+ export interface ReceivePaymentCreateParams {
567
+ /**
568
+ * Body param: The customer or customer-job to which the payment for this
569
+ * receive-payment is credited.
570
+ */
571
+ customerId: string;
572
+ /**
573
+ * Body param: The total monetary amount of this receive-payment, represented as a
574
+ * decimal string.
575
+ *
576
+ * **NOTE**: The sum of the `paymentAmount` amounts in the `applyToTransactions`
577
+ * array cannot exceed the `totalAmount`, or you will receive an error.
578
+ */
579
+ totalAmount: string;
580
+ /**
581
+ * Body param: The date of this receive-payment, in ISO 8601 format (YYYY-MM-DD).
582
+ */
583
+ transactionDate: string;
584
+ /**
585
+ * Header param: The ID of the EndUser to receive this request (e.g.,
586
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
587
+ */
588
+ conductorEndUserId: string;
589
+ /**
590
+ * Body param: The invoices to be paid by this receive-payment. This will create a
591
+ * link between this receive-payment and the specified invoices.
592
+ *
593
+ * **IMPORTANT**: In each `applyToTransactions` object, you must specify either
594
+ * `paymentAmount`, `applyCredits`, `discountAmount`, or any combination of these;
595
+ * if none of these are specified, you will receive an error for an empty
596
+ * transaction.
597
+ *
598
+ * **IMPORTANT**: The target invoice must have `isPaid=false`, otherwise,
599
+ * QuickBooks will report this object as "cannot be found".
600
+ *
601
+ * **NOTE**: You must specify either `isAutoApply` or `applyToTransactions` when
602
+ * creating a receive-payment, but never both.
603
+ */
604
+ applyToTransactions?: Array<ReceivePaymentCreateParams.ApplyToTransaction>;
605
+ /**
606
+ * Body param: The credit card transaction data for this receive-payment's payment
607
+ * when using QuickBooks Merchant Services (QBMS). If specifying this field, you
608
+ * must also specify the `paymentMethod` field.
609
+ */
610
+ creditCardTransaction?: ReceivePaymentCreateParams.CreditCardTransaction;
611
+ /**
612
+ * Body param: The account where the funds for this receive-payment will be or have
613
+ * been deposited. If omitted, QuickBooks will use the default Undeposited Funds
614
+ * account.
615
+ */
616
+ depositToAccountId?: string;
617
+ /**
618
+ * Body param: The market exchange rate between this receive-payment's currency and
619
+ * the home currency in QuickBooks at the time of this transaction. Represented as
620
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
621
+ * currency).
622
+ */
623
+ exchangeRate?: number;
624
+ /**
625
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
626
+ * for tracking this object in your external system. This field is immutable and
627
+ * can only be set during object creation.
628
+ *
629
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
630
+ * QuickBooks will return an error.
631
+ */
632
+ externalId?: string;
633
+ /**
634
+ * Body param: When `true`, QuickBooks applies `totalAmount` to any outstanding
635
+ * transaction that exactly matches `totalAmount`. If no exact match is found, this
636
+ * receive-payment is applied to the oldest outstanding transaction for the
637
+ * customer-job. When `false`, QuickBooks records the payment but does not apply it
638
+ * to any specific transaction, causing the amount to appear as a credit on the
639
+ * customer-job's next transaction.
640
+ *
641
+ * **IMPORTANT**: You must specify either `isAutoApply` or `applyToTransactions`
642
+ * when creating a receive-payment, but never both.
643
+ */
644
+ isAutoApply?: boolean;
645
+ /**
646
+ * Body param: A memo or note for this receive-payment that will be displayed at
647
+ * the beginning of reports containing details about this receive-payment.
648
+ */
649
+ memo?: string;
650
+ /**
651
+ * Body param: The receive-payment's payment method (e.g., cash, check, credit
652
+ * card).
653
+ *
654
+ * **NOTE**: If this receive-payment contains credit card transaction data supplied
655
+ * from QuickBooks Merchant Services (QBMS) transaction responses, you must specify
656
+ * a credit card payment method (e.g., "Visa", "MasterCard", etc.).
657
+ */
658
+ paymentMethodId?: string;
659
+ /**
660
+ * Body param: The Accounts-Receivable (A/R) account to which this receive-payment
661
+ * is assigned, used to track the amount owed. If not specified, QuickBooks Desktop
662
+ * will use its default A/R account.
663
+ *
664
+ * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
665
+ * account must match the `receivablesAccount` used in all linked transactions. For
666
+ * example, when refunding a credit card payment, the A/R account must match the
667
+ * one used in the original credit transactions being refunded.
668
+ */
669
+ receivablesAccountId?: string;
670
+ /**
671
+ * Body param: The case-sensitive user-defined reference number for this
672
+ * receive-payment, which can be used to identify the transaction in QuickBooks.
673
+ * This value is not required to be unique and can be arbitrarily changed by the
674
+ * QuickBooks user. When left blank in this create request, this field will be left
675
+ * blank in QuickBooks (i.e., it does _not_ auto-increment).
676
+ */
677
+ refNumber?: string;
678
+ }
679
+ export declare namespace ReceivePaymentCreateParams {
680
+ interface ApplyToTransaction {
681
+ /**
682
+ * The ID of the receivable transaction to which this payment is applied.
683
+ */
684
+ transactionId: string;
685
+ /**
686
+ * Credit memos to apply to this receivable transaction, reducing its balance. This
687
+ * creates a link between this receivable transaction and the specified credit
688
+ * memos.
689
+ *
690
+ * **IMPORTANT**: By default, QuickBooks will not return any information about the
691
+ * linked transactions in this endpoint's response even when this request is
692
+ * successful. To see the transactions linked via this field, refetch the
693
+ * receivable transaction and check the `linkedTransactions` response field. If
694
+ * fetching a list of receivable transactions, you must also specify the parameter
695
+ * `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
696
+ */
697
+ applyCredits?: Array<ApplyToTransaction.ApplyCredit>;
698
+ /**
699
+ * The financial account used to track this receivable transaction's discount.
700
+ */
701
+ discountAccountId?: string;
702
+ /**
703
+ * The monetary amount by which to reduce the receivable transaction's receivable
704
+ * amount, represented as a decimal string.
705
+ */
706
+ discountAmount?: string;
707
+ /**
708
+ * The class used to track this receivable transaction's discount.
709
+ */
710
+ discountClassId?: string;
711
+ /**
712
+ * The monetary amount to apply to the receivable transaction, represented as a
713
+ * decimal string.
714
+ */
715
+ paymentAmount?: string;
716
+ }
717
+ namespace ApplyToTransaction {
718
+ interface ApplyCredit {
719
+ /**
720
+ * The amount of credit applied to this transaction. This could include customer
721
+ * deposits, payments, or credits. Represented as a decimal string.
722
+ */
723
+ appliedAmount: string;
724
+ /**
725
+ * The unique identifier of the credit transaction (credit memo or vendor credit)
726
+ * to apply to this transaction.
727
+ */
728
+ creditTransactionId: string;
729
+ /**
730
+ * Indicates whether to override the credit.
731
+ */
732
+ overrideCreditApplication?: boolean;
733
+ }
734
+ }
735
+ /**
736
+ * The credit card transaction data for this receive-payment's payment when using
737
+ * QuickBooks Merchant Services (QBMS). If specifying this field, you must also
738
+ * specify the `paymentMethod` field.
739
+ */
740
+ interface CreditCardTransaction {
741
+ /**
742
+ * The transaction request data originally supplied for this credit card
743
+ * transaction when using QuickBooks Merchant Services (QBMS).
744
+ */
745
+ request?: CreditCardTransaction.Request;
746
+ /**
747
+ * The transaction response data for this credit card transaction when using
748
+ * QuickBooks Merchant Services (QBMS).
749
+ */
750
+ response?: CreditCardTransaction.Response;
751
+ }
752
+ namespace CreditCardTransaction {
753
+ /**
754
+ * The transaction request data originally supplied for this credit card
755
+ * transaction when using QuickBooks Merchant Services (QBMS).
756
+ */
757
+ interface Request {
758
+ /**
759
+ * The month when the credit card expires.
760
+ */
761
+ expirationMonth: number;
762
+ /**
763
+ * The year when the credit card expires.
764
+ */
765
+ expirationYear: number;
766
+ /**
767
+ * The cardholder's name on the card.
768
+ */
769
+ name: string;
770
+ /**
771
+ * The credit card number. Must be masked with lower case "x" and no dashes.
772
+ */
773
+ number: string;
774
+ /**
775
+ * The card's billing address.
776
+ */
777
+ address?: string;
778
+ /**
779
+ * The commercial card code identifies the type of business credit card being used
780
+ * (purchase, corporate, or business) for Visa and Mastercard transactions only.
781
+ * When provided, this code may qualify the transaction for lower processing fees
782
+ * compared to the standard rates that apply when no code is specified.
783
+ */
784
+ commercialCardCode?: string;
785
+ /**
786
+ * The card's billing address ZIP or postal code.
787
+ */
788
+ postalCode?: string;
789
+ /**
790
+ * Indicates whether this credit card transaction came from a card swipe
791
+ * (`card_present`) or not (`card_not_present`).
792
+ */
793
+ transactionMode?: 'card_not_present' | 'card_present';
794
+ /**
795
+ * The QBMS transaction type from which the current transaction data originated.
796
+ */
797
+ transactionType?: 'authorization' | 'capture' | 'charge' | 'refund' | 'voice_authorization';
798
+ }
799
+ /**
800
+ * The transaction response data for this credit card transaction when using
801
+ * QuickBooks Merchant Services (QBMS).
802
+ */
803
+ interface Response {
804
+ /**
805
+ * The ID returned from the credit card processor for this credit card transaction.
806
+ */
807
+ creditCardTransactionId: string;
808
+ /**
809
+ * The QBMS account number of the merchant who is running this transaction using
810
+ * the customer's credit card.
811
+ */
812
+ merchantAccountNumber: string;
813
+ /**
814
+ * Indicates whether this credit card transaction is known to have been
815
+ * successfully processed by the card issuer.
816
+ */
817
+ paymentStatus: 'completed' | 'unknown';
818
+ /**
819
+ * The status code returned in the original QBMS transaction response for this
820
+ * credit card transaction.
821
+ */
822
+ statusCode: number;
823
+ /**
824
+ * The status message returned in the original QBMS transaction response for this
825
+ * credit card transaction.
826
+ */
827
+ statusMessage: string;
828
+ /**
829
+ * The date and time when the credit card processor authorized this credit card
830
+ * transaction.
831
+ */
832
+ transactionAuthorizedAt: string;
833
+ /**
834
+ * The authorization code returned from the credit card processor to indicate that
835
+ * this charge will be paid by the card issuer.
836
+ */
837
+ authorizationCode?: string;
838
+ /**
839
+ * Indicates whether the street address supplied in the transaction request matches
840
+ * the customer's address on file at the card issuer.
841
+ */
842
+ avsStreetStatus?: 'fail' | 'not_available' | 'pass';
843
+ /**
844
+ * Indicates whether the customer postal ZIP code supplied in the transaction
845
+ * request matches the customer's postal code recognized at the card issuer.
846
+ */
847
+ avsZipStatus?: 'fail' | 'not_available' | 'pass';
848
+ /**
849
+ * Indicates whether the card security code supplied in the transaction request
850
+ * matches the card security code recognized for that credit card number at the
851
+ * card issuer.
852
+ */
853
+ cardSecurityCodeMatch?: 'fail' | 'not_available' | 'pass';
854
+ /**
855
+ * A value returned from QBMS transactions for future use by the QuickBooks
856
+ * Reconciliation feature.
857
+ */
858
+ clientTransactionId?: string;
859
+ /**
860
+ * An internal code returned by QuickBooks Merchant Services (QBMS) from the
861
+ * transaction request, needed for the QuickBooks reconciliation feature.
862
+ */
863
+ paymentGroupingCode?: number;
864
+ /**
865
+ * An internal ID returned by QuickBooks Merchant Services (QBMS) from the
866
+ * transaction request, needed for the QuickBooks reconciliation feature.
867
+ */
868
+ reconBatchId?: string;
869
+ /**
870
+ * An internal value for this credit card transaction, needed for the QuickBooks
871
+ * reconciliation feature.
872
+ */
873
+ transactionAuthorizationStamp?: number;
874
+ }
875
+ }
876
+ }
877
+ export interface ReceivePaymentRetrieveParams {
878
+ /**
879
+ * The ID of the EndUser to receive this request (e.g.,
880
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
881
+ */
882
+ conductorEndUserId: string;
883
+ }
884
+ export interface ReceivePaymentUpdateParams {
885
+ /**
886
+ * Body param: The current QuickBooks-assigned revision number of the
887
+ * receive-payment object you are updating, which you can get by fetching the
888
+ * object first. Provide the most recent `revisionNumber` to ensure you're working
889
+ * with the latest data; otherwise, the update will return an error.
890
+ */
891
+ revisionNumber: string;
892
+ /**
893
+ * Header param: The ID of the EndUser to receive this request (e.g.,
894
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
895
+ */
896
+ conductorEndUserId: string;
897
+ /**
898
+ * Body param: The invoices to be paid by this receive-payment. This will create a
899
+ * link between this receive-payment and the specified invoices.
900
+ *
901
+ * **IMPORTANT**: In each `applyToTransactions` object, you must specify either
902
+ * `paymentAmount`, `applyCredits`, `discountAmount`, or any combination of these;
903
+ * if none of these are specified, you will receive an error for an empty
904
+ * transaction.
905
+ *
906
+ * **IMPORTANT**: The target invoice must have `isPaid=false`, otherwise,
907
+ * QuickBooks will report this object as "cannot be found".
908
+ */
909
+ applyToTransactions?: Array<ReceivePaymentUpdateParams.ApplyToTransaction>;
910
+ /**
911
+ * Body param: The credit card transaction data for this receive-payment's payment
912
+ * when using QuickBooks Merchant Services (QBMS). If specifying this field, you
913
+ * must also specify the `paymentMethod` field.
914
+ */
915
+ creditCardTransaction?: ReceivePaymentUpdateParams.CreditCardTransaction;
916
+ /**
917
+ * Body param: The customer or customer-job to which the payment for this
918
+ * receive-payment is credited.
919
+ */
920
+ customerId?: string;
921
+ /**
922
+ * Body param: The account where the funds for this receive-payment will be or have
923
+ * been deposited.
924
+ */
925
+ depositToAccountId?: string;
926
+ /**
927
+ * Body param: The market exchange rate between this receive-payment's currency and
928
+ * the home currency in QuickBooks at the time of this transaction. Represented as
929
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
930
+ * currency).
931
+ */
932
+ exchangeRate?: number;
933
+ /**
934
+ * Body param: A memo or note for this receive-payment that will be displayed at
935
+ * the beginning of reports containing details about this receive-payment.
936
+ */
937
+ memo?: string;
938
+ /**
939
+ * Body param: The receive-payment's payment method (e.g., cash, check, credit
940
+ * card).
941
+ */
942
+ paymentMethodId?: string;
943
+ /**
944
+ * Body param: The Accounts-Receivable (A/R) account to which this receive-payment
945
+ * is assigned, used to track the amount owed. If not specified, QuickBooks Desktop
946
+ * will use its default A/R account.
947
+ *
948
+ * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
949
+ * account must match the `receivablesAccount` used in all linked transactions. For
950
+ * example, when refunding a credit card payment, the A/R account must match the
951
+ * one used in the original credit transactions being refunded.
952
+ */
953
+ receivablesAccountId?: string;
954
+ /**
955
+ * Body param: The case-sensitive user-defined reference number for this
956
+ * receive-payment, which can be used to identify the transaction in QuickBooks.
957
+ * This value is not required to be unique and can be arbitrarily changed by the
958
+ * QuickBooks user.
959
+ */
960
+ refNumber?: string;
961
+ /**
962
+ * Body param: The total monetary amount of this receive-payment, represented as a
963
+ * decimal string.
964
+ *
965
+ * **NOTE**: The sum of the `paymentAmount` amounts in the `applyToTransactions`
966
+ * array cannot exceed the `totalAmount`, or you will receive an error.
967
+ */
968
+ totalAmount?: string;
969
+ /**
970
+ * Body param: The date of this receive-payment, in ISO 8601 format (YYYY-MM-DD).
971
+ */
972
+ transactionDate?: string;
973
+ }
974
+ export declare namespace ReceivePaymentUpdateParams {
975
+ interface ApplyToTransaction {
976
+ /**
977
+ * The ID of the receivable transaction to which this payment is applied.
978
+ */
979
+ transactionId: string;
980
+ /**
981
+ * Credit memos to apply to this receivable transaction, reducing its balance. This
982
+ * creates a link between this receivable transaction and the specified credit
983
+ * memos.
984
+ *
985
+ * **IMPORTANT**: By default, QuickBooks will not return any information about the
986
+ * linked transactions in this endpoint's response even when this request is
987
+ * successful. To see the transactions linked via this field, refetch the
988
+ * receivable transaction and check the `linkedTransactions` response field. If
989
+ * fetching a list of receivable transactions, you must also specify the parameter
990
+ * `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
991
+ */
992
+ applyCredits?: Array<ApplyToTransaction.ApplyCredit>;
993
+ /**
994
+ * The financial account used to track this receivable transaction's discount.
995
+ */
996
+ discountAccountId?: string;
997
+ /**
998
+ * The monetary amount by which to reduce the receivable transaction's receivable
999
+ * amount, represented as a decimal string.
1000
+ */
1001
+ discountAmount?: string;
1002
+ /**
1003
+ * The class used to track this receivable transaction's discount.
1004
+ */
1005
+ discountClassId?: string;
1006
+ /**
1007
+ * The monetary amount to apply to the receivable transaction, represented as a
1008
+ * decimal string.
1009
+ */
1010
+ paymentAmount?: string;
1011
+ }
1012
+ namespace ApplyToTransaction {
1013
+ interface ApplyCredit {
1014
+ /**
1015
+ * The amount of credit applied to this transaction. This could include customer
1016
+ * deposits, payments, or credits. Represented as a decimal string.
1017
+ */
1018
+ appliedAmount: string;
1019
+ /**
1020
+ * The unique identifier of the credit transaction (credit memo or vendor credit)
1021
+ * to apply to this transaction.
1022
+ */
1023
+ creditTransactionId: string;
1024
+ /**
1025
+ * Indicates whether to override the credit.
1026
+ */
1027
+ overrideCreditApplication?: boolean;
1028
+ }
1029
+ }
1030
+ /**
1031
+ * The credit card transaction data for this receive-payment's payment when using
1032
+ * QuickBooks Merchant Services (QBMS). If specifying this field, you must also
1033
+ * specify the `paymentMethod` field.
1034
+ */
1035
+ interface CreditCardTransaction {
1036
+ /**
1037
+ * The transaction request data originally supplied for this credit card
1038
+ * transaction when using QuickBooks Merchant Services (QBMS).
1039
+ */
1040
+ request?: CreditCardTransaction.Request;
1041
+ /**
1042
+ * The transaction response data for this credit card transaction when using
1043
+ * QuickBooks Merchant Services (QBMS).
1044
+ */
1045
+ response?: CreditCardTransaction.Response;
1046
+ }
1047
+ namespace CreditCardTransaction {
1048
+ /**
1049
+ * The transaction request data originally supplied for this credit card
1050
+ * transaction when using QuickBooks Merchant Services (QBMS).
1051
+ */
1052
+ interface Request {
1053
+ /**
1054
+ * The card's billing address.
1055
+ */
1056
+ address?: string;
1057
+ /**
1058
+ * The commercial card code identifies the type of business credit card being used
1059
+ * (purchase, corporate, or business) for Visa and Mastercard transactions only.
1060
+ * When provided, this code may qualify the transaction for lower processing fees
1061
+ * compared to the standard rates that apply when no code is specified.
1062
+ */
1063
+ commercialCardCode?: string;
1064
+ /**
1065
+ * The month when the credit card expires.
1066
+ */
1067
+ expirationMonth?: number;
1068
+ /**
1069
+ * The year when the credit card expires.
1070
+ */
1071
+ expirationYear?: number;
1072
+ /**
1073
+ * The cardholder's name on the card.
1074
+ */
1075
+ name?: string;
1076
+ /**
1077
+ * The credit card number. Must be masked with lower case "x" and no dashes.
1078
+ */
1079
+ number?: string;
1080
+ /**
1081
+ * The card's billing address ZIP or postal code.
1082
+ */
1083
+ postalCode?: string;
1084
+ /**
1085
+ * Indicates whether this credit card transaction came from a card swipe
1086
+ * (`card_present`) or not (`card_not_present`).
1087
+ */
1088
+ transactionMode?: 'card_not_present' | 'card_present';
1089
+ /**
1090
+ * The QBMS transaction type from which the current transaction data originated.
1091
+ */
1092
+ transactionType?: 'authorization' | 'capture' | 'charge' | 'refund' | 'voice_authorization';
1093
+ }
1094
+ /**
1095
+ * The transaction response data for this credit card transaction when using
1096
+ * QuickBooks Merchant Services (QBMS).
1097
+ */
1098
+ interface Response {
1099
+ /**
1100
+ * The authorization code returned from the credit card processor to indicate that
1101
+ * this charge will be paid by the card issuer.
1102
+ */
1103
+ authorizationCode?: string;
1104
+ /**
1105
+ * Indicates whether the street address supplied in the transaction request matches
1106
+ * the customer's address on file at the card issuer.
1107
+ */
1108
+ avsStreetStatus?: 'fail' | 'not_available' | 'pass';
1109
+ /**
1110
+ * Indicates whether the customer postal ZIP code supplied in the transaction
1111
+ * request matches the customer's postal code recognized at the card issuer.
1112
+ */
1113
+ avsZipStatus?: 'fail' | 'not_available' | 'pass';
1114
+ /**
1115
+ * Indicates whether the card security code supplied in the transaction request
1116
+ * matches the card security code recognized for that credit card number at the
1117
+ * card issuer.
1118
+ */
1119
+ cardSecurityCodeMatch?: 'fail' | 'not_available' | 'pass';
1120
+ /**
1121
+ * A value returned from QBMS transactions for future use by the QuickBooks
1122
+ * Reconciliation feature.
1123
+ */
1124
+ clientTransactionId?: string;
1125
+ /**
1126
+ * The ID returned from the credit card processor for this credit card transaction.
1127
+ */
1128
+ creditCardTransactionId?: string;
1129
+ /**
1130
+ * The QBMS account number of the merchant who is running this transaction using
1131
+ * the customer's credit card.
1132
+ */
1133
+ merchantAccountNumber?: string;
1134
+ /**
1135
+ * An internal code returned by QuickBooks Merchant Services (QBMS) from the
1136
+ * transaction request, needed for the QuickBooks reconciliation feature.
1137
+ */
1138
+ paymentGroupingCode?: number;
1139
+ /**
1140
+ * Indicates whether this credit card transaction is known to have been
1141
+ * successfully processed by the card issuer.
1142
+ */
1143
+ paymentStatus?: 'completed' | 'unknown';
1144
+ /**
1145
+ * An internal ID returned by QuickBooks Merchant Services (QBMS) from the
1146
+ * transaction request, needed for the QuickBooks reconciliation feature.
1147
+ */
1148
+ reconBatchId?: string;
1149
+ /**
1150
+ * The status code returned in the original QBMS transaction response for this
1151
+ * credit card transaction.
1152
+ */
1153
+ statusCode?: number;
1154
+ /**
1155
+ * The status message returned in the original QBMS transaction response for this
1156
+ * credit card transaction.
1157
+ */
1158
+ statusMessage?: string;
1159
+ /**
1160
+ * An internal value for this credit card transaction, needed for the QuickBooks
1161
+ * reconciliation feature.
1162
+ */
1163
+ transactionAuthorizationStamp?: number;
1164
+ /**
1165
+ * The date and time when the credit card processor authorized this credit card
1166
+ * transaction.
1167
+ */
1168
+ transactionAuthorizedAt?: string;
1169
+ }
1170
+ }
1171
+ }
1172
+ export interface ReceivePaymentListParams extends CursorPageParams {
1173
+ /**
1174
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1175
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1176
+ */
1177
+ conductorEndUserId: string;
1178
+ /**
1179
+ * Query param: Filter for receive-payments associated with these accounts.
1180
+ */
1181
+ accountIds?: Array<string>;
1182
+ /**
1183
+ * Query param: Filter for receive-payments in these currencies.
1184
+ */
1185
+ currencyIds?: Array<string>;
1186
+ /**
1187
+ * Query param: Filter for receive-payments received from these customers.
1188
+ */
1189
+ customerIds?: Array<string>;
1190
+ /**
1191
+ * Query param: Filter for specific receive-payments by their QuickBooks-assigned
1192
+ * unique identifier(s).
1193
+ *
1194
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1195
+ * query parameters for this request.
1196
+ *
1197
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1198
+ * request will return an error.
1199
+ */
1200
+ ids?: Array<string>;
1201
+ /**
1202
+ * Query param: Whether to include line items in the response. Defaults to `true`.
1203
+ */
1204
+ includeLineItems?: boolean;
1205
+ /**
1206
+ * Query param: Filter for receive-payments whose `refNumber` contains this
1207
+ * substring. NOTE: If you use this parameter, you cannot also use
1208
+ * `refNumberStartsWith` or `refNumberEndsWith`.
1209
+ */
1210
+ refNumberContains?: string;
1211
+ /**
1212
+ * Query param: Filter for receive-payments whose `refNumber` ends with this
1213
+ * substring. NOTE: If you use this parameter, you cannot also use
1214
+ * `refNumberContains` or `refNumberStartsWith`.
1215
+ */
1216
+ refNumberEndsWith?: string;
1217
+ /**
1218
+ * Query param: Filter for receive-payments whose `refNumber` is greater than or
1219
+ * equal to this value. If omitted, the range will begin with the first number of
1220
+ * the list. Uses a numerical comparison for values that contain only digits;
1221
+ * otherwise, uses a lexicographical comparison.
1222
+ */
1223
+ refNumberFrom?: string;
1224
+ /**
1225
+ * Query param: Filter for specific receive-payments by their ref-number(s),
1226
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
1227
+ * be arbitrarily changed by the QuickBooks user.
1228
+ *
1229
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1230
+ * query parameters for this request.
1231
+ *
1232
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1233
+ * request will return an error.
1234
+ */
1235
+ refNumbers?: Array<string>;
1236
+ /**
1237
+ * Query param: Filter for receive-payments whose `refNumber` starts with this
1238
+ * substring. NOTE: If you use this parameter, you cannot also use
1239
+ * `refNumberContains` or `refNumberEndsWith`.
1240
+ */
1241
+ refNumberStartsWith?: string;
1242
+ /**
1243
+ * Query param: Filter for receive-payments whose `refNumber` is less than or equal
1244
+ * to this value. If omitted, the range will end with the last number of the list.
1245
+ * Uses a numerical comparison for values that contain only digits; otherwise, uses
1246
+ * a lexicographical comparison.
1247
+ */
1248
+ refNumberTo?: string;
1249
+ /**
1250
+ * Query param: Filter for receive-payments created on or after this date, in ISO
1251
+ * 8601 format (YYYY-MM-DD).
1252
+ */
1253
+ transactionDateFrom?: string;
1254
+ /**
1255
+ * Query param: Filter for receive-payments created on or before this date, in ISO
1256
+ * 8601 format (YYYY-MM-DD).
1257
+ */
1258
+ transactionDateTo?: string;
1259
+ /**
1260
+ * Query param: Filter for receive-payments updated on or after this date and time,
1261
+ * in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1262
+ * (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
1263
+ */
1264
+ updatedAfter?: string;
1265
+ /**
1266
+ * Query param: Filter for receive-payments updated on or before this date and
1267
+ * time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1268
+ * (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
1269
+ */
1270
+ updatedBefore?: string;
1271
+ }
1272
+ export interface ReceivePaymentDeleteParams {
1273
+ /**
1274
+ * The ID of the EndUser to receive this request (e.g.,
1275
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1276
+ */
1277
+ conductorEndUserId: string;
1278
+ }
1279
+ export declare namespace ReceivePayments {
1280
+ export { type ReceivePayment as ReceivePayment, type ReceivePaymentDeleteResponse as ReceivePaymentDeleteResponse, ReceivePaymentsCursorPage as ReceivePaymentsCursorPage, type ReceivePaymentCreateParams as ReceivePaymentCreateParams, type ReceivePaymentRetrieveParams as ReceivePaymentRetrieveParams, type ReceivePaymentUpdateParams as ReceivePaymentUpdateParams, type ReceivePaymentListParams as ReceivePaymentListParams, type ReceivePaymentDeleteParams as ReceivePaymentDeleteParams, };
1281
+ }
1282
+ //# sourceMappingURL=receive-payments.d.ts.map