1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс OrderDiscountBase
Граф наследования:OrderDiscountBase:
OrderDiscount OrderDiscountManager

Открытые статические члены

static init ()
static setManagerConfig ($config)
static getManagerConfig ()
static saveCoupon ($coupon)
static calculateApplyCoupons ($module, $discount, $basket, $params)
static roundPrice (array $basketItem, array $roundData=array())
static roundBasket (array $basket, array $roundData=array(), array $orderData=array())
static checkDiscountProvider ($module)
static getEditUrl (array $discount)
static clearCache ()
static loadStoredDataFromDb ($order, $storageType, array $additionalFilter=array())
static loadOrderStoredDataFromDb ($order, $storageType)
static saveOrderStoredData ($order, $storageType, array $data, array $options=array())
static saveStoredDataBlock ($order, $storageType, array $block, array $options=array())
static addResultBlock ($order, array $block)
static updateResultBlock ($order, array $block)
static addRoundBlock ($order, array $block)
static updateRoundBlock ($order, array $block)
static deleteByOrder ($order)
static getRegistryType ()
static getOrderCouponIterator (array $parameters)

Поля данных

const EVENT_ON_BUILD_DISCOUNT_PROVIDERS = 'onBuildDiscountProviders'
const ERROR_ID = 'BX_SALE_ORDER_DISCOUNT'
const PROVIDER_ACTION_PREPARE_DISCOUNT = 'prepareData'
const PROVIDER_ACTION_GET_URL = 'getEditUrl'
const PROVIDER_ACTION_APPLY_COUPON = 'calculateApplyCoupons'
const PROVIDER_ACTION_ROUND_ITEM_PRICE = 'roundPrice'
const PROVIDER_ACTION_ROUND_BASKET_PRICES = 'roundBasket'
const STORAGE_TYPE_DISCOUNT_ACTION_DATA = 'ACTION_DATA'
const STORAGE_TYPE_ORDER_CONFIG = 'ORDER_CONFIG'
const STORAGE_TYPE_ROUND_CONFIG = 'ROUND_CONFIG'
const STORAGE_TYPE_BASKET_ITEM = 'BASKET_ITEM'

Защищенные статические члены

static loadOrderDiscountFromDb (array $discountIds, array $discountOrder)
static getDiscountClassName ()
static isNativeModule ($module)
static getDiscountProviderActions ()
static executeDiscountProvider (array $provider, array $data)
static prepareData ($discount)
static fillAbsentDiscountFields (array $fields)
static normalizeDiscountFields (array $rawFields)
static searchDiscount ($hash)
static validateCoupon (array $fields)
static addCoupon (array $fields)
static addDiscount (array $fields, array $rawFields)
static loadModulesFromDb (array $discountIds)
static prepareDiscountModules (array $discount)
static transferEntityCodeFromInternal (array $row, array $transferList)
static formatBasketRuleResult (array $rule)
static formatSaleRuleResult (array $rule)
static formatSaleItemRuleResult (array $rule)
static fillRuleProductFields (array &$result, array $basketData, $index)
static getDiscountIterator (array $parameters)
static isValidCouponTypeInternal ($type)
static getOrderDiscountIterator (array $parameters)
static addOrderDiscountInternal (array $fields)
static checkRequiredOrderDiscountFields (array $fields)
static normalizeOrderDiscountFieldsInternal (array $rawFields)
static calculateOrderDiscountHashInternal (array $fields)
static addOrderCouponInternal (array $fields)
static loadCouponsFromDb ($order)
static getOrderDiscountModuleIterator (array $parameters)
static saveOrderDiscountModulesInternal ($orderDiscountId, array $modules)
static getResultEntityInternal ($entity)
static getResultEntityFromInternal ($entity)
static getResultIterator (array $parameters)
static getResultDescriptionIterator (array $parameters)
static addResultRow (array $fields)
static updateResultRow ($id, array $fields)
static getResultTableNameInternal ()
static getResultDescriptionTableNameInternal ()
static checkResultTableWhiteList (array $fields)
static checkResultDescriptionTableWhiteList (array $fields)
static addResultInternal (array $fields)
static addResultDescriptionInternal (array $fields)
static updateResultInternal ($id, array $fields)
static updateResultDescriptionInternal ($id, array $fields)
static getRoundEntityInternal ($entity)
static getRoundEntityFromInternal ($entity)
static getRoundResultIterator (array $parameters)
static addRoundResultInternal (array $fields)
static updateRoundResultInternal ($id, array $fields)
static getRoundTableNameInternal ()
static getStorageTypeInternal ($storageType)
static getStoredDataIterator (array $parameters)
static addStoredDataInternal (array $fields)
static updateStoredDataInternal ($id, array $fields)
static getStoredDataTableInternal ()

