using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Orders; /// /// Represents the request to capture payment for an order /// public class CreateCaptureRequest : Order, IAuthorizedRequest { #region Properties /// /// Gets or sets the ID of the order for which to capture a payment. /// [JsonIgnore] public string OrderId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v2/checkout/orders/{Uri.EscapeDataString(OrderId)}/capture?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Post; #endregion }