Webiant Logo Webiant Logo
  1. No results found.

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

GetProductRequest.cs

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

namespace Nop.Plugin.Misc.Zettle.Domain.Api.Product;

/// 
/// Represents request to get the single product
/// 
public class GetProductRequest : ProductApiRequest, IConditionalRequest
{
    /// 
    /// Gets or sets the product unique identifier as UUID version 1
    /// 
    [JsonIgnore]
    public string Uuid { get; set; }

    /// 
    /// Gets or sets the ETag header value
    /// 
    [JsonIgnore]
    public string ETag { get; set; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => $"organizations/self/products/{Uuid}";

    /// 
    /// Gets the request method
    /// 
    public override string Method => HttpMethods.Get;
}