/* Options: Date: 2024-06-26 10:57:39 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.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: UpdateSupportCase.* //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 System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class SupportCaseAreaResponse { /// ///The area id /// [ApiMember(Description="The area id")] public virtual int Id { get; set; } /// ///The area name /// [ApiMember(Description="The area name")] public virtual string Name { get; set; } /// ///The area description /// [ApiMember(Description="The area description")] public virtual string Description { get; set; } } public partial class SupportCaseAttachmentResponse { /// ///The attachment id /// [ApiMember(Description="The attachment id")] public virtual int Id { get; set; } /// ///The attachment file url /// [ApiMember(Description="The attachment file url")] public virtual string FileUrl { get; set; } } public partial class SupportCaseCommentsResponse { /// ///The case id /// [ApiMember(Description="The case id")] public virtual int SupportCaseId { get; set; } /// ///The comments id /// [ApiMember(Description="The comments id")] public virtual int Id { get; set; } /// ///The case comment /// [ApiMember(Description="The case comment")] public virtual string Comment { get; set; } /// ///The case comment created by /// [ApiMember(Description="The case comment created by")] public virtual string CreatedBy { get; set; } /// ///The case comment created date /// [ApiMember(Description="The case comment created date")] public virtual DateTime Created { get; set; } } public partial class SupportCaseQueryResponse { public SupportCaseQueryResponse() { Comments = new List{}; Attachments = new List{}; CaseStatusOptions = new List{}; CaseTypeOptions = new List{}; CaseAreaOptions = new List{}; } /// ///The support case id /// [ApiMember(Description="The support case id")] public virtual int Id { get; set; } /// ///The company user id /// [ApiMember(Description="The company user id")] public virtual Guid CompanyUserId { get; set; } /// ///The case title. /// [ApiMember(Description="The case title.")] public virtual string Title { get; set; } /// ///The case description. /// [ApiMember(Description="The case description.")] public virtual string Description { get; set; } /// ///The case status id. /// [ApiMember(Description="The case status id.")] public virtual int CaseStatusId { get; set; } /// ///If the case type id. /// [ApiMember(Description="If the case type id.")] public virtual int CaseTypeId { get; set; } /// ///If the case area id. /// [ApiMember(Description="If the case area id.")] public virtual int CaseAreaId { get; set; } /// ///The case created by. /// [ApiMember(Description="The case created by.")] public virtual string CreatedBy { get; set; } /// ///The case updated by. /// [ApiMember(Description="The case updated by.")] public virtual string UpdatedBy { get; set; } /// ///The case solved by. /// [ApiMember(Description="The case solved by.")] public virtual string SolvedBy { get; set; } /// ///If case updated date. /// [ApiMember(Description="If case updated date.")] public virtual DateTime Updated { get; set; } /// ///If case created date. /// [ApiMember(Description="If case created date.")] public virtual DateTime Created { get; set; } /// ///Who owns the support case. /// [ApiMember(Description="Who owns the support case.")] public virtual string CaseOwner { get; set; } /// ///The case status information. /// [ApiMember(Description="The case status information.")] public virtual SupportCaseStatusResponse CaseStatus { get; set; } /// ///The case type information. /// [ApiMember(Description="The case type information.")] public virtual SupportCaseTypeResponse CaseType { get; set; } /// ///The case area information. /// [ApiMember(Description="The case area information.")] public virtual SupportCaseAreaResponse CaseArea { get; set; } /// ///The case comments. /// [ApiMember(Description="The case comments.")] public virtual List Comments { get; set; } /// ///The case attachments. /// [ApiMember(Description="The case attachments.")] public virtual List Attachments { get; set; } /// ///The case status options to select from. /// [ApiMember(Description="The case status options to select from.")] public virtual List CaseStatusOptions { get; set; } /// ///The case type options to select from. /// [ApiMember(Description="The case type options to select from.")] public virtual List CaseTypeOptions { get; set; } /// ///The case area options to select from. /// [ApiMember(Description="The case area options to select from.")] public virtual List CaseAreaOptions { get; set; } } public partial class SupportCaseStatusResponse { /// ///The status id /// [ApiMember(Description="The status id")] public virtual int Id { get; set; } /// ///The status name /// [ApiMember(Description="The status name")] public virtual string Name { get; set; } /// ///The status description /// [ApiMember(Description="The status description")] public virtual string Description { get; set; } /// ///The status icon /// [ApiMember(Description="The status icon")] public virtual string Icon { get; set; } /// ///The status color /// [ApiMember(Description="The status color")] public virtual string Color { get; set; } } public partial class SupportCaseTypeResponse { /// ///The type id /// [ApiMember(Description="The type id")] public virtual int Id { get; set; } /// ///The type name /// [ApiMember(Description="The type name")] public virtual string Name { get; set; } /// ///The type description /// [ApiMember(Description="The type description")] public virtual string Description { get; set; } } [Route("/support/cases/{Id}", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)] [ValidateRequest("IsAuthenticated")] public partial class UpdateSupportCase : IReturn, ISupportCase { /// ///Enter the company id, if blank company id and you are an admin, your company id will be used. /// [ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true)] public virtual Guid? CompanyId { get; set; } /// ///The support case id /// [ApiMember(Description="The support case id", ParameterType="path")] public virtual int Id { get; set; } /// ///The case title. /// [ApiMember(Description="The case title.")] public virtual string Title { get; set; } /// ///The case description. /// [ApiMember(Description="The case description.")] public virtual string Description { get; set; } /// ///If the case type id. /// [ApiMember(Description="If the case type id.")] public virtual int? CaseTypeId { get; set; } /// ///If the case area id. /// [ApiMember(Description="If the case area id.")] public virtual int? CaseAreaId { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } public partial interface ISupportCase : ICompany { int Id { get; set; } } }