conductor-node 9.6.1 → 9.7.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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "9.6.1",
3
+ "version": "9.7.0",
4
4
  "description": "Easily integrate with the entire QuickBooks Desktop API with fully-typed async TypeScript",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",
@@ -551,6 +551,55 @@ export default class QbdIntegration extends BaseIntegration {
551
551
  */
552
552
  query: (integrationConnectionId: string, params: QbdTypes.CreditCardCreditQueryRq) => Promise<NonNullable<QbdTypes.CreditCardCreditQueryRs["CreditCardCreditRet"]>>;
553
553
  };
554
+ creditMemo: {
555
+ /**
556
+ * Adds a credit memo. A credit memo specifies an amount that you owe your
557
+ * customer for some reason, such as overpayment against an invoice,
558
+ * returned merchandise, or for some pre-payment. It reduces a customer’s
559
+ * outstanding balance. The `CreditMemo` doesn’t actually get applied until
560
+ * is referenced in a `ReceivePayment` transaction inside the `SetCredit`
561
+ * aggregate.
562
+ *
563
+ * The `CreditMemo` should not be confused with a `VendorCredit`, which
564
+ * specifies an amount that a vendor owes you.
565
+ *
566
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoAdd
567
+ */
568
+ add: (integrationConnectionId: string, params: QbdTypes.CreditMemoAddRq["CreditMemoAdd"]) => Promise<NonNullable<QbdTypes.CreditMemoAddRs["CreditMemoRet"]>>;
569
+ /**
570
+ * Modifies an existing credit memo.
571
+ *
572
+ * Some fields in a CreditMemoMod request cannot be cleared. If any of the
573
+ * following fields is included in a credit-memo modify request, it must
574
+ * contain a value:
575
+ * - `CustomerRef`
576
+ * - `ARAccountRef`
577
+ * - `TemplateRef`
578
+ * - `TxnDate`
579
+ * - `IsPending`
580
+ * - `DueDate`
581
+ * - `ShipDate`
582
+ * - `ItemSalesTaxRef`
583
+ * - `IsToBePrinted`
584
+ *
585
+ * Within `CreditMemoLineMod` or `CreditMemoLineGroupMod`:
586
+ * - `ItemRef`
587
+ * - `Quantity`
588
+ * - `Rate`
589
+ * - `Amount`
590
+ * - `SalesTaxCodeRef`
591
+ * - `OverrideItemAccountRef`
592
+ *
593
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoMod
594
+ */
595
+ mod: (integrationConnectionId: string, params: QbdTypes.CreditMemoModRq["CreditMemoMod"]) => Promise<NonNullable<QbdTypes.CreditMemoModRs["CreditMemoRet"]>>;
596
+ /**
597
+ * Queries for the specified credit memo or set of credit memos.
598
+ *
599
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoQuery
600
+ */
601
+ query: (integrationConnectionId: string, params: QbdTypes.CreditMemoQueryRq) => Promise<NonNullable<QbdTypes.CreditMemoQueryRs["CreditMemoRet"]>>;
602
+ };
554
603
  customer: {
555
604
  /**
556
605
  * The customer list includes information about the QuickBooks user’s
@@ -1832,6 +1881,51 @@ export default class QbdIntegration extends BaseIntegration {
1832
1881
  */
1833
1882
  time: (integrationConnectionId: string, params: QbdTypes.TimeReportQueryRq) => Promise<NonNullable<QbdTypes.TimeReportQueryRs["ReportRet"]>>;
1834
1883
  };
