1
0
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:
InsanusMokrassar 2021-01-17 16:30:25 +06:00
parent 26fd5e51bf
commit fb61a94c5e
3 changed files with 18 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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