Updated on 2026-08-14
This commit is contained in:
parent
c7e4ff0598
commit
b74acabcc4
15 changed files with 136 additions and 68 deletions
|
|
@ -191,12 +191,12 @@ interface TangemTechApi {
|
|||
suspend fun getPromoBannerDisplays(
|
||||
@Query("walletId") walletId: String,
|
||||
@Query("placeholder") placeholder: String,
|
||||
@Query("locale") locale: String,
|
||||
@Query("lang") languageISOCode: String,
|
||||
): ApiResponse<PromoBannerDisplaysResponse>
|
||||
|
||||
@PATCH("v1/displays/{displayId}")
|
||||
@PATCH("v1/banner/displays/{displayId}")
|
||||
suspend fun dismissPromoBannerDisplay(
|
||||
@Path("displayId") displayId: String,
|
||||
@Path("displayId") displayId: Int,
|
||||
@Body body: DismissPromoBannerRequest,
|
||||
): ApiResponse<DismissPromoBannerResponse>
|
||||
// endregion
|
||||
|
|
|
|||
|
|
@ -5,20 +5,31 @@ import com.squareup.moshi.JsonClass
|
|||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class PromoBannerDisplaysResponse(
|
||||
@Json(name = "items") val items: List<PromoBannerDisplayDTO>,
|
||||
@Json(name = "items")
|
||||
val items: List<PromoBannerDisplayDTO>,
|
||||
)
|
||||
|
||||
@Suppress("BooleanPropertyNaming")
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class PromoBannerDisplayDTO(
|
||||
@Json(name = "id") val id: String,
|
||||
@Json(name = "placeholder") val placeholder: String,
|
||||
@Json(name = "priority") val priority: String,
|
||||
@Json(name = "title") val title: String,
|
||||
@Json(name = "subtitle") val subtitle: String,
|
||||
@Json(name = "iconUrl") val iconUrl: String?,
|
||||
@Json(name = "deeplink") val deeplink: String?,
|
||||
@Json(name = "buttonEnabled") val buttonEnabled: Boolean,
|
||||
@Json(name = "buttonText") val buttonText: String?,
|
||||
@Json(name = "dismissable") val dismissable: Boolean,
|
||||
@Json(name = "id")
|
||||
val id: Int,
|
||||
@Json(name = "placeholder")
|
||||
val placeholder: String,
|
||||
@Json(name = "priority")
|
||||
val priority: String,
|
||||
@Json(name = "title")
|
||||
val title: String,
|
||||
@Json(name = "subtitle")
|
||||
val subtitle: String,
|
||||
@Json(name = "iconUrl")
|
||||
val iconUrl: String?,
|
||||
@Json(name = "deeplink")
|
||||
val deeplink: String?,
|
||||
@Json(name = "buttonEnabled")
|
||||
val buttonEnabled: Boolean,
|
||||
@Json(name = "buttonText")
|
||||
val buttonText: String?,
|
||||
@Json(name = "dismissable")
|
||||
val dismissable: Boolean,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue