using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Nop.Plugin.Misc.Zettle.Domain.Api.Image; /// /// Represents request to upload single image from a URL /// public class CreateImageRequest : ImageApiRequest { /// /// Gets or sets the image format (JPEG, PNG, GIF) /// [JsonProperty(PropertyName = "imageFormat")] public string ImageFormat { get; set; } /// /// Gets or sets the image URL. Image URL must use the HTTPS protocol, and must be properly encoded (only ASCII characters in the path) /// [JsonProperty(PropertyName = "imageUrl")] public string ImageUrl { get; set; } /// /// Gets the request path /// public override string Path => "v2/images/organizations/self/products"; /// /// Gets the request method /// public override string Method => HttpMethods.Post; }