mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Add missing payment account filtering
This commit is contained in:
parent
5781e3bd13
commit
810a29b54f
@ -610,6 +610,10 @@ public class CurrencyUtil {
|
||||
return List.of(new FiatCurrency("USD"));
|
||||
}
|
||||
|
||||
public static List<TradeCurrency> getAllACHTransferCurrencies() {
|
||||
return List.of(new FiatCurrency("USD"));
|
||||
}
|
||||
|
||||
public static List<TradeCurrency> getMatureMarketCurrencies() {
|
||||
ArrayList<TradeCurrency> currencies = new ArrayList<>(Arrays.asList(
|
||||
new FiatCurrency("EUR"),
|
||||
@ -914,4 +918,8 @@ public class CurrencyUtil {
|
||||
format("Method requires a crypto currency code, but was given '%s'.",
|
||||
currencyCode));
|
||||
}
|
||||
|
||||
public static List<TradeCurrency> getAllTransferwiseUSDCurrencies() {
|
||||
return List.of(new FiatCurrency("USD"));
|
||||
}
|
||||
}
|
||||
|
@ -195,11 +195,22 @@ public class PaymentAccountUtil {
|
||||
case SAME_BANK_ID:
|
||||
case SPECIFIC_BANKS_ID:
|
||||
case CASH_DEPOSIT_ID:
|
||||
case WESTERN_UNION_ID:
|
||||
return CurrencyUtil.getAllFiatCurrencies();
|
||||
case FASTER_PAYMENTS_ID:
|
||||
return CurrencyUtil.getAllFasterPaymentCurrencies();
|
||||
case DOMESTIC_WIRE_TRANSFER_ID:
|
||||
return CurrencyUtil.getAllDomesticWireTransferCurrencies();
|
||||
case DOMESTIC_WIRE_TRANSFER_ID:
|
||||
return CurrencyUtil.getAllDomesticWireTransferCurrencies();
|
||||
case ACH_TRANSFER_ID:
|
||||
return CurrencyUtil.getAllACHTransferCurrencies();
|
||||
case CELPAY_ID:
|
||||
return CurrencyUtil.getAllCelPayCurrencies();
|
||||
case MONESE_ID:
|
||||
return CurrencyUtil.getAllMoneseCurrencies();
|
||||
case TRANSFERWISE_USD_ID:
|
||||
return CurrencyUtil.getAllTransferwiseUSDCurrencies();
|
||||
case VERSE_ID:
|
||||
return CurrencyUtil.getAllVerseCurrencies();
|
||||
default:
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user