Статические защищенные данные

static $init = false
static $errors = array()

Подробное описание

См. определение в файле orderdiscountbase.php строка 9

Методы

◆ addCoupon()

addCoupon ( array $fields)
staticprotected

Add new coupon for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Result|null

См. определение в файле orderdiscountbase.php строка 1482

◆ addDiscount()

addDiscount ( array $fields,
array $rawFields )
staticprotected

Add new unique order discount.

Аргументы
array$fieldsTablet fields.
array$rawFieldsAdditional fields.
Возвращает
Result|null

См. определение в файле orderdiscountbase.php строка 1511

◆ addOrderCouponInternal()

addOrderCouponInternal ( array $fields)
staticprotected

Low-level method add new coupon for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1854

◆ addOrderDiscountInternal()

addOrderDiscountInternal ( array $fields)
staticprotected

Low-level method add new discount for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1796

◆ addResultBlock()

addResultBlock ( $order,
array $block )
static

См. определение в файле orderdiscountbase.php строка 985

◆ addResultDescriptionInternal()

addResultDescriptionInternal ( array $fields)
staticprotected

Low-level method add new result description for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2116

◆ addResultInternal()

addResultInternal ( array $fields)
staticprotected

Low-level method add new result discount for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2105

◆ addResultRow()

addResultRow ( array $fields)
staticprotected

Low-level method add new result discount for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

См. определение в файле orderdiscountbase.php строка 1961

◆ addRoundBlock()

addRoundBlock ( $order,
array $block )
static

См. определение в файле orderdiscountbase.php строка 1094

◆ addRoundResultInternal()

addRoundResultInternal ( array $fields)
staticprotected

Low-level method add new round result for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2186

◆ addStoredDataInternal()

addStoredDataInternal ( array $fields)
staticprotected

Low-level method add stored data for order (prototype).

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2243

◆ calculateApplyCoupons()

calculateApplyCoupons ( $module,
$discount,
$basket,
$params )
static

Check apply discount.

Аргументы
string$moduleDiscount module.
array$discountDiscount data.
array$basketBasket data.
array$paramsCalculate params.
Возвращает
bool|array

См. определение в файле orderdiscountbase.php строка 350

◆ calculateOrderDiscountHashInternal()

calculateOrderDiscountHashInternal ( array $fields)
staticprotected

Calculate order discount hash (prototype).

Аргументы
array$fieldsDiscount information.
Возвращает
string|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1829

◆ checkDiscountProvider()

checkDiscountProvider ( $module)
static

Check existing discount provider for module.

Аргументы
string$moduleModule id.
Возвращает
bool

См. определение в файле orderdiscountbase.php строка 461

◆ checkRequiredOrderDiscountFields()

checkRequiredOrderDiscountFields ( array $fields)
staticprotected

Returns the list of missing discount fields (prototype).

Аргументы
array$fieldsDiscount fields.
Возвращает
array

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1807

◆ checkResultDescriptionTableWhiteList()

checkResultDescriptionTableWhiteList ( array $fields)
staticprotected

Low-level method returns only those fields that are in the result description table (prototype).

Аргументы
array$fields
Возвращает
array|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2094

◆ checkResultTableWhiteList()

checkResultTableWhiteList ( array $fields)
staticprotected

Low-level method returns only those fields that are in the result table (prototype).

Аргументы
array$fields
Возвращает
array|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2083

◆ clearCache()

clearCache ( )
static

Clear discount cache.

Возвращает
void

См. определение в файле orderdiscountbase.php строка 489

◆ deleteByOrder()

deleteByOrder ( $order)
static

Delete all data by order.

Аргументы
int$orderOrder id.
Возвращает
void

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1206

◆ executeDiscountProvider()

executeDiscountProvider ( array $provider,
array $data )
staticprotected

Execute discount provider.

Аргументы
array$providerProvider info keys are case sensitive:
  • string MODULE Provider module id
  • string METHOD Prodider method id
.
array$dataData for execute.
Возвращает
mixed

См. определение в файле orderdiscountbase.php строка 1302

◆ fillAbsentDiscountFields()

fillAbsentDiscountFields ( array $fields)
staticprotected

Get absent discount fields from database.

Аргументы
array$fieldsCurrent discount state.
Возвращает
array|null

См. определение в файле orderdiscountbase.php строка 1344

◆ fillRuleProductFields()

fillRuleProductFields ( array & $result,
array $basketData,
$index )
staticprotected

