Updated on 2026-08-14
This commit is contained in:
parent
bc3443c479
commit
2e0bdac248
21 changed files with 752 additions and 30 deletions
|
|
@ -109,9 +109,10 @@ interface TangemPayApi {
|
|||
@Body body: WithdrawRequest,
|
||||
): ApiResponse<WithdrawResponse>
|
||||
|
||||
@PATCH("v1/card")
|
||||
suspend fun updateCardDisplayName(
|
||||
@PATCH("v1/customer/card/{card_id}")
|
||||
suspend fun updateCard(
|
||||
@Header("Authorization") authHeader: String,
|
||||
@Body body: UpdateCardDisplayNameRequest,
|
||||
@Body body: UpdateCardRequest,
|
||||
@Path("card_id") cardId: String,
|
||||
): ApiResponse<UpdateCardDisplayNameResponse>
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
package com.tangem.datasource.api.pay.models.request
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class UpdateCardDisplayNameRequest(
|
||||
@Json(name = "display_name") val displayName: String,
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.tangem.datasource.api.pay.models.request
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class UpdateCardRequest(
|
||||
@Json(name = "display_name") val displayName: String? = null,
|
||||
@Json(name = "card_limit") val cardLimit: CardLimit? = null,
|
||||
) {
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class CardLimit(
|
||||
@Json(name = "amount") val amount: String,
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue