Class DesignationRefundClient
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the DesignationRefund resource.
public class DesignationRefundClient : SingletonResourceClient<DesignationRefund, DesignationRefundResource, DesignationRefundResponse>
- Inheritance
-
DesignationRefundClient
- Inherited Members
Constructors
DesignationRefundClient(HttpClient, Uri)
Client for interacting with the DesignationRefund resource.
public DesignationRefundClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Designation
Associated Designation.
public DesignationClient Designation { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public DesignationRefundClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- DesignationRefundClient
The current DesignationRefundClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public DesignationRefundClient ClearParameters()
Returns
- DesignationRefundClient
The current DesignationRefundClient instance.
GetAsync(CancellationToken)
Fetches the DesignationRefund resource asynchronously.
public Task<DesignationRefundResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<DesignationRefundResponse>
A task representing the asynchronous operation, containing the DesignationRefund resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeDesignation()
Include related Designation resources in the response.
public DesignationRefundClient IncludeDesignation()