Class SelectionType
- Namespace
- Crews.PlanningCenter.Api.Registrations.V2025_05_01
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the SelectionType resource.
public record SelectionType : IEquatable<SelectionType>
- Inheritance
-
SelectionType
- Implements
- Inherited Members
Constructors
SelectionType()
public SelectionType()
SelectionType(SelectionType)
protected SelectionType(SelectionType original)
Parameters
originalSelectionType
Properties
AtMaximumCapacity
Whether the selection type has reached its maximum capacity.
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("at_maximum_capacity")]
public bool? AtMaximumCapacity { get; init; }
Property Value
- bool?
AvailableCapacity
Remaining spots for this selection type (maximum_capacity minus active
registrations). null when there is no capacity limit.
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("available_capacity")]
public int? AvailableCapacity { get; init; }
Property Value
- int?
CreatedAt
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
MaximumCapacity
Maximum number of attendees this selection type can hold. null when there
is no capacity limit.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("maximum_capacity")]
public int? MaximumCapacity { get; init; }
Property Value
- int?
Name
Name of the selection type.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
PriceCents
Price of selection type in cents.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("price_cents")]
public int? PriceCents { get; init; }
Property Value
- int?
PriceCurrency
Signup currency code, example "USD".
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("price_currency")]
public string? PriceCurrency { get; init; }
Property Value
PriceCurrencySymbol
Signup currency symbol, example "$".
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("price_currency_symbol")]
public string? PriceCurrencySymbol { get; init; }
Property Value
PriceFormatted
Price of selection type with currency formatting (symbol not included).
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("price_formatted")]
public string? PriceFormatted { get; init; }
Property Value
PubliclyAvailable
Whether or not the selection type is available to the public.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("publicly_available")]
public bool? PubliclyAvailable { get; init; }
Property Value
- bool?
UpdatedAt
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Waitlist
Whether the selection type offers a waitlist once it is full.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("waitlist")]
public bool? Waitlist { get; init; }
Property Value
- bool?
Methods
Equals(SelectionType?)
public virtual bool Equals(SelectionType? other)
Parameters
otherSelectionType
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 ==(SelectionType?, SelectionType?)
public static bool operator ==(SelectionType? left, SelectionType? right)
Parameters
leftSelectionTyperightSelectionType
Returns
operator !=(SelectionType?, SelectionType?)
public static bool operator !=(SelectionType? left, SelectionType? right)
Parameters
leftSelectionTyperightSelectionType