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
@@ -6,7 +6,10 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class ReceivePayments extends APIResource {
8
8
  /**
9
- * Creates a new receive-payment.
9
+ * Records a customer payment and optionally applies it to specific invoices or
10
+ * credits. All allocations must target the same accounts receivable account as
11
+ * those invoices, and each one has to include a payment amount, discount, or
12
+ * credit so QuickBooks can close out the balance.
10
13
  *
11
14
  * @example
12
15
  * ```ts
@@ -53,7 +56,9 @@ export class ReceivePayments extends APIResource {
53
56
  }
54
57
 
55
58
  /**
56
- * Updates an existing receive-payment.
59
+ * Updates a received payment. When you resubmit applications to invoices, keep
60
+ * them on the same accounts receivable account and include the payment amount,
61
+ * discount, or credit on every allocation you send.
57
62
  *
58
63
  * @example
59
64
  * ```ts
@@ -221,9 +226,7 @@ export interface ReceivePayment {
221
226
  * default A/R account.
222
227
  *
223
228
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
224
- * account must match the `receivablesAccount` used in all linked transactions. For
225
- * example, when refunding a credit card payment, the A/R account must match the
226
- * one used in the original credit transactions being refunded.
229
+ * account must match the `receivablesAccount` used in all linked transactions.
227
230
  */
228
231
  receivablesAccount: ReceivePayment.ReceivablesAccount | null;
229
232
 
@@ -344,11 +347,36 @@ export namespace ReceivePayment {
344
347
  transactionId: string;
345
348
 
346
349
  /**
347
- * The type of transaction for this receivable transaction. The output for this
348
- * field is a raw string, not an enum, because in rare cases QuickBooks Desktop may
349
- * return a value outside its own schema, which we pass through unchanged.
350
+ * The type of transaction for this receivable transaction.
350
351
  */
351
- transactionType: string;
352
+ transactionType:
353
+ | 'ar_refund_credit_card'
354
+ | 'bill'
355
+ | 'bill_payment_check'
356
+ | 'bill_payment_credit_card'
357
+ | 'build_assembly'
358
+ | 'charge'
359
+ | 'check'
360
+ | 'credit_card_charge'
361
+ | 'credit_card_credit'
362
+ | 'credit_memo'
363
+ | 'deposit'
364
+ | 'estimate'
365
+ | 'inventory_adjustment'
366
+ | 'invoice'
367
+ | 'item_receipt'
368
+ | 'journal_entry'
369
+ | 'liability_adjustment'
370
+ | 'paycheck'
371
+ | 'payroll_liability_check'
372
+ | 'purchase_order'
373
+ | 'receive_payment'
374
+ | 'sales_order'
375
+ | 'sales_receipt'
376
+ | 'sales_tax_payment_check'
377
+ | 'transfer'
378
+ | 'vendor_credit'
379
+ | 'ytd_adjustment';
352
380
  }
353
381
 
354
382
  export namespace AppliedToTransaction {
@@ -428,11 +456,37 @@ export namespace ReceivePayment {
428
456
  transactionDate: string;
429
457
 
430
458
  /**
431
- * The type of transaction for this linked transaction. The output for this field
432
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
433
- * return a value outside its own schema, which we pass through unchanged.
434
- */
435
- transactionType: string;
459
+ * The type of transaction for this linked transaction.
460
+ */
461
+ transactionType:
462
+ | 'ar_refund_credit_card'
463
+ | 'bill'
464
+ | 'bill_payment_check'
465
+ | 'bill_payment_credit_card'
466
+ | 'build_assembly'
467
+ | 'charge'
468
+ | 'check'
469
+ | 'credit_card_charge'
470
+ | 'credit_card_credit'
471
+ | 'credit_memo'
472
+ | 'deposit'
473
+ | 'estimate'
474
+ | 'inventory_adjustment'
475
+ | 'invoice'
476
+ | 'item_receipt'
477
+ | 'journal_entry'
478
+ | 'liability_adjustment'
479
+ | 'paycheck'
480
+ | 'payroll_liability_check'
481
+ | 'purchase_order'
482
+ | 'receive_payment'
483
+ | 'sales_order'
484
+ | 'sales_receipt'
485
+ | 'sales_tax_payment_check'
486
+ | 'transfer'
487
+ | 'vendor_credit'
488
+ | 'ytd_adjustment'
489
+ | 'unknown';
436
490
  }
437
491
  }
438
492
 
@@ -725,9 +779,7 @@ export namespace ReceivePayment {
725
779
  * default A/R account.
726
780
  *
727
781
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
728
- * account must match the `receivablesAccount` used in all linked transactions. For
729
- * example, when refunding a credit card payment, the A/R account must match the
730
- * one used in the original credit transactions being refunded.
782
+ * account must match the `receivablesAccount` used in all linked transactions.
731
783
  */
732
784
  export interface ReceivablesAccount {
733
785
  /**
@@ -879,9 +931,7 @@ export interface ReceivePaymentCreateParams {
879
931
  * will use its default A/R account.
880
932
  *
881
933
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
882
- * account must match the `receivablesAccount` used in all linked transactions. For
883
- * example, when refunding a credit card payment, the A/R account must match the
884
- * one used in the original credit transactions being refunded.
934
+ * account must match the `receivablesAccount` used in all linked transactions.
885
935
  */
886
936
  receivablesAccountId?: string;
887
937
 
@@ -1209,9 +1259,7 @@ export interface ReceivePaymentUpdateParams {
1209
1259
  * will use its default A/R account.
1210
1260
  *
1211
1261
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
1212
- * account must match the `receivablesAccount` used in all linked transactions. For
1213
- * example, when refunding a credit card payment, the A/R account must match the
1214
- * one used in the original credit transactions being refunded.
1262
+ * account must match the `receivablesAccount` used in all linked transactions.
1215
1263
  */
1216
1264
  receivablesAccountId?: string;
1217
1265
 
@@ -1488,11 +1488,37 @@ export namespace SalesOrder {
1488
1488
  transactionDate: string;
1489
1489
 
1490
1490
  /**
1491
- * The type of transaction for this linked transaction. The output for this field
1492
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1493
- * return a value outside its own schema, which we pass through unchanged.
1494
- */
1495
- transactionType: string;
1491
+ * The type of transaction for this linked transaction.
1492
+ */
1493
+ transactionType:
1494
+ | 'ar_refund_credit_card'
1495
+ | 'bill'
1496
+ | 'bill_payment_check'
1497
+ | 'bill_payment_credit_card'
1498
+ | 'build_assembly'
1499
+ | 'charge'
1500
+ | 'check'
1501
+ | 'credit_card_charge'
1502
+ | 'credit_card_credit'
1503
+ | 'credit_memo'
1504
+ | 'deposit'
1505
+ | 'estimate'
1506
+ | 'inventory_adjustment'
1507
+ | 'invoice'
1508
+ | 'item_receipt'
1509
+ | 'journal_entry'
1510
+ | 'liability_adjustment'
1511
+ | 'paycheck'
1512
+ | 'payroll_liability_check'
1513
+ | 'purchase_order'
1514
+ | 'receive_payment'
1515
+ | 'sales_order'
1516
+ | 'sales_receipt'
1517
+ | 'sales_tax_payment_check'
1518
+ | 'transfer'
1519
+ | 'vendor_credit'
1520
+ | 'ytd_adjustment'
1521
+ | 'unknown';
1496
1522
  }
1497
1523
 
1498
1524
  /**
@@ -6,7 +6,10 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class SalesReceipts extends APIResource {
8
8
  /**
9
- * Creates a new sales receipt.
9
+ * Creates a sales receipt for a sale paid in full. If you include credit card
10
+ * transaction details, QuickBooks requires the payment method to reference a
11
+ * credit card type and automatically deposits the funds to Undeposited Funds
12
+ * rather than a specific bank account.
10
13
  *
11
14
  * @example
12
15
  * ```ts
@@ -51,7 +54,9 @@ export class SalesReceipts extends APIResource {
51
54
  }
52
55
 
53
56
  /**
54
- * Updates an existing sales receipt.
57
+ * Updates an existing sales receipt. Credit card payments still have to use a
58
+ * credit-card payment method and remain deposited to Undeposited Funds, so don’t
59
+ * switch the deposit account in those scenarios.
55
60
  *
56
61
  * @example
57
62
  * ```ts
@@ -5,7 +5,8 @@ import * as Core from "../../core.js";
5
5
 
6
6
  export class SalesRepresentatives extends APIResource {
7
7
  /**
8
- * Creates a new sales representative.
8
+ * Creates a sales representative that references an existing employee, vendor, or
9
+ * other-name record so it can be assigned on sales forms.
9
10
  *
10
11
  * @example
11
12
  * ```ts
@@ -51,7 +51,10 @@ export class SalesTaxCodes extends APIResource {
51
51
  }
52
52
 
53
53
  /**
54
- * Updates an existing sales-tax code.
54
+ * Updates a sales-tax code’s name, activity status, or linked tax items. Once a
55
+ * code has been used you can’t flip it between taxable and non-taxable, and the
56
+ * built-in TAX/NON codes keep their original taxable setting, so plan new codes if
57
+ * you need a different tax status.
55
58
  *
56
59
  * @example
57
60
  * ```ts
@@ -52,7 +52,11 @@ export class ServiceItems extends APIResource {
52
52
  }
53
53
 
54
54
  /**
55
- * Updates an existing service item.
55
+ * Updates a service item’s details, including its accounts and unit-of-measure
56
+ * set. QuickBooks won’t let you convert a sell-only service into a buy-and-sell
57
+ * service (or the reverse); create a separate item instead. If you’re switching
58
+ * the unit of measure, set `forceUnitOfMeasureChange` so QuickBooks replaces it on
59
+ * existing forms.
56
60
  *
57
61
  * @example
58
62
  * ```ts
@@ -137,11 +137,36 @@ export interface Transaction {
137
137
  transactionLineId: string | null;
138
138
 
139
139
  /**
140
- * The type of transaction. The output for this field is a raw string, not an enum,
141
- * because in rare cases QuickBooks Desktop may return a value outside its own
142
- * schema, which we pass through unchanged.
140
+ * The type of transaction.
143
141
  */
144
- transactionType: string;
142
+ transactionType:
143
+ | 'ar_refund_credit_card'
144
+ | 'bill'
145
+ | 'bill_payment_check'
146
+ | 'bill_payment_credit_card'
147
+ | 'build_assembly'
148
+ | 'charge'
149
+ | 'check'
150
+ | 'credit_card_charge'
151
+ | 'credit_card_credit'
152
+ | 'credit_memo'
153
+ | 'deposit'
154
+ | 'estimate'
155
+ | 'inventory_adjustment'
156
+ | 'invoice'
157
+ | 'item_receipt'
158
+ | 'journal_entry'
159
+ | 'liability_adjustment'
160
+ | 'paycheck'
161
+ | 'payroll_liability_check'
162
+ | 'purchase_order'
163
+ | 'receive_payment'
164
+ | 'sales_order'
165
+ | 'sales_receipt'
166
+ | 'sales_tax_payment_check'
167
+ | 'transfer'
168
+ | 'vendor_credit'
169
+ | 'ytd_adjustment';
145
170
 
146
171
  /**
147
172
  * The date and time when this transaction was last updated, in ISO 8601 format
@@ -6,7 +6,8 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
6
 
7
7
  export class VendorCredits extends APIResource {
8
8
  /**
9
- * Creates a new vendor credit.
9
+ * Creates a vendor credit to capture returns, rebates, or other amounts a vendor
10
+ * owes so you can apply the credit when recording future bill payments.
10
11
  *
11
12
  * @example
12
13
  * ```ts
@@ -54,7 +55,8 @@ export class VendorCredits extends APIResource {
54
55
  }
55
56
 
56
57
  /**
57
- * Updates an existing vendor credit.
58
+ * Updates a vendor credit before you apply it to bills, letting you adjust the
59
+ * amounts, memo, or line allocations that make up the credit.
58
60
  *
59
61
  * @example
60
62
  * ```ts
@@ -1481,11 +1483,37 @@ export namespace VendorCredit {
1481
1483
  transactionDate: string;
1482
1484
 
1483
1485
  /**
1484
- * The type of transaction for this linked transaction. The output for this field
1485
- * is a raw string, not an enum, because in rare cases QuickBooks Desktop may
1486
- * return a value outside its own schema, which we pass through unchanged.
1487
- */
1488
- transactionType: string;
1486
+ * The type of transaction for this linked transaction.
1487
+ */
1488
+ transactionType:
1489
+ | 'ar_refund_credit_card'
1490
+ | 'bill'
1491
+ | 'bill_payment_check'
1492
+ | 'bill_payment_credit_card'
1493
+ | 'build_assembly'
1494
+ | 'charge'
1495
+ | 'check'
1496
+ | 'credit_card_charge'
1497
+ | 'credit_card_credit'
1498
+ | 'credit_memo'
1499
+ | 'deposit'
1500
+ | 'estimate'
1501
+ | 'inventory_adjustment'
1502
+ | 'invoice'
1503
+ | 'item_receipt'
1504
+ | 'journal_entry'
1505
+ | 'liability_adjustment'
1506
+ | 'paycheck'
1507
+ | 'payroll_liability_check'
1508
+ | 'purchase_order'
1509
+ | 'receive_payment'
1510
+ | 'sales_order'
1511
+ | 'sales_receipt'
1512
+ | 'sales_tax_payment_check'
1513
+ | 'transfer'
1514
+ | 'vendor_credit'
1515
+ | 'ytd_adjustment'
1516
+ | 'unknown';
1489
1517
  }
1490
1518
 
1491
1519
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '12.32.0'; // x-release-please-version
1
+ export const VERSION = '12.34.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "12.32.0";
1
+ export declare const VERSION = "12.34.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '12.32.0'; // x-release-please-version
4
+ exports.VERSION = '12.34.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '12.32.0'; // x-release-please-version
1
+ export const VERSION = '12.34.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map