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