QuickbooksPurchasesService class

Service for the QuickbooksPurchase

Inheritance

Constructors

QuickbooksPurchasesService({bool? isProduction, String postEndpoint = 'purchase', String baseQuery = "SELECT * FROM Purchase", String? baseConditions})
QuickbooksPurchasesService 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
createOne({required String accessToken, required String companyId, required QuickbooksPurchase data}) Future<QuickbooksPurchase>
Creates a QuickbooksPurchase with the given accessToken and companyId
deleteOne({required String accessToken, required String companyId, required String id}) Future<bool>
Deletes a QuickbooksInvoice with the given accessToken and companyId
get({required String accessToken, required String companyId, required String id}) Future<QuickbooksPurchase?>
Gets a QuickbooksPurchase from the Quickbooks API with the given accessToken, companyId and id. Returns null if no data found.
getAll({required String accessToken, required String companyId, String? conditions}) Future<List<QuickbooksPurchase>>
Gets all QuickbooksPurchase in the Quickbooks API for the given accessToken and companyId
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
updateOne({required String accessToken, required String companyId, required QuickbooksPurchase data}) Future<QuickbooksPurchase>
Updates a QuickbooksPurchase with the given accessToken and companyId

Operators

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