using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Onboarding; /// /// Represents the request to get a merchant details /// public class GetMerchantRequest : IAuthorizedRequest { #region Properties /// /// Gets or sets the ID /// [JsonIgnore] public string Id { get; set; } /// /// Gets or sets the PayPal account ID of the merchant. /// [JsonIgnore] public string MerchantId { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v1/customer/partners/{Uri.EscapeDataString(Id)}/merchant-integrations/{Uri.EscapeDataString(MerchantId)}?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Get; #endregion }