Class BatchGroup
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the BatchGroup resource.
public record BatchGroup : IEquatable<BatchGroup>
- Inheritance
-
BatchGroup
- Implements
- Inherited Members
Constructors
BatchGroup()
public BatchGroup()
BatchGroup(BatchGroup)
protected BatchGroup(BatchGroup original)
Parameters
originalBatchGroup
Properties
Committed
Returns true if a batch group has been committed, and false if it hasn't.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("committed")]
public bool? Committed { get; init; }
Property Value
- bool?
CreatedAt
The date and time at which a batch group was created. Example: 2000-01-01T12:00:00Z
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
Description
A brief description of what a batch group is for. This is displayed in Giving to help differentiate different batch groups from one another. If no description is provided for a batch group, it will be referred to as Untitled group within Giving.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Status
One of in_progress, updating, or committed. The updating state is temporary and describes a BatchGroup that is currently being changed in some way (e.g. moving from in_progress to committed). Certain changes to BatchGroups in this state (or their Batches or Donations) will be restricted until the BatchGroup has finished updating.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("status")]
public string? Status { get; init; }
Property Value
TotalCents
The gross total of cents donated within the batch group. Factors in all donations made to each batch within the group.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("total_cents")]
public int? TotalCents { get; init; }
Property Value
- int?
TotalCurrency
The currency used to calculate total_cents.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("total_currency")]
public string? TotalCurrency { get; init; }
Property Value
UpdatedAt
The date and time at which a batch group 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(BatchGroup?)
public virtual bool Equals(BatchGroup? other)
Parameters
otherBatchGroup
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 ==(BatchGroup?, BatchGroup?)
public static bool operator ==(BatchGroup? left, BatchGroup? right)
Parameters
leftBatchGrouprightBatchGroup
Returns
operator !=(BatchGroup?, BatchGroup?)
public static bool operator !=(BatchGroup? left, BatchGroup? right)
Parameters
leftBatchGrouprightBatchGroup