/* Options: Date: 2024-11-21 12:12:57 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: GetRebateCodeType.* //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 RebateCodeTypeResponse { public Id: number; public Name: string; public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeTypeQueryResponse { public ResponseStatus: ResponseStatus; public RebateCodeTypeItems: RebateCodeTypeResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/rebatecodes/types", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class GetRebateCodeType implements IReturn { /** @description RebateCodeId */ // @ApiMember(Description="RebateCodeId") public Id?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetRebateCodeType'; } public getMethod() { return 'GET'; } public createResponse() { return new RebateCodeTypeQueryResponse(); } }