Type.registerNamespace('VGF.VShop');
VGF.VShop.VShopSS=function() {
VGF.VShop.VShopSS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VGF.VShop.VShopSS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return VGF.VShop.VShopSS._staticInstance.get_path();},
SaveOrderEA:function(addressId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveOrderEA',false,{addressId:addressId},succeededCallback,failedCallback,userContext); },
SaveOrderNA:function(zipCode,krai,region,city,street,house,housing,building,flat,more,receiver,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveOrderNA',false,{zipCode:zipCode,krai:krai,region:region,city:city,street:street,house:house,housing:housing,building:building,flat:flat,more:more,receiver:receiver},succeededCallback,failedCallback,userContext); },
AddressExist:function(zipCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddressExist',false,{zipCode:zipCode},succeededCallback,failedCallback,userContext); },
GetAddresses:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAddresses',false,{},succeededCallback,failedCallback,userContext); },
GetShippingPrice:function(zipCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShippingPrice',false,{zipCode:zipCode},succeededCallback,failedCallback,userContext); },
SetCartItemQuantity:function(rin,count,zipCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetCartItemQuantity',false,{rin:rin,count:count,zipCode:zipCode},succeededCallback,failedCallback,userContext); },
GetOrderItems:function(orderId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOrderItems',false,{orderId:orderId},succeededCallback,failedCallback,userContext); },
BuyItem:function(rin,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'BuyItem',false,{rin:rin},succeededCallback,failedCallback,userContext); },
GetNextShippingDate:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNextShippingDate',false,{},succeededCallback,failedCallback,userContext); },
GetNextShippingDateString:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNextShippingDateString',false,{},succeededCallback,failedCallback,userContext); },
GetAPricesByMonth:function(fromDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAPricesByMonth',false,{fromDate:fromDate},succeededCallback,failedCallback,userContext); },
GetAOrdersCount:function(fromDate,toDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAOrdersCount',false,{fromDate:fromDate,toDate:toDate},succeededCallback,failedCallback,userContext); },
GetATopSales:function(count,fromDate,toDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetATopSales',false,{count:count,fromDate:fromDate,toDate:toDate},succeededCallback,failedCallback,userContext); },
GetAPopularSales:function(count,fromDate,toDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAPopularSales',false,{count:count,fromDate:fromDate,toDate:toDate},succeededCallback,failedCallback,userContext); }}
VGF.VShop.VShopSS.registerClass('VGF.VShop.VShopSS',Sys.Net.WebServiceProxy);
VGF.VShop.VShopSS._staticInstance = new VGF.VShop.VShopSS();
VGF.VShop.VShopSS.set_path = function(value) { VGF.VShop.VShopSS._staticInstance.set_path(value); }
VGF.VShop.VShopSS.get_path = function() { return VGF.VShop.VShopSS._staticInstance.get_path(); }
VGF.VShop.VShopSS.set_timeout = function(value) { VGF.VShop.VShopSS._staticInstance.set_timeout(value); }
VGF.VShop.VShopSS.get_timeout = function() { return VGF.VShop.VShopSS._staticInstance.get_timeout(); }
VGF.VShop.VShopSS.set_defaultUserContext = function(value) { VGF.VShop.VShopSS._staticInstance.set_defaultUserContext(value); }
VGF.VShop.VShopSS.get_defaultUserContext = function() { return VGF.VShop.VShopSS._staticInstance.get_defaultUserContext(); }
VGF.VShop.VShopSS.set_defaultSucceededCallback = function(value) { VGF.VShop.VShopSS._staticInstance.set_defaultSucceededCallback(value); }
VGF.VShop.VShopSS.get_defaultSucceededCallback = function() { return VGF.VShop.VShopSS._staticInstance.get_defaultSucceededCallback(); }
VGF.VShop.VShopSS.set_defaultFailedCallback = function(value) { VGF.VShop.VShopSS._staticInstance.set_defaultFailedCallback(value); }
VGF.VShop.VShopSS.get_defaultFailedCallback = function() { return VGF.VShop.VShopSS._staticInstance.get_defaultFailedCallback(); }
VGF.VShop.VShopSS.set_path("/DesktopModules/VShop/VShopSS.asmx");
VGF.VShop.VShopSS.SaveOrderEA= function(addressId,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.SaveOrderEA(addressId,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.SaveOrderNA= function(zipCode,krai,region,city,street,house,housing,building,flat,more,receiver,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.SaveOrderNA(zipCode,krai,region,city,street,house,housing,building,flat,more,receiver,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.AddressExist= function(zipCode,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.AddressExist(zipCode,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetAddresses= function(onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetAddresses(onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetShippingPrice= function(zipCode,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetShippingPrice(zipCode,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.SetCartItemQuantity= function(rin,count,zipCode,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.SetCartItemQuantity(rin,count,zipCode,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetOrderItems= function(orderId,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetOrderItems(orderId,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.BuyItem= function(rin,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.BuyItem(rin,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetNextShippingDate= function(onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetNextShippingDate(onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetNextShippingDateString= function(onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetNextShippingDateString(onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetAPricesByMonth= function(fromDate,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetAPricesByMonth(fromDate,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetAOrdersCount= function(fromDate,toDate,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetAOrdersCount(fromDate,toDate,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetATopSales= function(count,fromDate,toDate,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetATopSales(count,fromDate,toDate,onSuccess,onFailed,userContext); }
VGF.VShop.VShopSS.GetAPopularSales= function(count,fromDate,toDate,onSuccess,onFailed,userContext) {VGF.VShop.VShopSS._staticInstance.GetAPopularSales(count,fromDate,toDate,onSuccess,onFailed,userContext); }
