| | | 1 | | namespace Syki.Back.Errors; |
| | | 2 | | |
| | | 3 | | public class WebhookSubscriptionNotFound : SykiError |
| | | 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 | | |
| | | 11 | | public class InvalidWebhookName : SykiError |
| | | 12 | | { |
| | | 13 | | public static readonly InvalidWebhookName I = new(); |
| | | 14 | | public override string Code { get; set; } = nameof(InvalidWebhookName); |
| | | 15 | | public override string Message { get; set; } = "Nome de webhook inválido."; |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public class InvalidWebhookUrl : SykiError |
| | | 19 | | { |
| | 0 | 20 | | public static readonly InvalidWebhookUrl I = new(); |
| | 0 | 21 | | public override string Code { get; set; } = nameof(InvalidWebhookUrl); |
| | 0 | 22 | | public override string Message { get; set; } = "URL de webhook inválida."; |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public class InvalidWebhookEvents : SykiError |
| | | 26 | | { |
| | | 27 | | public static readonly InvalidWebhookEvents I = new(); |
| | | 28 | | public override string Code { get; set; } = nameof(InvalidWebhookEvents); |
| | | 29 | | public override string Message { get; set; } = "Lista de eventos de webhook inválida."; |
| | | 30 | | } |