conductor-node 9.2.1 → 9.4.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.
@@ -117,9 +117,6 @@ class QbdIntegration extends BaseIntegration_1.default {
117
117
  * - `BillableStatus`
118
118
  * - `OverrideItemAccountRef`
119
119
  *
120
- * (For more details about what it means for a field to be clearable or not
121
- * clearable, see the QB SDK Programmer’s Guide.)
122
- *
123
120
  * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/BillMod
124
121
  */
125
122
  mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { BillModRq: { BillMod: params } }, "BillModRs", "BillRet"),
@@ -288,6 +285,35 @@ class QbdIntegration extends BaseIntegration_1.default {
288
285
  */
289
286
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { BillPaymentCheckQueryRq: params }, "BillPaymentCheckQueryRs", "BillPaymentCheckRet"),
290
287
  };
288
+ billingRate = {
289
+ /**
290
+ * Adds a billing rate to the billing rate level list.
291
+ *
292
+ * After a billing rate is created, it can be assigned to an employee or
293
+ * vendor (`VendorAdd`/`VendorMod`, `EmployeeAdd`/`EmployeeMod`) via the
294
+ * `BillingRateRef` element in the appropriate request. Then, once the
295
+ * billing rate is assigned to an employee or vendor, if you use that
296
+ * employee or vendor in a time transaction (`TimeTrackingAdd`), then the
297
+ * billing rate will override the rate specified by the service item used in
298
+ * the time transaction.
299
+ *
300
+ * Use `FixedBillingRate` to override all service items with a fixed rate.
301
+ * Use `BillingRatePerItem` to override a specific service item. If you want
302
+ * to specify more than one service item, you’ll need to use one
303
+ * `BillingRatePerItem` aggregate for each service item.
304
+ *
305
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/BillingRateAdd
306
+ */
307
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { BillingRateAddRq: { BillingRateAdd: params } }, "BillingRateAddRs", "BillingRateRet"),
308
+ /**
309
+ * Returns all billing rates, or billing rates filtered by modified date, or
310
+ * filtered by billing rate name, or filtered by the service item referenced
311
+ * in the billing rate.
312
+ *
313
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/BillingRateQuery
314
+ */
315
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { BillingRateQueryRq: params }, "BillingRateQueryRs", "BillingRateRet"),
316
+ };
291
317
  charge = {
292
318
  /**
293
319
  * Adds a customer charge. A `Charge` contains information about a statement
@@ -405,6 +431,101 @@ class QbdIntegration extends BaseIntegration_1.default {
405
431
  */
406
432
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CompanyQueryRq: params }, "CompanyQueryRs", "CompanyRet"),
407
433
  };
