1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79304,(t,e,r)=>{"use strict";r.Headers=self.Headers,r.Request=self.Request,r.Response=self.Response,r.fetch=self.fetch},11776,(t,e,r)=>{t.r(79304),e.exports=self.fetch.bind(self)},36482,t=>{"use strict";t.i(11776);class e{message;details=null;constructor(t){this.message=t}}let r=new class{baseUrl="";headers=[];token="";serializeQueryParams(t){return Object.keys(t).reduce((e,r)=>{let a=t[r];return void 0===a||""===a?e:[...e,`${encodeURIComponent(r)}=${encodeURIComponent(String(t[r]))}`]},[]).join("&")}transformParameter(t,e){return"joinUsingPipes"===e&&Array.isArray(t)?t.join("|"):t}setBaseUrl(t){this.baseUrl=t}setHeaders(t){this.headers=t}setToken(t){this.token=t}appendAuthHeaders(t){let e=new Headers(t);return this.token&&e.append("Authorization",`Bearer ${this.token}`),e}async request(t,r,a,i=new Headers,s={}){let o=s&&Object.keys(s).length?this.serializeQueryParams(s):null;if("multipart/form-data"===i.get("Content-Type")){let t=new FormData;for(let e in a)t.append(e,a[e]);a=t}else a="application/json"===i.get("Content-Type")&&a&&Object.keys(a).length>0?JSON.stringify(a):void 0;"multipart/form-data"===i.get("Content-Type")&&i.delete("Content-Type"),this.headers.length>0&&this.headers.forEach(t=>{i.append(t.name,t.value)});let n=await fetch(r+(o?"?"+o:""),{method:t,headers:i,body:a});if(204===n.status)return n;if(n.ok)return(n.headers&&n.headers.get("Content-Type")||"").includes("application/json")?n.json():n;{let t=new e(n.statusText);throw t.details=await n.json(),t}}loadArticles(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),void 0!==t.limit&&(a.limit=t.limit),a.limit=this.transformParameter(a.limit),void 0!==t.offset&&(a.offset=t.offset),a.offset=this.transformParameter(a.offset),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.sitemapId&&(a.sitemap_id=t.sitemapId),a.sitemap_id=this.transformParameter(a.sitemap_id),void 0!==t.isPublished&&(a.is_published=t.isPublished),a.is_published=this.transformParameter(a.is_published),void 0!==t.tagId&&(a.tag_id=t.tagId),a.tag_id=this.transformParameter(a.tag_id),void 0!==t.tagExcludeId&&(a.tag_exclude_id=t.tagExcludeId),a.tag_exclude_id=this.transformParameter(a.tag_exclude_id),void 0!==t.sitemapUniqueId&&(a.sitemap_unique_id=t.sitemapUniqueId),a.sitemap_unique_id=this.transformParameter(a.sitemap_unique_id),void 0!==t.excludeSitemapUniqueId&&(a.exclude_sitemap_unique_id=t.excludeSitemapUniqueId),a.exclude_sitemap_unique_id=this.transformParameter(a.exclude_sitemap_unique_id),void 0!==t.isTop&&(a.is_top=t.isTop),a.is_top=this.transformParameter(a.is_top),void 0!==t.identificator&&(a.identificator=t.identificator),a.identificator=this.transformParameter(a.identificator),void 0!==t.sfForm&&(a.sf_form=t.sfForm),a.sf_form=this.transformParameter(a.sf_form),void 0!==t.query&&(a.query=t.query),a.query=this.transformParameter(a.query),void 0!==t.brandName&&(a.brand_name=t.brandName),a.brand_name=this.transformParameter(a.brand_name),void 0!==t.onlyActual&&(a.only_actual=t.onlyActual),a.only_actual=this.transformParameter(a.only_actual),a.sort="date",void 0!==t.sort&&(a.sort=t.sort),a.sort=this.transformParameter(a.sort),a.sort_dir="desc",void 0!==t.sortDir&&(a.sort_dir=t.sortDir),a.sort_dir=this.transformParameter(a.sort_dir),void 0!==t.withoutStats&&(a.without_stats=t.withoutStats),a.without_stats=this.transformParameter(a.without_stats),void 0!==t.withoutJsonContent&&(a.without_json_content=t.withoutJsonContent),a.without_json_content=this.transformParameter(a.without_json_content),void 0!==t.replaceCurrentLangTags&&(a.replace_current_lang_tags=t.replaceCurrentLangTags),a.replace_current_lang_tags=this.transformParameter(a.replace_current_lang_tags),void 0!==t.hasProductsFromCategoryId&&(a.has_products_from_category_id=t.hasProductsFromCategoryId),a.has_products_from_category_id=this.transformParameter(a.has_products_from_category_id),void 0!==t.sitemapOrProductCategory&&(a.sitemap_or_product_category=t.sitemapOrProductCategory),a.sitemap_or_product_category=this.transformParameter(a.sitemap_or_product_category),void 0!==t.hasProductsFromBrandId&&(a.has_products_from_brand_id=t.hasProductsFromBrandId),a.has_products_from_brand_id=this.transformParameter(a.has_products_from_brand_id),this.request("GET",`${this.baseUrl}/articles`,{},r,a)}loadArticleDetail(t,e={},r){let a="/articles/{article_id}",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{article_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.withNextArticle&&(s.with_next_article=e.withNextArticle),s.with_next_article=this.transformParameter(s.with_next_article),void 0!==e.withHiddenTags&&(s.with_hidden_tags=e.withHiddenTags),s.with_hidden_tags=this.transformParameter(s.with_hidden_tags),void 0!==e.withLangVersions&&(s.with_lang_versions=e.withLangVersions),s.with_lang_versions=this.transformParameter(s.with_lang_versions),void 0!==e.productCategoryId&&(s.product_category_id=e.productCategoryId),s.product_category_id=this.transformParameter(s.product_category_id),void 0!==e.replaceCurrentLangTags&&(s.replace_current_lang_tags=e.replaceCurrentLangTags),s.replace_current_lang_tags=this.transformParameter(s.replace_current_lang_tags),void 0!==e.withCanonicalDomains&&(s.with_canonical_domains=e.withCanonicalDomains),s.with_canonical_domains=this.transformParameter(s.with_canonical_domains),void 0!==e.withCanonicalUrl&&(s.with_canonical_url=e.withCanonicalUrl),s.with_canonical_url=this.transformParameter(s.with_canonical_url),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadAuthors(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),void 0!==t.limit&&(a.limit=t.limit),a.limit=this.transformParameter(a.limit),void 0!==t.offset&&(a.offset=t.offset),a.offset=this.transformParameter(a.offset),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.query&&(a.query=t.query),a.query=this.transformParameter(a.query
1),this.request("GET",`${this.baseUrl}/authors`,{},r,a)}loadAuthorDetail(t,e={},r){let a="/authors/{author_id}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{author_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadWebContentProductsConnections(t,e={},r){let a="/web_content/product_connections/{web_content_id}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{web_content_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.onstock&&(s.onstock=e.onstock),s.onstock=this.transformParameter(s.onstock),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadContentConnections(t,e={},r){let a="/web_content/connections/{web_content_id}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{web_content_id}",t.toString()),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.connectionType&&(s.connection_type=e.connectionType),s.connection_type=this.transformParameter(s.connection_type),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadAvailabilities(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.categoryId&&(a.category_id=t.categoryId),a.category_id=this.transformParameter(a.category_id),this.request("GET",`${this.baseUrl}/availabilities`,{},r,a)}loadBanners(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.sitemapId&&(a.sitemap_id=t.sitemapId),a.sitemap_id=this.transformParameter(a.sitemap_id),void 0!==t.position&&(a.position=t.position),a.position=this.transformParameter(a.position),this.request("GET",`${this.baseUrl}/banners`,{},r,a)}loadBrands(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.categoryId&&(a.category_id=t.categoryId),a.category_id=this.transformParameter(a.category_id),void 0!==t.productType&&(a.product_type=t.productType),a.product_type=this.transformParameter(a.product_type),a.sort="brand_name",void 0!==t.sort&&(a.sort=t.sort),a.sort=this.transformParameter(a.sort),a.sort_dir="asc",void 0!==t.sortDir&&(a.sort_dir=t.sortDir),a.sort_dir=this.transformParameter(a.sort_dir),void 0!==t.onlyTop&&(a.only_top=t.onlyTop),a.only_top=this.transformParameter(a.only_top),void 0!==t.name&&(a.name=t.name),a.name=this.transformParameter(a.name),void 0!==t.url&&(a.url=t.url),a.url=this.transformParameter(a.url),void 0!==t.showInWarrantyProtocol&&(a.show_in_warranty_protocol=t.showInWarrantyProtocol),a.show_in_warranty_protocol=this.transformParameter(a.show_in_warranty_protocol),void 0!==t.withExternallyServiced&&(a.with_externally_serviced=t.withExternallyServiced),a.with_externally_serviced=this.transformParameter(a.with_externally_serviced),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),this.request("GET",`${this.baseUrl}/brands`,{},r,a)}loadBrandDetail(t,e={},r){let a="/brands/{brand_id}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{brand_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.withBrandFilters&&(s.with_brand_filters=e.withBrandFilters),s.with_brand_filters=this.transformParameter(s.with_brand_filters),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadBrandCategories(t,e={},r){let a="/brands/{brand_id}/categories",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{brand_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.categoryTopParentId&&(s.category_top_parent_id=e.categoryTopParentId),s.category_top_parent_id=this.transformParameter(s.category_top_parent_id),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}getGeneralFreeDeliveryInfo(t={},e){let r=new Headers;return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),e&&void 0!==e.xCurrency&&r.append("X-Currency",e.xCurrency),this.request("GET",`${this.baseUrl}/cart/free-delivery`,{},r,{})}createCart(t={},e){let r=new Headers,a={};return(r=this.appendAuthHeaders(r)).append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),e&&void 0!==e.xCurrency&&r.append("X-Currency",e.xCurrency),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),void 0!==t.createLocation&&(a.create_location=t.createLocation),a.create_location=this.transformParameter(a.create_location),this.request("POST",`${this.baseUrl}/cart`,{},r,a)}getCart(t,e={}){let r="/cart/{cart_id}",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{cart_id}",t.toString()),void 0!==e.vatGroups&&(i.vat_groups=e.vatGroups),i.vat_groups=this.transformParameter(i.vat_groups),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}updateCart(t,e={},r){let a="/cart/{cart_id}",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{cart_id}",t.toString()),void 0!==e.vatGroups&&(s.vat_groups=e.vatGroups),s.vat_groups=this.transformParameter(s.vat_groups),this.request("PUT",`${this.baseUrl}${a}`,r,i,s)}addCard(t,e={},r){let a="/cart/{cart_id}/apply-card",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{cart_id}",t.toString()),void 0!==e.vatGroups&&(s.vat_groups=e.vatGroups),s.vat_groups=this.transformParameter(s.vat_groups),this.request("PUT",`${this.baseUrl}${a}`,r,i,s)}getDeliveryPaymentInfo(t,e={},r){let a="/cart/{cart_id}/delivery-payment",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{cart_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}getFreeDeliveryInfo(t,e={}){let r="/cart/{cart_id}/free-delivery",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{cart_id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadCartGifts(t,e={}){let r="/cart/{cart_id}/gifts",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{cart_id}",t.toString()),void 0!==e.sortDir&&(i.sort_dir=e.sortDir),i.sort_dir=this.transformParameter(i.sort_dir),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}getCartInfo(t,e={}){let r="/cart/{cart_id}/info",a=new Headers;return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{cart_id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}deleteCartItem(t,e,r,a={}){let i="/cart/{cart_id}/items/{product_id}/{good_id}",s=new Headers,o={};return(s=this.appendAuthHeaders(s)).append("Accept","application/json"),i=(i=(i=i.replace("{cart_id}",t.toString())).replace("{product_id}",e.toString())).replace("{good_id}",r.toString()),void 0!==a.isDemand&&(o.is_demand=a.isDemand),o.is_demand=this.transformParameter(o.is_demand),void 0!==a.vatGroups&&(o.vat_groups=a.vatGroups),o.vat_groups=this.transformParameter(o.vat_groups),this.request("DELETE",`${this.baseUrl}${i}`,{},s,o)}
1addCartItem(t,e,r,a={},i,s){let o="/cart/{cart_id}/items/{product_id}/{good_id}",n=new Headers,d={};return(n=this.appendAuthHeaders(n)).append("Content-Type","application/json"),n.append("Accept","application/json"),o=(o=(o=o.replace("{cart_id}",t.toString())).replace("{product_id}",e.toString())).replace("{good_id}",r.toString()),s&&void 0!==s.xAcceptLanguage&&n.append("X-Accept-Language",s.xAcceptLanguage),void 0!==a.count&&(d.count=a.count),d.count=this.transformParameter(d.count),void 0!==a.currencyId&&(d.currency_id=a.currencyId),d.currency_id=this.transformParameter(d.currency_id),void 0!==a.isDemand&&(d.is_demand=a.isDemand),d.is_demand=this.transformParameter(d.is_demand),void 0!==a.vatGroups&&(d.vat_groups=a.vatGroups),d.vat_groups=this.transformParameter(d.vat_groups),this.request("PUT",`${this.baseUrl}${o}`,i,n,d)}setCartItemFree(t,e,r,a={},i){let s="/cart/{cart_id}/items/{product_id}/{good_id}/setfree",o=new Headers,n={};return(o=this.appendAuthHeaders(o)).append("Accept","application/json"),s=(s=(s=s.replace("{cart_id}",t.toString())).replace("{product_id}",e.toString())).replace("{good_id}",r.toString()),i&&void 0!==i.xAcceptLanguage&&o.append("X-Accept-Language",i.xAcceptLanguage),void 0!==a.vatGroups&&(n.vat_groups=a.vatGroups),n.vat_groups=this.transformParameter(n.vat_groups),void 0!==a.currencyId&&(n.currency_id=a.currencyId),n.currency_id=this.transformParameter(n.currency_id),this.request("PUT",`${this.baseUrl}${s}`,{},o,n)}addNote(t,e={},r,a){let i="/cart/{cart_id}/note",s=new Headers,o={};return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=i.replace("{cart_id}",t.toString()),a&&void 0!==a.xAcceptLanguage&&s.append("X-Accept-Language",a.xAcceptLanguage),void 0!==e.vatGroups&&(o.vat_groups=e.vatGroups),o.vat_groups=this.transformParameter(o.vat_groups),this.request("PUT",`${this.baseUrl}${i}`,r,s,o)}addItemNote(t,e,r={},a,i){let s="/cart/{cart_id}/note/{good_id}",o=new Headers,n={};return(o=this.appendAuthHeaders(o)).append("Content-Type","application/json"),o.append("Accept","application/json"),s=(s=s.replace("{cart_id}",t.toString())).replace("{good_id}",e.toString()),i&&void 0!==i.xAcceptLanguage&&o.append("X-Accept-Language",i.xAcceptLanguage),void 0!==r.vatGroups&&(n.vat_groups=r.vatGroups),n.vat_groups=this.transformParameter(n.vat_groups),this.request("PUT",`${this.baseUrl}${s}`,a,o,n)}removeCard(t,e,r,a={}){let i="/cart/{cart_id}/remove-card/{card_type}/{card_number}",s=new Headers,o={};return(s=this.appendAuthHeaders(s)).append("Accept","application/json"),i=(i=(i=i.replace("{cart_id}",t.toString())).replace("{card_type}",e.toString())).replace("{card_number}",r.toString()),void 0!==a.vatGroups&&(o.vat_groups=a.vatGroups),o.vat_groups=this.transformParameter(o.vat_groups),this.request("DELETE",`${this.baseUrl}${i}`,{},s,o)}importCart(t={},e){let r=new Headers;return(r=this.appendAuthHeaders(r)).append("Content-Type","multipart/form-data"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/cart/import`,e,r,{})}loadCartImportStatus(t,e={},r){let a="/cart/import/{import_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{import_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}changeImportStatus(t,e={},r,a){let i="/cart/import/{import_id}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=i.replace("{import_id}",t.toString()),a&&void 0!==a.xAcceptLanguage&&s.append("X-Accept-Language",a.xAcceptLanguage),a&&void 0!==a.xCurrency&&s.append("X-Currency",a.xCurrency),this.request("PUT",`${this.baseUrl}${i}`,r,s,{})}findZoneByZipCode(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.zip&&(r.zip=t.zip),r.zip=this.transformParameter(r.zip),void 0===t.zip)throw Error("Missing required parameter: zip");return this.request("GET",`${this.baseUrl}/cart/zone`,{},e,r)}loadCategories(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.showTop&&(a.show_top=t.showTop),a.show_top=this.transformParameter(a.show_top),void 0!==t.withContent&&(a.with_content=t.withContent),a.with_content=this.transformParameter(a.with_content),a.web_show="1",void 0!==t.webShow&&(a.web_show=t.webShow),a.web_show=this.transformParameter(a.web_show),void 0!==t.q&&(a.q=t.q),a.q=this.transformParameter(a.q),void 0!==t.isFavorite&&(a.is_favorite=t.isFavorite),a.is_favorite=this.transformParameter(a.is_favorite),void 0!==t.categoryTopParentId&&(a.category_top_parent_id=t.categoryTopParentId),a.category_top_parent_id=this.transformParameter(a.category_top_parent_id),void 0!==t.withPublish&&(a.with_publish=t.withPublish),a.with_publish=this.transformParameter(a.with_publish),void 0!==t.publishLang&&(a.publish_lang=t.publishLang),a.publish_lang=this.transformParameter(a.publish_lang),void 0!==t.hasNoRedirect&&(a.has_no_redirect=t.hasNoRedirect),a.has_no_redirect=this.transformParameter(a.has_no_redirect),void 0!==t.publishUrl&&(
1a.publish_url=t.publishUrl),a.publish_url=this.transformParameter(a.publish_url),this.request("GET",`${this.baseUrl}/categories`,{},r,a)}loadTree(t={},e){let r=new Headers,a={};return(r=this.appendAuthHeaders(r)).append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),a.total_counts="1",void 0!==t.totalCounts&&(a.total_counts=t.totalCounts),a.total_counts=this.transformParameter(a.total_counts),void 0!==t.onlyVisible&&(a.only_visible=t.onlyVisible),a.only_visible=this.transformParameter(a.only_visible),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),void 0!==t.countRedirectProducts&&(a.count_redirect_products=t.countRedirectProducts),a.count_redirect_products=this.transformParameter(a.count_redirect_products),this.request("GET",`${this.baseUrl}/categories/tree`,{},r,a)}loadCategory(t,e={},r){let a="/categories/{category_id}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{category_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.parameters&&(s.parameters=e.parameters),s.parameters=this.transformParameter(s.parameters),void 0!==e.attribValuesSorter&&(s.attrib_values_sorter=e.attribValuesSorter),s.attrib_values_sorter=this.transformParameter(s.attrib_values_sorter),void 0!==e.withPublish&&(s.with_publish=e.withPublish),s.with_publish=this.transformParameter(s.with_publish),void 0!==e.withAllLangs&&(s.with_all_langs=e.withAllLangs),s.with_all_langs=this.transformParameter(s.with_all_langs),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadRelatedCategories(t,e={},r){let a="/categories/{category_id}/related",i=new Headers;return i.append("Accept","application/json"),a=a.replace("{category_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadSubTree(t,e={},r){let a="/categories/{category_id}/tree",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{category_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),s.with_attribs="1",void 0!==e.withAttribs&&(s.with_attribs=e.withAttribs),s.with_attribs=this.transformParameter(s.with_attribs),s.with_product_counts="1",void 0!==e.withProductCounts&&(s.with_product_counts=e.withProductCounts),s.with_product_counts=this.transformParameter(s.with_product_counts),s.total_counts="1",void 0!==e.totalCounts&&(s.total_counts=e.totalCounts),s.total_counts=this.transformParameter(s.total_counts),void 0!==e.withPublish&&(s.with_publish=e.withPublish),s.with_publish=this.transformParameter(s.with_publish),void 0!==e.onlyVisible&&(s.only_visible=e.onlyVisible),s.only_visible=this.transformParameter(s.only_visible),void 0!==e.withContent&&(s.with_content=e.withContent),s.with_content=this.transformParameter(s.with_content),void 0!==e.domainId&&(s.domain_id=e.domainId),s.domain_id=this.transformParameter(s.domain_id),void 0!==e.countRedirectProducts&&(s.count_redirect_products=e.countRedirectProducts),s.count_redirect_products=this.transformParameter(s.count_redirect_products),void 0!==e.isPublishedInLang&&(s.is_published_in_lang=e.isPublishedInLang),s.is_published_in_lang=this.transformParameter(s.is_published_in_lang),void 0!==e.projectType&&(s.project_type=e.projectType),s.project_type=this.transformParameter(s.project_type),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}searchCustomers(t={}){let e=new Headers,r={};return(e=this.appendAuthHeaders(e)).append("Accept","application/json"),r.limit=10,void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.name&&(r.name=t.name),r.name=this.transformParameter(r.name),r.sort="date",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="desc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),void 0!==t.credibility&&(r.credibility=t.credibility),r.credibility=this.transformParameter(r.credibility),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),this.request("GET",`${this.baseUrl}/customers`,{},e,r)}
1activateUser(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.activationCode&&(r.activation_code=t.activationCode),r.activation_code=this.transformParameter(r.activation_code),void 0===t.activationCode)throw Error("Missing required parameter: activationCode");return this.request("POST",`${this.baseUrl}/customers/activate`,{},e,r)}lostPassword(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/customers/lost-password`,e,r,{})}newPassword(t,e,r){let a=new Headers;return a.append("Content-Type","application/json"),a.append("Accept","application/json"),r&&void 0!==r.xLostPasswordToken&&a.append("x-lost-password-token",r.xLostPasswordToken),this.request("POST",`${this.baseUrl}/customers/new-password`,e,a,{})}getDeliveryAddresses(t,e={}){let r="/customers/{customer_id}/delivery-address",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.addressId&&(i.address_id=e.addressId),i.address_id=this.transformParameter(i.address_id),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),i.sort="created_at",void 0!==e.sort&&(i.sort=e.sort),i.sort=this.transformParameter(i.sort),i.sort_dir="asc",void 0!==e.sortDir&&(i.sort_dir=e.sortDir),i.sort_dir=this.transformParameter(i.sort_dir),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}createNewDeliveryAddress(t,e={},r){let a="/customers/{customer_id}/delivery-address",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{customer_id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}getBillingAddresses(t,e={}){let r="/customers/{customer_id}/billing-address",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.addressId&&(i.address_id=e.addressId),i.address_id=this.transformParameter(i.address_id),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),i.sort="created_at",void 0!==e.sort&&(i.sort=e.sort),i.sort=this.transformParameter(i.sort),i.sort_dir="asc",void 0!==e.sortDir&&(i.sort_dir=e.sortDir),i.sort_dir=this.transformParameter(i.sort_dir),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}createNewBillingAddress(t,e={},r){let a="/customers/{customer_id}/billing-address",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{customerId}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}loadDashboard(t,e={}){let r="/customers/{customer_id}/dashboard",a=new Headers;return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadOrderedProducts(t,e={},r){let a="/customers/{customer_id}/ordered-products",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{customer_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadFavoriteProducts(t,e={},r){let a="/customers/{customer_id}/favorite-products",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{customer_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),s.limit=10,void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.sort&&(s.sort=e.sort),s.sort=this.transformParameter(s.sort),void 0!==e.sortDir&&(s.sort_dir=e.sortDir),s.sort_dir=this.transformParameter(s.sort_dir),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}unfavoriteProduct(t,e,r={}){let a="/customers/{customer_id}/favorite-products/{product_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{customer_id}",t.toString())).replace("{product_id}",e.toString()),this.request("DELETE",`${this.baseUrl}${a}`,{},i,{})}favoriteProduct(t,e,r={}){let a="/customers/{customer_id}/favorite-products/{product_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{customer_id}",t.toString())).replace("{product_id}",e.toString()),this.request("POST",`${this.baseUrl}${a}`,{},i,{})}getOrders(t,e={}){let r="/customers/{customer_id}/orders",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.onlyActive&&(i.only_active=e.onlyActive),i.only_active=this.transformParameter(i.only_active),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),i.filter_type="ORDERS",void 0!==e.filterType&&(i.filter_type=e.filterType),i.filter_type=this.transformParameter(i.filter_type),void 0!==e.domainId&&(i.domain_id=e.domainId),i.domain_id=this.transformParameter(i.domain_id),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}loadTransactions(t,e={}){let r="/customers/{customer_id}/points",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.dateStart&&(i.date_start=e.dateStart),i.date_start=this.transformParameter(i.date_start),void 0!==e.dateEnd&&(i.date_end=e.dateEnd),i.date_end=this.transformParameter(i.date_end),i.limit=10,void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}
1updateCustomOrderNumber(t,e,r={},a){let i="/customers/{customer_id}/order-nr/{good_id}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=(i=i.replace("{customer_id}",t.toString())).replace("{good_id}",e.toString()),this.request("PUT",`${this.baseUrl}${i}`,a,s,{})}getCustomerDetails(t,e={}){let r="/customers/{id}",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),void 0!==e.withParent&&(i.with_parent=e.withParent),i.with_parent=this.transformParameter(i.with_parent),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}updateCustomerDetails(t,e={},r){let a="/customers/{id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("PUT",`${this.baseUrl}${a}`,r,i,{})}updateCustomerSettings(t,e={},r){let a="/customers/{id}/settings",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("PUT",`${this.baseUrl}${a}`,r,i,{})}deleteRequestCustomer(t,e={}){let r="/customers/{id}/delete-request",a=new Headers;return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),this.request("DELETE",`${this.baseUrl}${r}`,{},a,{})}loadAdditionalInfo(t,e={}){let r="/customers/{id}/additional-info",a=new Headers;return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadi6OrderedProducts(t,e={}){let r="/customers/{id}/order-items",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),void 0!==e.filterFrom&&(i.filter_from=e.filterFrom),i.filter_from=this.transformParameter(i.filter_from),void 0!==e.filterTo&&(i.filter_to=e.filterTo),i.filter_to=this.transformParameter(i.filter_to),void 0!==e.categoryId&&(i.category_id=e.categoryId),i.category_id=this.transformParameter(i.category_id),void 0!==e.brandId&&(i.brand_id=e.brandId),i.brand_id=this.transformParameter(i.brand_id),void 0!==e.userOuterId&&(i.user_outer_id=e.userOuterId),i.user_outer_id=this.transformParameter(i.user_outer_id),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}loadi6Backorders(t,e={}){let r="/customers/{id}/backorders",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),void 0!==e.categoryId&&(i.category_id=e.categoryId),i.category_id=this.transformParameter(i.category_id),void 0!==e.brandId&&(i.brand_id=e.brandId),i.brand_id=this.transformParameter(i.brand_id),void 0!==e.reserved&&(i.reserved=e.reserved),i.reserved=this.transformParameter(i.reserved),void 0!==e.userOuterId&&(i.user_outer_id=e.userOuterId),i.user_outer_id=this.transformParameter(i.user_outer_id),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}geti6Orders(t,e={}){let r="/customers/{customer_id}/i6-orders",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.onlyActive&&(i.only_active=e.onlyActive),i.only_active=this.transformParameter(i.only_active),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),i.filter_type="ORDERS",void 0!==e.filterType&&(i.filter_type=e.filterType),i.filter_type=this.transformParameter(i.filter_type),void 0!==e.userOuterId&&(i.user_outer_id=e.userOuterId),i.user_outer_id=this.transformParameter(i.user_outer_id),void 0!==e.filterFrom&&(i.filter_from=e.filterFrom),i.filter_from=this.transformParameter(i.filter_from),void 0!==e.filterTo&&(i.filter_to=e.filterTo),i.filter_to=this.transformParameter(i.filter_to),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}geti6Order(t,e,r={}){let a="/customers/{customer_id}/i6-orders/{id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{customer_id}",t.toString())).replace("{id}",e.toString()),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadi6Documents(t,e={}
1){let r="/customers/{id}/i6-documents",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),void 0!==e.filterFrom&&(i.filter_from=e.filterFrom),i.filter_from=this.transformParameter(i.filter_from),void 0!==e.filterTo&&(i.filter_to=e.filterTo),i.filter_to=this.transformParameter(i.filter_to),void 0!==e.type&&(i.type=e.type),i.type=this.transformParameter(i.type),void 0!==e.paid&&(i.paid=e.paid),i.paid=this.transformParameter(i.paid),void 0!==e.userOuterId&&(i.user_outer_id=e.userOuterId),i.user_outer_id=this.transformParameter(i.user_outer_id),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}loadi6DocumentPdf(t,e,r,a={}){let i="/customers/{id}/i6-document/{order_id}/{document_type}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Accept","application/json"),i=(i=(i=i.replace("{id}",t.toString())).replace("{order_id}",e.toString())).replace("{document_type}",r.toString()),this.request("GET",`${this.baseUrl}${i}`,{},s,{})}changePassword(t,e={},r,a){let i="/customers/{customer_id}/change-password",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=i.replace("{customer_id}",t.toString()),a&&void 0!==a.xApiKey&&s.append("X-API-Key",a.xApiKey),this.request("PUT",`${this.baseUrl}${i}`,r,s,{})}loadManagerI6InvoicesData(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.query&&(r.query=t.query),r.query=this.transformParameter(r.query),void 0!==t.customerId&&(r.customer_id=t.customerId),r.customer_id=this.transformParameter(r.customer_id),void 0===t.customerId)throw Error("Missing required parameter: customerId");return void 0!==t.customerAddressId&&(r.customer_address_id=t.customerAddressId),r.customer_address_id=this.transformParameter(r.customer_address_id),void 0!==t.dateFrom&&(r.date_from=t.dateFrom),r.date_from=this.transformParameter(r.date_from),void 0!==t.dateTo&&(r.date_to=t.dateTo),r.date_to=this.transformParameter(r.date_to),void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),void 0!==t.sortDirection&&(r.sort_direction=t.sortDirection),r.sort_direction=this.transformParameter(r.sort_direction),this.request("GET",`${this.baseUrl}/manager/i6-inovices-items`,{},e,r)}deleteDeliveryAddress(t,e,r={}){let a="/customers/{id}/delivery-address/{delivery_address_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{id}",t.toString())).replace("{delivery_address_id}",e.toString()),this.request("DELETE",`${this.baseUrl}${a}`,{},i,{})}updateDeliveryAddress(t,e,r={},a){let i="/customers/{id}/delivery-address/{delivery_address_id}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=(i=i.replace("{id}",t.toString())).replace("{delivery_address_id}",e.toString()),this.request("PUT",`${this.baseUrl}${i}`,a,s,{})}deleteBillingAddress(t,e,r={}){let a="/customers/{id}/billing-address/{billing_address_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{id}",t.toString())).replace("{billing_address_id}",e.toString()),this.request("DELETE",`${this.baseUrl}${a}`,{},i,{})}updateBillingAddress(t,e,r={},a){let i="/customers/{id}/billing-address/{billing_address_id}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Content-Type","application/json"),s.append("Accept","application/json"),i=(i=i.replace("{id}",t.toString())).replace("{billing_address_id}",e.toString()),this.request("PUT",`${this.baseUrl}${i}`,a,s,{})}loadChildUsers(t,e={}){let r="/customers/{customer_id}/child",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.columns&&(i.columns=e.columns),i.columns=this.transformParameter(i.columns),i.only_active="0",void 0!==e.onlyActive&&(i.only_active=e.onlyActive),i.only_active=this.transformParameter(i.only_active),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}createChildUser(t,e={},r){let a="/customers/{customer_id}/child",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{customer_id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}loadChildSiblingsUsers(t,e={}){let r="/customers/{customer_id}/child-siblings",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.columns&&(i.columns=e.columns),i.columns=this.transformParameter(i.columns),i.only_active="0",void 0!==e.onlyActive&&(i.only_active=e.onlyActive),i.only_active=this.transformParameter(i.only_active),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}deleteChildUser(t,e,r={}){let a="/customers/{customer_id}/child/{child_id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{customer_id}",t.toString())).replace("{child_id}",e.toString()),this.request("DELETE",`${this.baseUrl}${a}`,{},i,{})}loadCustomerRelations(t,e={}){let r="/customers/{customer_id}/relations",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{customer_id}",t.toString()),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),void 0!==e.onlyParents&&(i.only_parents=e.onlyParents),i.only_parents=this.transformParameter(i.only_parents),void 0!==e.relation&&(i.relation=e.relation),i.relation=this.transformParameter(i.relation),void 0!==e.query&&(i.query=e.query),i.query=this.transformParameter(i.query),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}updatePriceDisplay(t,e={}
1,r){let a="/customers/{id}/price-display",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("PUT",`${this.baseUrl}${a}`,r,i,{})}loadCustomerSerialNumbers(t,e={}){let r="/customers/{id}/serial-numbers",a=new Headers,i={};return(a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{id}",t.toString()),void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),void 0!==e.withProduct&&(i.with_product=e.withProduct),i.with_product=this.transformParameter(i.with_product),void 0!==e.withAppliedBenefits&&(i.with_applied_benefits=e.withAppliedBenefits),i.with_applied_benefits=this.transformParameter(i.with_applied_benefits),void 0!==e.withAvailableBenefits&&(i.with_available_benefits=e.withAvailableBenefits),i.with_available_benefits=this.transformParameter(i.with_available_benefits),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}createCustomerSerialNumbers(t,e={},r){let a="/customers/{id}/serial-numbers",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}applySerialNumberBenefit(t,e={},r){let a="/customers/{id}/apply-serial-number-benefit",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}updateUserCompareProducts(t,e={},r){let a="/customers/{id}/compare_products",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}loadCustomerGeneralSerialNumbers(t,e={},r){let a="/customers/{id}/general-serial-numbers",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.serialNumber&&(s.serial_number=e.serialNumber),s.serial_number=this.transformParameter(s.serial_number),void 0!==e.productCode&&(s.product_code=e.productCode),s.product_code=this.transformParameter(s.product_code),void 0!==e.productName&&(s.product_name=e.productName),s.product_name=this.transformParameter(s.product_name),void 0!==e.productEan&&(s.product_ean=e.productEan),s.product_ean=this.transformParameter(s.product_ean),void 0!==e.filterFrom&&(s.filter_from=e.filterFrom),s.filter_from=this.transformParameter(s.filter_from),void 0!==e.filterTo&&(s.filter_to=e.filterTo),s.filter_to=this.transformParameter(s.filter_to),void 0!==e.userOuterId&&(s.user_outer_id=e.userOuterId),s.user_outer_id=this.transformParameter(s.user_outer_id),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadCustomerServices(t,e={},r){let a="/customers/{id}/services",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.serviceId&&(s.service_id=e.serviceId),s.service_id=this.transformParameter(s.service_id),void 0!==e.productCode&&(s.product_code=e.productCode),s.product_code=this.transformParameter(s.product_code),void 0!==e.status&&(s.status=e.status),s.status=this.transformParameter(s.status),void 0!==e.code&&(s.code=e.code),s.code=this.transformParameter(s.code),void 0!==e.customerCode&&(s.customer_code=e.customerCode),s.customer_code=this.transformParameter(s.customer_code),void 0!==e.filterFrom&&(s.filter_from=e.filterFrom),s.filter_from=this.transformParameter(s.filter_from),void 0!==e.filterTo&&(s.filter_to=e.filterTo),s.filter_to=this.transformParameter(s.filter_to),void 0!==e.userOuterId&&(s.user_outer_id=e.userOuterId),s.user_outer_id=this.transformParameter(s.user_outer_id),void 0!==e.withProducts&&(s.with_products=e.withProducts),s.with_products=this.transformParameter(s.with_products),void 0!==e.withCreditNoteLink&&(s.with_credit_note_link=e.withCreditNoteLink),s.with_credit_note_link=this.transformParameter(s.with_credit_note_link),void 0!==e.withTrackingData&&(s.with_tracking_data=e.withTrackingData),s.with_tracking_data=this.transformParameter(s.with_tracking_data),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}
1loadCompanyBranches(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.ico&&(r.ico=t.ico),r.ico=this.transformParameter(r.ico),void 0!==t.userId&&(r.user_id=t.userId),r.user_id=this.transformParameter(r.user_id),void 0!==t.langId&&(r.lang_id=t.langId),r.lang_id=this.transformParameter(r.lang_id),void 0===t.langId)throw Error("Missing required parameter: langId");return r.sort="name",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="asc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),this.request("GET",`${this.baseUrl}/customers/branches`,{},e,r)}claimWarranty(t={},e){let r=new Headers;return(r=this.appendAuthHeaders(r)).append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/customers/warranty`,e,r,{})}loadWarrantyByPublicId(t,e){let r="/warranty/{public_id}",a=new Headers,i={};if(a.append("Accept","application/json"),r=r.replace("{public_id}",t.toString()),void 0!==e.langId&&(i.lang_id=e.langId),i.lang_id=this.transformParameter(i.lang_id),void 0===e.langId)throw Error("Missing required parameter: langId");return this.request("GET",`${this.baseUrl}${r}`,{},a,i)}loadEbookDetail(t,e={},r){let a="/ebook/{ebook_id}",i=new Headers;return i.append("Accept","application/json"),a=a.replace("{ebook_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadElasticCategory(t,e){let r="/elastic/category/{category_id}",a=new Headers,i={};if((a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{category_id}",t.toString()),i.sort="default",void 0!==e.sort&&(i.sort=e.sort),i.sort=this.transformParameter(i.sort),i.sort_dir="desc",void 0!==e.sortDir&&(i.sort_dir=e.sortDir),i.sort_dir=this.transformParameter(i.sort_dir),i.limit=10,void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.min&&(i.min=e.min),i.min=this.transformParameter(i.min),void 0!==e.max&&(i.max=e.max),i.max=this.transformParameter(i.max),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),i.only_available="0",void 0!==e.onlyAvailable&&(i.only_available=e.onlyAvailable),i.only_available=this.transformParameter(i.only_available),i.saleout="0",void 0!==e.saleout&&(i.saleout=e.saleout),i.saleout=this.transformParameter(i.saleout),i.new="0",void 0!==e.new&&(i.new=e.new),i.new=this.transformParameter(i.new),i.sale="0",void 0!==e.sale&&(i.sale=e.sale),i.sale=this.transformParameter(i.sale),void 0!==e.langId&&(i.lang_id=e.langId),i.lang_id=this.transformParameter(i.lang_id),void 0===e.langId)throw Error("Missing required parameter: langId");if(i.only_subcategories="0",void 0!==e.onlySubcategories&&(i.only_subcategories=e.onlySubcategories),i.only_subcategories=this.transformParameter(i.only_subcategories),void 0===e.onlySubcategories)throw Error("Missing required parameter: onlySubcategories");return void 0!==e.activeAttribs&&(i.active_attribs=e.activeAttribs),i.active_attribs=this.transformParameter(i.active_attribs),void 0!==e.age&&(i.age=e.age),i.age=this.transformParameter(i.age),void 0!==e.q&&(i.q=e.q),i.q=this.transformParameter(i.q),i.only_with_parent="0",void 0!==e.onlyWithParent&&(i.only_with_parent=e.onlyWithParent),i.only_with_parent=this.transformParameter(i.only_with_parent),void 0!==e.onlyWithoutParent&&(i.only_without_parent=e.onlyWithoutParent),i.only_without_parent=this.transformParameter(i.only_without_parent),void 0!==e.projectType&&(i.project_type=e.projectType),i.project_type=this.transformParameter(i.project_type),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}loadElasticCategoryProducts(t,e){let r="/elastic/category/{category_id}/products",a=new Headers,i={};if((a=this.appendAuthHeaders(a)).append("Accept","application/json"),r=r.replace("{category_id}",t.toString()),i.sort="default",void 0!==e.sort&&(i.sort=e.sort),i.sort=this.transformParameter(i.sort),i.sort_dir="desc",void 0!==e.sortDir&&(i.sort_dir=e.sortDir),i.sort_dir=this.transformParameter(i.sort_dir),i.limit=10,void 0!==e.limit&&(i.limit=e.limit),i.limit=this.transformParameter(i.limit),void 0!==e.min&&(i.min=e.min),i.min=this.transformParameter(i.min),void 0!==e.max&&(i.max=e.max),i.max=this.transformParameter(i.max),void 0!==e.offset&&(i.offset=e.offset),i.offset=this.transformParameter(i.offset),i.only_available="0",void 0!==e.onlyAvailable&&(i.only_available=e.onlyAvailable),i.only_available=this.transformParameter(i.only_available),i.saleout="0",void 0!==e.saleout&&(i.saleout=e.saleout),i.saleout=this.transformParameter(i.saleout),void 0!==e.langId&&(i.lang_id=e.langId),i.lang_id=this.transformParameter(i.lang_id),void 0===e.langId)throw Error("Missing required parameter: langId");if(i.only_subcategories="0",void 0!==e.onlySubcategories&&(i.only_subcategories=e.onlySubcategories),i.only_subcategories=this.transformParameter(i.only_subcategories),void 0===e.onlySubcategories)throw Error("Missing required parameter: onlySubcategories");return void 0!==e.activeAttribs&&(i.active_attribs=e.activeAttribs),i.active_attribs=this.transformParameter(i.active_attribs),void 0!==e.activeRangeAttribs&&(i.active_range_attribs=e.activeRangeAttribs),i.active_range_attribs=this.transformParameter(i.active_range_attribs),void 0!==e.age&&(i.age=e.age),i.age=this.transformParameter(i.age),i.new="0",void 0!==e.new&&(i.new=e.new),i.new=this.transformParameter(i.new),i.sale="0",void 0!==e.sale&&(i.sale=e.sale),i.sale=this.transformParameter(i.sale),i.has_gift="0",void 0!==e.hasGift&&(i.has_gift=e.hasGift),i.has_gift=this.transformParameter(i.has_gift),void 0!==e.q&&(i.q=e.q),i.q=this.transformParameter(i.q),void 0!==e.domainId&&(i.domain_id=e.domainId),i.domain_id=this.transformParameter(i.domain_id),void 0!==e.brandId&&(i.brand_id=e.brandId),i.brand_id=this.transformParameter(i.brand_id),i.with_vat="1",void 0!==e.withVat&&(i.with_vat=e.withVat),i.with_vat=this.transformParameter(i.with_vat),i.voc="0",void 0!==e.voc&&(i.voc=e.voc),i.voc=this.transformParameter(i.voc),void 0!==e.tagId&&(i.tag_id=e.tagId),i.tag_id=this.transformParameter(i.tag_id),i.only_with_parent="0",void 0!==e.onlyWithParent&&(i.only_with_parent=e.onlyWithParent),i.only_with_parent=this.transformParameter(i.only_with_parent),i.only_without_parent="0",void 0!==e.onlyWithoutParent&&(i.only_without_parent=e.onlyWithoutParent),i.only_without_parent=this.transformParameter(i.only_without_parent),void 0!==e.productListId&&(i.product_list_id=e.productListId),i.product_list_id=this.transformParameter(i.product_list_id),void 0!==e.freeDelivery&&(i.free_delivery=e.freeDelivery),i.free_delivery=this.transformParameter(i.free_delivery),void 0!==e.cartId&&(i.cart_id=e.cartId),i.cart_id=this.transformParameter(i.cart_id),void 0!==e.webContentIds&&(i.web_content_ids=e.webContentIds),i.web_content_ids=this.transformParameter(i.web_content_ids),void 0!==e.projectType&&(i.project_type=e.projectType),i.project_type=this.transformParameter(i.project_type),void 0!==e.productIds&&(i.product_ids=e.productIds),i.product_ids=this.transformParameter(i.product_ids),void 0!==e.withAttribGroups&&(i.with_attrib_groups=e.withAttribGroups),i.with_attrib_groups=this.transformParameter(i.with_attrib_groups),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}
1loadElasticArticles(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),r.sort="default",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="desc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),r.limit=10,void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.langId&&(r.lang_id=t.langId),r.lang_id=this.transformParameter(r.lang_id),void 0===t.langId)throw Error("Missing required parameter: langId");return void 0!==t.q&&(r.q=t.q),r.q=this.transformParameter(r.q),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),void 0!==t.productsDomainId&&(r.products_domain_id=t.productsDomainId),r.products_domain_id=this.transformParameter(r.products_domain_id),this.request("GET",`${this.baseUrl}/elastic/articles`,{},e,r)}loadLangList(t={}){let e=new Headers;return e.append("Accept","application/json"),this.request("GET",`${this.baseUrl}/langs`,{},e,{})}loadLangTranslation(t,e={}){let r="/langs/{lang_id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{lang_id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}searchLastMinutes(t={},e){let r=new Headers,a={};return(r=this.appendAuthHeaders(r)).append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),e&&void 0!==e.xCurrency&&r.append("X-Currency",e.xCurrency),a.only_valid=1,void 0!==t.onlyValid&&(a.only_valid=t.onlyValid),a.only_valid=this.transformParameter(a.only_valid),this.request("GET",`${this.baseUrl}/last-minutes`,{},r,a)}getLastMinute(t,e={}){let r="/last-minutes/{lastminute_name}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{lastminute_name}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}subscribeNewsletter(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("PUT",`${this.baseUrl}/newsletter/subscribe`,e,r,{})}changeCodeForToken(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/oauth/change-code`,e,r,{})}impersonateUser(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.user&&(r.user=t.user),r.user=this.transformParameter(r.user),void 0===t.user)throw Error("Missing required parameter: user");if(void 0!==t.redirectUri&&(r.redirect_uri=t.redirectUri),r.redirect_uri=this.transformParameter(r.redirect_uri),void 0===t.redirectUri)throw Error("Missing required parameter: redirectUri");return this.request("GET",`${this.baseUrl}/oauth/impersonate-user`,{},e,r)}oauthAuthorize(t){let e=new Headers,r={};if(e.append("Content-Type","application/x-www-form-urlencoded"),e.append("Accept","application/json"),void 0!==t.clientId&&(r.client_id=t.clientId),r.client_id=this.transformParameter(r.client_id),void 0===t.clientId)throw Error("Missing required parameter: clientId");if(void 0!==t.cartId&&(r.cart_id=t.cartId),r.cart_id=this.transformParameter(r.cart_id),void 0!==t.redirectUri&&(r.redirect_uri=t.redirectUri),r.redirect_uri=this.transformParameter(r.redirect_uri),void 0===t.redirectUri)throw Error("Missing required parameter: redirectUri");if(r.response_type="token",void 0!==t.responseType&&(r.response_type=t.responseType),r.response_type=this.transformParameter(r.response_type),void 0!==t.scope&&(r.scope=t.scope),r.scope=this.transformParameter(r.scope),void 0===t.scope)throw Error("Missing required parameter: scope");return void 0!==t.state&&(r.state=t.state),r.state=this.transformParameter(r.state),void 0!==t.appSpace&&(r.appSpace=t.appSpace),r.appSpace=this.transformParameter(r.appSpace),void 0!==t.lang&&(r.lang=t.lang),r.lang=this.transformParameter(r.lang),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),this.request("POST",`${this.baseUrl}/oauth/authorize`,{},e,r)}facebook(t={}
1){let e=new Headers,r={};return e.append("Accept","application/json"),void 0!==t.state&&(r.state=t.state),r.state=this.transformParameter(r.state),this.request("GET",`${this.baseUrl}/oauth/facebook`,{},e,r)}facebookHandler(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.code&&(r.code=t.code),r.code=this.transformParameter(r.code),void 0!==t.state&&(r.state=t.state),r.state=this.transformParameter(r.state),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),void 0===t.domainId)throw Error("Missing required parameter: domainId");return this.request("GET",`${this.baseUrl}/oauth/facebook-callback`,{},e,r)}google(t={}){let e=new Headers,r={};return e.append("Accept","application/json"),void 0!==t.state&&(r.state=t.state),r.state=this.transformParameter(r.state),this.request("GET",`${this.baseUrl}/oauth/google`,{},e,r)}googleHandler(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.code&&(r.code=t.code),r.code=this.transformParameter(r.code),void 0!==t.state&&(r.state=t.state),r.state=this.transformParameter(r.state),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),void 0===t.domainId)throw Error("Missing required parameter: domainId");return this.request("GET",`${this.baseUrl}/oauth/google-callback`,{},e,r)}oauthLogout(t={}){let e=new Headers,r={};return(e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.cartId&&(r.cart_id=t.cartId),r.cart_id=this.transformParameter(r.cart_id),this.request("POST",`${this.baseUrl}/oauth/logout`,{},e,r)}registerUser(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/oauth/register`,e,r,{})}registerB2B(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/oauth/register-b2b`,e,r,{})}tokeninfo(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.accessToken&&(r.access_token=t.accessToken),r.access_token=this.transformParameter(r.access_token),void 0===t.accessToken)throw Error("Missing required parameter: accessToken");return r.with_groups="0",void 0!==t.withGroups&&(r.with_groups=t.withGroups),r.with_groups=this.transformParameter(r.with_groups),void 0!==t.lang&&(r.lang=t.lang),r.lang=this.transformParameter(r.lang),this.request("GET",`${this.baseUrl}/oauth/tokeninfo`,{},e,r)}orderCancelRequest(t,e={}){let r="/orders/cancel/request/{public_id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{public_id}",t.toString()),this.request("POST",`${this.baseUrl}${r}`,{},a,{})}orderCancel(t,e,r={}){let a="/orders/cancel/confirm/{public_id}/{token}",i=new Headers;return i.append("Accept","application/json"),a=(a=a.replace("{public_id}",t.toString())).replace("{token}",e.toString()),this.request("POST",`${this.baseUrl}${a}`,{},i,{})}getOrderBodyHtml(t,e={}){let r="/orders/body-html/{id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}getOrder(t,e={}){let r="/orders/{id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}createOrder(t,e={},r){let a="/orders/{id}",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Content-Type","application/json"),i.append("Accept","application/json"),a=a.replace("{id}",t.toString()),this.request("POST",`${this.baseUrl}${a}`,r,i,{})}statuses(t,e={}){let r="/orders/{public_id}/statuses",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{public_id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadOtherTexts(t,e={}){let r="/other-texts/{text_id}",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{text_id}",t.toString()),void 0!==e.langId&&(i.lang_id=e.langId),i.lang_id=this.transformParameter(i.lang_id),void 0!==e.domainId&&(i.domain_id=e.domainId),i.domain_id=this.transformParameter(i.domain_id),void 0!==e.fallbackDomainId&&(i.fallback_domain_id=e.fallbackDomainId),i.fallback_domain_id=this.transformParameter(i.fallback_domain_id),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}updateOrderAnalytics(t,e={}){let r="/orders/analytics/{public_id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{public_id}",t.toString()),this.request("PUT",`${this.baseUrl}${r}`,{},a,{})}createWithdrawal(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/orders/withdrawal`,e,r,{})}confirmWithdrawal(t={},e){let r=new Headers;return r.append("Content-Type","application/json"),r.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/orders/withdrawal/confirm`,e,r,{})}vubPay(t,e={}){let r="/payment/vubpay/{orderHash}",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),void 0!==e.returnUrl&&(i.return_url=e.returnUrl),i.return_url=this.transformParameter(i.return_url),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}vubPaySuccess(t={}
1){let e=new Headers,r={};return e.append("Content-Type","application/x-www-form-urlencoded"),e.append("Accept","application/json"),void 0!==t.returnUrl&&(r.return_url=t.returnUrl),r.return_url=this.transformParameter(r.return_url),this.request("POST",`${this.baseUrl}/payment/vubpay/success`,{},e,r)}vubPayFail(t={}){let e=new Headers,r={};return e.append("Content-Type","application/x-www-form-urlencoded"),e.append("Accept","application/json"),void 0!==t.returnUrl&&(r.return_url=t.returnUrl),r.return_url=this.transformParameter(r.return_url),this.request("POST",`${this.baseUrl}/payment/vubpay/fail`,{},e,r)}ahojLoan(t,e={}){let r="/payment/ahoj/{orderHash}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}trustPay(t,e){let r="/payment/trustpay/{orderHash}",a=new Headers,i={};if(a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),void 0!==e.type&&(i.type=e.type),i.type=this.transformParameter(i.type),void 0===e.type)throw Error("Missing required parameter: type");return this.request("GET",`${this.baseUrl}${r}`,{},a,i)}ahojLoanValidate(t,e={}){let r="/payment/ahoj/validate/{orderHash}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}goPay(t,e={}){let r="/payment/gopay/{orderHash}",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),void 0!==e.returnUrl&&(i.return_url=e.returnUrl),i.return_url=this.transformParameter(i.return_url),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}csob(t,e={}){let r="/payment/csob/{orderHash}",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),void 0!==e.returnUrl&&(i.return_url=e.returnUrl),i.return_url=this.transformParameter(i.return_url),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}quatro(t,e={}){let r="/payment/quatro/{orderHash}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}homecredit(t,e={}){let r="/payment/homecredit/{orderHash}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadProductAttribs(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.categoryId&&(a.category_id=t.categoryId),a.category_id=this.transformParameter(a.category_id),void 0!==t.attribUniqueId&&(a.attrib_unique_id=t.attribUniqueId),a.attrib_unique_id=this.transformParameter(a.attrib_unique_id),void 0!==t.brandId&&(a.brand_id=t.brandId),a.brand_id=this.transformParameter(a.brand_id),void 0!==t.productType&&(a.product_type=t.productType),a.product_type=this.transformParameter(a.product_type),void 0!==t.parameters&&(a.parameters=t.parameters),a.parameters=this.transformParameter(a.parameters),void 0!==t.sorter&&(a.sorter=t.sorter),a.sorter=this.transformParameter(a.sorter),void 0!==t.withoutHidden&&(a.without_hidden=t.withoutHidden),a.without_hidden=this.transformParameter(a.without_hidden),this.request("GET",`${this.baseUrl}/product-attribs`,{},r,a)}loadProductAttribsGroups(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.sort&&(a.sort=t.sort),a.sort=this.transformParameter(a.sort),void 0!==t.sortDir&&(a.sort_dir=t.sortDir),a.sort_dir=this.transformParameter(a.sort_dir),this.request("GET",`${this.baseUrl}/product-attribs/groups`,{},r,a)}loadProductList(t,e={},r){let a="/product-list/{list_id}",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{list_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}searchProducts(t={},e){let r=new Headers,a={};return(r=this.appendAuthHeaders(r)).append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),e&&void 0!==e.xCurrency&&r.append("X-Currency",e.xCurrency),void 0!==t.columns&&(a.columns=t.columns),a.columns=this.transformParameter(a.columns),a.without_currency="0",void 0!==t.withoutCurrency&&(a.without_currency=t.withoutCurrency),a.without_currency=this.transformParameter(a.without_currency),a.with_goods="1",void 0!==t.withGoods&&(a.with_goods=t.withGoods),a.with_goods=this.transformParameter(a.with_goods),a.with_gifts="1",void 0!==t.withGifts&&(a.with_gifts=t.withGifts),a.with_gifts=this.transformParameter(a.with_gifts),a.with_attribs="1",void 0!==t.withAttribs&&(a.with_attribs=t.withAttribs),a.with_attribs=this.transformParameter(a.with_attribs),a.with_brand="1",void 0!==t.withBrand&&(a.with_brand=t.withBrand),a.with_brand=this.transformParameter(a.with_brand),void 0!==t.withPublish&&(a.with_publish=t.withPublish),a.with_publish=this.transformParameter(a.with_publish),void 0!==t.validFrom&&(a.valid_from=t.validFrom),a.valid_from=this.transformParameter(a.valid_from),void 0!==t.validTo&&(a.valid_to=t.validTo),a.valid_to=this.transformParameter(a.valid_to),void 0!==t.onlyValidGoods&&(a.only_valid_goods=t.onlyValidGoods),a.only_valid_goods=this.transformParameter(a.only_valid_goods),void 0!==t.categoryId&&(a.category_id=t.categoryId),a.category_id=this.transformParameter(a.category_id),a.limit=10,void 0!==t.limit&&(a.limit=t.limit),a.limit=this.transformParameter(a.limit),void 0!==t.offset&&(a.offset=t.offset),a.offset=this.transformParameter(a.offset),a.is_sale="0",void 0!==t.isSale&&(a.is_sale=t.isSale),a.is_sale=this.transformParameter(a.is_sale),a.is_saleout="0",void 0!==t.isSaleout&&(a.is_saleout=t.isSaleout),a.is_saleout=this.transformParameter(a.is_saleout),void 0!==t.onStockSort&&(a.on_stock_sort=t.onStockSort),a.on_stock_sort=this.transformParameter(a.on_stock_sort),void 0!==t.isTop&&(a.is_top=t.isTop),a.is_top=this.transformParameter(a.is_top),void 0!==t.availabilityId&&(a.availability_id=t.availabilityId),a.availability_id=this.transformParameter(a.availability_id),void 0!==t.brandId&&(a.brand_id=t.brandId),a.brand_id=this.transformParameter(a.brand_id),void 0!==t.priceMin&&(a.price_min=t.priceMin),a.price_min=this.transformParameter(a.price_min),void 0!==t.priceMax&&(a.price_max=t.priceMax),a.price_max=this.transformParameter(a.price_max),void 0!==t.price&&(a.price=t.price),a.price=this.transformParameter(a.price),void 0!==t.productListId&&(a.product_list_id=t.productListId),a.product_list_id=this.transformParameter(a.product_list_id),void 0!==t.sort&&(a.sort=t.sort),a.sort=this.transformParameter(a.sort),void 0!==t.sortDir&&(a.sort_dir=t.sortDir),a.sort_dir=this.transformParameter(a.sort_dir),void 0!==t.parameters&&(a.parameters=t.parameters),a.parameters=this.transformParameter(a.parameters),void 0!==t.ean&&(a.ean=t.ean),a.ean=this.transformParameter(a.ean),void 0!==t.plu&&(a.plu=t.plu),a.plu=this.transformParameter(a.plu),void 0!==t.internalCode&&(a.internal_code=t.internalCode),a.internal_code=this.transformParameter(a.internal_code),void 0!==t.q&&(a.q=t.q),a.q=this.transformParameter(a.q),void 0!==t.ageFilter&&(a.age_filter=t.ageFilter),a.age_filter=this.transformParameter(a.age_filter),void 0!==t.street&&(a.street=t.street),a.street=this.transformParameter(a.street),void 0!==t.city&&(a.city=t.city),a.city=this.transformParameter(a.city),void 0!==t.zip&&(a.zip=t.zip),a.zip=this.transformParameter(a.zip),void 0!==t.onlyAvailableGoods&&(a.only_available_goods=t.onlyAvailableGoods),a.only_available_goods=this.transformParameter(a.only_available_goods),a.only_on_internal_stock="0",void 0!==t.onlyOn
1InternalStock&&(a.only_on_internal_stock=t.onlyOnInternalStock),a.only_on_internal_stock=this.transformParameter(a.only_on_internal_stock),a.only_on_external_stock="0",void 0!==t.onlyOnExternalStock&&(a.only_on_external_stock=t.onlyOnExternalStock),a.only_on_external_stock=this.transformParameter(a.only_on_external_stock),void 0!==t.productSystem&&(a.product_system=t.productSystem),a.product_system=this.transformParameter(a.product_system),a.is_new="0",void 0!==t.isNew&&(a.is_new=t.isNew),a.is_new=this.transformParameter(a.is_new),a.with_custom_order_nr="0",void 0!==t.withCustomOrderNr&&(a.with_custom_order_nr=t.withCustomOrderNr),a.with_custom_order_nr=this.transformParameter(a.with_custom_order_nr),a.with_product_packages="0",void 0!==t.withProductPackages&&(a.with_product_packages=t.withProductPackages),a.with_product_packages=this.transformParameter(a.with_product_packages),void 0!==t.goodsWithStores&&(a.goods_with_stores=t.goodsWithStores),a.goods_with_stores=this.transformParameter(a.goods_with_stores),void 0!==t.withParentCategories&&(a.with_parent_categories=t.withParentCategories),a.with_parent_categories=this.transformParameter(a.with_parent_categories),void 0!==t.withFreeDelivery&&(a.with_free_delivery=t.withFreeDelivery),a.with_free_delivery=this.transformParameter(a.with_free_delivery),void 0!==t.withColors&&(a.with_colors=t.withColors),a.with_colors=this.transformParameter(a.with_colors),void 0!==t.withSize&&(a.with_size=t.withSize),a.with_size=this.transformParameter(a.with_size),void 0!==t.tagIds&&(a.tag_ids=t.tagIds),a.tag_ids=this.transformParameter(a.tag_ids),void 0!==t.withAllLangs&&(a.with_all_langs=t.withAllLangs),a.with_all_langs=this.transformParameter(a.with_all_langs),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),void 0!==t.webContentIds&&(a.web_content_ids=t.webContentIds),a.web_content_ids=this.transformParameter(a.web_content_ids),this.request("GET",`${this.baseUrl}/products`,{},r,a)}searchProductsI6(t={}){let e=new Headers,r={};return(e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.serialNumber&&(r.serial_number=t.serialNumber),r.serial_number=this.transformParameter(r.serial_number),void 0!==t.codeName&&(r.code_name=t.codeName),r.code_name=this.transformParameter(r.code_name),void 0!==t.brandId&&(r.brand_id=t.brandId),r.brand_id=this.transformParameter(r.brand_id),void 0!==t.withProducts&&(r.with_products=t.withProducts),r.with_products=this.transformParameter(r.with_products),void 0!==t.withBrands&&(r.with_brands=t.withBrands),r.with_brands=this.transformParameter(r.with_brands),void 0!==t.langId&&(r.lang_id=t.langId),r.lang_id=this.transformParameter(r.lang_id),void 0!==t.showInWarrantyProtocol&&(r.show_in_warranty_protocol=t.showInWarrantyProtocol),r.show_in_warranty_protocol=this.transformParameter(r.show_in_warranty_protocol),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),r.sort="name",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="asc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),this.request("GET",`${this.baseUrl}/products/i6`,{},e,r)}exportDsiProductsParameters(t={}){let e=new Headers;return e.append("Accept","application/json"),this.request("POST",`${this.baseUrl}/products/attribs/export`,{},e,{})}loadProductTypes(t={}){let e=new Headers;return e.append("Accept","application/json"),this.request("GET",`${this.baseUrl}/product/types`,{},e,{})}loadProduct(t,e={},r){let a="/products/{product_id}",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{product_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),void 0!==e.onlyValidGoods&&(s.only_valid_goods=e.onlyValidGoods),s.only_valid_goods=this.transformParameter(s.only_valid_goods),s.published="1",void 0!==e.published&&(s.published=e.published),s.published=this.transformParameter(s.published),s.goods_with_
1stores="0",void 0!==e.goodsWithStores&&(s.goods_with_stores=e.goodsWithStores),s.goods_with_stores=this.transformParameter(s.goods_with_stores),s.goods_with_sets="0",void 0!==e.goodsWithSets&&(s.goods_with_sets=e.goodsWithSets),s.goods_with_sets=this.transformParameter(s.goods_with_sets),s.with_parent_categories="0",void 0!==e.withParentCategories&&(s.with_parent_categories=e.withParentCategories),s.with_parent_categories=this.transformParameter(s.with_parent_categories),s.with_custom_order_nr="0",void 0!==e.withCustomOrderNr&&(s.with_custom_order_nr=e.withCustomOrderNr),s.with_custom_order_nr=this.transformParameter(s.with_custom_order_nr),s.with_product_packages="0",void 0!==e.withProductPackages&&(s.with_product_packages=e.withProductPackages),s.with_product_packages=this.transformParameter(s.with_product_packages),void 0!==e.count&&(s.count=e.count),s.count=this.transformParameter(s.count),void 0!==e.withFreeDelivery&&(s.with_free_delivery=e.withFreeDelivery),s.with_free_delivery=this.transformParameter(s.with_free_delivery),void 0!==e.withContents&&(s.with_contents=e.withContents),s.with_contents=this.transformParameter(s.with_contents),void 0!==e.withAllLangs&&(s.with_all_langs=e.withAllLangs),s.with_all_langs=this.transformParameter(s.with_all_langs),void 0!==e.withProductVariants&&(s.with_product_variants=e.withProductVariants),s.with_product_variants=this.transformParameter(s.with_product_variants),void 0!==e.topCategoryId&&(s.top_category_id=e.topCategoryId),s.top_category_id=this.transformParameter(s.top_category_id),void 0!==e.domainId&&(s.domain_id=e.domainId),s.domain_id=this.transformParameter(s.domain_id),void 0!==e.cartId&&(s.cart_id=e.cartId),s.cart_id=this.transformParameter(s.cart_id),void 0!==e.withLangVersions&&(s.with_lang_versions=e.withLangVersions),s.with_lang_versions=this.transformParameter(s.with_lang_versions),void 0!==e.projectType&&(s.project_type=e.projectType),s.project_type=this.transformParameter(s.project_type),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}exportPriceTagPdf(t,e,r={}){let a="/price-tag/{product_id}/{good_id}",i=new Headers;return i.append("Accept","application/json"),a=(a=a.replace("{product_id}",t.toString())).replace("{good_id}",e.toString()),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadProductConnections(t,e={},r){let a="/products/{product_id}/connections",i=new Headers,s={};return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=a.replace("{product_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),void 0!==e.connectionType&&(s.connection_type=e.connectionType),s.connection_type=this.transformParameter(s.connection_type),s.limit=10,void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.sort&&(s.sort=e.sort),s.sort=this.transformParameter(s.sort),void 0!==e.sortDir&&(s.sort_dir=e.sortDir),s.sort_dir=this.transformParameter(s.sort_dir),s.with_custom_order_nr="0",void 0!==e.withCustomOrderNr&&(s.with_custom_order_nr=e.withCustomOrderNr),s.with_custom_order_nr=this.transformParameter(s.with_custom_order_nr),void 0!==e.goodsWithStores&&(s.goods_with_stores=e.goodsWithStores),s.goods_with_stores=this.transformParameter(s.goods_with_stores),void 0!==e.categoryId&&(s.category_id=e.categoryId),s.category_id=this.transformParameter(s.category_id),void 0!==e.domainId&&(s.domain_id=e.domainId),s.domain_id=this.transformParameter(s.domain_id),void 0!==e.projectType&&(s.project_type=e.projectType),s.project_type=this.transformParameter(s.project_type),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadProductRatings(t,e={},r){let a="/products/{product_id}/rating",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{product_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.dateStart&&(s.date_start=e.dateStart),s.date_start=this.transformParameter(s.date_start),void 0!==e.dateEnd&&(s.date_end=e.dateEnd),s.date_end=this.transformParameter(s.date_end),s.limit=10,void 0!==e.limit&&(s.limit=e.limit),s.limit=this.transformParameter(s.limit),void 0!==e.offset&&(s.offset=e.offset),s.offset=this.transformParameter(s.offset),void 0!==e.sort&&(s.sort=e.sort),s.sort=this.transformParameter(s.sort),void 0!==e.sortDir&&(s.sort_dir=e.sortDir),s.sort_dir=this.transformParameter(s.sort_dir),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadProductGoodCustomersPrices(t,e,r={}){let a="/products/{product_id}/{good_id}/customer-prices",i=new Headers;return(i=this.appendAuthHeaders(i)).append("Accept","application/json"),a=(a=a.replace("{product_id}",t.toString())).replace("{good_id}",e.toString()),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadProductGoodCustomerPrices(t,e,r,a={}){let i="/products/{product_id}/{good_id}/customer-prices/{customer_id}",s=new Headers;return(s=this.appendAuthHeaders(s)).append("Accept","application/json"),i=(i=(i=i.replace("{product_id}",t.toString())).replace("{good_id}",e.toString())).replace("{customer_id}",r.toString()),this.request("GET",`${this.baseUrl}${i}`,{},s,{})}watchAvailability(t,e,r={},a){let i="/products/{product_id}/{good_id}/watch-availability",s=new Headers;return s.append("Content-Type","application/json"),s.append("Accept","application/json"),i=(i=i.replace("{product_id}",t.toString())).replace("{good_id}",e.toString()),this.request("POST",`${this.baseUrl}${i}`,a,s,{})}watchPrice(t,e,r={},a){let i="/products/{product_id}/{good_id}/watch-price",s=new Headers;return s.append("Content-Type","application/json"),s.append("Accept","application/json"),i=(i=i.replace("{product_id}",t.toString())).replace("{good_id}",e.toString()),this.request("POST",`${this.baseUrl}${i}`,a,s,{})}stateAvailabilitiesStock(t,e,r){let a="/products/{product_id}/{good_id}
1/on-stock",i=new Headers,s={};if(i.append("Accept","application/json"),a=(a=a.replace("{product_id}",t.toString())).replace("{good_id}",e.toString()),void 0!==r.quantity&&(s.quantity=r.quantity),s.quantity=this.transformParameter(s.quantity),void 0===r.quantity)throw Error("Missing required parameter: quantity");return this.request("GET",`${this.baseUrl}${a}`,{},i,s)}checkProductCompareCompatibility(t,e={}){let r="/products/{product_id}/check-compare-compatibility",a=new Headers,i={};return a.append("Accept","application/json"),r=r.replace("{product_id}",t.toString()),void 0!==e.compareProductIds&&(i.compare_product_ids=e.compareProductIds),i.compare_product_ids=this.transformParameter(i.compare_product_ids),this.request("GET",`${this.baseUrl}${r}`,{},a,i)}getSettings(t={},e){let r=new Headers,a={};return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),this.request("GET",`${this.baseUrl}/settings`,{},r,a)}getSettingByName(t,e={},r){let a="/settings/{setting_name}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{setting_name}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.domainId&&(s.domain_id=e.domainId),s.domain_id=this.transformParameter(s.domain_id),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadSitemaps(t,e){let r=new Headers,a={};if(r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.sitemapUids&&(a.sitemap_uids=t.sitemapUids),a.sitemap_uids=this.transformParameter(a.sitemap_uids),void 0===t.sitemapUids)throw Error("Missing required parameter: sitemapUids");return void 0!==t.withLangVersions&&(a.with_lang_versions=t.withLangVersions),a.with_lang_versions=this.transformParameter(a.with_lang_versions),void 0!==t.withArticles&&(a.with_articles=t.withArticles),a.with_articles=this.transformParameter(a.with_articles),a.articles_limit=10,void 0!==t.articlesLimit&&(a.articles_limit=t.articlesLimit),a.articles_limit=this.transformParameter(a.articles_limit),this.request("GET",`${this.baseUrl}/sitemaps`,{},r,a)}loadSitemapTree(t={},e){let r=new Headers;return r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),this.request("GET",`${this.baseUrl}/sitemaps/tree`,{},r,{})}loadSitemap(t,e={},r){let a="/sitemaps/{sitemap_uid}",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{sitemap_uid}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),void 0!==e.withLangVersions&&(s.with_lang_versions=e.withLangVersions),s.with_lang_versions=this.transformParameter(s.with_lang_versions),void 0!==e.withSubtree&&(s.with_subtree=e.withSubtree),s.with_subtree=this.transformParameter(s.with_subtree),void 0!==e.withArticles&&(s.with_articles=e.withArticles),s.with_articles=this.transformParameter(s.with_articles),s.articles_limit=10,void 0!==e.articlesLimit&&(s.articles_limit=e.articlesLimit),s.articles_limit=this.transformParameter(s.articles_limit),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadSitemapSubtree(t,e={},r){let a="/sitemaps/{sitemap_uid}/tree",i=new Headers,s={};return i.append("Accept","application/json"),a=a.replace("{sitemap_uid}",t.toString()),void 0!==e.withoutContent&&(s.without_content=e.withoutContent),s.without_content=this.transformParameter(s.without_content),void 0!==e.hideInMenu&&(s.hide_in_menu=e.hideInMenu),s.hide_in_menu=this.transformParameter(s.hide_in_menu),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),this.request("GET",`${this.baseUrl}${a}`,{},i,s)}loadShops(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.langId&&(r.langId=t.langId),r.langId=this.transformParameter(r.langId),void 0===t.langId)throw Error("Missing required parameter: langId");return void 0!==t.domainId&&(r.domainId=t.domainId),r.domainId=this.transformParameter(r.domainId),this.request("GET",`${this.baseUrl}/shops`,{},e,r)}
1loadShopDetail(t,e={}){let r="/shops/{id}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{id}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}comgate(t,e={}){let r="/payment/comgate/{orderHash}",a=new Headers;return a.append("Accept","application/json"),r=r.replace("{orderHash}",t.toString()),this.request("GET",`${this.baseUrl}${r}`,{},a,{})}loadLandingPages(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.columns&&(r.columns=t.columns),r.columns=this.transformParameter(r.columns),void 0!==t.id&&(r.id=t.id),r.id=this.transformParameter(r.id),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),void 0!==t.clubGroupId&&(r.club_group_id=t.clubGroupId),r.club_group_id=this.transformParameter(r.club_group_id),void 0!==t.showInList&&(r.show_in_list=t.showInList),r.show_in_list=this.transformParameter(r.show_in_list),void 0!==t.showInCategories&&(r.show_in_categories=t.showInCategories),r.show_in_categories=this.transformParameter(r.show_in_categories),void 0!==t.withContent&&(r.with_content=t.withContent),r.with_content=this.transformParameter(r.with_content),void 0!==t.lang&&(r.lang=t.lang),r.lang=this.transformParameter(r.lang),void 0===t.lang)throw Error("Missing required parameter: lang");return void 0!==t.productLimit&&(r.product_limit=t.productLimit),r.product_limit=this.transformParameter(r.product_limit),void 0!==t.productOffset&&(r.product_offset=t.productOffset),r.product_offset=this.transformParameter(r.product_offset),void 0!==t.validByDate&&(r.valid_by_date=t.validByDate),r.valid_by_date=this.transformParameter(r.valid_by_date),r.sort="id",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="asc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),void 0!==t.hideEmpty&&(r.hide_empty=t.hideEmpty),r.hide_empty=this.transformParameter(r.hide_empty),void 0!==t.withConnectedProducts&&(r.with_connected_products=t.withConnectedProducts),r.with_connected_products=this.transformParameter(r.with_connected_products),this.request("GET",`${this.baseUrl}/landing-pages`,{},e,r)}loadLandingPages_1(t){let e=new Headers,r={};if((e=this.appendAuthHeaders(e)).append("Accept","application/json"),void 0!==t.limit&&(r.limit=t.limit),r.limit=this.transformParameter(r.limit),void 0!==t.offset&&(r.offset=t.offset),r.offset=this.transformParameter(r.offset),void 0!==t.columns&&(r.columns=t.columns),r.columns=this.transformParameter(r.columns),void 0!==t.id&&(r.id=t.id),r.id=this.transformParameter(r.id),void 0!==t.query&&(r.query=t.query),r.query=this.transformParameter(r.query),void 0!==t.validByDate&&(r.valid_by_date=t.validByDate),r.valid_by_date=this.transformParameter(r.valid_by_date),void 0!==t.domainId&&(r.domain_id=t.domainId),r.domain_id=this.transformParameter(r.domain_id),void 0!==t.clubGroupId&&(r.club_group_id=t.clubGroupId),r.club_group_id=this.transformParameter(r.club_group_id),void 0!==t.withContent&&(r.with_content=t.withContent),r.with_content=this.transformParameter(r.with_content),void 0!==t.lang&&(r.lang=t.lang),r.lang=this.transformParameter(r.lang),void 0===t.lang)throw Error("Missing required parameter: lang");return void 0!==t.withClubGroups&&(r.with_club_groups=t.withClubGroups),r.with_club_groups=this.transformParameter(r.with_club_groups),void 0!==t.withCatalogDomains&&(r.with_catalog_domains=t.withCatalogDomains),r.with_catalog_domains=this.transformParameter(r.with_catalog_domains),r.sort="id",void 0!==t.sort&&(r.sort=t.sort),r.sort=this.transformParameter(r.sort),r.sort_dir="asc",void 0!==t.sortDir&&(r.sort_dir=t.sortDir),r.sort_dir=this.transformParameter(r.sort_dir),this.request("GET",`${this.baseUrl}/admin/landing-pages`,{},e,r)}getUrlMap(t,e){let r=new Headers,a={};if(r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.domainId&&(a.domain_id=t.domainId),a.domain_id=this.transformParameter(a.domain_id),void 0!==t.url&&(a.url=t.url),a.url=this.transformParameter(a.url),void 0===t.url)throw Error("Missing required parameter: url");return a.no_tag="0",void 0!==t.noTag&&(a.no_tag=t.noTag),a.no_tag=this.transformParameter(a.no_tag),this.request("GET",`${this.baseUrl}/url-map`,{},r,a)}pairingImages(t={}){let e=new Headers;return e.append("Accept","application/json"),this.request("GET",`${this.baseUrl}/pair-images`,{},e,{})}
1checkRedirect(t){let e=new Headers,r={};if(e.append("Accept","application/json"),void 0!==t.url&&(r.url=t.url),r.url=this.transformParameter(r.url),void 0===t.url)throw Error("Missing required parameter: url");return this.request("GET",`${this.baseUrl}/redirects`,{},e,r)}loadsProductsSets(t,e={},r){let a="/products/{product_id}/sets",i=new Headers;return i.append("Accept","application/json"),a=a.replace("{product_id}",t.toString()),r&&void 0!==r.xAcceptLanguage&&i.append("X-Accept-Language",r.xAcceptLanguage),r&&void 0!==r.xCurrency&&i.append("X-Currency",r.xCurrency),this.request("GET",`${this.baseUrl}${a}`,{},i,{})}loadUrlTranslations(t,e){let r=new Headers,a={};if(r.append("Accept","application/json"),e&&void 0!==e.xAcceptLanguage&&r.append("X-Accept-Language",e.xAcceptLanguage),void 0!==t.url&&(a.url=t.url),a.url=this.transformParameter(a.url),void 0===t.url)throw Error("Missing required parameter: url");if(void 0!==t.type&&(a.type=t.type),a.type=this.transformParameter(a.type),void 0===t.type)throw Error("Missing required parameter: type");return this.request("GET",`${this.baseUrl}/url-translations`,{},r,a)}contactForm(t={},e,r){let a=new Headers;return a.append("Content-Type","application/json"),a.append("Accept","application/json"),r&&void 0!==r.xAcceptLanguage&&a.append("X-Accept-Language",r.xAcceptLanguage),this.request("POST",`${this.baseUrl}/contact-form`,e,a,{})}};r.request=t.i(67246).patchedRequest,t.s(["default",0,r],36482)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.