/* Options: Date: 2024-07-03 12:58:13 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: GetPricesAfterRebateCode.* //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 RebateCodeTypeItem { public Id: number; public Name: string; public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AppliedRebateCodesResponse { public RebateCodeSign: string; public RebateCodeValue: number; public RebateCodeType: RebateCodeTypeItem; public RebateCodeId: number; public RebateAmount: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodePrice { /** @description Price Id */ // @ApiMember(Description="Price Id") public PriceId?: number; public PriceText: string; public PriceBeforeRebate?: number; public Price?: number; public VAT?: number; public AppliedCodes: AppliedRebateCodesResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RebateCodePriceResponse { public RebateCodePrices: RebateCodePrice[]; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/rebatecodes/prices", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class GetPricesAfterRebateCode implements IReturn { /** @description */ // @ApiMember(Description="", IsRequired=true) public CompanyId: string; /** @description 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 ServiceId?: number; /** @description 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 RebateCodeIds: number[]; /** @description 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 RebateCodeSigns: string[]; /** @description 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 DateFrom: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetPricesAfterRebateCode'; } public getMethod() { return 'POST'; } public createResponse() { return new RebateCodePriceResponse(); } }