434
+ creditCardCharge = {
435
+ /**
436
+ * A credit card charge is a general charge incurred when a QuickBooks user
437
+ * makes a purchase using a credit card. Credit card charges for purchases
438
+ * can be tracked as expenses (in expense accounts) or as items.
439
+ *
440
+ * The current balance on the credit card becomes part of the accounts
441
+ * payable balance. If a balance is carried on the credit card across time,
442
+ * finance or interest charges can be tracked in QuickBooks.
443
+ *
444
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardChargeAdd
445
+ */
446
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardChargeAddRq: { CreditCardChargeAdd: params } }, "CreditCardChargeAddRs", "CreditCardChargeRet"),
447
+ /**
448
+ * The Credit Card charge mod request allows you to modify an existing
449
+ * credit card charge transaction using the SDK. You can modify most of the
450
+ * fields that can be modified in the QuickBooks UI. That is, this request
451
+ * can be used to modify Purchased from, date, credit card and modify lines
452
+ * from the item table and the expense table.
453
+ *
454
+ * The following list describes what you can and cannot due with this
455
+ * request:
456
+ * - You can modify or clear the following fields: Ref Num and Memo
457
+ * - You can modify (not clear) transaction date
458
+ * - You can change the credit card account to support the scenario where
459
+ * the credit card transaction was created and posted to the wrong credit
460
+ * card account (impacts your accounting).
461
+ * - You can modify the Purchase from field (Payee Name) to change the Payee
462
+ * Name on the credit card transaction to a different name (employee, job,
463
+ * customer, vendor, other name). This field cannot be cleared since it is
464
+ * required by QB business logic
465
+ * - You cannot modify the amount due directly! (However the amount due will
466
+ * change when you modify the transaction lines.)
467
+ * - You cannot change a Charge to a Credit.
468
+ * - You cannot Void the charge. Use TxnVoid instead.
469
+ * - You can clear the entire expense table or the entire item table, but
470
+ * you cannot clear both tables at the same time.
471
+ *
472
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardChargeMod
473
+ */
474
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardChargeModRq: { CreditCardChargeMod: params } }, "CreditCardChargeModRs", "CreditCardChargeRet"),
475
+ /**
476
+ * Queries for the specified credit card charge or charges.
477
+ *
478
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardChargeQuery
479
+ */
480
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardChargeQueryRq: params }, "CreditCardChargeQueryRs", "CreditCardChargeRet"),
481
+ };
482
+ creditCardCredit = {
483
+ /**
484
+ * If a QuickBooks user returns merchandise and receives credit, the credit
485
+ * is entered in QuickBooks and assigned to the appropriate expense account.
486
+ * Typically, the assigned expense account reflects the same account,
487
+ * customer, and class that were assigned when the merchandise was first
488
+ * purchased. (The original purchase would be described by a
489
+ * `CreditCardCharge` message.)
490
+ *
491
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardCreditAdd
492
+ */
493
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardCreditAddRq: { CreditCardCreditAdd: params } }, "CreditCardCreditAddRs", "CreditCardCreditRet"),
494
+ /**
495
+ * The Credit Card credit mod request allows you to modify an existing
496
+ * credit card credit transaction using the SDK. You can modify most of the
497
+ * fields that can be modified in the QuickBooks UI. That is, this request
498
+ * can be used to modify Purchased from, date, credit card and modify lines
499
+ * from the item table and the expense table.
500
+ *
501
+ * The following list describes what you can and cannot due with this
502
+ * request:
503
+ * - You can modify or clear the following fields: Ref Num and Memo
504
+ * - You can modify (not clear) transaction date
505
+ * - You can change the credit card account to support the scenario where
506
+ * the credit card transaction was created and posted to the wrong credit
507
+ * card account (impacts your accounting).
508
+ * - You can modify the Purchase from field (Payee Name) to change the Payee
509
+ * Name on the credit card transaction to a different name (employee, job,
510
+ * customer, vendor, other name). This field cannot be cleared since it is
511
+ * required by QB business logic
512
+ * - You cannot modify the amount due directly! (However the amount due will
513
+ * change when you modify the transaction lines.)
514
+ * - You cannot change a Credit to a Charge.
515
+ * - You cannot Void the credit. Use TxnVoid instead.
516
+ * - You can clear the entire expense table or the entire item table, but
517
+ * you cannot clear both tables at the same time.
518
+ *
519
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardCreditMod
520
+ */
521
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardCreditModRq: { CreditCardCreditMod: params } }, "CreditCardCreditModRs", "CreditCardCreditRet"),
522
+ /**
523
+ * Queries for the specified credit or set of credits.
524
+ *
525
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditCardCreditQuery
526
+ */
527
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardCreditQueryRq: params }, "CreditCardCreditQueryRs", "CreditCardCreditRet"),
528
+ };
408
529
  customer = {
409
530
  /**
410
531
  * The customer list includes information about the QuickBooks user’s
@@ -449,6 +570,27 @@ class QbdIntegration extends BaseIntegration_1.default {
449
570
  */
450
571
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CustomerQueryRq: params }, "CustomerQueryRs", "CustomerRet"),
451
572
  };
573
+ customerType = {
574
+ /**
575
+ * Customer types allow business owners to categorize customers in ways that
576
+ * are meaningful for their businesses. For example, a customer type might
577
+ * indicate which industry a customer represents, or which part of the
578
+ * country a customer is in.
579
+ *
580
+ * A `CustomerTypeRef` aggregate refers to one of the types on the
581
+ * CustomerType list. In a request, if a `CustomerTypeRef` aggregate
582
+ * includes both `FullName` and `ListID`, `FullName` will be ignored.
583
+ *
584
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CustomerTypeAdd
585
+ */
586
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CustomerTypeAddRq: { CustomerTypeAdd: params } }, "CustomerTypeAddRs", "CustomerTypeRet"),
587
+ /**
588
+ * Queries for the specified customer type or set of types.
589
+ *
590
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CustomerTypeQuery
591
+ */
592
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CustomerTypeQueryRq: params }, "CustomerTypeQueryRs", "CustomerTypeRet"),
593
+ };
452
594
  deposit = {
453
595
  /**
454
596
  * After you receive payments from customers (see `ReceivePayment`), you can
@@ -539,6 +681,60 @@ class QbdIntegration extends BaseIntegration_1.default {
539
681
  */
540
682
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { EstimateQueryRq: params }, "EstimateQueryRs", "EstimateRet"),
541
683
  };
