public void _005_TestCouponUpdate() { var ServiceObject = new CouponService(); var ArgsObject = new CouponUpdateServiceOptions(); ArgsObject.coupon_code = coupon_code; ArgsObject.date_expire = "2099-12-22"; var result = ServiceObject.Update(ArgsObject); coupon_code = result.coupon_code; Assert.IsInstanceOf<TwoCheckoutResponse>(result); }
public TwoCheckoutResponse Update(CouponUpdateServiceOptions options = null) { String Result = TwoCheckoutUtil.Request("api/products/update_coupon", "POST", "admin", options); return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result)); }