getAll method
Gets all QuickbooksCustomer in the Quickbooks API for the given accessToken
and companyId
Implementation
Future<List<QuickbooksCustomer>> getAll({
required String accessToken,
required String companyId,
String? conditions,
}) async {
List<Map<String, dynamic>> items = await getMany(
accessToken: accessToken,
companyId: companyId,
conditions: conditions,
location: 'Customer',
);
List<QuickbooksCustomer> results = [];
for (var item in items) {
try {
results.add(QuickbooksCustomer.fromMap(item));
} catch (e) {
print(e);
}
}
return results;
}