/* Options: Date: 2024-11-21 12:31:12 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: UpdateArticle.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class BaseModel { public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ArticleServiceRelation extends BaseModel { // @Required() public CompanyId: string; public Id: number; // @Required() public ServiceId: number; // @Required() public ArticleId: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class ArticleResponse { public CompanyId: string; public Id: number; public Name: string; public ArticleTypeId: number; public Description: string; public ImageUrl: string; public Active: boolean; public Amount: number; public Price: number; public CurrencyId: string; public UpdatedDate: string; public CreatedDate: string; public Services: ArticleServiceRelation[]; public ServiceIds: number[]; public PriceSign: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/articles/{Id}", "PUT") export class UpdateArticle implements IReturn, ICompany { /** @description */ // @ApiMember(Description="", IsRequired=true, ParameterType="query") public Id: number; /** @description */ // @ApiMember(Description="") public CompanyId?: string; /** @description */ // @ApiMember(Description="") public Name: string; /** @description */ // @ApiMember(Description="") public ArticleTypeId?: number; /** @description */ // @ApiMember(Description="") public Description: string; /** @description */ // @ApiMember(Description="") public ImageUrl: string; /** @description */ // @ApiMember(Description="") public Active?: boolean; /** @description */ // @ApiMember(Description="") public Amount: number; /** @description . */ // @ApiMember(Description=".") public Price: number; /** @description The payment currency id */ // @ApiMember(Description="The payment currency id") public CurrencyId: string; /** @description Query for specific services. */ // @ApiMember(Description="Query for specific services.", ParameterType="query") public ServiceIds: number[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'UpdateArticle'; } public getMethod() { return 'PUT'; } public createResponse() { return new ArticleResponse(); } }