using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Domain.Onboarding; /// /// Represents request to get URL to sign up /// public class OnboardingRequest : Request { /// /// Gets or sets the merchant email /// [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// Gets or sets the merchant language culture /// [JsonProperty(PropertyName = "culture")] public string Culture { get; set; } /// /// Gets or sets the merchant store URL /// [JsonProperty(PropertyName = "store_url")] public string StoreUrl { get; set; } /// /// Gets or sets the URL to redirect the merchant after onboarding /// [JsonProperty(PropertyName = "redirect_url")] public string RedirectUrl { get; set; } /// /// Gets the request path /// public override string Path => $"paypal/onboarding"; /// /// Gets the request method /// public override string Method => HttpMethods.Post; }