conductor-node 14.11.0 → 14.13.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 (203) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/internal/utils/log.d.mts.map +1 -1
  3. package/internal/utils/log.d.ts.map +1 -1
  4. package/internal/utils/log.js +2 -0
  5. package/internal/utils/log.js.map +1 -1
  6. package/internal/utils/log.mjs +2 -0
  7. package/internal/utils/log.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/qbd/bill-check-payments.d.mts +33 -8
  10. package/resources/qbd/bill-check-payments.d.mts.map +1 -1
  11. package/resources/qbd/bill-check-payments.d.ts +33 -8
  12. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  13. package/resources/qbd/bill-credit-card-payments.d.mts +15 -4
  14. package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -1
  15. package/resources/qbd/bill-credit-card-payments.d.ts +15 -4
  16. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  17. package/resources/qbd/bills.d.mts +28 -0
  18. package/resources/qbd/bills.d.mts.map +1 -1
  19. package/resources/qbd/bills.d.ts +28 -0
  20. package/resources/qbd/bills.d.ts.map +1 -1
  21. package/resources/qbd/build-assemblies.d.mts +4 -0
  22. package/resources/qbd/build-assemblies.d.mts.map +1 -1
  23. package/resources/qbd/build-assemblies.d.ts +4 -0
  24. package/resources/qbd/build-assemblies.d.ts.map +1 -1
  25. package/resources/qbd/checks.d.mts +34 -0
  26. package/resources/qbd/checks.d.mts.map +1 -1
  27. package/resources/qbd/checks.d.ts +34 -0
  28. package/resources/qbd/checks.d.ts.map +1 -1
  29. package/resources/qbd/credit-card-charges.d.mts +28 -0
  30. package/resources/qbd/credit-card-charges.d.mts.map +1 -1
  31. package/resources/qbd/credit-card-charges.d.ts +28 -0
  32. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  33. package/resources/qbd/credit-card-credits.d.mts +28 -0
  34. package/resources/qbd/credit-card-credits.d.mts.map +1 -1
  35. package/resources/qbd/credit-card-credits.d.ts +28 -0
  36. package/resources/qbd/credit-card-credits.d.ts.map +1 -1
  37. package/resources/qbd/credit-card-refunds.d.mts +5 -0
  38. package/resources/qbd/credit-card-refunds.d.mts.map +1 -1
  39. package/resources/qbd/credit-card-refunds.d.ts +5 -0
  40. package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
  41. package/resources/qbd/credit-memos.d.mts +26 -0
  42. package/resources/qbd/credit-memos.d.mts.map +1 -1
  43. package/resources/qbd/credit-memos.d.ts +26 -0
  44. package/resources/qbd/credit-memos.d.ts.map +1 -1
  45. package/resources/qbd/customers.d.mts +12 -0
  46. package/resources/qbd/customers.d.mts.map +1 -1
  47. package/resources/qbd/customers.d.ts +12 -0
  48. package/resources/qbd/customers.d.ts.map +1 -1
  49. package/resources/qbd/deposits.d.mts +12 -0
  50. package/resources/qbd/deposits.d.mts.map +1 -1
  51. package/resources/qbd/deposits.d.ts +12 -0
  52. package/resources/qbd/deposits.d.ts.map +1 -1
  53. package/resources/qbd/discount-items.d.mts +9 -3
  54. package/resources/qbd/discount-items.d.mts.map +1 -1
  55. package/resources/qbd/discount-items.d.ts +9 -3
  56. package/resources/qbd/discount-items.d.ts.map +1 -1
  57. package/resources/qbd/employees.d.mts +26 -0
  58. package/resources/qbd/employees.d.mts.map +1 -1
  59. package/resources/qbd/employees.d.ts +26 -0
  60. package/resources/qbd/employees.d.ts.map +1 -1
  61. package/resources/qbd/estimates.d.mts +26 -0
  62. package/resources/qbd/estimates.d.mts.map +1 -1
  63. package/resources/qbd/estimates.d.ts +26 -0
  64. package/resources/qbd/estimates.d.ts.map +1 -1
  65. package/resources/qbd/index.d.mts +1 -0
  66. package/resources/qbd/index.d.mts.map +1 -1
  67. package/resources/qbd/index.d.ts +1 -0
  68. package/resources/qbd/index.d.ts.map +1 -1
  69. package/resources/qbd/index.js +4 -2
  70. package/resources/qbd/index.js.map +1 -1
  71. package/resources/qbd/index.mjs +1 -0
  72. package/resources/qbd/index.mjs.map +1 -1
  73. package/resources/qbd/inventory-adjustments.d.mts +4 -0
  74. package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
  75. package/resources/qbd/inventory-adjustments.d.ts +4 -0
  76. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  77. package/resources/qbd/inventory-assembly-items.d.mts +8 -5
  78. package/resources/qbd/inventory-assembly-items.d.mts.map +1 -1
  79. package/resources/qbd/inventory-assembly-items.d.ts +8 -5
  80. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  81. package/resources/qbd/inventory-items.d.mts +8 -5
  82. package/resources/qbd/inventory-items.d.mts.map +1 -1
  83. package/resources/qbd/inventory-items.d.ts +8 -5
  84. package/resources/qbd/inventory-items.d.ts.map +1 -1
  85. package/resources/qbd/inventory-sites.d.mts +4 -0
  86. package/resources/qbd/inventory-sites.d.mts.map +1 -1
  87. package/resources/qbd/inventory-sites.d.ts +4 -0
  88. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  89. package/resources/qbd/invoices.d.mts +42 -8
  90. package/resources/qbd/invoices.d.mts.map +1 -1
  91. package/resources/qbd/invoices.d.ts +42 -8
  92. package/resources/qbd/invoices.d.ts.map +1 -1
  93. package/resources/qbd/item-receipts.d.mts +28 -0
  94. package/resources/qbd/item-receipts.d.mts.map +1 -1
  95. package/resources/qbd/item-receipts.d.ts +28 -0
  96. package/resources/qbd/item-receipts.d.ts.map +1 -1
  97. package/resources/qbd/journal-entries.d.mts +13 -0
  98. package/resources/qbd/journal-entries.d.mts.map +1 -1
  99. package/resources/qbd/journal-entries.d.ts +13 -0
  100. package/resources/qbd/journal-entries.d.ts.map +1 -1
  101. package/resources/qbd/other-names.d.mts +12 -0
  102. package/resources/qbd/other-names.d.mts.map +1 -1
  103. package/resources/qbd/other-names.d.ts +12 -0
  104. package/resources/qbd/other-names.d.ts.map +1 -1
  105. package/resources/qbd/payroll-wage-items.d.mts +3 -0
  106. package/resources/qbd/payroll-wage-items.d.mts.map +1 -1
  107. package/resources/qbd/payroll-wage-items.d.ts +3 -0
  108. package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
  109. package/resources/qbd/price-levels.d.mts +18 -18
  110. package/resources/qbd/price-levels.d.mts.map +1 -1
  111. package/resources/qbd/price-levels.d.ts +18 -18
  112. package/resources/qbd/price-levels.d.ts.map +1 -1
  113. package/resources/qbd/purchase-orders.d.mts +26 -0
  114. package/resources/qbd/purchase-orders.d.mts.map +1 -1
  115. package/resources/qbd/purchase-orders.d.ts +26 -0
  116. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  117. package/resources/qbd/qbd.d.mts +4 -0
  118. package/resources/qbd/qbd.d.mts.map +1 -1
  119. package/resources/qbd/qbd.d.ts +4 -0
  120. package/resources/qbd/qbd.d.ts.map +1 -1
  121. package/resources/qbd/qbd.js +4 -0
  122. package/resources/qbd/qbd.js.map +1 -1
  123. package/resources/qbd/qbd.mjs +4 -0
  124. package/resources/qbd/qbd.mjs.map +1 -1
  125. package/resources/qbd/receive-payments.d.mts +40 -12
  126. package/resources/qbd/receive-payments.d.mts.map +1 -1
  127. package/resources/qbd/receive-payments.d.ts +40 -12
  128. package/resources/qbd/receive-payments.d.ts.map +1 -1
  129. package/resources/qbd/receive-payments.js +4 -4
  130. package/resources/qbd/receive-payments.mjs +4 -4
  131. package/resources/qbd/reports.d.mts +1800 -0
  132. package/resources/qbd/reports.d.mts.map +1 -0
  133. package/resources/qbd/reports.d.ts +1800 -0
  134. package/resources/qbd/reports.d.ts.map +1 -0
  135. package/resources/qbd/reports.js +203 -0
  136. package/resources/qbd/reports.js.map +1 -0
  137. package/resources/qbd/reports.mjs +199 -0
  138. package/resources/qbd/reports.mjs.map +1 -0
  139. package/resources/qbd/sales-orders.d.mts +26 -0
  140. package/resources/qbd/sales-orders.d.mts.map +1 -1
  141. package/resources/qbd/sales-orders.d.ts +26 -0
  142. package/resources/qbd/sales-orders.d.ts.map +1 -1
  143. package/resources/qbd/sales-receipts.d.mts +26 -0
  144. package/resources/qbd/sales-receipts.d.mts.map +1 -1
  145. package/resources/qbd/sales-receipts.d.ts +26 -0
  146. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  147. package/resources/qbd/time-tracking-activities.d.mts +6 -0
  148. package/resources/qbd/time-tracking-activities.d.mts.map +1 -1
  149. package/resources/qbd/time-tracking-activities.d.ts +6 -0
  150. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  151. package/resources/qbd/transfers.d.mts +6 -0
  152. package/resources/qbd/transfers.d.mts.map +1 -1
  153. package/resources/qbd/transfers.d.ts +6 -0
  154. package/resources/qbd/transfers.d.ts.map +1 -1
  155. package/resources/qbd/vendor-credits.d.mts +28 -0
  156. package/resources/qbd/vendor-credits.d.mts.map +1 -1
  157. package/resources/qbd/vendor-credits.d.ts +28 -0
  158. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  159. package/resources/qbd/vendors.d.mts +16 -0
  160. package/resources/qbd/vendors.d.mts.map +1 -1
  161. package/resources/qbd/vendors.d.ts +16 -0
  162. package/resources/qbd/vendors.d.ts.map +1 -1
  163. package/src/internal/utils/log.ts +2 -0
  164. package/src/resources/qbd/bill-check-payments.ts +33 -8
  165. package/src/resources/qbd/bill-credit-card-payments.ts +15 -4
  166. package/src/resources/qbd/bills.ts +28 -0
  167. package/src/resources/qbd/build-assemblies.ts +4 -0
  168. package/src/resources/qbd/checks.ts +34 -0
  169. package/src/resources/qbd/credit-card-charges.ts +28 -0
  170. package/src/resources/qbd/credit-card-credits.ts +28 -0
  171. package/src/resources/qbd/credit-card-refunds.ts +5 -0
  172. package/src/resources/qbd/credit-memos.ts +26 -0
  173. package/src/resources/qbd/customers.ts +12 -0
  174. package/src/resources/qbd/deposits.ts +12 -0
  175. package/src/resources/qbd/discount-items.ts +9 -3
  176. package/src/resources/qbd/employees.ts +26 -0
  177. package/src/resources/qbd/estimates.ts +26 -0
  178. package/src/resources/qbd/index.ts +14 -0
  179. package/src/resources/qbd/inventory-adjustments.ts +4 -0
  180. package/src/resources/qbd/inventory-assembly-items.ts +8 -5
  181. package/src/resources/qbd/inventory-items.ts +8 -5
  182. package/src/resources/qbd/inventory-sites.ts +4 -0
  183. package/src/resources/qbd/invoices.ts +42 -8
  184. package/src/resources/qbd/item-receipts.ts +28 -0
  185. package/src/resources/qbd/journal-entries.ts +13 -0
  186. package/src/resources/qbd/other-names.ts +12 -0
  187. package/src/resources/qbd/payroll-wage-items.ts +3 -0
  188. package/src/resources/qbd/price-levels.ts +20 -20
  189. package/src/resources/qbd/purchase-orders.ts +26 -0
  190. package/src/resources/qbd/qbd.ts +32 -0
  191. package/src/resources/qbd/receive-payments.ts +40 -12
  192. package/src/resources/qbd/reports.ts +3933 -0
  193. package/src/resources/qbd/sales-orders.ts +26 -0
  194. package/src/resources/qbd/sales-receipts.ts +26 -0
  195. package/src/resources/qbd/time-tracking-activities.ts +6 -0
  196. package/src/resources/qbd/transfers.ts +6 -0
  197. package/src/resources/qbd/vendor-credits.ts +28 -0
  198. package/src/resources/qbd/vendors.ts +16 -0
  199. package/src/version.ts +1 -1
  200. package/version.d.mts +1 -1
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
  203. package/version.mjs +1 -1