1884
+ salesOrder: {
1885
+ /**
1886
+ * Adds a sales order.
1887
+ *
1888
+ * A sales order tracks inventory that is on back order for a customer. In
1889
+ * QuickBooks, sales orders and invoices use similar fields, and a sales
1890
+ * order can be “converted” into an invoice (by linking the invoice to the
1891
+ * sales order) once the inventory is in stock.
1892
+ *
1893
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderAdd
1894
+ */
1895
+ add: (integrationConnectionId: string, params: QbdTypes.SalesOrderAddRq["SalesOrderAdd"]) => Promise<NonNullable<QbdTypes.SalesOrderAddRs["SalesOrderRet"]>>;
1896
+ /**
1897
+ * Modifies a sales order.
1898
+ *
1899
+ * Some fields in a `SalesOrderMod` request cannot be cleared. If any of the
1900
+ * following fields is included in a sales-order modify request, it must
1901
+ * contain a value:
1902
+ * - `CustomerRef`
1903
+ * - `TemplateRef`
1904
+ * - `TxnDate`
1905
+ * - `DueDate`
1906
+ * - `ShipDate`
1907
+ * - `ItemSalesTaxRef`
1908
+ * - `IsManuallyClosed`
1909
+ * - `IsToBePrinted`
1910
+ *
1911
+ * Within `SalesOrderLineMod` or `SalesOrderLineGroupMod`:
1912
+ * - `ItemRef`
1913
+ * - `Quantity`
1914
+ * - `Rate`
1915
+ * - `Amount`
1916
+ * - `SalesTaxCodeRef`
1917
+ * - `IsManuallyClosed`
1918
+ *
1919
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderMod
1920
+ */
1921
+ mod: (integrationConnectionId: string, params: QbdTypes.SalesOrderModRq["SalesOrderMod"]) => Promise<NonNullable<QbdTypes.SalesOrderModRs["SalesOrderRet"]>>;
1922
+ /**
1923
+ * Queries for the specified sales order or set of sales orders.
1924
+ *
1925
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderQuery
1926
+ */
1927
+ query: (integrationConnectionId: string, params: QbdTypes.SalesOrderQueryRq) => Promise<NonNullable<QbdTypes.SalesOrderQueryRs["SalesOrderRet"]>>;
1928
+ };
1835
1929
  salesReceipt: {
1836
1930
  /**
1837
1931
  * Adds a sales receipt to QuickBooks.
@@ -1902,6 +1996,50 @@ export default class QbdIntegration extends BaseIntegration {
1902
1996
  */
1903
1997
  query: (integrationConnectionId: string, params: QbdTypes.SalesRepQueryRq) => Promise<NonNullable<QbdTypes.SalesRepQueryRs["SalesRepRet"]>>;
1904
1998
  };
1999
+ salesTaxCode: {
2000
+ /**
2001
+ * Adds a sales tax code.
2002
+ *
2003
+ * Each item on a sales form is assigned a sales-tax code that indicates
2004
+ * whether the item is taxable or non-taxable, and why. Two general codes,
2005
+ * which can be modified but not deleted, appear on the sales-tax code list
2006
+ * by default:
2007
+ * - Non-taxable `(Name = NON; Desc = Non-Taxable; IsTaxable = false)`
2008
+ * - Taxable `(Name = TAX; Desc = Taxable; IsTaxable = true)`
2009
+ *
2010
+ * A sales-tax code can be deleted only if it is no longer associated with
2011
+ * any customer, item, or transaction. If the “Do You Charge Sales Tax?”
2012
+ * preference within QuickBooks is set to No, QuickBooks will assign the
2013
+ * default non-taxable sales-tax code to all sales.
2014
+ *
2015
+ * A `SalesTaxCodeRef` aggregate refers to a sales-tax code on the list. In a
2016
+ * request, if a `SalesTaxCodeRef` aggregate includes both `FullName` and
2017
+ * `ListID`, `FullName` will be ignored. In a Customer message, `SalesTaxCodeRef`
2018
+ * refers to the sales-tax code that will be used for items related to this
2019
+ * customer. In an ItemInventory message, `SalesTaxCodeRef` refers to the type
2020
+ * of sales tax that will be charged for this item, if it is a taxable item
2021
+ * and if sales tax is set up within QuickBooks.
2022
+ *
2023
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeAdd
2024
+ */
2025
+ add: (integrationConnectionId: string, params: QbdTypes.SalesTaxCodeAddRq["SalesTaxCodeAdd"]) => Promise<NonNullable<QbdTypes.SalesTaxCodeAddRs["SalesTaxCodeRet"]>>;
2026
+ /**
2027
+ * Modifies the specified sales tax code, subject to a few limitations. You
2028
+ * cannot use it to change a tax code’s `IsTaxable` property after the code
2029
+ * has been used in any transaction. For the default QuickBooks taxable
2030
+ * (Tax) and exempt (Non) tax codes, you can’t use this request to change
2031
+ * the `IsTaxable` property at all, even before any transactions.
2032
+ *
2033
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeMod
2034
+ */
2035
+ mod: (integrationConnectionId: string, params: QbdTypes.SalesTaxCodeModRq["SalesTaxCodeMod"]) => Promise<NonNullable<QbdTypes.SalesTaxCodeModRs["SalesTaxCodeRet"]>>;
2036
+ /**
2037
+ * Queries for the specified sales tax code or set of codes.
2038
+ *
2039
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeQuery
2040
+ */
2041
+ query: (integrationConnectionId: string, params: QbdTypes.SalesTaxCodeQueryRq) => Promise<NonNullable<QbdTypes.SalesTaxCodeQueryRs["SalesTaxCodeRet"]>>;
2042
+ };
1905
2043
  timeTracking: {
1906
2044
  /**
1907
2045
  * The time-tracking transactions that are returned in this query include
@@ -556,6 +556,55 @@ class QbdIntegration extends BaseIntegration_1.default {
556
556
  */
557
557
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditCardCreditQueryRq: params }, "CreditCardCreditQueryRs", "CreditCardCreditRet"),
558
558
  };
