Fixed setting all account information on KontoverbindungInternation for SEPA money transfer
This commit is contained in:
parent
593ad2be8e
commit
8bc3f0fe8e
|
@ -22,7 +22,7 @@ open class SepaBankTransferBase(
|
||||||
1,
|
1,
|
||||||
sepaDescriptorUrn,
|
sepaDescriptorUrn,
|
||||||
if (sepaDescriptorUrn.contains("pain.001.003.03", true)) "pain.001.003.03.xml" else "pain.001.001.03.xml",
|
if (sepaDescriptorUrn.contains("pain.001.003.03", true)) "pain.001.003.03.xml" else "pain.001.001.03.xml",
|
||||||
account.iban ?: "", // TODO: what to do if iban is not set?
|
account,
|
||||||
debitorBic,
|
debitorBic,
|
||||||
mapOf(
|
mapOf(
|
||||||
SepaMessageCreator.NumberOfTransactionsKey to "1", // TODO: may someday support more then one transaction per file
|
SepaMessageCreator.NumberOfTransactionsKey to "1", // TODO: may someday support more then one transaction per file
|
||||||
|
|
|
@ -7,6 +7,7 @@ import net.dankito.fints.messages.datenelementgruppen.implementierte.Segmentkopf
|
||||||
import net.dankito.fints.messages.datenelementgruppen.implementierte.account.KontoverbindungInternational
|
import net.dankito.fints.messages.datenelementgruppen.implementierte.account.KontoverbindungInternational
|
||||||
import net.dankito.fints.messages.segmente.Segment
|
import net.dankito.fints.messages.segmente.Segment
|
||||||
import net.dankito.fints.messages.segmente.id.ISegmentId
|
import net.dankito.fints.messages.segmente.id.ISegmentId
|
||||||
|
import net.dankito.fints.model.AccountData
|
||||||
|
|
||||||
|
|
||||||
open class SepaSegment(
|
open class SepaSegment(
|
||||||
|
@ -15,14 +16,14 @@ open class SepaSegment(
|
||||||
segmentVersion: Int,
|
segmentVersion: Int,
|
||||||
sepaDescriptorUrn: String,
|
sepaDescriptorUrn: String,
|
||||||
sepaFileName: String,
|
sepaFileName: String,
|
||||||
iban: String,
|
account: AccountData,
|
||||||
bic: String,
|
bic: String,
|
||||||
replacementStrings: Map<String, String>,
|
replacementStrings: Map<String, String>,
|
||||||
messageCreator: ISepaMessageCreator = SepaMessageCreator()
|
messageCreator: ISepaMessageCreator = SepaMessageCreator()
|
||||||
)
|
)
|
||||||
: Segment(listOf(
|
: Segment(listOf(
|
||||||
Segmentkopf(segmentId, segmentVersion, segmentNumber),
|
Segmentkopf(segmentId, segmentVersion, segmentNumber),
|
||||||
KontoverbindungInternational(iban, bic, null),
|
KontoverbindungInternational(account, bic),
|
||||||
object : AlphanumerischesDatenelement(sepaDescriptorUrn, Existenzstatus.Mandatory, 256) { },
|
object : AlphanumerischesDatenelement(sepaDescriptorUrn, Existenzstatus.Mandatory, 256) { },
|
||||||
SepaMessage(sepaFileName, replacementStrings, messageCreator)
|
SepaMessage(sepaFileName, replacementStrings, messageCreator)
|
||||||
))
|
))
|
Loading…
Reference in New Issue