Fill product fields in rule result.

Аргументы
array&$resultRule result.
array$basketDataBasket data.
int | string$indexBasket index.
Возвращает
void

См. определение в файле orderdiscountbase.php строка 1738

◆ formatBasketRuleResult()

formatBasketRuleResult ( array $rule)
staticprotected

Format rule result for basket discount.

Аргументы
array$ruleRule result from database.
Возвращает
array

См. определение в файле orderdiscountbase.php строка 1660

◆ formatSaleItemRuleResult()

formatSaleItemRuleResult ( array $rule)
staticprotected

Format rule item result for sale discount.

Аргументы
array$ruleRule result from database.
Возвращает
array

См. определение в файле orderdiscountbase.php строка 1708

◆ formatSaleRuleResult()

formatSaleRuleResult ( array $rule)
staticprotected

Format rule result for sale discount.

Аргументы
array$ruleRule result from database.
Возвращает
array

См. определение в файле orderdiscountbase.php строка 1690

◆ getDiscountClassName()

getDiscountClassName ( )
staticprotected

См. определение в файле orderdiscountbase.php строка 1220

◆ getDiscountIterator()

getDiscountIterator ( array $parameters)
staticprotected

Discount getList (prototype).

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1755

◆ getDiscountProviderActions()

getDiscountProviderActions ( )
staticprotected

Return valid provider action list.

Возвращает
array

См. определение в файле orderdiscountbase.php строка 1242

◆ getEditUrl()

getEditUrl ( array $discount)
static

Return url for edit sale discount.

Аргументы
array$discountDiscount data.
Возвращает
string

См. определение в файле orderdiscountbase.php строка 476

◆ getManagerConfig()

getManagerConfig ( )
static

Return current manager params.

Возвращает
array

См. определение в файле orderdiscountbase.php строка 72

◆ getOrderCouponIterator()

getOrderCouponIterator ( array $parameters)
static

Order coupons getList (prototype).

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1843

◆ getOrderDiscountIterator()

getOrderDiscountIterator ( array $parameters)
staticprotected

Order discount getList (prototype).

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1785

◆ getOrderDiscountModuleIterator()

getOrderDiscountModuleIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1894

◆ getRegistryType()

getRegistryType ( )
static

Return parent entity type. The method must be overridden in the derived class.

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1215

◆ getResultDescriptionIterator()

getResultDescriptionIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1950

◆ getResultDescriptionTableNameInternal()

getResultDescriptionTableNameInternal ( )
staticprotected

Low-level method returns result description table name (prototype).

Возвращает
string|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2072

◆ getResultEntityFromInternal()

getResultEntityFromInternal ( $entity)
staticprotected

Converts the discount result entity identifier from the database table format (prototype).

Аргументы
int$entity
Возвращает
null|string

См. определение в файле orderdiscountbase.php строка 1932

◆ getResultEntityInternal()

getResultEntityInternal ( $entity)
staticprotected

Converts the discount result entity identifier to the database table format (prototype).

Аргументы
string$entity
Возвращает
null|int

См. определение в файле orderdiscountbase.php строка 1921

◆ getResultIterator()

getResultIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1941

◆ getResultTableNameInternal()

getResultTableNameInternal ( )
staticprotected

Low-level method returns result table name (prototype).

Возвращает
string|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2062

◆ getRoundEntityFromInternal()

getRoundEntityFromInternal ( $entity)
staticprotected

Converts the rounded entity identifier from the database table format (prototype).

Аргументы
int$entity
Возвращает
null|string

См. определение в файле orderdiscountbase.php строка 2166

◆ getRoundEntityInternal()

getRoundEntityInternal ( $entity)
staticprotected

Converts the rounded entity identifier to the database table format (prototype).

Аргументы
string$entity
Возвращает
null|int

См. определение в файле orderdiscountbase.php строка 2155

◆ getRoundResultIterator()

getRoundResultIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2175

◆ getRoundTableNameInternal()

getRoundTableNameInternal ( )
staticprotected

low-level method returns the round-results table name (prototype).

Возвращает
string|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2208

◆ getStorageTypeInternal()

getStorageTypeInternal ( $storageType)
staticprotected

Low-level method for convert storage types to internal format.

Аргументы
string$storageTypeAbstract storage type.
Возвращает
int|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2223

◆ getStoredDataIterator()

getStoredDataIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2232

◆ getStoredDataTableInternal()

getStoredDataTableInternal ( )
staticprotected

low-level method returns the order stored data table name (prototype).

Возвращает
string|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2265

◆ init()

init ( )
static

Initial discount manager.

Возвращает
void

