[bisq-network/bisq] Let API user set currencies in some payment account json forms (#5685)
Stan
notifications at github.com
Thu Sep 16 14:33:18 CEST 2021
@ghubstan commented on this pull request.
> + else if (account.hasPaymentMethodWithId(REVOLUT_ID))
+ return getTradeCurrenciesInList(currencyCodes, getAllRevolutCurrencies());
+ /*else if (account.hasPaymentMethodWithId(SWIFT_ID))
+ return getTradeCurrenciesInList(currencyCodes, new ArrayList<>(getAllSortedFiatCurrencies()));*/
+ else if (account.hasPaymentMethodWithId(TRANSFERWISE_ID))
+ return getTradeCurrenciesInList(currencyCodes, getAllTransferwiseCurrencies());
+ else if (account.hasPaymentMethodWithId(UPHOLD_ID))
+ return getTradeCurrenciesInList(currencyCodes, getAllUpholdCurrencies());
+ else
+ return Optional.empty();
+ }
+
+ private boolean didReadSelectedTradeCurrencyField(JsonReader in,
+ PaymentAccount account,
+ String fieldName) {
+ if (fieldName.equals("selectedTradeCurrency")) {
Done, commit 1a9cdfbdd343050de93df2f2db18b7fd6548cf07
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5685#discussion_r710072369
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210916/533a4e38/attachment-0001.htm>
More information about the bisq-github
mailing list