Webiant Logo Webiant Logo
  1. No results found.

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

MerchantRequest.cs

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

namespace Nop.Plugin.Payments.PayPalCommerce.Domain.Onboarding;

/// 
/// Represents request to get merchant details
/// 
public class MerchantRequest : Request
{
    public MerchantRequest(string merchantGuid)
    {
        MerchantGuid = merchantGuid;
    }

    /// 
    /// Gets or sets the internal merchant id
    /// 
    [JsonIgnore]
    public string MerchantGuid { get; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => $"paypal/merchant/{MerchantGuid}";

    /// 
    /// Gets the request method
    /// 
    public override string Method => HttpMethods.Get;
}