684
+ inventoryAdjustment = {
685
+ /**
686
+ * Adds an inventory adjustment.
687
+ *
688
+ * If the following conditions aren’t met, you will receive an error if you
689
+ * try to add an inventory adjustment through the SDK:
690
+ * - The QuickBooks company file must be open in single-user mode, unless
691
+ * you are using QuickBooks Enterprise edition, which allows multi-user
692
+ * mode for this request. (This is also true in the user interface: you
693
+ * cannot adjust the inventory while the company file is open in
694
+ * multi-user mode, again except for Enterprise.)
695
+ * - The inventory adjustment form must be closed in the QuickBooks user
696
+ * interface.
697
+ *
698
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventoryAdjustmentAdd
699
+ */
700
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventoryAdjustmentAddRq: { InventoryAdjustmentAdd: params } }, "InventoryAdjustmentAddRs", "InventoryAdjustmentRet"),
701
+ /**
702
+ * Modifies an inventory adjustment.
703
+ *
704
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventoryAdjustmentMod
705
+ */
706
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventoryAdjustmentModRq: { InventoryAdjustmentMod: params } }, "InventoryAdjustmentModRs", "InventoryAdjustmentRet"),
707
+ /**
708
+ * Queries for the specified inventory adjustment or set of inventory
709
+ * adjustments.
710
+ *
711
+ * You cannot query an inventory adjustment while the inventory adjustment
712
+ * form is open in the QuickBooks user interface.
713
+ *
714
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventoryAdjustmentQuery
715
+ */
716
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventoryAdjustmentQueryRq: params }, "InventoryAdjustmentQueryRs", "InventoryAdjustmentRet"),
717
+ };
718
+ inventorySite = {
719
+ /**
720
+ * Adds an inventory site.
721
+ *
722
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventorySiteAdd
723
+ */
724
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventorySiteAddRq: { InventorySiteAdd: params } }, "InventorySiteAddRs", "InventorySiteRet"),
725
+ /**
726
+ * Modifies an inventory site.
727
+ *
728
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventorySiteMod
729
+ */
730
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventorySiteModRq: { InventorySiteMod: params } }, "InventorySiteModRs", "InventorySiteRet"),
731
+ /**
732
+ * Queries for the specified inventory site or set of inventory sites.
733
+ *
734
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/InventorySiteQuery
735
+ */
736
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { InventorySiteQueryRq: params }, "InventorySiteQueryRs", "InventorySiteRet"),
737
+ };
542
738
  invoice = {
543
739
  /**
544
740
  * Adds an invoice.
@@ -633,8 +829,9 @@ class QbdIntegration extends BaseIntegration_1.default {
633
829
  */
634
830
  add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { ItemDiscountAddRq: { ItemDiscountAdd: params } }, "ItemDiscountAddRs", "ItemDiscountRet"),
635
831
  /**
636
- * Modifies a discount item. Starting with qbXML spec 7.0, you can modify
637
- * the account ref, using the AccountRef aggregate and the
832
+ * Modifies a discount item.
833
+ *
834
+ * You can modify the account ref, using the `AccountRef` aggregate and the
638
835
  * `ApplyAccountRefToExistingTxns` boolean. You need to use the
639
836
  * `ApplyAccountRefToExistingTxns` boolean because the QuickBooks UI
640
837
  * displays a prompt asking whether the change should apply to existing
@@ -1315,6 +1512,76 @@ class QbdIntegration extends BaseIntegration_1.default {
1315
1512
  */
1316
1513
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { PurchaseOrderQueryRq: params }, "PurchaseOrderQueryRs", "PurchaseOrderRet"),
1317
1514
  };
