Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

DeletePaymentTokenRequest.cs

using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;

namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.PaymentTokens;

/// 
/// Represents the request to delete a payment token
/// 
public class DeletePaymentTokenRequest : IAuthorizedRequest
{
    #region Properties

    /// 
    /// Gets or sets the ID of the payment token.
    /// 
    [JsonIgnore]
    public string Id { get; set; }

    /// 
    /// Gets the request path
    /// 
    [JsonIgnore]
    public string Path => $"v3/vault/payment-tokens/{Uri.EscapeDataString(Id)}?";

    /// 
    /// Gets the request method
    /// 
    [JsonIgnore]
    public string Method => HttpMethods.Delete;

    #endregion
}