/* Options: Date: 2024-11-21 11:33:16 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: CreateArticleRebateCode.* //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.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/fromarticle", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class CreateArticleRebateCode : IReturn, ICompany { /// /// /// [ApiMember(Description="")] public virtual Guid? CompanyId { get; set; } /// ///Article ID for the rebate code /// [ApiMember(Description="Article ID for the rebate code", IsRequired=true)] public virtual int ArticleId { get; set; } /// ///Customer infomration /// [ApiMember(Description="Customer infomration")] public virtual CustomerToHandle Customer { get; set; } /// ///Promo code Receiver information /// [ApiMember(Description="Promo code Receiver information")] public virtual PromoCodeReceiver Receiver { get; set; } } public partial class CustomerToHandle { 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 Phone { get; set; } public virtual bool SubscribedToNewsletter { 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; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }