/* Options: Date: 2026-09-23 03:01:22 Version: 10.05 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: UpdateArticleMappings.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class ArticleMappingToHandle { /** @description The id of an existing mapping to update; leave empty to create a new one */ // @ApiMember(Description="The id of an existing mapping to update; leave empty to create a new one") public Id?: string; /** @description The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") public ArticleId: number; /** @description The Reference Type: StripeArticle = 1, EAccountingArticle = 2 */ // @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") public ReferenceType: string; /** @description The external reference; Values for EAccountingArticle, StripeArticle */ // @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") public ExternalReference: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ArticleMappingResponse { /** @description The company id */ // @ApiMember(Description="The company id") public CompanyId: string; /** @description The id */ // @ApiMember(Description="The id") public Id: string; /** @description The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") public ArticleId: number; /** @description The external reference */ // @ApiMember(Description="The external reference") public ExternalReference: string; /** @description The Reference Type */ // @ApiMember(Description="The Reference Type") public ReferenceType: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/articles/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") export class UpdateArticleMappings implements IReturn, ICompany { /** @description Company to update article mappings for */ // @ApiMember(Description="Company to update article mappings for") public CompanyId?: string; /** @description The article mappings to create or update */ // @ApiMember(Description="The article mappings to create or update", IsRequired=true) public ArticleMappings: ArticleMappingToHandle[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'UpdateArticleMappings'; } public getMethod() { return 'PUT'; } public createResponse() { return new Array(); } }