validate
Checks that the compound extractions contain valid line items.
In case it's not valid an appropriate DigitalInvoiceException subclass will be thrown.
Parameters
compoundExtractions
a map of GiniCaptureCompoundExtractions
Throws
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.LineItemsMissingException
if line items are missing from the compound extractions
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.DescriptionMissingException
if description is missing from at least one line item
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.QuantityMissingException
if quantity is missing from at least one line item
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.GrossPriceMissingException
if gross price is missing from at least one line item
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.MixedCurrenciesException
if line items contain more than one currency
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.QuantityParsingException
if a line item's quantity field could not be parsed
net.gini.pay.bank.capture.digitalinvoice.DigitalInvoiceException.GrossPriceParsingException
if a line item's gross price field could not be parsed