Class Person
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the Person resource.
public record Person : IEquatable<Person>
- Inheritance
-
Person
- Implements
- Inherited Members
Constructors
Person()
public Person()
Person(Person)
protected Person(Person original)
Parameters
originalPerson
Properties
Addresses
An array of addresses for a person. Can be managed via People. Example:<code><br /> [<br /> {<br /> "street_line_1": "2790 Gateway Rd",<br /> "street_line_2": "",<br /> "city": "Carlsbad",<br /> "state": "CA",<br /> "zip": "92009",<br /> "location": "Home",<br /> "primary": true,<br /> "street": "2790 Gateway Rd",<br /> "line_1": "2790 Gateway Rd",<br /> "line_2": "Carlsbad, CA 92009"<br /> }<br /> ]<br /></code>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("addresses")]
public JsonArray? Addresses { get; init; }
Property Value
DonorNumber
The donor number for a person, if applicable. See our product documentation for more information on donor numbers.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("donor_number")]
public int? DonorNumber { get; init; }
Property Value
- int?
EmailAddresses
An array of email addresses for a person. Can be managed via People. Example:<code><br /> [<br /> {<br /> "address": "support@planningcenter.com",<br /> "location": "Home",<br /> "blocked": false,<br /> "primary": true<br /> }<br /> ]<br /></code>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("email_addresses")]
public JsonArray? EmailAddresses { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FirstDonatedAt
Timestamp of a person's first donation or null if they have never donated.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("first_donated_at")]
public DateTime? FirstDonatedAt { get; init; }
Property Value
FirstName
A person's first name.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("first_name")]
public string? FirstName { get; init; }
Property Value
LastName
A person's last name.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_name")]
public string? LastName { get; init; }
Property Value
Permissions
The level of Giving access granted to a person. See our product documentation for more information on permissions in Giving.
Possible values: administrator, reviewer, counter, or bookkeeper
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("permissions")]
public string? Permissions { get; init; }
Property Value
PhoneNumbers
An array of phone numbers for a person. Can be managed via People. Example:<code><br /> [<br /> {<br /> "number": "(123) 456-7890",<br /> "carrier": "PC Mobile",<br /> "location": "Mobile",<br /> "primary": true<br /> }<br /> ]<br /></code>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("phone_numbers")]
public JsonArray? PhoneNumbers { get; init; }
Property Value
Methods
Equals(Person?)
public virtual bool Equals(Person? other)
Parameters
otherPerson
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 ==(Person?, Person?)
public static bool operator ==(Person? left, Person? right)
Parameters
Returns
operator !=(Person?, Person?)
public static bool operator !=(Person? left, Person? right)