/// <summary> /// Create a coupon (with extra attributes in the response) /// </summary> /// <param name="Code">The code for the coupon</param> /// <param name="Title">The title for the coupon</param> /// <param name="Type">The comma separated string of type values to filter results.</param> /// <param name="AlbumIDs">A comma separated string of AlbumIDs to restrict the coupon.</param> /// <param name="Extras">A comma separated string of additional attributes to return in the response</param> /// <returns>Coupon</returns> public Coupon CreateCoupon(string Code, string Title, CouponTypeEnum couponType, float Amount, string AlbumIDs, string Extras) { Coupon c = new Coupon(); c.basic = basic; c.Code = Code; c.Title = Title; c.Amount = Amount; c.Type = couponType; c.CreateCoupon(AlbumIDs, Extras); return c; }
/// <summary> /// Create a coupon (with extra attributes in the response) /// </summary> /// <param name="Code">The code for the coupon</param> /// <param name="Title">The title for the coupon</param> /// <param name="couponType">The comma separated string of type values to filter results.</param> /// <param name="Amount">The amount for the coupon</param> /// <param name="AlbumIDs">A comma separated string of AlbumIDs to restrict the coupon.</param> /// <param name="Extras">A comma separated string of additional attributes to return in the response</param> /// <returns>Coupon</returns> public async Task<Coupon> CreateCouponAsync(string Code, string Title, CouponTypeEnum couponType, float Amount, string AlbumIDs, string Extras) { Coupon c = new Coupon(); c.basic = basic; c.Code = Code; c.Title = Title; c.Type = couponType; c.Amount = Amount; return await c.CreateCouponAsync(AlbumIDs, Extras); }