this.ubl4JConfigurationBean = ubl4JConfigurationBean;
}
setConstraints(InvoiceTypeConstraintFactory.createConstraints(this.ubl4JConfigurationBean));
for (org.openinvoice.ubl4j.core.invoice.constraint.InvoiceTypeConstraint constraint : constraints) {
if (!constraint.isRespected(invoiceType)) {
throw new FailedToRespectConstraintException(constraint);
}
}
return invoiceType;
}