/* Options: Date: 2024-11-21 11:44:28 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: CreateRebateCodeTransaction.* //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; using BokaMera.API.ServiceModel.Enums; namespace BokaMera.API.ServiceModel.Dtos { [Route("/rebatecodes/transactions", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateRebateCodeTransaction : IReturn { /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual Guid? CompanyId { get; set; } /// ///Rebate code id to which you wish to add transaction /// [ApiMember(Description="Rebate code id to which you wish to add transaction", IsRequired=true)] public virtual int RebateCodeId { get; set; } [ApiMember(IsRequired=true)] public virtual double Amount { get; set; } [ApiMember(IsRequired=true)] public virtual int Usage { get; set; } [ApiMember] public virtual int? BookingId { get; set; } /// ///If you want to Increase = 0 or Decrease = 1 the value /// [ApiMember(Description="If you want to Increase = 0 or Decrease = 1 the value", IsRequired=true)] public virtual AmountChangeType ChangeType { 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 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; } } public partial class RebateCodeTransactionResponse { public virtual ResponseStatus ResponseStatus { get; set; } public virtual RebateCodeTransactionQueryResponse RebateCodeTransactionItem { get; set; } } } namespace BokaMera.API.ServiceModel.Enums { public enum AmountChangeType { Increase, Decrease, } }