using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.PaymentTokens; /// /// Represents the request to get a payment token of vaulted payment source /// public class GetPaymentTokenRequest : PaymentToken, IAuthorizedRequest { #region Properties /// /// Gets or sets the ID of the payment token. /// [JsonIgnore] public string PaymentTokenId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v3/vault/payment-tokens/{Uri.EscapeDataString(PaymentTokenId)}?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Get; #endregion }