Webiant Logo Webiant Logo
  1. No results found.

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

DeleteProductsRequest.cs

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

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

/// 
/// Represents request to delete multiple products
/// 
public class DeleteProductsRequest : ProductApiRequest
{
    /// 
    /// Gets or sets the list of product unique identifier as UUID version 1
    /// 
    [JsonIgnore]
    public List ProductUuids { get; set; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => $"organizations/self/products?uuid={string.Join("&uuid=", ProductUuids)}";

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