/* Options: Date: 2024-11-21 12:30:43 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: GetPricesAfterRebateCode.* //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 AppliedRebateCodesResponse { public virtual string RebateCodeSign { get; set; } public virtual int RebateCodeValue { get; set; } public virtual RebateCodeTypeResponse RebateCodeType { get; set; } public virtual int RebateCodeId { get; set; } public virtual double RebateAmount { get; set; } } [Route("/rebatecodes/prices", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class GetPricesAfterRebateCode : IReturn { public GetPricesAfterRebateCode() { RebateCodeIds = new List{}; RebateCodeSigns = new List{}; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual Guid CompanyId { get; set; } /// ///The service you want to get the prices with rebates on /// [ApiMember(Description="The service you want to get the prices with rebates on")] public virtual int? ServiceId { get; set; } /// ///Provide this if you like to the prices with rebate code ids /// [ApiMember(Description="Provide this if you like to the prices with rebate code ids")] public virtual List RebateCodeIds { get; set; } /// ///Provide this if you like to the prices with rebate code signs instead of ids /// [ApiMember(Description="Provide this if you like to the prices with rebate code signs instead of ids")] public virtual List RebateCodeSigns { get; set; } /// ///Provide this if you like to calculate the prices with the provided datetime /// [ApiMember(Description="Provide this if you like to calculate the prices with the provided datetime", IsRequired=true)] public virtual DateTime DateFrom { get; set; } } public partial class RebateCodePrice { public RebateCodePrice() { AppliedCodes = new List{}; } /// ///Price Id /// [ApiMember(Description="Price Id")] public virtual int? PriceId { get; set; } public virtual string PriceText { get; set; } public virtual double? PriceBeforeRebate { get; set; } public virtual double? Price { get; set; } public virtual decimal? VAT { get; set; } public virtual List AppliedCodes { get; set; } } public partial class RebateCodePriceResponse { public RebateCodePriceResponse() { RebateCodePrices = new List{}; } public virtual List RebateCodePrices { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class RebateCodeTypeResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } } }