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