...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmInvoiceRecurringRestProxy
- Вызов: CCrmInvoiceRecurringRestProxy::prepareParams
protected function prepareParams(array $fields) { $restParamsMapper = new \Bitrix\Crm\Recurring\Entity\ParameterMapper\RestInvoice(); $restParamsMapper->fillMap($fields['PARAMS']); $formParamsMapper = \Bitrix\Crm\Recurring\Entity\Invoice::getParameterMapper(); $formParamsMapper->convert($restParamsMapper); $params = $formParamsMapper->getFormattedMap(); $params['RECURRING_SWITCHER'] = 'Y'; $params['MULTIPLE_TYPE_LIMIT'] = $fields['IS_LIMIT']; $params['MULTIPLE_TIMES_LIMIT'] = (int)$fields['LIMIT_REPEAT']; if(!empty($fields['START_DATE'])) { $params['MULTIPLE_DATE_START'] = $fields['START_DATE']; $params['SINGLE_DATE_BEFORE'] = $fields['START_DATE']; } if(!empty($fields['LIMIT_DATE'])) { $params['MULTIPLE_DATE_LIMIT'] = $fields['LIMIT_DATE']; } return $params; }