using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.PaymentTokens; /// /// Represents the request to get customers' payment tokens /// public class GetPaymentTokensRequest : IAuthorizedRequest { #region Properties /// /// Gets or sets the unique identifier representing a specific customer in merchant's system or records. /// [JsonIgnore] public string VaultCustomerId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v3/vault/payment-tokens?customer_id={Uri.EscapeDataString(VaultCustomerId)}"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Get; #endregion }