559
+ creditMemo = {
560
+ /**
561
+ * Adds a credit memo. A credit memo specifies an amount that you owe your
562
+ * customer for some reason, such as overpayment against an invoice,
563
+ * returned merchandise, or for some pre-payment. It reduces a customer’s
564
+ * outstanding balance. The `CreditMemo` doesn’t actually get applied until
565
+ * is referenced in a `ReceivePayment` transaction inside the `SetCredit`
566
+ * aggregate.
567
+ *
568
+ * The `CreditMemo` should not be confused with a `VendorCredit`, which
569
+ * specifies an amount that a vendor owes you.
570
+ *
571
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoAdd
572
+ */
573
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditMemoAddRq: { CreditMemoAdd: params } }, "CreditMemoAddRs", "CreditMemoRet"),
574
+ /**
575
+ * Modifies an existing credit memo.
576
+ *
577
+ * Some fields in a CreditMemoMod request cannot be cleared. If any of the
578
+ * following fields is included in a credit-memo modify request, it must
579
+ * contain a value:
580
+ * - `CustomerRef`
581
+ * - `ARAccountRef`
582
+ * - `TemplateRef`
583
+ * - `TxnDate`
584
+ * - `IsPending`
585
+ * - `DueDate`
586
+ * - `ShipDate`
587
+ * - `ItemSalesTaxRef`
588
+ * - `IsToBePrinted`
589
+ *
590
+ * Within `CreditMemoLineMod` or `CreditMemoLineGroupMod`:
591
+ * - `ItemRef`
592
+ * - `Quantity`
593
+ * - `Rate`
594
+ * - `Amount`
595
+ * - `SalesTaxCodeRef`
596
+ * - `OverrideItemAccountRef`
597
+ *
598
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoMod
599
+ */
600
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditMemoModRq: { CreditMemoMod: params } }, "CreditMemoModRs", "CreditMemoRet"),
601
+ /**
602
+ * Queries for the specified credit memo or set of credit memos.
603
+ *
604
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CreditMemoQuery
605
+ */
606
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditMemoQueryRq: params }, "CreditMemoQueryRs", "CreditMemoRet"),
607
+ };
559
608
  customer = {
560
609
  /**
561
610
  * The customer list includes information about the QuickBooks user’s
@@ -1837,6 +1886,51 @@ class QbdIntegration extends BaseIntegration_1.default {
1837
1886
  */
1838
1887
  time: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { TimeReportQueryRq: params }, "TimeReportQueryRs", "ReportRet"),
1839
1888
  };
