class Hamilton::Types::PassportElementErrorFrontSide

Overview

Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.

Included Modules

Defined in:

types/passport_element_error.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def file_hash : String #

Base64-encoded hash of the file with the front side of the document.


def file_hash=(file_hash : String) #

Base64-encoded hash of the file with the front side of the document.


def message : String #

Error message.


def message=(message : String) #

Error message.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def source : String #

Error source, must be "front_side".


def source=(source : String) #

Error source, must be "front_side".


def type : String #

The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.


def type=(type : String) #

The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.