-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
274 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorFile.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. | ||
* | ||
* @property String $source Error source, must be file | ||
* @property String $type The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration” | ||
* @property String $file_hash Base64-encoded file hash | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorFile extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorFiles.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes. | ||
* | ||
* @property String $source Error source, must be files | ||
* @property String $type The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration” | ||
* @property Array<String> $file_hashes List of base64-encoded file hashes | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorFiles extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hashes' => array('string'), | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorFrontSide.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* 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. | ||
* | ||
* @property String $source Error source, must be front_side | ||
* @property String $type The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport” | ||
* @property String $file_hash Base64-encoded hash of the file with the front side of the document | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorFrontSide extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorReverseSide.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. | ||
* | ||
* @property String $source Error source, must be reverse_side | ||
* @property String $type The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card” | ||
* @property String $file_hash Base64-encoded hash of the file with the reverse side of the document | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorReverseSide extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorSelfie.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. | ||
* | ||
* @property String $source Error source, must be selfie | ||
* @property String $type The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport” | ||
* @property String $file_hash Base64-encoded hash of the file with the selfie | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorSelfie extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorTranslationFile.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes. | ||
* | ||
* @property String $source Error source, must be translation_file | ||
* @property String $type 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” | ||
* @property String $file_hash Base64-encoded file hash | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorTranslationFile extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorTranslationFiles.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change. | ||
* | ||
* @property String $source Error source, must be translation_files | ||
* @property String $type 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” | ||
* @property Array<String> $file_hashes List of base64-encoded file hashes | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorTranslationFiles extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'file_hashes' => array('string'), | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Objects/Passport/PassportElementError/PassportElementErrorUnspecified.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
use WeStacks\TeleBot\Objects\Passport\PassportElementError; | ||
|
||
/** | ||
* Represents an issue in an unspecified place. The error is considered resolved when new data is added. | ||
* | ||
* @property String $source Error source, must be unspecified | ||
* @property String $type Type of element of the user's Telegram Passport which has the issue | ||
* @property String $element_hash Base64-encoded element hash | ||
* @property String $message Error message | ||
* | ||
* @package WeStacks\TeleBot\Objects\Passport\PassportElementError | ||
*/ | ||
class PassportElementErrorUnspecified extends PassportElementError | ||
{ | ||
protected function relations() | ||
{ | ||
return [ | ||
'source' => 'string', | ||
'type' => 'string', | ||
'element_hash' => 'string', | ||
'message' => 'string', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters