Skip to content

Commit

Permalink
Updated NuGet package to version 1.130.0 and regenerated. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGRelewise authored Jan 10, 2024
1 parent 32681d3 commit e4ffe0d
Show file tree
Hide file tree
Showing 115 changed files with 1,933 additions and 62 deletions.
2 changes: 1 addition & 1 deletion Generator/Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="AngleSharp.Xml" Version="1.0.0" />
<PackageReference Include="Relewise.Client" Version="1.96.0" />
<PackageReference Include="Relewise.Client" Version="1.130.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
5 changes: 5 additions & 0 deletions src/Models/AbandonedContentSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
function setLanguage(?Language $language)
{
$this->language = $language;
return $this;
}
}
5 changes: 5 additions & 0 deletions src/Models/AbandonedProductCategorySearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
function setLanguage(?Language $language)
{
$this->language = $language;
return $this;
}
}
5 changes: 5 additions & 0 deletions src/Models/AbandonedProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
function setLanguage(?Language $language)
{
$this->language = $language;
return $this;
}
}
10 changes: 10 additions & 0 deletions src/Models/AbandonedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand All @@ -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)
Expand All @@ -47,4 +52,9 @@ function setHits(int $hits)
$this->hits = $hits;
return $this;
}
function setLanguage(?Language $language)
{
$this->language = $language;
return $this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion src/Models/BrandNameAndIdResultAvailableFacetValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions src/Models/BrandRecommendationRequestSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -67,4 +72,9 @@ function setSelectedBrandProperties(?SelectedBrandPropertiesSettings $selectedBr
$this->selectedBrandProperties = $selectedBrandProperties;
return $this;
}
function setPrioritizeResultsNotRecommendedWithinSeconds(?int $prioritizeResultsNotRecommendedWithinSeconds)
{
$this->prioritizeResultsNotRecommendedWithinSeconds = $prioritizeResultsNotRecommendedWithinSeconds;
return $this;
}
}
2 changes: 1 addition & 1 deletion src/Models/CategoryNameAndIdResultAvailableFacetValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CategoryPathValueFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
12 changes: 12 additions & 0 deletions src/Models/ChangeType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php declare(strict_types=1);

namespace Relewise\Models;

use DateTime;

enum ChangeType : string
{
case Changed = 'Changed';
case Decreased = 'Decreased';
case Increased = 'Increased';
}
65 changes: 65 additions & 0 deletions src/Models/Company.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php declare(strict_types=1);

namespace Relewise\Models;

use DateTime;

class Company
{
public string $typeDefinition = "Relewise.Client.DataTypes.Company, Relewise.Client";
public string $id;
public ?Company $parent;
public ?array $data;
public static function create(string $id) : Company
{
$result = new Company();
$result->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<string, DataValue> $data associative array. */
function setDataFromAssociativeArray(array $data)
{
$this->data = $data;
return $this;
}
}
64 changes: 64 additions & 0 deletions src/Models/CompanyAdministrativeAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php declare(strict_types=1);

namespace Relewise\Models;

use DateTime;

class CompanyAdministrativeAction extends Trackable
{
public string $typeDefinition = "Relewise.Client.DataTypes.CompanyAdministrativeAction, Relewise.Client";
public FilterCollection $filters;
public ?Language $language;
public CompanyAdministrativeActionUpdateKind $kind;
public ?Currency $currency;
public static function create(?Language $language, ?Currency $currency, FilterCollection $filters, CompanyAdministrativeActionUpdateKind $kind) : CompanyAdministrativeAction
{
$result = new CompanyAdministrativeAction();
$result->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;
}
}
15 changes: 15 additions & 0 deletions src/Models/CompanyAdministrativeActionUpdateKind.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php declare(strict_types=1);

namespace Relewise\Models;

use DateTime;

enum CompanyAdministrativeActionUpdateKind : string
{
/** Marks the company as disabled */
case Disable = 'Disable';
/** Marks the company as enabled */
case Enable = 'Enable';
/** Permanently deletes the company, including all previously tracked information for it, as well as any relations - This operation cannot be undone. */
case Delete = 'Delete';
}
85 changes: 85 additions & 0 deletions src/Models/CompanyDataFilter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php declare(strict_types=1);

namespace Relewise\Models;

use DateTime;

class CompanyDataFilter extends DataFilter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client";
public static function create(string $key, bool $filterOutIfKeyIsNotFound = true, ?Language $language = Null, ?Currency $currency = Null) : CompanyDataFilter
{
$result = new CompanyDataFilter();
$result->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;
}
}
Loading

0 comments on commit e4ffe0d

Please sign in to comment.