/* Options: Date: 2024-06-17 00:08:59 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteRebateCode.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @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 DaysOfWeekResponse { public Id: number; public DayOfWeek: string; public DayOfWeekTranslation: string; public DayOfWeekActive?: boolean; public DayOfWeekSortOrder?: number; 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 RebateCodeTypeResponse { public ResponseStatus: ResponseStatus; public RebateCodeTypeItems: RebateCodeTypeItem[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeStatusResponse { public ResponseStatus: ResponseStatus; public RebateCodeStatusItems: RebateCodeStatusItem[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodeResponse { public Id: number; public CompanyId?: string; public ValidFrom: string; public ValidTo: string; /** @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. */ // @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 FromTime: string; /** @description 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 ToTime: string; public CreatedBy: string; public Created: string; public UpdatedBy: string; public Updated: string; public PersonalNote: string; public RebateCodeSign: string; public RebateCodeValue: number; public RebateCodeTypeId: number; public Name: string; public RebateCodeStatusId: number; public StatusName: string; public MaxNumberOfUses: number; public MaxNumberOfUsesPerCustomer: number; public NumberOfUsesUsed: number; public NumberOfUsesPerCustomerUsed: number; public DaysOfWeek: DaysOfWeekResponse[]; public Services: RebateCodeServiceResponse[]; public Customers: RebateCodeCustomerResponse[]; public RebateCodeTypesOptions: RebateCodeTypeResponse[]; public RebateCodeStatusOptions: RebateCodeStatusResponse[]; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/rebatecodes/{Id}", "DELETE") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class DeleteRebateCode implements IReturn, ICompany { /** @description */ // @ApiMember(Description="") public CompanyId?: string; /** @description Id of the rebate code */ // @ApiMember(Description="Id of the rebate code", IsRequired=true, ParameterType="path") public Id: number; public ForceDelete: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeleteRebateCode'; } public getMethod() { return 'DELETE'; } public createResponse() { return new RebateCodeResponse(); } }