mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
common: simplify email sender api
This commit is contained in:
1 parent
99489b9b4c
commit
a1dbd3f8b8
4 files changed
+26
-13
No files matched your search
@@ -93,6 +93,9 @@ namespace Streetwriters.Common.Models
|
||||
[JsonPropertyName("trialsAvailed")]
|
||||
public SubscriptionPlan[]? TrialsAvailed { get; set; }
|
||||
|
||||
[JsonPropertyName("extensionsAvailed")]
|
||||
public SubscriptionExtension[]? ExtensionsAvailed { get; set; }
|
||||
|
||||
[JsonPropertyName("updatedAt")]
|
||||
public long UpdatedAt { get; set; }
|
||||
|
||||
@@ -104,4 +107,16 @@ namespace Streetwriters.Common.Models
|
||||
[JsonPropertyName("status")]
|
||||
public SubscriptionStatus Status { get; set; }
|
||||
}
|
||||
|
||||
public class SubscriptionExtension
|
||||
{
|
||||
[JsonPropertyName("timestamp")]
|
||||
public required long Timestamp { get; set; }
|
||||
|
||||
[JsonPropertyName("expiry")]
|
||||
public required long ExpiryDate { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public required string Type { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user