Webiant Logo Webiant Logo
  1. No results found.

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

GetProductsRequest.cs

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

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

/// 
/// Represents request to get all products
/// 
public class GetProductsRequest : ProductApiRequest
{
    /// 
    /// Gets or sets a value indicating whether to sorts products by created date
    /// 
    [JsonIgnore]
    public bool SortByDate { get; set; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => $"organizations/self/products/v2?sort={SortByDate.ToString().ToLower()}";

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