Add sellerConfirmedPaymentReceiptDate to Trade

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-10-08 18:05:10 +07:00
parent 91a70d89a4
commit c2e8189571
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307
2 changed files with 10 additions and 1 deletions

View File

@ -441,6 +441,11 @@ public abstract class Trade extends TradeModel {
@Getter
transient final private IntegerProperty assetTxProofResultUpdateProperty = new SimpleIntegerProperty();
// Added in v.1.9.13
@Getter
@Setter
private long sellerConfirmedPaymentReceiptDate;
///////////////////////////////////////////////////////////////////////////////////////////
// Constructor, initialization
@ -527,7 +532,8 @@ public abstract class Trade extends TradeModel {
.map(msg -> msg.toProtoNetworkEnvelope().getChatMessage())
.collect(Collectors.toList()))
.setLockTime(lockTime)
.setUid(uid);
.setUid(uid)
.setSellerConfirmedPaymentReceiptDate(sellerConfirmedPaymentReceiptDate);
Optional.ofNullable(takerFeeTxId).ifPresent(builder::setTakerFeeTxId);
Optional.ofNullable(depositTxId).ifPresent(builder::setDepositTxId);
@ -597,6 +603,8 @@ public abstract class Trade extends TradeModel {
.map(ChatMessage::fromPayloadProto)
.collect(Collectors.toList()));
trade.setSellerConfirmedPaymentReceiptDate(proto.getSellerConfirmedPaymentReceiptDate());
return trade;
}

View File

@ -1750,6 +1750,7 @@ message Trade {
string counter_currency_extra_data = 37;
string asset_tx_proof_result = 38; // name of AssetTxProofResult enum
string uid = 39;
int64 sellerConfirmedPaymentReceiptDate = 40;
}
message BuyerAsMakerTrade {