Webiant Logo Webiant Logo
  1. No results found.

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

SignUpRequest.cs

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

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

/// 
/// Represents request to sign up the merchant
/// 
public class SignUpRequest : Request
{
    public SignUpRequest(string merchantGuid)
    {
        MerchantGuid = merchantGuid;
    }

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

    /// 
    /// Gets or sets the authentication parameters
    /// 
    [JsonProperty(PropertyName = "shared_id")]
    public string SharedId { get; set; }

    /// 
    /// Gets or sets the authentication parameters
    /// 
    [JsonProperty(PropertyName = "auth_code")]
    public string AuthCode { get; set; }

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

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