/* Options: Date: 2024-11-21 13:22:31 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: CreateRebateCode.* //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.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class ArticleResponse { public ArticleResponse() { Services = new List{}; ServiceIds = new List{}; } public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual int ArticleTypeId { get; set; } public virtual string Description { get; set; } public virtual string ImageUrl { get; set; } public virtual bool Active { get; set; } public virtual int Amount { get; set; } public virtual double Price { get; set; } public virtual string CurrencyId { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual List Services { get; set; } public virtual List ServiceIds { get; set; } public virtual string PriceSign { get; set; } } [Route("/rebatecodes", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateRebateCode : IReturn { public CreateRebateCode() { DaysOfWeek = new List{}; Services = new List{}; Customers = new List{}; } /// /// /// [ApiMember(Description="")] public virtual Guid? CompanyId { get; set; } /// ///The default value is 9999 /// [ApiMember(Description="The default value is 9999")] public virtual int? MaxNumberOfUses { get; set; } /// ///The default value is 1 /// [ApiMember(Description="The default value is 1")] public virtual int? MaxNumberOfUsesPerCustomer { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual DateTime ValidFrom { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual DateTime ValidTo { get; set; } /// ///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. /// [ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")] public virtual TimeSpan? FromTime { get; set; } /// ///If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. /// [ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.")] public virtual TimeSpan? ToTime { get; set; } /// ///1 - Percent, 2 - Сurrency, 3 - PunchTicket, 4 - ValueCard, 5 - GiftCard /// [ApiMember(Description="1 - Percent, 2 - Сurrency, 3 - PunchTicket, 4 - ValueCard, 5 - GiftCard", IsRequired=true)] public virtual int RebateCodeTypeId { get; set; } /// ///If it's connected to an Article, add the Article Id here. /// [ApiMember(Description="If it's connected to an Article, add the Article Id here.")] public virtual int? ArticleId { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual int RebateCodeValue { get; set; } /// ///If AutoGenerateRebateCodeSign=false - more than four letters, unique among active codes /// [ApiMember(Description="If AutoGenerateRebateCodeSign=false - more than four letters, unique among active codes")] public virtual string RebateCodeSign { get; set; } /// ///AutoGenerateRebateCodeSign=true - random generate code /// [ApiMember(Description="AutoGenerateRebateCodeSign=true - random generate code")] public virtual bool AutoGenerateRebateCodeSign { get; set; } /// /// /// [ApiMember(Description="")] public virtual string PersonalNote { get; set; } /// /// /// [ApiMember(Description="")] public virtual List DaysOfWeek { get; set; } /// /// /// [ApiMember(Description="")] public virtual List Services { get; set; } /// /// /// [ApiMember(Description="")] public virtual List Customers { get; set; } /// ///The price /// [ApiMember(Description="The price")] public virtual decimal? PriceVat { get; set; } /// ///The price currency /// [ApiMember(Description="The price currency")] public virtual string CurrencyId { get; set; } /// ///Promo code Receiver infomration /// [ApiMember(Description="Promo code Receiver infomration")] public virtual PromoCodeReceiver PromoCodeReceiver { get; set; } } public partial class DaysOfWeekResponse { public virtual int Id { get; set; } public virtual string DayOfWeek { get; set; } public virtual string DayOfWeekTranslation { get; set; } public virtual bool? DayOfWeekActive { get; set; } public virtual short? DayOfWeekSortOrder { get; set; } } public partial class PromoCodeReceiver { public virtual Guid? CustomerId { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string ReceiverMessage { get; set; } } public partial class RebateCodeCustomerResponse { public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string Phone { get; set; } public virtual string ImageUrl { get; set; } } public partial class RebateCodeResponse { public RebateCodeResponse() { DaysOfWeek = new List{}; Services = new List{}; Transactions = new List{}; Customers = new List{}; } public virtual int Id { get; set; } public virtual Guid? CompanyId { get; set; } public virtual DateTime ValidFrom { get; set; } public virtual DateTime ValidTo { get; set; } /// ///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. /// [ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")] public virtual TimeSpan FromTime { get; set; } /// ///If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. /// [ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.")] public virtual TimeSpan ToTime { get; set; } public virtual string CreatedBy { get; set; } public virtual DateTime Created { get; set; } public virtual string UpdatedBy { get; set; } public virtual DateTime Updated { get; set; } public virtual string PersonalNote { get; set; } public virtual string RebateCodeSign { get; set; } public virtual int RebateCodeValue { get; set; } public virtual int RebateCodeTypeId { get; set; } public virtual string Name { get; set; } public virtual int RebateCodeStatusId { get; set; } public virtual string StatusName { get; set; } public virtual int MaxNumberOfUses { get; set; } public virtual int MaxNumberOfUsesPerCustomer { get; set; } public virtual int NumberOfUsesUsed { get; set; } public virtual List DaysOfWeek { get; set; } public virtual List Services { get; set; } public virtual ArticleResponse Article { get; set; } public virtual List Transactions { get; set; } public virtual double? RemainingAmount { get; set; } public virtual int? RemainingUsage { get; set; } public virtual List Customers { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } public virtual bool PaymentReceived { get; set; } public virtual string RebateCodeCurrencySign { get; set; } public virtual bool ActiveByStatus { get; set; } public virtual string PriceSign { get; set; } public virtual string RebateCodeTypeName { get; set; } } public partial class RebateCodeServiceResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual bool Active { get; set; } } public partial class RebateCodeTransactionQueryResponse { public virtual int Id { get; set; } public virtual Guid CompanyId { get; set; } public virtual string Note { get; set; } public virtual int RebateCodeId { get; set; } public virtual string RebateCodeSign { get; set; } public virtual int? RebateCodeTypeId { get; set; } public virtual string RebateCodeTypeName { get; set; } public virtual double Amount { get; set; } public virtual int? BookingId { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual RebateCodeServiceResponse Service { get; set; } public virtual RebateCodeCustomerResponse Customer { get; set; } public virtual string PriceSign { get; set; } } }