using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace SPMS.Application.DTOs.Service; public class WebhookConfigRequestDto { [Required] [JsonPropertyName("service_code")] public string ServiceCode { get; set; } = string.Empty; [JsonPropertyName("webhook_url")] [Url] public string? WebhookUrl { get; set; } [JsonPropertyName("events")] public List? Events { get; set; } } public class WebhookInfoRequestDto { [Required] [JsonPropertyName("service_code")] public string ServiceCode { get; set; } = string.Empty; }