mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-21 15:53:47 +00:00
commit
236f484e10
@ -1,6 +1,8 @@
|
||||
package dev.inmo.tgbotapi.types.payments.stars
|
||||
|
||||
import dev.inmo.tgbotapi.types.InvoicePayload
|
||||
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
||||
import dev.inmo.tgbotapi.types.invoicePayloadField
|
||||
import dev.inmo.tgbotapi.types.userField
|
||||
import dev.inmo.tgbotapi.types.withdrawalStateField
|
||||
import dev.inmo.tgbotapi.utils.decodeDataAndJson
|
||||
@ -37,7 +39,9 @@ sealed interface TransactionPartner {
|
||||
@Serializable(TransactionPartner.Companion::class)
|
||||
data class User(
|
||||
@SerialName(userField)
|
||||
val user: PreviewUser
|
||||
val user: PreviewUser,
|
||||
@SerialName(invoicePayloadField)
|
||||
val invoicePayload: InvoicePayload? = null
|
||||
) : TransactionPartner {
|
||||
override val type: String
|
||||
get() = Companion.type
|
||||
@ -70,7 +74,8 @@ sealed interface TransactionPartner {
|
||||
private data class Surrogate(
|
||||
val type: String,
|
||||
val withdrawal_state: RevenueWithdrawalState? = null,
|
||||
val user: PreviewUser? = null
|
||||
val user: PreviewUser? = null,
|
||||
val invoice_payload: InvoicePayload? = null
|
||||
)
|
||||
|
||||
override val descriptor: SerialDescriptor
|
||||
|
@ -43,4 +43,6 @@ external interface ThemeParams {
|
||||
val subtitleTextColor: Color.Hex?
|
||||
@JsName("destructive_text_color")
|
||||
val destructiveTextColor: Color.Hex?
|
||||
@JsName("section_separator_color")
|
||||
val sectionSeparatorColor: Color.Hex?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user