ZUGFeRDRESTService: WIP Prepare validation of buyer order reference

This commit is contained in:
Jonathan Jenne
2022-11-10 16:19:25 +01:00
parent cb2372e1e7
commit 923df866ed
4 changed files with 139 additions and 55 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
namespace ZUGFeRDRESTService.Controllers
{
public class ValidationResponse
{
public string status;
public string message;
public List<string> errors;
public ValidationResponse()
{
status = ValidationController.RESPONSE_OK;
message = string.Empty;
errors = new List<string>();
}
public ValidationResponse(string Status, string Message)
{
status = Status;
message = Message;
errors = new List<string>();
}
public ValidationResponse(string Status, string Message, List<String> Errors)
{
status = Status;
message = Message;
errors = Errors;
}
}
}