Table of Contents

Class Subscription

Namespace
Crews.PlanningCenter.Api.Webhooks.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the Subscription resource.

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

Constructors

Subscription()

public Subscription()

Subscription(Subscription)

protected Subscription(Subscription original)

Parameters

original Subscription

Properties

Active

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("active")]
public bool? Active { get; init; }

Property Value

bool?

ApplicationId

Planning Center does not provide a description for this attribute.

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

Property Value

string

AuthenticitySecret

Every delivery will include a header X-PCO-Webhooks-Authenticity.

This header will be the HMAC-SHA256 value of this the authenticity_secret used as the key,
and the message as the webhook body.

hmac_sha256(authenticity_secret, webhook_body)

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

Property Value

string

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

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

Planning Center does not provide a description for this attribute.

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

Property Value

string

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

DateTime?

Url

Planning Center does not provide a description for this attribute.

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

Property Value

string

Methods

Equals(Subscription?)

public virtual bool Equals(Subscription? other)

Parameters

other Subscription

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

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

Parameters

left Subscription
right Subscription

Returns

bool

operator !=(Subscription?, Subscription?)

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

Parameters

left Subscription
right Subscription

Returns

bool