Updated on 2026-08-14
This commit is contained in:
parent
76cfb2e462
commit
5ca696d677
17 changed files with 431 additions and 0 deletions
|
|
@ -178,5 +178,9 @@
|
|||
{
|
||||
"name": "AND_16080_TRON_DEX_SWAP_ENABLED",
|
||||
"version": "undefined"
|
||||
},
|
||||
{
|
||||
"name": "TWI_1192_TANGEM_PAY_CASHBACK_ENABLED",
|
||||
"version": "undefined"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -187,4 +187,7 @@ interface TangemPayApi {
|
|||
@Body body: UpdateCardRequest,
|
||||
@Path("card_id") cardId: String,
|
||||
): ApiResponse<UpdateCardDisplayNameResponse>
|
||||
|
||||
@GET("v1/customer/cashback/summary")
|
||||
suspend fun getCashbackSummary(@Header("Authorization") authHeader: String): ApiResponse<CashbackSummaryResponse>
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.tangem.datasource.api.pay.models.response
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
import java.math.BigDecimal
|
||||
|
||||
/**
|
||||
* Response from `GET /v1/customer/cashback/summary`.
|
||||
*
|
||||
* When [cashbackProgramStatus] is not `enabled`, the amount/period fields may be omitted.
|
||||
*/
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class CashbackSummaryResponse(
|
||||
@Json(name = "cashback_program_status") val cashbackProgramStatus: String,
|
||||
@Json(name = "cashback_display_mode") val cashbackDisplayMode: String?,
|
||||
@Json(name = "period") val period: Period?,
|
||||
@Json(name = "confirmed_amount") val confirmedAmount: BigDecimal?,
|
||||
@Json(name = "pending_amount") val pendingAmount: BigDecimal?,
|
||||
@Json(name = "currency") val currency: String?,
|
||||
) {
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class Period(
|
||||
@Json(name = "year") val year: Int,
|
||||
@Json(name = "month") val month: Int,
|
||||
@Json(name = "payout_start_date") val payoutStartDate: String?,
|
||||
@Json(name = "payout_end_date") val payoutEndDate: String?,
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue