Exemplo n.º 1
0
func (this *OrderCoupon) Clone(coupon promotion.ICoupon,
	orderId int, orderFee float32) *OrderCoupon {
	v := coupon.GetValue()
	this.CouponCode = v.Code
	this.CouponId = v.Id
	this.OrderId = orderId
	this.Fee = coupon.GetCouponFee(orderFee)
	this.Describe = coupon.GetDescribe()
	this.SendIntegral = v.Integral
	return this
}