This function is used to generate a SEPA file, based on a list of record stamps from various entities.
'List of documents to include in the SEPA file.
Dim SEPADocuments As New Dictionary(Of String, List(Of String))
Dim pdStringList As List(Of String) = New List(Of String)
Dim olbbStringList As List(Of String) = New List(Of String)
Dim expensesStringList As List(Of String) = New List(Of String)
Dim fcStringList As List(Of String) = New List(Of String)
Dim poStringList As List(Of String) = New List(Of String)
(...)
SEPADocuments.Add("expenses", expensesStringList)
SEPADocuments.Add("olbb", olbbStringList)
SEPADocuments.Add("pd", pdStringList)
SEPADocuments.Add("fc", fcStringList)
SEPADocuments.Add("po", poStringList)
'Selected bank account
Dim selectedBank = BlVO.blstamp
'Group SEPA payment lines based on suppliers' IBAN
Dim groupPaymentsByIBAN = true
'Record to attach the file.
Dim recordToAttachSEPAFile = itemVO
'Function call
SEPAResult = SDK.SEPA.CreateSepa(SEPADocuments, selectedBank, groupPaymentsByIBAN, recordToAttachSEPAFile)