Table of Contents

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

original Person

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

JsonArray

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

JsonArray

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

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

DateTime?

FirstName

A person's first name.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("first_name")]
public string? FirstName { get; init; }

Property Value

string

LastName

A person's last name.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_name")]
public string? LastName { get; init; }

Property Value

string

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

string

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

JsonArray

Methods

Equals(Person?)

public virtual bool Equals(Person? other)

Parameters

other Person

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Person?, Person?)

public static bool operator ==(Person? left, Person? right)

Parameters

left Person
right Person

Returns

bool

operator !=(Person?, Person?)

public static bool operator !=(Person? left, Person? right)

Parameters

left Person
right Person

Returns

bool