/* Options: Date: 2026-09-23 05:51:11 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: ArticleMappingsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } 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", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ArticleMappingsQuery implements IReturn>, ICompany, IConvertible, IGet { /** * Company to show article mappings for */ // @ApiMember(Description="Company to show article mappings for") String? CompanyId; /** * The Reference Type to filter on: StripeArticle, EAccountingArticle */ // @ApiMember(Description="The Reference Type to filter on: StripeArticle, EAccountingArticle") String ReferenceType = ""; /** * Article to show mappings for */ // @ApiMember(Description="Article to show mappings for") int? ArticleId; ArticleMappingsQuery({this.CompanyId,this.ReferenceType,this.ArticleId}); ArticleMappingsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ReferenceType = json['ReferenceType']; ArticleId = json['ArticleId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'ReferenceType': ReferenceType, 'ArticleId': ArticleId }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "ArticleMappingsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.dev', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ArticleMappingResponse': TypeInfo(TypeOf.Class, create:() => ArticleMappingResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ArticleMappingsQuery': TypeInfo(TypeOf.Class, create:() => ArticleMappingsQuery()), });