using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Webhooks; /// /// Represents the request to delete a webhook /// public class DeleteWebhookRequest : IAuthorizedRequest { #region Properties /// /// Gets or sets the ID of the webhook /// [JsonIgnore] public string WebhookId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v1/notifications/webhooks/{Uri.EscapeDataString(WebhookId)}?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Delete; #endregion }