QuickbooksPaymentService class

Service for the QuickbooksPayment

Inheritance

Constructors

QuickbooksPaymentService({bool? isProduction, String postEndpoint = 'payment', String baseQuery = "SELECT * FROM Payment", String? baseConditions})
QuickbooksPaymentService 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 QuickbooksPayment data}) Future<QuickbooksPayment>
Creates a QuickbooksPayment with the given accessToken and companyId
deleteOne({required String accessToken, required String companyId, required String id}) Future<QuickbooksPayment>
Deletes a QuickbooksPayment with the given accessToken and companyId
get({required String accessToken, required String companyId, required String id}) Future<QuickbooksPayment?>
Gets a QuickbooksPayment 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<QuickbooksPayment>>
Gets all QuickbooksPayment 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 QuickbooksPayment data}) Future<QuickbooksPayment>
Updates a QuickbooksPayment with the given accessToken and companyId

Operators

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