mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Add JsonExclude to userName
For backward compatibility we need to exclude the new field for the contract json. We can remove that after a while when risk that users with pre 1.3.8 version trade with updated users is very low.
This commit is contained in:
parent
57bed13cf8
commit
61c071184e
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,7 @@ package bisq.core.payment.payload;
|
||||||
import bisq.core.locale.Res;
|
import bisq.core.locale.Res;
|
||||||
|
|
||||||
import bisq.common.proto.ProtoUtil;
|
import bisq.common.proto.ProtoUtil;
|
||||||
|
import bisq.common.util.JsonExclude;
|
||||||
|
|
||||||
import com.google.protobuf.Message;
|
import com.google.protobuf.Message;
|
||||||
|
|
||||||
|
@ -48,6 +49,10 @@ public final class RevolutAccountPayload extends PaymentAccountPayload {
|
||||||
// left unchanged. Newly created accounts fill accountId with the value of userName.
|
// left unchanged. Newly created accounts fill accountId with the value of userName.
|
||||||
// In the UI we only use userName.
|
// In the UI we only use userName.
|
||||||
@Nullable
|
@Nullable
|
||||||
|
// For backward compatibility we need to exclude the new field for the contract json.
|
||||||
|
// We can remove that after a while when risk that users with pre 1.3.8 version trade with updated
|
||||||
|
// users is very low.
|
||||||
|
@JsonExclude
|
||||||
private String userName = null;
|
private String userName = null;
|
||||||
|
|
||||||
public RevolutAccountPayload(String paymentMethod, String id) {
|
public RevolutAccountPayload(String paymentMethod, String id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue