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