Type.registerNamespace('InksWebUI.WebServices');
InksWebUI.WebServices.ShoppingCartService=function() {
InksWebUI.WebServices.ShoppingCartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
InksWebUI.WebServices.ShoppingCartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
AddProductToCart:function(productDetailId,succeededCallback, failedCallback, userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddProductToCart',false,{productDetailId:productDetailId},succeededCallback,failedCallback,userContext); },
AddProductToCart_QuotationProduct:function(quotationProductID,quantity,succeededCallback, failedCallback, userContext) {
/// <param name="quotationProductID" type="String">System.Guid</param>
/// <param name="quantity" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddProductToCart_QuotationProduct',false,{quotationProductID:quotationProductID,quantity:quantity},succeededCallback,failedCallback,userContext); },
AddProductToCart_UploadActwork:function(productDetailId,succeededCallback, failedCallback, userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddProductToCart_UploadActwork',false,{productDetailId:productDetailId},succeededCallback,failedCallback,userContext); },
RemoveProductFromCart:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveProductFromCart',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetShoppingCartStatus:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetShoppingCartStatus',false,{},succeededCallback,failedCallback,userContext); },
GetProductName:function(productDetailId,succeededCallback, failedCallback, userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetProductName',false,{productDetailId:productDetailId},succeededCallback,failedCallback,userContext); }}
InksWebUI.WebServices.ShoppingCartService.registerClass('InksWebUI.WebServices.ShoppingCartService',Sys.Net.WebServiceProxy);
InksWebUI.WebServices.ShoppingCartService._staticInstance = new InksWebUI.WebServices.ShoppingCartService();
InksWebUI.WebServices.ShoppingCartService.set_path = function(value) {
InksWebUI.WebServices.ShoppingCartService._staticInstance.set_path(value); }
InksWebUI.WebServices.ShoppingCartService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_path();}
InksWebUI.WebServices.ShoppingCartService.set_timeout = function(value) {
InksWebUI.WebServices.ShoppingCartService._staticInstance.set_timeout(value); }
InksWebUI.WebServices.ShoppingCartService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_timeout(); }
InksWebUI.WebServices.ShoppingCartService.set_defaultUserContext = function(value) { 
InksWebUI.WebServices.ShoppingCartService._staticInstance.set_defaultUserContext(value); }
InksWebUI.WebServices.ShoppingCartService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_defaultUserContext(); }
InksWebUI.WebServices.ShoppingCartService.set_defaultSucceededCallback = function(value) { 
 InksWebUI.WebServices.ShoppingCartService._staticInstance.set_defaultSucceededCallback(value); }
InksWebUI.WebServices.ShoppingCartService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_defaultSucceededCallback(); }
InksWebUI.WebServices.ShoppingCartService.set_defaultFailedCallback = function(value) { 
InksWebUI.WebServices.ShoppingCartService._staticInstance.set_defaultFailedCallback(value); }
InksWebUI.WebServices.ShoppingCartService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_defaultFailedCallback(); }
InksWebUI.WebServices.ShoppingCartService.set_enableJsonp = function(value) { InksWebUI.WebServices.ShoppingCartService._staticInstance.set_enableJsonp(value); }
InksWebUI.WebServices.ShoppingCartService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_enableJsonp(); }
InksWebUI.WebServices.ShoppingCartService.set_jsonpCallbackParameter = function(value) { InksWebUI.WebServices.ShoppingCartService._staticInstance.set_jsonpCallbackParameter(value); }
InksWebUI.WebServices.ShoppingCartService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return InksWebUI.WebServices.ShoppingCartService._staticInstance.get_jsonpCallbackParameter(); }
InksWebUI.WebServices.ShoppingCartService.set_path("/webservices/shoppingcartservice.asmx");
InksWebUI.WebServices.ShoppingCartService.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.AddProductToCart= function(productDetailId,onSuccess,onFailed,userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.AddProductToCart(productDetailId,onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.AddProductToCart_QuotationProduct= function(quotationProductID,quantity,onSuccess,onFailed,userContext) {
/// <param name="quotationProductID" type="String">System.Guid</param>
/// <param name="quantity" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.AddProductToCart_QuotationProduct(quotationProductID,quantity,onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.AddProductToCart_UploadActwork= function(productDetailId,onSuccess,onFailed,userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.AddProductToCart_UploadActwork(productDetailId,onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.RemoveProductFromCart= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.RemoveProductFromCart(productId,onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.GetShoppingCartStatus= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.GetShoppingCartStatus(onSuccess,onFailed,userContext); }
InksWebUI.WebServices.ShoppingCartService.GetProductName= function(productDetailId,onSuccess,onFailed,userContext) {
/// <param name="productDetailId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
InksWebUI.WebServices.ShoppingCartService._staticInstance.GetProductName(productDetailId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(InksWebUI.WebServices.AddToCartResult) === 'undefined') {
InksWebUI.WebServices.AddToCartResult=gtc("InksWebUI.WebServices.AddToCartResult");
InksWebUI.WebServices.AddToCartResult.registerClass('InksWebUI.WebServices.AddToCartResult');
}
if (typeof(InksWebUI.WebServices.ShoppingCartStatus) === 'undefined') {
InksWebUI.WebServices.ShoppingCartStatus=gtc("InksWebUI.WebServices.ShoppingCartStatus");
InksWebUI.WebServices.ShoppingCartStatus.registerClass('InksWebUI.WebServices.ShoppingCartStatus');
}