См. определение в файле orderdiscountbase.php строка 38

◆ isNativeModule()

isNativeModule ( $module)
staticprotected

Returns true, if discount from module sale.

Аргументы
string$moduleModule id.
Возвращает
bool

См. определение в файле orderdiscountbase.php строка 1232

◆ isValidCouponTypeInternal()

isValidCouponTypeInternal ( $type)
staticprotected

Check coupon type.

Аргументы
int$typeCoupon type.
Возвращает
bool

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1770

◆ loadCouponsFromDb()

loadCouponsFromDb ( $order)
staticprotected

Load coupons for order.

Аргументы
int$orderOrder id.
Возвращает
array

См. определение в файле orderdiscountbase.php строка 1865

◆ loadModulesFromDb()

loadModulesFromDb ( array $discountIds)
staticprotected

Load discount modules.

Аргументы
array$discountIdsOrder discount id list.
Возвращает
array|null

См. определение в файле orderdiscountbase.php строка 1564

◆ loadOrderDiscountFromDb()

loadOrderDiscountFromDb ( array $discountIds,
array $discountOrder )
staticprotected

Load applied discount list.

Аргументы
array$discountIds
array$discountOrder
Возвращает
array|null

См. определение в файле orderdiscountbase.php строка 716

◆ loadOrderStoredDataFromDb()

loadOrderStoredDataFromDb ( $order,
$storageType )
static

Load order stored data row.

См. определение в файле orderdiscountbase.php строка 841

◆ loadStoredDataFromDb()

loadStoredDataFromDb ( $order,
$storageType,
array $additionalFilter = array() )
static

Load stored data collection for order.

См. определение в файле orderdiscountbase.php строка 795

◆ normalizeDiscountFields()

normalizeDiscountFields ( array $rawFields)
staticprotected

Clear raw data and calculate discount hash.

Аргументы
array$rawFieldsDiscount information.
Возвращает
array|null

См. определение в файле orderdiscountbase.php строка 1386

◆ normalizeOrderDiscountFieldsInternal()

normalizeOrderDiscountFieldsInternal ( array $rawFields)
staticprotected

Clear raw order discount data (prototype).

Аргументы
array$rawFieldsDiscount information.
Возвращает
array|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1818

◆ prepareData()

prepareData ( $discount)
staticprotected

Prepare sale discount before saving.

Аргументы
array$discountDiscount data.
Возвращает
array|bool

См. определение в файле orderdiscountbase.php строка 1322

◆ prepareDiscountModules()

prepareDiscountModules ( array $discount)
staticprotected

См. определение в файле orderdiscountbase.php строка 1590

◆ roundBasket()

roundBasket ( array $basket,
array $roundData = array(),
array $orderData = array() )
static

Round basket prices.

Аргументы
array$basketBasket.
array$roundDataRound data.
array$orderDataOrder (without basket).
Возвращает
array

См. определение в файле orderdiscountbase.php строка 402

◆ roundPrice()

roundPrice ( array $basketItem,
array $roundData = array() )
static

Round basket item price.

Аргументы
array$basketItemBasket item data.
array$roundDataRound data.
Возвращает
array

См. определение в файле orderdiscountbase.php строка 371

◆ saveCoupon()

saveCoupon ( $coupon)
static

Save coupon.

Аргументы
array$couponCoupon data.
Возвращает
Result

См. определение в файле orderdiscountbase.php строка 236

◆ saveOrderDiscountModulesInternal()

saveOrderDiscountModulesInternal ( $orderDiscountId,
array $modules )
staticprotected

Low-level method save order discount modules.

Аргументы
int$orderDiscountId
array$modules
Возвращает
bool

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1906

◆ saveOrderStoredData()

saveOrderStoredData ( $order,
$storageType,
array $data,
array $options = array() )
static

Save order stored data.

Аргументы
int$order
string$storageType
array$data
array$options
Возвращает
Result

См. определение в файле orderdiscountbase.php строка 870

◆ saveStoredDataBlock()

saveStoredDataBlock ( $order,
$storageType,
array $block,
array $options = array() )
static

Save stored data for entities.

Аргументы
int$order
string$storageType
array$block
array$options
Возвращает
Result
Исключения
Main

Db\SqlQueryException

См. определение в файле orderdiscountbase.php строка 894

◆ searchDiscount()

searchDiscount ( $hash)
staticprotected

Returns exists discount for discount hash (cached).

Аргументы
string$hashDiscount hash.
Возвращает
array|null

См. определение в файле orderdiscountbase.php строка 1401

◆ setManagerConfig()

setManagerConfig ( $config)
static

Set manager params.

