use of bisq.core.trade.BuyerTrade in project bisq-desktop by bisq-network.
the class PendingTradesDataModel method onPaymentStarted.
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
final Trade trade = getTrade();
checkNotNull(trade, "trade must not be null");
checkArgument(trade instanceof BuyerTrade, "Check failed: trade instanceof BuyerTrade");
checkArgument(trade.getDisputeState() == Trade.DisputeState.NO_DISPUTE, "Check failed: trade.getDisputeState() == Trade.DisputeState.NONE");
// TODO UI not impl yet
trade.setCounterCurrencyTxId("");
((BuyerTrade) trade).onFiatPaymentStarted(resultHandler, errorMessageHandler);
}
Aggregations