mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-15 21:03:48 +00:00
fix error with deserialization of passport data
This commit is contained in:
parent
6b414d64b0
commit
c1ab9da4c4
@ -6,7 +6,7 @@ import dev.inmo.tgbotapi.types.passport.encrypted_data.abstracts.WithEmail
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class Email(
|
||||
@SerialName(emailField)
|
||||
override val email: String,
|
||||
|
@ -7,7 +7,7 @@ import dev.inmo.tgbotapi.types.passport.encrypted_data.abstracts.WithData
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class EncryptedAddress(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
|
@ -7,7 +7,7 @@ import dev.inmo.tgbotapi.types.passport.encrypted_data.abstracts.WithData
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class EncryptedPersonalDetails(
|
||||
@SerialName(dataField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
|
@ -10,7 +10,7 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
sealed class Passport : WithData, WithFrontSide, WithSelfie, Translatable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class CommonPassport(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@ -24,7 +24,7 @@ data class CommonPassport(
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
) : Passport()
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class InternalPassport(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
|
@ -7,7 +7,7 @@ import dev.inmo.tgbotapi.types.phoneNumberField
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class PhoneNumber(
|
||||
@SerialName(phoneNumberField)
|
||||
override val phoneNumber: String,
|
||||
|
@ -10,7 +10,7 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
sealed class TranslatableFilesCollection : Translatable, FilesCollection
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class UtilityBill(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@ -20,7 +20,7 @@ data class UtilityBill(
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
) : TranslatableFilesCollection()
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class BankStatement(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@ -30,7 +30,7 @@ data class BankStatement(
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
) : TranslatableFilesCollection()
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class RentalAgreement(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@ -40,7 +40,7 @@ data class RentalAgreement(
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
) : TranslatableFilesCollection()
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class PassportRegistration(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@ -50,7 +50,7 @@ data class PassportRegistration(
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
) : TranslatableFilesCollection()
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class TemporaryRegistration(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
|
@ -10,7 +10,7 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
sealed class TranslatableIDDocument : WithData, WithFrontSide, WithReverseSide, WithSelfie, Translatable
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class DriverLicense(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@ -27,7 +27,7 @@ data class DriverLicense(
|
||||
override val hash: String
|
||||
) : TranslatableIDDocument()
|
||||
|
||||
@Serializable(EncryptedElementSerializer::class)
|
||||
@Serializable
|
||||
data class IdentityCard(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
|
Loading…
Reference in New Issue
Block a user