  | Discount Constructor (Product, IProductDiscount, String, String, Currency, Country, String, Int32, String) | 
 Initializes a new instance of the 
Discount class
 
    Namespace: 
   Dynamicweb.Ecommerce.Discounts
    Assembly:
   Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.12.0
Syntaxpublic Discount(
	Product product,
	IProductDiscount productDiscount,
	string salesDiscountName,
	string salesDiscountDescription,
	Currency currency,
	Country country,
	string unitId,
	int userId,
	string shopId
)
Public Sub New ( 
	product As Product,
	productDiscount As IProductDiscount,
	salesDiscountName As String,
	salesDiscountDescription As String,
	currency As Currency,
	country As Country,
	unitId As String,
	userId As Integer,
	shopId As String
)
Parameters
- product
 - Type: Dynamicweb.Ecommerce.ProductsProduct
 - productDiscount
 - Type: Dynamicweb.Ecommerce.Orders.SalesDiscountsIProductDiscount
 - salesDiscountName
 - Type: SystemString
 - salesDiscountDescription
 - Type: SystemString
 - currency
 - Type: Dynamicweb.Ecommerce.InternationalCurrency
 - country
 - Type: Dynamicweb.Ecommerce.InternationalCountry
 - unitId
 - Type: SystemString
 - userId
 - Type: SystemInt32
 - shopId
 - Type: SystemString
 
See Also