feat(bp): /battle_pass/buy — crystal-cost + retroactive premium grants

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-05-26 23:36:18 -04:00
parent 0ceab721e9
commit 2cb8c271a8
9 changed files with 422 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using MessagePack;
using System.Text.Json.Serialization;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.BattlePass;
/// <summary>
/// /battle_pass/buy request (Wizard/BattlePassBuyTask.cs:8-13). Inherits viewer_id, steam_id,
/// steam_session_ticket from BaseRequest. Per memory feedback_msgpack_request_dtos, the
/// [MessagePackObject] + [Key] attrs are required even though integration tests post JSON.
/// </summary>
[MessagePackObject]
public class BattlePassBuyRequest : BaseRequest
{
[JsonPropertyName("season_id")]
[Key("season_id")]
public int SeasonId { get; set; }
[JsonPropertyName("id")]
[Key("id")]
public int Id { get; set; }
}