/* Options: Date: 2026-09-23 09:36:07 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.dev //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateArticleMappings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class ArticleMappingToHandle implements IConvertible { /** * 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") String? Id; /** * The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") int ArticleId = 0; /** * The Reference Type: StripeArticle = 1, EAccountingArticle = 2 */ // @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") String ReferenceType = ""; /** * The external reference; Values for EAccountingArticle, StripeArticle */ // @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") String ExternalReference = ""; ArticleMappingToHandle({this.Id,this.ArticleId,this.ReferenceType,this.ExternalReference}); ArticleMappingToHandle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ArticleId = json['ArticleId']; ReferenceType = json['ReferenceType']; ExternalReference = json['ExternalReference']; return this; } Map toJson() => { 'Id': Id, 'ArticleId': ArticleId, 'ReferenceType': ReferenceType, 'ExternalReference': ExternalReference }; getTypeName() => "ArticleMappingToHandle"; TypeContext? context = _ctx; } class ArticleMappingResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String CompanyId = ""; /** * The id */ // @ApiMember(Description="The id") String Id = ""; /** * The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") int ArticleId = 0; /** * The external reference */ // @ApiMember(Description="The external reference") String ExternalReference = ""; /** * The Reference Type */ // @ApiMember(Description="The Reference Type") String ReferenceType = ""; ArticleMappingResponse({this.CompanyId,this.Id,this.ArticleId,this.ExternalReference,this.ReferenceType}); ArticleMappingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; ArticleId = json['ArticleId']; ExternalReference = json['ExternalReference']; ReferenceType = json['ReferenceType']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'ArticleId': ArticleId, 'ExternalReference': ExternalReference, 'ReferenceType': ReferenceType }; getTypeName() => "ArticleMappingResponse"; TypeContext? context = _ctx; } // @Route("/articles/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class UpdateArticleMappings implements IReturn>, ICompany, IConvertible, IPut { /** * Company to update article mappings for */ // @ApiMember(Description="Company to update article mappings for") String? CompanyId; /** * The article mappings to create or update */ // @ApiMember(Description="The article mappings to create or update", IsRequired=true) List ArticleMappings = []; UpdateArticleMappings({this.CompanyId,this.ArticleMappings}); UpdateArticleMappings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ArticleMappings = JsonConverters.fromJson(json['ArticleMappings'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'ArticleMappings': JsonConverters.toJson(ArticleMappings,'List',context!) }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "UpdateArticleMappings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.dev', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ArticleMappingToHandle': TypeInfo(TypeOf.Class, create:() => ArticleMappingToHandle()), 'ArticleMappingResponse': TypeInfo(TypeOf.Class, create:() => ArticleMappingResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UpdateArticleMappings': TypeInfo(TypeOf.Class, create:() => UpdateArticleMappings()), 'List': TypeInfo(TypeOf.Class, create:() => []), });