getBatches method
Will get a collection of PcoGivingBatch objects (expecting many)
using a path like this: https://api.planningcenteronline.com/giving/v2/batches
Available Query Filters:
committed
in_progress
Implementation
Future<PcoCollection<PcoGivingBatch>> getBatches(
{PcoGivingBatchQuery? query}) async {
query ??= PcoGivingBatchQuery();
var url = '$apiEndpoint/batches';
return PcoCollection.fromApiCall<PcoGivingBatch>(url,
query: query, apiVersion: apiVersion);
}