1515
+ salesReceipt = {
1516
+ /**
1517
+ * Adds a sales receipt to QuickBooks.
1518
+ *
1519
+ * Notice that access to sensitive data permissions are not required to use
1520
+ * this request. However, if the application does not have access to
1521
+ * sensitive data permission, then the response returned will not contain
1522
+ * certain sensitive data. For example, even if credit card data is supplied
1523
+ * in the `SalesReceiptAdd` request via the `CreditCardTxnInfo` aggregate,
1524
+ * the response will not contain the corresponding aggregate.
1525
+ *
1526
+ * Sales receipts are used to record point-of-sale payments. Sales receipts
1527
+ * include payments by cash, check, or credit card. Note: If full payment is
1528
+ * not received at the time of the sale, do not use a sales receipt.
1529
+ * Instead, use an invoice transaction and record the partial payment using
1530
+ * a payment item.
1531
+ *
1532
+ * IMPORTANT: In a `SalesReceiptAdd` or `ReceivePaymentAdd` request that
1533
+ * contains credit card transaction data supplied from QBMS transaction
1534
+ * responses, you must specify the payment method (using the
1535
+ * `PaymentMethodRef` aggregate).
1536
+ *
1537
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesReceiptAdd
1538
+ */
1539
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesReceiptAddRq: { SalesReceiptAdd: params } }, "SalesReceiptAddRs", "SalesReceiptRet"),
1540
+ /**
1541
+ * Modifies an existing Sales receipt.
1542
+ *
1543
+ * IMPORTANT: In a `SalesReceiptMod` request that contains credit card
1544
+ * transaction data supplied from QBMS transaction responses, you cannot
1545
+ * change the total amount recorded in the sale.
1546
+ *
1547
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesReceiptMod
1548
+ */
1549
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesReceiptModRq: { SalesReceiptMod: params } }, "SalesReceiptModRs", "SalesReceiptRet"),
1550
+ /**
1551
+ * Queries for the specified sales receipt or set of receipts.
1552
+ *
1553
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesReceiptQuery
1554
+ */
1555
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesReceiptQueryRq: params }, "SalesReceiptQueryRs", "SalesReceiptRet"),
1556
+ };
1557
+ salesRep = {
1558
+ /**
1559
+ * Adds a sales rep.
1560
+ *
1561
+ * The sales representative must be on the Employee, Vendor, or Other Names
1562
+ * list within QuickBooks. Sales representative’s names and initials appear
1563
+ * on the Rep drop-down list on QuickBooks sales forms.
1564
+ *
1565
+ * A `SalesRepRef` refers to a person on the `SalesRep` list. In a request,
1566
+ * if a `SalesRepRef` aggregate includes both `FullName` and `ListID`,
1567
+ * `FullName` will be ignored.
1568
+ *
1569
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesRepAdd
1570
+ */
1571
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesRepAddRq: { SalesRepAdd: params } }, "SalesRepAddRs", "SalesRepRet"),
1572
+ /**
1573
+ * Modifies a sales rep record.
1574
+ *
1575
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesRepMod
1576
+ */
1577
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesRepModRq: { SalesRepMod: params } }, "SalesRepModRs", "SalesRepRet"),
1578
+ /**
1579
+ * Queries for the specified sales rep or set of reps.
1580
+ *
1581
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesRepQuery
1582
+ */
1583
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesRepQueryRq: params }, "SalesRepQueryRs", "SalesRepRet"),
1584
+ };
1318
1585
  timeTracking = {
1319
1586
  /**
1320
1587
  * The time-tracking transactions that are returned in this query include
@@ -1394,6 +1661,108 @@ class QbdIntegration extends BaseIntegration_1.default {
1394
1661
  */
1395
1662
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorQueryRq: params }, "VendorQueryRs", "VendorRet"),
1396
1663
  };
