Webiant Logo Webiant Logo
  1. No results found.

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

Patch.cs

using Newtonsoft.Json;

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

/// 
/// Represents the patch object to apply partial updates to resources
/// 
public class Patch where TValue : class
{
    #region Properties

    /// 
    /// Gets or sets the operation.
    /// 
    [JsonProperty(PropertyName = "op")]
    public string Op { get; set; }

    /// 
    /// Gets or sets the [JSON Pointer](https://tools.ietf.org/html/rfc6901) to the target document location at which to complete the operation.
    /// 
    [JsonProperty(PropertyName = "path")]
    public string Path { get; set; }

    /// 
    /// Gets or sets the value to apply. The `remove`, `copy`, and `move` operations do not require a value.
    /// 
    [JsonProperty(PropertyName = "value")]
    public TValue Value { get; set; }

    /// 
    /// Gets or sets the [JSON Pointer](https://tools.ietf.org/html/rfc6901) to the target document location from which to `move` the value.
    /// 
    [JsonProperty(PropertyName = "from")]
    public string From { get; set; }

    #endregion
}