QuickbooksQueryService constructor
QuickbooksQueryService({})
QuickbooksQueryService 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
QuickbooksQueryService(
{required String postEndpoint,
required String baseQuery,
String? baseConditions,
bool? isProduction}) {
_baseQuery = baseQuery;
_baseConditions = baseConditions;
_postEndpoint = postEndpoint;
_isProduction = isProduction ?? QuickbooksEnvironment.isProduction;
_baseEndpoint = _isProduction ? _productionString : _sandboxString;
}