@@ -391,6 +391,8 @@ export interface OtherNameCreateParams {
391
391
 
392
392
  /**
393
393
  * Body param: The other-name's alternate telephone number.
394
+ *
395
+ * Maximum length: 21 characters.
394
396
  */
395
397
  alternatePhone?: string;
396
398
 
@@ -422,6 +424,8 @@ export interface OtherNameCreateParams {
422
424
 
423
425
  /**
424
426
  * Body param: The other-name's fax number.
427
+ *
428
+ * Maximum length: 21 characters.
425
429
  */
426
430
  fax?: string;
427
431
 
@@ -459,6 +463,8 @@ export interface OtherNameCreateParams {
459
463
 
460
464
  /**
461
465
  * Body param: The other-name's primary telephone number.
466
+ *
467
+ * Maximum length: 21 characters.
462
468
  */
463
469
  phone?: string;
464
470
 
@@ -587,6 +593,8 @@ export interface OtherNameUpdateParams {
587
593
 
588
594
  /**
589
595
  * Body param: The other-name's alternate telephone number.
596
+ *
597
+ * Maximum length: 21 characters.
590
598
  */
591
599
  alternatePhone?: string;
592
600
 
@@ -608,6 +616,8 @@ export interface OtherNameUpdateParams {
608
616
 
609
617
  /**
610
618
  * Body param: The other-name's fax number.
619
+ *
620
+ * Maximum length: 21 characters.
611
621
  */
612
622
  fax?: string;
613
623
 
@@ -657,6 +667,8 @@ export interface OtherNameUpdateParams {
657
667
 
658
668
  /**
659
669
  * Body param: The other-name's primary telephone number.
670
+ *
671
+ * Maximum length: 21 characters.
660
672
  */
661
673
  phone?: string;
662
674
 
@@ -258,6 +258,9 @@ export interface PayrollWageItemCreateParams {
258
258
  /**
259
259
  * Body param: The default rate for this payroll wage item, represented as a
260
260
  * decimal string. Only one of `rate` and `ratePercent` can be set.
261
+ *
262
+ * Decimal string format: up to 5 decimal places and up to 10 digits before the
263
+ * decimal point (for example, "123.45").
261
264
  */
262
265
  rate?: string;
263
266
 
@@ -317,13 +317,21 @@ export interface PriceLevelCreateParams {
317
317
 
318
318
  export namespace PriceLevelCreateParams {
319
319
  export interface PerItemPriceLevel {
320
+ /**
321
+ * The item associated with this per-item price level. This can refer to any good
322
+ * or service that the business buys or sells, including item types such as a
323
+ * service item, inventory item, or special calculation item like a discount item
324
+ * or sales-tax item.
325
+ */
326
+ itemId: string;
327
+
320
328
  /**
321
329
  * The percentage adjustment for this per-item price level when using relative
322
330
  * pricing. Specifies a percentage to modify pricing, using positive values (e.g.,
323
331
  * "20") to increase prices by that percentage, or negative values (e.g., "-10") to
324
332
  * apply a discount.
325
333
  */
326
- adjustPercentage: string;
334
+ adjustPercentage?: string;
327
335
 
328
336
  /**
329
337
  * The base value reference for this per-item price level's percentage adjustment.
@@ -335,15 +343,7 @@ export namespace PriceLevelCreateParams {
335
343
  * (`adjustPercentage` with `adjustRelativeTo`) when configuring per-item price
336
344
  * levels.
337
345
  */
338
- adjustRelativeTo: 'cost' | 'current_custom_price' | 'standard_price';
339
-
340
- /**
341
- * The item associated with this per-item price level. This can refer to any good
342
- * or service that the business buys or sells, including item types such as a
343
- * service item, inventory item, or special calculation item like a discount item
344
- * or sales-tax item.
345
- */
346
- itemId: string;
346
+ adjustRelativeTo?: 'cost' | 'current_custom_price' | 'standard_price';
347
347
 
348
348
  /**
349
349
  * The fixed amount custom price for this per-item price level that overrides the
@@ -428,13 +428,21 @@ export interface PriceLevelUpdateParams {
428
428
 
429
429
  export namespace PriceLevelUpdateParams {
430
430
  export interface PerItemPriceLevel {
431
+ /**
432
+ * The item associated with this per-item price level. This can refer to any good
433
+ * or service that the business buys or sells, including item types such as a
434
+ * service item, inventory item, or special calculation item like a discount item
435
+ * or sales-tax item.
436
+ */
437
+ itemId: string;
438
+
431
439
  /**
432
440
  * The percentage adjustment for this per-item price level when using relative
433
441
  * pricing. Specifies a percentage to modify pricing, using positive values (e.g.,
434
442
  * "20") to increase prices by that percentage, or negative values (e.g., "-10") to
435
443
  * apply a discount.
436
444
  */
437
- adjustPercentage: string;
445
+ adjustPercentage?: string;
438
446
 
439
447
  /**
440
448
  * The base value reference for this per-item price level's percentage adjustment.
@@ -446,15 +454,7 @@ export namespace PriceLevelUpdateParams {
446
454
  * (`adjustPercentage` with `adjustRelativeTo`) when configuring per-item price
447
455
  * levels.
448
456
  */
449
- adjustRelativeTo: 'cost' | 'current_custom_price' | 'standard_price';
450
-
451
- /**
452
- * The item associated with this per-item price level. This can refer to any good
453
- * or service that the business buys or sells, including item types such as a
454
- * service item, inventory item, or special calculation item like a discount item
455
- * or sales-tax item.
456
- */
457
- itemId: string;
457
+ adjustRelativeTo?: 'cost' | 'current_custom_price' | 'standard_price';
458
458
 
459
459
  /**
460
460
  * The fixed amount custom price for this per-item price level that overrides the
@@ -1805,6 +1805,8 @@ export interface PurchaseOrderCreateParams {
1805
1805
  * is not required to be unique and can be arbitrarily changed by the QuickBooks
1806
1806
  * user. When left blank in this create request, this field will be left blank in
1807
1807
  * QuickBooks (i.e., it does _not_ auto-increment).
1808
+ *
1809
+ * Maximum length: 11 characters.
1808
1810
  */
1809
1811
  refNumber?: string;
1810
1812
 
@@ -1826,6 +1828,8 @@ export interface PurchaseOrderCreateParams {
1826
1828
  * for goods transfer from seller to buyer. Internally, QuickBooks uses the term
1827
1829
  * "FOB" for this field, which stands for "freight on board". This field is
1828
1830
  * informational and has no accounting implications.
1831
+ *
1832
+ * Maximum length: 13 characters.
1829
1833
  */
1830
1834
  shipmentOrigin?: string;
1831
1835
 
@@ -1948,6 +1952,9 @@ export namespace PurchaseOrderCreateParams {
1948
1952
  * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
1949
1953
  * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
1950
1954
  * `1` and the suggested `rate`. This field cannot be cleared.
1955
+ *
1956
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1957
+ * to 13 digits before the decimal point (for example, "123.45").
1951
1958
  */
1952
1959
  amount?: string;
1953
1960
 
@@ -2031,6 +2038,9 @@ export namespace PurchaseOrderCreateParams {
2031
2038
  * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
2032
2039
  * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
2033
2040
  * decimal string. This field cannot be cleared.
2041
+ *
2042
+ * Decimal string format: up to 5 decimal places and up to 10 digits before the
2043
+ * decimal point (for example, "123.45").
2034
2044
  */
2035
2045
  rate?: string;
2036
2046
 
@@ -2391,6 +2401,8 @@ export interface PurchaseOrderUpdateParams {
2391
2401
  * order, which can be used to identify the transaction in QuickBooks. This value
2392
2402
  * is not required to be unique and can be arbitrarily changed by the QuickBooks
2393
2403
  * user.
2404
+ *
2405
+ * Maximum length: 11 characters.
2394
2406
  */
2395
2407
  refNumber?: string;
2396
2408
 
@@ -2412,6 +2424,8 @@ export interface PurchaseOrderUpdateParams {
2412
2424
  * for goods transfer from seller to buyer. Internally, QuickBooks uses the term
2413
2425
  * "FOB" for this field, which stands for "freight on board". This field is
2414
2426
  * informational and has no accounting implications.
2427
+ *
2428
+ * Maximum length: 13 characters.
2415
2429
  */
2416
2430
  shipmentOrigin?: string;
2417
2431
 
@@ -2541,6 +2555,9 @@ export namespace PurchaseOrderUpdateParams {
2541
2555
  * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
2542
2556
  * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
2543
2557
  * `1` and the suggested `rate`. This field cannot be cleared.
2558
+ *
2559
+ * Decimal string format: exactly 2 decimal places when cents are included and up
2560
+ * to 13 digits before the decimal point (for example, "123.45").
2544
2561
  */
2545
2562
  amount?: string;
2546
2563
 
@@ -2638,6 +2655,9 @@ export namespace PurchaseOrderUpdateParams {
2638
2655
  * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
2639
2656
  * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
2640
2657
  * decimal string. This field cannot be cleared.
2658
+ *
2659
+ * Decimal string format: up to 5 decimal places and up to 10 digits before the
2660
+ * decimal point (for example, "123.45").
2641
2661
  */
2642
2662
  rate?: string;
2643
2663
 
@@ -2690,6 +2710,9 @@ export namespace PurchaseOrderUpdateParams {
2690
2710
  * will use them to calculate `amount`. If `amount`, `rate`, and `quantity` are all
2691
2711
  * unspecified, then QuickBooks will calculate `amount` based on a `quantity` of
2692
2712
  * `1` and the suggested `rate`. This field cannot be cleared.
2713
+ *
2714
+ * Decimal string format: exactly 2 decimal places when cents are included and up
2715
+ * to 13 digits before the decimal point (for example, "123.45").
2693
2716
  */
2694
2717
  amount?: string;
2695
2718
 
@@ -2787,6 +2810,9 @@ export namespace PurchaseOrderUpdateParams {
2787
2810
  * specified, `rate` will be ignored. If both `quantity` and `amount` are specified
2788
2811
  * but not `rate`, QuickBooks will use them to calculate `rate`. Represented as a
2789
2812
  * decimal string. This field cannot be cleared.
2813
+ *
2814
+ * Decimal string format: up to 5 decimal places and up to 10 digits before the
2815
+ * decimal point (for example, "123.45").
2790
2816
  */
2791
2817
  rate?: string;
2792
2818
 
@@ -445,6 +445,21 @@ import {
445
445
  ReceivePayments,
446
446
  ReceivePaymentsCursorPage,
447
447
  } from './receive-payments';
448
+ import * as ReportsAPI from './reports';
449
+ import {
450
+ Report,
451
+ ReportAgingParams,
452
+ ReportBudgetSummaryParams,
453
+ ReportCustomDetailParams,
454
+ ReportCustomSummaryParams,
455
+ ReportGeneralDetailParams,
456
+ ReportGeneralSummaryParams,
457
+ ReportJobParams,
458
+ ReportPayrollDetailParams,
459
+ ReportPayrollSummaryParams,
460
+ ReportTimeParams,
461
+ Reports,
462
+ } from './reports';
448
463
  import * as SalesOrdersAPI from './sales-orders';
449
464
  import {
450
465
  SalesOrder,
@@ -673,6 +688,7 @@ export class Qbd extends APIResource {
673
688
  priceLevels: PriceLevelsAPI.PriceLevels = new PriceLevelsAPI.PriceLevels(this._client);
674
689
  purchaseOrders: PurchaseOrdersAPI.PurchaseOrders = new PurchaseOrdersAPI.PurchaseOrders(this._client);
675
690
  receivePayments: ReceivePaymentsAPI.ReceivePayments = new ReceivePaymentsAPI.ReceivePayments(this._client);
691
+ reports: ReportsAPI.Reports = new ReportsAPI.Reports(this._client);
676
692
  salesOrders: SalesOrdersAPI.SalesOrders = new SalesOrdersAPI.SalesOrders(this._client);
677
693
  salesReceipts: SalesReceiptsAPI.SalesReceipts = new SalesReceiptsAPI.SalesReceipts(this._client);
678
694
  salesRepresentatives: SalesRepresentativesAPI.SalesRepresentatives =
@@ -778,6 +794,7 @@ Qbd.PayrollWageItems = PayrollWageItems;
778
794
  Qbd.PriceLevels = PriceLevels;
779
795
  Qbd.PurchaseOrders = PurchaseOrders;
780
796
  Qbd.ReceivePayments = ReceivePayments;
797
+ Qbd.Reports = Reports;
781
798
  Qbd.SalesOrders = SalesOrders;
782
799
  Qbd.SalesReceipts = SalesReceipts;
783
800
  Qbd.SalesRepresentatives = SalesRepresentatives;
@@ -1249,6 +1266,21 @@ export declare namespace Qbd {
1249
1266
  type ReceivePaymentDeleteParams as ReceivePaymentDeleteParams,
1250
1267
  };
1251
1268
 
1269
+ export {
1270
+ Reports as Reports,
1271
+ type Report as Report,
1272
+ type ReportAgingParams as ReportAgingParams,
1273
+ type ReportBudgetSummaryParams as ReportBudgetSummaryParams,
1274
+ type ReportCustomDetailParams as ReportCustomDetailParams,
1275
+ type ReportCustomSummaryParams as ReportCustomSummaryParams,
1276
+ type ReportGeneralDetailParams as ReportGeneralDetailParams,
1277
+ type ReportGeneralSummaryParams as ReportGeneralSummaryParams,
1278
+ type ReportJobParams as ReportJobParams,
1279
+ type ReportPayrollDetailParams as ReportPayrollDetailParams,
1280
+ type ReportPayrollSummaryParams as ReportPayrollSummaryParams,
1281
+ type ReportTimeParams as ReportTimeParams,
1282
+ };
1283
+
1252
1284
  export {
1253
1285
  SalesOrders as SalesOrders,
1254
1286
  type SalesOrder as SalesOrder,
@@ -9,10 +9,10 @@ import { path } from '../../internal/utils/path';
9
9
 
10
10
  export class ReceivePayments extends APIResource {
11
11
  /**
12
- * Records a customer payment and optionally applies it to specific invoices or
13
- * credits. All allocations must target the same accounts receivable account as
14
- * those invoices, and each one has to include a payment amount, discount, or
15
- * credit so QuickBooks can close out the balance.
12
+ * Records a customer payment and optionally applies it to specific invoices,
13
+ * discounts, or credits. All allocations must target the same accounts receivable
14
+ * account as those invoices, and each one has to include a payment amount,
15
+ * discount, or credit so QuickBooks can close out the balance.
16
16
  *
17
17
  * @example
18
18
  * ```ts
@@ -841,6 +841,9 @@ export interface ReceivePaymentCreateParams {
841
841
  *
842
842
  * **NOTE**: The sum of the `paymentAmount` amounts in the `applyToTransactions`
843
843
  * array cannot exceed the `totalAmount`, or you will receive an error.
844
+ *
845
+ * Decimal string format: exactly 2 decimal places when cents are included and up
846
+ * to 13 digits before the decimal point (for example, "123.45").
844
847
  */
845
848
  totalAmount: string;
846
849
 
@@ -948,6 +951,8 @@ export interface ReceivePaymentCreateParams {
948
951
  * This value is not required to be unique and can be arbitrarily changed by the
949
952
  * QuickBooks user. When left blank in this create request, this field will be left
950
953
  * blank in QuickBooks (i.e., it does _not_ auto-increment).
954
+ *
955
+ * Maximum length: 20 characters.
951
956
  */
952
957
  refNumber?: string;
953
958
  }
@@ -960,9 +965,9 @@ export namespace ReceivePaymentCreateParams {
960
965
  transactionId: string;
961
966
 
962
967
  /**
963
- * Credit memos to apply to this receivable transaction, reducing its balance. This
968
+ * Credits to apply to this receivable transaction, reducing its balance. This
964
969
  * creates a link between this receivable transaction and the specified credit
965
- * memos.
970
+ * transactions.
966
971
  *
967
972
  * **IMPORTANT**: By default, QuickBooks will not return any information about the
968
973
  * linked transactions in this endpoint's response even when this request is
@@ -981,6 +986,9 @@ export namespace ReceivePaymentCreateParams {
981
986
  /**
982
987
  * The monetary amount by which to reduce the receivable transaction's receivable
983
988
  * amount, represented as a decimal string.
989
+ *
990
+ * Decimal string format: exactly 2 decimal places when cents are included and up
991
+ * to 13 digits before the decimal point (for example, "123.45").
984
992
  */
985
993
  discountAmount?: string;
986
994
 
@@ -992,6 +1000,9 @@ export namespace ReceivePaymentCreateParams {
992
1000
  /**
993
1001
  * The monetary amount to apply to the receivable transaction, represented as a
994
1002
  * decimal string.
1003
+ *
1004
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1005
+ * to 13 digits before the decimal point (for example, "123.45").
995
1006
  */
996
1007
  paymentAmount?: string;
997
1008
  }
@@ -1001,12 +1012,15 @@ export namespace ReceivePaymentCreateParams {
1001
1012
  /**
1002
1013
  * The amount of credit applied to this transaction. This could include customer
1003
1014
  * deposits, payments, or credits. Represented as a decimal string.
1015
+ *
1016
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1017
+ * to 13 digits before the decimal point (for example, "123.45").
1004
1018
  */
1005
1019
  appliedAmount: string;
1006
1020
 
1007
1021
  /**
1008
- * The unique identifier of the credit transaction (credit memo or vendor credit)
1009
- * to apply to this transaction.
1022
+ * The unique identifier of the credit transaction to apply to this transaction,
1023
+ * such as a credit memo, vendor credit, or journal-entry credit.
1010
1024
  */
1011
1025
  creditTransactionId: string;
1012
1026
 
@@ -1273,6 +1287,8 @@ export interface ReceivePaymentUpdateParams {
1273
1287
  * receive-payment, which can be used to identify the transaction in QuickBooks.
1274
1288
  * This value is not required to be unique and can be arbitrarily changed by the
1275
1289
  * QuickBooks user.
1290
+ *
1291
+ * Maximum length: 20 characters.
1276
1292
  */
1277
1293
  refNumber?: string;
1278
1294
 
@@ -1282,6 +1298,9 @@ export interface ReceivePaymentUpdateParams {
1282
1298
  *
1283
1299
  * **NOTE**: The sum of the `paymentAmount` amounts in the `applyToTransactions`
1284
1300
  * array cannot exceed the `totalAmount`, or you will receive an error.
1301
+ *
1302
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1303
+ * to 13 digits before the decimal point (for example, "123.45").
1285
1304
  */
1286
1305
  totalAmount?: string;
1287
1306
 
@@ -1299,9 +1318,9 @@ export namespace ReceivePaymentUpdateParams {
1299
1318
  transactionId: string;
1300
1319
 
1301
1320
  /**
1302
- * Credit memos to apply to this receivable transaction, reducing its balance. This
1321
+ * Credits to apply to this receivable transaction, reducing its balance. This
1303
1322
  * creates a link between this receivable transaction and the specified credit
1304
- * memos.
1323
+ * transactions.
1305
1324
  *
1306
1325
  * **IMPORTANT**: By default, QuickBooks will not return any information about the
1307
1326
  * linked transactions in this endpoint's response even when this request is
@@ -1320,6 +1339,9 @@ export namespace ReceivePaymentUpdateParams {
1320
1339
  /**
1321
1340
  * The monetary amount by which to reduce the receivable transaction's receivable
1322
1341
  * amount, represented as a decimal string.
1342
+ *
1343
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1344
+ * to 13 digits before the decimal point (for example, "123.45").
1323
1345
  */
1324
1346
  discountAmount?: string;
1325
1347
 
@@ -1331,6 +1353,9 @@ export namespace ReceivePaymentUpdateParams {
1331
1353
  /**
1332
1354
  * The monetary amount to apply to the receivable transaction, represented as a
1333
1355
  * decimal string.
1356
+ *
1357
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1358
+ * to 13 digits before the decimal point (for example, "123.45").
1334
1359
  */
1335
1360
  paymentAmount?: string;
1336
1361
  }
@@ -1340,12 +1365,15 @@ export namespace ReceivePaymentUpdateParams {
1340
1365
  /**
1341
1366
  * The amount of credit applied to this transaction. This could include customer
1342
1367
  * deposits, payments, or credits. Represented as a decimal string.
1368
+ *
1369
+ * Decimal string format: exactly 2 decimal places when cents are included and up
1370
+ * to 13 digits before the decimal point (for example, "123.45").
1343
1371
  */
1344
1372
  appliedAmount: string;
1345
1373
 
1346
1374
  /**
1347
- * The unique identifier of the credit transaction (credit memo or vendor credit)
1348
- * to apply to this transaction.
1375
+ * The unique identifier of the credit transaction to apply to this transaction,
1376
+ * such as a credit memo, vendor credit, or journal-entry credit.
1349
1377
  */
1350
1378
  creditTransactionId: string;
1351
1379