Nop.Core_4.7/Plugins/Nop.Plugin.Payments.PayPalC.../Domain/Onboarding/RevokeAccessRequest.cs

31 lines
747 B
C#

using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
namespace Nop.Plugin.Payments.PayPalCommerce.Domain.Onboarding;
/// <summary>
/// Represents request to revoke access
/// </summary>
public class RevokeAccessRequest : Request
{
public RevokeAccessRequest(string merchantGuid)
{
MerchantGuid = merchantGuid;
}
/// <summary>
/// Gets or sets the internal merchant id
/// </summary>
[JsonIgnore]
public string MerchantGuid { get; }
/// <summary>
/// Gets the request path
/// </summary>
public override string Path => $"paypal/merchant/{MerchantGuid}";
/// <summary>
/// Gets the request method
/// </summary>
public override string Method => HttpMethods.Delete;
}