2020-04-24 13:18:18 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP version 5.3
|
|
|
|
*
|
|
|
|
* RetailcrmConstants
|
|
|
|
*
|
|
|
|
* @category RetailCrm
|
|
|
|
* @package RetailCrm
|
|
|
|
* @author RetailCrm <integration@retailcrm.ru>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
|
|
* @link http://www.retailcrm.ru/docs/Developers/ApiVersion4
|
|
|
|
*/
|
|
|
|
|
|
|
|
IncludeModuleLangFile(__FILE__);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP version 5.3
|
|
|
|
*
|
|
|
|
* RetailcrmConstants
|
|
|
|
*
|
|
|
|
* @category RetailCrm
|
|
|
|
* @package RetailCrm
|
|
|
|
* @author RetailCrm <integration@retailcrm.ru>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
|
|
* @link http://www.retailcrm.ru/docs/Developers/ApiVersion4
|
|
|
|
*/
|
|
|
|
class RetailcrmConstants
|
|
|
|
{
|
|
|
|
const MODULE_ID = 'intaro.retailcrm';
|
|
|
|
const CRM_API_HOST_OPTION = 'api_host';
|
|
|
|
const CRM_API_KEY_OPTION = 'api_key';
|
|
|
|
const CRM_ORDER_TYPES_ARR = 'order_types_arr';
|
|
|
|
const CRM_DELIVERY_TYPES_ARR = 'deliv_types_arr';
|
|
|
|
const CRM_DELIVERY_SERVICES_ARR = 'deliv_services_arr';
|
|
|
|
const CRM_PAYMENT_TYPES = 'pay_types_arr';
|
|
|
|
const CRM_PAYMENT_STATUSES = 'pay_statuses_arr';
|
|
|
|
const CRM_PAYMENT = 'payment_arr'; //order payment Y/N
|
|
|
|
const CRM_ORDER_LAST_ID = 'order_last_id';
|
|
|
|
const CRM_ORDER_SITES = 'sites_ids';
|
|
|
|
const CRM_ORDER_DISCHARGE = 'order_discharge';
|
2020-07-14 13:47:26 +03:00
|
|
|
const CRM_SITES_LIST = 'sites_list';
|
2020-04-24 13:18:18 +03:00
|
|
|
const CRM_ORDER_PROPS = 'order_props';
|
|
|
|
const CRM_LEGAL_DETAILS = 'legal_details';
|
|
|
|
const CRM_CUSTOM_FIELDS = 'custom_fields';
|
|
|
|
const CRM_CONTRAGENT_TYPE = 'contragent_type';
|
|
|
|
const CRM_SITES_LIST_CORPORATE = 'shops-corporate';
|
|
|
|
const CRM_ORDER_NUMBERS = 'order_numbers';
|
|
|
|
const CRM_CANCEL_ORDER = 'cansel_order';
|
|
|
|
const CRM_INVENTORIES_UPLOAD = 'inventories_upload';
|
|
|
|
const CRM_STORES = 'stores';
|
|
|
|
const CRM_SHOPS = 'shops';
|
|
|
|
const CRM_IBLOCKS_INVENTORIES = 'iblocks_inventories';
|
|
|
|
const CRM_PRICES_UPLOAD = 'prices_upload';
|
|
|
|
const CRM_PRICES = 'prices';
|
|
|
|
const CRM_PRICE_SHOPS = 'price_shops';
|
|
|
|
const CRM_IBLOCKS_PRICES = 'iblock_prices';
|
|
|
|
const CRM_COLLECTOR = 'collector';
|
|
|
|
const CRM_COLL_KEY = 'coll_key';
|
|
|
|
const CRM_UA = 'ua';
|
|
|
|
const CRM_UA_KEYS = 'ua_keys';
|
|
|
|
const CRM_DISCOUNT_ROUND = 'discount_round';
|
|
|
|
const CRM_CC = 'cc';
|
|
|
|
const CRM_CORP_SHOPS = 'shops-corporate';
|
|
|
|
const CRM_CORP_NAME = 'nickName-corporate';
|
|
|
|
const CRM_CORP_ADDRESS = 'adres-corporate';
|
|
|
|
const CRM_API_VERSION = 'api_version';
|
|
|
|
const CRM_CURRENCY = 'currency';
|
|
|
|
const CRM_ADDRESS_OPTIONS = 'address_options';
|
|
|
|
const CRM_DIMENSIONS = 'order_dimensions';
|
|
|
|
const PROTOCOL = 'protocol';
|
|
|
|
const CRM_ORDER_FAILED_IDS = 'order_failed_ids';
|
2020-07-14 13:47:26 +03:00
|
|
|
const CRM_CUSTOMERS_HISTORY_SINCE_ID = 'customer_history';
|
2020-04-24 13:18:18 +03:00
|
|
|
const CRM_ORDER_HISTORY_DATE = 'order_history_date';
|
|
|
|
const CRM_CATALOG_BASE_PRICE = 'catalog_base_price';
|
|
|
|
const CRM_ORDER_DIMENSIONS = 'order_dimensions';
|
|
|
|
const CANCEL_PROPERTY_CODE = 'INTAROCRM_IS_CANCELED';
|
2020-07-22 15:11:27 +03:00
|
|
|
const CRM_INTEGRATION_DELIVERY = 'integration_delivery';
|
2020-07-23 16:28:36 +03:00
|
|
|
const CRM_SHIPMENT_DEDUCTED = 'shipment_deducted';
|
2020-09-25 12:17:29 +03:00
|
|
|
const SEND_PAYMENT_AMOUNT = 'send_payment_amount';
|
2020-11-24 12:14:26 +03:00
|
|
|
const CRM_ONLINE_CONSULTANT = 'online_consultant';
|
|
|
|
const CRM_ONLINE_CONSULTANT_SCRIPT = 'online_consultant_script';
|
2020-04-24 13:18:18 +03:00
|
|
|
}
|