using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Onboarding; /// /// Represents the request to get the REST API application credentials /// public class GetCredentialsRequest : IApiRequest { #region Properties /// /// Gets or sets the ID /// [JsonIgnore] public string Id { get; set; } /// /// Gets or sets the access token /// [JsonIgnore] public string AccessToken { get; set; } /// /// Gets the request path /// [JsonIgnore] public string Path => $"v1/customer/partners/{Uri.EscapeDataString(Id)}/merchant-integrations/credentials?"; /// /// Gets the request method /// [JsonIgnore] public string Method => HttpMethods.Get; #endregion }