Webiant Logo Webiant Logo
  1. No results found.

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

UpdateProductRequest .cs

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

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

/// 
/// Represents request to update the product
/// 
public class UpdateProductRequest : Product, IApiRequest, IAuthorizedRequest, IConditionalRequest
{
    /// 
    /// Gets the request base URL
    /// 
    [JsonIgnore]
    public string BaseUrl => "https://products.izettle.com/";

    /// 
    /// Gets the request path
    /// 
    [JsonIgnore]
    public string Path => $"organizations/self/products/v2/{Uuid}";

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