Exemplo n.º 1
0
 public void _005_TestOptionUpdate()
 {
     var ServiceObject = new OptionService();
     var ArgsObject = new OptionUpdateServiceOptions();
     ArgsObject.option_id = option_id;
     ArgsObject.option_name = "Test Option 123";
     ArgsObject.option_value_name = "Test Option Value 123";
     ArgsObject.option_value_surcharge = (decimal)1.00;
     var result = ServiceObject.Update(ArgsObject);
     Assert.IsInstanceOf<TwoCheckoutResponse>(result);
 }
 public TwoCheckoutResponse Update(OptionUpdateServiceOptions options = null)
 {
     String Result = TwoCheckoutUtil.Request("api/products/update_option", "POST", "admin", options);
     return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result);
 }