using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models; /// /// Represents the request-related [HATEOAS links](/docs/api/overview/#hateoas-links) /// public class Link { #region Properties /// /// Gets or sets the link title. /// [JsonProperty(PropertyName = "title")] public string Title { get; set; } /// /// Gets or sets the complete target URL. To make the related call, combine the method with this link, in [URI template format](https://tools.ietf.org/html/rfc6570). Include the `$`, `(`, and `)` characters for pre-processing. The `href` is the key HATEOAS component that links a completed call with a subsequent call. /// [JsonProperty(PropertyName = "href")] public string Href { get; set; } /// /// Gets or sets the HTTP method required to make the related call. /// [JsonProperty(PropertyName = "method")] public string Method { get; set; } /// /// Gets or sets the [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml). /// [JsonProperty(PropertyName = "rel")] public string Rel { get; set; } /// /// Gets or sets the encryption type /// [JsonProperty(PropertyName = "encType")] public string EncType { get; set; } /// /// Gets or sets the media type, as defined by [RFC 2046](https://www.ietf.org/rfc/rfc2046.txt). Describes the link target. /// [JsonProperty(PropertyName = "mediaType")] public string MediaType { get; set; } #endregion }