Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/api/oauth2/token/ |
Upload File : |
<?php namespace Yandex\Market\Api\OAuth2\Token; use Bitrix\Main; use Yandex\Market; class Table extends Market\Reference\Storage\Table { public static function getTableName() { return 'yamarket_api_oauth2_token'; } public static function getUfId() { return 'YAMARKET_API_OAUTH2_TOKEN'; } public static function getMap() { return [ new Main\Entity\IntegerField('ID', [ 'autocomplete' => true, 'primary' => true, ]), new Main\Entity\StringField('CLIENT_ID', [ 'required' => true ]), new Main\Entity\StringField('USER_ID', [ 'required' => true, ]), new Main\Entity\StringField('USER_LOGIN'), new Main\Entity\StringField('TOKEN_TYPE', [ 'required' => true, ]), new Main\Entity\StringField('ACCESS_TOKEN', [ 'required' => true, ]), new Main\Entity\StringField('REFRESH_TOKEN', [ 'required' => true, ]), new Main\Entity\DatetimeField('EXPIRES_AT', [ 'required' => true, ]), new Main\Entity\StringField('SCOPE', [ 'required' => true, ]), new Main\Entity\IntegerField('REFRESH_COUNT', [ 'default' => 0 ]), new Main\Entity\StringField('REFRESH_MESSAGE') ]; } }