|
static | isActive () |
static | setActivity ($activity) |
static | getSettings ($cached=true) |
static | getSettingsBySiteId ($siteId, $cached=true) |
static | saveSettings ($arSettings) |
static | sendStatusAgent ($yandexOrderId, $yandexStatus, $substatus, $siteId) |
static | getOrderInfo ($orderId) |
static | isOrderFromYandex ($orderId) |
static | onSaleStatusOrder ($orderId, $status, $substatus=false) |
static | getOrderSubstatuses () |
static | getCancelReasonsAsSelect ($name, $val=false, $id=false) |
static | getCancelReasonsAsRadio ($name, $id=false, $val=false) |
static | OnEventLogGetAuditTypes () |
static | eventsStart () |
static | eventsStop () |
static | install () |
static | unInstall ($deleteRecord=true) |
static | getExistPaymentMethods () |
static | onSaleCancelOrder ($orderId, $value, $description) |
static | onSaleDeliveryOrder ($orderId, $value) |
static | onSalePayOrder ($orderId, $value) |
static | onSaleDeductOrder ($orderId, $value) |
static | settingsConverter () |
static | takeOutOrdersToCorrespondentTable () |
static | convertDeliveryAndPSIds () |
static | isYandexRequest () |
|
| checkSiteId ($siteId) |
| getSiteId ($arParams) |
| checkTimeInterval ($today, $nextDate) |
| getDeliveryDates ($from, $to, $type) |
| getPaymentMethods () |
| checkCartStructure ($arPostData) |
| processCustomEvents ($eventName, array $params) |
| checkOrderAcceptStructure ($arPostData) |
| createUser ($buyer, $address, $region) |
| makeAdditionalOrderProps ($address, $buyer, $psId, $deliveryId, $locationId) |
| createAddressString ($address) |
| checkBasketPrice (array $items, \Bitrix\Sale\Order $order) |
| checkOrderStatusRequest ($arPostData) |
| extractPostData ($postData) |
| prepareResult ($arData) |
| processError ($status="", $message="") |
| log ($level, $type, $itemId, $description) |
| mapYandexStatusToOrder ($order, $yandexStatus, $cancelReason="") |
| sendEmailNewOrder ($newOrderId, $buyer) |
| notifyAdmin ($code) |
| getDeliveryOptions ($delivery, $price, $weight=0) |
| getLocationByCityName ($cityName) |
Yandex market purchase processing
См. определение в файле ym_handler.php строка 20
◆ __construct()
__construct |
( |
| $arParams = array() | ) |
|
◆ checkAuth()
Let's check authorization, comparing incoming token with token stored in settings.
- Возвращает
- bool
См. определение в файле ym_handler.php строка 1353
◆ checkBasketPrice()
◆ checkCartStructure()
checkCartStructure |
( |
| $arPostData | ) |
|
|
protected |
◆ checkOrderAcceptStructure()
checkOrderAcceptStructure |
( |
| $arPostData | ) |
|
|
protected |
◆ checkOrderStatusRequest()
checkOrderStatusRequest |
( |
| $arPostData | ) |
|
|
protected |
◆ checkSiteId()
◆ checkTimeInterval()
checkTimeInterval |
( |
| $today, |
|
|
| $nextDate ) |
|
protected |
◆ convertDeliveryAndPSIds()
convertDeliveryAndPSIds |
( |
| ) |
|
|
static |
◆ createAddressString()
createAddressString |
( |
| $address | ) |
|
|
protected |
◆ createUser()
createUser |
( |
| $buyer, |
|
|
| $address, |
|
|
| $region ) |
|
protected |
- Аргументы
-
array | $buyer | |
array | $address | |
array | $region | |
- Возвращает
- bool|int|string
См. определение в файле ym_handler.php строка 685
◆ eventsStart()
Starts exchange information between Yandex-market and shop
- Возвращает
- bool
См. определение в файле ym_handler.php строка 2025
◆ eventsStop()
Stops exchange information between Yandex-market and shop
- Возвращает
- bool
См. определение в файле ym_handler.php строка 2041
◆ extractPostData()
extractPostData |
( |
| $postData | ) |
|
|
protected |
◆ getCancelReasonsAsRadio()
getCancelReasonsAsRadio |
( |
| $name, |
|
|
| $id = false, |
|
|
| $val = false ) |
|
static |
◆ getCancelReasonsAsSelect()
getCancelReasonsAsSelect |
( |
| $name, |
|
|
| $val = false, |
|
|
| $id = false ) |
|
static |
◆ getDeliveryDates()
getDeliveryDates |
( |
| $from, |
|
|
| $to, |
|
|
| $type ) |
|
protected |
- Аргументы
-
int | $from | |
int | $to | |
string | $type | |
- Возвращает
- array
См. определение в файле ym_handler.php строка 381
◆ getDeliveryOptions()
getDeliveryOptions |
( |
| $delivery, |
|
|
| $price, |
|
|
| $weight = 0 ) |
|
protected |
◆ getExistPaymentMethods()
getExistPaymentMethods |
( |
| ) |
|
|
static |
◆ getLocationByCityName()
getLocationByCityName |
( |
| $cityName | ) |
|
|
protected |
◆ getOrderInfo()
- Аргументы
-
- Возвращает
- array|false
- Исключения
-
Bitrix\Main\ArgumentException
См. определение в файле ym_handler.php строка 1623
◆ getOrderSubstatuses()
◆ getPaymentMethods()
◆ getSettings()
getSettings |
( |
| $cached = true | ) |
|
|
static |
Returns Yandex-Market settings
- Аргументы
-
bool | $cached | Return cached or ont value |
- Возвращает
- array
- Исключения
-
Bitrix\Main\ArgumentException
См. определение в файле ym_handler.php строка 250
◆ getSettingsBySiteId()
getSettingsBySiteId |
( |
| $siteId, |
|
|
| $cached = true ) |
|
static |
Returns yandex-market settings for concrete site
- Аргументы
-
| $siteId | string Site idenifier |
bool | $cached | Return cached or ont value |
- Возвращает
- array
См. определение в файле ym_handler.php строка 275
◆ getSiteId()
◆ getTimeInterval()
getTimeInterval |
( |
| $period, |
|
|
| $type ) |
◆ install()
◆ isActive()
◆ isOrderEntity()
- Аргументы
-
Sale\Internals\Entity | $entity | |
- Возвращает
- bool
См. определение в файле ym_handler.php строка 2575
◆ isOrderFromYandex()
isOrderFromYandex |
( |
| $orderId | ) |
|
|
static |
◆ isYandexRequest()
Returns true if it is yandex request
- Возвращает
- bool
См. определение в файле ym_handler.php строка 2566
◆ log()
log |
( |
| $level, |
|
|
| $type, |
|
|
| $itemId, |
|
|
| $description ) |
|
protected |
- Аргументы
-
int | $level | |
string | $type | |
string | $itemId | |
string | $description | |
- Возвращает
- bool
См. определение в файле ym_handler.php строка 1913
◆ makeAdditionalOrderProps()
makeAdditionalOrderProps |
( |
| $address, |
|
|
| $buyer, |
|
|
| $psId, |
|
|
| $deliveryId, |
|
|
| $locationId ) |
|
protected |
- Аргументы
-
array | $address | |
array | $buyer | |
int | $psId | |
int | $deliveryId | |
int | $locationId | |
- Возвращает
- array
См. определение в файле ym_handler.php строка 729
◆ mapYandexStatusToOrder()
mapYandexStatusToOrder |
( |
| $order, |
|
|
| $yandexStatus, |
|
|
| $cancelReason = "" ) |
|
protected |
- Аргументы
-
array | $order | |
string | $yandexStatus | |
string | $cancelReason | |
- Возвращает
- bool|int
См. определение в файле ym_handler.php строка 1935
◆ notifyAdmin()
- Аргументы
-
- Возвращает
- bool
- Исключения
-
Bitrix\Main\ArgumentNullException
См. определение в файле ym_handler.php строка 2195
◆ OnEventLogGetAuditTypes()
OnEventLogGetAuditTypes |
( |
| ) |
|
|
static |
◆ onSaleCancelOrder()
onSaleCancelOrder |
( |
| $orderId, |
|
|
| $value, |
|
|
| $description ) |
|
static |
◆ onSaleDeductOrder()
onSaleDeductOrder |
( |
| $orderId, |
|
|
| $value ) |
|
static |
◆ onSaleDeliveryOrder()
onSaleDeliveryOrder |
( |
| $orderId, |
|
|
| $value ) |
|
static |
◆ onSalePayOrder()
onSalePayOrder |
( |
| $orderId, |
|
|
| $value ) |
|
static |
◆ onSaleStatusOrder()
onSaleStatusOrder |
( |
| $orderId, |
|
|
| $status, |
|
|
| $substatus = false ) |
|
static |
Executes when order's status was changed in shop event OnSaleCancelOrder
- Аргументы
-
int | $orderId | Identifier |
string | $status | New status |
string | $substatus | Substatus. |
- Возвращает
- bool
См. определение в файле ym_handler.php строка 1795
◆ prepareResult()
◆ processCustomEvents()
processCustomEvents |
( |
| $eventName, |
|
|
array | $params ) |
|
protected |
- Аргументы
-
string | $eventName | |
array | $params | |
- Возвращает
- mixed
См. определение в файле ym_handler.php строка 641
◆ processError()
processError |
( |
| $status = "", |
|
|
| $message = "" ) |
|
protected |
- Аргументы
-
string | $status | |
string | $message | |
- Возвращает
- array
См. определение в файле ym_handler.php строка 1461
◆ processRequest()
processRequest |
( |
| $reqObject, |
|
|
| $method, |
|
|
| $postData ) |
- Аргументы
-
string | $reqObject | |
string | $method | |
string | $postData | |
- Возвращает
- string
См. определение в файле ym_handler.php строка 1392
◆ saveSettings()
saveSettings |
( |
| $arSettings | ) |
|
|
static |
Saves settings
- Аргументы
-
$arSettings | array Settings array to save |
- Возвращает
- bool
См. определение в файле ym_handler.php строка 286
◆ sendEmailNewOrder()
sendEmailNewOrder |
( |
| $newOrderId, |
|
|
| $buyer ) |
|
protected |
◆ sendStatus()
sendStatus |
( |
| $orderId, |
|
|
| $status, |
|
|
| $substatus = false ) |
- Аргументы
-
int | $orderId | |
string | $status | |
string | $substatus | |
- Возвращает
- bool
См. определение в файле ym_handler.php строка 1482
◆ sendStatusAgent()
sendStatusAgent |
( |
| $yandexOrderId, |
|
|
| $yandexStatus, |
|
|
| $substatus, |
|
|
| $siteId ) |
|
static |
- Аргументы
-
string | $yandexOrderId | |
string | $yandexStatus | |
string | $substatus | |
string | $siteId | |
- Возвращает
- string
См. определение в файле ym_handler.php строка 1607
◆ setActivity()
- Аргументы
-
- Возвращает
- bool
- Исключения
-
Bitrix\Main\ArgumentException
См. определение в файле ym_handler.php строка 163
◆ settingsConverter()
◆ takeOutOrdersToCorrespondentTable()
takeOutOrdersToCorrespondentTable |
( |
| ) |
|
|
static |
Take out correnspondence to
- Возвращает
- string
См. определение в файле ym_handler.php строка 2414
◆ unInstall()
unInstall |
( |
| $deleteRecord = true | ) |
|
|
static |
Uninstalls service
- Аргументы
-
bool | $deleteRecord | Delete, or not table record about this service |
См. определение в файле ym_handler.php строка 2096
◆ $active
◆ $authType
◆ $campaignId
◆ $communicationFormat
$communicationFormat = self::JSON |
|
protected |
◆ $defaultDeliveryPeriodFrom
$defaultDeliveryPeriodFrom = 7 |
|
protected |
◆ $defaultDeliveryPeriodTo
$defaultDeliveryPeriodTo = 21 |
|
protected |
◆ $deliveryToPaysystem
$deliveryToPaysystem = array() |
|
protected |
◆ $isAcceptOldPrice
$isAcceptOldPrice = self::NOT_ACCEPT_OLD_PRICE |
|
protected |
◆ $isYandexRequest
◆ $locationMapper
◆ $logLevel
$logLevel = self::LOG_LEVEL_ERROR |
|
protected |
◆ $mapDelivery
◆ $mapPaySystems
◆ $oAuthClientId
◆ $oAuthLogin
◆ $oAuthToken
◆ $orderProps
Инициализатор
"FIO" => "FIO",
"EMAIL" => "EMAIL",
"PHONE" => "PHONE",
"ZIP" => "ZIP",
"CITY" => "CITY",
"LOCATION" => "LOCATION",
"ADDRESS" => "ADDRESS"
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
См. определение в файле ym_handler.php строка 66
◆ $outlets
◆ $personTypeId
◆ $siteId
◆ $yandexApiUrl
◆ $yandexToken
◆ ACCEPT_OLD_PRICE
const ACCEPT_OLD_PRICE = 1 |
◆ DATE_FORMAT
const DATE_FORMAT = "d-m-Y" |
◆ ERROR_STATUS_400
const ERROR_STATUS_400 = "400 Bad Request" |
◆ ERROR_STATUS_401
const ERROR_STATUS_401 = "401 Unauthorized" |
◆ ERROR_STATUS_403
const ERROR_STATUS_403 = "403 Forbidden" |
◆ ERROR_STATUS_404
const ERROR_STATUS_404 = "404 Not Found" |
◆ ERROR_STATUS_405
const ERROR_STATUS_405 = "405 Method Not Allowed" |
◆ ERROR_STATUS_415
const ERROR_STATUS_415 = "415 Unsupported Media Type" |
◆ ERROR_STATUS_420
const ERROR_STATUS_420 = "420 Enhance Your Calm" |
◆ ERROR_STATUS_500
const ERROR_STATUS_500 = "500 Internal Server Error" |
◆ ERROR_STATUS_503
const ERROR_STATUS_503 = "503 Service Unavailable" |
◆ JSON
◆ LOG_LEVEL_DEBUG
const LOG_LEVEL_DEBUG = 30 |
◆ LOG_LEVEL_DISABLE
const LOG_LEVEL_DISABLE = 0 |
◆ LOG_LEVEL_ERROR
const LOG_LEVEL_ERROR = 10 |
◆ LOG_LEVEL_INFO
const LOG_LEVEL_INFO = 20 |
◆ NOT_ACCEPT_OLD_PRICE
const NOT_ACCEPT_OLD_PRICE = 0 |
◆ TRADING_PLATFORM_CODE
const TRADING_PLATFORM_CODE = "ymarket" |
◆ XML
◆ XML_ID_PREFIX
const XML_ID_PREFIX = "ymarket_" |
Объявления и описания членов класса находятся в файле: