getDesignation method

Will get a collection of PcoGivingDesignation objects (expecting one) using a path like this: https://api.planningcenteronline.com/giving/v2/donations/1/refund/designation_refunds/1/designation

Implementation

Future<PcoCollection<PcoGivingDesignation>> getDesignation(
    {PcoGivingDesignationQuery? query}) async {
  query ??= PcoGivingDesignationQuery();
  var url = '$apiEndpoint/designation';
  return PcoCollection.fromApiCall<PcoGivingDesignation>(url,
      query: query, apiVersion: apiVersion);
}