1889
+ salesOrder = {
1890
+ /**
1891
+ * Adds a sales order.
1892
+ *
1893
+ * A sales order tracks inventory that is on back order for a customer. In
1894
+ * QuickBooks, sales orders and invoices use similar fields, and a sales
1895
+ * order can be “converted” into an invoice (by linking the invoice to the
1896
+ * sales order) once the inventory is in stock.
1897
+ *
1898
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderAdd
1899
+ */
1900
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesOrderAddRq: { SalesOrderAdd: params } }, "SalesOrderAddRs", "SalesOrderRet"),
1901
+ /**
1902
+ * Modifies a sales order.
1903
+ *
1904
+ * Some fields in a `SalesOrderMod` request cannot be cleared. If any of the
1905
+ * following fields is included in a sales-order modify request, it must
1906
+ * contain a value:
1907
+ * - `CustomerRef`
1908
+ * - `TemplateRef`
1909
+ * - `TxnDate`
1910
+ * - `DueDate`
1911
+ * - `ShipDate`
1912
+ * - `ItemSalesTaxRef`
1913
+ * - `IsManuallyClosed`
1914
+ * - `IsToBePrinted`
1915
+ *
1916
+ * Within `SalesOrderLineMod` or `SalesOrderLineGroupMod`:
1917
+ * - `ItemRef`
1918
+ * - `Quantity`
1919
+ * - `Rate`
1920
+ * - `Amount`
1921
+ * - `SalesTaxCodeRef`
1922
+ * - `IsManuallyClosed`
1923
+ *
1924
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderMod
1925
+ */
1926
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesOrderModRq: { SalesOrderMod: params } }, "SalesOrderModRs", "SalesOrderRet"),
1927
+ /**
1928
+ * Queries for the specified sales order or set of sales orders.
1929
+ *
1930
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesOrderQuery
1931
+ */
1932
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesOrderQueryRq: params }, "SalesOrderQueryRs", "SalesOrderRet"),
1933
+ };
1840
1934
  salesReceipt = {
1841
1935
  /**
1842
1936
  * Adds a sales receipt to QuickBooks.
@@ -1907,6 +2001,50 @@ class QbdIntegration extends BaseIntegration_1.default {
1907
2001
  */
1908
2002
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesRepQueryRq: params }, "SalesRepQueryRs", "SalesRepRet"),
1909
2003
  };
2004
+ salesTaxCode = {
2005
+ /**
2006
+ * Adds a sales tax code.
2007
+ *
2008
+ * Each item on a sales form is assigned a sales-tax code that indicates
2009
+ * whether the item is taxable or non-taxable, and why. Two general codes,
2010
+ * which can be modified but not deleted, appear on the sales-tax code list
2011
+ * by default:
2012
+ * - Non-taxable `(Name = NON; Desc = Non-Taxable; IsTaxable = false)`
2013
+ * - Taxable `(Name = TAX; Desc = Taxable; IsTaxable = true)`
2014
+ *
2015
+ * A sales-tax code can be deleted only if it is no longer associated with
2016
+ * any customer, item, or transaction. If the “Do You Charge Sales Tax?”
2017
+ * preference within QuickBooks is set to No, QuickBooks will assign the
2018
+ * default non-taxable sales-tax code to all sales.
2019
+ *
2020
+ * A `SalesTaxCodeRef` aggregate refers to a sales-tax code on the list. In a
2021
+ * request, if a `SalesTaxCodeRef` aggregate includes both `FullName` and
2022
+ * `ListID`, `FullName` will be ignored. In a Customer message, `SalesTaxCodeRef`
2023
+ * refers to the sales-tax code that will be used for items related to this
2024
+ * customer. In an ItemInventory message, `SalesTaxCodeRef` refers to the type
2025
+ * of sales tax that will be charged for this item, if it is a taxable item
2026
+ * and if sales tax is set up within QuickBooks.
2027
+ *
2028
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeAdd
2029
+ */
2030
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxCodeAddRq: { SalesTaxCodeAdd: params } }, "SalesTaxCodeAddRs", "SalesTaxCodeRet"),
2031
+ /**
2032
+ * Modifies the specified sales tax code, subject to a few limitations. You
2033
+ * cannot use it to change a tax code’s `IsTaxable` property after the code
2034
+ * has been used in any transaction. For the default QuickBooks taxable
2035
+ * (Tax) and exempt (Non) tax codes, you can’t use this request to change
2036
+ * the `IsTaxable` property at all, even before any transactions.
2037
+ *
2038
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeMod
2039
+ */
2040
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxCodeModRq: { SalesTaxCodeMod: params } }, "SalesTaxCodeModRs", "SalesTaxCodeRet"),
2041
+ /**
2042
+ * Queries for the specified sales tax code or set of codes.
2043
+ *
2044
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxCodeQuery
2045
+ */
2046
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxCodeQueryRq: params }, "SalesTaxCodeQueryRs", "SalesTaxCodeRet"),
2047
+ };
1910
2048
  timeTracking = {
1911
2049
  /**
1912
2050
  * The time-tracking transactions that are returned in this query include