mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Remove email from bank accounts and fasterpayment
This commit is contained in:
parent
f8ed97cb2e
commit
04fa5f079f
14 changed files with 29 additions and 121 deletions
|
@ -1463,7 +1463,9 @@ payment.restore.default=No, restore default currency
|
|||
payment.email=Email:
|
||||
payment.country=Country:
|
||||
payment.extras=Extra requirements:
|
||||
payment.us.info=Bank transfer with WIRE or ACH is not supported for the US because WIRE is too expensive and ACH has a high chargeback risk.\n\nPlease use payment methods \"Zelle (ClearXchange)\", \"US Postal Money Order\" or \"Cash Deposit\" instead.
|
||||
payment.us.info=Bank transfer with WIRE or ACH is not supported for the US because WIRE is too expensive and ACH has a high chargeback risk.\n\n\
|
||||
Please use one of the available payment methods for the US like: \
|
||||
\"Zelle (ClearXchange)\", \"Chase QuickPay\", \"US Postal Money Order\" or \"Cash Deposit\".
|
||||
payment.email.mobile=Email or mobile no.:
|
||||
payment.altcoin.address=Altcoin address:
|
||||
payment.altcoin=Altcoin:
|
||||
|
@ -1513,7 +1515,7 @@ before starting a trade or creating an offer.\n\n\
|
|||
\t● Frost Send Money\n\
|
||||
\t● U.S. Bank Send Money\n\
|
||||
\t● Wells Fargo SurePay\n\n\
|
||||
3. You need to be sure to not exceed the daily or monthly transfer limits. Check with your bank what are the limits.\n\n\
|
||||
3. You need to be sure to not exceed the daily or monthly Zelle (ClearXchange) transfer limits.\n\n\
|
||||
Please use Zelle (ClearXchange) only if you fulfill all those requirements, \
|
||||
otherwise it is very likely that the Zelle (ClearXchange) transfer fails and the trade ends up in a dispute.\n\
|
||||
If you have not fulfilled the above requirements you would lose your security deposit in such a case.\n\n\
|
||||
|
|
|
@ -50,12 +50,4 @@ public final class FasterPaymentsAccount extends PaymentAccount {
|
|||
public String getAccountNr() {
|
||||
return ((FasterPaymentsAccountPayload) paymentAccountPayload).getAccountNr();
|
||||
}
|
||||
|
||||
public void setEmail(String value) {
|
||||
((FasterPaymentsAccountPayload) paymentAccountPayload).setEmail(value);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return ((FasterPaymentsAccountPayload) paymentAccountPayload).getEmail();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,12 +43,4 @@ public final class NationalBankAccount extends CountryBasedPaymentAccount implem
|
|||
public String getCountryCode() {
|
||||
return getCountry() != null ? getCountry().code : "";
|
||||
}
|
||||
|
||||
public void setEmail(String value) {
|
||||
((BankAccountPayload) paymentAccountPayload).setEmail(value);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return ((BankAccountPayload) paymentAccountPayload).getEmail();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,12 +43,4 @@ public final class SameBankAccount extends CountryBasedPaymentAccount implements
|
|||
public String getCountryCode() {
|
||||
return getCountry() != null ? getCountry().code : "";
|
||||
}
|
||||
|
||||
public void setEmail(String value) {
|
||||
((BankAccountPayload) paymentAccountPayload).setEmail(value);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return ((BankAccountPayload) paymentAccountPayload).getEmail();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
package io.bisq.core.payment;
|
||||
|
||||
import io.bisq.core.payment.payload.BankAccountPayload;
|
||||
import io.bisq.core.payment.payload.PaymentAccountPayload;
|
||||
import io.bisq.core.payment.payload.PaymentMethod;
|
||||
import io.bisq.core.payment.payload.SpecificBanksAccountPayload;
|
||||
|
@ -49,12 +48,4 @@ public final class SpecificBanksAccount extends CountryBasedPaymentAccount imple
|
|||
public String getCountryCode() {
|
||||
return getCountry() != null ? getCountry().code : "";
|
||||
}
|
||||
|
||||
public void setEmail(String value) {
|
||||
((BankAccountPayload) paymentAccountPayload).setEmail(value);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return ((BankAccountPayload) paymentAccountPayload).getEmail();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ package io.bisq.core.payment.payload;
|
|||
|
||||
import io.bisq.common.locale.BankUtil;
|
||||
import io.bisq.common.locale.CountryUtil;
|
||||
import io.bisq.common.locale.Res;
|
||||
import io.bisq.generated.protobuffer.PB;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
|
@ -49,8 +48,6 @@ public abstract class BankAccountPayload extends CountryBasedPaymentAccountPaylo
|
|||
protected String holderTaxId;
|
||||
@Nullable
|
||||
protected String bankId;
|
||||
@Nullable
|
||||
protected String email;
|
||||
|
||||
public BankAccountPayload(String paymentMethod, String id, long maxTradePeriod) {
|
||||
super(paymentMethod, id, maxTradePeriod);
|
||||
|
@ -71,8 +68,7 @@ public abstract class BankAccountPayload extends CountryBasedPaymentAccountPaylo
|
|||
String accountNr,
|
||||
String accountType,
|
||||
String holderTaxId,
|
||||
String bankId,
|
||||
String email) {
|
||||
String bankId) {
|
||||
super(paymentMethodName, id, maxTradePeriod, countryCode);
|
||||
this.holderName = holderName;
|
||||
this.bankName = bankName;
|
||||
|
@ -81,7 +77,6 @@ public abstract class BankAccountPayload extends CountryBasedPaymentAccountPaylo
|
|||
this.accountType = accountType;
|
||||
this.holderTaxId = holderTaxId;
|
||||
this.bankId = bankId;
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -95,7 +90,6 @@ public abstract class BankAccountPayload extends CountryBasedPaymentAccountPaylo
|
|||
Optional.ofNullable(accountNr).ifPresent(builder::setAccountNr);
|
||||
Optional.ofNullable(accountType).ifPresent(builder::setAccountType);
|
||||
Optional.ofNullable(bankId).ifPresent(builder::setBankId);
|
||||
Optional.ofNullable(email).ifPresent(builder::setEmail);
|
||||
final PB.CountryBasedPaymentAccountPayload.Builder countryBasedPaymentAccountPayloadBuilder = super.getPaymentAccountPayloadBuilder()
|
||||
.getCountryBasedPaymentAccountPayloadBuilder()
|
||||
.setBankAccountPayload(builder);
|
||||
|
@ -123,11 +117,8 @@ public abstract class BankAccountPayload extends CountryBasedPaymentAccountPaylo
|
|||
BankUtil.getAccountTypeLabel(countryCode) + " " + this.accountType + "\n" : "";
|
||||
String holderIdString = BankUtil.isHolderIdRequired(countryCode) ?
|
||||
(BankUtil.getHolderIdLabel(countryCode) + " " + holderTaxId + "\n") : "";
|
||||
String emailString = email != null ?
|
||||
(Res.get("payment.email") + " " + email + "\n") : "";
|
||||
|
||||
return "Holder name: " + holderName + "\n" +
|
||||
emailString +
|
||||
bankName +
|
||||
bankId +
|
||||
branchId +
|
||||
|
|
|
@ -78,7 +78,7 @@ public final class ClearXchangeAccountPayload extends PaymentAccountPayload {
|
|||
|
||||
@Override
|
||||
public String getPaymentDetails() {
|
||||
return "Zelle (ClearXchange) - Holder name: " + holderName + ", emailOrMobileNr or mobile no.: " + emailOrMobileNr;
|
||||
return "Zelle (ClearXchange) - Holder name: " + holderName + ", email or mobile no.: " + emailOrMobileNr;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -33,7 +33,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||
public final class FasterPaymentsAccountPayload extends PaymentAccountPayload {
|
||||
private String sortCode;
|
||||
private String accountNr;
|
||||
private String email;
|
||||
|
||||
public FasterPaymentsAccountPayload(String paymentMethod, String id, long maxTradePeriod) {
|
||||
super(paymentMethod, id, maxTradePeriod);
|
||||
|
@ -48,13 +47,11 @@ public final class FasterPaymentsAccountPayload extends PaymentAccountPayload {
|
|||
String id,
|
||||
long maxTradePeriod,
|
||||
String sortCode,
|
||||
String accountNr,
|
||||
String email) {
|
||||
String accountNr) {
|
||||
this(paymentMethod, id, maxTradePeriod);
|
||||
|
||||
this.sortCode = sortCode;
|
||||
this.accountNr = accountNr;
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -62,8 +59,7 @@ public final class FasterPaymentsAccountPayload extends PaymentAccountPayload {
|
|||
return getPaymentAccountPayloadBuilder()
|
||||
.setFasterPaymentsAccountPayload(PB.FasterPaymentsAccountPayload.newBuilder()
|
||||
.setSortCode(sortCode)
|
||||
.setAccountNr(accountNr)
|
||||
.setEmail(email))
|
||||
.setAccountNr(accountNr))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -72,8 +68,7 @@ public final class FasterPaymentsAccountPayload extends PaymentAccountPayload {
|
|||
proto.getId(),
|
||||
proto.getMaxTradePeriod(),
|
||||
proto.getFasterPaymentsAccountPayload().getSortCode(),
|
||||
proto.getFasterPaymentsAccountPayload().getAccountNr(),
|
||||
proto.getFasterPaymentsAccountPayload().getEmail());
|
||||
proto.getFasterPaymentsAccountPayload().getAccountNr());
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,13 +78,12 @@ public final class FasterPaymentsAccountPayload extends PaymentAccountPayload {
|
|||
|
||||
@Override
|
||||
public String getPaymentDetails() {
|
||||
return "FasterPayments - UK Sort code: " + sortCode + ", Account number: " + accountNr + ", Email: " + email;
|
||||
return "FasterPayments - UK Sort code: " + sortCode + ", Account number: " + accountNr;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPaymentDetailsForTradePopup() {
|
||||
return "UK Sort code: " + sortCode + "\n" +
|
||||
"Account number: " + accountNr + "\n" +
|
||||
"Email: " + email;
|
||||
"Account number: " + accountNr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,8 +47,7 @@ public final class NationalBankAccountPayload extends BankAccountPayload {
|
|||
String accountNr,
|
||||
String accountType,
|
||||
String holderTaxId,
|
||||
String bankId,
|
||||
String email) {
|
||||
String bankId) {
|
||||
super(paymentMethodName,
|
||||
id,
|
||||
maxTradePeriod,
|
||||
|
@ -59,8 +58,7 @@ public final class NationalBankAccountPayload extends BankAccountPayload {
|
|||
accountNr,
|
||||
accountType,
|
||||
holderTaxId,
|
||||
bankId,
|
||||
email);
|
||||
bankId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -92,8 +90,7 @@ public final class NationalBankAccountPayload extends BankAccountPayload {
|
|||
bankAccountPayload.getAccountNr().isEmpty() ? null : bankAccountPayload.getAccountNr(),
|
||||
bankAccountPayload.getAccountType().isEmpty() ? null : bankAccountPayload.getAccountType(),
|
||||
bankAccountPayload.getHolderTaxId().isEmpty() ? null : bankAccountPayload.getHolderTaxId(),
|
||||
bankAccountPayload.getBankId().isEmpty() ? null : bankAccountPayload.getBankId(),
|
||||
bankAccountPayload.getEmail().isEmpty() ? null : bankAccountPayload.getEmail());
|
||||
bankAccountPayload.getBankId().isEmpty() ? null : bankAccountPayload.getBankId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -47,8 +47,7 @@ public final class SameBankAccountPayload extends BankAccountPayload {
|
|||
String accountNr,
|
||||
String accountType,
|
||||
String holderTaxId,
|
||||
String bankId,
|
||||
String email) {
|
||||
String bankId) {
|
||||
super(paymentMethodName,
|
||||
id,
|
||||
maxTradePeriod,
|
||||
|
@ -59,8 +58,7 @@ public final class SameBankAccountPayload extends BankAccountPayload {
|
|||
accountNr,
|
||||
accountType,
|
||||
holderTaxId,
|
||||
bankId,
|
||||
email);
|
||||
bankId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -92,8 +90,7 @@ public final class SameBankAccountPayload extends BankAccountPayload {
|
|||
bankAccountPayload.getAccountNr().isEmpty() ? null : bankAccountPayload.getAccountNr(),
|
||||
bankAccountPayload.getAccountType().isEmpty() ? null : bankAccountPayload.getAccountType(),
|
||||
bankAccountPayload.getHolderTaxId().isEmpty() ? null : bankAccountPayload.getHolderTaxId(),
|
||||
bankAccountPayload.getBankId().isEmpty() ? null : bankAccountPayload.getBankId(),
|
||||
bankAccountPayload.getEmail().isEmpty() ? null : bankAccountPayload.getEmail());
|
||||
bankAccountPayload.getBankId().isEmpty() ? null : bankAccountPayload.getBankId());
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -55,7 +55,6 @@ public final class SpecificBanksAccountPayload extends BankAccountPayload {
|
|||
String accountType,
|
||||
String holderTaxId,
|
||||
String bankId,
|
||||
String email,
|
||||
ArrayList<String> acceptedBanks) {
|
||||
super(paymentMethodName,
|
||||
id,
|
||||
|
@ -67,8 +66,7 @@ public final class SpecificBanksAccountPayload extends BankAccountPayload {
|
|||
accountNr,
|
||||
accountType,
|
||||
holderTaxId,
|
||||
bankId,
|
||||
email);
|
||||
bankId);
|
||||
this.acceptedBanks = acceptedBanks;
|
||||
}
|
||||
|
||||
|
@ -106,7 +104,6 @@ public final class SpecificBanksAccountPayload extends BankAccountPayload {
|
|||
bankAccountPayload.getAccountType().isEmpty() ? null : bankAccountPayload.getAccountType(),
|
||||
bankAccountPayload.getHolderTaxId().isEmpty() ? null : bankAccountPayload.getHolderTaxId(),
|
||||
bankAccountPayload.getBankId().isEmpty() ? null : bankAccountPayload.getBankId(),
|
||||
bankAccountPayload.getEmail().isEmpty() ? null : bankAccountPayload.getEmail(),
|
||||
new ArrayList<>(specificBanksAccountPayload.getAcceptedBanksList())
|
||||
);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,10 @@ import io.bisq.gui.components.InputTextField;
|
|||
import io.bisq.gui.main.overlays.popups.Popup;
|
||||
import io.bisq.gui.util.BSFormatter;
|
||||
import io.bisq.gui.util.Layout;
|
||||
import io.bisq.gui.util.validation.*;
|
||||
import io.bisq.gui.util.validation.AccountNrValidator;
|
||||
import io.bisq.gui.util.validation.BankIdValidator;
|
||||
import io.bisq.gui.util.validation.BranchIdValidator;
|
||||
import io.bisq.gui.util.validation.InputValidator;
|
||||
import javafx.collections.FXCollections;
|
||||
import javafx.scene.control.ComboBox;
|
||||
import javafx.scene.control.Label;
|
||||
|
@ -50,12 +53,12 @@ abstract class BankForm extends PaymentMethodForm {
|
|||
String countryCode = ((BankAccountPayload) paymentAccountPayload).getCountryCode();
|
||||
|
||||
if (data.getHolderTaxId() != null) {
|
||||
final String title = Res.get("payment.account.owner") + " / " + Res.get("payment.email") + " / " + BankUtil.getHolderIdLabelShort(countryCode);
|
||||
final String value = data.getHolderName() + " / " + data.getEmail() + " / " + data.getHolderTaxId();
|
||||
final String title = Res.get("payment.account.owner") + " / " + BankUtil.getHolderIdLabelShort(countryCode);
|
||||
final String value = data.getHolderName() + " / " + data.getHolderTaxId();
|
||||
addLabelTextFieldWithCopyIcon(gridPane, ++gridRow, title, value);
|
||||
} else {
|
||||
final String title = Res.get("payment.account.owner") + " / " + Res.get("payment.email");
|
||||
final String value = data.getHolderName() + " / " + data.getEmail();
|
||||
final String title = Res.get("payment.account.owner");
|
||||
final String value = data.getHolderName();
|
||||
addLabelTextFieldWithCopyIcon(gridPane, ++gridRow, title, value);
|
||||
}
|
||||
|
||||
|
@ -198,15 +201,12 @@ abstract class BankForm extends PaymentMethodForm {
|
|||
private boolean useHolderID;
|
||||
private final Runnable closeHandler;
|
||||
private ComboBox<TradeCurrency> currencyComboBox;
|
||||
protected final EmailValidator emailValidator;
|
||||
|
||||
BankForm(PaymentAccount paymentAccount, InputValidator inputValidator,
|
||||
GridPane gridPane, int gridRow, BSFormatter formatter, Runnable closeHandler) {
|
||||
super(paymentAccount, inputValidator, gridPane, gridRow, formatter);
|
||||
this.closeHandler = closeHandler;
|
||||
this.bankAccountPayload = (BankAccountPayload) paymentAccount.paymentAccountPayload;
|
||||
|
||||
emailValidator = new EmailValidator();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -529,14 +529,6 @@ abstract class BankForm extends PaymentMethodForm {
|
|||
bankAccountPayload.setHolderTaxId(newValue);
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
InputTextField emailTextField = addLabelInputTextField(gridPane,
|
||||
++gridRow, Res.get("payment.email")).second;
|
||||
emailTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
bankAccountPayload.setEmail(newValue);
|
||||
updateFromInputs();
|
||||
});
|
||||
emailTextField.setValidator(emailValidator);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -577,8 +569,7 @@ abstract class BankForm extends PaymentMethodForm {
|
|||
boolean result = isAccountNameValid()
|
||||
&& paymentAccount.getSingleTradeCurrency() != null
|
||||
&& getCountryBasedPaymentAccount().getCountry() != null
|
||||
&& holderNameInputTextField.getValidator().validate(bankAccountPayload.getHolderName()).isValid
|
||||
&& emailValidator.validate(bankAccountPayload.getEmail()).isValid;
|
||||
&& holderNameInputTextField.getValidator().validate(bankAccountPayload.getHolderName()).isValid;
|
||||
|
||||
String countryCode = bankAccountPayload.getCountryCode();
|
||||
if (validatorsApplied && BankUtil.useValidation(countryCode)) {
|
||||
|
@ -615,8 +606,6 @@ abstract class BankForm extends PaymentMethodForm {
|
|||
} else {
|
||||
addLabelTextField(gridPane, ++gridRow, Res.getWithCol("payment.account.owner"), bankAccountPayload.getHolderName());
|
||||
}
|
||||
|
||||
addLabelTextField(gridPane, ++gridRow, Res.get("payment.email"), bankAccountPayload.getEmail());
|
||||
}
|
||||
|
||||
protected void addAcceptedBanksForAddAccount() {
|
||||
|
|
|
@ -28,7 +28,6 @@ import io.bisq.gui.util.BSFormatter;
|
|||
import io.bisq.gui.util.Layout;
|
||||
import io.bisq.gui.util.validation.AccountNrValidator;
|
||||
import io.bisq.gui.util.validation.BranchIdValidator;
|
||||
import io.bisq.gui.util.validation.EmailValidator;
|
||||
import io.bisq.gui.util.validation.InputValidator;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.GridPane;
|
||||
|
@ -36,7 +35,8 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static io.bisq.gui.util.FormBuilder.*;
|
||||
import static io.bisq.gui.util.FormBuilder.addLabelInputTextField;
|
||||
import static io.bisq.gui.util.FormBuilder.addLabelTextField;
|
||||
|
||||
public class FasterPaymentsForm extends PaymentMethodForm {
|
||||
private static final Logger log = LoggerFactory.getLogger(FasterPaymentsForm.class);
|
||||
|
@ -48,8 +48,6 @@ public class FasterPaymentsForm extends PaymentMethodForm {
|
|||
((FasterPaymentsAccountPayload) paymentAccountPayload).getSortCode());
|
||||
addLabelTextField(gridPane, ++gridRow, Res.get("payment.accountNr"),
|
||||
((FasterPaymentsAccountPayload) paymentAccountPayload).getAccountNr());
|
||||
addLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.email"),
|
||||
((FasterPaymentsAccountPayload) paymentAccountPayload).getEmail());
|
||||
return gridRow;
|
||||
}
|
||||
|
||||
|
@ -57,14 +55,11 @@ public class FasterPaymentsForm extends PaymentMethodForm {
|
|||
private final FasterPaymentsAccount fasterPaymentsAccount;
|
||||
private InputTextField accountNrInputTextField;
|
||||
private InputTextField sortCodeInputTextField;
|
||||
private final EmailValidator emailValidator;
|
||||
|
||||
public FasterPaymentsForm(PaymentAccount paymentAccount, InputValidator inputValidator, GridPane gridPane,
|
||||
int gridRow, BSFormatter formatter) {
|
||||
super(paymentAccount, inputValidator, gridPane, gridRow, formatter);
|
||||
this.fasterPaymentsAccount = (FasterPaymentsAccount) paymentAccount;
|
||||
|
||||
emailValidator = new EmailValidator();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -86,14 +81,6 @@ public class FasterPaymentsForm extends PaymentMethodForm {
|
|||
updateFromInputs();
|
||||
});
|
||||
|
||||
InputTextField emailTextField = addLabelInputTextField(gridPane,
|
||||
++gridRow, Res.get("payment.email")).second;
|
||||
emailTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
fasterPaymentsAccount.setEmail(newValue);
|
||||
updateFromInputs();
|
||||
});
|
||||
emailTextField.setValidator(emailValidator);
|
||||
|
||||
TradeCurrency singleTradeCurrency = fasterPaymentsAccount.getSingleTradeCurrency();
|
||||
String nameAndCode = singleTradeCurrency != null ? singleTradeCurrency.getNameAndCode() : "";
|
||||
addLabelTextField(gridPane, ++gridRow, Res.getWithCol("shared.currency"),
|
||||
|
@ -124,7 +111,6 @@ public class FasterPaymentsForm extends PaymentMethodForm {
|
|||
TextField field = addLabelTextField(gridPane, ++gridRow, Res.get("payment.accountNr"),
|
||||
fasterPaymentsAccount.getAccountNr()).second;
|
||||
field.setMouseTransparent(false);
|
||||
addLabelTextField(gridPane, ++gridRow, Res.get("payment.email"), fasterPaymentsAccount.getEmail());
|
||||
TradeCurrency singleTradeCurrency = fasterPaymentsAccount.getSingleTradeCurrency();
|
||||
String nameAndCode = singleTradeCurrency != null ? singleTradeCurrency.getNameAndCode() : "";
|
||||
addLabelTextField(gridPane, ++gridRow, Res.getWithCol("shared.currency"), nameAndCode);
|
||||
|
@ -134,7 +120,6 @@ public class FasterPaymentsForm extends PaymentMethodForm {
|
|||
@Override
|
||||
public void updateAllInputsValid() {
|
||||
allInputsValid.set(isAccountNameValid()
|
||||
&& emailValidator.validate(fasterPaymentsAccount.getEmail()).isValid
|
||||
&& sortCodeInputTextField.getValidator().validate(fasterPaymentsAccount.getSortCode()).isValid
|
||||
&& accountNrInputTextField.getValidator().validate(fasterPaymentsAccount.getAccountNr()).isValid
|
||||
&& fasterPaymentsAccount.getTradeCurrencies().size() > 0);
|
||||
|
|
|
@ -56,21 +56,12 @@ public class SameBankForm extends BankForm {
|
|||
bankAccountPayload.setHolderName(newValue);
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
InputTextField emailTextField = addLabelInputTextField(gridPane,
|
||||
++gridRow, Res.get("payment.email")).second;
|
||||
emailTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
bankAccountPayload.setEmail(newValue);
|
||||
updateFromInputs();
|
||||
});
|
||||
emailTextField.setValidator(emailValidator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateAllInputsValid() {
|
||||
boolean result = isAccountNameValid()
|
||||
&& inputValidator.validate(bankAccountPayload.getHolderName()).isValid
|
||||
&& emailValidator.validate(bankAccountPayload.getEmail()).isValid
|
||||
&& paymentAccount.getSingleTradeCurrency() != null
|
||||
&& ((CountryBasedPaymentAccount) paymentAccount).getCountry() != null;
|
||||
|
||||
|
@ -97,8 +88,6 @@ public class SameBankForm extends BankForm {
|
|||
TextField holderNameTextField = tuple.second;
|
||||
holderNameTextField.setMinWidth(300);
|
||||
holderNameTextField.setText(bankAccountPayload.getHolderName());
|
||||
|
||||
addLabelTextField(gridPane, ++gridRow, Res.get("payment.email"), bankAccountPayload.getEmail());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue