Webiant Logo Webiant Logo
  1. No results found.

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

GetOrderRequest.cs

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

namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Orders;

/// 
/// Represents the request to get an order
/// 
public class GetOrderRequest : IAuthorizedRequest
{
    #region Properties

    /// 
    /// Gets or sets the ID of the order for which to show details.
    /// 
    [JsonIgnore]
    public string OrderId { get; set; }

    /// 
    /// Gets or sets the comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`.
    /// 
    [JsonProperty(PropertyName = "fields")]
    public string Fields { get; set; }

    /// 
    /// Gets the request path
    /// 
    [JsonIgnore]
    public string Path => $"v2/checkout/orders/{Uri.EscapeDataString(OrderId)}?";

    /// 
    /// Gets the request method
    /// 
    [JsonIgnore]
    public string Method => HttpMethods.Get;

    #endregion
}