diff --git a/pain/api.go b/pain/api.go index 9973a59..20681bd 100644 --- a/pain/api.go +++ b/pain/api.go @@ -12,7 +12,6 @@ func NewDocument(initParty string) *Document { Contents: &PainXML{ GroupHeader: NewGrpHdr(initParty), PaymentInformation: make([]PmtInf, 0), - TransactionInformation: make([]TxInf, 0), }, } } diff --git a/pain/pain.go b/pain/pain.go index a66f694..28a484f 100644 --- a/pain/pain.go +++ b/pain/pain.go @@ -37,7 +37,6 @@ func (d *Document) Valid() error { type PainXML struct { GroupHeader *GrpHdr `xml:"GrpHdr"` PaymentInformation []PmtInf `xml:"PmtInf"` - TransactionInformation []TxInf `xml:"DrctDbtTxInf"` } func (p *PainXML) Valid() error { @@ -48,9 +47,6 @@ func (p *PainXML) Valid() error { if len(p.PaymentInformation) < 1 { err = append(err, "no payment information") } - if len(p.TransactionInformation) < 1 { - err = append(err, "no transaction information") - } if len(err) > 0 { return fmt.Errorf("pain XML not valid: %v", strings.Join(err, ", ")) @@ -105,10 +101,6 @@ func (meta *PmtTpInf) Valid() error { return nil } -type TxInf struct { - // TODO -} - type PartySEPA2 struct { PrivateId PersonIdSEPA2 `xml:"PrvtId"` }