Updated on 2026-08-14
This commit is contained in:
parent
abd131fa7c
commit
f532fe1ea1
9 changed files with 122 additions and 90 deletions
|
|
@ -343,9 +343,7 @@ internal class DefaultOnrampRepository(
|
|||
|
||||
override suspend fun getAvailablePaymentMethods(): Set<OnrampPaymentMethod> {
|
||||
val quotes = requireNotNull(quotesStore.getSyncOrNull(QUOTES_KEY)) { "Quotes must not be null" }
|
||||
return quotes
|
||||
.filterIsInstance<OnrampQuote.Data>()
|
||||
.mapTo(hashSetOf(), OnrampQuote.Data::paymentMethod)
|
||||
return quotes.mapTo(hashSetOf(), OnrampQuote::paymentMethod)
|
||||
}
|
||||
|
||||
override suspend fun saveSelectedPaymentMethod(paymentMethod: OnrampPaymentMethod) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue