Class PaymentSource
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- 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
originalPaymentSource
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
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
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
Methods
Equals(PaymentSource?)
public virtual bool Equals(PaymentSource? other)
Parameters
otherPaymentSource
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 ==(PaymentSource?, PaymentSource?)
public static bool operator ==(PaymentSource? left, PaymentSource? right)
Parameters
leftPaymentSourcerightPaymentSource
Returns
operator !=(PaymentSource?, PaymentSource?)
public static bool operator !=(PaymentSource? left, PaymentSource? right)
Parameters
leftPaymentSourcerightPaymentSource