QuickbooksCompanyService class

Service for the QuickbooksCompanyInfo

Inheritance

Constructors

QuickbooksCompanyService({bool? isProduction, String postEndpoint = 'company', String baseQuery = "SELECT * FROM CompanyInfo"})
QuickbooksCompanyService 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 and conditions.
inherited
get({required String accessToken, required String companyId}) Future<QuickbooksCompanyInfo?>
Gets a QuickbooksCompanyInfo from the Quickbooks API with the given accessToken, companyId. Returns null if no data found.
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 given accessToken
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 and companyId. Parse it in a List<Map<String, dynamic>> with the location 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 ans id. Parse it in a List<Map<String, dynamic>> with the location 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 given accessToken and companyId. Parse it in a List<Map<String, dynamic>> with the location 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 given accessToken and companyId. Parse result in Map<String, dynamic> with the location given with the posted data in it.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited