/* Options: Date: 2024-10-16 12:26:27 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: ExportRebateCode.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum SendReceiptMethod { Email, PdfExport, } // @Route("/rebatecodes/{RebateCodeId}/reports", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ExportRebateCode implements ICompany, IConvertible, IGet { /** * Id of the rebate code */ // @ApiMember(Description="Id of the rebate code", IsRequired=true, ParameterType="path") int? RebateCodeId; /** * 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; SendReceiptMethod? SendReceiptMethod; ExportRebateCode({this.RebateCodeId,this.CompanyId,this.SendReceiptMethod}); ExportRebateCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RebateCodeId = json['RebateCodeId']; CompanyId = json['CompanyId']; SendReceiptMethod = JsonConverters.fromJson(json['SendReceiptMethod'],'SendReceiptMethod',context!); return this; } Map toJson() => { 'RebateCodeId': RebateCodeId, 'CompanyId': CompanyId, 'SendReceiptMethod': JsonConverters.toJson(SendReceiptMethod,'SendReceiptMethod',context!) }; getTypeName() => "ExportRebateCode"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SendReceiptMethod': TypeInfo(TypeOf.Enum, enumValues:SendReceiptMethod.values), 'ExportRebateCode': TypeInfo(TypeOf.Class, create:() => ExportRebateCode()), });