Merge branch 'feature/secureid' of https://github.com/peter-iakovlev/TelegramCoreDev into feature/secureid

This commit is contained in:
Mikhail Filimonov 2018-03-28 22:13:49 +04:00
commit 077f9e89ef

View File

@ -119,8 +119,10 @@ extension SecureIdAddressValue {
var dict: [String: Any] = [:] var dict: [String: Any] = [:]
dict["document_type"] = self.type.serialize() dict["document_type"] = self.type.serialize()
dict["street_line1"] = self.street1 dict["street_line1"] = self.street1
dict["street_line2"] = self.street2 if !self.street2.isEmpty {
dict["street_city"] = self.city dict["street_line2"] = self.street2
}
dict["city"] = self.city
dict["region"] = self.region dict["region"] = self.region
dict["country_code"] = self.countryCode dict["country_code"] = self.countryCode
dict["postcode"] = self.postcode dict["postcode"] = self.postcode