var EcommerceWebMethods=function() {
EcommerceWebMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EcommerceWebMethods.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EcommerceWebMethods._staticInstance.get_path();},
AddToCart:function(quantity,productID,IDs,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToCart',false,{quantity:quantity,productID:productID,IDs:IDs},succeededCallback,failedCallback,userContext); },
UpdateQuickCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateQuickCart',false,{},succeededCallback,failedCallback,userContext); },
GetAddressBookItem:function(addressBookID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAddressBookItem',false,{addressBookID:addressBookID},succeededCallback,failedCallback,userContext); },
GetProductVolumePrice:function(quantity,productID,productPrice,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProductVolumePrice',false,{quantity:quantity,productID:productID,productPrice:productPrice},succeededCallback,failedCallback,userContext); }}
EcommerceWebMethods.registerClass('EcommerceWebMethods',Sys.Net.WebServiceProxy);
EcommerceWebMethods._staticInstance = new EcommerceWebMethods();
EcommerceWebMethods.set_path = function(value) { EcommerceWebMethods._staticInstance.set_path(value); }
EcommerceWebMethods.get_path = function() { return EcommerceWebMethods._staticInstance.get_path(); }
EcommerceWebMethods.set_timeout = function(value) { EcommerceWebMethods._staticInstance.set_timeout(value); }
EcommerceWebMethods.get_timeout = function() { return EcommerceWebMethods._staticInstance.get_timeout(); }
EcommerceWebMethods.set_defaultUserContext = function(value) { EcommerceWebMethods._staticInstance.set_defaultUserContext(value); }
EcommerceWebMethods.get_defaultUserContext = function() { return EcommerceWebMethods._staticInstance.get_defaultUserContext(); }
EcommerceWebMethods.set_defaultSucceededCallback = function(value) { EcommerceWebMethods._staticInstance.set_defaultSucceededCallback(value); }
EcommerceWebMethods.get_defaultSucceededCallback = function() { return EcommerceWebMethods._staticInstance.get_defaultSucceededCallback(); }
EcommerceWebMethods.set_defaultFailedCallback = function(value) { EcommerceWebMethods._staticInstance.set_defaultFailedCallback(value); }
EcommerceWebMethods.get_defaultFailedCallback = function() { return EcommerceWebMethods._staticInstance.get_defaultFailedCallback(); }
EcommerceWebMethods.set_path("/Services/Ecommerce/EcommerceWebMethods.asmx");
EcommerceWebMethods.AddToCart= function(quantity,productID,IDs,onSuccess,onFailed,userContext) {EcommerceWebMethods._staticInstance.AddToCart(quantity,productID,IDs,onSuccess,onFailed,userContext); }
EcommerceWebMethods.UpdateQuickCart= function(onSuccess,onFailed,userContext) {EcommerceWebMethods._staticInstance.UpdateQuickCart(onSuccess,onFailed,userContext); }
EcommerceWebMethods.GetAddressBookItem= function(addressBookID,onSuccess,onFailed,userContext) {EcommerceWebMethods._staticInstance.GetAddressBookItem(addressBookID,onSuccess,onFailed,userContext); }
EcommerceWebMethods.GetProductVolumePrice= function(quantity,productID,productPrice,onSuccess,onFailed,userContext) {EcommerceWebMethods._staticInstance.GetProductVolumePrice(quantity,productID,productPrice,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Classes.Ecommerce');
if (typeof(Classes.Ecommerce.AddressBook) === 'undefined') {
Classes.Ecommerce.AddressBook=gtc("Classes.Ecommerce.AddressBook");
Classes.Ecommerce.AddressBook.registerClass('Classes.Ecommerce.AddressBook');
}
