[Feature] Support for multiple subscription tiers (#3036)

This commit is contained in:
Mihail Gribkov
2024-12-13 03:10:59 +08:00
committed by GitHub
parent aaa8df944c
commit 79fade6762
4 changed files with 16 additions and 0 deletions

View File

@@ -21,6 +21,9 @@ public class SocketSubscription : SocketEntity<ulong>, ISubscription
/// <inheritdoc />
public IReadOnlyCollection<ulong> EntitlementIds { get; private set; }
/// <inheritdoc />
public IReadOnlyCollection<ulong> RenewalSKUIds { get; private set; }
/// <inheritdoc />
public DateTimeOffset CurrentPeriodStart { get; private set; }
@@ -52,6 +55,7 @@ public class SocketSubscription : SocketEntity<ulong>, ISubscription
UserId = model.UserId;
SKUIds = model.SKUIds.ToImmutableArray();
EntitlementIds = model.EntitlementIds.ToImmutableArray();
RenewalSKUIds = model.RenewalSKUIds?.ToImmutableArray() ?? [];
CurrentPeriodStart = model.CurrentPeriodStart;
CurrentPeriodEnd = model.CurrentPeriodEnd;
Status = model.Status;