conductor-node 12.32.0 → 12.34.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 (220) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/package.json +1 -1
  3. package/resources/qbd/accounts.d.ts +6 -2
  4. package/resources/qbd/accounts.d.ts.map +1 -1
  5. package/resources/qbd/accounts.js +6 -2
  6. package/resources/qbd/accounts.js.map +1 -1
  7. package/resources/qbd/accounts.mjs +6 -2
  8. package/resources/qbd/accounts.mjs.map +1 -1
  9. package/resources/qbd/bill-check-payments.d.ts +11 -10
  10. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  11. package/resources/qbd/bill-check-payments.js +7 -2
  12. package/resources/qbd/bill-check-payments.js.map +1 -1
  13. package/resources/qbd/bill-check-payments.mjs +7 -2
  14. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  15. package/resources/qbd/bill-credit-card-payments.d.ts +7 -9
  16. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  17. package/resources/qbd/bill-credit-card-payments.js +3 -1
  18. package/resources/qbd/bill-credit-card-payments.js.map +1 -1
  19. package/resources/qbd/bill-credit-card-payments.mjs +3 -1
  20. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  21. package/resources/qbd/bills.d.ts +9 -6
  22. package/resources/qbd/bills.d.ts.map +1 -1
  23. package/resources/qbd/bills.js +7 -2
  24. package/resources/qbd/bills.js.map +1 -1
  25. package/resources/qbd/bills.mjs +7 -2
  26. package/resources/qbd/bills.mjs.map +1 -1
  27. package/resources/qbd/build-assemblies.d.ts +3 -1
  28. package/resources/qbd/build-assemblies.d.ts.map +1 -1
  29. package/resources/qbd/build-assemblies.js +3 -1
  30. package/resources/qbd/build-assemblies.js.map +1 -1
  31. package/resources/qbd/build-assemblies.mjs +3 -1
  32. package/resources/qbd/build-assemblies.mjs.map +1 -1
  33. package/resources/qbd/checks.d.ts +8 -6
  34. package/resources/qbd/checks.d.ts.map +1 -1
  35. package/resources/qbd/checks.js +6 -2
  36. package/resources/qbd/checks.js.map +1 -1
  37. package/resources/qbd/checks.mjs +6 -2
  38. package/resources/qbd/checks.mjs.map +1 -1
  39. package/resources/qbd/credit-card-charges.d.ts +3 -1
  40. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  41. package/resources/qbd/credit-card-charges.js +3 -1
  42. package/resources/qbd/credit-card-charges.js.map +1 -1
  43. package/resources/qbd/credit-card-charges.mjs +3 -1
  44. package/resources/qbd/credit-card-charges.mjs.map +1 -1
  45. package/resources/qbd/credit-card-refunds.d.ts +1011 -0
  46. package/resources/qbd/credit-card-refunds.d.ts.map +1 -0
  47. package/resources/qbd/credit-card-refunds.js +105 -0
  48. package/resources/qbd/credit-card-refunds.js.map +1 -0
  49. package/resources/qbd/credit-card-refunds.mjs +100 -0
  50. package/resources/qbd/credit-card-refunds.mjs.map +1 -0
  51. package/resources/qbd/credit-memos.d.ts +6 -16
  52. package/resources/qbd/credit-memos.d.ts.map +1 -1
  53. package/resources/qbd/credit-memos.js.map +1 -1
  54. package/resources/qbd/credit-memos.mjs.map +1 -1
  55. package/resources/qbd/date-driven-terms.d.ts +4 -1
  56. package/resources/qbd/date-driven-terms.d.ts.map +1 -1
  57. package/resources/qbd/date-driven-terms.js +4 -1
  58. package/resources/qbd/date-driven-terms.js.map +1 -1
  59. package/resources/qbd/date-driven-terms.mjs +4 -1
  60. package/resources/qbd/date-driven-terms.mjs.map +1 -1
  61. package/resources/qbd/discount-items.d.ts +7 -2
  62. package/resources/qbd/discount-items.d.ts.map +1 -1
  63. package/resources/qbd/discount-items.js +7 -2
  64. package/resources/qbd/discount-items.js.map +1 -1
  65. package/resources/qbd/discount-items.mjs +7 -2
  66. package/resources/qbd/discount-items.mjs.map +1 -1
  67. package/resources/qbd/employees.d.ts +6 -2
  68. package/resources/qbd/employees.d.ts.map +1 -1
  69. package/resources/qbd/employees.js +6 -2
  70. package/resources/qbd/employees.js.map +1 -1
  71. package/resources/qbd/employees.mjs +6 -2
  72. package/resources/qbd/employees.mjs.map +1 -1
  73. package/resources/qbd/estimates.d.ts +2 -4
  74. package/resources/qbd/estimates.d.ts.map +1 -1
  75. package/resources/qbd/estimates.js.map +1 -1
  76. package/resources/qbd/estimates.mjs.map +1 -1
  77. package/resources/qbd/index.d.ts +1 -0
  78. package/resources/qbd/index.d.ts.map +1 -1
  79. package/resources/qbd/index.js +5 -2
  80. package/resources/qbd/index.js.map +1 -1
  81. package/resources/qbd/index.mjs +1 -0
  82. package/resources/qbd/index.mjs.map +1 -1
  83. package/resources/qbd/inventory-adjustments.d.ts +3 -1
  84. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  85. package/resources/qbd/inventory-adjustments.js +3 -1
  86. package/resources/qbd/inventory-adjustments.js.map +1 -1
  87. package/resources/qbd/inventory-adjustments.mjs +3 -1
  88. package/resources/qbd/inventory-adjustments.mjs.map +1 -1
  89. package/resources/qbd/inventory-assembly-items.d.ts +4 -2
  90. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  91. package/resources/qbd/inventory-assembly-items.js +4 -2
  92. package/resources/qbd/inventory-assembly-items.js.map +1 -1
  93. package/resources/qbd/inventory-assembly-items.mjs +4 -2
  94. package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
  95. package/resources/qbd/inventory-items.d.ts +3 -1
  96. package/resources/qbd/inventory-items.d.ts.map +1 -1
  97. package/resources/qbd/inventory-items.js +3 -1
  98. package/resources/qbd/inventory-items.js.map +1 -1
  99. package/resources/qbd/inventory-items.mjs +3 -1
  100. package/resources/qbd/inventory-items.mjs.map +1 -1
  101. package/resources/qbd/inventory-sites.d.ts +2 -1
  102. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  103. package/resources/qbd/inventory-sites.js +2 -1
  104. package/resources/qbd/inventory-sites.js.map +1 -1
  105. package/resources/qbd/inventory-sites.mjs +2 -1
  106. package/resources/qbd/inventory-sites.mjs.map +1 -1
  107. package/resources/qbd/invoices.d.ts +8 -17
  108. package/resources/qbd/invoices.d.ts.map +1 -1
  109. package/resources/qbd/invoices.js +2 -1
  110. package/resources/qbd/invoices.js.map +1 -1
  111. package/resources/qbd/invoices.mjs +2 -1
  112. package/resources/qbd/invoices.mjs.map +1 -1
  113. package/resources/qbd/item-receipts.d.ts +6 -5
  114. package/resources/qbd/item-receipts.d.ts.map +1 -1
  115. package/resources/qbd/item-receipts.js +4 -1
  116. package/resources/qbd/item-receipts.js.map +1 -1
  117. package/resources/qbd/item-receipts.mjs +4 -1
  118. package/resources/qbd/item-receipts.mjs.map +1 -1
  119. package/resources/qbd/journal-entries.d.ts +7 -2
  120. package/resources/qbd/journal-entries.d.ts.map +1 -1
  121. package/resources/qbd/journal-entries.js +7 -2
  122. package/resources/qbd/journal-entries.js.map +1 -1
  123. package/resources/qbd/journal-entries.mjs +7 -2
  124. package/resources/qbd/journal-entries.mjs.map +1 -1
  125. package/resources/qbd/non-inventory-items.d.ts +6 -1
  126. package/resources/qbd/non-inventory-items.d.ts.map +1 -1
  127. package/resources/qbd/non-inventory-items.js +6 -1
  128. package/resources/qbd/non-inventory-items.js.map +1 -1
  129. package/resources/qbd/non-inventory-items.mjs +6 -1
  130. package/resources/qbd/non-inventory-items.mjs.map +1 -1
  131. package/resources/qbd/purchase-orders.d.ts +2 -4
  132. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  133. package/resources/qbd/purchase-orders.js.map +1 -1
  134. package/resources/qbd/purchase-orders.mjs.map +1 -1
  135. package/resources/qbd/qbd.d.ts +4 -0
  136. package/resources/qbd/qbd.d.ts.map +1 -1
  137. package/resources/qbd/qbd.js +5 -0
  138. package/resources/qbd/qbd.js.map +1 -1
  139. package/resources/qbd/qbd.mjs +5 -0
  140. package/resources/qbd/qbd.mjs.map +1 -1
  141. package/resources/qbd/receive-payments.d.ts +15 -22
  142. package/resources/qbd/receive-payments.d.ts.map +1 -1
  143. package/resources/qbd/receive-payments.js +7 -2
  144. package/resources/qbd/receive-payments.js.map +1 -1
  145. package/resources/qbd/receive-payments.mjs +7 -2
  146. package/resources/qbd/receive-payments.mjs.map +1 -1
  147. package/resources/qbd/sales-orders.d.ts +2 -4
  148. package/resources/qbd/sales-orders.d.ts.map +1 -1
  149. package/resources/qbd/sales-orders.js.map +1 -1
  150. package/resources/qbd/sales-orders.mjs.map +1 -1
  151. package/resources/qbd/sales-receipts.d.ts +7 -2
  152. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  153. package/resources/qbd/sales-receipts.js +7 -2
  154. package/resources/qbd/sales-receipts.js.map +1 -1
  155. package/resources/qbd/sales-receipts.mjs +7 -2
  156. package/resources/qbd/sales-receipts.mjs.map +1 -1
  157. package/resources/qbd/sales-representatives.d.ts +2 -1
  158. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  159. package/resources/qbd/sales-representatives.js +2 -1
  160. package/resources/qbd/sales-representatives.js.map +1 -1
  161. package/resources/qbd/sales-representatives.mjs +2 -1
  162. package/resources/qbd/sales-representatives.mjs.map +1 -1
  163. package/resources/qbd/sales-tax-codes.d.ts +4 -1
  164. package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
  165. package/resources/qbd/sales-tax-codes.js +4 -1
  166. package/resources/qbd/sales-tax-codes.js.map +1 -1
  167. package/resources/qbd/sales-tax-codes.mjs +4 -1
  168. package/resources/qbd/sales-tax-codes.mjs.map +1 -1
  169. package/resources/qbd/service-items.d.ts +5 -1
  170. package/resources/qbd/service-items.d.ts.map +1 -1
  171. package/resources/qbd/service-items.js +5 -1
  172. package/resources/qbd/service-items.js.map +1 -1
  173. package/resources/qbd/service-items.mjs +5 -1
  174. package/resources/qbd/service-items.mjs.map +1 -1
  175. package/resources/qbd/transactions.d.ts +2 -4
  176. package/resources/qbd/transactions.d.ts.map +1 -1
  177. package/resources/qbd/transactions.js.map +1 -1
  178. package/resources/qbd/transactions.mjs.map +1 -1
  179. package/resources/qbd/vendor-credits.d.ts +6 -6
  180. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  181. package/resources/qbd/vendor-credits.js +4 -2
  182. package/resources/qbd/vendor-credits.js.map +1 -1
  183. package/resources/qbd/vendor-credits.mjs +4 -2
  184. package/resources/qbd/vendor-credits.mjs.map +1 -1
  185. package/src/resources/qbd/accounts.ts +6 -2
  186. package/src/resources/qbd/bill-check-payments.ts +66 -10
  187. package/src/resources/qbd/bill-credit-card-payments.ts +62 -9
  188. package/src/resources/qbd/bills.ts +38 -7
  189. package/src/resources/qbd/build-assemblies.ts +3 -1
  190. package/src/resources/qbd/checks.ts +37 -7
  191. package/src/resources/qbd/credit-card-charges.ts +3 -1
  192. package/src/resources/qbd/credit-card-refunds.ts +1252 -0
  193. package/src/resources/qbd/credit-memos.ts +35 -17
  194. package/src/resources/qbd/date-driven-terms.ts +4 -1
  195. package/src/resources/qbd/discount-items.ts +7 -2
  196. package/src/resources/qbd/employees.ts +6 -2
  197. package/src/resources/qbd/estimates.ts +31 -5
  198. package/src/resources/qbd/index.ts +10 -0
  199. package/src/resources/qbd/inventory-adjustments.ts +3 -1
  200. package/src/resources/qbd/inventory-assembly-items.ts +4 -2
  201. package/src/resources/qbd/inventory-items.ts +3 -1
  202. package/src/resources/qbd/inventory-sites.ts +2 -1
  203. package/src/resources/qbd/invoices.ts +37 -18
  204. package/src/resources/qbd/item-receipts.ts +35 -6
  205. package/src/resources/qbd/journal-entries.ts +7 -2
  206. package/src/resources/qbd/non-inventory-items.ts +6 -1
  207. package/src/resources/qbd/purchase-orders.ts +31 -5
  208. package/src/resources/qbd/qbd.ts +27 -0
  209. package/src/resources/qbd/receive-payments.ts +71 -23
  210. package/src/resources/qbd/sales-orders.ts +31 -5
  211. package/src/resources/qbd/sales-receipts.ts +7 -2
  212. package/src/resources/qbd/sales-representatives.ts +2 -1
  213. package/src/resources/qbd/sales-tax-codes.ts +4 -1
  214. package/src/resources/qbd/service-items.ts +5 -1
  215. package/src/resources/qbd/transactions.ts +29 -4
  216. package/src/resources/qbd/vendor-credits.ts +35 -7
  217. package/src/version.ts +1 -1
  218. package/version.d.ts +1 -1
  219. package/version.js +1 -1
  220. package/version.mjs +1 -1
