//***** AUTOGENERATED - DO NOT CHANGE! *****//

//***** AVAILSERVICEFE *****//
var AvailServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="AvailServiceFE.svc";
}
AvailServiceFE.prototype.GetRecommendations=function(productId,templateName,dynamicParameters){
this.ajax.method="GetRecommendations";
this.ajax.parameters=new Object();
this.ajax.parameters["productId"]=productId;
this.ajax.parameters["templateName"]=templateName;
this.ajax.parameters["dynamicParameters"]=dynamicParameters;
this.ajax.POST();
}
//***** CONFIGURATIONSERVICEFE *****//
var ConfigurationServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="ConfigurationServiceFE.svc";
}
ConfigurationServiceFE.prototype.Ping=function(){
this.ajax.method="Ping";
this.ajax.POST();
}
ConfigurationServiceFE.prototype.GetDivisionWithShops=function(){
this.ajax.method="GetDivisionWithShops";
this.ajax.POST();
}
ConfigurationServiceFE.prototype.GetDivisionById=function(divisionId){
this.ajax.method="GetDivisionById";
this.ajax.parameters=new Object();
this.ajax.parameters["divisionId"]=divisionId;
this.ajax.POST();
}
//***** USERCREATEDCONTENTSERVICEFE *****//
var UserCreatedContentServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="UserCreatedContentServiceFE.svc";
}
UserCreatedContentServiceFE.prototype.GetInitialDataForCreateReviewForm=function(searchableId){
this.ajax.method="GetInitialDataForCreateReviewForm";
this.ajax.parameters=new Object();
this.ajax.parameters["searchableId"]=searchableId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.CreateReview=function(alias,ageId,ageText,genderCode,genderDisplayName,genderSitecoreId,ratingIds,ratingTexts,ratingValues,title,body,searchableId){
this.ajax.method="CreateReview";
this.ajax.parameters=new Object();
this.ajax.parameters["alias"]=alias;
this.ajax.parameters["ageId"]=ageId;
this.ajax.parameters["ageText"]=ageText;
this.ajax.parameters["genderCode"]=genderCode;
this.ajax.parameters["genderDisplayName"]=genderDisplayName;
this.ajax.parameters["genderSitecoreId"]=genderSitecoreId;
this.ajax.parameters["ratingIds"]=ratingIds;
this.ajax.parameters["ratingTexts"]=ratingTexts;
this.ajax.parameters["ratingValues"]=ratingValues;
this.ajax.parameters["title"]=title;
this.ajax.parameters["body"]=body;
this.ajax.parameters["searchableId"]=searchableId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.UpdateReview=function(reviewId,alias,ageId,ageText,genderCode,genderDisplayName,genderSitecoreId,ratingIds,ratingTexts,ratingValues,title,body,searchableId){
this.ajax.method="UpdateReview";
this.ajax.parameters=new Object();
this.ajax.parameters["reviewId"]=reviewId;
this.ajax.parameters["alias"]=alias;
this.ajax.parameters["ageId"]=ageId;
this.ajax.parameters["ageText"]=ageText;
this.ajax.parameters["genderCode"]=genderCode;
this.ajax.parameters["genderDisplayName"]=genderDisplayName;
this.ajax.parameters["genderSitecoreId"]=genderSitecoreId;
this.ajax.parameters["ratingIds"]=ratingIds;
this.ajax.parameters["ratingTexts"]=ratingTexts;
this.ajax.parameters["ratingValues"]=ratingValues;
this.ajax.parameters["title"]=title;
this.ajax.parameters["body"]=body;
this.ajax.parameters["searchableId"]=searchableId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.GetReviews=function(searchableId){
this.ajax.method="GetReviews";
this.ajax.parameters=new Object();
this.ajax.parameters["searchableId"]=searchableId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.IncrementHelpfulness=function(reviewId,direction){
this.ajax.method="IncrementHelpfulness";
this.ajax.parameters=new Object();
this.ajax.parameters["reviewId"]=reviewId;
this.ajax.parameters["direction"]=direction;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.GetReview=function(reviewId){
this.ajax.method="GetReview";
this.ajax.parameters=new Object();
this.ajax.parameters["reviewId"]=reviewId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.DeleteReview=function(reviewId){
this.ajax.method="DeleteReview";
this.ajax.parameters=new Object();
this.ajax.parameters["reviewId"]=reviewId;
this.ajax.POST();
}
UserCreatedContentServiceFE.prototype.IsAliasInUse=function(alias){
this.ajax.method="IsAliasInUse";
this.ajax.parameters=new Object();
this.ajax.parameters["alias"]=alias;
this.ajax.POST();
}
//***** POSTALSERVICEFE *****//
var PostalServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="PostalServiceFE.svc";
}
PostalServiceFE.prototype.GetCity=function(postalcode,country){
this.ajax.method="GetCity";
this.ajax.parameters=new Object();
this.ajax.parameters["postalcode"]=postalcode;
this.ajax.parameters["country"]=country;
this.ajax.POST();
}
PostalServiceFE.prototype.GetCitiesDE=function(p){
this.ajax.method="GetCitiesDE";
this.ajax.parameters=new Object();
this.ajax.parameters["p"]=p;
this.ajax.POST();
}
PostalServiceFE.prototype.GetDistrictsDE=function(n,p){
this.ajax.method="GetDistrictsDE";
this.ajax.parameters=new Object();
this.ajax.parameters["n"]=n;
this.ajax.parameters["p"]=p;
this.ajax.POST();
}
//***** PRODUCTSERVICEFE *****//
var ProductServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="ProductServiceFE.svc";
}
ProductServiceFE.prototype.UpdateQuantity=function(a,p,v){
this.ajax.method="UpdateQuantity";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["p"]=p;
this.ajax.parameters["v"]=v;
this.ajax.POST();
}
ProductServiceFE.prototype.GetDetails=function(a,p,v){
this.ajax.method="GetDetails";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["p"]=p;
this.ajax.parameters["v"]=v;
this.ajax.POST();
}
ProductServiceFE.prototype.RateProduct=function(p,r){
this.ajax.method="RateProduct";
this.ajax.parameters=new Object();
this.ajax.parameters["p"]=p;
this.ajax.parameters["r"]=r;
this.ajax.POST();
}
ProductServiceFE.prototype.GetProducts=function(productIds){
this.ajax.method="GetProducts";
this.ajax.parameters=new Object();
this.ajax.parameters["productIds"]=productIds;
this.ajax.POST();
}
ProductServiceFE.prototype.GetResultProducts=function(productIds){
this.ajax.method="GetResultProducts";
this.ajax.parameters=new Object();
this.ajax.parameters["productIds"]=productIds;
this.ajax.POST();
}
ProductServiceFE.prototype.GetUpdatedPriceAndPictureForSponsorProduct=function(a,p,v){
this.ajax.method="GetUpdatedPriceAndPictureForSponsorProduct";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["p"]=p;
this.ajax.parameters["v"]=v;
this.ajax.POST();
}
ProductServiceFE.prototype.GetVideoPlayerScript=function(m){
this.ajax.method="GetVideoPlayerScript";
this.ajax.parameters=new Object();
this.ajax.parameters["m"]=m;
this.ajax.POST();
}
//***** RETAILSHOPSERVICEFE *****//
var RetailShopServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="RetailShopServiceFE.svc";
}
RetailShopServiceFE.prototype.GetRetailShop=function(i,p){
this.ajax.method="GetRetailShop";
this.ajax.parameters=new Object();
this.ajax.parameters["i"]=i;
this.ajax.parameters["p"]=p;
this.ajax.POST();
}
//***** SEARCHSERVICEFE *****//
var SearchServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="SearchServiceFE.svc";
}
SearchServiceFE.prototype.GetSuggestions=function(s){
this.ajax.method="GetSuggestions";
this.ajax.parameters=new Object();
this.ajax.parameters["s"]=s;
this.ajax.POST();
}
SearchServiceFE.prototype.GetSearchResult=function(p,ro,ft,ar,c,fp,g,tp,s,i,bcdt){
this.ajax.method="GetSearchResult";
this.ajax.parameters=new Object();
this.ajax.parameters["p"]=p;
this.ajax.parameters["ro"]=ro;
this.ajax.parameters["ft"]=ft;
this.ajax.parameters["ar"]=ar;
this.ajax.parameters["c"]=c;
this.ajax.parameters["fp"]=fp;
this.ajax.parameters["g"]=g;
this.ajax.parameters["tp"]=tp;
this.ajax.parameters["s"]=s;
this.ajax.parameters["i"]=i;
this.ajax.parameters["bcdt"]=bcdt;
this.ajax.POST();
}
SearchServiceFE.prototype.GetUpsaleProducts=function(pid,ro,ar,pc,c,fp,tp,so,s,i,cF,cr){
this.ajax.method="GetUpsaleProducts";
this.ajax.parameters=new Object();
this.ajax.parameters["pid"]=pid;
this.ajax.parameters["ro"]=ro;
this.ajax.parameters["ar"]=ar;
this.ajax.parameters["pc"]=pc;
this.ajax.parameters["c"]=c;
this.ajax.parameters["fp"]=fp;
this.ajax.parameters["tp"]=tp;
this.ajax.parameters["so"]=so;
this.ajax.parameters["s"]=s;
this.ajax.parameters["i"]=i;
this.ajax.parameters["cF"]=cF;
this.ajax.parameters["cr"]=cr;
this.ajax.POST();
}
SearchServiceFE.prototype.GetRetailShops=function(c,p,s,pi,bi){
this.ajax.method="GetRetailShops";
this.ajax.parameters=new Object();
this.ajax.parameters["c"]=c;
this.ajax.parameters["p"]=p;
this.ajax.parameters["s"]=s;
this.ajax.parameters["pi"]=pi;
this.ajax.parameters["bi"]=bi;
this.ajax.POST();
}
SearchServiceFE.prototype.PerformSitecoreSearchAsProductEntities=function(q,p,n){
this.ajax.method="PerformSitecoreSearchAsProductEntities";
this.ajax.parameters=new Object();
this.ajax.parameters["q"]=q;
this.ajax.parameters["p"]=p;
this.ajax.parameters["n"]=n;
this.ajax.POST();
}
SearchServiceFE.prototype.PerformShopSearchAsProductEntities=function(q,p,n){
this.ajax.method="PerformShopSearchAsProductEntities";
this.ajax.parameters=new Object();
this.ajax.parameters["q"]=q;
this.ajax.parameters["p"]=p;
this.ajax.parameters["n"]=n;
this.ajax.POST();
}
SearchServiceFE.prototype.TRUPerformSitecoreSearchAsProductEntities=function(q,p,n){
this.ajax.method="TRUPerformSitecoreSearchAsProductEntities";
this.ajax.parameters=new Object();
this.ajax.parameters["q"]=q;
this.ajax.parameters["p"]=p;
this.ajax.parameters["n"]=n;
this.ajax.POST();
}
SearchServiceFE.prototype.TRUPerformShopSearchAsProductEntities=function(q,p,n){
this.ajax.method="TRUPerformShopSearchAsProductEntities";
this.ajax.parameters=new Object();
this.ajax.parameters["q"]=q;
this.ajax.parameters["p"]=p;
this.ajax.parameters["n"]=n;
this.ajax.POST();
}
SearchServiceFE.prototype.GetTelevisionSearchResult=function(g,aF,aT,fP,tP,b,dtp,ddt,sId,sO,nRI){
this.ajax.method="GetTelevisionSearchResult";
this.ajax.parameters=new Object();
this.ajax.parameters["g"]=g;
this.ajax.parameters["aF"]=aF;
this.ajax.parameters["aT"]=aT;
this.ajax.parameters["fP"]=fP;
this.ajax.parameters["tP"]=tP;
this.ajax.parameters["b"]=b;
this.ajax.parameters["dtp"]=dtp;
this.ajax.parameters["ddt"]=ddt;
this.ajax.parameters["sId"]=sId;
this.ajax.parameters["sO"]=sO;
this.ajax.parameters["nRI"]=nRI;
this.ajax.POST();
}
SearchServiceFE.prototype.GetTRUSearchResult=function(p,ro,ft,s,g,aF,aT,fP,tP,c,i,bcdt,sId){
this.ajax.method="GetTRUSearchResult";
this.ajax.parameters=new Object();
this.ajax.parameters["p"]=p;
this.ajax.parameters["ro"]=ro;
this.ajax.parameters["ft"]=ft;
this.ajax.parameters["s"]=s;
this.ajax.parameters["g"]=g;
this.ajax.parameters["aF"]=aF;
this.ajax.parameters["aT"]=aT;
this.ajax.parameters["fP"]=fP;
this.ajax.parameters["tP"]=tP;
this.ajax.parameters["c"]=c;
this.ajax.parameters["i"]=i;
this.ajax.parameters["bcdt"]=bcdt;
this.ajax.parameters["sId"]=sId;
this.ajax.POST();
}
SearchServiceFE.prototype.NewSearch=function(query){
this.ajax.method="NewSearch";
this.ajax.parameters=new Object();
this.ajax.parameters["query"]=AjaxObj.shrink(query,"SearchQuery");
this.ajax.POST();
}
//***** SHOPPINGSERVICEFE *****//
var ShoppingServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="ShoppingServiceFE.svc";
}
ShoppingServiceFE.prototype.RemoveLineItem=function(l){
this.ajax.method="RemoveLineItem";
this.ajax.parameters=new Object();
this.ajax.parameters["l"]=l;
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetWidgetBasket=function(){
this.ajax.method="GetWidgetBasket";
this.ajax.POST();
}
ShoppingServiceFE.prototype.RemoveLineItem2=function(l){
this.ajax.method="RemoveLineItem2";
this.ajax.parameters=new Object();
this.ajax.parameters["l"]=l;
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetWidgetBasket2=function(){
this.ajax.method="GetWidgetBasket2";
this.ajax.POST();
}
ShoppingServiceFE.prototype.AddGiftwrap=function(g){
this.ajax.method="AddGiftwrap";
this.ajax.parameters=new Object();
this.ajax.parameters["g"]=AjaxObj.shrink(g,"GiftWrap");
this.ajax.POST();
}
ShoppingServiceFE.prototype.DeleteGiftwrap=function(g){
this.ajax.method="DeleteGiftwrap";
this.ajax.parameters=new Object();
this.ajax.parameters["g"]=AjaxObj.shrink(g,"GiftWrap");
this.ajax.POST();
}
ShoppingServiceFE.prototype.RemoveLineItemFromBasket=function(lineItemId,checkBasketFailed){
this.ajax.method="RemoveLineItemFromBasket";
this.ajax.parameters=new Object();
this.ajax.parameters["lineItemId"]=lineItemId;
this.ajax.parameters["checkBasketFailed"]=checkBasketFailed;
this.ajax.POST();
}
ShoppingServiceFE.prototype.UpdateLineItemQuantity=function(lineItemId,quantity,checkBasketFailed){
this.ajax.method="UpdateLineItemQuantity";
this.ajax.parameters=new Object();
this.ajax.parameters["lineItemId"]=lineItemId;
this.ajax.parameters["quantity"]=quantity;
this.ajax.parameters["checkBasketFailed"]=checkBasketFailed;
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetBigBasket=function(){
this.ajax.method="GetBigBasket";
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetMiniBasket=function(){
this.ajax.method="GetMiniBasket";
this.ajax.POST();
}
ShoppingServiceFE.prototype.AddProductToBasket=function(a,b,c){
this.ajax.method="AddProductToBasket";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["b"]=b;
this.ajax.parameters["c"]=c;
this.ajax.POST();
}
ShoppingServiceFE.prototype.AddAccessoryProductToBasket=function(a,b,c,d){
this.ajax.method="AddAccessoryProductToBasket";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["b"]=b;
this.ajax.parameters["c"]=c;
this.ajax.parameters["d"]=d;
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetQuickBuyResponse=function(a,b){
this.ajax.method="GetQuickBuyResponse";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.parameters["b"]=b;
this.ajax.POST();
}
ShoppingServiceFE.prototype.GetDivisionSpecificPrice=function(a){
this.ajax.method="GetDivisionSpecificPrice";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.POST();
}
ShoppingServiceFE.prototype.AddProductsToBasket=function(a){
this.ajax.method="AddProductsToBasket";
this.ajax.parameters=new Object();
this.ajax.parameters["a"]=a;
this.ajax.POST();
}
//***** USERSERVICEFE *****//
var UserServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="UserServiceFE.svc";
}
UserServiceFE.prototype.LoginClubBRMember=function(e,m){
this.ajax.method="LoginClubBRMember";
this.ajax.parameters=new Object();
this.ajax.parameters["e"]=e;
this.ajax.parameters["m"]=m;
this.ajax.POST();
}
UserServiceFE.prototype.IsClubBRMember=function(){
this.ajax.method="IsClubBRMember";
this.ajax.POST();
}
//***** WISHLISTSERVICEFE *****//
var WishlistServiceFE=function(){
this.ajax=new AjaxObj();
this.ajax.service="WishlistServiceFE.svc";
}
WishlistServiceFE.prototype.AddProductToWishlist=function(s,b){
this.ajax.method="AddProductToWishlist";
this.ajax.parameters=new Object();
this.ajax.parameters["s"]=s;
this.ajax.parameters["b"]=b;
this.ajax.POST();
}
WishlistServiceFE.prototype.RemoveWish=function(l){
this.ajax.method="RemoveWish";
this.ajax.parameters=new Object();
this.ajax.parameters["l"]=l;
this.ajax.POST();
}
WishlistServiceFE.prototype.GetCurrentWishlist=function(){
this.ajax.method="GetCurrentWishlist";
this.ajax.POST();
}
//***** OBJECT EXPANDERS AFTER AJAX TRANSPORT *****//
var Expanders={
CreateReviewFormInitialData:function(obj){
var o=new Object();
o.HasAlreadyReviewed=obj.A;//Boolean
o.Ages=AjaxObj.expand(obj.B);//ReviewAge[](ReviewAge)
o.Genders=AjaxObj.expand(obj.C);//ReviewGender[](ReviewGender)
o.RatingCategories=AjaxObj.expand(obj.D);//ReviewRatingCategory[](ReviewRatingCategory)
o.Review=AjaxObj.expand(obj.E);//Review
return o;
},
ReviewAge:function(obj){
var o=new Object();
o.DisplayName=obj.A;//String
o.SitecoreId=obj.B;//Guid
return o;
},
ReviewGender:function(obj){
var o=new Object();
o.DisplayName=obj.A;//String
o.SitecoreId=obj.B;//Guid
o.Code=obj.C;//Char
return o;
},
ReviewRatingCategory:function(obj){
var o=new Object();
o.DisplayName=obj.A;//String
o.SitecoreId=obj.B;//Guid
o.ContextName=obj.C;//String
o.Score=obj.D;//Int32
return o;
},
Review:function(obj){
var o=new Object();
o.Title=obj.A;//String
o.Body=obj.B;//String
o.AgeText=obj.C;//String
o.GenderText=obj.D;//String
o.Alias=obj.E;//String
o.Date=CommonHelper.toJavaScriptDate(obj.F);//DateTime
o.HelpfulnessPositive=obj.G;//Int32
o.HelpfulnessNegative=obj.H;//Int32
o.UserIsEditor=obj.I;//Boolean
o.Scores=AjaxObj.expand(obj.J);//ReviewRatingCategory[](ReviewRatingCategory)
o.Id=obj.K;//Guid
return o;
},
Result:function(obj){
var o=new Object();
o.Failed=obj.A;//Boolean
o.Warning=obj.B;//Boolean
o.Reason=obj.C;//String
return o;
},
NameValue:function(obj){
var o=new Object();
o.Name=obj.A;//String
o.Value=obj.B;//String
return o;
},
ProductDetails:function(obj){
var o=new Object();
o.MainPictureUrl=obj.A;//String
o.ZoomPictureUrl=obj.B;//String
o.Price=obj.C;//String
o.DetailsTitle=obj.D;//String
o.Description=obj.E;//String
o.AgeGroup=obj.F;//String
o.AgeGroupText=obj.G;//String
o.EditionId=obj.H;//String
o.InventoryIndicatorUrl=obj.I;//String
o.InventoryIndicator=obj.J;//Int32
o.DiscountHtml=obj.K;//String
o.PagerImages=obj.L;//String
o.IsWebOnly=obj.M;//Boolean
o.IsWebOffer=obj.N;//Boolean
return o;
},
RatingSummary:function(obj){
var o=new Object();
o.Rating=obj.A;//Int32
o.NumberOfRatings=obj.B;//Int32
o.RatingSuccess=obj.C;//Boolean
return o;
},
SearchResult:function(obj){
var o=new Object();
o.Products=AjaxObj.expand(obj.A);//List`1(TypeaheadProduct)
o.RetailStores=AjaxObj.expand(obj.B);//List`1(RetailShop)
o.SitecoreItems=AjaxObj.expand(obj.C);//List`1(SitecoreItem)
o.NumberOfElements=obj.D;//Int32
o.FacetList=AjaxObj.expand(obj.E);//List`1(Facet)
o.FromPrice=obj.F;//Int32
o.ToPrice=obj.G;//Int32
return o;
},
TypeaheadProduct:function(obj){
var o=new Object();
o.Title=obj.A;//String
o.Teaser=obj.B;//String
o.Price=obj.C;//String
o.ThumbnailImage=obj.D;//String
o.Url=obj.E;//String
o.SearchableId=obj.F;//String
o.Category=obj.G;//String
o.EditionId=obj.H;//String
o.DiscountBasketText=obj.I;//String
o.SplashIcon=obj.J;//String
o.HasMultiplePrices=obj.K;//Boolean
o.IsWebOnly=obj.L;//Boolean
o.IsWebOffer=obj.M;//Boolean
return o;
},
RetailStore:function(obj){
var o=new Object();
o.Id=obj.A;//String
o.Name=obj.B;//String
o.PhoneNumber=obj.C;//String
o.FacadeImageId=obj.D;//String
o.Url=obj.E;//String
o.AddressLines=obj.F;//List`1(String)
o.Hours=AjaxObj.expand(obj.G);//List`1(ShopHours)
o.HoursNextWeek=AjaxObj.expand(obj.H);//List`1(ShopHours)
o.QueriedProductBuyableId=obj.I;//String
o.QueriedProductStockCount=obj.J;//Int32
o.QueriedProductId=obj.K;//String
o.QueriedProductBuyableItemIsVariant=obj.L;//Boolean
o.StoreManagerName=obj.M;//String
o.StoreManagerEmail=obj.N;//String
o.Country=obj.O;//String
return o;
},
ShopHours:function(obj){
var o=new Object();
o.Day=obj.A;//String
o.Date=obj.B;//String
o.OpeningTime=obj.C;//String
o.ClosingTime=obj.D;//String
return o;
},
SitecoreItem:function(obj){
var o=new Object();
o.Id=obj.A;//String
o.Title=obj.B;//String
o.Teaser=obj.C;//String
o.Image=obj.E;//String
o.Uri=obj.F;//String
return o;
},
Facet:function(obj){
var o=new Object();
o.FacetName=obj.A;//String
o.FacetItems=AjaxObj.expand(obj.B);//List`1(FacetItem)
o.FacetType=obj.C;//String
return o;
},
FacetItem:function(obj){
var o=new Object();
o.Text=obj.A;//String
o.Value=obj.B;//String
o.Selected=obj.C;//Boolean
o.Active=obj.D;//Boolean
return o;
},
SearchResult2:function(obj){
var o=new Object();
o.Total=obj.A;//Int32
o.To=obj.B;//Int32
o.From=obj.C;//Int32
o.Products=AjaxObj.expand(obj.D);//List`1(ProductFE)
o.Categories1=AjaxObj.expand(obj.E);//List`1(FacetItem)
o.Categories2=AjaxObj.expand(obj.F);//List`1(FacetItem)
o.SearchType=obj.G;//String
return o;
},
Product:function(obj){
var o=new Object();
o.BuyableId=obj.A;//String
o.SearchableId=obj.B;//String
o.ListImageGalleryUrl=obj.C;//String
o.ListImageListUrl=obj.D;//String
o.Url=obj.E;//String
o.SplashIconUrl=obj.F;//String
o.SplashMouseOverText=obj.G;//String
o.Name=obj.H;//String
o.Description=obj.I;//String
o.Price=obj.J;//String
o.ListShortDiscountText=obj.K;//String
o.StockStatus=obj.L;//Int32
o.CanBuy=obj.M;//Boolean
o.FindShopUrl=obj.N;//String
o.Rating=obj.O;//Int32
o.NumberOfRatings=obj.P;//Int32
o.Quantity=obj.Q;//Int32
o.VariantOnlyName=obj.R;//String
o.ImageForLayerLarge=obj.S;//String
o.ImageForQuantityList=obj.T;//String
o.ImageForChosenQuantityItem=obj.U;//String
o.IsWebOnly=obj.V;//Boolean
o.IsWebOffer=obj.W;//Boolean
return o;
},
TypeaheadResult:function(obj){
var o=new Object();
o.Products=AjaxObj.expand(obj.A);//List`1(TypeaheadProduct)
o.Page=AjaxObj.expand(obj.B);//SitecoreItem
o.Store=AjaxObj.expand(obj.C);//RetailShop
o.FullResultUrl=obj.D;//String
return o;
},
TRUTelevisionSearchResult:function(obj){
var o=new Object();
o.Products=AjaxObj.expand(obj.A);//List`1(TRUProduct)
o.NumberOfElements=obj.B;//Int32
o.FacetList=AjaxObj.expand(obj.C);//List`1(Facet)
o.FromPrice=obj.D;//Int32
o.ToPrice=obj.E;//Int32
return o;
},
TRUProduct:function(obj){
var o=new Object();
o.Title=obj.A;//String
o.Teaser=obj.B;//String
o.Price=obj.C;//String
o.Image=obj.D;//String
o.Url=obj.E;//String
o.DiscountBasketText=obj.F;//String
o.SplashIcon=obj.G;//String
o.Class=obj.H;//String
o.SplashClass=obj.I;//String
o.DummyProduct=obj.J;//Boolean
o.SearchableId=obj.K;//String
return o;
},
SearchQuery:function(obj){
var o=new Object();
o.ContextId=obj.A;//String
o.Query=obj.B;//String
o.DocumentType=obj.C;//String
o.PageNumber=obj.D;//Int32
o.PageSize=obj.E;//Int32
o.Sort=obj.F;//String
o.AgeRange=obj.G;//Nullable`1(Int32)
o.PriceFrom=obj.H;//Nullable`1(Int32)
o.PriceTo=obj.I;//Nullable`1(Int32)
o.Gender=obj.J;//Nullable`1(Int32)
o.Category1=obj.K;//String
o.Category2=obj.L;//String
o.ConfigurationId=obj.O;//String
o.ProductId=obj.P;//String
o.BreadcrumbTaxonomy=obj.Q;//String
return o;
},
BasketWidget:function(obj){
var o=new Object();
o.ShippingTotal=obj.A;//String
o.Total=obj.B;//String
o.TotalCurrency=obj.C;//String
o.DiscountTotal=obj.D;//String
o.LineItemHtml=obj.E;//String
o.LineItemCount=obj.F;//Int32
o.NumSavingVoucherStickers=obj.G;//Int32
return o;
},
GiftWrap:function(obj){
var o=new Object();
o.ItemId=obj.A;//String
o.PaperId=obj.B;//String
o.From=obj.C;//String
o.To=obj.D;//String
o.Index=obj.F;//Int32
o.MessageLines=obj.G;//List`1(String)
return o;
},
BigBasket:function(obj){
var o=new Object();
o.ShippingTotal=obj.A;//String
o.Total=obj.B;//String
o.TotalCurrency=obj.C;//String
o.DiscountTotal=obj.D;//String
o.LineItemHtml=obj.E;//String
o.LineItemCount=obj.F;//Int32
o.DeletedLineItem=obj.G;//String
o.TotalProductsInBasket=obj.H;//String
o.NumSavingVoucherStickers=obj.I;//Int32
o.ErrorCode=obj.J;//String
return o;
},
MiniBasket:function(obj){
var o=new Object();
o.ShippingTotal=obj.A;//String
o.DiscountTotal=obj.B;//String
o.Total=obj.C;//String
o.Products=AjaxObj.expand(obj.D);//List`1(MiniBasketProduct)
o.TotalProducts=obj.E;//Int32
return o;
},
MiniBasketProduct:function(obj){
var o=new Object();
o.Name=obj.A;//String
o.Quantity=obj.B;//Int32
o.Price=obj.C;//String
o.ImageUrl=obj.D;//String
return o;
},
QuickBuyResponsePackage:function(obj){
var o=new Object();
o.OverlayType=obj.A;//String
o.AdditionalProducts=AjaxObj.expand(obj.B);//List`1(ProductFE)
o.Success=obj.C;//Boolean
o.LineItemId=obj.D;//String
o.QuantityTrigger=obj.E;//Int32
o.ClickedProduct=AjaxObj.expand(obj.F);//ProductFE
o.DiscountPrice=obj.G;//Double
o.NormalPrice=obj.H;//Double
o.TotalWhenDiscountTriggered=obj.I;//Double
o.OverlayChosenItemDiscountText=obj.J;//String
o.SCCategory=obj.K;//String
o.SCTitle=obj.L;//String
return o;
},
Address:function(obj){
var o=new Object();
o.AddressId=obj.A;//String
o.AddressName=obj.B;//String
o.FirstName=obj.C;//String
o.LastName=obj.D;//String
o.AddressLine01=obj.E;//String
o.AddressLine02=obj.F;//String
o.PostalCode=obj.G;//String
o.City=obj.H;//String
o.CountryCode=obj.I;//String
o.CountryName=obj.J;//String
o.CompanyName=obj.K;//String
o.PhoneNumber=obj.N;//String
o.Email=obj.O;//String
return o;
},
WishlistItem:function(obj){
var o=new Object();
o.LineNumber=obj.A;//Int32
o.ProductName=obj.B;//String
o.ProductImage=obj.C;//String
o.ProductUrl=obj.D;//String
return o;
}
}
//***** OBJECT SHRINKERS BEFORE AJAX TRANSPORT *****//
var Shrinkers={
CreateReviewFormInitialData:function(obj){
var o=new Object();
o.A=obj.HasAlreadyReviewed;//Boolean
o.B=AjaxObj.shrink(obj.Ages,"ReviewAge");//ReviewAge[](ReviewAge)
o.C=AjaxObj.shrink(obj.Genders,"ReviewGender");//ReviewGender[](ReviewGender)
o.D=AjaxObj.shrink(obj.RatingCategories,"ReviewRatingCategory");//ReviewRatingCategory[](ReviewRatingCategory)
o.E=AjaxObj.shrink(obj.Review,"Review");//Review
return o;
},
ReviewAge:function(obj){
var o=new Object();
o.A=obj.DisplayName;//String
o.B=obj.SitecoreId;//Guid
return o;
},
ReviewGender:function(obj){
var o=new Object();
o.A=obj.DisplayName;//String
o.B=obj.SitecoreId;//Guid
o.C=obj.Code;//Char
return o;
},
ReviewRatingCategory:function(obj){
var o=new Object();
o.A=obj.DisplayName;//String
o.B=obj.SitecoreId;//Guid
o.C=obj.ContextName;//String
o.D=obj.Score;//Int32
return o;
},
Review:function(obj){
var o=new Object();
o.A=obj.Title;//String
o.B=obj.Body;//String
o.C=obj.AgeText;//String
o.D=obj.GenderText;//String
o.E=obj.Alias;//String
o.F=CommonHelper.fromJavaScriptDate(obj.Date);//DateTime
o.G=obj.HelpfulnessPositive;//Int32
o.H=obj.HelpfulnessNegative;//Int32
o.I=obj.UserIsEditor;//Boolean
o.J=AjaxObj.shrink(obj.Scores,"ReviewRatingCategory");//ReviewRatingCategory[](ReviewRatingCategory)
o.K=obj.Id;//Guid
return o;
},
Result:function(obj){
var o=new Object();
o.A=obj.Failed;//Boolean
o.B=obj.Warning;//Boolean
o.C=obj.Reason;//String
return o;
},
NameValue:function(obj){
var o=new Object();
o.A=obj.Name;//String
o.B=obj.Value;//String
return o;
},
ProductDetails:function(obj){
var o=new Object();
o.A=obj.MainPictureUrl;//String
o.B=obj.ZoomPictureUrl;//String
o.C=obj.Price;//String
o.D=obj.DetailsTitle;//String
o.E=obj.Description;//String
o.F=obj.AgeGroup;//String
o.G=obj.AgeGroupText;//String
o.H=obj.EditionId;//String
o.I=obj.InventoryIndicatorUrl;//String
o.J=obj.InventoryIndicator;//Int32
o.K=obj.DiscountHtml;//String
o.L=obj.PagerImages;//String
o.M=obj.IsWebOnly;//Boolean
o.N=obj.IsWebOffer;//Boolean
return o;
},
RatingSummary:function(obj){
var o=new Object();
o.A=obj.Rating;//Int32
o.B=obj.NumberOfRatings;//Int32
o.C=obj.RatingSuccess;//Boolean
return o;
},
SearchResult:function(obj){
var o=new Object();
o.A=AjaxObj.shrink(obj.Products,"TypeaheadProduct");//List`1(TypeaheadProduct)
o.B=AjaxObj.shrink(obj.RetailStores,"RetailStore");//List`1(RetailShop)
o.C=AjaxObj.shrink(obj.SitecoreItems,"SitecoreItem");//List`1(SitecoreItem)
o.D=obj.NumberOfElements;//Int32
o.E=AjaxObj.shrink(obj.FacetList,"Facet");//List`1(Facet)
o.F=obj.FromPrice;//Int32
o.G=obj.ToPrice;//Int32
return o;
},
TypeaheadProduct:function(obj){
var o=new Object();
o.A=obj.Title;//String
o.B=obj.Teaser;//String
o.C=obj.Price;//String
o.D=obj.ThumbnailImage;//String
o.E=obj.Url;//String
o.F=obj.SearchableId;//String
o.G=obj.Category;//String
o.H=obj.EditionId;//String
o.I=obj.DiscountBasketText;//String
o.J=obj.SplashIcon;//String
o.K=obj.HasMultiplePrices;//Boolean
o.L=obj.IsWebOnly;//Boolean
o.M=obj.IsWebOffer;//Boolean
return o;
},
RetailStore:function(obj){
var o=new Object();
o.A=obj.Id;//String
o.B=obj.Name;//String
o.C=obj.PhoneNumber;//String
o.D=obj.FacadeImageId;//String
o.E=obj.Url;//String
o.F=obj.AddressLines;//List`1(String)
o.G=AjaxObj.shrink(obj.Hours,"ShopHours");//List`1(ShopHours)
o.H=AjaxObj.shrink(obj.HoursNextWeek,"ShopHours");//List`1(ShopHours)
o.I=obj.QueriedProductBuyableId;//String
o.J=obj.QueriedProductStockCount;//Int32
o.K=obj.QueriedProductId;//String
o.L=obj.QueriedProductBuyableItemIsVariant;//Boolean
o.M=obj.StoreManagerName;//String
o.N=obj.StoreManagerEmail;//String
o.O=obj.Country;//String
return o;
},
ShopHours:function(obj){
var o=new Object();
o.A=obj.Day;//String
o.B=obj.Date;//String
o.C=obj.OpeningTime;//String
o.D=obj.ClosingTime;//String
return o;
},
SitecoreItem:function(obj){
var o=new Object();
o.A=obj.Id;//String
o.B=obj.Title;//String
o.C=obj.Teaser;//String
o.E=obj.Image;//String
o.F=obj.Uri;//String
return o;
},
Facet:function(obj){
var o=new Object();
o.A=obj.FacetName;//String
o.B=AjaxObj.shrink(obj.FacetItems,"FacetItem");//List`1(FacetItem)
o.C=obj.FacetType;//String
return o;
},
FacetItem:function(obj){
var o=new Object();
o.A=obj.Text;//String
o.B=obj.Value;//String
o.C=obj.Selected;//Boolean
o.D=obj.Active;//Boolean
return o;
},
SearchResult2:function(obj){
var o=new Object();
o.A=obj.Total;//Int32
o.B=obj.To;//Int32
o.C=obj.From;//Int32
o.D=AjaxObj.shrink(obj.Products,"Product");//List`1(ProductFE)
o.E=AjaxObj.shrink(obj.Categories1,"FacetItem");//List`1(FacetItem)
o.F=AjaxObj.shrink(obj.Categories2,"FacetItem");//List`1(FacetItem)
o.G=obj.SearchType;//String
return o;
},
Product:function(obj){
var o=new Object();
o.A=obj.BuyableId;//String
o.B=obj.SearchableId;//String
o.C=obj.ListImageGalleryUrl;//String
o.D=obj.ListImageListUrl;//String
o.E=obj.Url;//String
o.F=obj.SplashIconUrl;//String
o.G=obj.SplashMouseOverText;//String
o.H=obj.Name;//String
o.I=obj.Description;//String
o.J=obj.Price;//String
o.K=obj.ListShortDiscountText;//String
o.L=obj.StockStatus;//Int32
o.M=obj.CanBuy;//Boolean
o.N=obj.FindShopUrl;//String
o.O=obj.Rating;//Int32
o.P=obj.NumberOfRatings;//Int32
o.Q=obj.Quantity;//Int32
o.R=obj.VariantOnlyName;//String
o.S=obj.ImageForLayerLarge;//String
o.T=obj.ImageForQuantityList;//String
o.U=obj.ImageForChosenQuantityItem;//String
o.V=obj.IsWebOnly;//Boolean
o.W=obj.IsWebOffer;//Boolean
return o;
},
TypeaheadResult:function(obj){
var o=new Object();
o.A=AjaxObj.shrink(obj.Products,"TypeaheadProduct");//List`1(TypeaheadProduct)
o.B=AjaxObj.shrink(obj.Page,"SitecoreItem");//SitecoreItem
o.C=AjaxObj.shrink(obj.Store,"RetailStore");//RetailShop
o.D=obj.FullResultUrl;//String
return o;
},
TRUTelevisionSearchResult:function(obj){
var o=new Object();
o.A=AjaxObj.shrink(obj.Products,"TRUProduct");//List`1(TRUProduct)
o.B=obj.NumberOfElements;//Int32
o.C=AjaxObj.shrink(obj.FacetList,"Facet");//List`1(Facet)
o.D=obj.FromPrice;//Int32
o.E=obj.ToPrice;//Int32
return o;
},
TRUProduct:function(obj){
var o=new Object();
o.A=obj.Title;//String
o.B=obj.Teaser;//String
o.C=obj.Price;//String
o.D=obj.Image;//String
o.E=obj.Url;//String
o.F=obj.DiscountBasketText;//String
o.G=obj.SplashIcon;//String
o.H=obj.Class;//String
o.I=obj.SplashClass;//String
o.J=obj.DummyProduct;//Boolean
o.K=obj.SearchableId;//String
return o;
},
SearchQuery:function(obj){
var o=new Object();
o.A=obj.ContextId;//String
o.B=obj.Query;//String
o.C=obj.DocumentType;//String
o.D=obj.PageNumber;//Int32
o.E=obj.PageSize;//Int32
o.F=obj.Sort;//String
o.G=obj.AgeRange;//Nullable`1(Int32)
o.H=obj.PriceFrom;//Nullable`1(Int32)
o.I=obj.PriceTo;//Nullable`1(Int32)
o.J=obj.Gender;//Nullable`1(Int32)
o.K=obj.Category1;//String
o.L=obj.Category2;//String
o.O=obj.ConfigurationId;//String
o.P=obj.ProductId;//String
o.Q=obj.BreadcrumbTaxonomy;//String
return o;
},
BasketWidget:function(obj){
var o=new Object();
o.A=obj.ShippingTotal;//String
o.B=obj.Total;//String
o.C=obj.TotalCurrency;//String
o.D=obj.DiscountTotal;//String
o.E=obj.LineItemHtml;//String
o.F=obj.LineItemCount;//Int32
o.G=obj.NumSavingVoucherStickers;//Int32
return o;
},
GiftWrap:function(obj){
var o=new Object();
o.A=obj.ItemId;//String
o.B=obj.PaperId;//String
o.C=obj.From;//String
o.D=obj.To;//String
o.F=obj.Index;//Int32
o.G=obj.MessageLines;//List`1(String)
return o;
},
BigBasket:function(obj){
var o=new Object();
o.A=obj.ShippingTotal;//String
o.B=obj.Total;//String
o.C=obj.TotalCurrency;//String
o.D=obj.DiscountTotal;//String
o.E=obj.LineItemHtml;//String
o.F=obj.LineItemCount;//Int32
o.G=obj.DeletedLineItem;//String
o.H=obj.TotalProductsInBasket;//String
o.I=obj.NumSavingVoucherStickers;//Int32
o.J=obj.ErrorCode;//String
return o;
},
MiniBasket:function(obj){
var o=new Object();
o.A=obj.ShippingTotal;//String
o.B=obj.DiscountTotal;//String
o.C=obj.Total;//String
o.D=AjaxObj.shrink(obj.Products,"MiniBasketProduct");//List`1(MiniBasketProduct)
o.E=obj.TotalProducts;//Int32
return o;
},
MiniBasketProduct:function(obj){
var o=new Object();
o.A=obj.Name;//String
o.B=obj.Quantity;//Int32
o.C=obj.Price;//String
o.D=obj.ImageUrl;//String
return o;
},
QuickBuyResponsePackage:function(obj){
var o=new Object();
o.A=obj.OverlayType;//String
o.B=AjaxObj.shrink(obj.AdditionalProducts,"Product");//List`1(ProductFE)
o.C=obj.Success;//Boolean
o.D=obj.LineItemId;//String
o.E=obj.QuantityTrigger;//Int32
o.F=AjaxObj.shrink(obj.ClickedProduct,"Product");//ProductFE
o.G=obj.DiscountPrice;//Double
o.H=obj.NormalPrice;//Double
o.I=obj.TotalWhenDiscountTriggered;//Double
o.J=obj.OverlayChosenItemDiscountText;//String
o.K=obj.SCCategory;//String
o.L=obj.SCTitle;//String
return o;
},
Address:function(obj){
var o=new Object();
o.A=obj.AddressId;//String
o.B=obj.AddressName;//String
o.C=obj.FirstName;//String
o.D=obj.LastName;//String
o.E=obj.AddressLine01;//String
o.F=obj.AddressLine02;//String
o.G=obj.PostalCode;//String
o.H=obj.City;//String
o.I=obj.CountryCode;//String
o.J=obj.CountryName;//String
o.K=obj.CompanyName;//String
o.N=obj.PhoneNumber;//String
o.O=obj.Email;//String
return o;
},
WishlistItem:function(obj){
var o=new Object();
o.A=obj.LineNumber;//Int32
o.B=obj.ProductName;//String
o.C=obj.ProductImage;//String
o.D=obj.ProductUrl;//String
return o;
}
}

