Updated on 2026-08-14
This commit is contained in:
parent
1f8386c05e
commit
0bfc7eee60
11 changed files with 112 additions and 9 deletions
|
|
@ -17,6 +17,12 @@ interface TangemPayApi {
|
|||
@Query("limit") limit: Int = TX_HISTORY_PAGING_DEFAULT_LIMIT,
|
||||
): ApiResponse<TangemPayTxHistoryResponse>
|
||||
|
||||
@GET("v1/customer/transactions/{transaction_id}")
|
||||
suspend fun getCustomerTransaction(
|
||||
@Header("Authorization") authHeader: String,
|
||||
@Path("transaction_id") transactionId: String,
|
||||
): ApiResponse<TangemPayTransactionResponse>
|
||||
|
||||
@GET("v1/customer/kyc")
|
||||
suspend fun getKycAccess(@Header("Authorization") authHeader: String): ApiResponse<KycAccessInfoResponse>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
package com.tangem.datasource.api.pay.models.response
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
/** Response of `GET v1/customer/transactions/{transaction_id}` — a single transaction by its id. */
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class TangemPayTransactionResponse(
|
||||
@Json(name = "result") val result: TangemPayTxHistoryResponse.Transaction,
|
||||
)
|
||||
|
|
@ -44,6 +44,8 @@ data class TangemPayTxHistoryResponse(
|
|||
@Json(name = "enriched_merchant_category") val enrichedMerchantCategory: String? = null,
|
||||
@Json(name = "card_id") val cardId: String? = null,
|
||||
@Json(name = "card_type") val cardType: String? = null,
|
||||
@Json(name = "card_display_name") val cardDisplayName: String? = null,
|
||||
@Json(name = "card_number_end") val cardNumberEnd: String? = null,
|
||||
@Json(name = "status") val status: String,
|
||||
@Json(name = "declined_reason") val declinedReason: String? = null,
|
||||
@Json(name = "authorized_at") val authorizedAt: DateTime,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue