Documentation

checkPacket

\Bitrix\Main\Entity\Result public static
\Bitrix\Sale\Internals\DiscountCouponTable::checkPacket(
 array $data,
 boolean $newDiscount = false
);

Method checks data for creating one or several coupons. Static method.

Parameters

ParameterDescriptionVersion
$dataArray with coupon data.
$newDiscountFlag specifies discount as new.

Example



© «Bitrix24», 2001-2024
Up