Аргументы
array$configManager params (site, currency, etc).
Возвращает
bool

См. определение в файле orderdiscountbase.php строка 53

◆ transferEntityCodeFromInternal()

transferEntityCodeFromInternal ( array $row,
array $transferList )
staticprotected

Returns entity code for discount and round results.

Аргументы
array$rowResult row.
array$transferListTransfer table (for example, basket id to basket code).
Возвращает
int|string

См. определение в файле orderdiscountbase.php строка 1634

◆ updateResultBlock()

updateResultBlock ( $order,
array $block )
static

См. определение в файле orderdiscountbase.php строка 1022

◆ updateResultDescriptionInternal()

updateResultDescriptionInternal ( $id,
array $fields )
staticprotected

Low-level method update result description for order.

Аргументы
int$idPrimary key.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2140

◆ updateResultInternal()

updateResultInternal ( $id,
array $fields )
staticprotected

Low-level method update result discount for order (prototype).

Аргументы
int$idPrimary key.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2128

◆ updateResultRow()

updateResultRow ( $id,
array $fields )
staticprotected

Low-level method update result discount for order.

Аргументы
int$idTablet row id.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

См. определение в файле orderdiscountbase.php строка 2004

◆ updateRoundBlock()

updateRoundBlock ( $order,
array $block )
static

См. определение в файле orderdiscountbase.php строка 1132

◆ updateRoundResultInternal()

updateRoundResultInternal ( $id,
array $fields )
staticprotected

Low-level method update round result for order (prototype).

Аргументы
int$idTablet row id.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2198

◆ updateStoredDataInternal()

updateStoredDataInternal ( $id,
array $fields )
staticprotected

Low-level method update stored data for order (prototype).

Аргументы
int$idTablet row id.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 2255

◆ validateCoupon()

validateCoupon ( array $fields)
staticprotected

Validate coupon.

Аргументы
array$fieldsCoupon data.
Возвращает
Result

Переопределяется в OrderDiscount.

См. определение в файле orderdiscountbase.php строка 1445

Поля

◆ $errors

$errors = array()
staticprotected

См. определение в файле orderdiscountbase.php строка 27

◆ $init

$init = false
staticprotected

См. определение в файле orderdiscountbase.php строка 26

◆ ERROR_ID

const ERROR_ID = 'BX_SALE_ORDER_DISCOUNT'

См. определение в файле orderdiscountbase.php строка 13

◆ EVENT_ON_BUILD_DISCOUNT_PROVIDERS

const EVENT_ON_BUILD_DISCOUNT_PROVIDERS = 'onBuildDiscountProviders'

См. определение в файле orderdiscountbase.php строка 11

◆ PROVIDER_ACTION_APPLY_COUPON

const PROVIDER_ACTION_APPLY_COUPON = 'calculateApplyCoupons'

См. определение в файле orderdiscountbase.php строка 17

◆ PROVIDER_ACTION_GET_URL

const PROVIDER_ACTION_GET_URL = 'getEditUrl'

См. определение в файле orderdiscountbase.php строка 16

◆ PROVIDER_ACTION_PREPARE_DISCOUNT

const PROVIDER_ACTION_PREPARE_DISCOUNT = 'prepareData'

См. определение в файле orderdiscountbase.php строка 15

◆ PROVIDER_ACTION_ROUND_BASKET_PRICES

const PROVIDER_ACTION_ROUND_BASKET_PRICES = 'roundBasket'

См. определение в файле orderdiscountbase.php строка 19

◆ PROVIDER_ACTION_ROUND_ITEM_PRICE

const PROVIDER_ACTION_ROUND_ITEM_PRICE = 'roundPrice'

См. определение в файле orderdiscountbase.php строка 18

◆ STORAGE_TYPE_BASKET_ITEM

const STORAGE_TYPE_BASKET_ITEM = 'BASKET_ITEM'

См. определение в файле orderdiscountbase.php строка 24

◆ STORAGE_TYPE_DISCOUNT_ACTION_DATA

const STORAGE_TYPE_DISCOUNT_ACTION_DATA = 'ACTION_DATA'

См. определение в файле orderdiscountbase.php строка 21

◆ STORAGE_TYPE_ORDER_CONFIG

const STORAGE_TYPE_ORDER_CONFIG = 'ORDER_CONFIG'

См. определение в файле orderdiscountbase.php строка 22

◆ STORAGE_TYPE_ROUND_CONFIG

const STORAGE_TYPE_ROUND_CONFIG = 'ROUND_CONFIG'

См. определение в файле orderdiscountbase.php строка 23


Объявления и описания членов класса находятся в файле: