/* Options: Date: 2024-06-17 04:04:56 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: AddRating.* //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 { [Route("/rating/", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class AddRating : 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. /// [ApiMember(Description="The identifier for the booking, use to verify the booking.", IsRequired=true)] public virtual string Identifier { get; set; } /// ///The rating score between 1 and 5. /// [ApiMember(Description="The rating score between 1 and 5.", IsRequired=true)] public virtual int RatingScore { get; set; } /// ///The review for the rating /// [ApiMember(Description="The review for the rating")] public virtual CreateReview Review { get; set; } } 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 CreateReview { /// ///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 author /// [ApiMember(Description="The review author")] public virtual string ReviewAnswer { 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; } } }