/* Options: Date: 2024-11-21 16:52:32 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: CreateArticle.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } 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", "POST") export class CreateArticle implements IReturn { /** @description */ // @ApiMember(Description="") public CompanyId?: string; /** @description */ // @ApiMember(Description="", IsRequired=true) public Name: string; /** @description */ // @ApiMember(Description="", IsRequired=true) public ArticleTypeId: number; /** @description */ // @ApiMember(Description="", IsRequired=true) public Description: string; /** @description */ // @ApiMember(Description="") public ImageUrl: string; /** @description */ // @ApiMember(Description="", IsRequired=true) public Active: boolean; /** @description */ // @ApiMember(Description="", IsRequired=true) public Amount: number; /** @description . */ // @ApiMember(Description=".", IsRequired=true) public Price: number; /** @description The payment currency id */ // @ApiMember(Description="The payment currency id", IsRequired=true) 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 'CreateArticle'; } public getMethod() { return 'POST'; } public createResponse() { return new ArticleResponse(); } }