Coupons policies
The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.
Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.
The following policies can be configured through the Coupons plug-in.
Policy |
Description |
Properties / Default Values |
---|---|---|
|
Defines global settings for coupons.
|
MaxCouponCodeLength \ 30 MaxCouponPrefixLength \ 10 MaxCouponSuffixLength \ 10 GeneratedCouponCodeLength \ 6 MaxNumberOfPrivateCoupons \ 1000 MinPrivateCouponTotal \ 1 MinAllocationCount \ 1 |
|
Defines the names of the coupon entity view actions. |
AddCoupon \ "AddCoupon" RemoveCoupon \ "RemoveCoupon" AddPrivateCoupon \ "AddPrivateCoupon" AddPublicCoupon \ "AddPublicCoupon" NewAllocation \ "NewAllocation" DownloadCouponCodes \ "DownloadCouponCodes" |
|
Defines the names of the coupons transient and entity index lists. |
PromotionCoupons \ "Promotions-{0}-Coupons" AllocatedCoupons \ "Promotion-{0}-AllocatedCoupons" UnallocatedCoupons \ "Promotion-{0}-UnallocatedCoupons" PublicCoupons \ "Promotion-{0}-PublicCoupons" PrivateCouponGroups \ "Promotion-{0}-PrivateCouponGroups" |
|
Defines the names of the coupons entity views. |
PublicCoupons \ "PublicCoupons" PrivateCoupons \ "PrivateCoupons" CouponDetails \ "CouponDetails" Coupons \ "Coupons" AllocationDetails \ "AllocationDetails" Allocations \ "Allocations" |
|
Defines how many times a coupon can be use. |
LimitCount \ 1 |
|
Defines a policy for the
|