QuickbooksProductsService constructor

QuickbooksProductsService({
  1. bool? isProduction,
  2. String postEndpoint = 'item',
  3. String baseQuery = "SELECT * FROM Item",
  4. String? baseConditions = "Type IN ('Inventory', 'Service', 'NonInventory')",
})

QuickbooksProductsService constructor.

postEndpoint Endpoint used to make requests that are not sql queries

baseQuery The base query to get all the wanted items

baseConditions The base conditions to get the wanted items. DO NOT INCLUDE 'WHERE'

isProduction Specifies if the service is in production or in sandbox. This will define the base endpoint url used by the service. If not given, takes the environement value QUICKBOOKS_IS_PRODUCTION or is true by default.

Implementation

QuickbooksProductsService(
    {super.isProduction,
    super.postEndpoint = 'item',
    super.baseQuery = "SELECT * FROM Item",
    super.baseConditions =
        "Type IN ('Inventory', 'Service', 'NonInventory')"});