Table of Contents

Class PaymentSource

Namespace
Crews.PlanningCenter.Api.Giving.V2019_10_18
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the PaymentSource resource.

public record PaymentSource : IEquatable<PaymentSource>
Inheritance
PaymentSource
Implements
Inherited Members

Constructors

PaymentSource()

public PaymentSource()

PaymentSource(PaymentSource)

protected PaymentSource(PaymentSource original)

Parameters

original PaymentSource

Properties

CreatedAt

The date and time at which a payment source was created. Example: 2000-01-01T12:00:00Z

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }

Property Value

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

Required. The name of a payment source. Must be unique within the associated organization.

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

Property Value

string

Status

The status of the payment source. Can be either active or archived. active payment sources can be assigned to donations, while archived payment sources cannot. Payment sources are active by default upon creation. Archiving a payment source will keep all historical records intact and can be undone.

Possible values: active or archived

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

Property Value

string

UpdatedAt

The date and time at which a payment source was last updated. Example: 2000-01-01T12:00:00Z

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }

Property Value

DateTime?

Methods

Equals(PaymentSource?)

public virtual bool Equals(PaymentSource? other)

Parameters

other PaymentSource

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 ==(PaymentSource?, PaymentSource?)

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

Parameters

left PaymentSource
right PaymentSource

Returns

bool

operator !=(PaymentSource?, PaymentSource?)

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

Parameters

left PaymentSource
right PaymentSource

Returns

bool