Updated on 2026-08-14
This commit is contained in:
parent
bb4afdec80
commit
16b33742ca
9 changed files with 686 additions and 12 deletions
|
|
@ -119,9 +119,6 @@ interface TangemTechApi {
|
|||
@Path("application_id") applicationId: String,
|
||||
@Body body: NotificationApplicationCreateBody,
|
||||
): ApiResponse<Unit>
|
||||
|
||||
@PATCH("v1/user-wallets/wallets/{wallet_id}/notify")
|
||||
suspend fun setNotificationsEnabled(@Path("wallet_id") walletId: String, @Body body: WalletBody): ApiResponse<Unit>
|
||||
// endregion
|
||||
|
||||
// region user-wallets
|
||||
|
|
@ -148,12 +145,15 @@ interface TangemTechApi {
|
|||
|
||||
// region account
|
||||
@GET("/v1/wallets/{walletId}/accounts")
|
||||
suspend fun getWalletAccounts(@Path("walletId") walletId: String): ApiResponse<GetWalletAccountsResponse>
|
||||
suspend fun getWalletAccounts(
|
||||
@Path("walletId") walletId: String,
|
||||
@Header("If-None-Match") eTag: String? = null,
|
||||
): ApiResponse<GetWalletAccountsResponse>
|
||||
|
||||
@PUT("/v1/wallets/{walletId}/accounts")
|
||||
suspend fun saveWalletAccounts(
|
||||
@Path("walletId") walletId: String,
|
||||
@Header("If-Match") ifMatch: String,
|
||||
@Header("If-Match") eTag: String,
|
||||
@Body body: SaveWalletAccountsResponse,
|
||||
): ApiResponse<Unit>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
package com.tangem.datasource.utils
|
||||
|
||||
import androidx.datastore.core.DataStore
|
||||
import kotlinx.coroutines.flow.firstOrNull
|
||||
|
||||
suspend fun <T> DataStore<T>.getSyncOrNull(): T? = data.firstOrNull()
|
||||
Loading…
Add table
Add a link
Reference in a new issue