Updated on 2026-08-14
This commit is contained in:
parent
e45d91b15e
commit
fc223990a4
10 changed files with 270 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ interface TangemTechApi {
|
|||
@Body userTokens: UserTokensResponse,
|
||||
): ApiResponse<Unit>
|
||||
|
||||
// region Referral
|
||||
/** Returns referral status by [walletId] */
|
||||
@GET("v1/referral/{walletId}")
|
||||
suspend fun getReferralStatus(@Path("walletId") walletId: String): ApiResponse<ReferralResponse>
|
||||
|
|
@ -64,6 +65,10 @@ interface TangemTechApi {
|
|||
@POST("v1/referral")
|
||||
suspend fun startReferral(@Body startReferralBody: StartReferralBody): ApiResponse<ReferralResponse>
|
||||
|
||||
@POST("v1/referral/bind-wallets-by-code")
|
||||
suspend fun bindWalletsByReferralCode(@Body body: BindWalletsByReferralCodeBody): ApiResponse<Unit>
|
||||
// endregion
|
||||
|
||||
@GET("v1/quotes")
|
||||
suspend fun getQuotes(
|
||||
@Query("currencyId") currencyId: String,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
package com.tangem.datasource.api.tangemTech.models
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class BindWalletsByReferralCodeBody(
|
||||
@Json(name = "walletIds") val walletIds: List<String>,
|
||||
@Json(name = "referralCode") val refcode: String,
|
||||
@Json(name = "utmCampaign") val campaign: String? = null,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue