/* Options: Date: 2024-07-03 14:18:27 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: UpdateRating.* //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.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class CompanyRatingResponse { /// /// /// [ApiMember(Description="")] public virtual Guid CompanyId { get; set; } /// ///Id of the booking /// [ApiMember(Description="Id of the booking")] public virtual int BookingId { get; set; } /// ///The status of the rating, 1 = Active /// [ApiMember(Description="The status of the rating, 1 = Active")] public virtual int Status { get; set; } /// ///The rating score /// [ApiMember(Description="The rating score")] public virtual int RatingScore { get; set; } /// ///The review if any exists to the rating /// [ApiMember(Description="The review if any exists to the rating")] public virtual RatingReviewResponse Review { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual DateTime UpdatedDate { get; set; } } public partial class RatingReviewResponse { /// ///The title for the review /// [ApiMember(Description="The title for the review")] public virtual string Title { get; set; } /// ///The description for the review /// [ApiMember(Description="The description for the review")] public virtual string Description { get; set; } /// ///The rating score /// [ApiMember(Description="The rating score")] public virtual int RatingScore { get; set; } /// ///The review author /// [ApiMember(Description="The review author")] public virtual string Author { get; set; } /// ///The created date /// [ApiMember(Description="The created date")] public virtual DateTime Created { get; set; } /// ///The review answer from the company /// [ApiMember(Description="The review answer from the company")] public virtual string ReviewAnswer { get; set; } } [Route("/rating/", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class UpdateRating : IReturn { /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual Guid? CompanyId { get; set; } /// ///Id of the booking /// [ApiMember(Description="Id of the booking", IsRequired=true)] public virtual int BookingId { get; set; } /// ///The identifier for the booking, use to verify the booking. Only needed when a customer, not admin /// [ApiMember(Description="The identifier for the booking, use to verify the booking. Only needed when a customer, not admin")] public virtual string Identifier { get; set; } /// ///The rating score between 1 and 5. /// [ApiMember(Description="The rating score between 1 and 5.")] public virtual int? RatingScore { get; set; } /// ///The review for the rating /// [ApiMember(Description="The review for the rating")] public virtual UpdateReview Review { get; set; } } public partial class UpdateReview { /// ///The title for the review /// [ApiMember(Description="The title for the review")] public virtual string Title { get; set; } /// ///The description for the review /// [ApiMember(Description="The description for the review")] public virtual string Description { get; set; } /// ///The review author /// [ApiMember(Description="The review author")] public virtual string Author { get; set; } /// ///The review answer from the company. Only the company can respond to this /// [ApiMember(Description="The review answer from the company. Only the company can respond to this")] public virtual string ReviewAnswer { get; set; } } }