Class PaymentSubscriptionDTO
A subscription as the provider holds it now.
public record PaymentSubscriptionDTO : IEquatable<PaymentSubscriptionDTO>
- Inheritance
-
PaymentSubscriptionDTO
- Implements
- Inherited Members
Constructors
PaymentSubscriptionDTO(string, string, PaymentSubscriptionStatusType, string, string?, DateTimeOffset?, bool, IReadOnlyDictionary<string, string>, IReadOnlyList<PaymentSubscriptionItemDTO>?)
A subscription as the provider holds it now.
public PaymentSubscriptionDTO(string SubscriptionId, string CustomerId, PaymentSubscriptionStatusType Status, string ProviderStatus, string? PriceLookupKey, DateTimeOffset? CurrentPeriodEndUtc, bool CancelAtPeriodEnd, IReadOnlyDictionary<string, string> Metadata, IReadOnlyList<PaymentSubscriptionItemDTO>? Items = null)
Parameters
SubscriptionIdstringThe provider's identifier for it.
CustomerIdstringWho pays for it.
StatusPaymentSubscriptionStatusTypeWhere it stands.
ProviderStatusstringThe provider's own name for the status, kept for Unknown.
PriceLookupKeystringThe lookup key of the price it is charged at — the stable name a caller's catalogue refers to — or null when the price has none.
CurrentPeriodEndUtcDateTimeOffset?When the period already paid for ends.
CancelAtPeriodEndboolWhether it ends at
CurrentPeriodEndUtcrather than renewing.MetadataIReadOnlyDictionary<string, string>What the caller stored on it when it was started.
ItemsIReadOnlyList<PaymentSubscriptionItemDTO>Every price it is charged at, with its quantity: the plan's own price and, on a subscription that also sells seats, one item per seat price. PriceLookupKey is the first of them.
Properties
CancelAtPeriodEnd
Whether it ends at CurrentPeriodEndUtc rather than renewing.
public bool CancelAtPeriodEnd { get; init; }
Property Value
CurrentPeriodEndUtc
When the period already paid for ends.
public DateTimeOffset? CurrentPeriodEndUtc { get; init; }
Property Value
CustomerId
Who pays for it.
public string CustomerId { get; init; }
Property Value
Items
Every price it is charged at, with its quantity: the plan's own price and, on a subscription that also sells seats, one item per seat price. PriceLookupKey is the first of them.
public IReadOnlyList<PaymentSubscriptionItemDTO>? Items { get; init; }
Property Value
Metadata
What the caller stored on it when it was started.
public IReadOnlyDictionary<string, string> Metadata { get; init; }
Property Value
PriceLookupKey
The lookup key of the price it is charged at — the stable name a caller's catalogue refers to — or null when the price has none.
public string? PriceLookupKey { get; init; }
Property Value
ProviderStatus
The provider's own name for the status, kept for Unknown.
public string ProviderStatus { get; init; }
Property Value
Status
Where it stands.
public PaymentSubscriptionStatusType Status { get; init; }
Property Value
SubscriptionId
The provider's identifier for it.
public string SubscriptionId { get; init; }