/* Options: Date: 2024-11-21 13:44:33 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateRebateCodeTransaction.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeServiceResponse { public Id: number; public Name: string; public Description: string; public Active: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeCustomerResponse { public Id: string; public Firstname: string; public Lastname: string; public Email: string; public Phone: string; public ImageUrl: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeTransactionQueryResponse { public Id: number; public CompanyId: string; public Note: string; public RebateCodeId: number; public RebateCodeSign: string; public RebateCodeTypeId?: number; public RebateCodeTypeName: string; public Amount: number; public BookingId?: number; public UpdatedDate: string; public CreatedDate: string; public Service: RebateCodeServiceResponse; public Customer: RebateCodeCustomerResponse; public PriceSign: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum AmountChangeType { Increase = 'Increase', Decrease = 'Decrease', } export class RebateCodeTransactionResponse { public ResponseStatus: ResponseStatus; public RebateCodeTransactionItem: RebateCodeTransactionQueryResponse; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/rebatecodes/transactions", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class CreateRebateCodeTransaction implements IReturn { /** @description */ // @ApiMember(Description="", IsRequired=true) public CompanyId: string; /** @description 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 RebateCodeId: number; // @ApiMember(IsRequired=true) public Amount: number; // @ApiMember(IsRequired=true) public Usage: number; // @ApiMember() public BookingId?: number; /** @description 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 ChangeType: AmountChangeType; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateRebateCodeTransaction'; } public getMethod() { return 'POST'; } public createResponse() { return new RebateCodeTransactionResponse(); } }