QuickbooksQueryService class
Base class for services to call Quickbooks API
Constructors
- QuickbooksQueryService({required String postEndpoint, required String baseQuery, String? baseConditions, bool? isProduction})
- QuickbooksQueryService constructor.
Properties
- baseEndpoint → String
-
The base endpoint url used by the service.
no setter
- companyEndpoint → String
-
The endpoint used to make request as a company
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- postEndpoint → String
-
The endpoint used to make post request
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildQuery(
{String? query, String? firstConditions, String? conditions}) → String -
Build an sql query with the given
query
,firstConditions
andconditions
. -
getMany(
{required String accessToken, required String companyId, String location = 'Item', String? conditions}) → Future< List< Map< >String, dynamic> > -
Gets the requested data group from Quickbooks Api with the given
accessToken
andcompanyId
. Parse it in a List<Map<String, dynamic>> with thelocation
given with the searched data in it. -
getOne(
{required String accessToken, required String companyId, required String id, String location = 'Item'}) → Future< Map< String, dynamic> ?> -
Gets the requested data from Quickbooks Api with the given
accessToken
,companyId
ansid
. Parse it in a List<Map<String, dynamic>> with thelocation
given with the searched data in it. -
getQuery(
{required String query, required String accessToken, required String companyId, String location = 'Item'}) → Future< List< Map< >String, dynamic> > -
Gets the requested
query
from Quickbooks Api with the givenaccessToken
andcompanyId
. Parse it in a List<Map<String, dynamic>> with thelocation
given with the searched data in it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required String accessToken, required String companyId, required Map< String, dynamic> data, String location = 'Item'}) → Future<Map< String, dynamic> > -
Post the given
data
to Quickbooks Api with the givenaccessToken
andcompanyId
. Parse result in Map<String, dynamic> with thelocation
given with the posted data in it. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited