/* Options: Date: 2025-06-08 17:13:37 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ExportPayableEntityReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum SendReceiptMethod { Email, PdfExport, } // @Route("/articles/{InternalReferenceId}/reports", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ExportPayableEntityReport implements ICompany, IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * Id of the internal reference (booking, rebate code, etc) */ // @ApiMember(Description="Id of the internal reference (booking, rebate code, etc)", IsRequired=true, ParameterType="path") String? InternalReferenceId; SendReceiptMethod? SendReceiptMethod; /** * Article type (Could be Service, rebate code types, etc.. */ // @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true) int? ArticleTypeId; ExportPayableEntityReport({this.CompanyId,this.InternalReferenceId,this.SendReceiptMethod,this.ArticleTypeId}); ExportPayableEntityReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; InternalReferenceId = json['InternalReferenceId']; SendReceiptMethod = JsonConverters.fromJson(json['SendReceiptMethod'],'SendReceiptMethod',context!); ArticleTypeId = json['ArticleTypeId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'InternalReferenceId': InternalReferenceId, 'SendReceiptMethod': JsonConverters.toJson(SendReceiptMethod,'SendReceiptMethod',context!), 'ArticleTypeId': ArticleTypeId }; getTypeName() => "ExportPayableEntityReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SendReceiptMethod': TypeInfo(TypeOf.Enum, enumValues:SendReceiptMethod.values), 'ExportPayableEntityReport': TypeInfo(TypeOf.Class, create:() => ExportPayableEntityReport()), });