From e4ffe0dbf9cd98ad547de94fb3ae1987a8cc83c7 Mon Sep 17 00:00:00 2001
From: Kristoffer Strube - Relewise
<119578211+KSGRelewise@users.noreply.github.com>
Date: Wed, 10 Jan 2024 15:43:39 +0000
Subject: [PATCH] Updated NuGet package to version 1.130.0 and regenerated.
(#25)
---
Generator/Generator.csproj | 2 +-
Generator/Program.cs | 2 +-
...dCartTriggerResultTriggerConfiguration.php | 2 +-
src/Models/AbandonedContentSearch.php | 5 +
src/Models/AbandonedProductCategorySearch.php | 5 +
src/Models/AbandonedProductSearch.php | 5 +
src/Models/AbandonedSearch.php | 10 ++
...earchTriggerResultTriggerConfiguration.php | 2 +-
...randNameAndIdResultAvailableFacetValue.php | 2 +-
.../BrandRecommendationRequestSettings.php | 10 ++
...goryNameAndIdResultAvailableFacetValue.php | 2 +-
src/Models/CategoryPathValueFacet.php | 2 +-
src/Models/ChangeType.php | 12 ++
src/Models/Company.php | 65 ++++++++
src/Models/CompanyAdministrativeAction.php | 64 +++++++
.../CompanyAdministrativeActionUpdateKind.php | 15 ++
src/Models/CompanyDataFilter.php | 85 ++++++++++
src/Models/CompanyIdFilter.php | 60 +++++++
src/Models/CompanyUpdate.php | 83 +++++++++
src/Models/CompanyUpdateUpdateKind.php | 15 ++
.../ContentCategoryIdFilterCategoryQuery.php | 2 +-
...erestTriggerResultTriggerConfiguration.php | 2 +-
...tCategoryRecommendationRequestSettings.php | 10 ++
...goryResultDetailsCategoryResultDetails.php | 2 +-
.../ContentRecommendationRequestSettings.php | 10 ++
src/Models/ContentSortingSorting.php | 2 +-
src/Models/DataFilter.php | 4 +
src/Models/DataObjectValueSelector.php | 3 +-
.../DecompoundRuleSaveSearchRulesRequest.php | 2 +-
.../DecompoundRuleSaveSearchRulesResponse.php | 2 +-
.../DecompoundRuleSearchRulesResponse.php | 2 +-
...ndRulesRequestSortBySearchRulesRequest.php | 2 +-
.../DecompoundRulesRequestSortBySorting.php | 2 +-
...ityPropertyChangedTriggerConfiguration.php | 157 ++++++++++++++++++
.../EntityPropertyChangedTriggerResult.php | 32 ++++
...angedTriggerResultTriggerConfiguration.php | 93 +++++++++++
src/Models/FieldIndexConfiguration.php | 13 +-
src/Models/Filter.php | 27 +++
src/Models/IEntityPropertySelector.php | 26 +++
src/Models/ITriggerResult.php | 4 +
src/Models/LicensedRequest.php | 8 +
src/Models/LineItem.php | 24 +++
src/Models/MatchTypeSettings.php | 70 ++++++++
src/Models/ObservableProductAttribute.php | 11 ++
.../ObservableProductAttributeSelector.php | 31 ++++
.../ObservableProductDataValueSelector.php | 31 ++++
src/Models/Order.php | 24 +++
...enContentRecommendationRequestSettings.php | 10 ++
...enProductRecommendationRequestSettings.php | 10 ++
.../PredictionRuleSaveSearchRulesRequest.php | 2 +-
.../PredictionRuleSaveSearchRulesResponse.php | 2 +-
.../PredictionRuleSearchRulesResponse.php | 2 +-
...onRulesRequestSortBySearchRulesRequest.php | 2 +-
.../PredictionRulesRequestSortBySorting.php | 2 +-
.../ProductAndVariantIdAbandonedSearch.php | 7 +-
.../ProductCategoryIdFilterCategoryQuery.php | 2 +-
...erestTriggerResultTriggerConfiguration.php | 2 +-
...tCategoryRecommendationRequestSettings.php | 10 ++
...goryResultDetailsCategoryResultDetails.php | 2 +-
src/Models/ProductCategorySortingSorting.php | 2 +-
...erestTriggerResultTriggerConfiguration.php | 2 +-
.../ProductPropertyChangedTriggerResult.php | 47 ++++++
...roductRecentlyPurchasedByCompanyFilter.php | 80 +++++++++
...ctRecentlyPurchasedByUserCompanyFilter.php | 45 +++++
.../ProductRecentlyViewedByCompanyFilter.php | 80 +++++++++
...oductRecentlyViewedByUserCompanyFilter.php | 45 +++++
.../ProductRecommendationRequestSettings.php | 10 ++
src/Models/ProductSortingSorting.php | 2 +-
.../RedirectRuleSaveSearchRulesRequest.php | 2 +-
.../RedirectRuleSaveSearchRulesResponse.php | 2 +-
.../RedirectRuleSearchRulesResponse.php | 2 +-
...ctRulesRequestSortBySearchRulesRequest.php | 2 +-
.../RedirectRulesRequestSortBySorting.php | 2 +-
src/Models/RelativeDateTimeCondition.php | 65 ++++++++
...iveDateTimeConditionRelativeComparison.php | 11 ++
.../RelativeDateTimeConditionTimeUnit.php | 12 ++
src/Models/RelevanceModifier.php | 4 +
src/Models/RequestContextFilter.php | 10 ++
src/Models/RequestFilterCriteria.php | 50 ++++++
...sultModifierRuleSaveSearchRulesRequest.php | 2 +-
...ultModifierRuleSaveSearchRulesResponse.php | 2 +-
...hResultModifierRuleSearchRulesResponse.php | 2 +-
...erRulesRequestSortBySearchRulesRequest.php | 2 +-
...esultModifierRulesRequestSortBySorting.php | 2 +-
...TermModifierRuleSaveSearchRulesRequest.php | 2 +-
...ermModifierRuleSaveSearchRulesResponse.php | 2 +-
...rchTermModifierRuleSearchRulesResponse.php | 2 +-
...erRulesRequestSortBySearchRulesRequest.php | 2 +-
...hTermModifierRulesRequestSortBySorting.php | 2 +-
.../StemmingRuleSaveSearchRulesRequest.php | 2 +-
.../StemmingRuleSaveSearchRulesResponse.php | 2 +-
.../StemmingRuleSearchRulesResponse.php | 2 +-
...ngRulesRequestSortBySearchRulesRequest.php | 2 +-
.../StemmingRulesRequestSortBySorting.php | 2 +-
.../SynonymsRequestSynonymSortingSorting.php | 2 +-
src/Models/TimedResponse.php | 8 +-
...rackCompanyAdministrativeActionRequest.php | 31 ++++
src/Models/TrackCompanyUpdateRequest.php | 31 ++++
src/Models/Trackable.php | 8 +
src/Models/TrackingRequest.php | 8 +
src/Models/TriggerConfiguration.php | 4 +
src/Models/User.php | 16 +-
...ivityTriggerResultTriggerConfiguration.php | 2 +-
.../UserAssociatedCompanyResultDetails.php | 85 ++++++++++
src/Models/UserResultDetails.php | 10 ++
src/Models/ValueCondition.php | 4 +
src/Models/VariantIdRelevanceModifier.php | 94 +++++++++++
...floatChainableRangeAvailableFacetValue.php | 2 +-
src/Models/floatRangeAvailableFacetValue.php | 2 +-
src/Models/stringAbandonedSearch.php | 5 +
...ngBrandNameAndIdResultValueFacetResult.php | 2 +-
...ategoryNameAndIdResultValueFacetResult.php | 2 +-
...ringEntityPropertyChangedTriggerResult.php | 57 +++++++
src/Recommender.php | 10 ++
src/Tracker.php | 10 ++
115 files changed, 1933 insertions(+), 62 deletions(-)
create mode 100644 src/Models/ChangeType.php
create mode 100644 src/Models/Company.php
create mode 100644 src/Models/CompanyAdministrativeAction.php
create mode 100644 src/Models/CompanyAdministrativeActionUpdateKind.php
create mode 100644 src/Models/CompanyDataFilter.php
create mode 100644 src/Models/CompanyIdFilter.php
create mode 100644 src/Models/CompanyUpdate.php
create mode 100644 src/Models/CompanyUpdateUpdateKind.php
create mode 100644 src/Models/EntityPropertyChangedTriggerConfiguration.php
create mode 100644 src/Models/EntityPropertyChangedTriggerResult.php
create mode 100644 src/Models/EntityPropertyChangedTriggerResultTriggerConfiguration.php
create mode 100644 src/Models/IEntityPropertySelector.php
create mode 100644 src/Models/MatchTypeSettings.php
create mode 100644 src/Models/ObservableProductAttribute.php
create mode 100644 src/Models/ObservableProductAttributeSelector.php
create mode 100644 src/Models/ObservableProductDataValueSelector.php
create mode 100644 src/Models/ProductPropertyChangedTriggerResult.php
create mode 100644 src/Models/ProductRecentlyPurchasedByCompanyFilter.php
create mode 100644 src/Models/ProductRecentlyPurchasedByUserCompanyFilter.php
create mode 100644 src/Models/ProductRecentlyViewedByCompanyFilter.php
create mode 100644 src/Models/ProductRecentlyViewedByUserCompanyFilter.php
create mode 100644 src/Models/RelativeDateTimeCondition.php
create mode 100644 src/Models/RelativeDateTimeConditionRelativeComparison.php
create mode 100644 src/Models/RelativeDateTimeConditionTimeUnit.php
create mode 100644 src/Models/RequestFilterCriteria.php
create mode 100644 src/Models/TrackCompanyAdministrativeActionRequest.php
create mode 100644 src/Models/TrackCompanyUpdateRequest.php
create mode 100644 src/Models/UserAssociatedCompanyResultDetails.php
create mode 100644 src/Models/VariantIdRelevanceModifier.php
create mode 100644 src/Models/stringEntityPropertyChangedTriggerResult.php
diff --git a/Generator/Generator.csproj b/Generator/Generator.csproj
index e50e7acf..36c480fb 100644
--- a/Generator/Generator.csproj
+++ b/Generator/Generator.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/Generator/Program.cs b/Generator/Program.cs
index e1d325dc..e9374800 100644
--- a/Generator/Program.cs
+++ b/Generator/Program.cs
@@ -18,7 +18,7 @@
var assembly = Assembly.GetAssembly(typeof(ClientBase)) ?? throw new ArgumentException("Could not load Relewise Client assembly.");
-var xmlDocumentation = await XMLDocsFetcher.Get("Relewise.Client", "1.96.0");
+var xmlDocumentation = await XMLDocsFetcher.Get("Relewise.Client", "1.130.0");
Console.WriteLine($"Loaded {xmlDocumentation.Summaries.Count} documentation summaries.");
Console.WriteLine($"Loaded {xmlDocumentation.Params.Count} documentation params.");
diff --git a/src/Models/AbandonedCartTriggerResultTriggerConfiguration.php b/src/Models/AbandonedCartTriggerResultTriggerConfiguration.php
index f9b31707..29c5d770 100644
--- a/src/Models/AbandonedCartTriggerResultTriggerConfiguration.php
+++ b/src/Models/AbandonedCartTriggerResultTriggerConfiguration.php
@@ -6,7 +6,7 @@
abstract class AbandonedCartTriggerResultTriggerConfiguration extends TriggerConfiguration
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.AbandonedCartTriggerResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.AbandonedCartTriggerResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
diff --git a/src/Models/AbandonedContentSearch.php b/src/Models/AbandonedContentSearch.php
index bdcb9495..81c6f26f 100644
--- a/src/Models/AbandonedContentSearch.php
+++ b/src/Models/AbandonedContentSearch.php
@@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/AbandonedProductCategorySearch.php b/src/Models/AbandonedProductCategorySearch.php
index 48467bcc..a357c044 100644
--- a/src/Models/AbandonedProductCategorySearch.php
+++ b/src/Models/AbandonedProductCategorySearch.php
@@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/AbandonedProductSearch.php b/src/Models/AbandonedProductSearch.php
index 2abf2772..92a93e40 100644
--- a/src/Models/AbandonedProductSearch.php
+++ b/src/Models/AbandonedProductSearch.php
@@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/AbandonedSearch.php b/src/Models/AbandonedSearch.php
index 8522c8b1..60421ac1 100644
--- a/src/Models/AbandonedSearch.php
+++ b/src/Models/AbandonedSearch.php
@@ -9,6 +9,7 @@ abstract class AbandonedSearch
public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedSearch, Relewise.Client";
public string $loweredSearchTerm;
public int $hits;
+ public ?Language $language;
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
@@ -35,6 +36,10 @@ public static function hydrateBase(mixed $result, array $arr)
{
$result->hits = $arr["hits"];
}
+ if (array_key_exists("language", $arr))
+ {
+ $result->language = Language::hydrate($arr["language"]);
+ }
return $result;
}
function setLoweredSearchTerm(string $loweredSearchTerm)
@@ -47,4 +52,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/AbandonedSearchTriggerResultTriggerConfiguration.php b/src/Models/AbandonedSearchTriggerResultTriggerConfiguration.php
index a56d98ad..43eb99c9 100644
--- a/src/Models/AbandonedSearchTriggerResultTriggerConfiguration.php
+++ b/src/Models/AbandonedSearchTriggerResultTriggerConfiguration.php
@@ -6,7 +6,7 @@
abstract class AbandonedSearchTriggerResultTriggerConfiguration extends TriggerConfiguration
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.AbandonedSearchTriggerResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.AbandonedSearchTriggerResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
diff --git a/src/Models/BrandNameAndIdResultAvailableFacetValue.php b/src/Models/BrandNameAndIdResultAvailableFacetValue.php
index 20afc8f0..d9e19bca 100644
--- a/src/Models/BrandNameAndIdResultAvailableFacetValue.php
+++ b/src/Models/BrandNameAndIdResultAvailableFacetValue.php
@@ -6,7 +6,7 @@
class BrandNameAndIdResultAvailableFacetValue
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.BrandNameAndIdResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.BrandNameAndIdResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public BrandNameAndIdResult $value;
public int $hits;
public bool $selected;
diff --git a/src/Models/BrandRecommendationRequestSettings.php b/src/Models/BrandRecommendationRequestSettings.php
index 29e737d7..1481c74f 100644
--- a/src/Models/BrandRecommendationRequestSettings.php
+++ b/src/Models/BrandRecommendationRequestSettings.php
@@ -12,6 +12,7 @@ class BrandRecommendationRequestSettings
public bool $allowReplacingOfRecentlyShownRecommendations;
public bool $prioritizeDiversityBetweenRequests;
public ?SelectedBrandPropertiesSettings $selectedBrandProperties;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : BrandRecommendationRequestSettings
{
$result = new BrandRecommendationRequestSettings();
@@ -40,6 +41,10 @@ public static function hydrate(array $arr) : BrandRecommendationRequestSettings
{
$result->selectedBrandProperties = SelectedBrandPropertiesSettings::hydrate($arr["selectedBrandProperties"]);
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(int $numberOfRecommendations)
@@ -67,4 +72,9 @@ function setSelectedBrandProperties(?SelectedBrandPropertiesSettings $selectedBr
$this->selectedBrandProperties = $selectedBrandProperties;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/CategoryNameAndIdResultAvailableFacetValue.php b/src/Models/CategoryNameAndIdResultAvailableFacetValue.php
index 62f6e466..fc5b6283 100644
--- a/src/Models/CategoryNameAndIdResultAvailableFacetValue.php
+++ b/src/Models/CategoryNameAndIdResultAvailableFacetValue.php
@@ -6,7 +6,7 @@
class CategoryNameAndIdResultAvailableFacetValue
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.CategoryNameAndIdResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.CategoryNameAndIdResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public CategoryNameAndIdResult $value;
public int $hits;
public bool $selected;
diff --git a/src/Models/CategoryPathValueFacet.php b/src/Models/CategoryPathValueFacet.php
index fa2d15c9..0bc3ee3d 100644
--- a/src/Models/CategoryPathValueFacet.php
+++ b/src/Models/CategoryPathValueFacet.php
@@ -6,7 +6,7 @@
abstract class CategoryPathValueFacet extends Facet
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Queries.ValueFacet`1[[Relewise.Client.DataTypes.CategoryPath, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Queries.ValueFacet`1[[Relewise.Client.DataTypes.CategoryPath, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public ?array $selected;
public static function hydrate(array $arr)
{
diff --git a/src/Models/ChangeType.php b/src/Models/ChangeType.php
new file mode 100644
index 00000000..346ba365
--- /dev/null
+++ b/src/Models/ChangeType.php
@@ -0,0 +1,12 @@
+id = $id;
+ return $result;
+ }
+ public static function hydrate(array $arr) : Company
+ {
+ $result = new Company();
+ if (array_key_exists("id", $arr))
+ {
+ $result->id = $arr["id"];
+ }
+ if (array_key_exists("parent", $arr))
+ {
+ $result->parent = Company::hydrate($arr["parent"]);
+ }
+ if (array_key_exists("data", $arr))
+ {
+ $result->data = array();
+ foreach($arr["data"] as $key => $value)
+ {
+ $result->data[$key] = DataValue::hydrate($value);
+ }
+ }
+ return $result;
+ }
+ function setId(string $id)
+ {
+ $this->id = $id;
+ return $this;
+ }
+ function setParent(?Company $parent)
+ {
+ $this->parent = $parent;
+ return $this;
+ }
+ function addToData(string $key, DataValue $value)
+ {
+ if (!isset($this->data))
+ {
+ $this->data = array();
+ }
+ $this->data[$key] = $value;
+ return $this;
+ }
+ /** @param ?array $data associative array. */
+ function setDataFromAssociativeArray(array $data)
+ {
+ $this->data = $data;
+ return $this;
+ }
+}
diff --git a/src/Models/CompanyAdministrativeAction.php b/src/Models/CompanyAdministrativeAction.php
new file mode 100644
index 00000000..baa73855
--- /dev/null
+++ b/src/Models/CompanyAdministrativeAction.php
@@ -0,0 +1,64 @@
+language = $language;
+ $result->currency = $currency;
+ $result->filters = $filters;
+ $result->kind = $kind;
+ return $result;
+ }
+ public static function hydrate(array $arr) : CompanyAdministrativeAction
+ {
+ $result = Trackable::hydrateBase(new CompanyAdministrativeAction(), $arr);
+ if (array_key_exists("filters", $arr))
+ {
+ $result->filters = FilterCollection::hydrate($arr["filters"]);
+ }
+ if (array_key_exists("language", $arr))
+ {
+ $result->language = Language::hydrate($arr["language"]);
+ }
+ if (array_key_exists("kind", $arr))
+ {
+ $result->kind = CompanyAdministrativeActionUpdateKind::from($arr["kind"]);
+ }
+ if (array_key_exists("currency", $arr))
+ {
+ $result->currency = Currency::hydrate($arr["currency"]);
+ }
+ return $result;
+ }
+ function setFilters(FilterCollection $filters)
+ {
+ $this->filters = $filters;
+ return $this;
+ }
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
+ function setKind(CompanyAdministrativeActionUpdateKind $kind)
+ {
+ $this->kind = $kind;
+ return $this;
+ }
+ function setCurrency(?Currency $currency)
+ {
+ $this->currency = $currency;
+ return $this;
+ }
+}
diff --git a/src/Models/CompanyAdministrativeActionUpdateKind.php b/src/Models/CompanyAdministrativeActionUpdateKind.php
new file mode 100644
index 00000000..b576d322
--- /dev/null
+++ b/src/Models/CompanyAdministrativeActionUpdateKind.php
@@ -0,0 +1,15 @@
+key = $key;
+ $result->filterOutIfKeyIsNotFound = $filterOutIfKeyIsNotFound;
+ $result->language = $language;
+ $result->currency = $currency;
+ $result->mustMatchAllConditions = true;
+ return $result;
+ }
+ public static function hydrate(array $arr) : CompanyDataFilter
+ {
+ $result = DataFilter::hydrateBase(new CompanyDataFilter(), $arr);
+ return $result;
+ }
+ function setKey(string $key)
+ {
+ $this->key = $key;
+ return $this;
+ }
+ function setFilterOutIfKeyIsNotFound(bool $filterOutIfKeyIsNotFound)
+ {
+ $this->filterOutIfKeyIsNotFound = $filterOutIfKeyIsNotFound;
+ return $this;
+ }
+ function setMustMatchAllConditions(bool $mustMatchAllConditions)
+ {
+ $this->mustMatchAllConditions = $mustMatchAllConditions;
+ return $this;
+ }
+ function setConditions(?ValueConditionCollection $conditions)
+ {
+ $this->conditions = $conditions;
+ return $this;
+ }
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
+ function setCurrency(?Currency $currency)
+ {
+ $this->currency = $currency;
+ return $this;
+ }
+ function setObjectPath(string ... $objectPath)
+ {
+ $this->objectPath = $objectPath;
+ return $this;
+ }
+ /** @param ?string[] $objectPath new value. */
+ function setObjectPathFromArray(array $objectPath)
+ {
+ $this->objectPath = $objectPath;
+ return $this;
+ }
+ function addToObjectPath(string $objectPath)
+ {
+ if (!isset($this->objectPath))
+ {
+ $this->objectPath = array();
+ }
+ array_push($this->objectPath, $objectPath);
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/CompanyIdFilter.php b/src/Models/CompanyIdFilter.php
new file mode 100644
index 00000000..12755e55
--- /dev/null
+++ b/src/Models/CompanyIdFilter.php
@@ -0,0 +1,60 @@
+negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : CompanyIdFilter
+ {
+ $result = Filter::hydrateBase(new CompanyIdFilter(), $arr);
+ if (array_key_exists("companyIds", $arr))
+ {
+ $result->companyIds = array();
+ foreach($arr["companyIds"] as &$value)
+ {
+ array_push($result->companyIds, $value);
+ }
+ }
+ return $result;
+ }
+ function setCompanyIds(string ... $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ /** @param string[] $companyIds new value. */
+ function setCompanyIdsFromArray(array $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ function addToCompanyIds(string $companyIds)
+ {
+ if (!isset($this->companyIds))
+ {
+ $this->companyIds = array();
+ }
+ array_push($this->companyIds, $companyIds);
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/CompanyUpdate.php b/src/Models/CompanyUpdate.php
new file mode 100644
index 00000000..aae0e0ad
--- /dev/null
+++ b/src/Models/CompanyUpdate.php
@@ -0,0 +1,83 @@
+company = $company;
+ $result->replaceExistingParents = $replaceExistingParents;
+ $result->parents = $parents;
+ $result->kind = $kind;
+ return $result;
+ }
+ public static function hydrate(array $arr) : CompanyUpdate
+ {
+ $result = Trackable::hydrateBase(new CompanyUpdate(), $arr);
+ if (array_key_exists("company", $arr))
+ {
+ $result->company = Company::hydrate($arr["company"]);
+ }
+ if (array_key_exists("kind", $arr))
+ {
+ $result->kind = CompanyUpdateUpdateKind::from($arr["kind"]);
+ }
+ if (array_key_exists("parents", $arr))
+ {
+ $result->parents = array();
+ foreach($arr["parents"] as &$value)
+ {
+ array_push($result->parents, Company::hydrate($value));
+ }
+ }
+ if (array_key_exists("replaceExistingParents", $arr))
+ {
+ $result->replaceExistingParents = $arr["replaceExistingParents"];
+ }
+ return $result;
+ }
+ function setCompany(Company $company)
+ {
+ $this->company = $company;
+ return $this;
+ }
+ function setKind(CompanyUpdateUpdateKind $kind)
+ {
+ $this->kind = $kind;
+ return $this;
+ }
+ function setParents(Company ... $parents)
+ {
+ $this->parents = $parents;
+ return $this;
+ }
+ /** @param ?Company[] $parents new value. */
+ function setParentsFromArray(array $parents)
+ {
+ $this->parents = $parents;
+ return $this;
+ }
+ function addToParents(Company $parents)
+ {
+ if (!isset($this->parents))
+ {
+ $this->parents = array();
+ }
+ array_push($this->parents, $parents);
+ return $this;
+ }
+ function setReplaceExistingParents(bool $replaceExistingParents)
+ {
+ $this->replaceExistingParents = $replaceExistingParents;
+ return $this;
+ }
+}
diff --git a/src/Models/CompanyUpdateUpdateKind.php b/src/Models/CompanyUpdateUpdateKind.php
new file mode 100644
index 00000000..90daca34
--- /dev/null
+++ b/src/Models/CompanyUpdateUpdateKind.php
@@ -0,0 +1,15 @@
+selectedContentCategoryProperties = SelectedContentCategoryPropertiesSettings::hydrate($arr["selectedContentCategoryProperties"]);
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(int $numberOfRecommendations)
@@ -67,4 +72,9 @@ function setSelectedContentCategoryProperties(SelectedContentCategoryPropertiesS
$this->selectedContentCategoryProperties = $selectedContentCategoryProperties;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/ContentCategoryResultDetailsCategoryResultDetails.php b/src/Models/ContentCategoryResultDetailsCategoryResultDetails.php
index e5cb58f9..458f466a 100644
--- a/src/Models/ContentCategoryResultDetailsCategoryResultDetails.php
+++ b/src/Models/ContentCategoryResultDetailsCategoryResultDetails.php
@@ -6,7 +6,7 @@
abstract class ContentCategoryResultDetailsCategoryResultDetails
{
- public string $typeDefinition = "Relewise.Client.DataTypes.CategoryResultDetails`1[[Relewise.Client.DataTypes.ContentCategoryResultDetails, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.CategoryResultDetails`1[[Relewise.Client.DataTypes.ContentCategoryResultDetails, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public string $categoryId;
public Multilingual $displayName;
public array $assortments;
diff --git a/src/Models/ContentRecommendationRequestSettings.php b/src/Models/ContentRecommendationRequestSettings.php
index b47cb6d4..6d2be5fb 100644
--- a/src/Models/ContentRecommendationRequestSettings.php
+++ b/src/Models/ContentRecommendationRequestSettings.php
@@ -12,6 +12,7 @@ class ContentRecommendationRequestSettings
public bool $allowReplacingOfRecentlyShownRecommendations;
public ?SelectedContentPropertiesSettings $selectedContentProperties;
public bool $prioritizeDiversityBetweenRequests;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : ContentRecommendationRequestSettings
{
$result = new ContentRecommendationRequestSettings();
@@ -40,6 +41,10 @@ public static function hydrate(array $arr) : ContentRecommendationRequestSetting
{
$result->prioritizeDiversityBetweenRequests = $arr["prioritizeDiversityBetweenRequests"];
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(int $numberOfRecommendations)
@@ -67,4 +72,9 @@ function setPrioritizeDiversityBetweenRequests(bool $prioritizeDiversityBetweenR
$this->prioritizeDiversityBetweenRequests = $prioritizeDiversityBetweenRequests;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/ContentSortingSorting.php b/src/Models/ContentSortingSorting.php
index 746aa747..673fee14 100644
--- a/src/Models/ContentSortingSorting.php
+++ b/src/Models/ContentSortingSorting.php
@@ -6,7 +6,7 @@
abstract class ContentSortingSorting
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.Content.ContentSorting, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.Content.ContentSorting, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SortOrder $order;
public ContentSorting $thenBy;
public static function hydrate(array $arr)
diff --git a/src/Models/DataFilter.php b/src/Models/DataFilter.php
index 3ea6f781..7e5f4aba 100644
--- a/src/Models/DataFilter.php
+++ b/src/Models/DataFilter.php
@@ -21,6 +21,10 @@ public static function hydrate(array $arr)
{
return BrandDataFilter::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client")
+ {
+ return CompanyDataFilter::hydrate($arr);
+ }
if ($type=="Relewise.Client.Requests.Filters.ContentCategoryDataFilter, Relewise.Client")
{
return ContentCategoryDataFilter::hydrate($arr);
diff --git a/src/Models/DataObjectValueSelector.php b/src/Models/DataObjectValueSelector.php
index 227c7486..5808130b 100644
--- a/src/Models/DataObjectValueSelector.php
+++ b/src/Models/DataObjectValueSelector.php
@@ -11,12 +11,13 @@ class DataObjectValueSelector
public ?DataObjectFilter $filter;
public ?DataObjectValueSelector $childSelector;
public ?DataObjectValueSelector $fallbackSelector;
- public static function create(string $key, ?DataObjectFilter $filter, ?DataObjectValueSelector $childSelector) : DataObjectValueSelector
+ public static function create(string $key, ?DataObjectFilter $filter, ?DataObjectValueSelector $childSelector, ?DataObjectValueSelector $fallbackSelector) : DataObjectValueSelector
{
$result = new DataObjectValueSelector();
$result->key = $key;
$result->filter = $filter;
$result->childSelector = $childSelector;
+ $result->fallbackSelector = $fallbackSelector;
return $result;
}
public static function hydrate(array $arr) : DataObjectValueSelector
diff --git a/src/Models/DecompoundRuleSaveSearchRulesRequest.php b/src/Models/DecompoundRuleSaveSearchRulesRequest.php
index 58ba53f6..0913cf59 100644
--- a/src/Models/DecompoundRuleSaveSearchRulesRequest.php
+++ b/src/Models/DecompoundRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class DecompoundRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/DecompoundRuleSaveSearchRulesResponse.php b/src/Models/DecompoundRuleSaveSearchRulesResponse.php
index 4b6330c9..d5aeb8e7 100644
--- a/src/Models/DecompoundRuleSaveSearchRulesResponse.php
+++ b/src/Models/DecompoundRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class DecompoundRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/DecompoundRuleSearchRulesResponse.php b/src/Models/DecompoundRuleSearchRulesResponse.php
index f6f92345..4cc8b97b 100644
--- a/src/Models/DecompoundRuleSearchRulesResponse.php
+++ b/src/Models/DecompoundRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class DecompoundRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/DecompoundRulesRequestSortBySearchRulesRequest.php b/src/Models/DecompoundRulesRequestSortBySearchRulesRequest.php
index f30f426b..1f76b04e 100644
--- a/src/Models/DecompoundRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/DecompoundRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class DecompoundRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public DecompoundRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/DecompoundRulesRequestSortBySorting.php b/src/Models/DecompoundRulesRequestSortBySorting.php
index d4058682..31cb9aa1 100644
--- a/src/Models/DecompoundRulesRequestSortBySorting.php
+++ b/src/Models/DecompoundRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class DecompoundRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public DecompoundRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(DecompoundRulesRequestSortBy $sortBy, SortOrder $sortOrder) : DecompoundRulesRequestSortBySorting
diff --git a/src/Models/EntityPropertyChangedTriggerConfiguration.php b/src/Models/EntityPropertyChangedTriggerConfiguration.php
new file mode 100644
index 00000000..d46eb6db
--- /dev/null
+++ b/src/Models/EntityPropertyChangedTriggerConfiguration.php
@@ -0,0 +1,157 @@
+name = $name;
+ $result->description = $description;
+ $result->entityType = $entityType;
+ $result->entityPropertySelector = $entityPropertySelector;
+ $result->beforeChangeFilter = $beforeChangeFilter;
+ $result->afterChangeFilter = $afterChangeFilter;
+ $result->changeType = $changeType;
+ return $result;
+ }
+ public static function hydrate(array $arr) : EntityPropertyChangedTriggerConfiguration
+ {
+ $result = EntityPropertyChangedTriggerResultTriggerConfiguration::hydrateBase(new EntityPropertyChangedTriggerConfiguration(), $arr);
+ if (array_key_exists("entityType", $arr))
+ {
+ $result->entityType = EntityType::from($arr["entityType"]);
+ }
+ if (array_key_exists("entityPropertySelector", $arr))
+ {
+ $result->entityPropertySelector = IEntityPropertySelector::hydrate($arr["entityPropertySelector"]);
+ }
+ if (array_key_exists("beforeChangeFilter", $arr))
+ {
+ $result->beforeChangeFilter = Filter::hydrate($arr["beforeChangeFilter"]);
+ }
+ if (array_key_exists("afterChangeFilter", $arr))
+ {
+ $result->afterChangeFilter = Filter::hydrate($arr["afterChangeFilter"]);
+ }
+ if (array_key_exists("changeType", $arr))
+ {
+ $result->changeType = ChangeType::from($arr["changeType"]);
+ }
+ return $result;
+ }
+ /** The type of entity that the trigger should look for changes in. */
+ function setEntityType(EntityType $entityType)
+ {
+ $this->entityType = $entityType;
+ return $this;
+ }
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ function setEntityPropertySelector(IEntityPropertySelector $entityPropertySelector)
+ {
+ $this->entityPropertySelector = $entityPropertySelector;
+ return $this;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ function setBeforeChangeFilter(Filter $beforeChangeFilter)
+ {
+ $this->beforeChangeFilter = $beforeChangeFilter;
+ return $this;
+ }
+ /** The filter for what state the tracked products should have once they have changed to be included in the results. */
+ function setAfterChangeFilter(Filter $afterChangeFilter)
+ {
+ $this->afterChangeFilter = $afterChangeFilter;
+ return $this;
+ }
+ /** The type of change that should happen to the value selected by the EntityPropertySelector for an entity to be considered part of the results. */
+ function setChangeType(ChangeType $changeType)
+ {
+ $this->changeType = $changeType;
+ return $this;
+ }
+ function setId(string $id)
+ {
+ $this->id = $id;
+ return $this;
+ }
+ function setName(string $name)
+ {
+ $this->name = $name;
+ return $this;
+ }
+ function setDescription(string $description)
+ {
+ $this->description = $description;
+ return $this;
+ }
+ function setGroup(string $group)
+ {
+ $this->group = $group;
+ return $this;
+ }
+ function setEnabled(bool $enabled)
+ {
+ $this->enabled = $enabled;
+ return $this;
+ }
+ function setCreated(DateTime $created)
+ {
+ $this->created = $created;
+ return $this;
+ }
+ function setCreatedBy(string $createdBy)
+ {
+ $this->createdBy = $createdBy;
+ return $this;
+ }
+ function setModified(DateTime $modified)
+ {
+ $this->modified = $modified;
+ return $this;
+ }
+ function setModifiedBy(string $modifiedBy)
+ {
+ $this->modifiedBy = $modifiedBy;
+ return $this;
+ }
+ function setWithinTimeSpanMinutes(int $withinTimeSpanMinutes)
+ {
+ $this->withinTimeSpanMinutes = $withinTimeSpanMinutes;
+ return $this;
+ }
+ function addToSettings(string $key, string $value)
+ {
+ if (!isset($this->settings))
+ {
+ $this->settings = array();
+ }
+ $this->settings[$key] = $value;
+ return $this;
+ }
+ /** @param array $settings associative array. */
+ function setSettingsFromAssociativeArray(array $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+ function setUserConditions(UserConditionCollection $userConditions)
+ {
+ $this->userConditions = $userConditions;
+ return $this;
+ }
+}
diff --git a/src/Models/EntityPropertyChangedTriggerResult.php b/src/Models/EntityPropertyChangedTriggerResult.php
new file mode 100644
index 00000000..4875240c
--- /dev/null
+++ b/src/Models/EntityPropertyChangedTriggerResult.php
@@ -0,0 +1,32 @@
+user = UserResultDetails::hydrate($arr["user"]);
+ }
+ return $result;
+ }
+ function setUser(UserResultDetails $user)
+ {
+ $this->user = $user;
+ return $this;
+ }
+}
diff --git a/src/Models/EntityPropertyChangedTriggerResultTriggerConfiguration.php b/src/Models/EntityPropertyChangedTriggerResultTriggerConfiguration.php
new file mode 100644
index 00000000..adbf8ed0
--- /dev/null
+++ b/src/Models/EntityPropertyChangedTriggerResultTriggerConfiguration.php
@@ -0,0 +1,93 @@
+id = $id;
+ return $this;
+ }
+ function setName(string $name)
+ {
+ $this->name = $name;
+ return $this;
+ }
+ function setDescription(string $description)
+ {
+ $this->description = $description;
+ return $this;
+ }
+ function setGroup(string $group)
+ {
+ $this->group = $group;
+ return $this;
+ }
+ function setEnabled(bool $enabled)
+ {
+ $this->enabled = $enabled;
+ return $this;
+ }
+ function setCreated(DateTime $created)
+ {
+ $this->created = $created;
+ return $this;
+ }
+ function setCreatedBy(string $createdBy)
+ {
+ $this->createdBy = $createdBy;
+ return $this;
+ }
+ function setModified(DateTime $modified)
+ {
+ $this->modified = $modified;
+ return $this;
+ }
+ function setModifiedBy(string $modifiedBy)
+ {
+ $this->modifiedBy = $modifiedBy;
+ return $this;
+ }
+ function setWithinTimeSpanMinutes(int $withinTimeSpanMinutes)
+ {
+ $this->withinTimeSpanMinutes = $withinTimeSpanMinutes;
+ return $this;
+ }
+ function addToSettings(string $key, string $value)
+ {
+ if (!isset($this->settings))
+ {
+ $this->settings = array();
+ }
+ $this->settings[$key] = $value;
+ return $this;
+ }
+ /** @param array $settings associative array. */
+ function setSettingsFromAssociativeArray(array $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+ function setUserConditions(UserConditionCollection $userConditions)
+ {
+ $this->userConditions = $userConditions;
+ return $this;
+ }
+}
diff --git a/src/Models/FieldIndexConfiguration.php b/src/Models/FieldIndexConfiguration.php
index eace0b20..da42ccf8 100644
--- a/src/Models/FieldIndexConfiguration.php
+++ b/src/Models/FieldIndexConfiguration.php
@@ -11,13 +11,15 @@ class FieldIndexConfiguration
public int $weight;
public PredictionSourceType $predictionSourceType;
public ?Parser $parser;
- public static function create(bool $included, int $weight, PredictionSourceType $predictionSourceType, Parser $parser) : FieldIndexConfiguration
+ public ?MatchTypeSettings $matchTypeSettings;
+ public static function create(bool $included, int $weight, PredictionSourceType $predictionSourceType, Parser $parser, ?MatchTypeSettings $matchTypeSettings = Null) : FieldIndexConfiguration
{
$result = new FieldIndexConfiguration();
$result->included = $included;
$result->weight = $weight;
$result->predictionSourceType = $predictionSourceType;
$result->parser = $parser;
+ $result->matchTypeSettings = $matchTypeSettings;
return $result;
}
public static function hydrate(array $arr) : FieldIndexConfiguration
@@ -39,6 +41,10 @@ public static function hydrate(array $arr) : FieldIndexConfiguration
{
$result->parser = Parser::hydrate($arr["parser"]);
}
+ if (array_key_exists("matchTypeSettings", $arr))
+ {
+ $result->matchTypeSettings = MatchTypeSettings::hydrate($arr["matchTypeSettings"]);
+ }
return $result;
}
function setIncluded(bool $included)
@@ -61,4 +67,9 @@ function setParser(?Parser $parser)
$this->parser = $parser;
return $this;
}
+ function setMatchTypeSettings(?MatchTypeSettings $matchTypeSettings)
+ {
+ $this->matchTypeSettings = $matchTypeSettings;
+ return $this;
+ }
}
diff --git a/src/Models/Filter.php b/src/Models/Filter.php
index 22b19626..24f7a820 100644
--- a/src/Models/Filter.php
+++ b/src/Models/Filter.php
@@ -4,9 +4,11 @@
use DateTime;
+/** a Filter that can be used to define which entities to include in queries. */
abstract class Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.Filter, Relewise.Client";
+ /** Defines whether the Filter should be exclude the matching entities instead og including the matching entities. */
public bool $negated;
public ?FilterSettings $settings;
public static function hydrate(array $arr)
@@ -32,6 +34,14 @@ public static function hydrate(array $arr)
{
return CartDataFilter::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client")
+ {
+ return CompanyDataFilter::hydrate($arr);
+ }
+ if ($type=="Relewise.Client.Requests.Filters.CompanyIdFilter, Relewise.Client")
+ {
+ return CompanyIdFilter::hydrate($arr);
+ }
if ($type=="Relewise.Client.Requests.Filters.ContentAssortmentFilter, Relewise.Client")
{
return ContentAssortmentFilter::hydrate($arr);
@@ -140,10 +150,26 @@ public static function hydrate(array $arr)
{
return ProductListPriceFilter::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByCompanyFilter, Relewise.Client")
+ {
+ return ProductRecentlyPurchasedByCompanyFilter::hydrate($arr);
+ }
+ if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserCompanyFilter, Relewise.Client")
+ {
+ return ProductRecentlyPurchasedByUserCompanyFilter::hydrate($arr);
+ }
if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserFilter, Relewise.Client")
{
return ProductRecentlyPurchasedByUserFilter::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyViewedByCompanyFilter, Relewise.Client")
+ {
+ return ProductRecentlyViewedByCompanyFilter::hydrate($arr);
+ }
+ if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserCompanyFilter, Relewise.Client")
+ {
+ return ProductRecentlyViewedByUserCompanyFilter::hydrate($arr);
+ }
if ($type=="Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserFilter, Relewise.Client")
{
return ProductRecentlyViewedByUserFilter::hydrate($arr);
@@ -189,6 +215,7 @@ public static function hydrateBase(mixed $result, array $arr)
}
return $result;
}
+ /** Defines whether the Filter should be exclude the matching entities instead og including the matching entities. */
function setNegated(bool $negated)
{
$this->negated = $negated;
diff --git a/src/Models/IEntityPropertySelector.php b/src/Models/IEntityPropertySelector.php
new file mode 100644
index 00000000..de179000
--- /dev/null
+++ b/src/Models/IEntityPropertySelector.php
@@ -0,0 +1,26 @@
+lineTotal = $arr["lineTotal"];
}
+ if (array_key_exists("data", $arr))
+ {
+ $result->data = array();
+ foreach($arr["data"] as $key => $value)
+ {
+ $result->data[$key] = DataValue::hydrate($value);
+ }
+ }
return $result;
}
function setProduct(Product $product)
@@ -61,4 +70,19 @@ function setLineTotal(float $lineTotal)
$this->lineTotal = $lineTotal;
return $this;
}
+ function addToData(string $key, DataValue $value)
+ {
+ if (!isset($this->data))
+ {
+ $this->data = array();
+ }
+ $this->data[$key] = $value;
+ return $this;
+ }
+ /** @param ?array $data associative array. */
+ function setDataFromAssociativeArray(array $data)
+ {
+ $this->data = $data;
+ return $this;
+ }
}
diff --git a/src/Models/MatchTypeSettings.php b/src/Models/MatchTypeSettings.php
new file mode 100644
index 00000000..ff878e6e
--- /dev/null
+++ b/src/Models/MatchTypeSettings.php
@@ -0,0 +1,70 @@
+compound = $arr["compound"];
+ }
+ if (array_key_exists("exact", $arr))
+ {
+ $result->exact = $arr["exact"];
+ }
+ if (array_key_exists("startsWith", $arr))
+ {
+ $result->startsWith = $arr["startsWith"];
+ }
+ if (array_key_exists("endsWith", $arr))
+ {
+ $result->endsWith = $arr["endsWith"];
+ }
+ if (array_key_exists("fuzzy", $arr))
+ {
+ $result->fuzzy = $arr["fuzzy"];
+ }
+ return $result;
+ }
+ function setCompound(bool $compound)
+ {
+ $this->compound = $compound;
+ return $this;
+ }
+ function setExact(bool $exact)
+ {
+ $this->exact = $exact;
+ return $this;
+ }
+ function setStartsWith(bool $startsWith)
+ {
+ $this->startsWith = $startsWith;
+ return $this;
+ }
+ function setEndsWith(bool $endsWith)
+ {
+ $this->endsWith = $endsWith;
+ return $this;
+ }
+ function setFuzzy(bool $fuzzy)
+ {
+ $this->fuzzy = $fuzzy;
+ return $this;
+ }
+}
diff --git a/src/Models/ObservableProductAttribute.php b/src/Models/ObservableProductAttribute.php
new file mode 100644
index 00000000..dc2edd63
--- /dev/null
+++ b/src/Models/ObservableProductAttribute.php
@@ -0,0 +1,11 @@
+attribute = $attribute;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ObservableProductAttributeSelector
+ {
+ $result = new ObservableProductAttributeSelector();
+ if (array_key_exists("attribute", $arr))
+ {
+ $result->attribute = ObservableProductAttribute::from($arr["attribute"]);
+ }
+ return $result;
+ }
+ function setAttribute(ObservableProductAttribute $attribute)
+ {
+ $this->attribute = $attribute;
+ return $this;
+ }
+}
diff --git a/src/Models/ObservableProductDataValueSelector.php b/src/Models/ObservableProductDataValueSelector.php
new file mode 100644
index 00000000..37707a5d
--- /dev/null
+++ b/src/Models/ObservableProductDataValueSelector.php
@@ -0,0 +1,31 @@
+dataObjectValueSelector = $dataObjectValueSelector;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ObservableProductDataValueSelector
+ {
+ $result = new ObservableProductDataValueSelector();
+ if (array_key_exists("dataObjectValueSelector", $arr))
+ {
+ $result->dataObjectValueSelector = DataObjectValueSelector::hydrate($arr["dataObjectValueSelector"]);
+ }
+ return $result;
+ }
+ function setDataObjectValueSelector(DataObjectValueSelector $dataObjectValueSelector)
+ {
+ $this->dataObjectValueSelector = $dataObjectValueSelector;
+ return $this;
+ }
+}
diff --git a/src/Models/Order.php b/src/Models/Order.php
index 361f0e2c..7c33c40a 100644
--- a/src/Models/Order.php
+++ b/src/Models/Order.php
@@ -12,6 +12,7 @@ class Order extends Trackable
public array $lineItems;
public string $orderNumber;
public string $cartName;
+ public ?array $data;
public static function create(User $user, Money $subtotal, string $orderNumber, array $lineItems, string $cartName = "default") : Order
{
$result = new Order();
@@ -49,6 +50,14 @@ public static function hydrate(array $arr) : Order
{
$result->cartName = $arr["cartName"];
}
+ if (array_key_exists("data", $arr))
+ {
+ $result->data = array();
+ foreach($arr["data"] as $key => $value)
+ {
+ $result->data[$key] = DataValue::hydrate($value);
+ }
+ }
return $result;
}
function setUser(?User $user)
@@ -91,4 +100,19 @@ function setCartName(string $cartName)
$this->cartName = $cartName;
return $this;
}
+ function addToData(string $key, DataValue $value)
+ {
+ if (!isset($this->data))
+ {
+ $this->data = array();
+ }
+ $this->data[$key] = $value;
+ return $this;
+ }
+ /** @param ?array $data associative array. */
+ function setDataFromAssociativeArray(array $data)
+ {
+ $this->data = $data;
+ return $this;
+ }
}
diff --git a/src/Models/OverriddenContentRecommendationRequestSettings.php b/src/Models/OverriddenContentRecommendationRequestSettings.php
index 2e2e7602..8cbf2de9 100644
--- a/src/Models/OverriddenContentRecommendationRequestSettings.php
+++ b/src/Models/OverriddenContentRecommendationRequestSettings.php
@@ -12,6 +12,7 @@ class OverriddenContentRecommendationRequestSettings
public ?bool $allowReplacingOfRecentlyShownRecommendations;
public OverriddenSelectedContentPropertiesSettings $selectedContentProperties;
public ?bool $prioritizeDiversityBetweenRequests;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : OverriddenContentRecommendationRequestSettings
{
$result = new OverriddenContentRecommendationRequestSettings();
@@ -40,6 +41,10 @@ public static function hydrate(array $arr) : OverriddenContentRecommendationRequ
{
$result->prioritizeDiversityBetweenRequests = $arr["prioritizeDiversityBetweenRequests"];
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(?int $numberOfRecommendations)
@@ -67,4 +72,9 @@ function setPrioritizeDiversityBetweenRequests(?bool $prioritizeDiversityBetween
$this->prioritizeDiversityBetweenRequests = $prioritizeDiversityBetweenRequests;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/OverriddenProductRecommendationRequestSettings.php b/src/Models/OverriddenProductRecommendationRequestSettings.php
index 2d11d92c..63366ae3 100644
--- a/src/Models/OverriddenProductRecommendationRequestSettings.php
+++ b/src/Models/OverriddenProductRecommendationRequestSettings.php
@@ -16,6 +16,7 @@ class OverriddenProductRecommendationRequestSettings
public ?bool $prioritizeDiversityBetweenRequests;
public ?bool $allowProductsCurrentlyInCart;
public OverriddenSelectedBrandPropertiesSettings $selectedBrandProperties;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : OverriddenProductRecommendationRequestSettings
{
$result = new OverriddenProductRecommendationRequestSettings();
@@ -60,6 +61,10 @@ public static function hydrate(array $arr) : OverriddenProductRecommendationRequ
{
$result->selectedBrandProperties = OverriddenSelectedBrandPropertiesSettings::hydrate($arr["selectedBrandProperties"]);
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(?int $numberOfRecommendations)
@@ -107,4 +112,9 @@ function setSelectedBrandProperties(OverriddenSelectedBrandPropertiesSettings $s
$this->selectedBrandProperties = $selectedBrandProperties;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/PredictionRuleSaveSearchRulesRequest.php b/src/Models/PredictionRuleSaveSearchRulesRequest.php
index 68a77963..226004e2 100644
--- a/src/Models/PredictionRuleSaveSearchRulesRequest.php
+++ b/src/Models/PredictionRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class PredictionRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/PredictionRuleSaveSearchRulesResponse.php b/src/Models/PredictionRuleSaveSearchRulesResponse.php
index ece80688..8199c4e2 100644
--- a/src/Models/PredictionRuleSaveSearchRulesResponse.php
+++ b/src/Models/PredictionRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class PredictionRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/PredictionRuleSearchRulesResponse.php b/src/Models/PredictionRuleSearchRulesResponse.php
index 0ff255f8..c04f66ff 100644
--- a/src/Models/PredictionRuleSearchRulesResponse.php
+++ b/src/Models/PredictionRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class PredictionRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/PredictionRulesRequestSortBySearchRulesRequest.php b/src/Models/PredictionRulesRequestSortBySearchRulesRequest.php
index 9159cdcc..95e52d3d 100644
--- a/src/Models/PredictionRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/PredictionRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class PredictionRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.PredictionRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.PredictionRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public PredictionRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/PredictionRulesRequestSortBySorting.php b/src/Models/PredictionRulesRequestSortBySorting.php
index b00280e4..bf547c82 100644
--- a/src/Models/PredictionRulesRequestSortBySorting.php
+++ b/src/Models/PredictionRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class PredictionRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.PredictionRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.PredictionRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public PredictionRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(PredictionRulesRequestSortBy $sortBy, SortOrder $sortOrder) : PredictionRulesRequestSortBySorting
diff --git a/src/Models/ProductAndVariantIdAbandonedSearch.php b/src/Models/ProductAndVariantIdAbandonedSearch.php
index ce7bc7da..eae3c3b3 100644
--- a/src/Models/ProductAndVariantIdAbandonedSearch.php
+++ b/src/Models/ProductAndVariantIdAbandonedSearch.php
@@ -6,7 +6,7 @@
abstract class ProductAndVariantIdAbandonedSearch extends AbandonedSearch
{
- public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedSearch`1[[Relewise.Client.DataTypes.ProductAndVariantId, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedSearch`1[[Relewise.Client.DataTypes.ProductAndVariantId, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $topResults;
public static function hydrate(array $arr)
{
@@ -59,4 +59,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/ProductCategoryIdFilterCategoryQuery.php b/src/Models/ProductCategoryIdFilterCategoryQuery.php
index 4f12929f..18e6b1ae 100644
--- a/src/Models/ProductCategoryIdFilterCategoryQuery.php
+++ b/src/Models/ProductCategoryIdFilterCategoryQuery.php
@@ -6,7 +6,7 @@
abstract class ProductCategoryIdFilterCategoryQuery extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Queries.CategoryQuery`1[[Relewise.Client.Requests.Filters.ProductCategoryIdFilter, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Queries.CategoryQuery`1[[Relewise.Client.Requests.Filters.ProductCategoryIdFilter, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public FilterCollection $filters;
public int $numberOfResults;
public ?Language $language;
diff --git a/src/Models/ProductCategoryInterestTriggerResultTriggerConfiguration.php b/src/Models/ProductCategoryInterestTriggerResultTriggerConfiguration.php
index 5b044e62..1920b934 100644
--- a/src/Models/ProductCategoryInterestTriggerResultTriggerConfiguration.php
+++ b/src/Models/ProductCategoryInterestTriggerResultTriggerConfiguration.php
@@ -6,7 +6,7 @@
abstract class ProductCategoryInterestTriggerResultTriggerConfiguration extends TriggerConfiguration
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.ProductCategoryInterestTriggerResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.ProductCategoryInterestTriggerResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
diff --git a/src/Models/ProductCategoryRecommendationRequestSettings.php b/src/Models/ProductCategoryRecommendationRequestSettings.php
index 217a92fc..d20445b7 100644
--- a/src/Models/ProductCategoryRecommendationRequestSettings.php
+++ b/src/Models/ProductCategoryRecommendationRequestSettings.php
@@ -12,6 +12,7 @@ class ProductCategoryRecommendationRequestSettings
public bool $allowReplacingOfRecentlyShownRecommendations;
public bool $prioritizeDiversityBetweenRequests;
public SelectedProductCategoryPropertiesSettings $selectedProductCategoryProperties;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : ProductCategoryRecommendationRequestSettings
{
$result = new ProductCategoryRecommendationRequestSettings();
@@ -40,6 +41,10 @@ public static function hydrate(array $arr) : ProductCategoryRecommendationReques
{
$result->selectedProductCategoryProperties = SelectedProductCategoryPropertiesSettings::hydrate($arr["selectedProductCategoryProperties"]);
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(int $numberOfRecommendations)
@@ -67,4 +72,9 @@ function setSelectedProductCategoryProperties(SelectedProductCategoryPropertiesS
$this->selectedProductCategoryProperties = $selectedProductCategoryProperties;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/ProductCategoryResultDetailsCategoryResultDetails.php b/src/Models/ProductCategoryResultDetailsCategoryResultDetails.php
index 247b69bc..80b71802 100644
--- a/src/Models/ProductCategoryResultDetailsCategoryResultDetails.php
+++ b/src/Models/ProductCategoryResultDetailsCategoryResultDetails.php
@@ -6,7 +6,7 @@
abstract class ProductCategoryResultDetailsCategoryResultDetails
{
- public string $typeDefinition = "Relewise.Client.DataTypes.CategoryResultDetails`1[[Relewise.Client.DataTypes.ProductCategoryResultDetails, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.CategoryResultDetails`1[[Relewise.Client.DataTypes.ProductCategoryResultDetails, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public string $categoryId;
public Multilingual $displayName;
public array $assortments;
diff --git a/src/Models/ProductCategorySortingSorting.php b/src/Models/ProductCategorySortingSorting.php
index d343aa93..342d81cc 100644
--- a/src/Models/ProductCategorySortingSorting.php
+++ b/src/Models/ProductCategorySortingSorting.php
@@ -6,7 +6,7 @@
abstract class ProductCategorySortingSorting
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.ProductCategory.ProductCategorySorting, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.ProductCategory.ProductCategorySorting, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SortOrder $order;
public ProductCategorySorting $thenBy;
public static function hydrate(array $arr)
diff --git a/src/Models/ProductInterestTriggerResultTriggerConfiguration.php b/src/Models/ProductInterestTriggerResultTriggerConfiguration.php
index d6c9b703..8500ff9a 100644
--- a/src/Models/ProductInterestTriggerResultTriggerConfiguration.php
+++ b/src/Models/ProductInterestTriggerResultTriggerConfiguration.php
@@ -6,7 +6,7 @@
abstract class ProductInterestTriggerResultTriggerConfiguration extends TriggerConfiguration
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.ProductInterestTriggerResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.ProductInterestTriggerResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
diff --git a/src/Models/ProductPropertyChangedTriggerResult.php b/src/Models/ProductPropertyChangedTriggerResult.php
new file mode 100644
index 00000000..6ca9e611
--- /dev/null
+++ b/src/Models/ProductPropertyChangedTriggerResult.php
@@ -0,0 +1,47 @@
+user = $user;
+ $result->entitiesWithChanges = $entitiesWithChanges;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ProductPropertyChangedTriggerResult
+ {
+ $result = stringEntityPropertyChangedTriggerResult::hydrateBase(new ProductPropertyChangedTriggerResult(), $arr);
+ return $result;
+ }
+ function setEntitiesWithChanges(string ... $entitiesWithChanges)
+ {
+ $this->entitiesWithChanges = $entitiesWithChanges;
+ return $this;
+ }
+ /** @param string[] $entitiesWithChanges new value. */
+ function setEntitiesWithChangesFromArray(array $entitiesWithChanges)
+ {
+ $this->entitiesWithChanges = $entitiesWithChanges;
+ return $this;
+ }
+ function addToEntitiesWithChanges(string $entitiesWithChanges)
+ {
+ if (!isset($this->entitiesWithChanges))
+ {
+ $this->entitiesWithChanges = array();
+ }
+ array_push($this->entitiesWithChanges, $entitiesWithChanges);
+ return $this;
+ }
+ function setUser(UserResultDetails $user)
+ {
+ $this->user = $user;
+ return $this;
+ }
+}
diff --git a/src/Models/ProductRecentlyPurchasedByCompanyFilter.php b/src/Models/ProductRecentlyPurchasedByCompanyFilter.php
new file mode 100644
index 00000000..15ba78f6
--- /dev/null
+++ b/src/Models/ProductRecentlyPurchasedByCompanyFilter.php
@@ -0,0 +1,80 @@
+sinceUtc = $sinceUtc;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ProductRecentlyPurchasedByCompanyFilter
+ {
+ $result = Filter::hydrateBase(new ProductRecentlyPurchasedByCompanyFilter(), $arr);
+ if (array_key_exists("sinceUtc", $arr))
+ {
+ $result->sinceUtc = new DateTime($arr["sinceUtc"]);
+ }
+ if (array_key_exists("companyIds", $arr))
+ {
+ $result->companyIds = array();
+ foreach($arr["companyIds"] as &$value)
+ {
+ array_push($result->companyIds, $value);
+ }
+ }
+ return $result;
+ }
+ /** The time from which a Product should have been bought by any of the companies to be included by the filter. */
+ function setSinceUtc(DateTime $sinceUtc)
+ {
+ $this->sinceUtc = $sinceUtc;
+ return $this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ function setCompanyIds(string ... $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ /**
+ * The companies that should be evaluated in this filter.
+ * @param string[] $companyIds new value.
+ */
+ function setCompanyIdsFromArray(array $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ function addToCompanyIds(string $companyIds)
+ {
+ if (!isset($this->companyIds))
+ {
+ $this->companyIds = array();
+ }
+ array_push($this->companyIds, $companyIds);
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/ProductRecentlyPurchasedByUserCompanyFilter.php b/src/Models/ProductRecentlyPurchasedByUserCompanyFilter.php
new file mode 100644
index 00000000..5eb10b3b
--- /dev/null
+++ b/src/Models/ProductRecentlyPurchasedByUserCompanyFilter.php
@@ -0,0 +1,45 @@
+sinceUtc = $sinceUtc;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ProductRecentlyPurchasedByUserCompanyFilter
+ {
+ $result = Filter::hydrateBase(new ProductRecentlyPurchasedByUserCompanyFilter(), $arr);
+ if (array_key_exists("sinceUtc", $arr))
+ {
+ $result->sinceUtc = new DateTime($arr["sinceUtc"]);
+ }
+ return $result;
+ }
+ /** The time from which a Product should have been bought by any of the companies to be included by the filter. */
+ function setSinceUtc(DateTime $sinceUtc)
+ {
+ $this->sinceUtc = $sinceUtc;
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/ProductRecentlyViewedByCompanyFilter.php b/src/Models/ProductRecentlyViewedByCompanyFilter.php
new file mode 100644
index 00000000..85179da7
--- /dev/null
+++ b/src/Models/ProductRecentlyViewedByCompanyFilter.php
@@ -0,0 +1,80 @@
+sinceUtc = $sinceUtc;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ProductRecentlyViewedByCompanyFilter
+ {
+ $result = Filter::hydrateBase(new ProductRecentlyViewedByCompanyFilter(), $arr);
+ if (array_key_exists("sinceUtc", $arr))
+ {
+ $result->sinceUtc = new DateTime($arr["sinceUtc"]);
+ }
+ if (array_key_exists("companyIds", $arr))
+ {
+ $result->companyIds = array();
+ foreach($arr["companyIds"] as &$value)
+ {
+ array_push($result->companyIds, $value);
+ }
+ }
+ return $result;
+ }
+ /** The time from which a Product should have been viewed by any of the companies to be included by the filter. */
+ function setSinceUtc(DateTime $sinceUtc)
+ {
+ $this->sinceUtc = $sinceUtc;
+ return $this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ function setCompanyIds(string ... $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ /**
+ * The companies that should be evaluated in this filter.
+ * @param string[] $companyIds new value.
+ */
+ function setCompanyIdsFromArray(array $companyIds)
+ {
+ $this->companyIds = $companyIds;
+ return $this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ function addToCompanyIds(string $companyIds)
+ {
+ if (!isset($this->companyIds))
+ {
+ $this->companyIds = array();
+ }
+ array_push($this->companyIds, $companyIds);
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/ProductRecentlyViewedByUserCompanyFilter.php b/src/Models/ProductRecentlyViewedByUserCompanyFilter.php
new file mode 100644
index 00000000..86fc4724
--- /dev/null
+++ b/src/Models/ProductRecentlyViewedByUserCompanyFilter.php
@@ -0,0 +1,45 @@
+sinceUtc = $sinceUtc;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : ProductRecentlyViewedByUserCompanyFilter
+ {
+ $result = Filter::hydrateBase(new ProductRecentlyViewedByUserCompanyFilter(), $arr);
+ if (array_key_exists("sinceUtc", $arr))
+ {
+ $result->sinceUtc = new DateTime($arr["sinceUtc"]);
+ }
+ return $result;
+ }
+ /** The time from which a Product should have been viewed by any of the companies to be included by the filter. */
+ function setSinceUtc(DateTime $sinceUtc)
+ {
+ $this->sinceUtc = $sinceUtc;
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setSettings(?FilterSettings $settings)
+ {
+ $this->settings = $settings;
+ return $this;
+ }
+}
diff --git a/src/Models/ProductRecommendationRequestSettings.php b/src/Models/ProductRecommendationRequestSettings.php
index 92240de3..174442bb 100644
--- a/src/Models/ProductRecommendationRequestSettings.php
+++ b/src/Models/ProductRecommendationRequestSettings.php
@@ -16,6 +16,7 @@ class ProductRecommendationRequestSettings
public bool $prioritizeDiversityBetweenRequests;
public ?bool $allowProductsCurrentlyInCart;
public ?SelectedBrandPropertiesSettings $selectedBrandProperties;
+ public ?int $prioritizeResultsNotRecommendedWithinSeconds;
public static function create() : ProductRecommendationRequestSettings
{
$result = new ProductRecommendationRequestSettings();
@@ -60,6 +61,10 @@ public static function hydrate(array $arr) : ProductRecommendationRequestSetting
{
$result->selectedBrandProperties = SelectedBrandPropertiesSettings::hydrate($arr["selectedBrandProperties"]);
}
+ if (array_key_exists("prioritizeResultsNotRecommendedWithinSeconds", $arr))
+ {
+ $result->prioritizeResultsNotRecommendedWithinSeconds = $arr["prioritizeResultsNotRecommendedWithinSeconds"];
+ }
return $result;
}
function setNumberOfRecommendations(int $numberOfRecommendations)
@@ -107,4 +112,9 @@ function setSelectedBrandProperties(?SelectedBrandPropertiesSettings $selectedBr
$this->selectedBrandProperties = $selectedBrandProperties;
return $this;
}
+ function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ $this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
+ return $this;
+ }
}
diff --git a/src/Models/ProductSortingSorting.php b/src/Models/ProductSortingSorting.php
index ff078cd6..84135cb1 100644
--- a/src/Models/ProductSortingSorting.php
+++ b/src/Models/ProductSortingSorting.php
@@ -6,7 +6,7 @@
abstract class ProductSortingSorting
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.Product.ProductSorting, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Sorting.Sorting`1[[Relewise.Client.DataTypes.Search.Sorting.Product.ProductSorting, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SortOrder $order;
public ProductSorting $thenBy;
public static function hydrate(array $arr)
diff --git a/src/Models/RedirectRuleSaveSearchRulesRequest.php b/src/Models/RedirectRuleSaveSearchRulesRequest.php
index 315879fa..61f6c8d5 100644
--- a/src/Models/RedirectRuleSaveSearchRulesRequest.php
+++ b/src/Models/RedirectRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class RedirectRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/RedirectRuleSaveSearchRulesResponse.php b/src/Models/RedirectRuleSaveSearchRulesResponse.php
index a9246297..9239a3fe 100644
--- a/src/Models/RedirectRuleSaveSearchRulesResponse.php
+++ b/src/Models/RedirectRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class RedirectRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/RedirectRuleSearchRulesResponse.php b/src/Models/RedirectRuleSearchRulesResponse.php
index 27501cce..ddba247c 100644
--- a/src/Models/RedirectRuleSearchRulesResponse.php
+++ b/src/Models/RedirectRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class RedirectRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/RedirectRulesRequestSortBySearchRulesRequest.php b/src/Models/RedirectRulesRequestSortBySearchRulesRequest.php
index 83aa3295..89b48188 100644
--- a/src/Models/RedirectRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/RedirectRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class RedirectRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.RedirectRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.RedirectRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public RedirectRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/RedirectRulesRequestSortBySorting.php b/src/Models/RedirectRulesRequestSortBySorting.php
index 43f7670c..75c6c9ed 100644
--- a/src/Models/RedirectRulesRequestSortBySorting.php
+++ b/src/Models/RedirectRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class RedirectRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.RedirectRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.RedirectRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public RedirectRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(RedirectRulesRequestSortBy $sortBy, SortOrder $sortOrder) : RedirectRulesRequestSortBySorting
diff --git a/src/Models/RelativeDateTimeCondition.php b/src/Models/RelativeDateTimeCondition.php
new file mode 100644
index 00000000..eadb4745
--- /dev/null
+++ b/src/Models/RelativeDateTimeCondition.php
@@ -0,0 +1,65 @@
+comparison = $comparison;
+ $result->unit = $unit;
+ $result->currentTimeOffset = $currentTimeOffset;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : RelativeDateTimeCondition
+ {
+ $result = ValueCondition::hydrateBase(new RelativeDateTimeCondition(), $arr);
+ if (array_key_exists("comparison", $arr))
+ {
+ $result->comparison = RelativeDateTimeConditionRelativeComparison::from($arr["comparison"]);
+ }
+ if (array_key_exists("unit", $arr))
+ {
+ $result->unit = RelativeDateTimeConditionTimeUnit::from($arr["unit"]);
+ }
+ if (array_key_exists("currentTimeOffset", $arr))
+ {
+ $result->currentTimeOffset = $arr["currentTimeOffset"];
+ }
+ return $result;
+ }
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ function setComparison(RelativeDateTimeConditionRelativeComparison $comparison)
+ {
+ $this->comparison = $comparison;
+ return $this;
+ }
+ /** Defines the time unit that the compared value is defined in. */
+ function setUnit(RelativeDateTimeConditionTimeUnit $unit)
+ {
+ $this->unit = $unit;
+ return $this;
+ }
+ /** Defines an offset that is added to the current time when making the specified Comparison. This is specified in the unit defined by the Unit property. */
+ function setCurrentTimeOffset(int $currentTimeOffset)
+ {
+ $this->currentTimeOffset = $currentTimeOffset;
+ return $this;
+ }
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+}
diff --git a/src/Models/RelativeDateTimeConditionRelativeComparison.php b/src/Models/RelativeDateTimeConditionRelativeComparison.php
new file mode 100644
index 00000000..d4b096e9
--- /dev/null
+++ b/src/Models/RelativeDateTimeConditionRelativeComparison.php
@@ -0,0 +1,11 @@
+currencies, Currency::hydrate($value));
}
}
+ if (array_key_exists("filters", $arr))
+ {
+ $result->filters = RequestFilterCriteria::hydrate($arr["filters"]);
+ }
return $result;
}
function setRecommendations(RecommendationTypeCollection $recommendations)
@@ -124,4 +129,9 @@ function addToCurrencies(Currency $currencies)
array_push($this->currencies, $currencies);
return $this;
}
+ function setFilters(RequestFilterCriteria $filters)
+ {
+ $this->filters = $filters;
+ return $this;
+ }
}
diff --git a/src/Models/RequestFilterCriteria.php b/src/Models/RequestFilterCriteria.php
new file mode 100644
index 00000000..4dc96e7d
--- /dev/null
+++ b/src/Models/RequestFilterCriteria.php
@@ -0,0 +1,50 @@
+includes = FilterCollection::hydrate($arr["includes"]);
+ }
+ if (array_key_exists("excludes", $arr))
+ {
+ $result->excludes = FilterCollection::hydrate($arr["excludes"]);
+ }
+ if (array_key_exists("count", $arr))
+ {
+ $result->count = intRange::hydrate($arr["count"]);
+ }
+ return $result;
+ }
+ function setIncludes(FilterCollection $includes)
+ {
+ $this->includes = $includes;
+ return $this;
+ }
+ function setExcludes(FilterCollection $excludes)
+ {
+ $this->excludes = $excludes;
+ return $this;
+ }
+ function setCount(?intRange $count)
+ {
+ $this->count = $count;
+ return $this;
+ }
+}
diff --git a/src/Models/SearchResultModifierRuleSaveSearchRulesRequest.php b/src/Models/SearchResultModifierRuleSaveSearchRulesRequest.php
index f032de65..e26350b3 100644
--- a/src/Models/SearchResultModifierRuleSaveSearchRulesRequest.php
+++ b/src/Models/SearchResultModifierRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class SearchResultModifierRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/SearchResultModifierRuleSaveSearchRulesResponse.php b/src/Models/SearchResultModifierRuleSaveSearchRulesResponse.php
index dfa69cdd..dac388b5 100644
--- a/src/Models/SearchResultModifierRuleSaveSearchRulesResponse.php
+++ b/src/Models/SearchResultModifierRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class SearchResultModifierRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/SearchResultModifierRuleSearchRulesResponse.php b/src/Models/SearchResultModifierRuleSearchRulesResponse.php
index 35e4e84c..cde5410f 100644
--- a/src/Models/SearchResultModifierRuleSearchRulesResponse.php
+++ b/src/Models/SearchResultModifierRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class SearchResultModifierRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/SearchResultModifierRulesRequestSortBySearchRulesRequest.php b/src/Models/SearchResultModifierRulesRequestSortBySearchRulesRequest.php
index 89d0c143..d8e16195 100644
--- a/src/Models/SearchResultModifierRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/SearchResultModifierRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class SearchResultModifierRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public SearchResultModifierRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/SearchResultModifierRulesRequestSortBySorting.php b/src/Models/SearchResultModifierRulesRequestSortBySorting.php
index 8bedcc09..15786294 100644
--- a/src/Models/SearchResultModifierRulesRequestSortBySorting.php
+++ b/src/Models/SearchResultModifierRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class SearchResultModifierRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchResultModifierRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(SearchResultModifierRulesRequestSortBy $sortBy, SortOrder $sortOrder) : SearchResultModifierRulesRequestSortBySorting
diff --git a/src/Models/SearchTermModifierRuleSaveSearchRulesRequest.php b/src/Models/SearchTermModifierRuleSaveSearchRulesRequest.php
index 00605d76..410b2e1f 100644
--- a/src/Models/SearchTermModifierRuleSaveSearchRulesRequest.php
+++ b/src/Models/SearchTermModifierRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class SearchTermModifierRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/SearchTermModifierRuleSaveSearchRulesResponse.php b/src/Models/SearchTermModifierRuleSaveSearchRulesResponse.php
index ede5455b..83ef2536 100644
--- a/src/Models/SearchTermModifierRuleSaveSearchRulesResponse.php
+++ b/src/Models/SearchTermModifierRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class SearchTermModifierRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/SearchTermModifierRuleSearchRulesResponse.php b/src/Models/SearchTermModifierRuleSearchRulesResponse.php
index 4643d26d..19e88900 100644
--- a/src/Models/SearchTermModifierRuleSearchRulesResponse.php
+++ b/src/Models/SearchTermModifierRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class SearchTermModifierRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/SearchTermModifierRulesRequestSortBySearchRulesRequest.php b/src/Models/SearchTermModifierRulesRequestSortBySearchRulesRequest.php
index b442a288..4006be7c 100644
--- a/src/Models/SearchTermModifierRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/SearchTermModifierRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class SearchTermModifierRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public SearchTermModifierRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/SearchTermModifierRulesRequestSortBySorting.php b/src/Models/SearchTermModifierRulesRequestSortBySorting.php
index b9485eac..592e75a2 100644
--- a/src/Models/SearchTermModifierRulesRequestSortBySorting.php
+++ b/src/Models/SearchTermModifierRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class SearchTermModifierRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchTermModifierRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(SearchTermModifierRulesRequestSortBy $sortBy, SortOrder $sortOrder) : SearchTermModifierRulesRequestSortBySorting
diff --git a/src/Models/StemmingRuleSaveSearchRulesRequest.php b/src/Models/StemmingRuleSaveSearchRulesRequest.php
index ba4a8db5..8768c5d8 100644
--- a/src/Models/StemmingRuleSaveSearchRulesRequest.php
+++ b/src/Models/StemmingRuleSaveSearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class StemmingRuleSaveSearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SaveSearchRulesRequest`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public string $modifiedBy;
public static function hydrate(array $arr)
diff --git a/src/Models/StemmingRuleSaveSearchRulesResponse.php b/src/Models/StemmingRuleSaveSearchRulesResponse.php
index 6e8850a3..75477732 100644
--- a/src/Models/StemmingRuleSaveSearchRulesResponse.php
+++ b/src/Models/StemmingRuleSaveSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class StemmingRuleSaveSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SaveSearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public static function hydrate(array $arr)
{
diff --git a/src/Models/StemmingRuleSearchRulesResponse.php b/src/Models/StemmingRuleSearchRulesResponse.php
index 4aa8b2d1..4c72c5c3 100644
--- a/src/Models/StemmingRuleSearchRulesResponse.php
+++ b/src/Models/StemmingRuleSearchRulesResponse.php
@@ -6,7 +6,7 @@
abstract class StemmingRuleSearchRulesResponse extends TimedResponse
{
- public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Responses.Search.Rules.SearchRulesResponse`1[[Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $rules;
public int $hits;
public static function hydrate(array $arr)
diff --git a/src/Models/StemmingRulesRequestSortBySearchRulesRequest.php b/src/Models/StemmingRulesRequestSortBySearchRulesRequest.php
index 5705dca4..15289346 100644
--- a/src/Models/StemmingRulesRequestSortBySearchRulesRequest.php
+++ b/src/Models/StemmingRulesRequestSortBySearchRulesRequest.php
@@ -6,7 +6,7 @@
abstract class StemmingRulesRequestSortBySearchRulesRequest extends LicensedRequest
{
- public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.StemmingRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Search.Rules.SearchRulesRequest`1[[Relewise.Client.Requests.Search.Rules.StemmingRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SearchRuleFilters $filters;
public StemmingRulesRequestSortBySorting $sorting;
public int $skip;
diff --git a/src/Models/StemmingRulesRequestSortBySorting.php b/src/Models/StemmingRulesRequestSortBySorting.php
index fc0242e2..e3d4e4e8 100644
--- a/src/Models/StemmingRulesRequestSortBySorting.php
+++ b/src/Models/StemmingRulesRequestSortBySorting.php
@@ -6,7 +6,7 @@
class StemmingRulesRequestSortBySorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.StemmingRulesRequest+SortBy, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.Rules.StemmingRulesRequest+SortBy, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public StemmingRulesRequestSortBy $sortBy;
public SortOrder $sortOrder;
public static function create(StemmingRulesRequestSortBy $sortBy, SortOrder $sortOrder) : StemmingRulesRequestSortBySorting
diff --git a/src/Models/SynonymsRequestSynonymSortingSorting.php b/src/Models/SynonymsRequestSynonymSortingSorting.php
index d75186e7..c867caab 100644
--- a/src/Models/SynonymsRequestSynonymSortingSorting.php
+++ b/src/Models/SynonymsRequestSynonymSortingSorting.php
@@ -6,7 +6,7 @@
class SynonymsRequestSynonymSortingSorting
{
- public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.SynonymsRequest+SynonymSorting, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.Requests.Shared.Sorting`1[[Relewise.Client.Requests.Search.SynonymsRequest+SynonymSorting, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public SynonymsRequestSynonymSorting $sortBy;
public SortOrder $sortOrder;
public static function create(SynonymsRequestSynonymSorting $sortBy, SortOrder $sortOrder) : SynonymsRequestSynonymSortingSorting
diff --git a/src/Models/TimedResponse.php b/src/Models/TimedResponse.php
index 993fbba0..265b4447 100644
--- a/src/Models/TimedResponse.php
+++ b/src/Models/TimedResponse.php
@@ -191,14 +191,14 @@ public static function hydrate(array $arr)
{
return StemmingRulesResponse::hydrate($arr);
}
- if ($type=="Relewise.Client.Responses.Merchandising.MerchandisingRuleResponse, Relewise.Client")
- {
- return MerchandisingRuleResponse::hydrate($arr);
- }
if ($type=="Relewise.Client.Responses.Merchandising.MerchandisingRuleCollectionResponse, Relewise.Client")
{
return MerchandisingRuleCollectionResponse::hydrate($arr);
}
+ if ($type=="Relewise.Client.Responses.Merchandising.MerchandisingRuleResponse, Relewise.Client")
+ {
+ return MerchandisingRuleResponse::hydrate($arr);
+ }
if ($type=="Relewise.Client.Responses.Analyzers.ProductPerformanceResponse, Relewise.Client")
{
return ProductPerformanceResponse::hydrate($arr);
diff --git a/src/Models/TrackCompanyAdministrativeActionRequest.php b/src/Models/TrackCompanyAdministrativeActionRequest.php
new file mode 100644
index 00000000..5faca933
--- /dev/null
+++ b/src/Models/TrackCompanyAdministrativeActionRequest.php
@@ -0,0 +1,31 @@
+administrativeAction = $administrativeAction;
+ return $result;
+ }
+ public static function hydrate(array $arr) : TrackCompanyAdministrativeActionRequest
+ {
+ $result = TrackingRequest::hydrateBase(new TrackCompanyAdministrativeActionRequest(), $arr);
+ if (array_key_exists("administrativeAction", $arr))
+ {
+ $result->administrativeAction = CompanyAdministrativeAction::hydrate($arr["administrativeAction"]);
+ }
+ return $result;
+ }
+ function setAdministrativeAction(CompanyAdministrativeAction $administrativeAction)
+ {
+ $this->administrativeAction = $administrativeAction;
+ return $this;
+ }
+}
diff --git a/src/Models/TrackCompanyUpdateRequest.php b/src/Models/TrackCompanyUpdateRequest.php
new file mode 100644
index 00000000..1e0903c3
--- /dev/null
+++ b/src/Models/TrackCompanyUpdateRequest.php
@@ -0,0 +1,31 @@
+companyUpdate = $companyUpdate;
+ return $result;
+ }
+ public static function hydrate(array $arr) : TrackCompanyUpdateRequest
+ {
+ $result = TrackingRequest::hydrateBase(new TrackCompanyUpdateRequest(), $arr);
+ if (array_key_exists("companyUpdate", $arr))
+ {
+ $result->companyUpdate = CompanyUpdate::hydrate($arr["companyUpdate"]);
+ }
+ return $result;
+ }
+ function setCompanyUpdate(CompanyUpdate $companyUpdate)
+ {
+ $this->companyUpdate = $companyUpdate;
+ return $this;
+ }
+}
diff --git a/src/Models/Trackable.php b/src/Models/Trackable.php
index eaec314d..0ca83fac 100644
--- a/src/Models/Trackable.php
+++ b/src/Models/Trackable.php
@@ -26,6 +26,14 @@ public static function hydrate(array $arr)
{
return Cart::hydrate($arr);
}
+ if ($type=="Relewise.Client.DataTypes.CompanyAdministrativeAction, Relewise.Client")
+ {
+ return CompanyAdministrativeAction::hydrate($arr);
+ }
+ if ($type=="Relewise.Client.DataTypes.CompanyUpdate, Relewise.Client")
+ {
+ return CompanyUpdate::hydrate($arr);
+ }
if ($type=="Relewise.Client.DataTypes.ContentAdministrativeAction, Relewise.Client")
{
return ContentAdministrativeAction::hydrate($arr);
diff --git a/src/Models/TrackingRequest.php b/src/Models/TrackingRequest.php
index 01bc1fb9..9a12a0c7 100644
--- a/src/Models/TrackingRequest.php
+++ b/src/Models/TrackingRequest.php
@@ -30,6 +30,14 @@ public static function hydrate(array $arr)
{
return TrackCartRequest::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Tracking.TrackCompanyAdministrativeActionRequest, Relewise.Client")
+ {
+ return TrackCompanyAdministrativeActionRequest::hydrate($arr);
+ }
+ if ($type=="Relewise.Client.Requests.Tracking.TrackCompanyUpdateRequest, Relewise.Client")
+ {
+ return TrackCompanyUpdateRequest::hydrate($arr);
+ }
if ($type=="Relewise.Client.Requests.Tracking.TrackContentAdministrativeActionRequest, Relewise.Client")
{
return TrackContentAdministrativeActionRequest::hydrate($arr);
diff --git a/src/Models/TriggerConfiguration.php b/src/Models/TriggerConfiguration.php
index 2846e781..aa1c9bee 100644
--- a/src/Models/TriggerConfiguration.php
+++ b/src/Models/TriggerConfiguration.php
@@ -34,6 +34,10 @@ public static function hydrate(array $arr)
{
return ContentCategoryInterestTriggerConfiguration::hydrate($arr);
}
+ if ($type=="Relewise.Client.DataTypes.Triggers.Configurations.EntityPropertyChangedTriggerConfiguration, Relewise.Client")
+ {
+ return EntityPropertyChangedTriggerConfiguration::hydrate($arr);
+ }
if ($type=="Relewise.Client.DataTypes.Triggers.Configurations.ProductCategoryInterestTriggerConfiguration, Relewise.Client")
{
return ProductCategoryInterestTriggerConfiguration::hydrate($arr);
diff --git a/src/Models/User.php b/src/Models/User.php
index f5983869..95b659a3 100644
--- a/src/Models/User.php
+++ b/src/Models/User.php
@@ -19,9 +19,11 @@ class User
public ?array $identifiers;
/** Data stored on the user */
public ?array $data;
- /** A fingerprint, highly likely to change in the future, e.g. between a users sessions */
+ /** A fingerprint, highly likely to change in the future, e.g. between sessions */
public ?string $fingerprint;
public ?Channel $channel;
+ /** Company the user is associated with in the current context (Note: Companies themselves can be associated with a parent company, if the current user is acting on the behalf of a hierarchical chain of up to 2 companies) */
+ public ?Company $company;
/**
* User DTO
* @param ?string $authenticatedId A persistent Id for current user, e.g. a database-id
@@ -91,6 +93,10 @@ public static function hydrate(array $arr) : User
{
$result->channel = Channel::hydrate($arr["channel"]);
}
+ if (array_key_exists("company", $arr))
+ {
+ $result->company = Company::hydrate($arr["company"]);
+ }
return $result;
}
/** A persistent Id for current user, e.g. a database-id This Id should never be expected to change in the future */
@@ -168,7 +174,7 @@ function setDataFromAssociativeArray(array $data)
$this->data = $data;
return $this;
}
- /** A fingerprint, highly likely to change in the future, e.g. between a users sessions */
+ /** A fingerprint, highly likely to change in the future, e.g. between sessions */
function setFingerprint(?string $fingerprint)
{
$this->fingerprint = $fingerprint;
@@ -179,4 +185,10 @@ function setChannel(?Channel $channel)
$this->channel = $channel;
return $this;
}
+ /** Company the user is associated with in the current context (Note: Companies themselves can be associated with a parent company, if the current user is acting on the behalf of a hierarchical chain of up to 2 companies) */
+ function setCompany(?Company $company)
+ {
+ $this->company = $company;
+ return $this;
+ }
}
diff --git a/src/Models/UserActivityTriggerResultTriggerConfiguration.php b/src/Models/UserActivityTriggerResultTriggerConfiguration.php
index 5e51d4d4..d6966a59 100644
--- a/src/Models/UserActivityTriggerResultTriggerConfiguration.php
+++ b/src/Models/UserActivityTriggerResultTriggerConfiguration.php
@@ -6,7 +6,7 @@
abstract class UserActivityTriggerResultTriggerConfiguration extends TriggerConfiguration
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.UserActivityTriggerResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.TriggerConfiguration`1[[Relewise.Client.Responses.Triggers.Results.UserActivityTriggerResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public static function hydrate(array $arr)
{
$type = $arr["\$type"];
diff --git a/src/Models/UserAssociatedCompanyResultDetails.php b/src/Models/UserAssociatedCompanyResultDetails.php
new file mode 100644
index 00000000..35e49ac5
--- /dev/null
+++ b/src/Models/UserAssociatedCompanyResultDetails.php
@@ -0,0 +1,85 @@
+id = $id;
+ return $result;
+ }
+ public static function hydrate(array $arr) : UserAssociatedCompanyResultDetails
+ {
+ $result = new UserAssociatedCompanyResultDetails();
+ if (array_key_exists("id", $arr))
+ {
+ $result->id = $arr["id"];
+ }
+ if (array_key_exists("parent", $arr))
+ {
+ $result->parent = UserAssociatedCompanyResultDetails::hydrate($arr["parent"]);
+ }
+ if (array_key_exists("data", $arr))
+ {
+ $result->data = array();
+ foreach($arr["data"] as $key => $value)
+ {
+ $result->data[$key] = DataValue::hydrate($value);
+ }
+ }
+ if (array_key_exists("createdUtc", $arr))
+ {
+ $result->createdUtc = new DateTime($arr["createdUtc"]);
+ }
+ if (array_key_exists("lastAccessedUtc", $arr))
+ {
+ $result->lastAccessedUtc = new DateTime($arr["lastAccessedUtc"]);
+ }
+ return $result;
+ }
+ function setId(string $id)
+ {
+ $this->id = $id;
+ return $this;
+ }
+ function setParent(?UserAssociatedCompanyResultDetails $parent)
+ {
+ $this->parent = $parent;
+ return $this;
+ }
+ function addToData(string $key, DataValue $value)
+ {
+ if (!isset($this->data))
+ {
+ $this->data = array();
+ }
+ $this->data[$key] = $value;
+ return $this;
+ }
+ /** @param ?array $data associative array. */
+ function setDataFromAssociativeArray(array $data)
+ {
+ $this->data = $data;
+ return $this;
+ }
+ function setCreatedUtc(DateTime $createdUtc)
+ {
+ $this->createdUtc = $createdUtc;
+ return $this;
+ }
+ function setLastAccessedUtc(DateTime $lastAccessedUtc)
+ {
+ $this->lastAccessedUtc = $lastAccessedUtc;
+ return $this;
+ }
+}
diff --git a/src/Models/UserResultDetails.php b/src/Models/UserResultDetails.php
index 298f67e1..375aebab 100644
--- a/src/Models/UserResultDetails.php
+++ b/src/Models/UserResultDetails.php
@@ -23,6 +23,7 @@ class UserResultDetails
/** All known temporary ids for the user */
public array $temporaryIds;
public ?Channel $channel;
+ public ?UserAssociatedCompanyResultDetails $company;
public static function create() : UserResultDetails
{
$result = new UserResultDetails();
@@ -111,6 +112,10 @@ public static function hydrate(array $arr) : UserResultDetails
{
$result->channel = Channel::hydrate($arr["channel"]);
}
+ if (array_key_exists("company", $arr))
+ {
+ $result->company = UserAssociatedCompanyResultDetails::hydrate($arr["company"]);
+ }
return $result;
}
function setAuthenticatedId(string $authenticatedId)
@@ -248,4 +253,9 @@ function setChannel(?Channel $channel)
$this->channel = $channel;
return $this;
}
+ function setCompany(?UserAssociatedCompanyResultDetails $company)
+ {
+ $this->company = $company;
+ return $this;
+ }
}
diff --git a/src/Models/ValueCondition.php b/src/Models/ValueCondition.php
index b010e9d3..1ac1757b 100644
--- a/src/Models/ValueCondition.php
+++ b/src/Models/ValueCondition.php
@@ -31,6 +31,10 @@ public static function hydrate(array $arr)
{
return LessThanCondition::hydrate($arr);
}
+ if ($type=="Relewise.Client.Requests.Conditions.RelativeDateTimeCondition, Relewise.Client")
+ {
+ return RelativeDateTimeCondition::hydrate($arr);
+ }
}
public static function hydrateBase(mixed $result, array $arr)
{
diff --git a/src/Models/VariantIdRelevanceModifier.php b/src/Models/VariantIdRelevanceModifier.php
new file mode 100644
index 00000000..3df4c6fd
--- /dev/null
+++ b/src/Models/VariantIdRelevanceModifier.php
@@ -0,0 +1,94 @@
+variantIds = $variantIds;
+ $result->multiplyWeightBy = $multiplyWeightBy;
+ $result->negated = $negated;
+ return $result;
+ }
+ public static function hydrate(array $arr) : VariantIdRelevanceModifier
+ {
+ $result = RelevanceModifier::hydrateBase(new VariantIdRelevanceModifier(), $arr);
+ if (array_key_exists("variantIds", $arr))
+ {
+ $result->variantIds = array();
+ foreach($arr["variantIds"] as &$value)
+ {
+ array_push($result->variantIds, $value);
+ }
+ }
+ if (array_key_exists("multiplyWeightBy", $arr))
+ {
+ $result->multiplyWeightBy = $arr["multiplyWeightBy"];
+ }
+ if (array_key_exists("negated", $arr))
+ {
+ $result->negated = $arr["negated"];
+ }
+ return $result;
+ }
+ /** The Ids of the Variants that this RelevanceModifier will distinguish on. */
+ function setVariantIds(string ... $variantIds)
+ {
+ $this->variantIds = $variantIds;
+ return $this;
+ }
+ /**
+ * The Ids of the Variants that this RelevanceModifier will distinguish on.
+ * @param string[] $variantIds new value.
+ */
+ function setVariantIdsFromArray(array $variantIds)
+ {
+ $this->variantIds = $variantIds;
+ return $this;
+ }
+ /** The Ids of the Variants that this RelevanceModifier will distinguish on. */
+ function addToVariantIds(string $variantIds)
+ {
+ if (!isset($this->variantIds))
+ {
+ $this->variantIds = array();
+ }
+ array_push($this->variantIds, $variantIds);
+ return $this;
+ }
+ /** The weight that this RelevanceModifier will multiply relevant variants with. */
+ function setMultiplyWeightBy(float $multiplyWeightBy)
+ {
+ $this->multiplyWeightBy = $multiplyWeightBy;
+ return $this;
+ }
+ /** Determines whether this RelevanceModifier should apply to all the Variants that don't match one of the specified VariantIds instead. */
+ function setNegated(bool $negated)
+ {
+ $this->negated = $negated;
+ return $this;
+ }
+ function setFilters(FilterCollection $filters)
+ {
+ $this->filters = $filters;
+ return $this;
+ }
+}
diff --git a/src/Models/floatChainableRangeAvailableFacetValue.php b/src/Models/floatChainableRangeAvailableFacetValue.php
index 3a35c197..0a1c31f5 100644
--- a/src/Models/floatChainableRangeAvailableFacetValue.php
+++ b/src/Models/floatChainableRangeAvailableFacetValue.php
@@ -6,7 +6,7 @@
class floatChainableRangeAvailableFacetValue
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.ChainableRange`1[[System.Nullable`1[[System.Double, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.ChainableRange`1[[System.Nullable`1[[System.Double, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public ?floatChainableRange $value;
public int $hits;
public bool $selected;
diff --git a/src/Models/floatRangeAvailableFacetValue.php b/src/Models/floatRangeAvailableFacetValue.php
index 64fd88a5..2a1d23c1 100644
--- a/src/Models/floatRangeAvailableFacetValue.php
+++ b/src/Models/floatRangeAvailableFacetValue.php
@@ -6,7 +6,7 @@
class floatRangeAvailableFacetValue
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.Range`1[[System.Nullable`1[[System.Double, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.AvailableFacetValue`1[[Relewise.Client.DataTypes.Range`1[[System.Nullable`1[[System.Double, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public ?floatRange $value;
public int $hits;
public bool $selected;
diff --git a/src/Models/stringAbandonedSearch.php b/src/Models/stringAbandonedSearch.php
index 5ef8e97f..358167e3 100644
--- a/src/Models/stringAbandonedSearch.php
+++ b/src/Models/stringAbandonedSearch.php
@@ -63,4 +63,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
+ function setLanguage(?Language $language)
+ {
+ $this->language = $language;
+ return $this;
+ }
}
diff --git a/src/Models/stringBrandNameAndIdResultValueFacetResult.php b/src/Models/stringBrandNameAndIdResultValueFacetResult.php
index f6cc9008..34ed9969 100644
--- a/src/Models/stringBrandNameAndIdResultValueFacetResult.php
+++ b/src/Models/stringBrandNameAndIdResultValueFacetResult.php
@@ -6,7 +6,7 @@
abstract class stringBrandNameAndIdResultValueFacetResult extends FacetResult
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.ValueFacetResult`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Relewise.Client.DataTypes.BrandNameAndIdResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.ValueFacetResult`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Relewise.Client.DataTypes.BrandNameAndIdResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $selected;
public array $available;
public static function hydrate(array $arr)
diff --git a/src/Models/stringCategoryNameAndIdResultValueFacetResult.php b/src/Models/stringCategoryNameAndIdResultValueFacetResult.php
index 5edcdbc1..72dc21c4 100644
--- a/src/Models/stringCategoryNameAndIdResultValueFacetResult.php
+++ b/src/Models/stringCategoryNameAndIdResultValueFacetResult.php
@@ -6,7 +6,7 @@
abstract class stringCategoryNameAndIdResultValueFacetResult extends FacetResult
{
- public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.ValueFacetResult`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Relewise.Client.DataTypes.CategoryNameAndIdResult, Relewise.Client, Version=1.96.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
+ public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.ValueFacetResult`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Relewise.Client.DataTypes.CategoryNameAndIdResult, Relewise.Client, Version=1.130.0.0, Culture=neutral, PublicKeyToken=null]], Relewise.Client";
public array $selected;
public array $available;
public static function hydrate(array $arr)
diff --git a/src/Models/stringEntityPropertyChangedTriggerResult.php b/src/Models/stringEntityPropertyChangedTriggerResult.php
new file mode 100644
index 00000000..cc6f5029
--- /dev/null
+++ b/src/Models/stringEntityPropertyChangedTriggerResult.php
@@ -0,0 +1,57 @@
+entitiesWithChanges = array();
+ foreach($arr["entitiesWithChanges"] as &$value)
+ {
+ array_push($result->entitiesWithChanges, $value);
+ }
+ }
+ return $result;
+ }
+ function setEntitiesWithChanges(string ... $entitiesWithChanges)
+ {
+ $this->entitiesWithChanges = $entitiesWithChanges;
+ return $this;
+ }
+ /** @param string[] $entitiesWithChanges new value. */
+ function setEntitiesWithChangesFromArray(array $entitiesWithChanges)
+ {
+ $this->entitiesWithChanges = $entitiesWithChanges;
+ return $this;
+ }
+ function addToEntitiesWithChanges(string $entitiesWithChanges)
+ {
+ if (!isset($this->entitiesWithChanges))
+ {
+ $this->entitiesWithChanges = array();
+ }
+ array_push($this->entitiesWithChanges, $entitiesWithChanges);
+ return $this;
+ }
+ function setUser(UserResultDetails $user)
+ {
+ $this->user = $user;
+ return $this;
+ }
+}
diff --git a/src/Recommender.php b/src/Recommender.php
index 1f78b3bd..59c19ec8 100644
--- a/src/Recommender.php
+++ b/src/Recommender.php
@@ -29,6 +29,7 @@
use Relewise\Models\PersonalProductCategoryRecommendationRequest;
use Relewise\Models\PopularBrandsRecommendationRequest;
use Relewise\Models\PersonalBrandRecommendationRequest;
+use Relewise\Models\BrandRecommendationRequest;
use Relewise\Models\ProductRecommendationRequestCollection;
use Relewise\Models\ContentRecommendationRequestCollection;
use Relewise\Models\ProductRecommendationRequest;
@@ -284,6 +285,15 @@ public function personalBrandRecommendation(PersonalBrandRecommendationRequest $
}
return BrandRecommendationResponse::hydrate($response);
}
+ public function brandRecommendation(BrandRecommendationRequest $request) : ?BrandRecommendationResponse
+ {
+ $response = $this->requestAndValidate("BrandRecommendationRequest", $request);
+ if ($response == Null)
+ {
+ return Null;
+ }
+ return BrandRecommendationResponse::hydrate($response);
+ }
public function batchproductRecommendation(ProductRecommendationRequestCollection $request) : ?ProductRecommendationResponseCollection
{
$response = $this->requestAndValidate("ProductRecommendationRequestCollection", $request);
diff --git a/src/Tracker.php b/src/Tracker.php
index 0113fee1..d10d5e11 100644
--- a/src/Tracker.php
+++ b/src/Tracker.php
@@ -8,6 +8,8 @@
use Relewise\Models\TrackBrandUpdateRequest;
use Relewise\Models\TrackBrandViewRequest;
use Relewise\Models\TrackCartRequest;
+use Relewise\Models\TrackCompanyAdministrativeActionRequest;
+use Relewise\Models\TrackCompanyUpdateRequest;
use Relewise\Models\TrackContentAdministrativeActionRequest;
use Relewise\Models\TrackContentCategoryAdministrativeActionRequest;
use Relewise\Models\TrackContentCategoryUpdateRequest;
@@ -51,6 +53,14 @@ public function trackCart(TrackCartRequest $trackingRequest)
{
return $this->requestAndValidate("TrackCartRequest", $trackingRequest);
}
+ public function trackCompanyAdministrativeAction(TrackCompanyAdministrativeActionRequest $trackingRequest)
+ {
+ return $this->requestAndValidate("TrackCompanyAdministrativeActionRequest", $trackingRequest);
+ }
+ public function trackCompanyUpdate(TrackCompanyUpdateRequest $trackingRequest)
+ {
+ return $this->requestAndValidate("TrackCompanyUpdateRequest", $trackingRequest);
+ }
public function trackContentAdministrativeAction(TrackContentAdministrativeActionRequest $trackingRequest)
{
return $this->requestAndValidate("TrackContentAdministrativeActionRequest", $trackingRequest);