mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +00:00
fix defaults in encrypted passport data
This commit is contained in:
parent
26fd5e51bf
commit
fb61a94c5e
@ -15,11 +15,11 @@ data class CommonPassport(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@SerialName(frontSideField)
|
||||
override val frontSide: PassportFile?,
|
||||
override val frontSide: PassportFile? = null,
|
||||
@SerialName(selfieField)
|
||||
override val selfie: PassportFile?,
|
||||
override val selfie: PassportFile? = null,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
@ -29,11 +29,11 @@ data class InternalPassport(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@SerialName(frontSideField)
|
||||
override val frontSide: PassportFile?,
|
||||
override val frontSide: PassportFile? = null,
|
||||
@SerialName(selfieField)
|
||||
override val selfie: PassportFile?,
|
||||
override val selfie: PassportFile? = null,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
|
@ -25,7 +25,7 @@ data class BankStatement(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
@ -35,7 +35,7 @@ data class RentalAgreement(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
@ -45,7 +45,7 @@ data class PassportRegistration(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
@ -55,7 +55,7 @@ data class TemporaryRegistration(
|
||||
@SerialName(filesField)
|
||||
override val files: List<PassportFile>,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
|
@ -15,13 +15,13 @@ data class DriverLicense(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@SerialName(frontSideField)
|
||||
override val frontSide: PassportFile?,
|
||||
override val frontSide: PassportFile? = null,
|
||||
@SerialName(reverseSideField)
|
||||
override val reverseSide: PassportFile?,
|
||||
override val reverseSide: PassportFile? = null,
|
||||
@SerialName(selfieField)
|
||||
override val selfie: PassportFile?,
|
||||
override val selfie: PassportFile? = null,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
@ -32,13 +32,13 @@ data class IdentityCard(
|
||||
@SerialName(dataField)
|
||||
override val data: EncryptedData,
|
||||
@SerialName(frontSideField)
|
||||
override val frontSide: PassportFile?,
|
||||
override val frontSide: PassportFile? = null,
|
||||
@SerialName(reverseSideField)
|
||||
override val reverseSide: PassportFile?,
|
||||
override val reverseSide: PassportFile? = null,
|
||||
@SerialName(selfieField)
|
||||
override val selfie: PassportFile?,
|
||||
override val selfie: PassportFile? = null,
|
||||
@SerialName(translationField)
|
||||
override val translations: List<PassportFile>,
|
||||
override val translations: List<PassportFile> = emptyList(),
|
||||
@SerialName(hashField)
|
||||
@Serializable(Base64StringSerializer::class)
|
||||
override val hash: String
|
||||
|
Loading…
Reference in New Issue
Block a user