class Hamilton::Types::PassportElementErrorDataField

Overview

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value 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 data_hash : String #

Base64-encoded data hash.


def data_hash=(data_hash : String) #

Base64-encoded data hash.


def field_name : String #

Name of the data field which has the error.


def field_name=(field_name : String) #

Name of the data field which has the error.


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 "data".


def source=(source : String) #

Error source, must be "data".


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”.