mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add accessors for HolderName.
This commit is contained in:
parent
3f8fedd618
commit
5e0803a392
@ -209,6 +209,14 @@ public abstract class PaymentAccount implements PersistablePayload {
|
||||
return Utilities.bytesAsHexString(getSalt());
|
||||
}
|
||||
|
||||
public void setHolderName(String value) {
|
||||
paymentAccountPayload.setHolderName(value);
|
||||
}
|
||||
|
||||
public String getHolderName() {
|
||||
return paymentAccountPayload.getHolderName();
|
||||
}
|
||||
|
||||
public String getOwnerId() {
|
||||
return paymentAccountPayload.getOwnerId();
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ import bisq.common.proto.network.NetworkPayload;
|
||||
import bisq.common.util.JsonExclude;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@ -129,6 +131,14 @@ public abstract class PaymentAccountPayload implements NetworkPayload, UsedForTr
|
||||
excludeFromJsonDataMap.put(SALT, Utilities.encodeToHex(salt));
|
||||
}
|
||||
|
||||
public String getHolderName() {
|
||||
return excludeFromJsonDataMap.getOrDefault(HOLDER_NAME, "");
|
||||
}
|
||||
|
||||
public void setHolderName(String holderName) {
|
||||
excludeFromJsonDataMap.compute(HOLDER_NAME, (k, v) -> Strings.emptyToNull(holderName));
|
||||
}
|
||||
|
||||
// Identifying data of payment account (e.g. IBAN).
|
||||
// This is critical code for verifying age of payment account.
|
||||
// Any change would break validation of historical data!
|
||||
|
Loading…
Reference in New Issue
Block a user