QuickbooksVendorsService class
Service for the QuickbooksVendor
- Inheritance
-
- Object
- QuickbooksQueryService
- QuickbooksVendorsService
Constructors
- QuickbooksVendorsService({bool? isProduction, String postEndpoint = 'vendor', String baseQuery = "SELECT * FROM vendor", String? baseConditions})
- QuickbooksVendorsService constructor.
Properties
- baseEndpoint → String
-
The base endpoint url used by the service.
no setterinherited
- companyEndpoint → String
-
The endpoint used to make request as a company
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- postEndpoint → String
-
The endpoint used to make post request
no setterinherited
- 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
.inherited -
createOne(
{required String accessToken, required String companyId, required QuickbooksVendor data}) → Future< QuickbooksVendor> -
Creates a QuickbooksVendor with
the given
accessToken
andcompanyId
-
deleteOne(
{required String accessToken, required String companyId, required String id}) → Future< QuickbooksVendor> -
Deletes a QuickbooksVendor with
the given
accessToken
andcompanyId
-
get(
{required String accessToken, required String companyId, required String id}) → Future< QuickbooksVendor?> -
Gets a QuickbooksVendor from the Quickbooks API with the given
accessToken
,companyId
andid
. Returns null if no data found. -
getAll(
{required String accessToken, required String companyId, String? conditions}) → Future< List< QuickbooksVendor> > -
Gets all QuickbooksVendor in the Quickbooks API for the given
accessToken
andcompanyId
-
getAttachables(
{required String id, required String accessToken, required String companyId}) → Future< List< QuickbooksAttachableEntity> > -
Gets all QuickbooksAttachableEntity for the requested
id
in the Quickbooks API for the givenaccessToken
-
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.inherited -
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.inherited -
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.inherited -
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.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
updateOne(
{required String accessToken, required String companyId, required QuickbooksVendor data}) → Future< QuickbooksVendor> -
Updates a QuickbooksVendor with
the given
accessToken
andcompanyId
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited