feat: premium ID changes
Some checks failed
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
Build and push Rust service Docker images / rust docker build (push) Has been cancelled
rust checks / cargo fmt (push) Has been cancelled

This commit is contained in:
Iris System 2025-12-28 00:06:51 +13:00
parent 84e98450e0
commit def9285250
19 changed files with 364 additions and 5 deletions

View file

@ -0,0 +1,15 @@
using Newtonsoft.Json.Linq;
using NodaTime;
namespace PluralKit.Core;
public class HidChangelog
{
public int Id { get; }
public SystemId System { get; }
public ulong DiscordUid { get; }
public string HidType { get; }
public string HidOld { get; }
public string HidNew { get; }
public Instant Created { get; }
}

View file

@ -0,0 +1,14 @@
using Newtonsoft.Json.Linq;
using SqlKata;
namespace PluralKit.Core;
public class PremiumAllowancePatch: PatchObject
{
public Partial<int> IdChangesRemaining { get; set; }
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
.With("id_changes_remaining", IdChangesRemaining)
);
}

View file

@ -0,0 +1,8 @@
namespace PluralKit.Core;
public class PremiumAllowance
{
public int Id { get; }
public SystemId System { get; }
public int? IdChangesRemaining { get; }
}