Skip to content

Commit

Permalink
- new version 3.0.4
Browse files Browse the repository at this point in the history
- added UnstructuredRemittanceInformation and AdditionalRemittanceInformation to TransactionIBANandSCOR
  • Loading branch information
ThomasEnioKohler committed Jul 18, 2023
1 parent bac2268 commit 417ff92
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 7 deletions.
6 changes: 3 additions & 3 deletions iso20022-generator/generator-test/GeneratorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void InitGenerator()
{
UniqueDocumentId = Guid.NewGuid().ToString().Substring(0, 34), // Must be unique for the bank within 90 days
ContactDetailsName = "enio AG",
ContactDetailsOther = "3.0.3",
ContactDetailsOther = "3.0.4",
AutoCalculateControlSum = true
// SenderBic = "ZKBKCHZZ80A" //ZKB
},
Expand Down Expand Up @@ -93,7 +93,7 @@ public void InitGenerator()
{
UniqueDocumentId = Guid.NewGuid().ToString().Substring(0, 34), // Must be unique for the bank within 90 days
ContactDetailsName = "enio AG",
ContactDetailsOther = "3.0.3",
ContactDetailsOther = "3.0.4",
AutoCalculateControlSum = true
// SenderBic = "ZKBKCHZZ80A" //ZKB
},
Expand Down Expand Up @@ -132,7 +132,7 @@ public void InitGenerator()
{
UniqueDocumentId = Guid.NewGuid().ToString().Substring(0, 34), // Must be unique for the bank within 90 days
ContactDetailsName = "enio AG",
ContactDetailsOther = "3.0.3",
ContactDetailsOther = "3.0.4",
AutoCalculateControlSum = true
},
new Sender()
Expand Down
13 changes: 13 additions & 0 deletions iso20022-generator/iso20022-generator/Pain001Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,19 @@ public void AddTransaction(PaymentInstructionInformation3CH pmtInf, Receiver rec
}
}
};

if (transactionIbaNandSCOR.AdditionalRemittanceInformation?.Length > 0)
{
rmtInf.Strd.AddtlRmtInf = transactionIbaNandSCOR.AdditionalRemittanceInformation;
}
} else
{
if (!string.IsNullOrWhiteSpace(transactionIbaNandSCOR.UnstructuredRemittanceInformation))
{
var rmtInf = new RemittanceInformation5CH();
cdtTrfTxInf.RmtInf = rmtInf;
rmtInf.Ustrd = transactionIbaNandSCOR.UnstructuredRemittanceInformation;
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions iso20022-generator/iso20022-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ https://www.six-group.com/dam/download/banking-services/interbank-clearing/de/st
| IBAN/QRR | 3 | TransactionIBANandQRR | |
| IBAN/SCOR | 3 | TransactionIBANandSCOR | |

# Version Information
## 3.0.4 (2023-07-18)
- added UnstructuredRemittanceInformation and AdditionalRemittanceInformation to TransactionIBANandSCOR

# Version Information
## 3.0.3 (2023-05-08)
- added boolean value batchBookingSpezified to enable export of pmtInf.BtchBookg flag properly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Initialization

private decimal _controlSum;
private string _contactDetailsName = "iso20022-Generator / enio AG";
private string _contactDetailsOther = "3.0.3";
private string _contactDetailsOther = "3.0.4";

public decimal ControlSum
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ public class TransactionIBANandSCOR : TransactionBase
private string _receiverIban;
private string _scorNumber;

public string UnstructuredRemittanceInformation { get; set; }

public string[] AdditionalRemittanceInformation { get; set; }

public string ReceiverIban
{
get => _receiverIban;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<PackageLicenseUrl></PackageLicenseUrl>
<PackageId>iso20022Generator</PackageId>
<Product>iso20022Generator</Product>
<Version>3.0.3</Version>
<Version>3.0.4</Version>
<Copyright>enio AG</Copyright>
<Description>This generator library helps you building iso 20022 artifacts with the minimum amount of information you need to set up valid documents. Currently pain.001 files are only supported.</Description>
<AssemblyVersion>3.0.3.0</AssemblyVersion>
<FileVersion>3.0.3.0</FileVersion>
<AssemblyVersion>3.0.4.0</AssemblyVersion>
<FileVersion>3.0.4.0</FileVersion>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
Expand Down

0 comments on commit 417ff92

Please sign in to comment.