Add missing payment account filtering

This commit is contained in:
Christoph Atteneder 2022-04-01 14:08:43 +02:00
parent 5781e3bd13
commit 810a29b54f
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 21 additions and 2 deletions

View File

@ -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"));
}
}

View File

@ -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();
}