allow setting payment means and payment means information - also allow reading them in importer, fixes #516
This commit is contained in:
@@ -20,6 +20,16 @@ public class DirectDebit implements IZUGFeRDTradeSettlementDebit {
|
||||
*/
|
||||
protected String mandate;
|
||||
|
||||
/**
|
||||
* payment means code (BT-81 / UNTDID 4461)
|
||||
*/
|
||||
protected String paymentMeansCode = "59";
|
||||
|
||||
/**
|
||||
* Payment means description (BT-82)
|
||||
*/
|
||||
protected String paymentMeansInformation = "SEPA direct debit";
|
||||
|
||||
/**
|
||||
* bean constructor
|
||||
*/
|
||||
@@ -38,6 +48,16 @@ public class DirectDebit implements IZUGFeRDTradeSettlementDebit {
|
||||
this.mandate = mandate;
|
||||
}
|
||||
|
||||
public DirectDebit setPaymentMeansCode(String paymentMeansCode) {
|
||||
this.paymentMeansCode = paymentMeansCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DirectDebit setPaymentMeansInformation(String paymentMeansInformation) {
|
||||
this.paymentMeansInformation = paymentMeansInformation;
|
||||
return this;
|
||||
}
|
||||
|
||||
/***
|
||||
* getter for the IBAN
|
||||
* @return IBAN
|
||||
@@ -57,6 +77,16 @@ public class DirectDebit implements IZUGFeRDTradeSettlementDebit {
|
||||
return this.mandate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPaymentMeansCode() {
|
||||
return this.paymentMeansCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPaymentMeansInformation() {
|
||||
return this.paymentMeansInformation;
|
||||
}
|
||||
|
||||
public DirectDebit setMandate(String mandate) {
|
||||
this.mandate = mandate;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user