class Tourmaline::PassportElementErrorTranslationFiles

Overview

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, type : String, message : String, file_hashes : Array(String) = [] of String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def file_hashes : Array(String) #

List of base64-encoded file hashes


[View source]
def file_hashes=(file_hashes : Array(String)) #

List of base64-encoded file hashes


[View source]
def message : String #

Error message


[View source]
def message=(message : String) #

Error message


[View source]
def source : String #

Error source, must be translation_files


[View source]
def source=(source : String) #

Error source, must be translation_files


[View source]
def type : String #

Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"


[View source]
def type=(type : String) #

Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"


[View source]