public void _002_TestOptionCreate()
 {
     var ServiceObject = new OptionService();
     var ArgsObject = new OptionCreateServiceOptions();
     ArgsObject.option_name = "Test Option";
     ArgsObject.option_value_name = "Test Opiton Value";
     ArgsObject.option_value_surcharge = (decimal)2.00;
     var result = ServiceObject.Create(ArgsObject);
     option_id = result.option_id;
     Assert.IsInstanceOf<TwoCheckoutResponse>(result);
 }
        public TwoCheckoutResponse Create(OptionCreateServiceOptions options)
        {
            String Result = TwoCheckoutUtil.Request("api/products/create_option", "POST", "admin", options);

            return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result));
        }
 public TwoCheckoutResponse Create(OptionCreateServiceOptions options)
 {
     String Result = TwoCheckoutUtil.Request("api/products/create_option", "POST", "admin", options);
     return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result);
 }