Class RecurringDonation
- Namespace
- Crews.PlanningCenter.Api.Giving.V2019_10_18
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the RecurringDonation resource.
public record RecurringDonation : IEquatable<RecurringDonation>
- Inheritance
-
RecurringDonation
- Implements
- Inherited Members
Constructors
RecurringDonation()
public RecurringDonation()
RecurringDonation(RecurringDonation)
protected RecurringDonation(RecurringDonation original)
Parameters
originalRecurringDonation
Properties
AmountCents
The number of cents scheduled to be donated.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("amount_cents")]
public int? AmountCents { get; init; }
Property Value
- int?
AmountCurrency
The currency of amount_cents.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("amount_currency")]
public string? AmountCurrency { get; init; }
Property Value
CreatedAt
The date and time at which a recurring donation was created. Example: 2000-01-01T12:00:00Z
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
LastDonationReceivedAt
The date and time that the last donation was made for a recurring donation. Example: 2000-01-01T12:00:00Z
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_donation_received_at")]
public DateTime? LastDonationReceivedAt { get; init; }
Property Value
NextOccurrence
The date that the next donation will be made for a recurring donation. Example: 2000-01-01T12:00:00Z
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("next_occurrence")]
public DateTime? NextOccurrence { get; init; }
Property Value
ReleaseHoldAt
The date when the hold on a recurring donation with a status of temporary_hold will be released.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("release_hold_at")]
public DateTime? ReleaseHoldAt { get; init; }
Property Value
Schedule
JSON representation of the billing schedule. See the repeatable Ruby gem for more details on the structure and meaning: https://github.com/molawson/repeatable#time-expressions
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("schedule")]
public JsonObject? Schedule { get; init; }
Property Value
Status
Determines if a recurring donation is active or on hold, and if on hold, the kind of hold that has been placed on it.
Possible values: active, indefinite_hold or temporary_hold.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("status")]
public string? Status { get; init; }
Property Value
UpdatedAt
The date and time at which a recurring donation was last updated. Example: 2000-01-01T12:00:00Z
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Methods
Equals(RecurringDonation?)
public virtual bool Equals(RecurringDonation? other)
Parameters
otherRecurringDonation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RecurringDonation?, RecurringDonation?)
public static bool operator ==(RecurringDonation? left, RecurringDonation? right)
Parameters
leftRecurringDonationrightRecurringDonation
Returns
operator !=(RecurringDonation?, RecurringDonation?)
public static bool operator !=(RecurringDonation? left, RecurringDonation? right)
Parameters
leftRecurringDonationrightRecurringDonation