Click or drag to resize
CouponCodeInfoProviderCreateCouponInternal Method
Creates and saves new coupon for specified discount. NOTE: The uniqueness is not checked.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected virtual CouponCodeInfo CreateCouponInternal(
	DiscountInfo discount,
	string code,
	int numberOfUses
)

Parameters

discount
Type: CMS.EcommerceDiscountInfo
The discount.
code
Type: SystemString
The code.
numberOfUses
Type: SystemInt32
The number of uses.

Return Value

Type: CouponCodeInfo
See Also