| | | 1 | | namespace Estud.Back.Errors; |
| | | 2 | | |
| | | 3 | | public class WebhookSubscriptionNotFound : EstudError |
| | | 4 | | { |
| | | 5 | | public static readonly WebhookSubscriptionNotFound I = new(); |
| | | 6 | | public override string Code { get; set; } = nameof(WebhookSubscriptionNotFound); |
| | | 7 | | public override string Message { get; set; } = "Inscrição de webhook não encontrada."; |
| | | 8 | | } |
| | | 9 | | |
| | | 10 | | public class InvalidWebhookName : EstudError |
| | | 11 | | { |
| | | 12 | | public static readonly InvalidWebhookName I = new(); |
| | | 13 | | public override string Code { get; set; } = nameof(InvalidWebhookName); |
| | | 14 | | public override string Message { get; set; } = "Nome de webhook inválido."; |
| | | 15 | | } |
| | | 16 | | |
| | | 17 | | public class InvalidWebhookUrl : EstudError |
| | | 18 | | { |
| | | 19 | | public static readonly InvalidWebhookUrl I = new(); |
| | | 20 | | public override string Code { get; set; } = nameof(InvalidWebhookUrl); |
| | | 21 | | public override string Message { get; set; } = "URL de webhook inválida."; |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | public class InvalidWebhookEvents : EstudError |
| | | 25 | | { |
| | | 26 | | public static readonly InvalidWebhookEvents I = new(); |
| | | 27 | | public override string Code { get; set; } = nameof(InvalidWebhookEvents); |
| | | 28 | | public override string Message { get; set; } = "Lista de eventos de webhook inválida."; |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public class InvalidWebhookCustomHeaders : EstudError |
| | | 32 | | { |
| | 2 | 33 | | public static readonly InvalidWebhookCustomHeaders I = new(); |
| | 14 | 34 | | public override string Code { get; set; } = nameof(InvalidWebhookCustomHeaders); |
| | 14 | 35 | | public override string Message { get; set; } = "Headers customizados de webhook inválidos."; |
| | | 36 | | } |