getPaymentSources method
Future<PcoCollection<PcoGivingPaymentSource> >
getPaymentSources({
- PcoGivingPaymentSourceQuery? query,
Will get a collection of PcoGivingPaymentSource objects (expecting many)
using a path like this: https://api.planningcenteronline.com/giving/v2/payment_sources
Implementation
Future<PcoCollection<PcoGivingPaymentSource>> getPaymentSources(
{PcoGivingPaymentSourceQuery? query}) async {
query ??= PcoGivingPaymentSourceQuery();
var url = '$apiEndpoint/payment_sources';
return PcoCollection.fromApiCall<PcoGivingPaymentSource>(url,
query: query, apiVersion: apiVersion);
}