/* Options: Date: 2024-11-21 11:27:43 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: ReferenceQuery.* //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.Interfaces; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class ExternalReference : BaseModel { [Required] public virtual Guid CompanyId { get; set; } [Required] public virtual Guid Id { get; set; } [Required] public virtual Guid OwnerId { get; set; } [Required] public virtual string ReferenceType { get; set; } public virtual string ExternalData { get; set; } public virtual string CreatedBy { get; set; } [Required] public virtual DateTime Updated { get; set; } [Required] public virtual DateTime Created { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/references", "GET")] public partial class ReferenceQuery : QueryDb, IReturn>, ICompany { /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")] public virtual Guid? CompanyId { get; set; } /// ///Id of the reference /// [ApiMember(Description="Id of the reference")] public virtual Guid? Id { get; set; } /// ///Internal Id of the reference. Example could be the Booking Id /// [ApiMember(Description="Internal Id of the reference. Example could be the Booking Id")] public virtual Guid? OwnerId { get; set; } /// ///The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system /// [ApiMember(Description="The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system")] public virtual string ReferenceType { get; set; } /// ///The external data. Could be a Id or a JSON object or anything /// [ApiMember(Description="The external data. Could be a Id or a JSON object or anything")] public virtual string ExternalData { get; set; } } public partial class ReferenceQueryResponse { /// ///The company id /// [ApiMember(Description="The company id")] public virtual Guid CompanyId { get; set; } /// ///Id of the reference /// [ApiMember(Description="Id of the reference")] public virtual Guid Id { get; set; } /// ///Internal Id of the reference. Example could be the Booking Id /// [ApiMember(Description="Internal Id of the reference. Example could be the Booking Id")] public virtual Guid OwnerId { get; set; } /// ///The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system /// [ApiMember(Description="The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system")] public virtual string ReferenceType { get; set; } /// ///The external data. Could be a Id or a JSON object or anything /// [ApiMember(Description="The external data. Could be a Id or a JSON object or anything")] public virtual string ExternalData { get; set; } /// ///Will show when the reference was updated. /// [ApiMember(DataType="datetime", Description="Will show when the reference was updated.")] public virtual DateTime Updated { get; set; } /// ///Will show when the reference was created. /// [ApiMember(DataType="datetime", Description="Will show when the reference was created.")] public virtual DateTime Created { get; set; } /// ///Will show who created the reference. /// [ApiMember(DataType="datetime", Description="Will show who created the reference.")] public virtual string CreatedBy { get; set; } /// ///Will show who update the reference. /// [ApiMember(DataType="datetime", Description="Will show who update the reference.")] public virtual string UpdatedBy { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }