Click or drag to resize
MultiBuyCouponCodeInfoProvider.CreateCouponInternal 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 MultiBuyCouponCodeInfo CreateCouponInternal(
	MultiBuyDiscountInfo discount,
	string code,
	int numberOfUses
)

Parameters

discount
Type: CMS.Ecommerce.MultiBuyDiscountInfo
The discount.
code
Type: System.String
The code.
numberOfUses
Type: System.Int32
The number of uses.

Return Value

Type: MultiBuyCouponCodeInfo
See Also