public DirectDebitTransactionInformation9(
     PaymentIdentification1 paymentIdentification,
     PaymentTypeInformation20 paymentTypeInformation,
     ActiveOrHistoricCurrencyAndAmount instructedAmount,
     ChargeBearerType1Code chargeBearer,
     bool chargeBearerSpecified,
     DirectDebitTransaction6 directDebitTransaction,
     PartyIdentification32 ultimateCreditor,
     BranchAndFinancialInstitutionIdentification4 debtorAgent,
     CashAccount16 debtorAgentAccount,
     PartyIdentification32 debtor,
     CashAccount16 debtorAccount,
     PartyIdentification32 ultimateDebtor,
     string instructionForCreditorAgent,
     Purpose2Choice purpose,
     RegulatoryReporting3[] regulatoryReporting,
     TaxInformation3 tax,
     RemittanceLocation2[] relatedRemittanceInformation,
     RemittanceInformation5 remittanceInformation)
 {
     this.pmtIdField = paymentIdentification;
     this.pmtTpInfField = paymentTypeInformation;
     this.instdAmtField = instructedAmount;
     this.chrgBrField = chargeBearer;
     this.chrgBrFieldSpecified = chargeBearerSpecified;
     this.drctDbtTxField=directDebitTransaction;
     this.ultmtCdtrField=ultimateCreditor;
     this.dbtrAgtField=debtorAgent;
     this.dbtrAgtAcctField=debtorAgentAccount;
     this.dbtrField = debtor;
     this.dbtrAcctField = debtorAccount;
     this.ultmtDbtrField = ultimateDebtor;
     this.instrForCdtrAgtField = instructionForCreditorAgent;
     this.purpField = purpose;
     this.rgltryRptgField = (RegulatoryReporting3[])regulatoryReporting.Clone();
     this.taxField = tax;
     this.rltdRmtInfField=(RemittanceLocation2[])relatedRemittanceInformation.Clone();
     this.rmtInfField = remittanceInformation;
 }
Example #2
0
        public void AddPayment(decimal amount, string creditorName, IBANBIC creditorAccount, string uniqueCreditTransferID, BelgianStructuredCommunicationReference remittanceInformation)
        {
            var ri = new RemittanceInformation5
            {
                Strd = new[] { new StructuredRemittanceInformation7
                               {
                                   CdtrRefInf = new CreditorReferenceInformation2
                                   {
                                       Tp = new CreditorReferenceType2
                                       {
                                           CdOrPrtry = new CreditorReferenceType1Choice
                                           {
                                               Item = DocumentType3Code.SCOR
                                           },
                                           Issr = "BBA",
                                       },
                                       Ref = remittanceInformation.ToString(),
                                   }
                               } }
            };

            AddPayment(amount, creditorName, creditorAccount, uniqueCreditTransferID, ri);
        }
Example #3
0
 private void AddPayment(decimal amount, string creditorName, IBANBIC creditorAccount, string uniqueCreditTransferID, RemittanceInformation5 remittanceInformation = null)
 {
     creditTransfers.Add(new CreditTransferTransactionInformation10
     {
         PmtId = new PaymentIdentification1
         {
             EndToEndId = Truncate(uniqueCreditTransferID, maxLengthID),
         },
         Amt = new AmountType3Choice
         {
             Item = new ActiveOrHistoricCurrencyAndAmount
             {
                 Value = amount,
                 Ccy   = "EUR",
             },
         },
         Cdtr = new PartyIdentification32
         {
             Nm = Truncate(creditorName, maxLengthName),
         },
         CdtrAcct = new CashAccount16
         {
             Id = new AccountIdentification4Choice
             {
                 Item = creditorAccount.IBAN,
             },
         },
         RmtInf = remittanceInformation,
     });
 }