/* Options: Date: 2024-11-21 11:57:34 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: CurrencyQuery.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; using PaysonIntegrationCO2.Models.Enums; namespace BokaMera.API.ServiceModel.Db { public partial class Currency : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual string CurrencySign { get; set; } [Required] public virtual bool Active { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } [Required] public virtual string Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/currencies", "GET")] public partial class CurrencyQuery : QueryDb, IReturn> { /// ///Id of the currency /// [ApiMember(Description="Id of the currency")] public virtual string Id { get; set; } /// ///Only active currencies /// [ApiMember(Description="Only active currencies")] public virtual bool Active { get; set; } } public partial class CurrencyQueryResponse { public virtual string Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string CurrencySign { get; set; } public virtual bool Active { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace PaysonIntegrationCO2.Models.Enums { public enum Currency { SEK = 1, EUR = 2, } }