conductor-node 14.15.0 → 14.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/qs/formats.d.mts.map +1 -1
  38. package/internal/qs/formats.d.ts.map +1 -1
  39. package/internal/qs/index.d.mts +2 -2
  40. package/internal/qs/index.d.mts.map +1 -1
  41. package/internal/qs/index.d.ts +2 -2
  42. package/internal/qs/index.d.ts.map +1 -1
  43. package/internal/qs/index.mjs.map +1 -1
  44. package/internal/qs/stringify.d.mts.map +1 -1
  45. package/internal/qs/stringify.d.ts.map +1 -1
  46. package/internal/qs/stringify.mjs.map +1 -1
  47. package/internal/qs/utils.d.mts.map +1 -1
  48. package/internal/qs/utils.d.ts.map +1 -1
  49. package/internal/qs/utils.mjs.map +1 -1
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts.map +1 -1
  52. package/internal/shims.d.mts +6 -0
  53. package/internal/shims.d.mts.map +1 -1
  54. package/internal/shims.d.ts +6 -0
  55. package/internal/shims.d.ts.map +1 -1
  56. package/internal/to-file.d.mts.map +1 -1
  57. package/internal/to-file.d.ts.map +1 -1
  58. package/internal/to-file.mjs.map +1 -1
  59. package/internal/types.d.mts +4 -4
  60. package/internal/types.d.mts.map +1 -1
  61. package/internal/types.d.ts +4 -4
  62. package/internal/types.d.ts.map +1 -1
  63. package/internal/uploads.d.mts.map +1 -1
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.mjs.map +1 -1
  66. package/internal/utils/base64.mjs.map +1 -1
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts.map +1 -1
  69. package/internal/utils/log.mjs.map +1 -1
  70. package/internal/utils/path.mjs.map +1 -1
  71. package/internal/utils/query.mjs.map +1 -1
  72. package/internal/utils/values.mjs.map +1 -1
  73. package/internal/utils.d.mts.map +1 -1
  74. package/internal/utils.d.ts.map +1 -1
  75. package/internal/utils.mjs.map +1 -1
  76. package/package.json +1 -1
  77. package/pagination.d.mts +1 -0
  78. package/pagination.d.mts.map +1 -1
  79. package/pagination.d.ts +1 -0
  80. package/pagination.d.ts.map +1 -1
  81. package/pagination.mjs +1 -0
  82. package/pagination.mjs.map +1 -1
  83. package/resource.d.mts +1 -0
  84. package/resource.d.mts.map +1 -1
  85. package/resource.d.ts +1 -0
  86. package/resource.d.ts.map +1 -1
  87. package/resource.mjs +1 -0
  88. package/resource.mjs.map +1 -1
  89. package/resources/auth-sessions.d.mts.map +1 -1
  90. package/resources/auth-sessions.d.ts.map +1 -1
  91. package/resources/auth-sessions.mjs.map +1 -1
  92. package/resources/end-users.d.mts.map +1 -1
  93. package/resources/end-users.d.ts.map +1 -1
  94. package/resources/end-users.mjs.map +1 -1
  95. package/resources/index.d.mts.map +1 -1
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.mjs.map +1 -1
  98. package/resources/qbd/account-tax-lines.d.mts.map +1 -1
  99. package/resources/qbd/account-tax-lines.d.ts.map +1 -1
  100. package/resources/qbd/account-tax-lines.mjs.map +1 -1
  101. package/resources/qbd/accounts.d.mts +16 -12
  102. package/resources/qbd/accounts.d.mts.map +1 -1
  103. package/resources/qbd/accounts.d.ts +16 -12
  104. package/resources/qbd/accounts.d.ts.map +1 -1
  105. package/resources/qbd/accounts.mjs.map +1 -1
  106. package/resources/qbd/bill-check-payments.d.mts +51 -57
  107. package/resources/qbd/bill-check-payments.d.mts.map +1 -1
  108. package/resources/qbd/bill-check-payments.d.ts +51 -57
  109. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  110. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  111. package/resources/qbd/bill-credit-card-payments.d.mts +37 -42
  112. package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -1
  113. package/resources/qbd/bill-credit-card-payments.d.ts +37 -42
  114. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  115. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  116. package/resources/qbd/bills-to-pay.d.mts +295 -0
  117. package/resources/qbd/bills-to-pay.d.mts.map +1 -0
  118. package/resources/qbd/bills-to-pay.d.ts +295 -0
  119. package/resources/qbd/bills-to-pay.d.ts.map +1 -0
  120. package/resources/qbd/bills-to-pay.js +37 -0
  121. package/resources/qbd/bills-to-pay.js.map +1 -0
  122. package/resources/qbd/bills-to-pay.mjs +33 -0
  123. package/resources/qbd/bills-to-pay.mjs.map +1 -0
  124. package/resources/qbd/bills.d.mts +90 -62
  125. package/resources/qbd/bills.d.mts.map +1 -1
  126. package/resources/qbd/bills.d.ts +90 -62
  127. package/resources/qbd/bills.d.ts.map +1 -1
  128. package/resources/qbd/bills.mjs.map +1 -1
  129. package/resources/qbd/build-assemblies.d.mts.map +1 -1
  130. package/resources/qbd/build-assemblies.d.ts.map +1 -1
  131. package/resources/qbd/build-assemblies.mjs.map +1 -1
  132. package/resources/qbd/checks.d.mts +60 -45
  133. package/resources/qbd/checks.d.mts.map +1 -1
  134. package/resources/qbd/checks.d.ts +60 -45
  135. package/resources/qbd/checks.d.ts.map +1 -1
  136. package/resources/qbd/checks.mjs.map +1 -1
  137. package/resources/qbd/classes.d.mts.map +1 -1
  138. package/resources/qbd/classes.d.ts.map +1 -1
  139. package/resources/qbd/classes.mjs.map +1 -1
  140. package/resources/qbd/company.d.mts +1 -1
  141. package/resources/qbd/company.d.mts.map +1 -1
  142. package/resources/qbd/company.d.ts +1 -1
  143. package/resources/qbd/company.d.ts.map +1 -1
  144. package/resources/qbd/company.mjs.map +1 -1
  145. package/resources/qbd/credit-card-charges.d.mts +60 -45
  146. package/resources/qbd/credit-card-charges.d.mts.map +1 -1
  147. package/resources/qbd/credit-card-charges.d.ts +60 -45
  148. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  149. package/resources/qbd/credit-card-charges.mjs.map +1 -1
  150. package/resources/qbd/credit-card-credits.d.mts +60 -45
  151. package/resources/qbd/credit-card-credits.d.mts.map +1 -1
  152. package/resources/qbd/credit-card-credits.d.ts +60 -45
  153. package/resources/qbd/credit-card-credits.d.ts.map +1 -1
  154. package/resources/qbd/credit-card-credits.mjs.map +1 -1
  155. package/resources/qbd/credit-card-refunds.d.mts +8 -7
  156. package/resources/qbd/credit-card-refunds.d.mts.map +1 -1
  157. package/resources/qbd/credit-card-refunds.d.ts +8 -7
  158. package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
  159. package/resources/qbd/credit-card-refunds.mjs.map +1 -1
  160. package/resources/qbd/credit-memos.d.mts +52 -41
  161. package/resources/qbd/credit-memos.d.mts.map +1 -1
  162. package/resources/qbd/credit-memos.d.ts +52 -41
  163. package/resources/qbd/credit-memos.d.ts.map +1 -1
  164. package/resources/qbd/credit-memos.mjs.map +1 -1
  165. package/resources/qbd/currencies.d.mts.map +1 -1
  166. package/resources/qbd/currencies.d.ts.map +1 -1
  167. package/resources/qbd/currencies.mjs.map +1 -1
  168. package/resources/qbd/customer-types.d.mts.map +1 -1
  169. package/resources/qbd/customer-types.d.ts.map +1 -1
  170. package/resources/qbd/customer-types.mjs.map +1 -1
  171. package/resources/qbd/customers.d.mts +20 -12
  172. package/resources/qbd/customers.d.mts.map +1 -1
  173. package/resources/qbd/customers.d.ts +20 -12
  174. package/resources/qbd/customers.d.ts.map +1 -1
  175. package/resources/qbd/customers.mjs.map +1 -1
  176. package/resources/qbd/date-driven-terms.d.mts.map +1 -1
  177. package/resources/qbd/date-driven-terms.d.ts.map +1 -1
  178. package/resources/qbd/date-driven-terms.mjs.map +1 -1
  179. package/resources/qbd/deleted-list-objects.d.mts.map +1 -1
  180. package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
  181. package/resources/qbd/deleted-list-objects.mjs.map +1 -1
  182. package/resources/qbd/deleted-transactions.d.mts.map +1 -1
  183. package/resources/qbd/deleted-transactions.d.ts.map +1 -1
  184. package/resources/qbd/deleted-transactions.mjs.map +1 -1
  185. package/resources/qbd/deposits.d.mts.map +1 -1
  186. package/resources/qbd/deposits.d.ts.map +1 -1
  187. package/resources/qbd/deposits.mjs.map +1 -1
  188. package/resources/qbd/discount-items.d.mts +16 -12
  189. package/resources/qbd/discount-items.d.mts.map +1 -1
  190. package/resources/qbd/discount-items.d.ts +16 -12
  191. package/resources/qbd/discount-items.d.ts.map +1 -1
  192. package/resources/qbd/discount-items.mjs.map +1 -1
  193. package/resources/qbd/employees.d.mts.map +1 -1
  194. package/resources/qbd/employees.d.ts.map +1 -1
  195. package/resources/qbd/employees.mjs.map +1 -1
  196. package/resources/qbd/estimates.d.mts +44 -33
  197. package/resources/qbd/estimates.d.mts.map +1 -1
  198. package/resources/qbd/estimates.d.ts +44 -33
  199. package/resources/qbd/estimates.d.ts.map +1 -1
  200. package/resources/qbd/estimates.mjs.map +1 -1
  201. package/resources/qbd/index.d.mts +1 -0
  202. package/resources/qbd/index.d.mts.map +1 -1
  203. package/resources/qbd/index.d.ts +1 -0
  204. package/resources/qbd/index.d.ts.map +1 -1
  205. package/resources/qbd/index.js +4 -2
  206. package/resources/qbd/index.js.map +1 -1
  207. package/resources/qbd/index.mjs +1 -0
  208. package/resources/qbd/index.mjs.map +1 -1
  209. package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
  210. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  211. package/resources/qbd/inventory-adjustments.mjs.map +1 -1
  212. package/resources/qbd/inventory-assembly-items.d.mts +16 -12
  213. package/resources/qbd/inventory-assembly-items.d.mts.map +1 -1
  214. package/resources/qbd/inventory-assembly-items.d.ts +16 -12
  215. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  216. package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
  217. package/resources/qbd/inventory-items.d.mts +16 -12
  218. package/resources/qbd/inventory-items.d.mts.map +1 -1
  219. package/resources/qbd/inventory-items.d.ts +16 -12
  220. package/resources/qbd/inventory-items.d.ts.map +1 -1
  221. package/resources/qbd/inventory-items.mjs.map +1 -1
  222. package/resources/qbd/inventory-sites.d.mts.map +1 -1
  223. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  224. package/resources/qbd/inventory-sites.mjs.map +1 -1
  225. package/resources/qbd/invoices.d.mts +57 -47
  226. package/resources/qbd/invoices.d.mts.map +1 -1
  227. package/resources/qbd/invoices.d.ts +57 -47
  228. package/resources/qbd/invoices.d.ts.map +1 -1
  229. package/resources/qbd/invoices.mjs.map +1 -1
  230. package/resources/qbd/item-groups.d.mts.map +1 -1
  231. package/resources/qbd/item-groups.d.ts.map +1 -1
  232. package/resources/qbd/item-groups.mjs.map +1 -1
  233. package/resources/qbd/item-receipts.d.mts +66 -53
  234. package/resources/qbd/item-receipts.d.mts.map +1 -1
  235. package/resources/qbd/item-receipts.d.ts +66 -53
  236. package/resources/qbd/item-receipts.d.ts.map +1 -1
  237. package/resources/qbd/item-receipts.mjs.map +1 -1
  238. package/resources/qbd/item-sites.d.mts +12 -0
  239. package/resources/qbd/item-sites.d.mts.map +1 -1
  240. package/resources/qbd/item-sites.d.ts +12 -0
  241. package/resources/qbd/item-sites.d.ts.map +1 -1
  242. package/resources/qbd/item-sites.mjs.map +1 -1
  243. package/resources/qbd/journal-entries.d.mts +1 -1
  244. package/resources/qbd/journal-entries.d.mts.map +1 -1
  245. package/resources/qbd/journal-entries.d.ts +1 -1
  246. package/resources/qbd/journal-entries.d.ts.map +1 -1
  247. package/resources/qbd/journal-entries.mjs.map +1 -1
  248. package/resources/qbd/non-inventory-items.d.mts +16 -12
  249. package/resources/qbd/non-inventory-items.d.mts.map +1 -1
  250. package/resources/qbd/non-inventory-items.d.ts +16 -12
  251. package/resources/qbd/non-inventory-items.d.ts.map +1 -1
  252. package/resources/qbd/non-inventory-items.mjs.map +1 -1
  253. package/resources/qbd/other-charge-items.d.mts +16 -12
  254. package/resources/qbd/other-charge-items.d.mts.map +1 -1
  255. package/resources/qbd/other-charge-items.d.ts +16 -12
  256. package/resources/qbd/other-charge-items.d.ts.map +1 -1
  257. package/resources/qbd/other-charge-items.mjs.map +1 -1
  258. package/resources/qbd/other-names.d.mts +4 -0
  259. package/resources/qbd/other-names.d.mts.map +1 -1
  260. package/resources/qbd/other-names.d.ts +4 -0
  261. package/resources/qbd/other-names.d.ts.map +1 -1
  262. package/resources/qbd/other-names.mjs.map +1 -1
  263. package/resources/qbd/payment-methods.d.mts.map +1 -1
  264. package/resources/qbd/payment-methods.d.ts.map +1 -1
  265. package/resources/qbd/payment-methods.mjs.map +1 -1
  266. package/resources/qbd/payments-to-deposit.d.mts.map +1 -1
  267. package/resources/qbd/payments-to-deposit.d.ts.map +1 -1
  268. package/resources/qbd/payments-to-deposit.mjs.map +1 -1
  269. package/resources/qbd/payroll-wage-items.d.mts.map +1 -1
  270. package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
  271. package/resources/qbd/payroll-wage-items.mjs.map +1 -1
  272. package/resources/qbd/preferences.d.mts.map +1 -1
  273. package/resources/qbd/preferences.d.ts.map +1 -1
  274. package/resources/qbd/preferences.mjs.map +1 -1
  275. package/resources/qbd/price-levels.d.mts.map +1 -1
  276. package/resources/qbd/price-levels.d.ts.map +1 -1
  277. package/resources/qbd/price-levels.mjs.map +1 -1
  278. package/resources/qbd/purchase-orders.d.mts +44 -33
  279. package/resources/qbd/purchase-orders.d.mts.map +1 -1
  280. package/resources/qbd/purchase-orders.d.ts +44 -33
  281. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  282. package/resources/qbd/purchase-orders.mjs.map +1 -1
  283. package/resources/qbd/qbd.d.mts +4 -0
  284. package/resources/qbd/qbd.d.mts.map +1 -1
  285. package/resources/qbd/qbd.d.ts +4 -0
  286. package/resources/qbd/qbd.d.ts.map +1 -1
  287. package/resources/qbd/qbd.js +4 -0
  288. package/resources/qbd/qbd.js.map +1 -1
  289. package/resources/qbd/qbd.mjs +4 -0
  290. package/resources/qbd/qbd.mjs.map +1 -1
  291. package/resources/qbd/receive-payments.d.mts +57 -61
  292. package/resources/qbd/receive-payments.d.mts.map +1 -1
  293. package/resources/qbd/receive-payments.d.ts +57 -61
  294. package/resources/qbd/receive-payments.d.ts.map +1 -1
  295. package/resources/qbd/receive-payments.mjs.map +1 -1
  296. package/resources/qbd/reports.d.mts.map +1 -1
  297. package/resources/qbd/reports.d.ts.map +1 -1
  298. package/resources/qbd/reports.mjs.map +1 -1
  299. package/resources/qbd/sales-orders.d.mts +44 -33
  300. package/resources/qbd/sales-orders.d.mts.map +1 -1
  301. package/resources/qbd/sales-orders.d.ts +44 -33
  302. package/resources/qbd/sales-orders.d.ts.map +1 -1
  303. package/resources/qbd/sales-orders.mjs.map +1 -1
  304. package/resources/qbd/sales-receipts.d.mts +44 -33
  305. package/resources/qbd/sales-receipts.d.mts.map +1 -1
  306. package/resources/qbd/sales-receipts.d.ts +44 -33
  307. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  308. package/resources/qbd/sales-receipts.mjs.map +1 -1
  309. package/resources/qbd/sales-representatives.d.mts.map +1 -1
  310. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  311. package/resources/qbd/sales-representatives.mjs.map +1 -1
  312. package/resources/qbd/sales-tax-codes.d.mts.map +1 -1
  313. package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
  314. package/resources/qbd/sales-tax-codes.mjs.map +1 -1
  315. package/resources/qbd/sales-tax-items.d.mts.map +1 -1
  316. package/resources/qbd/sales-tax-items.d.ts.map +1 -1
  317. package/resources/qbd/sales-tax-items.mjs.map +1 -1
  318. package/resources/qbd/service-items.d.mts +16 -12
  319. package/resources/qbd/service-items.d.mts.map +1 -1
  320. package/resources/qbd/service-items.d.ts +16 -12
  321. package/resources/qbd/service-items.d.ts.map +1 -1
  322. package/resources/qbd/service-items.mjs.map +1 -1
  323. package/resources/qbd/shipping-methods.d.mts.map +1 -1
  324. package/resources/qbd/shipping-methods.d.ts.map +1 -1
  325. package/resources/qbd/shipping-methods.mjs.map +1 -1
  326. package/resources/qbd/standard-terms.d.mts.map +1 -1
  327. package/resources/qbd/standard-terms.d.ts.map +1 -1
  328. package/resources/qbd/standard-terms.mjs.map +1 -1
  329. package/resources/qbd/subtotal-items.d.mts.map +1 -1
  330. package/resources/qbd/subtotal-items.d.ts.map +1 -1
  331. package/resources/qbd/subtotal-items.mjs.map +1 -1
  332. package/resources/qbd/templates.d.mts.map +1 -1
  333. package/resources/qbd/templates.d.ts.map +1 -1
  334. package/resources/qbd/templates.mjs.map +1 -1
  335. package/resources/qbd/time-tracking-activities.d.mts.map +1 -1
  336. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  337. package/resources/qbd/time-tracking-activities.mjs.map +1 -1
  338. package/resources/qbd/transactions.d.mts.map +1 -1
  339. package/resources/qbd/transactions.d.ts.map +1 -1
  340. package/resources/qbd/transactions.mjs.map +1 -1
  341. package/resources/qbd/transfers.d.mts.map +1 -1
  342. package/resources/qbd/transfers.d.ts.map +1 -1
  343. package/resources/qbd/transfers.mjs.map +1 -1
  344. package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -1
  345. package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
  346. package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
  347. package/resources/qbd/vendor-credits.d.mts +72 -59
  348. package/resources/qbd/vendor-credits.d.mts.map +1 -1
  349. package/resources/qbd/vendor-credits.d.ts +72 -59
  350. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  351. package/resources/qbd/vendor-credits.mjs.map +1 -1
  352. package/resources/qbd/vendors.d.mts +20 -12
  353. package/resources/qbd/vendors.d.mts.map +1 -1
  354. package/resources/qbd/vendors.d.ts +20 -12
  355. package/resources/qbd/vendors.d.ts.map +1 -1
  356. package/resources/qbd/vendors.mjs.map +1 -1
  357. package/resources/qbd.d.mts.map +1 -1
  358. package/resources/qbd.d.ts.map +1 -1
  359. package/resources/qbd.mjs.map +1 -1
  360. package/resources.d.mts.map +1 -1
  361. package/resources.d.ts.map +1 -1
  362. package/resources.mjs.map +1 -1
  363. package/src/resources/qbd/accounts.ts +16 -12
  364. package/src/resources/qbd/bill-check-payments.ts +51 -57
  365. package/src/resources/qbd/bill-credit-card-payments.ts +37 -42
  366. package/src/resources/qbd/bills-to-pay.ts +401 -0
  367. package/src/resources/qbd/bills.ts +90 -62
  368. package/src/resources/qbd/checks.ts +60 -45
  369. package/src/resources/qbd/company.ts +1 -0
  370. package/src/resources/qbd/credit-card-charges.ts +60 -45
  371. package/src/resources/qbd/credit-card-credits.ts +60 -45
  372. package/src/resources/qbd/credit-card-refunds.ts +8 -7
  373. package/src/resources/qbd/credit-memos.ts +52 -41
  374. package/src/resources/qbd/customers.ts +20 -12
  375. package/src/resources/qbd/discount-items.ts +16 -12
  376. package/src/resources/qbd/estimates.ts +44 -33
  377. package/src/resources/qbd/index.ts +6 -0
  378. package/src/resources/qbd/inventory-assembly-items.ts +16 -12
  379. package/src/resources/qbd/inventory-items.ts +16 -12
  380. package/src/resources/qbd/invoices.ts +57 -47
  381. package/src/resources/qbd/item-receipts.ts +66 -53
  382. package/src/resources/qbd/item-sites.ts +12 -0
  383. package/src/resources/qbd/journal-entries.ts +1 -1
  384. package/src/resources/qbd/non-inventory-items.ts +16 -12
  385. package/src/resources/qbd/other-charge-items.ts +16 -12
  386. package/src/resources/qbd/other-names.ts +4 -0
  387. package/src/resources/qbd/purchase-orders.ts +44 -33
  388. package/src/resources/qbd/qbd.ts +11 -0
  389. package/src/resources/qbd/receive-payments.ts +57 -61
  390. package/src/resources/qbd/sales-orders.ts +44 -33
  391. package/src/resources/qbd/sales-receipts.ts +44 -33
  392. package/src/resources/qbd/service-items.ts +16 -12
  393. package/src/resources/qbd/vendor-credits.ts +72 -59
  394. package/src/resources/qbd/vendors.ts +20 -12
  395. package/src/version.ts +1 -1
  396. package/uploads.d.mts +1 -0
  397. package/uploads.d.mts.map +1 -1
  398. package/uploads.d.ts +1 -0
  399. package/uploads.d.ts.map +1 -1
  400. package/uploads.mjs +1 -0
  401. package/uploads.mjs.map +1 -1
  402. package/version.d.mts +1 -1
  403. package/version.d.ts +1 -1
  404. package/version.js +1 -1
  405. package/version.mjs +1 -1