@@ -294,9 +294,7 @@ export interface CreditMemo {
294
294
  * default A/R account.
295
295
  *
296
296
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
297
- * account must match the `receivablesAccount` used in all linked transactions. For
298
- * example, when refunding a credit card payment, the A/R account must match the
299
- * one used in the original credit transactions being refunded.
297
+ * account must match the `receivablesAccount` used in all linked transactions.
300
298
  */
301
299
  receivablesAccount: CreditMemo.ReceivablesAccount | null;
302
300
 
@@ -1476,11 +1474,37 @@ export namespace CreditMemo {
1476
1474
  transactionDate: string;
1477
1475
 
1478
1476
  /**
1479
- * The type of transaction for this linked transaction. The output for this field
1480
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1481
- * return a value outside its own schema, which we pass through unchanged.
1482
- */
1483
- transactionType: string;
1477
+ * The type of transaction for this linked transaction.
1478
+ */
1479
+ transactionType:
1480
+ | 'ar_refund_credit_card'
1481
+ | 'bill'
1482
+ | 'bill_payment_check'
1483
+ | 'bill_payment_credit_card'
1484
+ | 'build_assembly'
1485
+ | 'charge'
1486
+ | 'check'
1487
+ | 'credit_card_charge'
1488
+ | 'credit_card_credit'
1489
+ | 'credit_memo'
1490
+ | 'deposit'
1491
+ | 'estimate'
1492
+ | 'inventory_adjustment'
1493
+ | 'invoice'
1494
+ | 'item_receipt'
1495
+ | 'journal_entry'
1496
+ | 'liability_adjustment'
1497
+ | 'paycheck'
1498
+ | 'payroll_liability_check'
1499
+ | 'purchase_order'
1500
+ | 'receive_payment'
1501
+ | 'sales_order'
1502
+ | 'sales_receipt'
1503
+ | 'sales_tax_payment_check'
1504
+ | 'transfer'
1505
+ | 'vendor_credit'
1506
+ | 'ytd_adjustment'
1507
+ | 'unknown';
1484
1508
  }
1485
1509
 
1486
1510
  /**
@@ -1489,9 +1513,7 @@ export namespace CreditMemo {
1489
1513
  * default A/R account.
1490
1514
  *
1491
1515
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
1492
- * account must match the `receivablesAccount` used in all linked transactions. For
1493
- * example, when refunding a credit card payment, the A/R account must match the
1494
- * one used in the original credit transactions being refunded.
1516
+ * account must match the `receivablesAccount` used in all linked transactions.
1495
1517
  */
1496
1518
  export interface ReceivablesAccount {
1497
1519
  /**
@@ -1826,9 +1848,7 @@ export interface CreditMemoCreateParams {
1826
1848
  * will use its default A/R account.
1827
1849
  *
1828
1850
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
1829
- * account must match the `receivablesAccount` used in all linked transactions. For
1830
- * example, when refunding a credit card payment, the A/R account must match the
1831
- * one used in the original credit transactions being refunded.
1851
+ * account must match the `receivablesAccount` used in all linked transactions.
1832
1852
  */
1833
1853
  receivablesAccountId?: string;
1834
1854
 
@@ -2435,9 +2455,7 @@ export interface CreditMemoUpdateParams {
2435
2455
  * will use its default A/R account.
2436
2456
  *
2437
2457
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
2438
- * account must match the `receivablesAccount` used in all linked transactions. For
2439
- * example, when refunding a credit card payment, the A/R account must match the
2440
- * one used in the original credit transactions being refunded.
2458
+ * account must match the `receivablesAccount` used in all linked transactions.
2441
2459
  */
2442
2460
  receivablesAccountId?: string;
2443
2461
 
@@ -5,7 +5,10 @@ import * as Core from "../../core.js";
5
5
 
6
6
  export class DateDrivenTerms extends APIResource {
7
7
  /**
8
- * Creates a new date-driven term.
8
+ * Creates a date-driven term that sets the payment due on a specific day of the
9
+ * month and can optionally grant an early-payment discount before
10
+ * `discountDayOfMonth`. Use it when you need due dates tied to calendar days
11
+ * instead of a fixed number of days after the transaction.
9
12
  *
10
13
  * @example
11
14
  * ```ts
@@ -6,7 +6,10 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class DiscountItems extends APIResource {
8
8
  /**
9
- * Creates a new discount item.
9
+ * Creates a discount item that subtracts either a percentage or fixed amount from
10
+ * transaction totals. Percentage discounts only affect the preceding line, while
11
+ * fixed-amount discounts reduce the accumulated amount above them unless you bound
12
+ * the target lines with a subtotal item.
10
13
  *
11
14
  * @example
12
15
  * ```ts
@@ -52,7 +55,9 @@ export class DiscountItems extends APIResource {
52
55
  }
53
56
 
54
57
  /**
55
- * Updates an existing discount item.
58
+ * Updates a discount item, including its linked account or discount rate. When
59
+ * changing the account, use `updateExistingTransactionsAccount` to control whether
60
+ * existing transactions that reference the item should also be updated.
56
61
  *
57
62
  * @example
58
63
  * ```ts
@@ -5,7 +5,9 @@ import * as Core from "../../core.js";
5
5
 
6
6
  export class Employees extends APIResource {
7
7
  /**
8
- * Creates a new employee.
8
+ * Creates an employee record that captures personal details, contact information,
9
+ * employment dates, and payroll settings in a single request so the employee is
10
+ * ready for scheduling, time tracking, and payroll processing.
9
11
  *
10
12
  * @example
11
13
  * ```ts
@@ -47,7 +49,9 @@ export class Employees extends APIResource {
47
49
  }
48
50
 
49
51
  /**
50
- * Updates an existing employee.
52
+ * Updates an employee record, allowing you to revise contact details, employment
53
+ * status dates, supervisory assignments, payroll configuration, and additional
54
+ * notes to keep workforce data current.
51
55
  *
52
56
  * @example
53
57
  * ```ts
@@ -1409,11 +1409,37 @@ export namespace Estimate {
1409
1409
  transactionDate: string;
1410
1410
 
1411
1411
  /**
1412
- * The type of transaction for this linked transaction. The output for this field
1413
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1414
- * return a value outside its own schema, which we pass through unchanged.
1415
- */
1416
- transactionType: string;
1412
+ * The type of transaction for this linked transaction.
1413
+ */
1414
+ transactionType:
1415
+ | 'ar_refund_credit_card'
1416
+ | 'bill'
1417
+ | 'bill_payment_check'
1418
+ | 'bill_payment_credit_card'
1419
+ | 'build_assembly'
1420
+ | 'charge'
1421
+ | 'check'
1422
+ | 'credit_card_charge'
1423
+ | 'credit_card_credit'
1424
+ | 'credit_memo'
1425
+ | 'deposit'
1426
+ | 'estimate'
1427
+ | 'inventory_adjustment'
1428
+ | 'invoice'
1429
+ | 'item_receipt'
1430
+ | 'journal_entry'
1431
+ | 'liability_adjustment'
1432
+ | 'paycheck'
1433
+ | 'payroll_liability_check'
1434
+ | 'purchase_order'
1435
+ | 'receive_payment'
1436
+ | 'sales_order'
1437
+ | 'sales_receipt'
1438
+ | 'sales_tax_payment_check'
1439
+ | 'transfer'
1440
+ | 'vendor_credit'
1441
+ | 'ytd_adjustment'
1442
+ | 'unknown';
1417
1443
  }
1418
1444
 
1419
1445
  /**
@@ -101,6 +101,16 @@ export {
101
101
  type CreditCardCreditListParams,
102
102
  type CreditCardCreditDeleteParams,
103
103
  } from "./credit-card-credits.js";
104
+ export {
105
+ CreditCardRefundsCursorPage,
106
+ CreditCardRefunds,
107
+ type CreditCardRefund,
108
+ type CreditCardRefundDeleteResponse,
109
+ type CreditCardRefundCreateParams,
110
+ type CreditCardRefundRetrieveParams,
111
+ type CreditCardRefundListParams,
112
+ type CreditCardRefundDeleteParams,
113
+ } from "./credit-card-refunds.js";
104
114
  export {
105
115
  CreditMemosCursorPage,
106
116
  CreditMemos,
@@ -5,7 +5,9 @@ import * as Core from "../../core.js";
5
5
 
6
6
  export class InventoryAdjustments extends APIResource {
7
7
  /**
8
- * Creates a new inventory adjustment.
8
+ * Creates an inventory adjustment to correct on-hand quantities or values.
9
+ * QuickBooks requires single-user mode unless you're on Enterprise with Advanced
10
+ * Inventory enabled.
9
11
  *
10
12
  * @example
11
13
  * ```ts
@@ -6,7 +6,7 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class InventoryAssemblyItems extends APIResource {
8
8
  /**
9
- * Creates a new inventory assembly item.
9
+ * Creates an inventory assembly item that bundles existing inventory items.
10
10
  *
11
11
  * @example
12
12
  * ```ts
@@ -57,7 +57,9 @@ export class InventoryAssemblyItems extends APIResource {
57
57
  }
58
58
 
59
59
  /**
60
- * Updates an existing inventory assembly item.
60
+ * Updates an inventory assembly item. If you change the income account, set
61
+ * `updateExistingTransactionsIncomeAccount` to true so QuickBooks applies the new
62
+ * account to existing transactions that use the assembly.
61
63
  *
62
64
  * @example
63
65
  * ```ts
@@ -54,7 +54,9 @@ export class InventoryItems extends APIResource {
54
54
  }
55
55
 
56
56
  /**
57
- * Updates an existing inventory item.
57
+ * Updates an inventory item. If you switch the income account, set
58
+ * `updateExistingTransactionsIncomeAccount` to true so QuickBooks applies the new
59
+ * account to existing transactions that reference the item.
58
60
  *
59
61
  * @example
60
62
  * ```ts
@@ -5,7 +5,8 @@ import * as Core from "../../core.js";
5
5
 
6
6
  export class InventorySites extends APIResource {
7
7
  /**
8
- * Creates a new inventory site.
8
+ * Creates an inventory site for companies using QuickBooks Enterprise with
9
+ * Advanced Inventory.
9
10
  *
10
11
  * @example
11
12
  * ```ts
@@ -6,7 +6,8 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class Invoices extends APIResource {
8
8
  /**
9
- * Creates a new invoice.
9
+ * Creates an invoice to bill a customer when goods or services were delivered
10
+ * before payment. Use a sales receipt instead if the sale was paid in full.
10
11
  *
11
12
  * @example
12
13
  * ```ts
@@ -305,9 +306,7 @@ export interface Invoice {
305
306
  * A/R account.
306
307
  *
307
308
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
308
- * must match the `receivablesAccount` used in all linked transactions. For
309
- * example, when refunding a credit card payment, the A/R account must match the
310
- * one used in the original credit transactions being refunded.
309
+ * must match the `receivablesAccount` used in all linked transactions.
311
310
  */
312
311
  receivablesAccount: Invoice.ReceivablesAccount | null;
313
312
 
@@ -1498,11 +1497,37 @@ export namespace Invoice {
1498
1497
  transactionDate: string;
1499
1498
 
1500
1499
  /**
1501
- * The type of transaction for this linked transaction. The output for this field
1502
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1503
- * return a value outside its own schema, which we pass through unchanged.
1504
- */
1505
- transactionType: string;
1500
+ * The type of transaction for this linked transaction.
1501
+ */
1502
+ transactionType:
1503
+ | 'ar_refund_credit_card'
1504
+ | 'bill'
1505
+ | 'bill_payment_check'
1506
+ | 'bill_payment_credit_card'
1507
+ | 'build_assembly'
1508
+ | 'charge'
1509
+ | 'check'
1510
+ | 'credit_card_charge'
1511
+ | 'credit_card_credit'
1512
+ | 'credit_memo'
1513
+ | 'deposit'
1514
+ | 'estimate'
1515
+ | 'inventory_adjustment'
1516
+ | 'invoice'
1517
+ | 'item_receipt'
1518
+ | 'journal_entry'
1519
+ | 'liability_adjustment'
1520
+ | 'paycheck'
1521
+ | 'payroll_liability_check'
1522
+ | 'purchase_order'
1523
+ | 'receive_payment'
1524
+ | 'sales_order'
1525
+ | 'sales_receipt'
1526
+ | 'sales_tax_payment_check'
1527
+ | 'transfer'
1528
+ | 'vendor_credit'
1529
+ | 'ytd_adjustment'
1530
+ | 'unknown';
1506
1531
  }
1507
1532
 
1508
1533
  /**
@@ -1511,9 +1536,7 @@ export namespace Invoice {
1511
1536
  * A/R account.
1512
1537
  *
1513
1538
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
1514
- * must match the `receivablesAccount` used in all linked transactions. For
1515
- * example, when refunding a credit card payment, the A/R account must match the
1516
- * one used in the original credit transactions being refunded.
1539
+ * must match the `receivablesAccount` used in all linked transactions.
1517
1540
  */
1518
1541
  export interface ReceivablesAccount {
1519
1542
  /**
@@ -1900,9 +1923,7 @@ export interface InvoiceCreateParams {
1900
1923
  * will use its default A/R account.
1901
1924
  *
1902
1925
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
1903
- * must match the `receivablesAccount` used in all linked transactions. For
1904
- * example, when refunding a credit card payment, the A/R account must match the
1905
- * one used in the original credit transactions being refunded.
1926
+ * must match the `receivablesAccount` used in all linked transactions.
1906
1927
  */
1907
1928
  receivablesAccountId?: string;
1908
1929
 
@@ -2633,9 +2654,7 @@ export interface InvoiceUpdateParams {
2633
2654
  * will use its default A/R account.
2634
2655
  *
2635
2656
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
2636
- * must match the `receivablesAccount` used in all linked transactions. For
2637
- * example, when refunding a credit card payment, the A/R account must match the
2638
- * one used in the original credit transactions being refunded.
2657
+ * must match the `receivablesAccount` used in all linked transactions.
2639
2658
  */
2640
2659
  receivablesAccountId?: string;
2641
2660
 
@@ -6,7 +6,10 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class ItemReceipts extends APIResource {
8
8
  /**
9
- * Creates a new item receipt.
9
+ * Creates an item receipt to record inventory received from a vendor. You can link
10
+ * it to a purchase order during creation to pull in the order's lines
11
+ * automatically and update quantities, but that link can't be added later with an
12
+ * update.
10
13
  *
11
14
  * @example
12
15
  * ```ts
@@ -1498,11 +1501,37 @@ export namespace ItemReceipt {
1498
1501
  transactionDate: string;
1499
1502
 
1500
1503
  /**
1501
- * The type of transaction for this linked transaction. The output for this field
1502
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1503
- * return a value outside its own schema, which we pass through unchanged.
1504
- */
1505
- transactionType: string;
1504
+ * The type of transaction for this linked transaction.
1505
+ */
1506
+ transactionType:
1507
+ | 'ar_refund_credit_card'
1508
+ | 'bill'
1509
+ | 'bill_payment_check'
1510
+ | 'bill_payment_credit_card'
1511
+ | 'build_assembly'
1512
+ | 'charge'
1513
+ | 'check'
1514
+ | 'credit_card_charge'
1515
+ | 'credit_card_credit'
1516
+ | 'credit_memo'
1517
+ | 'deposit'
1518
+ | 'estimate'
1519
+ | 'inventory_adjustment'
1520
+ | 'invoice'
1521
+ | 'item_receipt'
1522
+ | 'journal_entry'
1523
+ | 'liability_adjustment'
1524
+ | 'paycheck'
1525
+ | 'payroll_liability_check'
1526
+ | 'purchase_order'
1527
+ | 'receive_payment'
1528
+ | 'sales_order'
1529
+ | 'sales_receipt'
1530
+ | 'sales_tax_payment_check'
1531
+ | 'transfer'
1532
+ | 'vendor_credit'
1533
+ | 'ytd_adjustment'
1534
+ | 'unknown';
1506
1535
  }
1507
1536
 
1508
1537
  /**
@@ -6,7 +6,10 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class JournalEntries extends APIResource {
8
8
  /**
9
- * Creates a new journal entry.
9
+ * Creates a journal entry with balanced debit and credit lines. QuickBooks Desktop
10
+ * requires total debits to equal total credits, and any line that posts to
11
+ * Accounts Receivable or Accounts Payable must include the related customer or
12
+ * vendor reference.
10
13
  *
11
14
  * @example
12
15
  * ```ts
@@ -51,7 +54,9 @@ export class JournalEntries extends APIResource {
51
54
  }
52
55
 
53
56
  /**
54
- * Updates an existing journal entry.
57
+ * Updates an existing journal entry. Keep the debits and credits in balance, and
58
+ * include the related customer or vendor on any A/R or A/P line you submit in the
59
+ * update body.
55
60
  *
56
61
  * @example
57
62
  * ```ts
@@ -54,7 +54,12 @@ export class NonInventoryItems extends APIResource {
54
54
  }
55
55
 
56
56
  /**
57
- * Updates an existing non-inventory item.
57
+ * Updates a non-inventory item. You can modify either `salesOrPurchaseDetails` or
58
+ * `salesAndPurchaseDetails`, but the item must keep the same configuration it was
59
+ * created with. When you change `postingAccount`, `incomeAccount`, or
60
+ * `expenseAccount`, include the matching `updateExistingTransactions...` flag so
61
+ * QuickBooks applies the new account to existing transactions and doesn’t reject
62
+ * the update when historical activity is present.
58
63
  *
59
64
  * @example
60
65
  * ```ts
@@ -1392,11 +1392,37 @@ export namespace PurchaseOrder {
1392
1392
  transactionDate: string;
1393
1393
 
1394
1394
  /**
1395
- * The type of transaction for this linked transaction. The output for this field
1396
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1397
- * return a value outside its own schema, which we pass through unchanged.
1398
- */
1399
- transactionType: string;
1395
+ * The type of transaction for this linked transaction.
1396
+ */
1397
+ transactionType:
1398
+ | 'ar_refund_credit_card'
1399
+ | 'bill'
1400
+ | 'bill_payment_check'
1401
+ | 'bill_payment_credit_card'
1402
+ | 'build_assembly'
1403
+ | 'charge'
1404
+ | 'check'
1405
+ | 'credit_card_charge'
1406
+ | 'credit_card_credit'
1407
+ | 'credit_memo'
1408
+ | 'deposit'
1409
+ | 'estimate'
1410
+ | 'inventory_adjustment'
1411
+ | 'invoice'
1412
+ | 'item_receipt'
1413
+ | 'journal_entry'
1414
+ | 'liability_adjustment'
1415
+ | 'paycheck'
1416
+ | 'payroll_liability_check'
1417
+ | 'purchase_order'
1418
+ | 'receive_payment'
1419
+ | 'sales_order'
1420
+ | 'sales_receipt'
1421
+ | 'sales_tax_payment_check'
1422
+ | 'transfer'
1423
+ | 'vendor_credit'
1424
+ | 'ytd_adjustment'
1425
+ | 'unknown';
1400
1426
  }
1401
1427
 
1402
1428
  /**
@@ -114,6 +114,17 @@ import {
114
114
  CreditCardCredits,
115
115
  CreditCardCreditsCursorPage,
116
116
  } from "./credit-card-credits.js";
117
+ import * as CreditCardRefundsAPI from "./credit-card-refunds.js";
118
+ import {
119
+ CreditCardRefund,
120
+ CreditCardRefundCreateParams,
121
+ CreditCardRefundDeleteParams,
122
+ CreditCardRefundDeleteResponse,
123
+ CreditCardRefundListParams,
124
+ CreditCardRefundRetrieveParams,
125
+ CreditCardRefunds,
126
+ CreditCardRefundsCursorPage,
127
+ } from "./credit-card-refunds.js";
117
128
  import * as CreditMemosAPI from "./credit-memos.js";
118
129
  import {
119
130
  CreditMemo,
@@ -547,6 +558,9 @@ export class Qbd extends APIResource {
547
558
  creditCardCredits: CreditCardCreditsAPI.CreditCardCredits = new CreditCardCreditsAPI.CreditCardCredits(
548
559
  this._client,
549
560
  );
561
+ creditCardRefunds: CreditCardRefundsAPI.CreditCardRefunds = new CreditCardRefundsAPI.CreditCardRefunds(
562
+ this._client,
563
+ );
550
564
  creditMemos: CreditMemosAPI.CreditMemos = new CreditMemosAPI.CreditMemos(this._client);
551
565
  currencies: CurrenciesAPI.Currencies = new CurrenciesAPI.Currencies(this._client);
552
566
  customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
@@ -670,6 +684,8 @@ Qbd.CreditCardCharges = CreditCardCharges;
670
684
  Qbd.CreditCardChargesCursorPage = CreditCardChargesCursorPage;
671
685
  Qbd.CreditCardCredits = CreditCardCredits;
672
686
  Qbd.CreditCardCreditsCursorPage = CreditCardCreditsCursorPage;
687
+ Qbd.CreditCardRefunds = CreditCardRefunds;
688
+ Qbd.CreditCardRefundsCursorPage = CreditCardRefundsCursorPage;
673
689
  Qbd.CreditMemos = CreditMemos;
674
690
  Qbd.CreditMemosCursorPage = CreditMemosCursorPage;
675
691
  Qbd.Currencies = Currencies;
@@ -860,6 +876,17 @@ export declare namespace Qbd {
860
876
  type CreditCardCreditDeleteParams as CreditCardCreditDeleteParams,
861
877
  };
862
878
 
879
+ export {
880
+ CreditCardRefunds as CreditCardRefunds,
881
+ type CreditCardRefund as CreditCardRefund,
882
+ type CreditCardRefundDeleteResponse as CreditCardRefundDeleteResponse,
883
+ CreditCardRefundsCursorPage as CreditCardRefundsCursorPage,
884
+ type CreditCardRefundCreateParams as CreditCardRefundCreateParams,
885
+ type CreditCardRefundRetrieveParams as CreditCardRefundRetrieveParams,
886
+ type CreditCardRefundListParams as CreditCardRefundListParams,
887
+ type CreditCardRefundDeleteParams as CreditCardRefundDeleteParams,
888
+ };
889
+
863
890
  export {
864
891
  CreditMemos as CreditMemos,
865
892
  type CreditMemo as CreditMemo,