55 array $couponParameters
57 $this->_couponParameters = $couponParameters;
58 parent::__construct($context);
69 self::COUPON_FORMAT_ALPHANUMERIC =>
__(
'Alphanumeric'),
70 self::COUPON_FORMAT_ALPHABETICAL =>
__(
'Alphabetical'),
71 self::COUPON_FORMAT_NUMERIC =>
__(
'Numeric')
82 return (
int)$this->scopeConfig->getValue(
83 self::XML_PATH_SALES_RULE_COUPON_LENGTH,
84 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
95 return $this->scopeConfig->getValue(
96 self::XML_PATH_SALES_RULE_COUPON_FORMAT,
97 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
108 return $this->scopeConfig->getValue(
109 self::XML_PATH_SALES_RULE_COUPON_PREFIX,
110 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
121 return $this->scopeConfig->getValue(
122 self::XML_PATH_SALES_RULE_COUPON_SUFFIX,
123 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
134 return (
int)$this->scopeConfig->getValue(
135 self::XML_PATH_SALES_RULE_COUPON_DASH_INTERVAL,
136 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
148 return str_split($this->_couponParameters[
'charset'][
$format]);
158 return $this->_couponParameters[
'separator'];
const XML_PATH_SALES_RULE_COUPON_FORMAT
const XML_PATH_SALES_RULE_COUPON_LENGTH
const XML_PATH_SALES_RULE_COUPON_PREFIX
const COUPON_FORMAT_ALPHANUMERIC
const COUPON_FORMAT_NUMERIC
const XML_PATH_SALES_RULE_COUPON_DASH_INTERVAL
__construct(\Magento\Framework\App\Helper\Context $context, array $couponParameters)
const XML_PATH_SALES_RULE_COUPON_SUFFIX
const COUPON_FORMAT_ALPHABETICAL
const COUPON_TYPE_SPECIFIC_AUTOGENERATED