@@ -0,0 +1,401 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+
8
+ export class BillsToPay extends APIResource {
9
+ /**
10
+ * Lists open vendor bills and available vendor credits for a specific QuickBooks
11
+ * Desktop vendor. Use each `bill.billId` as `applyToTransactions[].transactionId`
12
+ * in bill-payment requests. To apply a returned credit, place it under the target
13
+ * bill's `applyToTransactions[].applyCredits[]` entry, set `creditTransactionId`
14
+ * to `credit.creditTransactionId`, and choose an `appliedAmount` that does not
15
+ * exceed `credit.creditRemaining` or the target bill's remaining amount due.
16
+ *
17
+ * **NOTE:** QuickBooks Desktop does not support pagination for bills to pay;
18
+ * hence, there is no `cursor` parameter. Users typically have few bills to pay.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const billsToPays = await conductor.qbd.billsToPay.list({
23
+ * vendorId: '80000001-1234567890',
24
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
25
+ * });
26
+ * ```
27
+ */
28
+ list(params: BillsToPayListParams, options?: RequestOptions): APIPromise<BillsToPayListResponse> {
29
+ const { conductorEndUserId, ...query } = params;
30
+ return this._client.get('/quickbooks-desktop/bills-to-pay', {
31
+ query,
32
+ ...options,
33
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
34
+ });
35
+ }
36
+ }
37
+
38
+ export interface BillToPay {
39
+ /**
40
+ * The open bill with a positive amount due that can be paid for the requested
41
+ * vendor. In each bills-to-pay result, either `bill` is an object and `credit` is
42
+ * `null`, or `credit` is an object and `bill` is `null`.
43
+ */
44
+ bill: BillToPay.Bill | null;
45
+
46
+ /**
47
+ * The vendor credit linked to the requested vendor that can be applied to open
48
+ * bills. In each bills-to-pay result, either `credit` is an object and `bill` is
49
+ * `null`, or `bill` is an object and `credit` is `null`.
50
+ */
51
+ credit: BillToPay.Credit | null;
52
+ }
53
+
54
+ export namespace BillToPay {
55
+ /**
56
+ * The open bill with a positive amount due that can be paid for the requested
57
+ * vendor. In each bills-to-pay result, either `bill` is an object and `credit` is
58
+ * `null`, or `credit` is an object and `bill` is `null`.
59
+ */
60
+ export interface Bill {
61
+ /**
62
+ * The amount QuickBooks Desktop reports as due and available to pay for this open
63
+ * bill, represented as a decimal string. Use this value as the candidate
64
+ * `applyToTransactions[].paymentAmount` when creating a bill payment; reduce the
65
+ * payment by any credits you apply.
66
+ */
67
+ amountDue: string;
68
+
69
+ /**
70
+ * The monetary amount due for this payable bill converted to the home currency of
71
+ * the QuickBooks company file. Represented as a decimal string.
72
+ */
73
+ amountDueInHomeCurrency: string | null;
74
+
75
+ /**
76
+ * The ID of the open bill available to pay. Pass this value as `transactionId` in
77
+ * a bill-payment `applyToTransactions` entry.
78
+ */
79
+ billId: string;
80
+
81
+ /**
82
+ * The payable bill's currency. For built-in currencies, the name and code are
83
+ * standard ISO 4217 international values. For user-defined currencies, all values
84
+ * are editable.
85
+ */
86
+ currency: Bill.Currency | null;
87
+
88
+ /**
89
+ * The date by which this payable bill must be paid, in ISO 8601 format
90
+ * (YYYY-MM-DD).
91
+ */
92
+ dueDate: string | null;
93
+
94
+ /**
95
+ * The market exchange rate between this payable bill's currency and the home
96
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
97
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
98
+ */
99
+ exchangeRate: number | null;
100
+
101
+ /**
102
+ * The Accounts-Payable (A/P) account to which this payable bill is assigned, used
103
+ * for accounts-payable tracking.
104
+ *
105
+ * **IMPORTANT**: If this payable bill is linked to other transactions, this A/P
106
+ * account must match the `payablesAccount` used in those other transactions.
107
+ */
108
+ payablesAccount: Bill.PayablesAccount;
109
+
110
+ /**
111
+ * The case-sensitive user-defined reference number for this payable bill, which
112
+ * can be used to identify the transaction in QuickBooks. This value is not
113
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
114
+ */
115
+ refNumber: string | null;
116
+
117
+ /**
118
+ * The date of this payable bill, in ISO 8601 format (YYYY-MM-DD).
119
+ */
120
+ transactionDate: string;
121
+
122
+ /**
123
+ * The type of transaction for this payable bill.
124
+ */
125
+ transactionType:
126
+ | 'ar_refund_credit_card'
127
+ | 'bill'
128
+ | 'bill_payment_check'
129
+ | 'bill_payment_credit_card'
130
+ | 'build_assembly'
131
+ | 'charge'
132
+ | 'check'
133
+ | 'credit_card_charge'
134
+ | 'credit_card_credit'
135
+ | 'credit_memo'
136
+ | 'deposit'
137
+ | 'estimate'
138
+ | 'inventory_adjustment'
139
+ | 'invoice'
140
+ | 'item_receipt'
141
+ | 'journal_entry'
142
+ | 'liability_adjustment'
143
+ | 'paycheck'
144
+ | 'payroll_liability_check'
145
+ | 'purchase_order'
146
+ | 'receive_payment'
147
+ | 'sales_order'
148
+ | 'sales_receipt'
149
+ | 'sales_tax_payment_check'
150
+ | 'transfer'
151
+ | 'vendor_credit'
152
+ | 'ytd_adjustment';
153
+ }
154
+
155
+ export namespace Bill {
156
+ /**
157
+ * The payable bill's currency. For built-in currencies, the name and code are
158
+ * standard ISO 4217 international values. For user-defined currencies, all values
159
+ * are editable.
160
+ */
161
+ export interface Currency {
162
+ /**
163
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
164
+ * across all objects of the same type, but not across different QuickBooks object
165
+ * types.
166
+ */
167
+ id: string | null;
168
+
169
+ /**
170
+ * The fully-qualified unique name for this object, formed by combining the names
171
+ * of its parent objects with its own `name`, separated by colons. Not
172
+ * case-sensitive.
173
+ */
174
+ fullName: string | null;
175
+ }
176
+
177
+ /**
178
+ * The Accounts-Payable (A/P) account to which this payable bill is assigned, used
179
+ * for accounts-payable tracking.
180
+ *
181
+ * **IMPORTANT**: If this payable bill is linked to other transactions, this A/P
182
+ * account must match the `payablesAccount` used in those other transactions.
183
+ */
184
+ export interface PayablesAccount {
185
+ /**
186
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
187
+ * across all objects of the same type, but not across different QuickBooks object
188
+ * types.
189
+ */
190
+ id: string | null;
191
+
192
+ /**
193
+ * The fully-qualified unique name for this object, formed by combining the names
194
+ * of its parent objects with its own `name`, separated by colons. Not
195
+ * case-sensitive.
196
+ */
197
+ fullName: string | null;
198
+ }
199
+ }
200
+
201
+ /**
202
+ * The vendor credit linked to the requested vendor that can be applied to open
203
+ * bills. In each bills-to-pay result, either `credit` is an object and `bill` is
204
+ * `null`, or `bill` is an object and `credit` is `null`.
205
+ */
206
+ export interface Credit {
207
+ /**
208
+ * The remaining vendor credit available to apply to open bills, represented as a
209
+ * decimal string. When applying this credit to a bill-payment request, choose an
210
+ * `applyToTransactions[].applyCredits[].appliedAmount` that does not exceed this
211
+ * value or the target bill's remaining amount due.
212
+ */
213
+ creditRemaining: string;
214
+
215
+ /**
216
+ * The remaining balance of this applicable credit converted to the home currency
217
+ * of the QuickBooks company file. Represented as a decimal string.
218
+ */
219
+ creditRemainingInHomeCurrency: string | null;
220
+
221
+ /**
222
+ * The ID of the credit transaction available to apply to the vendor's open bills.
223
+ * To apply this credit in a bill-payment request, place it under the target bill's
224
+ * `applyToTransactions[].applyCredits[]` entry and pass this value as
225
+ * `creditTransactionId`.
226
+ */
227
+ creditTransactionId: string;
228
+
229
+ /**
230
+ * The applicable credit's currency. For built-in currencies, the name and code are
231
+ * standard ISO 4217 international values. For user-defined currencies, all values
232
+ * are editable.
233
+ */
234
+ currency: Credit.Currency | null;
235
+
236
+ /**
237
+ * The market exchange rate between this applicable credit's currency and the home
238
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
239
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
240
+ */
241
+ exchangeRate: number | null;
242
+
243
+ /**
244
+ * The Accounts-Payable (A/P) account to which this applicable credit is assigned,
245
+ * used for accounts-payable tracking.
246
+ *
247
+ * **IMPORTANT**: If this applicable credit is linked to other transactions, this
248
+ * A/P account must match the `payablesAccount` used in those other transactions.
249
+ */
250
+ payablesAccount: Credit.PayablesAccount;
251
+
252
+ /**
253
+ * The case-sensitive user-defined reference number for this applicable credit,
254
+ * which can be used to identify the transaction in QuickBooks. This value is not
255
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
256
+ */
257
+ refNumber: string | null;
258
+
259
+ /**
260
+ * The date of this applicable credit, in ISO 8601 format (YYYY-MM-DD).
261
+ */
262
+ transactionDate: string;
263
+
264
+ /**
265
+ * The type of transaction for this applicable credit.
266
+ */
267
+ transactionType:
268
+ | 'ar_refund_credit_card'
269
+ | 'bill'
270
+ | 'bill_payment_check'
271
+ | 'bill_payment_credit_card'
272
+ | 'build_assembly'
273
+ | 'charge'
274
+ | 'check'
275
+ | 'credit_card_charge'
276
+ | 'credit_card_credit'
277
+ | 'credit_memo'
278
+ | 'deposit'
279
+ | 'estimate'
280
+ | 'inventory_adjustment'
281
+ | 'invoice'
282
+ | 'item_receipt'
283
+ | 'journal_entry'
284
+ | 'liability_adjustment'
285
+ | 'paycheck'
286
+ | 'payroll_liability_check'
287
+ | 'purchase_order'
288
+ | 'receive_payment'
289
+ | 'sales_order'
290
+ | 'sales_receipt'
291
+ | 'sales_tax_payment_check'
292
+ | 'transfer'
293
+ | 'vendor_credit'
294
+ | 'ytd_adjustment';
295
+ }
296
+
297
+ export namespace Credit {
298
+ /**
299
+ * The applicable credit's currency. For built-in currencies, the name and code are
300
+ * standard ISO 4217 international values. For user-defined currencies, all values
301
+ * are editable.
302
+ */
303
+ export interface Currency {
304
+ /**
305
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
306
+ * across all objects of the same type, but not across different QuickBooks object
307
+ * types.
308
+ */
309
+ id: string | null;
310
+
311
+ /**
312
+ * The fully-qualified unique name for this object, formed by combining the names
313
+ * of its parent objects with its own `name`, separated by colons. Not
314
+ * case-sensitive.
315
+ */
316
+ fullName: string | null;
317
+ }
318
+
319
+ /**
320
+ * The Accounts-Payable (A/P) account to which this applicable credit is assigned,
321
+ * used for accounts-payable tracking.
322
+ *
323
+ * **IMPORTANT**: If this applicable credit is linked to other transactions, this
324
+ * A/P account must match the `payablesAccount` used in those other transactions.
325
+ */
326
+ export interface PayablesAccount {
327
+ /**
328
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
329
+ * across all objects of the same type, but not across different QuickBooks object
330
+ * types.
331
+ */
332
+ id: string | null;
333
+
334
+ /**
335
+ * The fully-qualified unique name for this object, formed by combining the names
336
+ * of its parent objects with its own `name`, separated by colons. Not
337
+ * case-sensitive.
338
+ */
339
+ fullName: string | null;
340
+ }
341
+ }
342
+ }
343
+
344
+ export interface BillsToPayListResponse {
345
+ /**
346
+ * The array of bills-to-pay records. Each record has either a `bill` object or a
347
+ * `credit` object, and the other branch is `null`.
348
+ */
349
+ data: Array<BillToPay>;
350
+
351
+ /**
352
+ * The type of object. This value is always `"list"`.
353
+ */
354
+ objectType: 'list';
355
+
356
+ /**
357
+ * The endpoint URL where this list can be accessed.
358
+ */
359
+ url: string;
360
+ }
361
+
362
+ export interface BillsToPayListParams {
363
+ /**
364
+ * Query param: The vendor whose open bills and available credits should be
365
+ * returned.
366
+ */
367
+ vendorId: string;
368
+
369
+ /**
370
+ * Header param: The ID of the End-User to receive this request.
371
+ */
372
+ conductorEndUserId: string;
373
+
374
+ /**
375
+ * Query param: Filter for open bills and available credits in these currencies.
376
+ */
377
+ currencyIds?: Array<string>;
378
+
379
+ /**
380
+ * Query param: Filter the bill branch to open bills due on or before this date, in
381
+ * ISO 8601 format (YYYY-MM-DD). If omitted, QuickBooks Desktop returns open bills
382
+ * from all due dates. Available credits can still be returned because credits do
383
+ * not have a due date.
384
+ */
385
+ dueDate?: string;
386
+
387
+ /**
388
+ * Query param: Filter for open bills and available credits assigned to this
389
+ * Accounts-Payable account. If omitted, QuickBooks Desktop uses the default A/P
390
+ * account configured in the company file.
391
+ */
392
+ payablesAccountId?: string;
393
+ }
394
+
395
+ export declare namespace BillsToPay {
396
+ export {
397
+ type BillToPay as BillToPay,
398
+ type BillsToPayListResponse as BillsToPayListResponse,
399
+ type BillsToPayListParams as BillsToPayListParams,
400
+ };
401
+ }