mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Rename onFiatPaymentStarted to onPaymentStarted
This commit is contained in:
parent
612ecd3a6a
commit
a002fb33a5
@ -84,9 +84,9 @@ public abstract class BuyerTrade extends Trade {
|
||||
btcWalletService);
|
||||
}
|
||||
|
||||
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
checkArgument(tradeProtocol instanceof BuyerProtocol, "Check failed: tradeProtocol instanceof BuyerProtocol");
|
||||
((BuyerProtocol) tradeProtocol).onFiatPaymentStarted(resultHandler, errorMessageHandler);
|
||||
((BuyerProtocol) tradeProtocol).onPaymentStarted(resultHandler, errorMessageHandler);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -119,10 +119,10 @@ public class BuyerAsMakerProtocol extends BuyerProtocol implements MakerProtocol
|
||||
// User interaction
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// We keep the handler here in as well to make it more transparent which messages we expect
|
||||
// We keep the handler here in as well to make it more transparent which events we expect
|
||||
@Override
|
||||
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onFiatPaymentStarted(resultHandler, errorMessageHandler);
|
||||
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onPaymentStarted(resultHandler, errorMessageHandler);
|
||||
}
|
||||
|
||||
|
||||
|
@ -133,10 +133,10 @@ public class BuyerAsTakerProtocol extends BuyerProtocol implements TakerProtocol
|
||||
// User interaction
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// We keep the handler here in as well to make it more transparent which messages we expect
|
||||
// We keep the handler here in as well to make it more transparent which events we expect
|
||||
@Override
|
||||
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onFiatPaymentStarted(resultHandler, errorMessageHandler);
|
||||
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onPaymentStarted(resultHandler, errorMessageHandler);
|
||||
}
|
||||
|
||||
|
||||
|
@ -126,7 +126,7 @@ public abstract class BuyerProtocol extends MediationProtocol {
|
||||
// User interaction
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
BuyerEvent event = BuyerEvent.PAYMENT_SENT;
|
||||
expect(phase(Trade.Phase.DEPOSIT_CONFIRMED)
|
||||
.with(event)
|
||||
|
@ -130,7 +130,7 @@ public class SellerAsMakerProtocol extends SellerProtocol implements MakerProtoc
|
||||
// User interaction
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// We keep the handler here in as well to make it more transparent which messages we expect
|
||||
// We keep the handler here in as well to make it more transparent which events we expect
|
||||
@Override
|
||||
public void onPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onPaymentReceived(resultHandler, errorMessageHandler);
|
||||
|
@ -127,7 +127,7 @@ public class SellerAsTakerProtocol extends SellerProtocol implements TakerProtoc
|
||||
// User interaction
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// We keep the handler here in as well to make it more transparent which messages we expect
|
||||
// We keep the handler here in as well to make it more transparent which events we expect
|
||||
@Override
|
||||
public void onPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
super.onPaymentReceived(resultHandler, errorMessageHandler);
|
||||
|
@ -186,7 +186,7 @@ public class PendingTradesDataModel extends ActivatableDataModel {
|
||||
Trade trade = getTrade();
|
||||
checkNotNull(trade, "trade must not be null");
|
||||
checkArgument(trade instanceof BuyerTrade, "Check failed: trade instanceof BuyerTrade");
|
||||
((BuyerTrade) trade).onFiatPaymentStarted(resultHandler, errorMessageHandler);
|
||||
((BuyerTrade) trade).onPaymentStarted(resultHandler, errorMessageHandler);
|
||||
}
|
||||
|
||||
public void onFiatPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
|
||||
|
Loading…
Reference in New Issue
Block a user