public void _003_TestCouponRetrieve() { var ServiceObject = new CouponService(); var ArgsObject = new CouponRetrieveServiceOptions(); ArgsObject.coupon_code = coupon_code; var result = ServiceObject.Retrieve(ArgsObject); Assert.IsInstanceOf<Coupon>(result); }
public Coupon Retrieve(CouponRetrieveServiceOptions options) { String Result = TwoCheckoutUtil.Request("api/products/detail_coupon", "GET", "admin", options); return(TwoCheckoutUtil.MapToObject <Coupon>(Result, "coupon")); }