1664
+ vendorCredit = {
1665
+ /**
1666
+ * Adds a vendor credit.
1667
+ *
1668
+ * A vendor credit is also known as a “bill credit”. That is, it is a credit
1669
+ * that a vendor owes you because you overpaid your bill, returned
1670
+ * merchandise, or for some other reason. The `VendorCredit` is referenced
1671
+ * in a BilPayment transaction, inside the `SetCredit` aggregate.
1672
+ *
1673
+ * A `VendorCredit` should not be confused with a Credit Memo, which is
1674
+ * something you owe your customer and which is referenced in a
1675
+ * `ReceivePayment` request.
1676
+ *
1677
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VendorCreditAdd
1678
+ */
1679
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorCreditAddRq: { VendorCreditAdd: params } }, "VendorCreditAddRs", "VendorCreditRet"),
1680
+ /**
1681
+ * Modifies a vendor credit. Be careful! If you modify ANY line item, you
1682
+ * must fully re-construct the line item table as you want it because if you
1683
+ * edit even a single line item, any line item that is NOT in the vendor
1684
+ * credit mod will be omitted. For full details, see the QB SDK Programmer’s
1685
+ * Guide chapter on modifying and deleting transactions and list objects.
1686
+ *
1687
+ * A vendor credit is also known as a “bill credit”. That is, it is a credit
1688
+ * that a vendor owes you because you overpaid your bill, returned
1689
+ * merchandise, or for some other reason. The `VendorCredit` is referenced
1690
+ * in a BilPayment transaction, inside the `SetCredit` aggregate.
1691
+ *
1692
+ * A `VendorCredit` should not be confused with a Credit Memo, which is
1693
+ * something you owe your customer and which is referenced in a
1694
+ * `ReceivePayment` request.
1695
+ *
1696
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VendorCreditMod
1697
+ */
1698
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorCreditModRq: { VendorCreditMod: params } }, "VendorCreditModRs", "VendorCreditRet"),
1699
+ /**
1700
+ * Queries for the specified vendor credit or set of credits.
1701
+ *
1702
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VendorCreditQuery
1703
+ */
1704
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorCreditQueryRq: params }, "VendorCreditQueryRs", "VendorCreditRet"),
1705
+ };
1706
+ vendorType = {
1707
+ /**
1708
+ * Adds a vendor type. A vendor type allows business owners to categorize
1709
+ * vendors in ways that are meaningful for their businesses. For example, a
1710
+ * vendor type might indicate which industry a vendor represents, or which
1711
+ * part of the country a vendor is in.
1712
+ *
1713
+ * A `VendorTypeRef` aggregate refers to one of the types on the
1714
+ * `VendorType` list. In a request, if a `VendorTypeRef` aggregate includes
1715
+ * both `FullName` and `ListID`, `FullName` will be ignored.
1716
+ *
1717
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VendorTypeAdd
1718
+ */
1719
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorTypeAddRq: { VendorTypeAdd: params } }, "VendorTypeAddRs", "VendorTypeRet"),
1720
+ /**
1721
+ * Queries for the specified vendor type or set of types.
1722
+ *
1723
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VendorTypeQuery
1724
+ */
1725
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VendorTypeQueryRq: params }, "VendorTypeQueryRs", "VendorTypeRet"),
1726
+ };
1727
+ workersCompCode = {
1728
+ /**
1729
+ * Adds a workers’ compensation code with one or more rate entries (each
1730
+ * rate entry has an effective date and a rate). You can assign effective
1731
+ * dates in the past, present or future. However, only one future date will
1732
+ * be used. If a future date exists and you write a new one (using the Mod
1733
+ * request) then the most recently written code wins; if you have multiple
1734
+ * future dates in the Add request, the last one wins.
1735
+ *
1736
+ * This request requires the company to be subscribed to Intuit Payroll
1737
+ * service. Also, you cannot currently assign codes to employees in the SDK;
1738
+ * you have to use the UI to do that.
1739
+ *
1740
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/WorkersCompCodeAdd
1741
+ */
1742
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { WorkersCompCodeAddRq: { WorkersCompCodeAdd: params } }, "WorkersCompCodeAddRs", "WorkersCompCodeRet"),
1743
+ /**
1744
+ * Modifies an existing workers’ compensation code. Notice that if a future
1745
+ * date exists and you write a new one (using the Mod request) then the most
1746
+ * recently written code wins.
1747
+ *
1748
+ * This request requires the company to be subscribed to Intuit Payroll
1749
+ * service. Also, you cannot currently assign codes to employees in the SDK;
1750
+ * you have to use the UI to do that.
1751
+ *
1752
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/WorkersCompCodeMod
1753
+ */
1754
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { WorkersCompCodeModRq: { WorkersCompCodeMod: params } }, "WorkersCompCodeModRs", "WorkersCompCodeRet"),
1755
+ /**
1756
+ * Queries for the workers’ compensation codes specified in the query
1757
+ * filter; you can filter by name, modified date, and effective date.
1758
+ *
1759
+ * This request requires the company to be subscribed to Intuit Payroll
1760
+ * service.
1761
+ *
1762
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/WorkersCompCodeQuery
1763
+ */
1764
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { WorkersCompCodeQueryRq: params }, "WorkersCompCodeQueryRs", "WorkersCompCodeRet"),
1765
+ };
1397
1766
  /**
1398
1767
  * Send any QBXML request to QuickBooks Desktop.
1399
1768
  *