Type.registerNamespace('EZP.Api.Presentation.Web.Ajax');
EZP.Api.Presentation.Web.Ajax.eCommerce=function() {
EZP.Api.Presentation.Web.Ajax.eCommerce.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EZP.Api.Presentation.Web.Ajax.eCommerce.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_path();},
removePromotionCode:function(Token,PromotionCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'removePromotionCode',false,{Token:Token,PromotionCode:PromotionCode},succeededCallback,failedCallback,userContext); },
applyPromotionCode:function(Token,PromotionCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'applyPromotionCode',false,{Token:Token,PromotionCode:PromotionCode},succeededCallback,failedCallback,userContext); },
emptyCart:function(Token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'emptyCart',false,{Token:Token},succeededCallback,failedCallback,userContext); },
getProducts:function(Token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getProducts',false,{Token:Token},succeededCallback,failedCallback,userContext); },
setCartShippingAddress:function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setCartShippingAddress',false,{Token:Token,FirstName:FirstName,MiddleInitial:MiddleInitial,LastName:LastName,PhoneNumber:PhoneNumber,Address1:Address1,Address2:Address2,City:City,StateProvince:StateProvince,PostalCode:PostalCode,Country:Country},succeededCallback,failedCallback,userContext); },
setCartBillingAddress:function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setCartBillingAddress',false,{Token:Token,FirstName:FirstName,MiddleInitial:MiddleInitial,LastName:LastName,PhoneNumber:PhoneNumber,Address1:Address1,Address2:Address2,City:City,StateProvince:StateProvince,PostalCode:PostalCode,Country:Country},succeededCallback,failedCallback,userContext); },
getQuantity:function(Token,itemId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getQuantity',false,{Token:Token,itemId:itemId},succeededCallback,failedCallback,userContext); },
setShippingMethod:function(Token,shipMethod,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setShippingMethod',false,{Token:Token,shipMethod:shipMethod},succeededCallback,failedCallback,userContext); },
addToCart:function(Token,photoId,qty,sku,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'addToCart',false,{Token:Token,photoId:photoId,qty:qty,sku:sku},succeededCallback,failedCallback,userContext); },
addToCartWithPreview:function(Token,photoId,qty,sku,displayUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'addToCartWithPreview',false,{Token:Token,photoId:photoId,qty:qty,sku:sku,displayUrl:displayUrl},succeededCallback,failedCallback,userContext); },
accountAndCartCreditsGet:function(Token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'accountAndCartCreditsGet',false,{Token:Token},succeededCallback,failedCallback,userContext); },
accountCreditsGet:function(Token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'accountCreditsGet',false,{Token:Token},succeededCallback,failedCallback,userContext); },
removeFromCart:function(Token,photoId,sku,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'removeFromCart',false,{Token:Token,photoId:photoId,sku:sku},succeededCallback,failedCallback,userContext); },
updateCartQuantity:function(Token,photoId,qty,sku,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'updateCartQuantity',false,{Token:Token,photoId:photoId,qty:qty,sku:sku},succeededCallback,failedCallback,userContext); },
addToCartBulk:function(update,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'addToCartBulk',false,{update:update},succeededCallback,failedCallback,userContext); },
updateCartBulk:function(update,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'updateCartBulk',false,{update:update},succeededCallback,failedCallback,userContext); },
getCart:function(Token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getCart',false,{Token:Token},succeededCallback,failedCallback,userContext); },
getXmlOrder:function(EzpOrderId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getXmlOrder',false,{EzpOrderId:EzpOrderId},succeededCallback,failedCallback,userContext); },
createCategoryAlbumShare:function(accountId,shareItems,expireDate,shareInteraction,shareMethod,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'createCategoryAlbumShare',false,{accountId:accountId,shareItems:shareItems,expireDate:expireDate,shareInteraction:shareInteraction,shareMethod:shareMethod},succeededCallback,failedCallback,userContext); },
verifyShippingAddress:function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'verifyShippingAddress',false,{Token:Token,FirstName:FirstName,MiddleInitial:MiddleInitial,LastName:LastName,PhoneNumber:PhoneNumber,Address1:Address1,Address2:Address2,City:City,StateProvince:StateProvince,PostalCode:PostalCode,Country:Country},succeededCallback,failedCallback,userContext); }}
EZP.Api.Presentation.Web.Ajax.eCommerce.registerClass('EZP.Api.Presentation.Web.Ajax.eCommerce',Sys.Net.WebServiceProxy);
EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance = new EZP.Api.Presentation.Web.Ajax.eCommerce();
EZP.Api.Presentation.Web.Ajax.eCommerce.set_path = function(value) { EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.set_path(value); }
EZP.Api.Presentation.Web.Ajax.eCommerce.get_path = function() { return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_path(); }
EZP.Api.Presentation.Web.Ajax.eCommerce.set_timeout = function(value) { EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.set_timeout(value); }
EZP.Api.Presentation.Web.Ajax.eCommerce.get_timeout = function() { return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_timeout(); }
EZP.Api.Presentation.Web.Ajax.eCommerce.set_defaultUserContext = function(value) { EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.set_defaultUserContext(value); }
EZP.Api.Presentation.Web.Ajax.eCommerce.get_defaultUserContext = function() { return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_defaultUserContext(); }
EZP.Api.Presentation.Web.Ajax.eCommerce.set_defaultSucceededCallback = function(value) { EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.set_defaultSucceededCallback(value); }
EZP.Api.Presentation.Web.Ajax.eCommerce.get_defaultSucceededCallback = function() { return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_defaultSucceededCallback(); }
EZP.Api.Presentation.Web.Ajax.eCommerce.set_defaultFailedCallback = function(value) { EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.set_defaultFailedCallback(value); }
EZP.Api.Presentation.Web.Ajax.eCommerce.get_defaultFailedCallback = function() { return EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.get_defaultFailedCallback(); }
EZP.Api.Presentation.Web.Ajax.eCommerce.set_path("/api/Ajax/eCommerce.asmx");
EZP.Api.Presentation.Web.Ajax.eCommerce.removePromotionCode= function(Token,PromotionCode,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.removePromotionCode(Token,PromotionCode,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.applyPromotionCode= function(Token,PromotionCode,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.applyPromotionCode(Token,PromotionCode,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.emptyCart= function(Token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.emptyCart(Token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.getProducts= function(Token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.getProducts(Token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.setCartShippingAddress= function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.setCartShippingAddress(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.setCartBillingAddress= function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.setCartBillingAddress(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.getQuantity= function(Token,itemId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.getQuantity(Token,itemId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.setShippingMethod= function(Token,shipMethod,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.setShippingMethod(Token,shipMethod,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.addToCart= function(Token,photoId,qty,sku,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.addToCart(Token,photoId,qty,sku,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.addToCartWithPreview= function(Token,photoId,qty,sku,displayUrl,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.addToCartWithPreview(Token,photoId,qty,sku,displayUrl,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.accountAndCartCreditsGet= function(Token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.accountAndCartCreditsGet(Token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.accountCreditsGet= function(Token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.accountCreditsGet(Token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.removeFromCart= function(Token,photoId,sku,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.removeFromCart(Token,photoId,sku,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.updateCartQuantity= function(Token,photoId,qty,sku,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.updateCartQuantity(Token,photoId,qty,sku,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.addToCartBulk= function(update,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.addToCartBulk(update,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.updateCartBulk= function(update,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.updateCartBulk(update,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.getCart= function(Token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.getCart(Token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.getXmlOrder= function(EzpOrderId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.getXmlOrder(EzpOrderId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.createCategoryAlbumShare= function(accountId,shareItems,expireDate,shareInteraction,shareMethod,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.createCategoryAlbumShare(accountId,shareItems,expireDate,shareInteraction,shareMethod,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.eCommerce.verifyShippingAddress= function(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.eCommerce._staticInstance.verifyShippingAddress(Token,FirstName,MiddleInitial,LastName,PhoneNumber,Address1,Address2,City,StateProvince,PostalCode,Country,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('EZP.eCommerce');
if (typeof(EZP.eCommerce.ShoppingCart) === 'undefined') {
EZP.eCommerce.ShoppingCart=gtc("EZP.eCommerce.ShoppingCart");
EZP.eCommerce.ShoppingCart.registerClass('EZP.eCommerce.ShoppingCart');
}
Type.registerNamespace('EZP.eCommerce.SmartCart');
if (typeof(EZP.eCommerce.SmartCart.Credit) === 'undefined') {
EZP.eCommerce.SmartCart.Credit=gtc("EZP.eCommerce.SmartCart.Credit");
EZP.eCommerce.SmartCart.Credit.registerClass('EZP.eCommerce.SmartCart.Credit');
}
if (typeof(EZP.Api.Presentation.Web.Ajax.CartQuantityUpdate) === 'undefined') {
EZP.Api.Presentation.Web.Ajax.CartQuantityUpdate=gtc("EZP.Api.Presentation.Web.Ajax.CartQuantityUpdate");
EZP.Api.Presentation.Web.Ajax.CartQuantityUpdate.registerClass('EZP.Api.Presentation.Web.Ajax.CartQuantityUpdate');
}
Type.registerNamespace('EZP.AddressVerification.Dto');
if (typeof(EZP.AddressVerification.Dto.ResultDto) === 'undefined') {
EZP.AddressVerification.Dto.ResultDto=gtc("EZP.AddressVerification.Dto.ResultDto");
EZP.AddressVerification.Dto.ResultDto.registerClass('EZP.AddressVerification.Dto.ResultDto');
}

