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(productId,productType,quantity,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="String">System.Guid</param>
/// <param name="productType" type="SynComs.Products.ProductTypeEnum">SynComs.Products.ProductTypeEnum</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',false,{productId:productId,productType:productType,quantity:quantity},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); }}
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_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(productId,productType,quantity,onSuccess,onFailed,userContext) {
/// <param name="productId" type="String">System.Guid</param>
/// <param name="productType" type="SynComs.Products.ProductTypeEnum">SynComs.Products.ProductTypeEnum</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(productId,productType,quantity,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); }
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');
}
Type.registerNamespace('SynComs.Products');
if (typeof(SynComs.Products.ProductTypeEnum) === 'undefined') {
SynComs.Products.ProductTypeEnum = function() { throw Error.invalidOperation(); }
SynComs.Products.ProductTypeEnum.prototype = {PrinterCartridge: 0,Paper: 1,ComboPack: 2,Unknown: 3,Custom: 4,SPRichards: 5}
SynComs.Products.ProductTypeEnum.registerEnum('SynComs.Products.ProductTypeEnum', true);
}
