using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Payments; /// /// Represents the request to void or cancel an authorized payment /// public class CreateVoidRequest : IAuthorizedRequest { #region Properties /// /// Gets or sets the ID of the webhook /// [JsonIgnore] public string AuthorizationId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v2/payments/authorizations/{Uri.EscapeDataString(AuthorizationId)}/void?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Post; #endregion }