Skip to content

Commit

Permalink
Added XML tag InstrForCdtrAgt (Index 2.81)
Browse files Browse the repository at this point in the history
Version 3.1.0 (2024-04-16)
- added XML tag InstrForCdtrAgt (Index 2.81). The element may only be used in consultation with the commissioned financial institution. This element may have different characteristics and instructions depending on the financial institution.
  • Loading branch information
ThomasEnioKohler committed Apr 16, 2024
1 parent ba4f577 commit 6add9ac
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
16 changes: 15 additions & 1 deletion iso20022-generator/generator-test/GeneratorTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using iso20022_generator;
using iso20022_generator.entity;
using iso20022_generator.entity.Transactions;
using iso20022_generator.schema;
using Xunit;

namespace generator_test
Expand Down Expand Up @@ -44,7 +46,19 @@ public void InitGenerator()
ReceiverIban = "CH26 0840 1016 9700 6070 6",
ReferenceIdentification = "Reference Id for Receiver",
InstructionForDebtorAgent = "Instruction",
UnstructuredRemittanceInformation = "Invoice Number 4399"
UnstructuredRemittanceInformation = "Invoice Number 4399",
InstructionsForCreditorAgent = new List<InstructionForCreditorAgent1> {
new InstructionForCreditorAgent1()
{
InstrInf = "Line 1 of InstructionForCreditorAgent"
},
new InstructionForCreditorAgent1()
{
Cd = Instruction3Code.CHQB,
CdSpecified = true,
InstrInf = "Line 2 of InstructionForCreditorAgent"
}
}
//ReceiverBIC = "MIGRCHZZXXX"
});

Expand Down
8 changes: 8 additions & 0 deletions iso20022-generator/iso20022-generator/Pain001Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
Expand Down Expand Up @@ -274,6 +275,13 @@ public void AddTransaction(PaymentInstructionInformation3CH pmtInf, Receiver rec
cdtTrfTxInf.InstrForDbtrAgt = transaction.InstructionForDebtorAgent; // Index 2.85
}

// Index 2.81 InstrForCdtrAgt -> The element may only be used in consultation with the commissioned financial institution.
// This element may have different characteristics and instructions depending on the financial institution.
if (transaction.InstructionsForCreditorAgent?.Count > 0)
{
cdtTrfTxInf.InstrForCdtrAgt = transaction.InstructionsForCreditorAgent.ToArray();
}

AddNewCreditTransferTransactionInformation(pmtInf, cdtTrfTxInf);
}

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.1.0 (2024-04-16)
- added XML tag InstrForCdtrAgt (Index 2.81). The element may only be used in consultation with the commissioned financial institution. This element may have different characteristics and instructions depending on the financial institution.

# Version Information
## 3.0.5 (2024-03-14)
- changed minimum length of IBAN to 15 (Norway)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using iso20022_generator.schema;

namespace iso20022_generator.entity.Transactions
{
Expand All @@ -25,5 +27,7 @@ public string CurrencyCode
public virtual string PaymentType => "";

public virtual string InstructionForDebtorAgent { get; set; }

public virtual List<InstructionForCreditorAgent1> InstructionsForCreditorAgent { get; set; }
}
}
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.5</Version>
<Version>3.1.0</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.5.0</AssemblyVersion>
<FileVersion>3.0.5.0</FileVersion>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
Expand Down

0 comments on commit 6add9ac

Please sign in to comment.