Class RefundClient
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- 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
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()