From 8969f64082f53cc8af76404e82ba57f07047642d Mon Sep 17 00:00:00 2001
From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com>
Date: Mon, 12 Aug 2024 16:06:46 +0200
Subject: [PATCH 1/4] Last adjustments to support generic types with more than
2 types parameters and to support the use of a property called "default".
---
Generator/Constants.cs | 6 ++---
Generator/Extensions/StringExtensions.cs | 2 ++
Generator/Generator.csproj | 2 +-
.../JavaCreatorMethodWriter.cs | 13 ++++++-----
.../JavaMemberWriters/JavaFieldWriter.cs | 2 +-
.../JavaPropertyGetterMethodsWriter.cs | 7 +++++-
.../JavaPropertySetterMethodsWriter.cs | 22 +++++++++----------
Generator/JavaTypeResolver.cs | 7 ++----
8 files changed, 32 insertions(+), 29 deletions(-)
diff --git a/Generator/Constants.cs b/Generator/Constants.cs
index cdc0835..65b433e 100644
--- a/Generator/Constants.cs
+++ b/Generator/Constants.cs
@@ -6,13 +6,11 @@ public class Constants
public const string GenerationFolderPath = "model";
public const string StandardImports = """
- import com.fasterxml.jackson.annotation.JsonTypeInfo;
- import com.fasterxml.jackson.annotation.JsonSubTypes;
- import com.fasterxml.jackson.annotation.JsonTypeName;
- import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+ import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+ import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/Generator/Extensions/StringExtensions.cs b/Generator/Extensions/StringExtensions.cs
index 7c6fb64..2a743db 100644
--- a/Generator/Extensions/StringExtensions.cs
+++ b/Generator/Extensions/StringExtensions.cs
@@ -20,4 +20,6 @@ public static string SingularIfPossible(this string value)
}
public static string RemoveNullable(this string value) => value.Length > 10 ? value[..10] is "@Nullable " ? value[10..] : value : value;
+
+ public static string AsFieldName(this string? fieldName) => fieldName == "default" ? "_default" : fieldName ?? null!;
}
\ No newline at end of file
diff --git a/Generator/Generator.csproj b/Generator/Generator.csproj
index 73d9d27..036adff 100644
--- a/Generator/Generator.csproj
+++ b/Generator/Generator.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/Generator/JavaMemberWriters/JavaCreatorMethodWriter.cs b/Generator/JavaMemberWriters/JavaCreatorMethodWriter.cs
index 9a2ce95..989a88a 100644
--- a/Generator/JavaMemberWriters/JavaCreatorMethodWriter.cs
+++ b/Generator/JavaMemberWriters/JavaCreatorMethodWriter.cs
@@ -159,7 +159,7 @@ private void WriteConstructor(IndentedTextWriter writer, Type returnType, string
writer.WriteLine($"public static {typeName} create({ParameterList(parameters)})");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"return new {typeName}({string.Join(", ", parameters.Select(p => p.Name))});");
+ writer.WriteLine($"return new {typeName}({string.Join(", ", parameters.Select(p => p.Name.AsFieldName()))});");
writer.Indent--;
writer.WriteLine("}");
@@ -188,15 +188,15 @@ private void WriteCreatorMethodBody(IndentedTextWriter writer, string variable,
if (property!.PropertyType.IsGenericType && property!.PropertyType.GetGenericTypeDefinition() == typeof(List<>) && (parameter.ParameterType.IsArray
|| (parameter == parameters.Last() && javaWriter.BetterTypedParameterTypeName(parameter.ParameterType, new NullabilityInfoContext().Create(parameter)).Contains("..."))))
{
- writer.WriteLine($"{variable}.{propertyName} = new ArrayList<>(Arrays.asList({parameter.Name}));");
+ writer.WriteLine($"{variable}.{propertyName.AsFieldName()} = new ArrayList<>(Arrays.asList({parameter.Name.AsFieldName()}));");
}
else if (property!.PropertyType.IsArray && parameter.ParameterType.IsGenericType && parameter.ParameterType.GetGenericTypeDefinition() == typeof(List<>))
{
- writer.WriteLine($"{variable}.{propertyName} = {parameter.Name}.asArray();");
+ writer.WriteLine($"{variable}.{propertyName.AsFieldName()} = {parameter.Name.AsFieldName()}.asArray();");
}
else
{
- writer.WriteLine($"{variable}.{propertyName} = {parameter.Name};");
+ writer.WriteLine($"{variable}.{propertyName.AsFieldName()} = {parameter.Name.AsFieldName()};");
}
}
}
@@ -206,7 +206,7 @@ private void WriteCreatorMethodBody(IndentedTextWriter writer, string variable,
string? propertyName = property?.Name.ToCamelCase();
if (propertyName is not null)
{
- writer.WriteLine($"{variable}.{propertyName}{DefaultValueSetter(parameter)};");
+ writer.WriteLine($"{variable}.{propertyName.AsFieldName()}{DefaultValueSetter(parameter)};");
}
}
}
@@ -251,6 +251,7 @@ private string LiteralValueExpression(object obj)
int number => $"{number}",
double number => $"{number.ToString(CultureInfo.InvariantCulture)}d",
float number => $"{number.ToString(CultureInfo.InvariantCulture)}f",
+ long number => $"{number.ToString(CultureInfo.InvariantCulture)}L",
string stringLiteral => $"\"{stringLiteral}\"",
_ when obj.GetType().IsEnum => $"{javaWriter.TypeName(obj.GetType())}.{obj}",
_ => System.Text.Json.JsonSerializer.Serialize(obj)
@@ -261,7 +262,7 @@ private string ParameterList(ParameterInfo[] parameters)
{
return string.Join(", ",
parameters.Select(parameter =>
- $"{(parameters[^1] == parameter ? javaWriter.BetterTypedParameterTypeName(parameter.ParameterType, new NullabilityInfoContext().Create(parameter)) : javaWriter.TypeName(parameter))} {parameter.Name}"
+ $"{(parameters[^1] == parameter ? javaWriter.BetterTypedParameterTypeName(parameter.ParameterType, new NullabilityInfoContext().Create(parameter)) : javaWriter.TypeName(parameter))} {parameter.Name.AsFieldName()}"
)
);
}
diff --git a/Generator/JavaMemberWriters/JavaFieldWriter.cs b/Generator/JavaMemberWriters/JavaFieldWriter.cs
index b98f4b6..49d42da 100644
--- a/Generator/JavaMemberWriters/JavaFieldWriter.cs
+++ b/Generator/JavaMemberWriters/JavaFieldWriter.cs
@@ -22,7 +22,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo type,
propertyInfo.GetCustomAttribute(typeof(ObsoleteAttribute)) is ObsoleteAttribute { } obsolete ? $"@deprecated {obsolete.Message}" : null
);
- writer.WriteLine($"public {propertyTypeName} {lowerCaseName};");
+ writer.WriteLine($"public {propertyTypeName} {lowerCaseName.AsFieldName()};");
}
}
}
\ No newline at end of file
diff --git a/Generator/JavaMemberWriters/JavaPropertyGetterMethodsWriter.cs b/Generator/JavaMemberWriters/JavaPropertyGetterMethodsWriter.cs
index e3f8f03..1542091 100644
--- a/Generator/JavaMemberWriters/JavaPropertyGetterMethodsWriter.cs
+++ b/Generator/JavaMemberWriters/JavaPropertyGetterMethodsWriter.cs
@@ -22,10 +22,15 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,
propertyInfo.GetCustomAttribute(typeof(ObsoleteAttribute)) is ObsoleteAttribute { } obsolete ? $"@deprecated {obsolete.Message}" : null
);
+ if (lowerCaseName == "default")
+ {
+ writer.WriteLine("@JsonProperty(\"default\")");
+ }
+
writer.WriteLine($"public {propertyTypeName} get{propertyName}()");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"return this.{lowerCaseName};");
+ writer.WriteLine($"return this.{lowerCaseName.AsFieldName()};");
writer.Indent--;
writer.WriteLine("}");
}
diff --git a/Generator/JavaMemberWriters/JavaPropertySetterMethodsWriter.cs b/Generator/JavaMemberWriters/JavaPropertySetterMethodsWriter.cs
index 1bb9fab..b859601 100644
--- a/Generator/JavaMemberWriters/JavaPropertySetterMethodsWriter.cs
+++ b/Generator/JavaMemberWriters/JavaPropertySetterMethodsWriter.cs
@@ -49,10 +49,10 @@ public void Write(IndentedTextWriter writer, Type returnType, string returnTypeN
{
writer.WriteLine("@Override");
}
- writer.WriteLine($"public {returnTypeName} set{propertyName}({parameterType} {lowerCaseName})");
+ writer.WriteLine($"public {returnTypeName} set{propertyName}({parameterType} {lowerCaseName.AsFieldName()})");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"this.{javaWriter.ValueSetter(propertyType, lowerCaseName, propertyType is { IsGenericType: true } genericType && genericType.GetGenericTypeDefinition() == typeof(List<>) ? (genericType.GenericTypeArguments[0]).MakeArrayType() : propertyType, lowerCaseName)};");
+ writer.WriteLine($"this.{javaWriter.ValueSetter(propertyType, lowerCaseName.AsFieldName(), propertyType is { IsGenericType: true } genericType && genericType.GetGenericTypeDefinition() == typeof(List<>) ? (genericType.GenericTypeArguments[0]).MakeArrayType() : propertyType, lowerCaseName.AsFieldName())};");
writer.WriteLine("return this;");
writer.Indent--;
writer.WriteLine("}");
@@ -64,21 +64,21 @@ public void Write(IndentedTextWriter writer, Type returnType, string returnTypeN
deprecationComment
);
var elementType = propertyType.GetElementType()!;
- writer.WriteLine($"public {returnTypeName} addTo{propertyName}({javaWriter.TypeName(elementType)} {lowerCaseName.SingularIfPossible()})");
+ writer.WriteLine($"public {returnTypeName} addTo{propertyName}({javaWriter.TypeName(elementType)} {lowerCaseName.SingularIfPossible().AsFieldName()})");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"if (this.{lowerCaseName} == null)");
+ writer.WriteLine($"if (this.{lowerCaseName.AsFieldName()} == null)");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"this.{lowerCaseName} = new {javaWriter.TypeName(elementType)}[] {{ {lowerCaseName.SingularIfPossible()} }};");
+ writer.WriteLine($"this.{lowerCaseName.AsFieldName()} = new {javaWriter.TypeName(elementType)}[] {{ {lowerCaseName.SingularIfPossible().AsFieldName()} }};");
writer.Indent--;
writer.WriteLine("}");
writer.WriteLine("else");
writer.WriteLine("{");
writer.Indent++;
writer.WriteLine($"ArrayList<{javaWriter.TypeName(elementType)}> existingList = new ArrayList<>(Arrays.asList(this.{lowerCaseName}));");
- writer.WriteLine($"existingList.add({lowerCaseName.SingularIfPossible()});");
- writer.WriteLine($"this.{lowerCaseName} = existingList.toArray({NewUpper(javaWriter.TypeName(elementType))}[0]);");
+ writer.WriteLine($"existingList.add({lowerCaseName.SingularIfPossible().AsFieldName()});");
+ writer.WriteLine($"this.{lowerCaseName.AsFieldName()} = existingList.toArray({NewUpper(javaWriter.TypeName(elementType))}[0]);");
writer.Indent--;
writer.WriteLine("}");
writer.WriteLine("return this;");
@@ -92,16 +92,16 @@ public void Write(IndentedTextWriter writer, Type returnType, string returnTypeN
javaWriter.XmlDocumentation.GetSummary(returnType, propertyName),
deprecationComment
);
- writer.WriteLine($"public {returnTypeName} addTo{propertyName}({javaWriter.TypeName(propertyType.GenericTypeArguments[0])} {lowerCaseName})");
+ writer.WriteLine($"public {returnTypeName} addTo{propertyName}({javaWriter.TypeName(propertyType.GenericTypeArguments[0])} {lowerCaseName.AsFieldName()})");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"if (this.{lowerCaseName} == null)");
+ writer.WriteLine($"if (this.{lowerCaseName.AsFieldName()} == null)");
writer.WriteLine("{");
writer.Indent++;
- writer.WriteLine($"this.{lowerCaseName} = new ArrayList<>();");
+ writer.WriteLine($"this.{lowerCaseName.AsFieldName()} = new ArrayList<>();");
writer.Indent--;
writer.WriteLine("}");
- writer.WriteLine($"this.{lowerCaseName}.add({lowerCaseName});");
+ writer.WriteLine($"this.{lowerCaseName.AsFieldName()}.add({lowerCaseName.AsFieldName()});");
writer.WriteLine("return this;");
writer.Indent--;
diff --git a/Generator/JavaTypeResolver.cs b/Generator/JavaTypeResolver.cs
index c8e5e5c..db94013 100644
--- a/Generator/JavaTypeResolver.cs
+++ b/Generator/JavaTypeResolver.cs
@@ -97,12 +97,9 @@ private string AddCollectionTypeDefinition(Type type)
private string GetGenericTypeDefinition(Type type)
{
// We use `RemoveNullable` in the following section because Java does not support to annotate generic type arguments.
- switch (type.GenericTypeArguments.Length)
+ if (type.GenericTypeArguments.Length >= 1)
{
- case 1:
- return $"{ResolveType(type.GenericTypeArguments.Single()).RemoveNullable()}{GetOrAddTypeDefinition(type)}";
- case 2:
- return $"{ResolveType(type.GenericTypeArguments.First()).RemoveNullable()}{ResolveType(type.GenericTypeArguments.Last()).RemoveNullable()}{GetOrAddTypeDefinition(type)}";
+ return string.Join("", type.GenericTypeArguments.Select(t => ResolveType(t).RemoveNullable())) + GetOrAddTypeDefinition(type);
}
if (type.GetGenericArguments() is not [var genericTypeArgumentDefinition])
From 294ea247dcdba2c19af2867731d37a4594b4cf52 Mon Sep 17 00:00:00 2001
From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com>
Date: Mon, 12 Aug 2024 16:08:09 +0200
Subject: [PATCH 2/4] Regenerated types.
---
.../AbandonedCartTriggerConfiguration.java | 6 +-
.../model/AbandonedCartTriggerResult.java | 6 +-
...CartTriggerResultTriggerConfiguration.java | 6 +-
.../client/model/AbandonedContentSearch.java | 12 +-
.../model/AbandonedProductCategorySearch.java | 12 +-
.../client/model/AbandonedProductSearch.java | 12 +-
.../client/model/AbandonedSearch.java | 16 +-
.../AbandonedSearchTriggerConfiguration.java | 35 +++-
.../model/AbandonedSearchTriggerResult.java | 6 +-
...archTriggerResultTriggerConfiguration.java | 6 +-
.../com/relewise/client/model/Advertiser.java | 98 +++++++++
...erAdvertiserEntityStateEntityResponse.java | 75 +++++++
.../client/model/AdvertiserEntityState.java | 37 ++++
...rsRequestEntityFiltersEntitiesRequest.java | 70 +++++++
...rtiserMetadataValuesRetailMediaEntity.java | 59 ++++++
...aValuesRetailMediaEntityEntityFilters.java | 50 +++++
.../model/AdvertiserMetadataValues.java | 120 +++++++++++
.../model/AdvertiserSaveEntitiesRequest.java | 50 +++++
.../model/AdvertiserSaveEntitiesResponse.java | 46 +++++
.../client/model/AdvertisersRequest.java | 67 ++++++
.../AdvertisersRequestEntityFilters.java | 86 ++++++++
.../model/AdvertisersRequestSortBy.java | 37 ++++
.../AdvertisersRequestSortBySorting.java | 55 +++++
.../client/model/AdvertisersResponse.java | 89 ++++++++
.../client/model/AnalyzerRequest.java | 6 +-
.../relewise/client/model/AndCondition.java | 6 +-
.../com/relewise/client/model/AndFilter.java | 12 +-
.../client/model/ApplicableIndexes.java | 6 +-
.../client/model/ApplicableLanguages.java | 6 +-
.../client/model/ApplyFilterSettings.java | 50 +++++
.../client/model/AssortmentFacet.java | 6 +-
.../client/model/AssortmentFacetResult.java | 6 +-
.../client/model/AssortmentFilterType.java | 6 +-
.../model/AssortmentSelectionStrategy.java | 6 +-
.../client/model/BatchedTrackingRequest.java | 6 +-
.../model/BooleanAvailableFacetValue.java | 6 +-
.../model/BooleanBooleanValueFacetResult.java | 6 +-
.../model/BooleanContentDataValueFacet.java | 6 +-
.../BooleanContentDataValueFacetResult.java | 6 +-
.../model/BooleanDataObjectValueFacet.java | 6 +-
.../BooleanDataObjectValueFacetResult.java | 6 +-
.../client/model/BooleanDataValueFacet.java | 6 +-
.../model/BooleanDataValueFacetResult.java | 6 +-
.../BooleanProductCategoryDataValueFacet.java | 6 +-
...anProductCategoryDataValueFacetResult.java | 6 +-
.../model/BooleanProductDataValueFacet.java | 6 +-
.../BooleanProductDataValueFacetResult.java | 6 +-
.../client/model/BooleanValueFacet.java | 6 +-
.../client/model/BooleanValueFacetResult.java | 6 +-
.../client/model/BoostAndBuryRule.java | 6 +-
.../java/com/relewise/client/model/Brand.java | 6 +-
.../model/BrandAdministrativeAction.java | 6 +-
.../BrandAdministrativeActionUpdateKind.java | 6 +-
.../client/model/BrandAssortmentFilter.java | 12 +-
.../client/model/BrandDataFilter.java | 12 +-
.../client/model/BrandDataHasKeyFilter.java | 73 +++++++
.../model/BrandDetailsCollectionResponse.java | 6 +-
.../client/model/BrandDisabledFilter.java | 57 ++++++
.../com/relewise/client/model/BrandFacet.java | 6 +-
.../client/model/BrandFacetResult.java | 6 +-
.../relewise/client/model/BrandIdFilter.java | 12 +-
.../model/BrandIdRelevanceModifier.java | 30 ++-
.../client/model/BrandIndexConfiguration.java | 6 +-
.../client/model/BrandNameAndIdResult.java | 6 +-
...andNameAndIdResultAvailableFacetValue.java | 6 +-
.../com/relewise/client/model/BrandQuery.java | 6 +-
.../model/BrandRecommendationRequest.java | 13 +-
.../BrandRecommendationRequestSettings.java | 16 +-
.../model/BrandRecommendationResponse.java | 6 +-
.../model/BrandRecommendationWeights.java | 6 +-
.../relewise/client/model/BrandResult.java | 6 +-
.../client/model/BrandResultDetails.java | 6 +-
.../relewise/client/model/BrandUpdate.java | 6 +-
.../client/model/BrandUpdateUpdateKind.java | 6 +-
.../com/relewise/client/model/BrandView.java | 19 +-
.../com/relewise/client/model/Budget.java | 51 +++++
.../com/relewise/client/model/CPMBudget.java | 63 ++++++
.../com/relewise/client/model/Campaign.java | 124 ++++++++++++
.../client/model/CampaignAnalytics.java | 44 ++++
.../CampaignAnalyticsProductAnalytics.java | 102 ++++++++++
...nalyticsProductAnalyticsPeriodMetrics.java | 91 +++++++++
...AnalyticsPeriodMetricsCurrencyMetrics.java | 55 +++++
...roductAnalyticsPromotedProductMetrics.java | 55 +++++
.../model/CampaignAnalyticsRequest.java | 76 +++++++
.../model/CampaignAnalyticsResponse.java | 56 ++++++
...aignCampaignEntityStateEntityResponse.java | 75 +++++++
.../client/model/CampaignEntityState.java | 37 ++++
...nsRequestEntityFiltersEntitiesRequest.java | 70 +++++++
...mpaignMetadataValuesRetailMediaEntity.java | 59 ++++++
...aValuesRetailMediaEntityEntityFilters.java | 50 +++++
.../client/model/CampaignMetadataValues.java | 120 +++++++++++
.../model/CampaignSaveEntitiesRequest.java | 50 +++++
.../model/CampaignSaveEntitiesResponse.java | 46 +++++
.../model/CampaignStatusWithHistory.java | 64 ++++++
.../CampaignStatusWithHistoryChange.java | 55 +++++
.../CampaignStatusWithHistoryStatusName.java | 42 ++++
.../client/model/CampaignsRequest.java | 67 ++++++
.../model/CampaignsRequestEntityFilters.java | 110 ++++++++++
.../client/model/CampaignsRequestSortBy.java | 37 ++++
.../model/CampaignsRequestSortBySorting.java | 55 +++++
.../client/model/CampaignsResponse.java | 89 ++++++++
.../java/com/relewise/client/model/Cart.java | 19 +-
.../relewise/client/model/CartDataFilter.java | 12 +-
.../relewise/client/model/CartDetails.java | 6 +-
.../com/relewise/client/model/Category.java | 6 +-
.../model/CategoryAdministrativeAction.java | 6 +-
...ategoryAdministrativeActionUpdateKind.java | 6 +-
.../relewise/client/model/CategoryFacet.java | 6 +-
.../client/model/CategoryFacetResult.java | 6 +-
.../client/model/CategoryHierarchyFacet.java | 88 ++++++++
.../model/CategoryHierarchyFacetResult.java | 81 ++++++++
...egoryHierarchyFacetResultCategoryNode.java | 102 ++++++++++
.../client/model/CategoryIdFilter.java | 12 +-
.../model/CategoryIndexConfiguration.java | 6 +-
.../CategoryIndexConfigurationEntry.java | 6 +-
.../client/model/CategoryLevelFilter.java | 12 +-
.../client/model/CategoryNameAndId.java | 6 +-
.../client/model/CategoryNameAndIdResult.java | 6 +-
...oryNameAndIdResultAvailableFacetValue.java | 6 +-
.../relewise/client/model/CategoryPath.java | 6 +-
.../client/model/CategoryPathResult.java | 6 +-
.../model/CategoryPathResultDetails.java | 6 +-
.../client/model/CategoryPathValueFacet.java | 61 ++++++
.../relewise/client/model/CategoryResult.java | 6 +-
.../relewise/client/model/CategoryScope.java | 6 +-
.../model/CategorySelectionStrategy.java | 12 +-
.../relewise/client/model/CategoryUpdate.java | 6 +-
.../model/CategoryUpdateUpdateKind.java | 6 +-
.../com/relewise/client/model/Change.java | 37 ++++
.../com/relewise/client/model/Channel.java | 63 ++++++
.../client/model/ClearTextParser.java | 6 +-
.../client/model/CollectionFilterType.java | 6 +-
.../com/relewise/client/model/Company.java | 73 +++++++
.../model/CompanyAdministrativeAction.java | 83 ++++++++
...CompanyAdministrativeActionUpdateKind.java | 37 ++++
.../client/model/CompanyDataFilter.java | 159 +++++++++++++++
.../client/model/CompanyDataHasKeyFilter.java | 73 +++++++
.../client/model/CompanyDisabledFilter.java | 57 ++++++
.../client/model/CompanyIdFilter.java | 76 +++++++
.../relewise/client/model/CompanyUpdate.java | 109 ++++++++++
.../client/model/CompanyUpdateUpdateKind.java | 37 ++++
.../client/model/ConditionConfiguration.java | 6 +-
.../client/model/ConditionTarget.java | 6 +-
.../client/model/ContainsCondition.java | 6 +-
...itionCollectionArgumentEvaluationMode.java | 6 +-
.../com/relewise/client/model/Content.java | 6 +-
.../model/ContentAdministrativeAction.java | 6 +-
...ContentAdministrativeActionUpdateKind.java | 6 +-
.../client/model/ContentAssortmentFacet.java | 6 +-
.../model/ContentAssortmentFacetResult.java | 6 +-
.../client/model/ContentAssortmentFilter.java | 76 +++++++
.../client/model/ContentAttributeSorting.java | 6 +-
...tentAttributeSortingSortableAttribute.java | 6 +-
.../client/model/ContentCategory.java | 6 +-
.../ContentCategoryAdministrativeAction.java | 6 +-
.../ContentCategoryAssortmentFilter.java | 12 +-
.../model/ContentCategoryDataFilter.java | 12 +-
.../ContentCategoryDataHasKeyFilter.java | 73 +++++++
.../ContentCategoryDataRelevanceModifier.java | 121 +++++++++++
...tentCategoryDetailsCollectionResponse.java | 6 +-
.../model/ContentCategoryDisabledFilter.java | 57 ++++++
.../ContentCategoryHasAncestorFilter.java | 12 +-
.../model/ContentCategoryHasChildFilter.java | 12 +-
.../ContentCategoryHasContentsFilter.java | 52 +++++
.../model/ContentCategoryHasParentFilter.java | 12 +-
.../client/model/ContentCategoryIdFilter.java | 12 +-
.../ContentCategoryIdFilterCategoryQuery.java | 6 +-
...tCategoryInterestTriggerConfiguration.java | 6 +-
.../ContentCategoryInterestTriggerResult.java | 6 +-
...CategoryInterestTriggerResultCategory.java | 6 +-
...restTriggerResultTriggerConfiguration.java | 6 +-
.../model/ContentCategoryLevelFilter.java | 12 +-
.../client/model/ContentCategoryQuery.java | 6 +-
...entCategoryRecentlyViewedByUserFilter.java | 83 ++++++++
...RecentlyViewedByUserRelevanceModifier.java | 97 +++++++++
.../ContentCategoryRecommendationRequest.java | 13 +-
...tegoryRecommendationRequestCollection.java | 24 +--
...CategoryRecommendationRequestSettings.java | 16 +-
...ContentCategoryRecommendationResponse.java | 6 +-
...egoryRecommendationResponseCollection.java | 6 +-
.../ContentCategoryRecommendationWeights.java | 6 +-
.../client/model/ContentCategoryResult.java | 6 +-
.../model/ContentCategoryResultDetails.java | 6 +-
...oryResultDetailsCategoryResultDetails.java | 6 +-
.../model/ContentCategorySearchRequest.java | 13 +-
.../model/ContentCategorySearchResponse.java | 6 +-
.../model/ContentCategorySearchSettings.java | 6 +-
.../client/model/ContentCategoryUpdate.java | 6 +-
.../client/model/ContentCategoryView.java | 19 +-
.../model/ContentDataBooleanValueFacet.java | 6 +-
.../ContentDataBooleanValueFacetResult.java | 6 +-
.../model/ContentDataDoubleRangeFacet.java | 6 +-
.../ContentDataDoubleRangeFacetResult.java | 6 +-
.../model/ContentDataDoubleRangesFacet.java | 6 +-
.../ContentDataDoubleRangesFacetResult.java | 6 +-
.../model/ContentDataDoubleValueFacet.java | 6 +-
.../ContentDataDoubleValueFacetResult.java | 6 +-
.../client/model/ContentDataFilter.java | 12 +-
.../client/model/ContentDataHasKeyFilter.java | 73 +++++++
.../model/ContentDataIntegerValueFacet.java | 6 +-
.../ContentDataIntegerValueFacetResult.java | 6 +-
.../client/model/ContentDataObjectFacet.java | 6 +-
.../model/ContentDataObjectFacetResult.java | 6 +-
.../model/ContentDataRelevanceModifier.java | 121 +++++++++++
.../client/model/ContentDataSorting.java | 6 +-
.../model/ContentDataStringValueFacet.java | 6 +-
.../ContentDataStringValueFacetResult.java | 6 +-
.../ContentDetailsCollectionResponse.java | 6 +-
.../client/model/ContentDisabledFilter.java | 57 ++++++
.../client/model/ContentFacetQuery.java | 14 +-
.../client/model/ContentFacetResult.java | 6 +-
.../model/ContentHasCategoriesFilter.java | 52 +++++
.../client/model/ContentIdFilter.java | 12 +-
.../model/ContentIndexConfiguration.java | 6 +-
.../model/ContentPopularitySorting.java | 6 +-
.../relewise/client/model/ContentQuery.java | 6 +-
.../ContentRecentlyViewedByUserFilter.java | 83 ++++++++
...RecentlyViewedByUserRelevanceModifier.java | 97 +++++++++
.../model/ContentRecommendationRequest.java | 13 +-
...ontentRecommendationRequestCollection.java | 18 +-
.../ContentRecommendationRequestSettings.java | 16 +-
.../model/ContentRecommendationResponse.java | 6 +-
...ntentRecommendationResponseCollection.java | 6 +-
.../client/model/ContentRelevanceSorting.java | 6 +-
.../relewise/client/model/ContentResult.java | 6 +-
.../client/model/ContentResultDetails.java | 6 +-
.../client/model/ContentSearchRequest.java | 13 +-
.../client/model/ContentSearchResponse.java | 6 +-
.../client/model/ContentSearchSettings.java | 6 +-
.../model/ContentSortBySpecification.java | 6 +-
.../relewise/client/model/ContentSorting.java | 6 +-
.../client/model/ContentSortingSorting.java | 6 +-
.../relewise/client/model/ContentUpdate.java | 6 +-
.../client/model/ContentUpdateUpdateKind.java | 6 +-
.../relewise/client/model/ContentView.java | 19 +-
...tentsViewedAfterViewingContentRequest.java | 13 +-
...edAfterViewingMultipleContentsRequest.java | 13 +-
...edAfterViewingMultipleProductsRequest.java | 13 +-
...tentsViewedAfterViewingProductRequest.java | 13 +-
.../model/ContextConditionConfiguration.java | 6 +-
.../com/relewise/client/model/Currency.java | 6 +-
.../CustomProductRecommendationRequest.java | 13 +-
.../client/model/DataDoubleSelector.java | 6 +-
.../com/relewise/client/model/DataFilter.java | 12 +-
.../client/model/DataIndexConfiguration.java | 6 +-
.../DataKeyPopularityMultiplierSelector.java | 62 ++++++
.../model/DataObjectBooleanValueFacet.java | 6 +-
.../DataObjectBooleanValueFacetResult.java | 6 +-
.../model/DataObjectDoubleRangeFacet.java | 6 +-
.../DataObjectDoubleRangeFacetResult.java | 6 +-
.../model/DataObjectDoubleRangesFacet.java | 6 +-
.../DataObjectDoubleRangesFacetResult.java | 6 +-
.../model/DataObjectDoubleValueFacet.java | 6 +-
.../DataObjectDoubleValueFacetResult.java | 6 +-
.../client/model/DataObjectFacet.java | 6 +-
.../client/model/DataObjectFacetResult.java | 6 +-
.../client/model/DataObjectFilter.java | 6 +-
.../model/DataObjectStringValueFacet.java | 6 +-
.../DataObjectStringValueFacetResult.java | 6 +-
.../client/model/DataObjectValueSelector.java | 13 +-
.../client/model/DataRelevanceModifier.java | 128 ++++++++++++
.../client/model/DataSelectionStrategy.java | 6 +-
.../com/relewise/client/model/DataValue.java | 6 +-
.../client/model/DataValueDataValueTypes.java | 6 +-
.../relewise/client/model/DecompoundRule.java | 8 +-
.../DecompoundRuleSaveSearchRulesRequest.java | 8 +-
...DecompoundRuleSaveSearchRulesResponse.java | 6 +-
.../DecompoundRuleSearchRulesResponse.java | 8 +-
.../client/model/DecompoundRulesRequest.java | 6 +-
.../model/DecompoundRulesRequestSortBy.java | 6 +-
...dRulesRequestSortBySearchRulesRequest.java | 8 +-
.../DecompoundRulesRequestSortBySorting.java | 6 +-
.../client/model/DecompoundRulesResponse.java | 6 +-
.../com/relewise/client/model/Decrease.java | 37 ++++
.../model/DeleteDecompoundRulesRequest.java | 6 +-
.../model/DeleteMerchandisingRuleRequest.java | 6 +-
.../model/DeletePredictionRulesRequest.java | 6 +-
.../model/DeleteRedirectRulesRequest.java | 6 +-
.../model/DeleteSearchIndexRequest.java | 6 +-
...eleteSearchResultModifierRulesRequest.java | 67 ++++++
.../model/DeleteSearchRulesRequest.java | 8 +-
.../model/DeleteSearchRulesResponse.java | 6 +-
.../DeleteSearchTermModifierRulesRequest.java | 67 ++++++
.../model/DeleteStemmingRulesRequest.java | 6 +-
.../client/model/DeleteSynonymsRequest.java | 6 +-
.../client/model/DeleteSynonymsResponse.java | 6 +-
.../DeleteTriggerConfigurationRequest.java | 6 +-
.../client/model/DistinctCondition.java | 6 +-
.../model/DoubleAvailableFacetValue.java | 6 +-
.../client/model/DoubleChainableRange.java | 6 +-
...ubleChainableRangeAvailableFacetValue.java | 6 +-
.../model/DoubleContentDataRangeFacet.java | 6 +-
.../DoubleContentDataRangeFacetResult.java | 6 +-
.../model/DoubleContentDataRangesFacet.java | 6 +-
.../DoubleContentDataRangesFacetResult.java | 6 +-
.../model/DoubleContentDataValueFacet.java | 6 +-
.../DoubleContentDataValueFacetResult.java | 6 +-
.../model/DoubleDataObjectRangeFacet.java | 6 +-
.../DoubleDataObjectRangeFacetResult.java | 6 +-
.../model/DoubleDataObjectRangesFacet.java | 6 +-
.../DoubleDataObjectRangesFacetResult.java | 6 +-
.../model/DoubleDataObjectValueFacet.java | 6 +-
.../DoubleDataObjectValueFacetResult.java | 6 +-
.../client/model/DoubleDataRangeFacet.java | 6 +-
.../client/model/DoubleDataRangesFacet.java | 6 +-
.../client/model/DoubleDataValueFacet.java | 6 +-
.../model/DoubleDataValueFacetResult.java | 6 +-
.../model/DoubleDoubleValueFacetResult.java | 6 +-
.../DoubleProductCategoryDataRangeFacet.java | 6 +-
...leProductCategoryDataRangeFacetResult.java | 6 +-
.../DoubleProductCategoryDataRangesFacet.java | 6 +-
...eProductCategoryDataRangesFacetResult.java | 6 +-
.../DoubleProductCategoryDataValueFacet.java | 6 +-
...leProductCategoryDataValueFacetResult.java | 6 +-
.../model/DoubleProductDataRangeFacet.java | 6 +-
.../DoubleProductDataRangeFacetResult.java | 6 +-
.../model/DoubleProductDataRangesFacet.java | 6 +-
.../DoubleProductDataRangesFacetResult.java | 6 +-
.../model/DoubleProductDataValueFacet.java | 6 +-
.../DoubleProductDataValueFacetResult.java | 6 +-
.../relewise/client/model/DoubleRange.java | 6 +-
.../model/DoubleRangeAvailableFacetValue.java | 6 +-
.../client/model/DoubleRangeFacetResult.java | 6 +-
.../client/model/DoubleRangesFacetResult.java | 6 +-
.../client/model/DoubleValueFacet.java | 6 +-
.../client/model/DoubleValueFacetResult.java | 6 +-
.../client/model/EntitiesRequest.java | 73 +++++++
.../EntityChangeTriggerConfiguration.java | 179 +++++++++++++++++
.../model/EntityChangeTriggerResult.java | 40 ++++
.../com/relewise/client/model/EntityType.java | 6 +-
.../client/model/EqualsCondition.java | 6 +-
.../relewise/client/model/EvaluationMode.java | 6 +-
.../model/ExpectedSearchTermResult.java | 6 +-
.../java/com/relewise/client/model/Facet.java | 7 +-
.../com/relewise/client/model/FacetQuery.java | 30 +++
.../relewise/client/model/FacetResult.java | 7 +-
.../relewise/client/model/FacetSettings.java | 16 +-
.../relewise/client/model/FacetingField.java | 6 +-
.../client/model/FieldIndexConfiguration.java | 42 +++-
.../com/relewise/client/model/Filter.java | 50 ++++-
.../client/model/FilterCollection.java | 6 +-
.../com/relewise/client/model/FilterRule.java | 6 +-
.../client/model/FilterScopeSettings.java | 31 +++
.../relewise/client/model/FilterScopes.java | 51 +++++
.../relewise/client/model/FilterSettings.java | 40 ++++
.../model/FilteredVariantsSettings.java | 50 +++++
.../model/FixedDoubleValueSelector.java | 6 +-
.../client/model/FixedPositionRule.java | 6 +-
.../model/GlobalTriggerConfiguration.java | 6 +-
.../GlobalTriggerConfigurationRequest.java | 6 +-
.../GlobalTriggerConfigurationResponse.java | 6 +-
.../client/model/GreaterThanCondition.java | 6 +-
.../client/model/HasActivityCondition.java | 6 +-
.../model/HasAncestorCategoryFilter.java | 12 +-
.../model/HasAuthenticatedIdCondition.java | 6 +-
.../client/model/HasChildCategoryFilter.java | 12 +-
.../model/HasClassificationCondition.java | 6 +-
.../client/model/HasEmailCondition.java | 6 +-
.../client/model/HasIdentifierCondition.java | 6 +-
.../model/HasLineItemsInCartCondition.java | 6 +-
.../model/HasModifiedCartCondition.java | 6 +-
.../client/model/HasParentCategoryFilter.java | 12 +-
.../client/model/HasPlacedOrderCondition.java | 6 +-
...sRecentlyReceivedSameTriggerCondition.java | 6 +-
.../HasRecentlyReceivedTriggerCondition.java | 6 +-
.../client/model/HasValueCondition.java | 51 +++++
.../com/relewise/client/model/HtmlParser.java | 6 +-
.../relewise/client/model/IBrandFilter.java | 6 +-
.../client/model/ICategoryFilter.java | 6 +-
.../com/relewise/client/model/IChange.java | 22 ++
.../relewise/client/model/ICompanyFilter.java | 22 ++
.../IContentCategoryRelevanceModifier.java | 22 ++
.../relewise/client/model/IContentFilter.java | 6 +-
.../model/IContentRelevanceModifier.java | 22 ++
.../IProductCategoryRelevanceModifier.java | 22 ++
.../relewise/client/model/IProductFilter.java | 6 +-
.../model/IProductRelevanceModifier.java | 6 +-
.../com/relewise/client/model/ISchedule.java | 22 ++
.../relewise/client/model/ITriggerResult.java | 6 +-
.../client/model/IUserIdentifier.java | 6 +-
.../relewise/client/model/IVariantFilter.java | 7 +-
.../model/IVariantRelevanceModifier.java | 6 +-
.../com/relewise/client/model/Increase.java | 37 ++++
.../client/model/IndexConfiguration.java | 6 +-
.../model/InputConditionConfiguration.java | 6 +-
.../client/model/InputModifierRule.java | 6 +-
.../model/IntegerAvailableFacetValue.java | 6 +-
.../model/IntegerContentDataValueFacet.java | 6 +-
.../IntegerContentDataValueFacetResult.java | 6 +-
.../client/model/IntegerDataValueFacet.java | 6 +-
.../model/IntegerDataValueFacetResult.java | 6 +-
.../model/IntegerIntegerValueFacetResult.java | 6 +-
.../model/IntegerProductDataValueFacet.java | 6 +-
.../IntegerProductDataValueFacetResult.java | 6 +-
.../relewise/client/model/IntegerRange.java | 6 +-
.../client/model/IntegerValueFacet.java | 6 +-
.../client/model/IntegerValueFacetResult.java | 6 +-
.../relewise/client/model/KeyMultiplier.java | 6 +-
.../com/relewise/client/model/Language.java | 9 +-
.../model/LanguageIndexConfiguration.java | 6 +-
.../LanguageIndexConfigurationEntry.java | 6 +-
.../client/model/LessThanCondition.java | 6 +-
.../client/model/LicensedRequest.java | 6 +-
.../com/relewise/client/model/LineItem.java | 34 +++-
.../client/model/LocalDateTimeRange.java | 55 +++++
.../com/relewise/client/model/Location.java | 125 ++++++++++++
.../client/model/LocationEntityState.java | 37 ++++
...nsRequestEntityFiltersEntitiesRequest.java | 70 +++++++
...cationMetadataValuesRetailMediaEntity.java | 59 ++++++
...aValuesRetailMediaEntityEntityFilters.java | 50 +++++
...tionLocationEntityStateEntityResponse.java | 75 +++++++
.../client/model/LocationMetadataValues.java | 120 +++++++++++
.../client/model/LocationPlacement.java | 83 ++++++++
.../model/LocationPlacementCollection.java | 53 +++++
.../model/LocationPlacementVariation.java | 73 +++++++
.../LocationPlacementVariationCollection.java | 53 +++++
.../model/LocationSaveEntitiesRequest.java | 50 +++++
.../model/LocationSaveEntitiesResponse.java | 46 +++++
.../client/model/LocationsRequest.java | 67 ++++++
.../model/LocationsRequestEntityFilters.java | 110 ++++++++++
.../client/model/LocationsRequestSortBy.java | 37 ++++
.../model/LocationsRequestSortBySorting.java | 55 +++++
.../client/model/LocationsResponse.java | 89 ++++++++
.../client/model/MatchTypeSettings.java | 80 ++++++++
.../client/model/MerchandisingRule.java | 6 +-
.../MerchandisingRuleCollectionResponse.java | 6 +-
.../model/MerchandisingRuleRequest.java | 6 +-
.../model/MerchandisingRuleResponse.java | 6 +-
.../model/MerchandisingRulesRequest.java | 6 +-
.../relewise/client/model/MetadataValues.java | 70 +++++++
...MixedRecommendationResponseCollection.java | 6 +-
.../java/com/relewise/client/model/Money.java | 6 +-
.../relewise/client/model/MultiCurrency.java | 6 +-
.../relewise/client/model/Multilingual.java | 6 +-
.../client/model/MultilingualValue.java | 6 +-
.../client/model/ObjectValueCondition.java | 17 +-
.../model/ObjectValueContainsCondition.java | 6 +-
...jectValueContainsConditionCompareMode.java | 6 +-
.../model/ObjectValueEqualsCondition.java | 6 +-
.../ObjectValueGreaterThanCondition.java | 6 +-
.../model/ObjectValueInRangeCondition.java | 6 +-
.../model/ObjectValueLessThanCondition.java | 6 +-
.../model/ObjectValueMaxByCondition.java | 6 +-
.../model/ObjectValueMinByCondition.java | 6 +-
.../ObjectValueRelativeDateTimeCondition.java | 190 ++++++++++++++++++
.../model/ObservableProductAttribute.java | 32 +++
.../ObservableProductAttributeSelector.java | 50 +++++
.../ObservableProductDataValueSelector.java | 50 +++++
.../model/ObservableVariantAttribute.java | 32 +++
.../ObservableVariantAttributeSelector.java | 50 +++++
.../ObservableVariantDataValueSelector.java | 50 +++++
.../relewise/client/model/OrCondition.java | 6 +-
.../com/relewise/client/model/OrFilter.java | 12 +-
.../java/com/relewise/client/model/Order.java | 41 +++-
...nContentRecommendationRequestSettings.java | 16 +-
...nProductRecommendationRequestSettings.java | 16 +-
...riddenSelectedBrandPropertiesSettings.java | 6 +-
...ddenSelectedContentPropertiesSettings.java | 6 +-
...ddenSelectedProductPropertiesSettings.java | 6 +-
...ddenSelectedVariantPropertiesSettings.java | 6 +-
.../client/model/PaginatedSearchRequest.java | 13 +-
.../client/model/PaginatedSearchResponse.java | 6 +-
.../com/relewise/client/model/Parser.java | 6 +-
.../PersonalBrandRecommendationRequest.java | 13 +-
...lContentCategoryRecommendationRequest.java | 13 +-
.../PersonalContentRecommendationRequest.java | 13 +-
...lProductCategoryRecommendationRequest.java | 13 +-
.../PersonalProductRecommendationRequest.java | 13 +-
.../PopularBrandsRecommendationRequest.java | 13 +-
...ontentCategoriesRecommendationRequest.java | 13 +-
.../client/model/PopularContentsRequest.java | 13 +-
...roductCategoriesRecommendationRequest.java | 13 +-
.../client/model/PopularProductsRequest.java | 26 ++-
...pularSearchTermsRecommendationRequest.java | 13 +-
.../model/PopularityMultiplierSelector.java | 25 +++
.../client/model/PopularityTypes.java | 11 +-
.../relewise/client/model/PredictionRule.java | 8 +-
.../client/model/PredictionRulePromotion.java | 6 +-
.../PredictionRulePromotionPosition.java | 6 +-
.../PredictionRuleSaveSearchRulesRequest.java | 8 +-
...PredictionRuleSaveSearchRulesResponse.java | 6 +-
.../PredictionRuleSearchRulesResponse.java | 8 +-
.../model/PredictionRuleSuppression.java | 6 +-
...redictionRuleSuppressionConditionKind.java | 6 +-
.../client/model/PredictionRulesRequest.java | 6 +-
.../model/PredictionRulesRequestSortBy.java | 6 +-
...nRulesRequestSortBySearchRulesRequest.java | 8 +-
.../PredictionRulesRequestSortBySorting.java | 6 +-
.../client/model/PredictionRulesResponse.java | 6 +-
.../client/model/PredictionSourceType.java | 6 +-
.../client/model/PriceRangeFacet.java | 6 +-
.../client/model/PriceRangeFacetResult.java | 6 +-
.../client/model/PriceRangesFacet.java | 6 +-
.../client/model/PriceRangesFacetResult.java | 6 +-
.../client/model/PriceSelectionStrategy.java | 6 +-
.../com/relewise/client/model/Product.java | 6 +-
.../model/ProductAdministrativeAction.java | 6 +-
...ProductAdministrativeActionUpdateKind.java | 6 +-
.../client/model/ProductAndVariantId.java | 6 +-
.../ProductAndVariantIdAbandonedSearch.java | 12 +-
.../model/ProductAndVariantIdFilter.java | 12 +-
.../client/model/ProductAssortmentFacet.java | 6 +-
.../model/ProductAssortmentFacetResult.java | 6 +-
.../client/model/ProductAssortmentFilter.java | 12 +-
.../ProductAssortmentRelevanceModifier.java | 14 +-
.../client/model/ProductAttributeSorting.java | 6 +-
...ductAttributeSortingSortableAttribute.java | 6 +-
.../client/model/ProductCategory.java | 6 +-
.../ProductCategoryAdministrativeAction.java | 6 +-
.../model/ProductCategoryAssortmentFacet.java | 6 +-
.../ProductCategoryAssortmentFacetResult.java | 6 +-
.../ProductCategoryAssortmentFilter.java | 12 +-
.../ProductCategoryAttributeSorting.java | 6 +-
...goryAttributeSortingSortableAttribute.java | 6 +-
.../ProductCategoryDataBooleanValueFacet.java | 6 +-
...ctCategoryDataBooleanValueFacetResult.java | 6 +-
.../ProductCategoryDataDoubleRangeFacet.java | 6 +-
...uctCategoryDataDoubleRangeFacetResult.java | 6 +-
.../ProductCategoryDataDoubleRangesFacet.java | 6 +-
...ctCategoryDataDoubleRangesFacetResult.java | 6 +-
.../ProductCategoryDataDoubleValueFacet.java | 6 +-
...uctCategoryDataDoubleValueFacetResult.java | 6 +-
.../model/ProductCategoryDataFilter.java | 12 +-
.../ProductCategoryDataHasKeyFilter.java | 73 +++++++
.../model/ProductCategoryDataObjectFacet.java | 6 +-
.../ProductCategoryDataObjectFacetResult.java | 6 +-
.../ProductCategoryDataRelevanceModifier.java | 121 +++++++++++
.../model/ProductCategoryDataSorting.java | 6 +-
.../ProductCategoryDataStringValueFacet.java | 6 +-
...uctCategoryDataStringValueFacetResult.java | 6 +-
...ductCategoryDetailsCollectionResponse.java | 6 +-
.../model/ProductCategoryDisabledFilter.java | 57 ++++++
.../model/ProductCategoryFacetQuery.java | 14 +-
.../model/ProductCategoryFacetResult.java | 6 +-
.../ProductCategoryHasAncestorFilter.java | 12 +-
.../model/ProductCategoryHasChildFilter.java | 12 +-
.../model/ProductCategoryHasParentFilter.java | 12 +-
.../ProductCategoryHasProductsFilter.java | 52 +++++
.../client/model/ProductCategoryIdFilter.java | 12 +-
.../ProductCategoryIdFilterCategoryQuery.java | 6 +-
.../ProductCategoryIdRelevanceModifier.java | 35 +++-
.../ProductCategoryIndexConfiguration.java | 6 +-
...tCategoryInterestTriggerConfiguration.java | 6 +-
.../ProductCategoryInterestTriggerResult.java | 6 +-
...CategoryInterestTriggerResultCategory.java | 6 +-
...riggerResultCategoryProductAndVariant.java | 6 +-
...restTriggerResultTriggerConfiguration.java | 6 +-
.../model/ProductCategoryLevelFilter.java | 12 +-
.../ProductCategoryPopularitySorting.java | 6 +-
.../client/model/ProductCategoryQuery.java | 6 +-
...uctCategoryRecentlyViewedByUserFilter.java | 83 ++++++++
...RecentlyViewedByUserRelevanceModifier.java | 97 +++++++++
.../ProductCategoryRecommendationRequest.java | 13 +-
...tegoryRecommendationRequestCollection.java | 24 +--
...CategoryRecommendationRequestSettings.java | 16 +-
...ProductCategoryRecommendationResponse.java | 6 +-
...egoryRecommendationResponseCollection.java | 6 +-
.../ProductCategoryRecommendationWeights.java | 6 +-
.../ProductCategoryRelevanceSorting.java | 6 +-
.../client/model/ProductCategoryResult.java | 6 +-
.../model/ProductCategoryResultDetails.java | 6 +-
...oryResultDetailsCategoryResultDetails.java | 6 +-
.../model/ProductCategorySearchRequest.java | 13 +-
.../model/ProductCategorySearchResponse.java | 6 +-
.../model/ProductCategorySearchSettings.java | 6 +-
.../ProductCategorySortBySpecification.java | 6 +-
.../client/model/ProductCategorySorting.java | 6 +-
.../model/ProductCategorySortingSorting.java | 6 +-
.../client/model/ProductCategoryUpdate.java | 6 +-
.../client/model/ProductCategoryView.java | 19 +-
.../ProductChangeTriggerConfiguration.java | 155 ++++++++++++++
.../model/ProductChangeTriggerResult.java | 67 ++++++
...iggerResultProductChangeResultDetails.java | 77 +++++++
...esultDetailsEntityChangeTriggerResult.java | 46 +++++
...ectorEntityChangeTriggerConfiguration.java | 176 ++++++++++++++++
.../ProductChangeTriggerResultSettings.java | 50 +++++
...angeTriggerResultTriggerConfiguration.java | 111 ++++++++++
.../model/ProductDataBooleanValueFacet.java | 6 +-
.../ProductDataBooleanValueFacetResult.java | 6 +-
.../model/ProductDataDoubleRangeFacet.java | 6 +-
.../ProductDataDoubleRangeFacetResult.java | 6 +-
.../model/ProductDataDoubleRangesFacet.java | 6 +-
.../ProductDataDoubleRangesFacetResult.java | 6 +-
.../model/ProductDataDoubleValueFacet.java | 6 +-
.../ProductDataDoubleValueFacetResult.java | 6 +-
.../client/model/ProductDataFilter.java | 12 +-
.../client/model/ProductDataHasKeyFilter.java | 73 +++++++
.../model/ProductDataIntegerValueFacet.java | 6 +-
.../ProductDataIntegerValueFacetResult.java | 6 +-
.../client/model/ProductDataObjectFacet.java | 6 +-
.../model/ProductDataObjectFacetResult.java | 6 +-
.../model/ProductDataObjectSorting.java | 6 +-
.../model/ProductDataRelevanceModifier.java | 57 ++----
.../client/model/ProductDataSorting.java | 6 +-
.../model/ProductDataStringValueFacet.java | 6 +-
.../ProductDataStringValueFacetResult.java | 6 +-
.../ProductDetailsCollectionResponse.java | 19 +-
.../client/model/ProductDisabledFilter.java | 57 ++++++
.../model/ProductDisplayNameFilter.java | 12 +-
.../client/model/ProductFacetQuery.java | 14 +-
.../client/model/ProductFacetResult.java | 6 +-
.../model/ProductHasCategoriesFilter.java | 52 +++++
.../model/ProductHasVariantsFilter.java | 12 +-
.../client/model/ProductIdFilter.java | 12 +-
.../model/ProductIdRelevanceModifier.java | 17 +-
.../model/ProductIndexConfiguration.java | 6 +-
.../ProductInterestTriggerConfiguration.java | 6 +-
.../model/ProductInterestTriggerResult.java | 6 +-
...nterestTriggerResultProductAndVariant.java | 6 +-
...ctInterestTriggerResultResultSettings.java | 6 +-
...restTriggerResultTriggerConfiguration.java | 6 +-
.../client/model/ProductListPriceFilter.java | 12 +-
.../ProductListPriceRelevanceModifier.java | 35 +++-
.../model/ProductPerformanceRequest.java | 6 +-
...oductPerformanceRequestOrderByOptions.java | 6 +-
...tPerformanceRequestVariantDataOptions.java | 6 +-
.../model/ProductPerformanceResponse.java | 6 +-
.../model/ProductPerformanceResult.java | 6 +-
.../ProductPerformanceResultCartMetrics.java | 6 +-
...oductPerformanceResultCategoryMetrics.java | 6 +-
...erformanceResultClassificationMetrics.java | 6 +-
.../ProductPerformanceResultRankMetrics.java | 6 +-
...oductPerformanceResultSalesByCurrency.java | 6 +-
.../ProductPerformanceResultSalesMetrics.java | 6 +-
...ResultSalesWithKnownCartOpenerMetrics.java | 6 +-
...PerformanceResultViewsAndSalesMetrics.java | 6 +-
.../ProductPerformanceResultViewsMetrics.java | 6 +-
.../model/ProductPopularitySorting.java | 6 +-
.../client/model/ProductPromotion.java | 67 ++++++
.../model/ProductPromotionSpecification.java | 54 +++++
...roductPromotionSpecificationVariation.java | 54 +++++
.../client/model/ProductPropertySelector.java | 24 +++
.../relewise/client/model/ProductQuery.java | 94 +++++++--
...oductRecentlyPurchasedByCompanyFilter.java | 113 +++++++++++
...lyPurchasedByCompanyRelevanceModifier.java | 152 ++++++++++++++
...tRecentlyPurchasedByUserCompanyFilter.java | 100 +++++++++
...rchasedByUserCompanyRelevanceModifier.java | 143 +++++++++++++
.../ProductRecentlyPurchasedByUserFilter.java | 28 ++-
...tlyPurchasedByUserParentCompanyFilter.java | 100 +++++++++
...entlyPurchasedByUserRelevanceModifier.java | 49 ++++-
.../ProductRecentlyViewedByCompanyFilter.java | 113 +++++++++++
...entlyViewedByCompanyRelevanceModifier.java | 152 ++++++++++++++
...ductRecentlyViewedByUserCompanyFilter.java | 100 +++++++++
...yViewedByUserCompanyRelevanceModifier.java | 143 +++++++++++++
.../ProductRecentlyViewedByUserFilter.java | 28 ++-
...centlyViewedByUserParentCompanyFilter.java | 100 +++++++++
...RecentlyViewedByUserRelevanceModifier.java | 49 ++---
.../model/ProductRecommendationRequest.java | 13 +-
...roductRecommendationRequestCollection.java | 6 +-
.../ProductRecommendationRequestSettings.java | 16 +-
.../model/ProductRecommendationResponse.java | 6 +-
...oductRecommendationResponseCollection.java | 6 +-
.../client/model/ProductRelevanceSorting.java | 6 +-
.../relewise/client/model/ProductResult.java | 50 ++++-
.../client/model/ProductResultDetails.java | 30 ++-
.../client/model/ProductSalesPriceFilter.java | 12 +-
.../ProductSalesPriceRelevanceModifier.java | 35 +++-
.../client/model/ProductSearchRequest.java | 23 ++-
.../client/model/ProductSearchResponse.java | 16 +-
.../model/ProductSearchResultConstraint.java | 31 +++
.../client/model/ProductSearchSettings.java | 19 +-
.../model/ProductSortBySpecification.java | 6 +-
.../relewise/client/model/ProductSorting.java | 6 +-
.../client/model/ProductSortingSorting.java | 6 +-
.../relewise/client/model/ProductUpdate.java | 6 +-
.../client/model/ProductUpdateUpdateKind.java | 6 +-
.../relewise/client/model/ProductVariant.java | 6 +-
.../model/ProductVariantAttributeSorting.java | 6 +-
...iantAttributeSortingSortableAttribute.java | 6 +-
.../ProductVariantSpecificationSorting.java | 6 +-
.../relewise/client/model/ProductView.java | 19 +-
...ductsViewedAfterViewingContentRequest.java | 13 +-
...ductsViewedAfterViewingProductRequest.java | 13 +-
.../com/relewise/client/model/Promotion.java | 51 +++++
.../client/model/PromotionCollection.java | 53 +++++
.../client/model/PromotionLocation.java | 65 ++++++
.../model/PromotionLocationCollection.java | 53 +++++
.../model/PromotionLocationPlacement.java | 48 +++++
.../PromotionLocationPlacementCollection.java | 53 +++++
.../client/model/PromotionSpecification.java | 31 +++
.../PromotionSpecificationCollection.java | 40 ++++
.../PromotionSpecificationVariation.java | 31 +++
...otionSpecificationVariationCollection.java | 40 ++++
.../model/PurchasedByUserCompanyInfo.java | 65 ++++++
.../client/model/PurchasedByUserInfo.java | 6 +-
.../PurchasedWithCurrentCartRequest.java | 13 +-
.../PurchasedWithMultipleProductsRequest.java | 13 +-
.../model/PurchasedWithProductRequest.java | 13 +-
...RecentlyViewedByUserRelevanceModifier.java | 92 +++++++++
.../model/RecentlyViewedProductsRequest.java | 13 +-
.../RecommendPopularSearchTermSettings.java | 6 +-
.../client/model/RecommendationRequest.java | 23 ++-
.../client/model/RecommendationResponse.java | 6 +-
.../client/model/RecommendationSettings.java | 6 +-
.../model/RecommendationTypeCollection.java | 6 +-
.../relewise/client/model/RedirectResult.java | 6 +-
.../relewise/client/model/RedirectRule.java | 8 +-
.../RedirectRuleSaveSearchRulesRequest.java | 8 +-
.../RedirectRuleSaveSearchRulesResponse.java | 6 +-
.../RedirectRuleSearchRulesResponse.java | 8 +-
.../client/model/RedirectRulesRequest.java | 6 +-
.../model/RedirectRulesRequestSortBy.java | 6 +-
...tRulesRequestSortBySearchRulesRequest.java | 8 +-
.../RedirectRulesRequestSortBySorting.java | 6 +-
.../client/model/RedirectRulesResponse.java | 6 +-
.../model/RelativeDateTimeCondition.java | 116 +++++++++++
.../client/model/RelativeTimeComparison.java | 32 +++
.../client/model/RelevanceModifier.java | 20 +-
.../model/RelevanceModifierCollection.java | 19 +-
.../client/model/RequestConfiguration.java | 6 +-
.../RequestConfigurationPrioritization.java | 6 +-
.../client/model/RequestContextFilter.java | 16 +-
.../client/model/RequestFilterCriteria.java | 60 ++++++
.../ResultMustHaveVariantConstraint.java | 50 +++++
.../client/model/RetailMediaEntity.java | 40 ++++
.../client/model/RetailMediaQuery.java | 47 +++++
.../RetailMediaQueryLocationSelector.java | 88 ++++++++
.../RetailMediaQueryPlacementSelector.java | 45 +++++
.../RetailMediaQueryVariationSelector.java | 45 +++++
.../client/model/RetailMediaResult.java | 49 +++++
.../model/RetailMediaResultPlacement.java | 54 +++++
...etailMediaResultPlacementResultEntity.java | 40 ++++
...diaResultPlacementResultEntityProduct.java | 40 ++++
.../client/model/SaveAdvertisersRequest.java | 67 ++++++
.../client/model/SaveAdvertisersResponse.java | 66 ++++++
.../client/model/SaveCampaignsRequest.java | 67 ++++++
.../client/model/SaveCampaignsResponse.java | 66 ++++++
.../model/SaveDecompoundRulesRequest.java | 6 +-
.../model/SaveDecompoundRulesResponse.java | 6 +-
...SaveGlobalTriggerConfigurationRequest.java | 6 +-
.../client/model/SaveLocationsRequest.java | 67 ++++++
.../client/model/SaveLocationsResponse.java | 66 ++++++
.../model/SaveMerchandisingRuleRequest.java | 6 +-
.../model/SavePredictionRulesRequest.java | 6 +-
.../model/SavePredictionRulesResponse.java | 6 +-
.../model/SaveRedirectRulesRequest.java | 6 +-
.../model/SaveRedirectRulesResponse.java | 6 +-
.../client/model/SaveSearchIndexRequest.java | 6 +-
.../SaveSearchResultModifierRulesRequest.java | 67 ++++++
...SaveSearchResultModifierRulesResponse.java | 66 ++++++
.../SaveSearchTermModifierRulesRequest.java | 67 ++++++
.../SaveSearchTermModifierRulesResponse.java | 66 ++++++
.../model/SaveStemmingRulesRequest.java | 6 +-
.../model/SaveStemmingRulesResponse.java | 6 +-
.../client/model/SaveSynonymsRequest.java | 6 +-
.../client/model/SaveSynonymsResponse.java | 6 +-
.../SaveTriggerConfigurationRequest.java | 6 +-
.../client/model/ScheduledPeriod.java | 61 ++++++
.../relewise/client/model/SearchIndex.java | 6 +-
.../model/SearchIndexCollectionResponse.java | 6 +-
.../client/model/SearchIndexRequest.java | 6 +-
.../client/model/SearchIndexResponse.java | 6 +-
.../client/model/SearchIndexSelector.java | 6 +-
.../client/model/SearchIndexesRequest.java | 6 +-
.../relewise/client/model/SearchRequest.java | 20 +-
.../client/model/SearchRequestCollection.java | 13 +-
.../relewise/client/model/SearchResponse.java | 6 +-
.../model/SearchResponseCollection.java | 6 +-
.../model/SearchResultModifierRule.java | 139 +++++++++++++
...rchResultModifierRuleAddFiltersAction.java | 50 +++++
...ResultModifierRuleAddTermFilterAction.java | 61 ++++++
.../SearchResultModifierRuleRuleAction.java | 32 +++
...ultModifierRuleSaveSearchRulesRequest.java | 56 ++++++
...ltModifierRuleSaveSearchRulesResponse.java | 50 +++++
...ResultModifierRuleSearchRulesResponse.java | 62 ++++++
.../SearchResultModifierRulesRequest.java | 67 ++++++
...earchResultModifierRulesRequestSortBy.java | 32 +++
...rRulesRequestSortBySearchRulesRequest.java | 76 +++++++
...sultModifierRulesRequestSortBySorting.java | 55 +++++
.../SearchResultModifierRulesResponse.java | 73 +++++++
.../com/relewise/client/model/SearchRule.java | 16 +-
.../client/model/SearchRuleFilters.java | 6 +-
.../relewise/client/model/SearchSettings.java | 6 +-
.../com/relewise/client/model/SearchTerm.java | 19 +-
...TermBasedProductRecommendationRequest.java | 13 +-
.../client/model/SearchTermCondition.java | 6 +-
.../SearchTermConditionConditionKind.java | 6 +-
.../client/model/SearchTermModifierRule.java | 139 +++++++++++++
...rchTermModifierRuleAppendToTermAction.java | 50 +++++
...hTermModifierRuleRemoveFromTermAction.java | 50 +++++
...archTermModifierRuleReplaceTermAction.java | 50 +++++
...mModifierRuleReplaceWordsInTermAction.java | 61 ++++++
.../SearchTermModifierRuleRuleAction.java | 34 ++++
...ermModifierRuleSaveSearchRulesRequest.java | 56 ++++++
...rmModifierRuleSaveSearchRulesResponse.java | 50 +++++
...chTermModifierRuleSearchRulesResponse.java | 62 ++++++
.../model/SearchTermModifierRulesRequest.java | 67 ++++++
.../SearchTermModifierRulesRequestSortBy.java | 32 +++
...rRulesRequestSortBySearchRulesRequest.java | 76 +++++++
...TermModifierRulesRequestSortBySorting.java | 55 +++++
.../SearchTermModifierRulesResponse.java | 73 +++++++
.../model/SearchTermPredictionRequest.java | 13 +-
.../model/SearchTermPredictionResponse.java | 6 +-
.../model/SearchTermPredictionResult.java | 6 +-
...rchTermPredictionResultPredictionType.java | 6 +-
.../model/SearchTermPredictionSettings.java | 6 +-
.../SearchTermRecommendationResponse.java | 6 +-
.../client/model/SearchTermResult.java | 6 +-
.../com/relewise/client/model/SearchType.java | 6 +-
.../client/model/SearchTypeCollection.java | 6 +-
.../SelectedBrandPropertiesSettings.java | 6 +-
.../SelectedCategoryPropertiesSettings.java | 106 ++++++++++
...ctedContentCategoryPropertiesSettings.java | 50 ++---
.../SelectedContentPropertiesSettings.java | 6 +-
...ctedProductCategoryPropertiesSettings.java | 50 ++---
.../SelectedProductPropertiesSettings.java | 36 +++-
.../SelectedVariantPropertiesSettings.java | 6 +-
.../client/model/SignificantDataValue.java | 6 +-
...DataValueSignificantDataValueComparer.java | 6 +-
.../SimilarProductsEvaluationSettings.java | 16 +-
.../client/model/SimilarProductsRequest.java | 23 ++-
.../SimilarVariantEvaluationSettings.java | 99 +++++++++
.../com/relewise/client/model/SortMode.java | 6 +-
.../com/relewise/client/model/SortOrder.java | 6 +-
.../client/model/SortProductsRequest.java | 13 +-
.../client/model/SortVariantsRequest.java | 13 +-
.../SpecificationsIndexConfiguration.java | 6 +-
.../com/relewise/client/model/Statistics.java | 6 +-
.../relewise/client/model/StemmingRule.java | 8 +-
.../StemmingRuleSaveSearchRulesRequest.java | 8 +-
.../StemmingRuleSaveSearchRulesResponse.java | 6 +-
.../StemmingRuleSearchRulesResponse.java | 8 +-
.../client/model/StemmingRulesRequest.java | 6 +-
.../model/StemmingRulesRequestSortBy.java | 6 +-
...gRulesRequestSortBySearchRulesRequest.java | 8 +-
.../StemmingRulesRequestSortBySorting.java | 6 +-
.../client/model/StemmingRulesResponse.java | 6 +-
.../client/model/StringAbandonedSearch.java | 12 +-
.../model/StringAvailableFacetValue.java | 6 +-
...gBrandNameAndIdResultValueFacetResult.java | 6 +-
...tegoryNameAndIdResultValueFacetResult.java | 6 +-
.../model/StringContentDataValueFacet.java | 6 +-
.../StringContentDataValueFacetResult.java | 6 +-
.../model/StringDataObjectValueFacet.java | 6 +-
.../StringDataObjectValueFacetResult.java | 6 +-
.../client/model/StringDataValueFacet.java | 6 +-
.../model/StringDataValueFacetResult.java | 6 +-
.../StringProductCategoryDataValueFacet.java | 6 +-
...ngProductCategoryDataValueFacetResult.java | 6 +-
.../model/StringProductDataValueFacet.java | 6 +-
.../StringProductDataValueFacetResult.java | 6 +-
.../model/StringStringValueFacetResult.java | 6 +-
.../client/model/StringValueFacet.java | 6 +-
.../client/model/StringValueFacetResult.java | 6 +-
.../com/relewise/client/model/Synonym.java | 6 +-
.../relewise/client/model/SynonymType.java | 6 +-
.../client/model/SynonymsRequest.java | 6 +-
.../model/SynonymsRequestSynonymSorting.java | 6 +-
.../SynonymsRequestSynonymSortingSorting.java | 6 +-
.../client/model/SynonymsResponse.java | 6 +-
.../model/TargetConditionConfiguration.java | 6 +-
.../com/relewise/client/model/TimeUnit.java | 37 ++++
.../relewise/client/model/TimedResponse.java | 6 +-
...TrackBrandAdministrativeActionRequest.java | 6 +-
.../client/model/TrackBrandUpdateRequest.java | 6 +-
.../client/model/TrackBrandViewRequest.java | 6 +-
.../client/model/TrackCartRequest.java | 6 +-
...ackCompanyAdministrativeActionRequest.java | 50 +++++
.../model/TrackCompanyUpdateRequest.java | 50 +++++
...ackContentAdministrativeActionRequest.java | 6 +-
...ntCategoryAdministrativeActionRequest.java | 6 +-
.../TrackContentCategoryUpdateRequest.java | 6 +-
.../TrackContentCategoryViewRequest.java | 6 +-
.../model/TrackContentUpdateRequest.java | 6 +-
.../client/model/TrackContentViewRequest.java | 6 +-
.../client/model/TrackOrderRequest.java | 6 +-
...ackProductAdministrativeActionRequest.java | 6 +-
...ctCategoryAdministrativeActionRequest.java | 6 +-
.../TrackProductCategoryUpdateRequest.java | 6 +-
.../TrackProductCategoryViewRequest.java | 6 +-
.../model/TrackProductUpdateRequest.java | 6 +-
.../client/model/TrackProductViewRequest.java | 6 +-
.../client/model/TrackSearchTermRequest.java | 6 +-
.../client/model/TrackUserUpdateRequest.java | 6 +-
.../com/relewise/client/model/Trackable.java | 8 +-
.../client/model/TrackingRequest.java | 8 +-
.../client/model/TriggerConfiguration.java | 8 +-
...riggerConfigurationCollectionResponse.java | 6 +-
.../model/TriggerConfigurationRequest.java | 6 +-
.../model/TriggerConfigurationResponse.java | 6 +-
.../model/TriggerConfigurationsRequest.java | 6 +-
.../client/model/TriggerResultRequest.java | 6 +-
.../client/model/TriggerResultResponse.java | 6 +-
.../client/model/TriggersResponse.java | 6 +-
.../client/model/TrimStringTransformer.java | 6 +-
.../java/com/relewise/client/model/User.java | 35 +++-
.../UserActivityTriggerConfiguration.java | 6 +-
.../model/UserActivityTriggerResult.java | 6 +-
...vityTriggerResultTriggerConfiguration.java | 6 +-
.../UserAssociatedCompanyResultDetails.java | 93 +++++++++
.../relewise/client/model/UserCondition.java | 6 +-
.../client/model/UserConditionCollection.java | 6 +-
.../model/UserConditionConfiguration.java | 6 +-
.../model/UserDetailsCollectionResponse.java | 6 +-
.../UserFavoriteProductRelevanceModifier.java | 33 ++-
.../com/relewise/client/model/UserQuery.java | 6 +-
.../client/model/UserQueryCriteria.java | 6 +-
.../client/model/UserResultDetails.java | 26 ++-
.../com/relewise/client/model/UserUpdate.java | 6 +-
.../client/model/UserUpdateUpdateKind.java | 6 +-
.../relewise/client/model/ValueCondition.java | 11 +-
.../model/ValueConditionCollection.java | 11 +-
.../relewise/client/model/ValueSelector.java | 6 +-
.../client/model/VariantAssortmentFilter.java | 12 +-
.../VariantAssortmentRelevanceModifier.java | 14 +-
.../VariantChangeTriggerConfiguration.java | 155 ++++++++++++++
.../model/VariantChangeTriggerResult.java | 67 ++++++
.../VariantChangeTriggerResultSettings.java | 50 +++++
...angeTriggerResultTriggerConfiguration.java | 111 ++++++++++
...iggerResultVariantChangeResultDetails.java | 88 ++++++++
...esultDetailsEntityChangeTriggerResult.java | 46 +++++
...ectorEntityChangeTriggerConfiguration.java | 176 ++++++++++++++++
.../client/model/VariantDataFilter.java | 12 +-
.../client/model/VariantDataHasKeyFilter.java | 73 +++++++
.../model/VariantDataRelevanceModifier.java | 57 ++----
.../client/model/VariantDisabledFilter.java | 57 ++++++
.../client/model/VariantIdFilter.java | 12 +-
.../model/VariantIdRelevanceModifier.java | 108 ++++++++++
.../model/VariantIndexConfiguration.java | 6 +-
.../client/model/VariantListPriceFilter.java | 12 +-
.../VariantListPriceRelevanceModifier.java | 35 +++-
.../client/model/VariantPropertySelector.java | 32 +++
.../relewise/client/model/VariantResult.java | 6 +-
.../client/model/VariantResultDetails.java | 6 +-
.../client/model/VariantSalesPriceFilter.java | 12 +-
.../VariantSalesPriceRelevanceModifier.java | 35 +++-
.../client/model/VariantSearchSettings.java | 9 +-
.../model/VariantSpecificationFacet.java | 6 +-
.../VariantSpecificationFacetResult.java | 6 +-
.../model/VariantSpecificationFilter.java | 12 +-
...ntSpecificationValueRelevanceModifier.java | 38 +++-
...ecificationsInCommonRelevanceModifier.java | 19 +-
.../client/model/ViewedByUserCompanyInfo.java | 65 ++++++
.../client/model/ViewedByUserInfo.java | 6 +-
934 files changed, 19178 insertions(+), 3044 deletions(-)
create mode 100644 src/src/main/java/com/relewise/client/model/Advertiser.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserAdvertiserEntityStateEntityResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserEntityState.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserMetadataValues.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertisersRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertisersRequestEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBy.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBySorting.java
create mode 100644 src/src/main/java/com/relewise/client/model/AdvertisersResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/ApplyFilterSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/BrandDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/BrandDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/Budget.java
create mode 100644 src/src/main/java/com/relewise/client/model/CPMBudget.java
create mode 100644 src/src/main/java/com/relewise/client/model/Campaign.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalytics.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalytics.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetrics.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPromotedProductMetrics.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignAnalyticsResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignCampaignEntityStateEntityResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignEntityState.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntity.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignMetadataValues.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignStatusWithHistory.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryChange.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryStatusName.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignsRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignsRequestEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignsRequestSortBy.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignsRequestSortBySorting.java
create mode 100644 src/src/main/java/com/relewise/client/model/CampaignsResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/CategoryHierarchyFacet.java
create mode 100644 src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResultCategoryNode.java
create mode 100644 src/src/main/java/com/relewise/client/model/CategoryPathValueFacet.java
create mode 100644 src/src/main/java/com/relewise/client/model/Change.java
create mode 100644 src/src/main/java/com/relewise/client/model/Channel.java
create mode 100644 src/src/main/java/com/relewise/client/model/Company.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyAdministrativeAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyAdministrativeActionUpdateKind.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyDataFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyIdFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyUpdate.java
create mode 100644 src/src/main/java/com/relewise/client/model/CompanyUpdateUpdateKind.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentAssortmentFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryDataRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryHasContentsFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentDataRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentHasCategoriesFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/DataKeyPopularityMultiplierSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/DataRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/Decrease.java
create mode 100644 src/src/main/java/com/relewise/client/model/DeleteSearchResultModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/DeleteSearchTermModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/EntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/EntityChangeTriggerResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/FacetQuery.java
create mode 100644 src/src/main/java/com/relewise/client/model/FilterScopeSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/FilterScopes.java
create mode 100644 src/src/main/java/com/relewise/client/model/FilterSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/FilteredVariantsSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/HasValueCondition.java
create mode 100644 src/src/main/java/com/relewise/client/model/IChange.java
create mode 100644 src/src/main/java/com/relewise/client/model/ICompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/IContentCategoryRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/IContentRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/IProductCategoryRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ISchedule.java
create mode 100644 src/src/main/java/com/relewise/client/model/Increase.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocalDateTimeRange.java
create mode 100644 src/src/main/java/com/relewise/client/model/Location.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationEntityState.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntity.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationLocationEntityStateEntityResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationMetadataValues.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationPlacement.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationPlacementCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationPlacementVariation.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationPlacementVariationCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationSaveEntitiesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationSaveEntitiesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationsRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationsRequestEntityFilters.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationsRequestSortBy.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationsRequestSortBySorting.java
create mode 100644 src/src/main/java/com/relewise/client/model/LocationsResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/MatchTypeSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/MetadataValues.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObjectValueRelativeDateTimeCondition.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableProductAttribute.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableProductAttributeSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableProductDataValueSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableVariantAttribute.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableVariantAttributeSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ObservableVariantDataValueSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/PopularityMultiplierSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryDataRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryHasProductsFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetails.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductHasCategoriesFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductPromotion.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductPromotionSpecification.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductPromotionSpecificationVariation.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductPropertySelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserParentCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserParentCompanyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/ProductSearchResultConstraint.java
create mode 100644 src/src/main/java/com/relewise/client/model/Promotion.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionLocation.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionLocationCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionLocationPlacement.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionLocationPlacementCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionSpecification.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionSpecificationCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionSpecificationVariation.java
create mode 100644 src/src/main/java/com/relewise/client/model/PromotionSpecificationVariationCollection.java
create mode 100644 src/src/main/java/com/relewise/client/model/PurchasedByUserCompanyInfo.java
create mode 100644 src/src/main/java/com/relewise/client/model/RecentlyViewedByUserRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/RelativeDateTimeCondition.java
create mode 100644 src/src/main/java/com/relewise/client/model/RelativeTimeComparison.java
create mode 100644 src/src/main/java/com/relewise/client/model/RequestFilterCriteria.java
create mode 100644 src/src/main/java/com/relewise/client/model/ResultMustHaveVariantConstraint.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaEntity.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaQuery.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaQueryLocationSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaQueryPlacementSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaQueryVariationSelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaResultPlacement.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntity.java
create mode 100644 src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntityProduct.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveAdvertisersRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveAdvertisersResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveCampaignsRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveCampaignsResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveLocationsRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveLocationsResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/ScheduledPeriod.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRule.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddFiltersAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddTermFilterAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleRuleAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSearchRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBy.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySearchRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySorting.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchResultModifierRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRule.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleAppendToTermAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRemoveFromTermAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceTermAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceWordsInTermAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRuleAction.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSearchRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBy.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySearchRulesRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySorting.java
create mode 100644 src/src/main/java/com/relewise/client/model/SearchTermModifierRulesResponse.java
create mode 100644 src/src/main/java/com/relewise/client/model/SelectedCategoryPropertiesSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/SimilarVariantEvaluationSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/TimeUnit.java
create mode 100644 src/src/main/java/com/relewise/client/model/TrackCompanyAdministrativeActionRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/TrackCompanyUpdateRequest.java
create mode 100644 src/src/main/java/com/relewise/client/model/UserAssociatedCompanyResultDetails.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultSettings.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetails.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantDataHasKeyFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantDisabledFilter.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantIdRelevanceModifier.java
create mode 100644 src/src/main/java/com/relewise/client/model/VariantPropertySelector.java
create mode 100644 src/src/main/java/com/relewise/client/model/ViewedByUserCompanyInfo.java
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerConfiguration.java
index a7f280d..a27a27d 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResult.java b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResult.java
index 7953c47..53886e6 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResultTriggerConfiguration.java
index 8ca797b..3ccfa74 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedCartTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedContentSearch.java b/src/src/main/java/com/relewise/client/model/AbandonedContentSearch.java
index b7a19f4..914dc2a 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedContentSearch.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedContentSearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -67,4 +65,10 @@ public AbandonedContentSearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ @Override
+ public AbandonedContentSearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedProductCategorySearch.java b/src/src/main/java/com/relewise/client/model/AbandonedProductCategorySearch.java
index d3d4ef3..11f4932 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedProductCategorySearch.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedProductCategorySearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -67,4 +65,10 @@ public AbandonedProductCategorySearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ @Override
+ public AbandonedProductCategorySearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedProductSearch.java b/src/src/main/java/com/relewise/client/model/AbandonedProductSearch.java
index 6546be7..63dbf6e 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedProductSearch.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedProductSearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -67,4 +65,10 @@ public AbandonedProductSearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ @Override
+ public AbandonedProductSearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedSearch.java b/src/src/main/java/com/relewise/client/model/AbandonedSearch.java
index 82ed8cb..657af17 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedSearch.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedSearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -34,6 +32,7 @@ public abstract class AbandonedSearch
public String $type = "";
public String loweredSearchTerm;
public Integer hits;
+ public @Nullable Language language;
public String getLoweredSearchTerm()
{
return this.loweredSearchTerm;
@@ -42,6 +41,10 @@ public Integer getHits()
{
return this.hits;
}
+ public @Nullable Language getLanguage()
+ {
+ return this.language;
+ }
public AbandonedSearch setLoweredSearchTerm(String loweredSearchTerm)
{
this.loweredSearchTerm = loweredSearchTerm;
@@ -52,4 +55,9 @@ public AbandonedSearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ public AbandonedSearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerConfiguration.java
index 957811a..88ddadb 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class AbandonedSearchTriggerConfiguration extends AbandonedSearchTriggerR
public String $type = "Relewise.Client.DataTypes.Triggers.Configurations.AbandonedSearchTriggerConfiguration, Relewise.Client";
public SearchType[] searchTypesInPrioritizedOrder;
public @Nullable SearchTermCondition searchTermCondition;
+ public Boolean suppressOnEntityFromSearchResultViewed;
+ public Integer considerAbandonedAfterMinutes;
public static AbandonedSearchTriggerConfiguration create(String name, String description, SearchType... searchTypesInPrioritizedOrder)
{
return new AbandonedSearchTriggerConfiguration(name, description, searchTypesInPrioritizedOrder);
@@ -40,21 +40,24 @@ public AbandonedSearchTriggerConfiguration(String name, String description, Sear
this.description = description;
this.searchTypesInPrioritizedOrder = searchTypesInPrioritizedOrder;
this.searchTermCondition = null;
+ this.suppressOnEntityFromSearchResultViewed = true;
}
- public static AbandonedSearchTriggerConfiguration create(String name, String description, SearchType[] searchTypesInPrioritizedOrder, SearchTermCondition searchTermCondition)
+ public static AbandonedSearchTriggerConfiguration create(String name, String description, SearchType[] searchTypesInPrioritizedOrder, @Nullable SearchTermCondition searchTermCondition, Boolean suppressOnEntityFromSearchResultViewed)
{
- return new AbandonedSearchTriggerConfiguration(name, description, searchTypesInPrioritizedOrder, searchTermCondition);
+ return new AbandonedSearchTriggerConfiguration(name, description, searchTypesInPrioritizedOrder, searchTermCondition, suppressOnEntityFromSearchResultViewed);
}
- public AbandonedSearchTriggerConfiguration(String name, String description, SearchType[] searchTypesInPrioritizedOrder, SearchTermCondition searchTermCondition)
+ public AbandonedSearchTriggerConfiguration(String name, String description, SearchType[] searchTypesInPrioritizedOrder, @Nullable SearchTermCondition searchTermCondition, Boolean suppressOnEntityFromSearchResultViewed)
{
this.name = name;
this.description = description;
this.searchTypesInPrioritizedOrder = searchTypesInPrioritizedOrder;
this.searchTermCondition = searchTermCondition;
+ this.suppressOnEntityFromSearchResultViewed = suppressOnEntityFromSearchResultViewed;
}
public AbandonedSearchTriggerConfiguration()
{
this.searchTermCondition = null;
+ this.suppressOnEntityFromSearchResultViewed = true;
}
public SearchType[] getSearchTypesInPrioritizedOrder()
{
@@ -64,6 +67,14 @@ public SearchType[] getSearchTypesInPrioritizedOrder()
{
return this.searchTermCondition;
}
+ public Boolean getSuppressOnEntityFromSearchResultViewed()
+ {
+ return this.suppressOnEntityFromSearchResultViewed;
+ }
+ public Integer getConsiderAbandonedAfterMinutes()
+ {
+ return this.considerAbandonedAfterMinutes;
+ }
public AbandonedSearchTriggerConfiguration setSearchTypesInPrioritizedOrder(SearchType... searchTypesInPrioritizedOrder)
{
this.searchTypesInPrioritizedOrder = searchTypesInPrioritizedOrder;
@@ -88,6 +99,16 @@ public AbandonedSearchTriggerConfiguration setSearchTermCondition(SearchTermCond
this.searchTermCondition = searchTermCondition;
return this;
}
+ public AbandonedSearchTriggerConfiguration setSuppressOnEntityFromSearchResultViewed(Boolean suppressOnEntityFromSearchResultViewed)
+ {
+ this.suppressOnEntityFromSearchResultViewed = suppressOnEntityFromSearchResultViewed;
+ return this;
+ }
+ public AbandonedSearchTriggerConfiguration setConsiderAbandonedAfterMinutes(Integer considerAbandonedAfterMinutes)
+ {
+ this.considerAbandonedAfterMinutes = considerAbandonedAfterMinutes;
+ return this;
+ }
@Override
public AbandonedSearchTriggerConfiguration setId(UUID id)
{
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResult.java b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResult.java
index e4dd85f..8e2724f 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResultTriggerConfiguration.java
index a168edf..ae708d5 100644
--- a/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/AbandonedSearchTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Advertiser.java b/src/src/main/java/com/relewise/client/model/Advertiser.java
new file mode 100644
index 0000000..81600ea
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Advertiser.java
@@ -0,0 +1,98 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Advertiser.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Advertiser extends AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Advertiser, Relewise.Client";
+ public String name;
+ /** Defines what kind of promotions an advertiser is allowed to create, and constraints to what may be promoted. Constraints could as an example be all products belonging to the brand(s) this Advertiser is associated with. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public @Nullable PromotionSpecificationCollection allowedPromotions;
+ /** Defines locations/placements/variations where this advertiser is allowed to make promotions at. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public @Nullable PromotionLocationCollection allowedLocations;
+ public static Advertiser create(@Nullable UUID id, AdvertiserEntityState state, String name, @Nullable PromotionSpecificationCollection allowedPromotions, PromotionLocationCollection allowedLocations)
+ {
+ return new Advertiser(id, state, name, allowedPromotions, allowedLocations);
+ }
+ public Advertiser(@Nullable UUID id, AdvertiserEntityState state, String name, @Nullable PromotionSpecificationCollection allowedPromotions, PromotionLocationCollection allowedLocations)
+ {
+ this.id = id;
+ this.state = state;
+ this.name = name;
+ this.allowedPromotions = allowedPromotions;
+ this.allowedLocations = allowedLocations;
+ }
+ public Advertiser()
+ {
+ }
+ public String getName()
+ {
+ return this.name;
+ }
+ /** Defines what kind of promotions an advertiser is allowed to create, and constraints to what may be promoted. Constraints could as an example be all products belonging to the brand(s) this Advertiser is associated with. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public @Nullable PromotionSpecificationCollection getAllowedPromotions()
+ {
+ return this.allowedPromotions;
+ }
+ /** Defines locations/placements/variations where this advertiser is allowed to make promotions at. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public @Nullable PromotionLocationCollection getAllowedLocations()
+ {
+ return this.allowedLocations;
+ }
+ public Advertiser setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ /** Defines what kind of promotions an advertiser is allowed to create, and constraints to what may be promoted. Constraints could as an example be all products belonging to the brand(s) this Advertiser is associated with. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public Advertiser setAllowedPromotions(PromotionSpecificationCollection allowedPromotions)
+ {
+ this.allowedPromotions = allowedPromotions;
+ return this;
+ }
+ /** Defines locations/placements/variations where this advertiser is allowed to make promotions at. If null
or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
+ public Advertiser setAllowedLocations(PromotionLocationCollection allowedLocations)
+ {
+ this.allowedLocations = allowedLocations;
+ return this;
+ }
+ @Override
+ public Advertiser setState(AdvertiserEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ @Override
+ public Advertiser setMetadata(AdvertiserMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public Advertiser setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserAdvertiserEntityStateEntityResponse.java b/src/src/main/java/com/relewise/client/model/AdvertiserAdvertiserEntityStateEntityResponse.java
new file mode 100644
index 0000000..6119826
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserAdvertiserEntityStateEntityResponse.java
@@ -0,0 +1,75 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserAdvertiserEntityStateEntityResponse extends TimedResponse
+{
+ public String $type = "";
+ public Advertiser[] entities;
+ public Integer hits;
+ public HashMap hitsPerState;
+ public Advertiser[] getEntities()
+ {
+ return this.entities;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public HashMap getHitsPerState()
+ {
+ return this.hitsPerState;
+ }
+ public AdvertiserAdvertiserEntityStateEntityResponse setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public AdvertiserAdvertiserEntityStateEntityResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public AdvertiserAdvertiserEntityStateEntityResponse addToHitsPerState(AdvertiserEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ public AdvertiserAdvertiserEntityStateEntityResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public AdvertiserAdvertiserEntityStateEntityResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserEntityState.java b/src/src/main/java/com/relewise/client/model/AdvertiserEntityState.java
new file mode 100644
index 0000000..456dd28
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserEntityState.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum AdvertiserEntityState
+{
+ Active {
+ public String toString() {
+ return "Active";
+ }
+ },
+ Inactive {
+ public String toString() {
+ return "Inactive";
+ }
+ },
+ Archived {
+ public String toString() {
+ return "Archived";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest.java
new file mode 100644
index 0000000..2664a95
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest.java
@@ -0,0 +1,70 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public @Nullable AdvertisersRequestEntityFilters filters;
+ public @Nullable AdvertisersRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public @Nullable AdvertisersRequestEntityFilters getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable AdvertisersRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest setFilters(AdvertisersRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest setSorting(AdvertisersRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity.java b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity.java
new file mode 100644
index 0000000..0c8a51e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity.java
@@ -0,0 +1,59 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity extends RetailMediaEntity
+{
+ public String $type = "";
+ public AdvertiserEntityState state;
+ /** Managed server side only, manually setting this will have no effect */
+ public AdvertiserMetadataValues metadata;
+ public AdvertiserEntityState getState()
+ {
+ return this.state;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public AdvertiserMetadataValues getMetadata()
+ {
+ return this.metadata;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity setState(AdvertiserEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity setMetadata(AdvertiserMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters.java b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters.java
new file mode 100644
index 0000000..69bddd2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "";
+ public @Nullable String term;
+ public @Nullable AdvertiserEntityState[] states;
+ public @Nullable String getTerm()
+ {
+ return this.term;
+ }
+ public @Nullable AdvertiserEntityState[] getStates()
+ {
+ return this.states;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ public AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters setStates(AdvertiserEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserMetadataValues.java b/src/src/main/java/com/relewise/client/model/AdvertiserMetadataValues.java
new file mode 100644
index 0000000..171e25f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserMetadataValues.java
@@ -0,0 +1,120 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = AdvertiserMetadataValues.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AdvertiserMetadataValues extends MetadataValues
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Advertiser+MetadataValues, Relewise.Client";
+ public @Nullable OffsetDateTime inactivated;
+ public @Nullable String inactivatedBy;
+ public @Nullable OffsetDateTime activated;
+ public @Nullable String activatedBy;
+ public @Nullable OffsetDateTime archived;
+ public @Nullable String archivedBy;
+ public static AdvertiserMetadataValues create()
+ {
+ return new AdvertiserMetadataValues();
+ }
+ public AdvertiserMetadataValues()
+ {
+ }
+ public @Nullable OffsetDateTime getInactivated()
+ {
+ return this.inactivated;
+ }
+ public @Nullable String getInactivatedBy()
+ {
+ return this.inactivatedBy;
+ }
+ public @Nullable OffsetDateTime getActivated()
+ {
+ return this.activated;
+ }
+ public @Nullable String getActivatedBy()
+ {
+ return this.activatedBy;
+ }
+ public @Nullable OffsetDateTime getArchived()
+ {
+ return this.archived;
+ }
+ public @Nullable String getArchivedBy()
+ {
+ return this.archivedBy;
+ }
+ public AdvertiserMetadataValues setInactivated(@Nullable OffsetDateTime inactivated)
+ {
+ this.inactivated = inactivated;
+ return this;
+ }
+ public AdvertiserMetadataValues setInactivatedBy(String inactivatedBy)
+ {
+ this.inactivatedBy = inactivatedBy;
+ return this;
+ }
+ public AdvertiserMetadataValues setActivated(@Nullable OffsetDateTime activated)
+ {
+ this.activated = activated;
+ return this;
+ }
+ public AdvertiserMetadataValues setActivatedBy(String activatedBy)
+ {
+ this.activatedBy = activatedBy;
+ return this;
+ }
+ public AdvertiserMetadataValues setArchived(@Nullable OffsetDateTime archived)
+ {
+ this.archived = archived;
+ return this;
+ }
+ public AdvertiserMetadataValues setArchivedBy(String archivedBy)
+ {
+ this.archivedBy = archivedBy;
+ return this;
+ }
+ @Override
+ public AdvertiserMetadataValues setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public AdvertiserMetadataValues setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public AdvertiserMetadataValues setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public AdvertiserMetadataValues setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesRequest.java
new file mode 100644
index 0000000..50e96ed
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesRequest.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserSaveEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public Advertiser[] entities;
+ public String modifiedBy;
+ public Advertiser[] getEntities()
+ {
+ return this.entities;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public AdvertiserSaveEntitiesRequest setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public AdvertiserSaveEntitiesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesResponse.java b/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesResponse.java
new file mode 100644
index 0000000..71883d1
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertiserSaveEntitiesResponse.java
@@ -0,0 +1,46 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class AdvertiserSaveEntitiesResponse extends TimedResponse
+{
+ public String $type = "";
+ public Advertiser[] entities;
+ public Advertiser[] getEntities()
+ {
+ return this.entities;
+ }
+ public AdvertiserSaveEntitiesResponse setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ @Override
+ public AdvertiserSaveEntitiesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertisersRequest.java b/src/src/main/java/com/relewise/client/model/AdvertisersRequest.java
new file mode 100644
index 0000000..8a76979
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertisersRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = AdvertisersRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AdvertisersRequest extends AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.AdvertisersRequest, Relewise.Client";
+ public static AdvertisersRequest create(@Nullable AdvertisersRequestEntityFilters filters, @Nullable AdvertisersRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ return new AdvertisersRequest(filters, sorting, skip, take);
+ }
+ public AdvertisersRequest(@Nullable AdvertisersRequestEntityFilters filters, @Nullable AdvertisersRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ this.filters = filters;
+ this.sorting = sorting;
+ this.skip = skip;
+ this.take = take;
+ }
+ public AdvertisersRequest()
+ {
+ }
+ @Override
+ public AdvertisersRequest setFilters(AdvertisersRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public AdvertisersRequest setSorting(AdvertisersRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ @Override
+ public AdvertisersRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ @Override
+ public AdvertisersRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertisersRequestEntityFilters.java b/src/src/main/java/com/relewise/client/model/AdvertisersRequestEntityFilters.java
new file mode 100644
index 0000000..a2de7ba
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertisersRequestEntityFilters.java
@@ -0,0 +1,86 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = AdvertisersRequestEntityFilters.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AdvertisersRequestEntityFilters extends AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.AdvertisersRequest+EntityFilters, Relewise.Client";
+ public @Nullable UUID[] ids;
+ public static AdvertisersRequestEntityFilters create()
+ {
+ return new AdvertisersRequestEntityFilters();
+ }
+ public AdvertisersRequestEntityFilters()
+ {
+ }
+ public @Nullable UUID[] getIds()
+ {
+ return this.ids;
+ }
+ public AdvertisersRequestEntityFilters setIds(UUID... ids)
+ {
+ this.ids = ids;
+ return this;
+ }
+ public AdvertisersRequestEntityFilters addToIds(UUID id)
+ {
+ if (this.ids == null)
+ {
+ this.ids = new UUID[] { id };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.ids));
+ existingList.add(id);
+ this.ids = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ @Override
+ public AdvertisersRequestEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ @Override
+ public AdvertisersRequestEntityFilters setStates(AdvertiserEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+ public AdvertisersRequestEntityFilters addToStates(AdvertiserEntityState state)
+ {
+ if (this.states == null)
+ {
+ this.states = new AdvertiserEntityState[] { state };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.states));
+ existingList.add(state);
+ this.states = existingList.toArray(new AdvertiserEntityState[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBy.java b/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBy.java
new file mode 100644
index 0000000..2460dd8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBy.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum AdvertisersRequestSortBy
+{
+ Created {
+ public String toString() {
+ return "Created";
+ }
+ },
+ Modified {
+ public String toString() {
+ return "Modified";
+ }
+ },
+ Name {
+ public String toString() {
+ return "Name";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBySorting.java
new file mode 100644
index 0000000..66ad058
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertisersRequestSortBySorting.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AdvertisersRequestSortBySorting
+{
+ public AdvertisersRequestSortBy sortBy;
+ public SortOrder sortOrder;
+ public static AdvertisersRequestSortBySorting create(AdvertisersRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ return new AdvertisersRequestSortBySorting(sortBy, sortOrder);
+ }
+ public AdvertisersRequestSortBySorting(AdvertisersRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ this.sortBy = sortBy;
+ this.sortOrder = sortOrder;
+ }
+ public AdvertisersRequestSortBySorting()
+ {
+ }
+ public AdvertisersRequestSortBy getSortBy()
+ {
+ return this.sortBy;
+ }
+ public SortOrder getSortOrder()
+ {
+ return this.sortOrder;
+ }
+ public AdvertisersRequestSortBySorting setSortBy(AdvertisersRequestSortBy sortBy)
+ {
+ this.sortBy = sortBy;
+ return this;
+ }
+ public AdvertisersRequestSortBySorting setSortOrder(SortOrder sortOrder)
+ {
+ this.sortOrder = sortOrder;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AdvertisersResponse.java b/src/src/main/java/com/relewise/client/model/AdvertisersResponse.java
new file mode 100644
index 0000000..7d53f96
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/AdvertisersResponse.java
@@ -0,0 +1,89 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = AdvertisersResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AdvertisersResponse extends AdvertiserAdvertiserEntityStateEntityResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.AdvertisersResponse, Relewise.Client";
+ public static AdvertisersResponse create(Advertiser[] advertisers, Integer hits, HashMap hitsPerState)
+ {
+ return new AdvertisersResponse(advertisers, hits, hitsPerState);
+ }
+ public AdvertisersResponse(Advertiser[] advertisers, Integer hits, HashMap hitsPerState)
+ {
+ this.entities = advertisers;
+ this.hits = hits;
+ this.hitsPerState = hitsPerState;
+ }
+ public AdvertisersResponse()
+ {
+ }
+ @Override
+ public AdvertisersResponse setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public AdvertisersResponse addToEntities(Advertiser entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Advertiser[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Advertiser[0]);
+ }
+ return this;
+ }
+ @Override
+ public AdvertisersResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public AdvertisersResponse addToHitsPerState(AdvertiserEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ @Override
+ public AdvertisersResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public AdvertisersResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AnalyzerRequest.java b/src/src/main/java/com/relewise/client/model/AnalyzerRequest.java
index 03586d1..8b1960f 100644
--- a/src/src/main/java/com/relewise/client/model/AnalyzerRequest.java
+++ b/src/src/main/java/com/relewise/client/model/AnalyzerRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AndCondition.java b/src/src/main/java/com/relewise/client/model/AndCondition.java
index c602265..8476759 100644
--- a/src/src/main/java/com/relewise/client/model/AndCondition.java
+++ b/src/src/main/java/com/relewise/client/model/AndCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AndFilter.java b/src/src/main/java/com/relewise/client/model/AndFilter.java
index 93042ec..cf564ef 100644
--- a/src/src/main/java/com/relewise/client/model/AndFilter.java
+++ b/src/src/main/java/com/relewise/client/model/AndFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -80,4 +78,10 @@ public AndFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public AndFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ApplicableIndexes.java b/src/src/main/java/com/relewise/client/model/ApplicableIndexes.java
index 7c7059a..381ebd4 100644
--- a/src/src/main/java/com/relewise/client/model/ApplicableIndexes.java
+++ b/src/src/main/java/com/relewise/client/model/ApplicableIndexes.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ApplicableLanguages.java b/src/src/main/java/com/relewise/client/model/ApplicableLanguages.java
index 3cf75a7..4843b10 100644
--- a/src/src/main/java/com/relewise/client/model/ApplicableLanguages.java
+++ b/src/src/main/java/com/relewise/client/model/ApplicableLanguages.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ApplyFilterSettings.java b/src/src/main/java/com/relewise/client/model/ApplyFilterSettings.java
new file mode 100644
index 0000000..68287a6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ApplyFilterSettings.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ApplyFilterSettings.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ApplyFilterSettings extends FilterScopeSettings
+{
+ public String $type = "Relewise.Client.Requests.Filters.Settings.ApplyFilterSettings, Relewise.Client";
+ public Boolean apply;
+ public static ApplyFilterSettings create(Boolean apply)
+ {
+ return new ApplyFilterSettings(apply);
+ }
+ public ApplyFilterSettings(Boolean apply)
+ {
+ this.apply = apply;
+ }
+ public ApplyFilterSettings()
+ {
+ }
+ public Boolean getApply()
+ {
+ return this.apply;
+ }
+ public ApplyFilterSettings setApply(Boolean apply)
+ {
+ this.apply = apply;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/AssortmentFacet.java b/src/src/main/java/com/relewise/client/model/AssortmentFacet.java
index 3f8d3db..6761b49 100644
--- a/src/src/main/java/com/relewise/client/model/AssortmentFacet.java
+++ b/src/src/main/java/com/relewise/client/model/AssortmentFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AssortmentFacetResult.java b/src/src/main/java/com/relewise/client/model/AssortmentFacetResult.java
index 9add411..47a62b9 100644
--- a/src/src/main/java/com/relewise/client/model/AssortmentFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/AssortmentFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AssortmentFilterType.java b/src/src/main/java/com/relewise/client/model/AssortmentFilterType.java
index ecdd321..1dfdc36 100644
--- a/src/src/main/java/com/relewise/client/model/AssortmentFilterType.java
+++ b/src/src/main/java/com/relewise/client/model/AssortmentFilterType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/AssortmentSelectionStrategy.java b/src/src/main/java/com/relewise/client/model/AssortmentSelectionStrategy.java
index 37dbc23..fdaf9ae 100644
--- a/src/src/main/java/com/relewise/client/model/AssortmentSelectionStrategy.java
+++ b/src/src/main/java/com/relewise/client/model/AssortmentSelectionStrategy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BatchedTrackingRequest.java b/src/src/main/java/com/relewise/client/model/BatchedTrackingRequest.java
index 9b6ae42..d5daaaa 100644
--- a/src/src/main/java/com/relewise/client/model/BatchedTrackingRequest.java
+++ b/src/src/main/java/com/relewise/client/model/BatchedTrackingRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/BooleanAvailableFacetValue.java
index edb909e..7f5f044 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanBooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanBooleanValueFacetResult.java
index 677ff1f..93b5567 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanBooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanBooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacet.java
index 2d16c2b..41d2498 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacetResult.java
index 8c6ded2..8c04177 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanContentDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacet.java
index c9f89a7..5cf44eb 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacetResult.java
index d4de181..f84e8c0 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanDataObjectValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanDataValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanDataValueFacet.java
index 28ecfa9..d8b48a1 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanDataValueFacetResult.java
index 25ef026..1944557 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacet.java
index 94e2f0f..3b4740d 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacetResult.java
index e956132..bc5f3d4 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanProductCategoryDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacet.java
index c792704..0843b22 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacetResult.java
index 2d4693a..48d4b07 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanProductDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanValueFacet.java b/src/src/main/java/com/relewise/client/model/BooleanValueFacet.java
index 933d79d..710efa1 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/BooleanValueFacetResult.java
index d652d9c..00f9f5d 100644
--- a/src/src/main/java/com/relewise/client/model/BooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BoostAndBuryRule.java b/src/src/main/java/com/relewise/client/model/BoostAndBuryRule.java
index ad128c5..2344a24 100644
--- a/src/src/main/java/com/relewise/client/model/BoostAndBuryRule.java
+++ b/src/src/main/java/com/relewise/client/model/BoostAndBuryRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Brand.java b/src/src/main/java/com/relewise/client/model/Brand.java
index a4d968d..6071c8c 100644
--- a/src/src/main/java/com/relewise/client/model/Brand.java
+++ b/src/src/main/java/com/relewise/client/model/Brand.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/BrandAdministrativeAction.java
index f840ac7..678c969 100644
--- a/src/src/main/java/com/relewise/client/model/BrandAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/BrandAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandAdministrativeActionUpdateKind.java b/src/src/main/java/com/relewise/client/model/BrandAdministrativeActionUpdateKind.java
index 9d27412..507d59b 100644
--- a/src/src/main/java/com/relewise/client/model/BrandAdministrativeActionUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/BrandAdministrativeActionUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/BrandAssortmentFilter.java
index a604899..bfe0e9a 100644
--- a/src/src/main/java/com/relewise/client/model/BrandAssortmentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/BrandAssortmentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public BrandAssortmentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public BrandAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/BrandDataFilter.java b/src/src/main/java/com/relewise/client/model/BrandDataFilter.java
index aa74436..e0aba4a 100644
--- a/src/src/main/java/com/relewise/client/model/BrandDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/BrandDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public BrandDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public BrandDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/BrandDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/BrandDataHasKeyFilter.java
new file mode 100644
index 0000000..c9f67f0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/BrandDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = BrandDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class BrandDataHasKeyFilter extends Filter implements IBrandFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.BrandDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static BrandDataHasKeyFilter create(String key)
+ {
+ return new BrandDataHasKeyFilter(key);
+ }
+ public BrandDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static BrandDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new BrandDataHasKeyFilter(key, negated);
+ }
+ public BrandDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public BrandDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public BrandDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public BrandDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public BrandDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/BrandDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/BrandDetailsCollectionResponse.java
index 25d540f..a65fa8f 100644
--- a/src/src/main/java/com/relewise/client/model/BrandDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/BrandDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandDisabledFilter.java b/src/src/main/java/com/relewise/client/model/BrandDisabledFilter.java
new file mode 100644
index 0000000..2659723
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/BrandDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = BrandDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class BrandDisabledFilter extends Filter implements IBrandFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.BrandDisabledFilter, Relewise.Client";
+ public static BrandDisabledFilter create()
+ {
+ return new BrandDisabledFilter();
+ }
+ public BrandDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static BrandDisabledFilter create(Boolean negated)
+ {
+ return new BrandDisabledFilter(negated);
+ }
+ public BrandDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public BrandDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public BrandDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/BrandFacet.java b/src/src/main/java/com/relewise/client/model/BrandFacet.java
index c2bd6e6..992029d 100644
--- a/src/src/main/java/com/relewise/client/model/BrandFacet.java
+++ b/src/src/main/java/com/relewise/client/model/BrandFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandFacetResult.java b/src/src/main/java/com/relewise/client/model/BrandFacetResult.java
index 859a19a..be2945e 100644
--- a/src/src/main/java/com/relewise/client/model/BrandFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/BrandFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandIdFilter.java b/src/src/main/java/com/relewise/client/model/BrandIdFilter.java
index 9a4df5f..d61945c 100644
--- a/src/src/main/java/com/relewise/client/model/BrandIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/BrandIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public BrandIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public BrandIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/BrandIdRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/BrandIdRelevanceModifier.java
index 6a3fa9c..062c66d 100644
--- a/src/src/main/java/com/relewise/client/model/BrandIdRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/BrandIdRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of an entity depending on a BrandId
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,8 +27,11 @@
public class BrandIdRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.BrandIdRelevanceModifier, Relewise.Client";
+ /** The Id of the Brand that this RelevanceModifier
will distinguish on. */
public String brandId;
+ /** The weight that the entity will be multiplied with if it matches the specific BrandId
. */
public Double ifProductIsBrandMultiplyWeightBy;
+ /** The weight that the entity will be multiplied with if it does not match the specific BrandId
. */
public Double ifProductIsNotBrandMultiplyWeightBy;
public static BrandIdRelevanceModifier create(String brandId)
{
@@ -41,12 +43,22 @@ public BrandIdRelevanceModifier(String brandId)
this.ifProductIsBrandMultiplyWeightBy = 1d;
this.ifProductIsNotBrandMultiplyWeightBy = 1d;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of an entity depending on a BrandId
.
+ * @param brandId The Id of the Brand that this RelevanceModifier will distinguish on.
+ * @param ifProductIsBrandMultiplyWeightBy The weight that the entity will be multiplied with if it matches the specific BrandId.
+ * @param ifProductIsNotBrandMultiplyWeightBy The weight that the entity will be multiplied with if it does not match the specific BrandId.
+ */
public static BrandIdRelevanceModifier create(String brandId, Double ifProductIsBrandMultiplyWeightBy, Double ifProductIsNotBrandMultiplyWeightBy)
{
return new BrandIdRelevanceModifier(brandId, ifProductIsBrandMultiplyWeightBy, ifProductIsNotBrandMultiplyWeightBy);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of an entity depending on a BrandId
.
+ * @param brandId The Id of the Brand that this RelevanceModifier will distinguish on.
+ * @param ifProductIsBrandMultiplyWeightBy The weight that the entity will be multiplied with if it matches the specific BrandId.
+ * @param ifProductIsNotBrandMultiplyWeightBy The weight that the entity will be multiplied with if it does not match the specific BrandId.
+ */
public BrandIdRelevanceModifier(String brandId, Double ifProductIsBrandMultiplyWeightBy, Double ifProductIsNotBrandMultiplyWeightBy)
{
this.brandId = brandId;
@@ -58,28 +70,34 @@ public BrandIdRelevanceModifier()
this.ifProductIsBrandMultiplyWeightBy = 1d;
this.ifProductIsNotBrandMultiplyWeightBy = 1d;
}
+ /** The Id of the Brand that this RelevanceModifier
will distinguish on. */
public String getBrandId()
{
return this.brandId;
}
+ /** The weight that the entity will be multiplied with if it matches the specific BrandId
. */
public Double getIfProductIsBrandMultiplyWeightBy()
{
return this.ifProductIsBrandMultiplyWeightBy;
}
+ /** The weight that the entity will be multiplied with if it does not match the specific BrandId
. */
public Double getIfProductIsNotBrandMultiplyWeightBy()
{
return this.ifProductIsNotBrandMultiplyWeightBy;
}
+ /** The Id of the Brand that this RelevanceModifier
will distinguish on. */
public BrandIdRelevanceModifier setBrandId(String brandId)
{
this.brandId = brandId;
return this;
}
+ /** The weight that the entity will be multiplied with if it matches the specific BrandId
. */
public BrandIdRelevanceModifier setIfProductIsBrandMultiplyWeightBy(Double ifProductIsBrandMultiplyWeightBy)
{
this.ifProductIsBrandMultiplyWeightBy = ifProductIsBrandMultiplyWeightBy;
return this;
}
+ /** The weight that the entity will be multiplied with if it does not match the specific BrandId
. */
public BrandIdRelevanceModifier setIfProductIsNotBrandMultiplyWeightBy(Double ifProductIsNotBrandMultiplyWeightBy)
{
this.ifProductIsNotBrandMultiplyWeightBy = ifProductIsNotBrandMultiplyWeightBy;
diff --git a/src/src/main/java/com/relewise/client/model/BrandIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/BrandIndexConfiguration.java
index c877418..f1aaaa1 100644
--- a/src/src/main/java/com/relewise/client/model/BrandIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/BrandIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandNameAndIdResult.java b/src/src/main/java/com/relewise/client/model/BrandNameAndIdResult.java
index 7019192..7651999 100644
--- a/src/src/main/java/com/relewise/client/model/BrandNameAndIdResult.java
+++ b/src/src/main/java/com/relewise/client/model/BrandNameAndIdResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandNameAndIdResultAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/BrandNameAndIdResultAvailableFacetValue.java
index 0eb9949..1e5ac84 100644
--- a/src/src/main/java/com/relewise/client/model/BrandNameAndIdResultAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/BrandNameAndIdResultAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandQuery.java b/src/src/main/java/com/relewise/client/model/BrandQuery.java
index abfe7f6..e027050 100644
--- a/src/src/main/java/com/relewise/client/model/BrandQuery.java
+++ b/src/src/main/java/com/relewise/client/model/BrandQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/BrandRecommendationRequest.java
index ad00772..fcdef5c 100644
--- a/src/src/main/java/com/relewise/client/model/BrandRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/BrandRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -77,4 +75,11 @@ public BrandRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public BrandRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/BrandRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/BrandRecommendationRequestSettings.java
index 66608d3..6310f43 100644
--- a/src/src/main/java/com/relewise/client/model/BrandRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/BrandRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class BrandRecommendationRequestSettings
public Boolean allowReplacingOfRecentlyShownRecommendations;
public Boolean prioritizeDiversityBetweenRequests;
public @Nullable SelectedBrandPropertiesSettings selectedBrandProperties;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static BrandRecommendationRequestSettings create()
{
return new BrandRecommendationRequestSettings();
@@ -54,6 +53,10 @@ public Boolean getPrioritizeDiversityBetweenRequests()
{
return this.selectedBrandProperties;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public BrandRecommendationRequestSettings setNumberOfRecommendations(Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -79,4 +82,9 @@ public BrandRecommendationRequestSettings setSelectedBrandProperties(SelectedBra
this.selectedBrandProperties = selectedBrandProperties;
return this;
}
+ public BrandRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/BrandRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/BrandRecommendationResponse.java
index 5bb3470..dc31892 100644
--- a/src/src/main/java/com/relewise/client/model/BrandRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/BrandRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandRecommendationWeights.java b/src/src/main/java/com/relewise/client/model/BrandRecommendationWeights.java
index 7dec1d3..d17393a 100644
--- a/src/src/main/java/com/relewise/client/model/BrandRecommendationWeights.java
+++ b/src/src/main/java/com/relewise/client/model/BrandRecommendationWeights.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandResult.java b/src/src/main/java/com/relewise/client/model/BrandResult.java
index 0eece21..400245c 100644
--- a/src/src/main/java/com/relewise/client/model/BrandResult.java
+++ b/src/src/main/java/com/relewise/client/model/BrandResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandResultDetails.java b/src/src/main/java/com/relewise/client/model/BrandResultDetails.java
index 40d2d4e..5d39076 100644
--- a/src/src/main/java/com/relewise/client/model/BrandResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/BrandResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandUpdate.java b/src/src/main/java/com/relewise/client/model/BrandUpdate.java
index 5daaa8f..226e004 100644
--- a/src/src/main/java/com/relewise/client/model/BrandUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/BrandUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/BrandUpdateUpdateKind.java
index 0af9e45..618c484 100644
--- a/src/src/main/java/com/relewise/client/model/BrandUpdateUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/BrandUpdateUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/BrandView.java b/src/src/main/java/com/relewise/client/model/BrandView.java
index 7fca369..6704dfd 100644
--- a/src/src/main/java/com/relewise/client/model/BrandView.java
+++ b/src/src/main/java/com/relewise/client/model/BrandView.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class BrandView extends Trackable implements IUserIdentifier
public String $type = "Relewise.Client.DataTypes.BrandView, Relewise.Client";
public @Nullable User user;
public Brand brand;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static BrandView create(@Nullable User user, Brand brand)
{
return new BrandView(user, brand);
@@ -50,6 +50,11 @@ public Brand getBrand()
{
return this.brand;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public BrandView setUser(User user)
{
this.user = user;
@@ -60,4 +65,10 @@ public BrandView setBrand(Brand brand)
this.brand = brand;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public BrandView setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/Budget.java b/src/src/main/java/com/relewise/client/model/Budget.java
new file mode 100644
index 0000000..4bc4d44
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Budget.java
@@ -0,0 +1,51 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = CPMBudget.class, name = "Relewise.Client.DataTypes.RetailMedia.CPMBudget, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class Budget
+{
+ public String $type = "";
+ public @Nullable Double maxTotalCost;
+ public Double totalCost;
+ public @Nullable Double getMaxTotalCost()
+ {
+ return this.maxTotalCost;
+ }
+ public Double getTotalCost()
+ {
+ return this.totalCost;
+ }
+ public Budget setMaxTotalCost(@Nullable Double maxTotalCost)
+ {
+ this.maxTotalCost = maxTotalCost;
+ return this;
+ }
+ public Budget setTotalCost(Double totalCost)
+ {
+ this.totalCost = totalCost;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CPMBudget.java b/src/src/main/java/com/relewise/client/model/CPMBudget.java
new file mode 100644
index 0000000..9e30df2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CPMBudget.java
@@ -0,0 +1,63 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CPMBudget.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CPMBudget extends Budget
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.CPMBudget, Relewise.Client";
+ public Double costPerMille;
+ public static CPMBudget create(Double costPerMille, @Nullable Double maxTotalCost)
+ {
+ return new CPMBudget(costPerMille, maxTotalCost);
+ }
+ public CPMBudget(Double costPerMille, @Nullable Double maxTotalCost)
+ {
+ this.costPerMille = costPerMille;
+ this.maxTotalCost = maxTotalCost;
+ }
+ public CPMBudget()
+ {
+ }
+ public Double getCostPerMille()
+ {
+ return this.costPerMille;
+ }
+ public CPMBudget setCostPerMille(Double costPerMille)
+ {
+ this.costPerMille = costPerMille;
+ return this;
+ }
+ @Override
+ public CPMBudget setMaxTotalCost(@Nullable Double maxTotalCost)
+ {
+ this.maxTotalCost = maxTotalCost;
+ return this;
+ }
+ @Override
+ public CPMBudget setTotalCost(Double totalCost)
+ {
+ this.totalCost = totalCost;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/Campaign.java b/src/src/main/java/com/relewise/client/model/Campaign.java
new file mode 100644
index 0000000..7b0f99c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Campaign.java
@@ -0,0 +1,124 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Campaign.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Campaign extends CampaignEntityStateCampaignMetadataValuesRetailMediaEntity
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Campaign, Relewise.Client";
+ public String name;
+ public @Nullable ISchedule schedule;
+ public PromotionCollection promotions;
+ public UUID advertiserId;
+ public Budget budget;
+ public CampaignStatusWithHistory status;
+ public static Campaign create(@Nullable UUID id, CampaignEntityState state, String name, UUID advertiserId, Budget budget, @Nullable ISchedule schedule, PromotionCollection promotions)
+ {
+ return new Campaign(id, state, name, advertiserId, budget, schedule, promotions);
+ }
+ public Campaign(@Nullable UUID id, CampaignEntityState state, String name, UUID advertiserId, Budget budget, @Nullable ISchedule schedule, PromotionCollection promotions)
+ {
+ this.id = id;
+ this.state = state;
+ this.name = name;
+ this.advertiserId = advertiserId;
+ this.budget = budget;
+ this.schedule = schedule;
+ this.promotions = promotions;
+ }
+ public Campaign()
+ {
+ }
+ public String getName()
+ {
+ return this.name;
+ }
+ public @Nullable ISchedule getSchedule()
+ {
+ return this.schedule;
+ }
+ public PromotionCollection getPromotions()
+ {
+ return this.promotions;
+ }
+ public UUID getAdvertiserId()
+ {
+ return this.advertiserId;
+ }
+ public Budget getBudget()
+ {
+ return this.budget;
+ }
+ public CampaignStatusWithHistory getStatus()
+ {
+ return this.status;
+ }
+ public Campaign setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ public Campaign setSchedule(ISchedule schedule)
+ {
+ this.schedule = schedule;
+ return this;
+ }
+ public Campaign setPromotions(PromotionCollection promotions)
+ {
+ this.promotions = promotions;
+ return this;
+ }
+ public Campaign setAdvertiserId(UUID advertiserId)
+ {
+ this.advertiserId = advertiserId;
+ return this;
+ }
+ public Campaign setBudget(Budget budget)
+ {
+ this.budget = budget;
+ return this;
+ }
+ public Campaign setStatus(CampaignStatusWithHistory status)
+ {
+ this.status = status;
+ return this;
+ }
+ @Override
+ public Campaign setState(CampaignEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ @Override
+ public Campaign setMetadata(CampaignMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public Campaign setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalytics.java b/src/src/main/java/com/relewise/client/model/CampaignAnalytics.java
new file mode 100644
index 0000000..dc5f7a9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalytics.java
@@ -0,0 +1,44 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalytics
+{
+ public CampaignAnalyticsProductAnalytics products;
+ public static CampaignAnalytics create(CampaignAnalyticsProductAnalytics products)
+ {
+ return new CampaignAnalytics(products);
+ }
+ public CampaignAnalytics(CampaignAnalyticsProductAnalytics products)
+ {
+ this.products = products;
+ }
+ public CampaignAnalytics()
+ {
+ }
+ public CampaignAnalyticsProductAnalytics getProducts()
+ {
+ return this.products;
+ }
+ public CampaignAnalytics setProducts(CampaignAnalyticsProductAnalytics products)
+ {
+ this.products = products;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalytics.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalytics.java
new file mode 100644
index 0000000..ea42f3c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalytics.java
@@ -0,0 +1,102 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Defines how campaign performs. */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsProductAnalytics
+{
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics[] timeSeries;
+ /** Number of times products are being promoted by the Campaign
. */
+ public Integer promotions;
+ /** How many times each individual product was promoted. */
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics[] promotedProducts;
+ public static CampaignAnalyticsProductAnalytics create(CampaignAnalyticsProductAnalyticsPeriodMetrics[] timeSeries, Integer promotions, CampaignAnalyticsProductAnalyticsPromotedProductMetrics... promotedProducts)
+ {
+ return new CampaignAnalyticsProductAnalytics(timeSeries, promotions, promotedProducts);
+ }
+ public CampaignAnalyticsProductAnalytics(CampaignAnalyticsProductAnalyticsPeriodMetrics[] timeSeries, Integer promotions, CampaignAnalyticsProductAnalyticsPromotedProductMetrics... promotedProducts)
+ {
+ this.timeSeries = timeSeries;
+ this.promotions = promotions;
+ this.promotedProducts = promotedProducts;
+ }
+ public CampaignAnalyticsProductAnalytics()
+ {
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics[] getTimeSeries()
+ {
+ return this.timeSeries;
+ }
+ /** Number of times products are being promoted by the Campaign
. */
+ public Integer getPromotions()
+ {
+ return this.promotions;
+ }
+ /** How many times each individual product was promoted. */
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics[] getPromotedProducts()
+ {
+ return this.promotedProducts;
+ }
+ public CampaignAnalyticsProductAnalytics setTimeSeries(CampaignAnalyticsProductAnalyticsPeriodMetrics... timeSeries)
+ {
+ this.timeSeries = timeSeries;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalytics addToTimeSeries(CampaignAnalyticsProductAnalyticsPeriodMetrics timeSery)
+ {
+ if (this.timeSeries == null)
+ {
+ this.timeSeries = new CampaignAnalyticsProductAnalyticsPeriodMetrics[] { timeSery };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.timeSeries));
+ existingList.add(timeSery);
+ this.timeSeries = existingList.toArray(new CampaignAnalyticsProductAnalyticsPeriodMetrics[0]);
+ }
+ return this;
+ }
+ /** Number of times products are being promoted by the Campaign
. */
+ public CampaignAnalyticsProductAnalytics setPromotions(Integer promotions)
+ {
+ this.promotions = promotions;
+ return this;
+ }
+ /** How many times each individual product was promoted. */
+ public CampaignAnalyticsProductAnalytics setPromotedProducts(CampaignAnalyticsProductAnalyticsPromotedProductMetrics... promotedProducts)
+ {
+ this.promotedProducts = promotedProducts;
+ return this;
+ }
+ /** How many times each individual product was promoted. */
+ public CampaignAnalyticsProductAnalytics addToPromotedProducts(CampaignAnalyticsProductAnalyticsPromotedProductMetrics promotedProduct)
+ {
+ if (this.promotedProducts == null)
+ {
+ this.promotedProducts = new CampaignAnalyticsProductAnalyticsPromotedProductMetrics[] { promotedProduct };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.promotedProducts));
+ existingList.add(promotedProduct);
+ this.promotedProducts = existingList.toArray(new CampaignAnalyticsProductAnalyticsPromotedProductMetrics[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetrics.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetrics.java
new file mode 100644
index 0000000..97cf076
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetrics.java
@@ -0,0 +1,91 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsProductAnalyticsPeriodMetrics
+{
+ public OffsetDateTime periodFromUtc;
+ public Integer views;
+ public Integer salesQuantity;
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] currencies;
+ public static CampaignAnalyticsProductAnalyticsPeriodMetrics create(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics... currencies)
+ {
+ return new CampaignAnalyticsProductAnalyticsPeriodMetrics(periodFromUtc, views, salesQuantity, currencies);
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics... currencies)
+ {
+ this.periodFromUtc = periodFromUtc;
+ this.views = views;
+ this.salesQuantity = salesQuantity;
+ this.currencies = currencies;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics()
+ {
+ }
+ public OffsetDateTime getPeriodFromUtc()
+ {
+ return this.periodFromUtc;
+ }
+ public Integer getViews()
+ {
+ return this.views;
+ }
+ public Integer getSalesQuantity()
+ {
+ return this.salesQuantity;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] getCurrencies()
+ {
+ return this.currencies;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics setPeriodFromUtc(OffsetDateTime periodFromUtc)
+ {
+ this.periodFromUtc = periodFromUtc;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics setViews(Integer views)
+ {
+ this.views = views;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics setSalesQuantity(Integer salesQuantity)
+ {
+ this.salesQuantity = salesQuantity;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics setCurrencies(CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics... currencies)
+ {
+ this.currencies = currencies;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetrics addToCurrencies(CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics currency)
+ {
+ if (this.currencies == null)
+ {
+ this.currencies = new CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] { currency };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.currencies));
+ existingList.add(currency);
+ this.currencies = existingList.toArray(new CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics.java
new file mode 100644
index 0000000..a52fb9c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics
+{
+ public String currency;
+ public Double revenue;
+ public static CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics create(String currency, Double revenue)
+ {
+ return new CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics(currency, revenue);
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics(String currency, Double revenue)
+ {
+ this.currency = currency;
+ this.revenue = revenue;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics()
+ {
+ }
+ public String getCurrency()
+ {
+ return this.currency;
+ }
+ public Double getRevenue()
+ {
+ return this.revenue;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics setCurrency(String currency)
+ {
+ this.currency = currency;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics setRevenue(Double revenue)
+ {
+ this.revenue = revenue;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPromotedProductMetrics.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPromotedProductMetrics.java
new file mode 100644
index 0000000..b3f9195
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsProductAnalyticsPromotedProductMetrics.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsProductAnalyticsPromotedProductMetrics
+{
+ public String productId;
+ public Integer promotions;
+ public static CampaignAnalyticsProductAnalyticsPromotedProductMetrics create(String productId, Integer promotions)
+ {
+ return new CampaignAnalyticsProductAnalyticsPromotedProductMetrics(productId, promotions);
+ }
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics(String productId, Integer promotions)
+ {
+ this.productId = productId;
+ this.promotions = promotions;
+ }
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics()
+ {
+ }
+ public String getProductId()
+ {
+ return this.productId;
+ }
+ public Integer getPromotions()
+ {
+ return this.promotions;
+ }
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics setProductId(String productId)
+ {
+ this.productId = productId;
+ return this;
+ }
+ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics setPromotions(Integer promotions)
+ {
+ this.promotions = promotions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsRequest.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsRequest.java
new file mode 100644
index 0000000..92c8ef5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsRequest.java
@@ -0,0 +1,76 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Analytics data request for campaign Id
during PeriodUtc
. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignAnalyticsRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsRequest extends LicensedRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.CampaignAnalyticsRequest, Relewise.Client";
+ /** The campaign to provide analytics for. */
+ public UUID id;
+ public LocalDateTimeRange periodUtc;
+ public @Nullable FilterCollection filters;
+ public static CampaignAnalyticsRequest create(UUID id, LocalDateTimeRange periodUtc, FilterCollection filters)
+ {
+ return new CampaignAnalyticsRequest(id, periodUtc, filters);
+ }
+ public CampaignAnalyticsRequest(UUID id, LocalDateTimeRange periodUtc, FilterCollection filters)
+ {
+ this.id = id;
+ this.periodUtc = periodUtc;
+ this.filters = filters;
+ }
+ public CampaignAnalyticsRequest()
+ {
+ }
+ /** The campaign to provide analytics for. */
+ public UUID getId()
+ {
+ return this.id;
+ }
+ public LocalDateTimeRange getPeriodUtc()
+ {
+ return this.periodUtc;
+ }
+ public @Nullable FilterCollection getFilters()
+ {
+ return this.filters;
+ }
+ /** The campaign to provide analytics for. */
+ public CampaignAnalyticsRequest setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ public CampaignAnalyticsRequest setPeriodUtc(LocalDateTimeRange periodUtc)
+ {
+ this.periodUtc = periodUtc;
+ return this;
+ }
+ public CampaignAnalyticsRequest setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignAnalyticsResponse.java b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsResponse.java
new file mode 100644
index 0000000..a8616df
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignAnalyticsResponse.java
@@ -0,0 +1,56 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignAnalyticsResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignAnalyticsResponse extends TimedResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.CampaignAnalyticsResponse, Relewise.Client";
+ public CampaignAnalytics analytics;
+ public static CampaignAnalyticsResponse create(CampaignAnalytics analytics)
+ {
+ return new CampaignAnalyticsResponse(analytics);
+ }
+ public CampaignAnalyticsResponse(CampaignAnalytics analytics)
+ {
+ this.analytics = analytics;
+ }
+ public CampaignAnalyticsResponse()
+ {
+ }
+ public CampaignAnalytics getAnalytics()
+ {
+ return this.analytics;
+ }
+ public CampaignAnalyticsResponse setAnalytics(CampaignAnalytics analytics)
+ {
+ this.analytics = analytics;
+ return this;
+ }
+ @Override
+ public CampaignAnalyticsResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignCampaignEntityStateEntityResponse.java b/src/src/main/java/com/relewise/client/model/CampaignCampaignEntityStateEntityResponse.java
new file mode 100644
index 0000000..f4be94c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignCampaignEntityStateEntityResponse.java
@@ -0,0 +1,75 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignCampaignEntityStateEntityResponse extends TimedResponse
+{
+ public String $type = "";
+ public Campaign[] entities;
+ public Integer hits;
+ public HashMap hitsPerState;
+ public Campaign[] getEntities()
+ {
+ return this.entities;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public HashMap getHitsPerState()
+ {
+ return this.hitsPerState;
+ }
+ public CampaignCampaignEntityStateEntityResponse setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public CampaignCampaignEntityStateEntityResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public CampaignCampaignEntityStateEntityResponse addToHitsPerState(CampaignEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ public CampaignCampaignEntityStateEntityResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public CampaignCampaignEntityStateEntityResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignEntityState.java b/src/src/main/java/com/relewise/client/model/CampaignEntityState.java
new file mode 100644
index 0000000..60eb24b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignEntityState.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum CampaignEntityState
+{
+ Proposed {
+ public String toString() {
+ return "Proposed";
+ }
+ },
+ Approved {
+ public String toString() {
+ return "Approved";
+ }
+ },
+ Archived {
+ public String toString() {
+ return "Archived";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest.java
new file mode 100644
index 0000000..c507a0c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest.java
@@ -0,0 +1,70 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public @Nullable CampaignsRequestEntityFilters filters;
+ public @Nullable CampaignsRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public @Nullable CampaignsRequestEntityFilters getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable CampaignsRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest setFilters(CampaignsRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest setSorting(CampaignsRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntity.java b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntity.java
new file mode 100644
index 0000000..7f352ab
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntity.java
@@ -0,0 +1,59 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignEntityStateCampaignMetadataValuesRetailMediaEntity extends RetailMediaEntity
+{
+ public String $type = "";
+ public CampaignEntityState state;
+ /** Managed server side only, manually setting this will have no effect */
+ public CampaignMetadataValues metadata;
+ public CampaignEntityState getState()
+ {
+ return this.state;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public CampaignMetadataValues getMetadata()
+ {
+ return this.metadata;
+ }
+ public CampaignEntityStateCampaignMetadataValuesRetailMediaEntity setState(CampaignEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public CampaignEntityStateCampaignMetadataValuesRetailMediaEntity setMetadata(CampaignMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public CampaignEntityStateCampaignMetadataValuesRetailMediaEntity setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters.java b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters.java
new file mode 100644
index 0000000..ee3b85d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "";
+ public @Nullable String term;
+ public @Nullable CampaignEntityState[] states;
+ public @Nullable String getTerm()
+ {
+ return this.term;
+ }
+ public @Nullable CampaignEntityState[] getStates()
+ {
+ return this.states;
+ }
+ public CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ public CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters setStates(CampaignEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignMetadataValues.java b/src/src/main/java/com/relewise/client/model/CampaignMetadataValues.java
new file mode 100644
index 0000000..910e9ad
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignMetadataValues.java
@@ -0,0 +1,120 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignMetadataValues.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignMetadataValues extends MetadataValues
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Campaign+MetadataValues, Relewise.Client";
+ public @Nullable OffsetDateTime proposed;
+ public @Nullable String proposedBy;
+ public @Nullable OffsetDateTime approved;
+ public @Nullable String approvedBy;
+ public @Nullable OffsetDateTime archived;
+ public @Nullable String archivedBy;
+ public static CampaignMetadataValues create()
+ {
+ return new CampaignMetadataValues();
+ }
+ public CampaignMetadataValues()
+ {
+ }
+ public @Nullable OffsetDateTime getProposed()
+ {
+ return this.proposed;
+ }
+ public @Nullable String getProposedBy()
+ {
+ return this.proposedBy;
+ }
+ public @Nullable OffsetDateTime getApproved()
+ {
+ return this.approved;
+ }
+ public @Nullable String getApprovedBy()
+ {
+ return this.approvedBy;
+ }
+ public @Nullable OffsetDateTime getArchived()
+ {
+ return this.archived;
+ }
+ public @Nullable String getArchivedBy()
+ {
+ return this.archivedBy;
+ }
+ public CampaignMetadataValues setProposed(@Nullable OffsetDateTime proposed)
+ {
+ this.proposed = proposed;
+ return this;
+ }
+ public CampaignMetadataValues setProposedBy(String proposedBy)
+ {
+ this.proposedBy = proposedBy;
+ return this;
+ }
+ public CampaignMetadataValues setApproved(@Nullable OffsetDateTime approved)
+ {
+ this.approved = approved;
+ return this;
+ }
+ public CampaignMetadataValues setApprovedBy(String approvedBy)
+ {
+ this.approvedBy = approvedBy;
+ return this;
+ }
+ public CampaignMetadataValues setArchived(@Nullable OffsetDateTime archived)
+ {
+ this.archived = archived;
+ return this;
+ }
+ public CampaignMetadataValues setArchivedBy(String archivedBy)
+ {
+ this.archivedBy = archivedBy;
+ return this;
+ }
+ @Override
+ public CampaignMetadataValues setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public CampaignMetadataValues setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public CampaignMetadataValues setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public CampaignMetadataValues setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesRequest.java
new file mode 100644
index 0000000..e24f88d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesRequest.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignSaveEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public Campaign[] entities;
+ public String modifiedBy;
+ public Campaign[] getEntities()
+ {
+ return this.entities;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public CampaignSaveEntitiesRequest setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public CampaignSaveEntitiesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesResponse.java b/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesResponse.java
new file mode 100644
index 0000000..e76889c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignSaveEntitiesResponse.java
@@ -0,0 +1,46 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CampaignSaveEntitiesResponse extends TimedResponse
+{
+ public String $type = "";
+ public Campaign[] entities;
+ public Campaign[] getEntities()
+ {
+ return this.entities;
+ }
+ public CampaignSaveEntitiesResponse setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ @Override
+ public CampaignSaveEntitiesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistory.java b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistory.java
new file mode 100644
index 0000000..486afba
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistory.java
@@ -0,0 +1,64 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignStatusWithHistory
+{
+ public CampaignStatusWithHistoryStatusName current;
+ public ArrayList history;
+ public static CampaignStatusWithHistory create(CampaignStatusWithHistoryStatusName current, CampaignStatusWithHistoryChange... history)
+ {
+ return new CampaignStatusWithHistory(current, history);
+ }
+ public CampaignStatusWithHistory(CampaignStatusWithHistoryStatusName current, CampaignStatusWithHistoryChange... history)
+ {
+ this.current = current;
+ this.history = new ArrayList<>(Arrays.asList(history));
+ }
+ public CampaignStatusWithHistory()
+ {
+ }
+ public CampaignStatusWithHistoryStatusName getCurrent()
+ {
+ return this.current;
+ }
+ public ArrayList getHistory()
+ {
+ return this.history;
+ }
+ public CampaignStatusWithHistory setCurrent(CampaignStatusWithHistoryStatusName current)
+ {
+ this.current = current;
+ return this;
+ }
+ public CampaignStatusWithHistory setHistory(CampaignStatusWithHistoryChange... history)
+ {
+ this.history = new ArrayList<>(Arrays.asList(history));;
+ return this;
+ }
+ public CampaignStatusWithHistory addToHistory(CampaignStatusWithHistoryChange history)
+ {
+ if (this.history == null)
+ {
+ this.history = new ArrayList<>();
+ }
+ this.history.add(history);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryChange.java b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryChange.java
new file mode 100644
index 0000000..8d8afa3
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryChange.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignStatusWithHistoryChange
+{
+ public OffsetDateTime utcTime;
+ public CampaignStatusWithHistoryStatusName status;
+ public static CampaignStatusWithHistoryChange create(OffsetDateTime utcTime, CampaignStatusWithHistoryStatusName status)
+ {
+ return new CampaignStatusWithHistoryChange(utcTime, status);
+ }
+ public CampaignStatusWithHistoryChange(OffsetDateTime utcTime, CampaignStatusWithHistoryStatusName status)
+ {
+ this.utcTime = utcTime;
+ this.status = status;
+ }
+ public CampaignStatusWithHistoryChange()
+ {
+ }
+ public OffsetDateTime getUtcTime()
+ {
+ return this.utcTime;
+ }
+ public CampaignStatusWithHistoryStatusName getStatus()
+ {
+ return this.status;
+ }
+ public CampaignStatusWithHistoryChange setUtcTime(OffsetDateTime utcTime)
+ {
+ this.utcTime = utcTime;
+ return this;
+ }
+ public CampaignStatusWithHistoryChange setStatus(CampaignStatusWithHistoryStatusName status)
+ {
+ this.status = status;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryStatusName.java b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryStatusName.java
new file mode 100644
index 0000000..18abb44
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignStatusWithHistoryStatusName.java
@@ -0,0 +1,42 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum CampaignStatusWithHistoryStatusName
+{
+ Active {
+ public String toString() {
+ return "Active";
+ }
+ },
+ Inactive {
+ public String toString() {
+ return "Inactive";
+ }
+ },
+ ScheduleCompleted {
+ public String toString() {
+ return "ScheduleCompleted";
+ }
+ },
+ BudgetReached {
+ public String toString() {
+ return "BudgetReached";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignsRequest.java b/src/src/main/java/com/relewise/client/model/CampaignsRequest.java
new file mode 100644
index 0000000..412d8d8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignsRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignsRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignsRequest extends CampaignEntityStateCampaignMetadataValuesCampaignsRequestSortByCampaignsRequestEntityFiltersEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.CampaignsRequest, Relewise.Client";
+ public static CampaignsRequest create(@Nullable CampaignsRequestEntityFilters filters, @Nullable CampaignsRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ return new CampaignsRequest(filters, sorting, skip, take);
+ }
+ public CampaignsRequest(@Nullable CampaignsRequestEntityFilters filters, @Nullable CampaignsRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ this.filters = filters;
+ this.sorting = sorting;
+ this.skip = skip;
+ this.take = take;
+ }
+ public CampaignsRequest()
+ {
+ }
+ @Override
+ public CampaignsRequest setFilters(CampaignsRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public CampaignsRequest setSorting(CampaignsRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ @Override
+ public CampaignsRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ @Override
+ public CampaignsRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignsRequestEntityFilters.java b/src/src/main/java/com/relewise/client/model/CampaignsRequestEntityFilters.java
new file mode 100644
index 0000000..0a97c8f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignsRequestEntityFilters.java
@@ -0,0 +1,110 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignsRequestEntityFilters.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignsRequestEntityFilters extends CampaignEntityStateCampaignMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.CampaignsRequest+EntityFilters, Relewise.Client";
+ public @Nullable UUID[] ids;
+ public @Nullable UUID[] advertiserIds;
+ public static CampaignsRequestEntityFilters create()
+ {
+ return new CampaignsRequestEntityFilters();
+ }
+ public CampaignsRequestEntityFilters()
+ {
+ }
+ public @Nullable UUID[] getIds()
+ {
+ return this.ids;
+ }
+ public @Nullable UUID[] getAdvertiserIds()
+ {
+ return this.advertiserIds;
+ }
+ public CampaignsRequestEntityFilters setIds(UUID... ids)
+ {
+ this.ids = ids;
+ return this;
+ }
+ public CampaignsRequestEntityFilters addToIds(UUID id)
+ {
+ if (this.ids == null)
+ {
+ this.ids = new UUID[] { id };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.ids));
+ existingList.add(id);
+ this.ids = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ public CampaignsRequestEntityFilters setAdvertiserIds(UUID... advertiserIds)
+ {
+ this.advertiserIds = advertiserIds;
+ return this;
+ }
+ public CampaignsRequestEntityFilters addToAdvertiserIds(UUID advertiserId)
+ {
+ if (this.advertiserIds == null)
+ {
+ this.advertiserIds = new UUID[] { advertiserId };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.advertiserIds));
+ existingList.add(advertiserId);
+ this.advertiserIds = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ @Override
+ public CampaignsRequestEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ @Override
+ public CampaignsRequestEntityFilters setStates(CampaignEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+ public CampaignsRequestEntityFilters addToStates(CampaignEntityState state)
+ {
+ if (this.states == null)
+ {
+ this.states = new CampaignEntityState[] { state };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.states));
+ existingList.add(state);
+ this.states = existingList.toArray(new CampaignEntityState[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBy.java b/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBy.java
new file mode 100644
index 0000000..361636a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBy.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum CampaignsRequestSortBy
+{
+ Created {
+ public String toString() {
+ return "Created";
+ }
+ },
+ Modified {
+ public String toString() {
+ return "Modified";
+ }
+ },
+ Name {
+ public String toString() {
+ return "Name";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBySorting.java
new file mode 100644
index 0000000..1a16d18
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignsRequestSortBySorting.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignsRequestSortBySorting
+{
+ public CampaignsRequestSortBy sortBy;
+ public SortOrder sortOrder;
+ public static CampaignsRequestSortBySorting create(CampaignsRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ return new CampaignsRequestSortBySorting(sortBy, sortOrder);
+ }
+ public CampaignsRequestSortBySorting(CampaignsRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ this.sortBy = sortBy;
+ this.sortOrder = sortOrder;
+ }
+ public CampaignsRequestSortBySorting()
+ {
+ }
+ public CampaignsRequestSortBy getSortBy()
+ {
+ return this.sortBy;
+ }
+ public SortOrder getSortOrder()
+ {
+ return this.sortOrder;
+ }
+ public CampaignsRequestSortBySorting setSortBy(CampaignsRequestSortBy sortBy)
+ {
+ this.sortBy = sortBy;
+ return this;
+ }
+ public CampaignsRequestSortBySorting setSortOrder(SortOrder sortOrder)
+ {
+ this.sortOrder = sortOrder;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CampaignsResponse.java b/src/src/main/java/com/relewise/client/model/CampaignsResponse.java
new file mode 100644
index 0000000..9f7c3dd
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CampaignsResponse.java
@@ -0,0 +1,89 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CampaignsResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CampaignsResponse extends CampaignCampaignEntityStateEntityResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.CampaignsResponse, Relewise.Client";
+ public static CampaignsResponse create(Campaign[] campaigns, Integer hits, HashMap hitsPerState)
+ {
+ return new CampaignsResponse(campaigns, hits, hitsPerState);
+ }
+ public CampaignsResponse(Campaign[] campaigns, Integer hits, HashMap hitsPerState)
+ {
+ this.entities = campaigns;
+ this.hits = hits;
+ this.hitsPerState = hitsPerState;
+ }
+ public CampaignsResponse()
+ {
+ }
+ @Override
+ public CampaignsResponse setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public CampaignsResponse addToEntities(Campaign entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Campaign[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Campaign[0]);
+ }
+ return this;
+ }
+ @Override
+ public CampaignsResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public CampaignsResponse addToHitsPerState(CampaignEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ @Override
+ public CampaignsResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public CampaignsResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/Cart.java b/src/src/main/java/com/relewise/client/model/Cart.java
index d09f11c..3050540 100644
--- a/src/src/main/java/com/relewise/client/model/Cart.java
+++ b/src/src/main/java/com/relewise/client/model/Cart.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -33,6 +31,8 @@ public class Cart extends Trackable implements IUserIdentifier
public @Nullable Money subtotal;
public @Nullable ArrayList lineItems;
public @Nullable HashMap data;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static Cart create(@Nullable User user, Money subtotal, LineItem... lineItems)
{
return new Cart(user, subtotal, lineItems);
@@ -78,6 +78,11 @@ public Cart()
{
return this.data;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public Cart setUser(User user)
{
this.user = user;
@@ -121,4 +126,10 @@ public Cart setData(HashMap data)
this.data = data;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public Cart setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/CartDataFilter.java b/src/src/main/java/com/relewise/client/model/CartDataFilter.java
index beb6e8a..3c19dc2 100644
--- a/src/src/main/java/com/relewise/client/model/CartDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/CartDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -128,4 +126,10 @@ public CartDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public CartDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/CartDetails.java b/src/src/main/java/com/relewise/client/model/CartDetails.java
index a80f00d..c3d4fe8 100644
--- a/src/src/main/java/com/relewise/client/model/CartDetails.java
+++ b/src/src/main/java/com/relewise/client/model/CartDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Category.java b/src/src/main/java/com/relewise/client/model/Category.java
index dcc029e..04d9e7f 100644
--- a/src/src/main/java/com/relewise/client/model/Category.java
+++ b/src/src/main/java/com/relewise/client/model/Category.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/CategoryAdministrativeAction.java
index 8c588fb..dddfc3a 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryAdministrativeActionUpdateKind.java b/src/src/main/java/com/relewise/client/model/CategoryAdministrativeActionUpdateKind.java
index bed0ab6..ccdd376 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryAdministrativeActionUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryAdministrativeActionUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryFacet.java b/src/src/main/java/com/relewise/client/model/CategoryFacet.java
index 2c629ea..6d85947 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryFacet.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryFacetResult.java b/src/src/main/java/com/relewise/client/model/CategoryFacetResult.java
index 01bdf3e..5f00f3f 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacet.java b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacet.java
new file mode 100644
index 0000000..71ef61d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacet.java
@@ -0,0 +1,88 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CategoryHierarchyFacet.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CategoryHierarchyFacet extends CategoryPathValueFacet
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Facets.Queries.CategoryHierarchyFacet, Relewise.Client";
+ public CategorySelectionStrategy categorySelectionStrategy;
+ public @Nullable SelectedCategoryPropertiesSettings selectedPropertiesSettings;
+ public static CategoryHierarchyFacet create(CategorySelectionStrategy categorySelectionStrategy, CategoryPath... selectedCategoryPath)
+ {
+ return new CategoryHierarchyFacet(categorySelectionStrategy, selectedCategoryPath);
+ }
+ public CategoryHierarchyFacet(CategorySelectionStrategy categorySelectionStrategy, CategoryPath... selectedCategoryPath)
+ {
+ this.categorySelectionStrategy = categorySelectionStrategy;
+ this.selected = new ArrayList<>(Arrays.asList(selectedCategoryPath));
+ }
+ public CategoryHierarchyFacet()
+ {
+ }
+ public CategorySelectionStrategy getCategorySelectionStrategy()
+ {
+ return this.categorySelectionStrategy;
+ }
+ public @Nullable SelectedCategoryPropertiesSettings getSelectedPropertiesSettings()
+ {
+ return this.selectedPropertiesSettings;
+ }
+ public CategoryHierarchyFacet setCategorySelectionStrategy(CategorySelectionStrategy categorySelectionStrategy)
+ {
+ this.categorySelectionStrategy = categorySelectionStrategy;
+ return this;
+ }
+ public CategoryHierarchyFacet setSelectedPropertiesSettings(SelectedCategoryPropertiesSettings selectedPropertiesSettings)
+ {
+ this.selectedPropertiesSettings = selectedPropertiesSettings;
+ return this;
+ }
+ @Override
+ public CategoryHierarchyFacet setSelected(CategoryPath... selected)
+ {
+ this.selected = new ArrayList<>(Arrays.asList(selected));;
+ return this;
+ }
+ public CategoryHierarchyFacet addToSelected(CategoryPath selected)
+ {
+ if (this.selected == null)
+ {
+ this.selected = new ArrayList<>();
+ }
+ this.selected.add(selected);
+ return this;
+ }
+ @Override
+ public CategoryHierarchyFacet setField(FacetingField field)
+ {
+ this.field = field;
+ return this;
+ }
+ @Override
+ public CategoryHierarchyFacet setSettings(FacetSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResult.java b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResult.java
new file mode 100644
index 0000000..777ff8d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResult.java
@@ -0,0 +1,81 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CategoryHierarchyFacetResult.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CategoryHierarchyFacetResult extends FacetResult
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Facets.Result.CategoryHierarchyFacetResult, Relewise.Client";
+ public CategorySelectionStrategy categorySelectionStrategy;
+ public CategoryHierarchyFacetResultCategoryNode[] nodes;
+ public static CategoryHierarchyFacetResult create(CategorySelectionStrategy categorySelectionStrategy, CategoryHierarchyFacetResultCategoryNode... nodes)
+ {
+ return new CategoryHierarchyFacetResult(categorySelectionStrategy, nodes);
+ }
+ public CategoryHierarchyFacetResult(CategorySelectionStrategy categorySelectionStrategy, CategoryHierarchyFacetResultCategoryNode... nodes)
+ {
+ this.categorySelectionStrategy = categorySelectionStrategy;
+ this.nodes = nodes;
+ }
+ public CategoryHierarchyFacetResult()
+ {
+ }
+ public CategorySelectionStrategy getCategorySelectionStrategy()
+ {
+ return this.categorySelectionStrategy;
+ }
+ public CategoryHierarchyFacetResultCategoryNode[] getNodes()
+ {
+ return this.nodes;
+ }
+ public CategoryHierarchyFacetResult setCategorySelectionStrategy(CategorySelectionStrategy categorySelectionStrategy)
+ {
+ this.categorySelectionStrategy = categorySelectionStrategy;
+ return this;
+ }
+ public CategoryHierarchyFacetResult setNodes(CategoryHierarchyFacetResultCategoryNode... nodes)
+ {
+ this.nodes = nodes;
+ return this;
+ }
+ public CategoryHierarchyFacetResult addToNodes(CategoryHierarchyFacetResultCategoryNode node)
+ {
+ if (this.nodes == null)
+ {
+ this.nodes = new CategoryHierarchyFacetResultCategoryNode[] { node };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.nodes));
+ existingList.add(node);
+ this.nodes = existingList.toArray(new CategoryHierarchyFacetResultCategoryNode[0]);
+ }
+ return this;
+ }
+ @Override
+ public CategoryHierarchyFacetResult setField(FacetingField field)
+ {
+ this.field = field;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResultCategoryNode.java b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResultCategoryNode.java
new file mode 100644
index 0000000..4482529
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CategoryHierarchyFacetResultCategoryNode.java
@@ -0,0 +1,102 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CategoryHierarchyFacetResultCategoryNode
+{
+ public CategoryResult category;
+ public Integer hits;
+ public @Nullable String parentId;
+ public @Nullable CategoryHierarchyFacetResultCategoryNode[] children;
+ public Boolean selected;
+ public static CategoryHierarchyFacetResultCategoryNode create(CategoryResult category, Integer hits, @Nullable String parentId, @Nullable CategoryHierarchyFacetResultCategoryNode[] children, Boolean selected)
+ {
+ return new CategoryHierarchyFacetResultCategoryNode(category, hits, parentId, children, selected);
+ }
+ public CategoryHierarchyFacetResultCategoryNode(CategoryResult category, Integer hits, @Nullable String parentId, @Nullable CategoryHierarchyFacetResultCategoryNode[] children, Boolean selected)
+ {
+ this.category = category;
+ this.hits = hits;
+ this.parentId = parentId;
+ this.children = children;
+ this.selected = selected;
+ }
+ public CategoryHierarchyFacetResultCategoryNode()
+ {
+ }
+ public CategoryResult getCategory()
+ {
+ return this.category;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public @Nullable String getParentId()
+ {
+ return this.parentId;
+ }
+ public @Nullable CategoryHierarchyFacetResultCategoryNode[] getChildren()
+ {
+ return this.children;
+ }
+ public Boolean getSelected()
+ {
+ return this.selected;
+ }
+ public CategoryHierarchyFacetResultCategoryNode setCategory(CategoryResult category)
+ {
+ this.category = category;
+ return this;
+ }
+ public CategoryHierarchyFacetResultCategoryNode setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public CategoryHierarchyFacetResultCategoryNode setParentId(String parentId)
+ {
+ this.parentId = parentId;
+ return this;
+ }
+ public CategoryHierarchyFacetResultCategoryNode setChildren(CategoryHierarchyFacetResultCategoryNode... children)
+ {
+ this.children = children;
+ return this;
+ }
+ public CategoryHierarchyFacetResultCategoryNode addToChildren(CategoryHierarchyFacetResultCategoryNode children)
+ {
+ if (this.children == null)
+ {
+ this.children = new CategoryHierarchyFacetResultCategoryNode[] { children };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.children));
+ existingList.add(children);
+ this.children = existingList.toArray(new CategoryHierarchyFacetResultCategoryNode[0]);
+ }
+ return this;
+ }
+ public CategoryHierarchyFacetResultCategoryNode setSelected(Boolean selected)
+ {
+ this.selected = selected;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryIdFilter.java b/src/src/main/java/com/relewise/client/model/CategoryIdFilter.java
index b923b95..3e76591 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -66,4 +64,10 @@ public CategoryIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public CategoryIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/CategoryIndexConfiguration.java
index 653f86b..2471938 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryIndexConfigurationEntry.java b/src/src/main/java/com/relewise/client/model/CategoryIndexConfigurationEntry.java
index 0129afa..25af6e2 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryIndexConfigurationEntry.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryIndexConfigurationEntry.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryLevelFilter.java b/src/src/main/java/com/relewise/client/model/CategoryLevelFilter.java
index fdcd164..6e2ed21 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryLevelFilter.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryLevelFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,4 +54,10 @@ public CategoryLevelFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public CategoryLevelFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryNameAndId.java b/src/src/main/java/com/relewise/client/model/CategoryNameAndId.java
index a63bb47..3e4eded 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryNameAndId.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryNameAndId.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResult.java b/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResult.java
index 0d59085..34c75e3 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResult.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResultAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResultAvailableFacetValue.java
index 876c5a7..6b1ec7a 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResultAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryNameAndIdResultAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryPath.java b/src/src/main/java/com/relewise/client/model/CategoryPath.java
index 5286117..9e441ea 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryPath.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryPath.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryPathResult.java b/src/src/main/java/com/relewise/client/model/CategoryPathResult.java
index a116236..eb67475 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryPathResult.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryPathResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryPathResultDetails.java b/src/src/main/java/com/relewise/client/model/CategoryPathResultDetails.java
index 8b1fba2..1e4d162 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryPathResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryPathResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryPathValueFacet.java b/src/src/main/java/com/relewise/client/model/CategoryPathValueFacet.java
new file mode 100644
index 0000000..5ec80e5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CategoryPathValueFacet.java
@@ -0,0 +1,61 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class CategoryPathValueFacet extends Facet
+{
+ public String $type = "";
+ public @Nullable ArrayList selected;
+ public @Nullable ArrayList getSelected()
+ {
+ return this.selected;
+ }
+ public CategoryPathValueFacet setSelected(CategoryPath... selected)
+ {
+ this.selected = new ArrayList<>(Arrays.asList(selected));;
+ return this;
+ }
+ public CategoryPathValueFacet addToSelected(CategoryPath selected)
+ {
+ if (this.selected == null)
+ {
+ this.selected = new ArrayList<>();
+ }
+ this.selected.add(selected);
+ return this;
+ }
+ @Override
+ public CategoryPathValueFacet setField(FacetingField field)
+ {
+ this.field = field;
+ return this;
+ }
+ @Override
+ public CategoryPathValueFacet setSettings(FacetSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryResult.java b/src/src/main/java/com/relewise/client/model/CategoryResult.java
index 2d62188..8a41988 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryResult.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryScope.java b/src/src/main/java/com/relewise/client/model/CategoryScope.java
index 0b054e8..29f6f80 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryScope.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryScope.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategorySelectionStrategy.java b/src/src/main/java/com/relewise/client/model/CategorySelectionStrategy.java
index 269f4f7..50a8a8d 100644
--- a/src/src/main/java/com/relewise/client/model/CategorySelectionStrategy.java
+++ b/src/src/main/java/com/relewise/client/model/CategorySelectionStrategy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** Defines how entities are to be selected by given paths. */
public enum CategorySelectionStrategy
{
ImmediateParent {
@@ -31,4 +30,9 @@ public String toString() {
return "Ancestors";
}
},
+ Descendants {
+ public String toString() {
+ return "Descendants";
+ }
+ },
}
diff --git a/src/src/main/java/com/relewise/client/model/CategoryUpdate.java b/src/src/main/java/com/relewise/client/model/CategoryUpdate.java
index 22d3451..4a9ee52 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CategoryUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/CategoryUpdateUpdateKind.java
index 5f1998b..a51239b 100644
--- a/src/src/main/java/com/relewise/client/model/CategoryUpdateUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/CategoryUpdateUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Change.java b/src/src/main/java/com/relewise/client/model/Change.java
new file mode 100644
index 0000000..79f4b72
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Change.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Indicates that some property should change by having a new value which is still of the same type. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Change.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Change implements IChange
+{
+ public String $type = "Relewise.Client.DataTypes.Changes.Change, Relewise.Client";
+ public static Change create()
+ {
+ return new Change();
+ }
+ public Change()
+ {
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/Channel.java b/src/src/main/java/com/relewise/client/model/Channel.java
new file mode 100644
index 0000000..f64745e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Channel.java
@@ -0,0 +1,63 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Channel
+{
+ public String name;
+ public @Nullable Channel subChannel;
+ public static Channel create(String name, Channel subChannel)
+ {
+ return new Channel(name, subChannel);
+ }
+ public Channel(String name, Channel subChannel)
+ {
+ this.name = name;
+ this.subChannel = subChannel;
+ }
+ public static Channel create(String name)
+ {
+ return new Channel(name);
+ }
+ public Channel(String name)
+ {
+ this.name = name;
+ }
+ public Channel()
+ {
+ }
+ public String getName()
+ {
+ return this.name;
+ }
+ public @Nullable Channel getSubChannel()
+ {
+ return this.subChannel;
+ }
+ public Channel setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ public Channel setSubChannel(Channel subChannel)
+ {
+ this.subChannel = subChannel;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ClearTextParser.java b/src/src/main/java/com/relewise/client/model/ClearTextParser.java
index d80b6d3..0006354 100644
--- a/src/src/main/java/com/relewise/client/model/ClearTextParser.java
+++ b/src/src/main/java/com/relewise/client/model/ClearTextParser.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CollectionFilterType.java b/src/src/main/java/com/relewise/client/model/CollectionFilterType.java
index 745cc9b..13dd256 100644
--- a/src/src/main/java/com/relewise/client/model/CollectionFilterType.java
+++ b/src/src/main/java/com/relewise/client/model/CollectionFilterType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Company.java b/src/src/main/java/com/relewise/client/model/Company.java
new file mode 100644
index 0000000..32a143b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Company.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Company
+{
+ public String id;
+ public @Nullable Company parent;
+ public @Nullable HashMap data;
+ public static Company create(String id)
+ {
+ return new Company(id);
+ }
+ public Company(String id)
+ {
+ this.id = id;
+ }
+ public Company()
+ {
+ }
+ public String getId()
+ {
+ return this.id;
+ }
+ public @Nullable Company getParent()
+ {
+ return this.parent;
+ }
+ public @Nullable HashMap getData()
+ {
+ return this.data;
+ }
+ public Company setId(String id)
+ {
+ this.id = id;
+ return this;
+ }
+ public Company setParent(Company parent)
+ {
+ this.parent = parent;
+ return this;
+ }
+ public Company addToData(String key, DataValue value)
+ {
+ if (this.data == null)
+ {
+ this.data = new HashMap<>();
+ }
+ this.data.put(key, value);
+ return this;
+ }
+ public Company setData(HashMap data)
+ {
+ this.data = data;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/CompanyAdministrativeAction.java
new file mode 100644
index 0000000..644c5c0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyAdministrativeAction.java
@@ -0,0 +1,83 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyAdministrativeAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyAdministrativeAction extends Trackable
+{
+ public String $type = "Relewise.Client.DataTypes.CompanyAdministrativeAction, Relewise.Client";
+ public FilterCollection filters;
+ public @Nullable Language language;
+ public CompanyAdministrativeActionUpdateKind kind;
+ public @Nullable Currency currency;
+ public static CompanyAdministrativeAction create(@Nullable Language language, @Nullable Currency currency, FilterCollection filters, CompanyAdministrativeActionUpdateKind kind)
+ {
+ return new CompanyAdministrativeAction(language, currency, filters, kind);
+ }
+ public CompanyAdministrativeAction(@Nullable Language language, @Nullable Currency currency, FilterCollection filters, CompanyAdministrativeActionUpdateKind kind)
+ {
+ this.language = language;
+ this.currency = currency;
+ this.filters = filters;
+ this.kind = kind;
+ }
+ public CompanyAdministrativeAction()
+ {
+ }
+ public FilterCollection getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable Language getLanguage()
+ {
+ return this.language;
+ }
+ public CompanyAdministrativeActionUpdateKind getKind()
+ {
+ return this.kind;
+ }
+ public @Nullable Currency getCurrency()
+ {
+ return this.currency;
+ }
+ public CompanyAdministrativeAction setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public CompanyAdministrativeAction setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
+ public CompanyAdministrativeAction setKind(CompanyAdministrativeActionUpdateKind kind)
+ {
+ this.kind = kind;
+ return this;
+ }
+ public CompanyAdministrativeAction setCurrency(Currency currency)
+ {
+ this.currency = currency;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyAdministrativeActionUpdateKind.java b/src/src/main/java/com/relewise/client/model/CompanyAdministrativeActionUpdateKind.java
new file mode 100644
index 0000000..c17d776
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyAdministrativeActionUpdateKind.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum CompanyAdministrativeActionUpdateKind
+{
+ Disable {
+ public String toString() {
+ return "Disable";
+ }
+ },
+ Enable {
+ public String toString() {
+ return "Enable";
+ }
+ },
+ Delete {
+ public String toString() {
+ return "Delete";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyDataFilter.java b/src/src/main/java/com/relewise/client/model/CompanyDataFilter.java
new file mode 100644
index 0000000..6a9e4ae
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyDataFilter.java
@@ -0,0 +1,159 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyDataFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyDataFilter extends DataFilter implements ICompanyFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client";
+ public static CompanyDataFilter create(String key, String... objectPath)
+ {
+ return new CompanyDataFilter(key, objectPath);
+ }
+ public CompanyDataFilter(String key, String... objectPath)
+ {
+ this.key = key;
+ this.objectPath = objectPath;
+ this.conditions = null;
+ this.mustMatchAllConditions = true;
+ this.filterOutIfKeyIsNotFound = true;
+ this.language = null;
+ this.currency = null;
+ }
+ public static CompanyDataFilter create(String key, String[] objectPath, @Nullable ValueConditionCollection conditions, Boolean mustMatchAllConditions, Boolean filterOutIfKeyIsNotFound, @Nullable Language language, Currency currency)
+ {
+ return new CompanyDataFilter(key, objectPath, conditions, mustMatchAllConditions, filterOutIfKeyIsNotFound, language, currency);
+ }
+ public CompanyDataFilter(String key, String[] objectPath, @Nullable ValueConditionCollection conditions, Boolean mustMatchAllConditions, Boolean filterOutIfKeyIsNotFound, @Nullable Language language, Currency currency)
+ {
+ this.key = key;
+ this.objectPath = objectPath;
+ this.conditions = conditions;
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ this.filterOutIfKeyIsNotFound = filterOutIfKeyIsNotFound;
+ this.language = language;
+ this.currency = currency;
+ }
+ public static CompanyDataFilter create(String key)
+ {
+ return new CompanyDataFilter(key);
+ }
+ public CompanyDataFilter(String key)
+ {
+ this.key = key;
+ this.conditions = null;
+ this.mustMatchAllConditions = true;
+ this.filterOutIfKeyIsNotFound = true;
+ this.language = null;
+ this.currency = null;
+ }
+ public static CompanyDataFilter create(String key, @Nullable ValueConditionCollection conditions, Boolean mustMatchAllConditions, Boolean filterOutIfKeyIsNotFound, @Nullable Language language, Currency currency)
+ {
+ return new CompanyDataFilter(key, conditions, mustMatchAllConditions, filterOutIfKeyIsNotFound, language, currency);
+ }
+ public CompanyDataFilter(String key, @Nullable ValueConditionCollection conditions, Boolean mustMatchAllConditions, Boolean filterOutIfKeyIsNotFound, @Nullable Language language, Currency currency)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ this.filterOutIfKeyIsNotFound = filterOutIfKeyIsNotFound;
+ this.language = language;
+ this.currency = currency;
+ }
+ public CompanyDataFilter()
+ {
+ this.filterOutIfKeyIsNotFound = true;
+ this.mustMatchAllConditions = true;
+ this.conditions = null;
+ this.language = null;
+ this.currency = null;
+ }
+ @Override
+ public CompanyDataFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setFilterOutIfKeyIsNotFound(Boolean filterOutIfKeyIsNotFound)
+ {
+ this.filterOutIfKeyIsNotFound = filterOutIfKeyIsNotFound;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setMustMatchAllConditions(Boolean mustMatchAllConditions)
+ {
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setConditions(ValueConditionCollection conditions)
+ {
+ this.conditions = conditions;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setCurrency(Currency currency)
+ {
+ this.currency = currency;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setObjectPath(String... objectPath)
+ {
+ this.objectPath = objectPath;
+ return this;
+ }
+ public CompanyDataFilter addToObjectPath(String objectPath)
+ {
+ if (this.objectPath == null)
+ {
+ this.objectPath = new String[] { objectPath };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.objectPath));
+ existingList.add(objectPath);
+ this.objectPath = existingList.toArray(new String[0]);
+ }
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public CompanyDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/CompanyDataHasKeyFilter.java
new file mode 100644
index 0000000..97bbdfc
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyDataHasKeyFilter extends Filter implements ICompanyFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.CompanyDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static CompanyDataHasKeyFilter create(String key)
+ {
+ return new CompanyDataHasKeyFilter(key);
+ }
+ public CompanyDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static CompanyDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new CompanyDataHasKeyFilter(key, negated);
+ }
+ public CompanyDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public CompanyDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public CompanyDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public CompanyDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public CompanyDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyDisabledFilter.java b/src/src/main/java/com/relewise/client/model/CompanyDisabledFilter.java
new file mode 100644
index 0000000..2a0a900
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyDisabledFilter extends Filter implements ICompanyFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.CompanyDisabledFilter, Relewise.Client";
+ public static CompanyDisabledFilter create()
+ {
+ return new CompanyDisabledFilter();
+ }
+ public CompanyDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static CompanyDisabledFilter create(Boolean negated)
+ {
+ return new CompanyDisabledFilter(negated);
+ }
+ public CompanyDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public CompanyDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public CompanyDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyIdFilter.java b/src/src/main/java/com/relewise/client/model/CompanyIdFilter.java
new file mode 100644
index 0000000..2a4ac72
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyIdFilter.java
@@ -0,0 +1,76 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyIdFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyIdFilter extends Filter implements ICompanyFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.CompanyIdFilter, Relewise.Client";
+ public ArrayList companyIds;
+ public static CompanyIdFilter create()
+ {
+ return new CompanyIdFilter();
+ }
+ public CompanyIdFilter()
+ {
+ this.negated = false;
+ }
+ public static CompanyIdFilter create(Boolean negated)
+ {
+ return new CompanyIdFilter(negated);
+ }
+ public CompanyIdFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ArrayList getCompanyIds()
+ {
+ return this.companyIds;
+ }
+ public CompanyIdFilter setCompanyIds(String... companyIds)
+ {
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));;
+ return this;
+ }
+ public CompanyIdFilter addToCompanyIds(String companyIds)
+ {
+ if (this.companyIds == null)
+ {
+ this.companyIds = new ArrayList<>();
+ }
+ this.companyIds.add(companyIds);
+ return this;
+ }
+ @Override
+ public CompanyIdFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public CompanyIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyUpdate.java b/src/src/main/java/com/relewise/client/model/CompanyUpdate.java
new file mode 100644
index 0000000..52a835a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyUpdate.java
@@ -0,0 +1,109 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = CompanyUpdate.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class CompanyUpdate extends Trackable
+{
+ public String $type = "Relewise.Client.DataTypes.CompanyUpdate, Relewise.Client";
+ public Company company;
+ public CompanyUpdateUpdateKind kind;
+ public @Nullable Company[] parents;
+ public Boolean replaceExistingParents;
+ public static CompanyUpdate create(Company company, Boolean replaceExistingParents, Company... parents)
+ {
+ return new CompanyUpdate(company, replaceExistingParents, parents);
+ }
+ public CompanyUpdate(Company company, Boolean replaceExistingParents, Company... parents)
+ {
+ this.company = company;
+ this.replaceExistingParents = replaceExistingParents;
+ this.parents = parents;
+ this.kind = CompanyUpdateUpdateKind.UpdateAndAppend;
+ }
+ public static CompanyUpdate create(Company company, Boolean replaceExistingParents, @Nullable Company[] parents, CompanyUpdateUpdateKind kind)
+ {
+ return new CompanyUpdate(company, replaceExistingParents, parents, kind);
+ }
+ public CompanyUpdate(Company company, Boolean replaceExistingParents, @Nullable Company[] parents, CompanyUpdateUpdateKind kind)
+ {
+ this.company = company;
+ this.replaceExistingParents = replaceExistingParents;
+ this.parents = parents;
+ this.kind = kind;
+ }
+ public CompanyUpdate()
+ {
+ this.kind = CompanyUpdateUpdateKind.UpdateAndAppend;
+ }
+ public Company getCompany()
+ {
+ return this.company;
+ }
+ public CompanyUpdateUpdateKind getKind()
+ {
+ return this.kind;
+ }
+ public @Nullable Company[] getParents()
+ {
+ return this.parents;
+ }
+ public Boolean getReplaceExistingParents()
+ {
+ return this.replaceExistingParents;
+ }
+ public CompanyUpdate setCompany(Company company)
+ {
+ this.company = company;
+ return this;
+ }
+ public CompanyUpdate setKind(CompanyUpdateUpdateKind kind)
+ {
+ this.kind = kind;
+ return this;
+ }
+ public CompanyUpdate setParents(Company... parents)
+ {
+ this.parents = parents;
+ return this;
+ }
+ public CompanyUpdate addToParents(Company parent)
+ {
+ if (this.parents == null)
+ {
+ this.parents = new Company[] { parent };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.parents));
+ existingList.add(parent);
+ this.parents = existingList.toArray(new Company[0]);
+ }
+ return this;
+ }
+ public CompanyUpdate setReplaceExistingParents(Boolean replaceExistingParents)
+ {
+ this.replaceExistingParents = replaceExistingParents;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/CompanyUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/CompanyUpdateUpdateKind.java
new file mode 100644
index 0000000..7d0bae8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/CompanyUpdateUpdateKind.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum CompanyUpdateUpdateKind
+{
+ UpdateAndAppend {
+ public String toString() {
+ return "UpdateAndAppend";
+ }
+ },
+ ReplaceProvidedProperties {
+ public String toString() {
+ return "ReplaceProvidedProperties";
+ }
+ },
+ ClearAndReplace {
+ public String toString() {
+ return "ClearAndReplace";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/ConditionConfiguration.java b/src/src/main/java/com/relewise/client/model/ConditionConfiguration.java
index 5a825c6..981ae52 100644
--- a/src/src/main/java/com/relewise/client/model/ConditionConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ConditionConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ConditionTarget.java b/src/src/main/java/com/relewise/client/model/ConditionTarget.java
index f32f536..da6ad59 100644
--- a/src/src/main/java/com/relewise/client/model/ConditionTarget.java
+++ b/src/src/main/java/com/relewise/client/model/ConditionTarget.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContainsCondition.java b/src/src/main/java/com/relewise/client/model/ContainsCondition.java
index b3ddc91..b624056 100644
--- a/src/src/main/java/com/relewise/client/model/ContainsCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ContainsCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContainsConditionCollectionArgumentEvaluationMode.java b/src/src/main/java/com/relewise/client/model/ContainsConditionCollectionArgumentEvaluationMode.java
index 73fc7bc..daeb794 100644
--- a/src/src/main/java/com/relewise/client/model/ContainsConditionCollectionArgumentEvaluationMode.java
+++ b/src/src/main/java/com/relewise/client/model/ContainsConditionCollectionArgumentEvaluationMode.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Content.java b/src/src/main/java/com/relewise/client/model/Content.java
index b3ebf4c..d5e1e3b 100644
--- a/src/src/main/java/com/relewise/client/model/Content.java
+++ b/src/src/main/java/com/relewise/client/model/Content.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/ContentAdministrativeAction.java
index 6545e01..18fe35b 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAdministrativeActionUpdateKind.java b/src/src/main/java/com/relewise/client/model/ContentAdministrativeActionUpdateKind.java
index d268e55..2463f57 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAdministrativeActionUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAdministrativeActionUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAssortmentFacet.java b/src/src/main/java/com/relewise/client/model/ContentAssortmentFacet.java
index 2d7d0c0..0219214 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAssortmentFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAssortmentFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAssortmentFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentAssortmentFacetResult.java
index ca1c0ac..05b8e03 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAssortmentFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAssortmentFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/ContentAssortmentFilter.java
new file mode 100644
index 0000000..998edc6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentAssortmentFilter.java
@@ -0,0 +1,76 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentAssortmentFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentAssortmentFilter extends Filter implements IContentFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentAssortmentFilter, Relewise.Client";
+ public ArrayList assortments;
+ public static ContentAssortmentFilter create()
+ {
+ return new ContentAssortmentFilter();
+ }
+ public ContentAssortmentFilter()
+ {
+ this.negated = false;
+ }
+ public static ContentAssortmentFilter create(Boolean negated)
+ {
+ return new ContentAssortmentFilter(negated);
+ }
+ public ContentAssortmentFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ArrayList getAssortments()
+ {
+ return this.assortments;
+ }
+ public ContentAssortmentFilter setAssortments(Integer... assortments)
+ {
+ this.assortments = new ArrayList<>(Arrays.asList(assortments));;
+ return this;
+ }
+ public ContentAssortmentFilter addToAssortments(Integer assortments)
+ {
+ if (this.assortments == null)
+ {
+ this.assortments = new ArrayList<>();
+ }
+ this.assortments.add(assortments);
+ return this;
+ }
+ @Override
+ public ContentAssortmentFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentAttributeSorting.java b/src/src/main/java/com/relewise/client/model/ContentAttributeSorting.java
index 2dfab40..fe8099f 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAttributeSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAttributeSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentAttributeSortingSortableAttribute.java b/src/src/main/java/com/relewise/client/model/ContentAttributeSortingSortableAttribute.java
index 2dbf6ac..68eb7d4 100644
--- a/src/src/main/java/com/relewise/client/model/ContentAttributeSortingSortableAttribute.java
+++ b/src/src/main/java/com/relewise/client/model/ContentAttributeSortingSortableAttribute.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategory.java b/src/src/main/java/com/relewise/client/model/ContentCategory.java
index f08acd7..263d83d 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategory.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategory.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/ContentCategoryAdministrativeAction.java
index ae08fdd..eb2d863 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryAssortmentFilter.java
index 20d7ee8..fd4e75c 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryAssortmentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryAssortmentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ContentCategoryAssortmentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryDataFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryDataFilter.java
index 7a09396..db6684c 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public ContentCategoryDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryDataHasKeyFilter.java
new file mode 100644
index 0000000..c607dbc
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryDataHasKeyFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentCategoryDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static ContentCategoryDataHasKeyFilter create(String key)
+ {
+ return new ContentCategoryDataHasKeyFilter(key);
+ }
+ public ContentCategoryDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static ContentCategoryDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new ContentCategoryDataHasKeyFilter(key, negated);
+ }
+ public ContentCategoryDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public ContentCategoryDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public ContentCategoryDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryDataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ContentCategoryDataRelevanceModifier.java
new file mode 100644
index 0000000..3a392ab
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryDataRelevanceModifier.java
@@ -0,0 +1,121 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a ContentCategory depending on matching conditions on a certain key. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryDataRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryDataRelevanceModifier extends DataRelevanceModifier implements IContentCategoryRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryDataRelevanceModifier, Relewise.Client";
+ public static ContentCategoryDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ return new ContentCategoryDataRelevanceModifier(key, conditions, multiplierSelector);
+ }
+ public ContentCategoryDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = true;
+ this.considerAsMatchIfKeyIsNotFound = false;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ContentCategory depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public static ContentCategoryDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ return new ContentCategoryDataRelevanceModifier(key, conditions, multiplierSelector, mustMatchAllConditions, considerAsMatchIfKeyIsNotFound);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ContentCategory depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public ContentCategoryDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ }
+ public ContentCategoryDataRelevanceModifier()
+ {
+ this.considerAsMatchIfKeyIsNotFound = false;
+ this.mustMatchAllConditions = true;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ return this;
+ }
+ /** @deprecated Use MultiplierSelector instead */
+ @Override
+ public ContentCategoryDataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
+ {
+ this.multiplyWeightBy = multiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
+ {
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setConditions(ValueCondition... conditions)
+ {
+ this.conditions = new ArrayList<>(Arrays.asList(conditions));;
+ return this;
+ }
+ public ContentCategoryDataRelevanceModifier addToConditions(ValueCondition conditions)
+ {
+ if (this.conditions == null)
+ {
+ this.conditions = new ArrayList<>();
+ }
+ this.conditions.add(conditions);
+ return this;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
+ {
+ this.multiplierSelector = multiplierSelector;
+ return this;
+ }
+ @Override
+ public ContentCategoryDataRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/ContentCategoryDetailsCollectionResponse.java
index a37fafc..848b957 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryDisabledFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryDisabledFilter.java
new file mode 100644
index 0000000..7c4785f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryDisabledFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentCategoryDisabledFilter, Relewise.Client";
+ public static ContentCategoryDisabledFilter create()
+ {
+ return new ContentCategoryDisabledFilter();
+ }
+ public ContentCategoryDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static ContentCategoryDisabledFilter create(Boolean negated)
+ {
+ return new ContentCategoryDisabledFilter(negated);
+ }
+ public ContentCategoryDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public ContentCategoryDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentCategoryDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryHasAncestorFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryHasAncestorFilter.java
index 2e7982f..cfb93ee 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryHasAncestorFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryHasAncestorFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ContentCategoryHasAncestorFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryHasAncestorFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryHasChildFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryHasChildFilter.java
index 2ffaa81..eaa2f67 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryHasChildFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryHasChildFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ContentCategoryHasChildFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryHasChildFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryHasContentsFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryHasContentsFilter.java
new file mode 100644
index 0000000..1f8e383
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryHasContentsFilter.java
@@ -0,0 +1,52 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryHasContentsFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryHasContentsFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentCategoryHasContentsFilter, Relewise.Client";
+ public static ContentCategoryHasContentsFilter create(Boolean negated)
+ {
+ return new ContentCategoryHasContentsFilter(negated);
+ }
+ public ContentCategoryHasContentsFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ContentCategoryHasContentsFilter()
+ {
+ }
+ @Override
+ public ContentCategoryHasContentsFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentCategoryHasContentsFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryHasParentFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryHasParentFilter.java
index 94335e4..4f99409 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryHasParentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryHasParentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ContentCategoryHasParentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryHasParentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilter.java
index c43b6be..951949f 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -77,4 +75,10 @@ public ContentCategoryIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilterCategoryQuery.java b/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilterCategoryQuery.java
index 6b51390..63f2e1a 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilterCategoryQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryIdFilterCategoryQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerConfiguration.java
index 7287930..da36691 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResult.java b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResult.java
index 6cf0b1c..ca28f05 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultCategory.java b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultCategory.java
index b035b37..77c3c76 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultCategory.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultCategory.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultTriggerConfiguration.java
index 1b6885c..10799c2 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryInterestTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryLevelFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryLevelFilter.java
index 99571eb..c560461 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryLevelFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryLevelFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ContentCategoryLevelFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentCategoryLevelFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryQuery.java b/src/src/main/java/com/relewise/client/model/ContentCategoryQuery.java
index 07263c1..9578066 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserFilter.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserFilter.java
new file mode 100644
index 0000000..a3147b0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserFilter.java
@@ -0,0 +1,83 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryRecentlyViewedByUserFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryRecentlyViewedByUserFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentCategoryRecentlyViewedByUserFilter, Relewise.Client";
+ public @Nullable OffsetDateTime sinceUtc;
+ public @Nullable Integer sinceMinutesAgo;
+ public static ContentCategoryRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ContentCategoryRecentlyViewedByUserFilter(sinceUtc);
+ }
+ public ContentCategoryRecentlyViewedByUserFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ public static ContentCategoryRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ContentCategoryRecentlyViewedByUserFilter(sinceUtc, negated);
+ }
+ public ContentCategoryRecentlyViewedByUserFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ContentCategoryRecentlyViewedByUserFilter()
+ {
+ this.negated = false;
+ }
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ public ContentCategoryRecentlyViewedByUserFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ public ContentCategoryRecentlyViewedByUserFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserRelevanceModifier.java
new file mode 100644
index 0000000..39a75b6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecentlyViewedByUserRelevanceModifier.java
@@ -0,0 +1,97 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a ContentCategory depending on whether they have viewed this content within some timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentCategoryRecentlyViewedByUserRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentCategoryRecentlyViewedByUserRelevanceModifier extends RecentlyViewedByUserRelevanceModifier implements IContentCategoryRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client";
+ public static ContentCategoryRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc)
+ {
+ return new ContentCategoryRecentlyViewedByUserRelevanceModifier(sinceUtc);
+ }
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ContentCategory depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public static ContentCategoryRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ return new ContentCategoryRecentlyViewedByUserRelevanceModifier(sinceUtc, ifPreviouslyViewedByUserMultiplyWeightBy, ifNotPreviouslyViewedByUserMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ContentCategory depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ }
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier()
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier setIfPreviouslyViewedByUserMultiplyWeightBy(Double ifPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier setIfNotPreviouslyViewedByUserMultiplyWeightBy(Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ContentCategoryRecentlyViewedByUserRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequest.java
index 80128a0..61b6483 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -77,4 +75,11 @@ public ContentCategoryRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentCategoryRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestCollection.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestCollection.java
index d1d30e8..4133118 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -29,14 +27,14 @@ public class ContentCategoryRecommendationRequestCollection extends LicensedRequ
{
public String $type = "Relewise.Client.Requests.Recommendations.ContentCategoryRecommendationRequestCollection, Relewise.Client";
public ArrayList requests;
- public Boolean requireDistinctContentAcrossResults;
- public static ContentCategoryRecommendationRequestCollection create(Boolean requireDistinctContentsAcrossResults, ContentCategoryRecommendationRequest... requests)
+ public Boolean requireDistinctCategoriesAcrossResults;
+ public static ContentCategoryRecommendationRequestCollection create(Boolean requireDistinctCategoriesesAcrossResults, ContentCategoryRecommendationRequest... requests)
{
- return new ContentCategoryRecommendationRequestCollection(requireDistinctContentsAcrossResults, requests);
+ return new ContentCategoryRecommendationRequestCollection(requireDistinctCategoriesesAcrossResults, requests);
}
- public ContentCategoryRecommendationRequestCollection(Boolean requireDistinctContentsAcrossResults, ContentCategoryRecommendationRequest... requests)
+ public ContentCategoryRecommendationRequestCollection(Boolean requireDistinctCategoriesesAcrossResults, ContentCategoryRecommendationRequest... requests)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentsAcrossResults;
+ this.requireDistinctCategoriesAcrossResults = requireDistinctCategoriesesAcrossResults;
this.requests = new ArrayList<>(Arrays.asList(requests));
}
public ContentCategoryRecommendationRequestCollection()
@@ -46,9 +44,9 @@ public ArrayList getRequests()
{
return this.requests;
}
- public Boolean getRequireDistinctContentAcrossResults()
+ public Boolean getRequireDistinctCategoriesAcrossResults()
{
- return this.requireDistinctContentAcrossResults;
+ return this.requireDistinctCategoriesAcrossResults;
}
public ContentCategoryRecommendationRequestCollection setRequests(ContentCategoryRecommendationRequest... requests)
{
@@ -64,9 +62,9 @@ public ContentCategoryRecommendationRequestCollection addToRequests(ContentCateg
this.requests.add(requests);
return this;
}
- public ContentCategoryRecommendationRequestCollection setRequireDistinctContentAcrossResults(Boolean requireDistinctContentAcrossResults)
+ public ContentCategoryRecommendationRequestCollection setRequireDistinctCategoriesAcrossResults(Boolean requireDistinctCategoriesAcrossResults)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentAcrossResults;
+ this.requireDistinctCategoriesAcrossResults = requireDistinctCategoriesAcrossResults;
return this;
}
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestSettings.java
index b63b321..4d4b1d0 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class ContentCategoryRecommendationRequestSettings
public Boolean allowReplacingOfRecentlyShownRecommendations;
public Boolean prioritizeDiversityBetweenRequests;
public SelectedContentCategoryPropertiesSettings selectedContentCategoryProperties;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static ContentCategoryRecommendationRequestSettings create()
{
return new ContentCategoryRecommendationRequestSettings();
@@ -54,6 +53,10 @@ public SelectedContentCategoryPropertiesSettings getSelectedContentCategoryPrope
{
return this.selectedContentCategoryProperties;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public ContentCategoryRecommendationRequestSettings setNumberOfRecommendations(Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -79,4 +82,9 @@ public ContentCategoryRecommendationRequestSettings setSelectedContentCategoryPr
this.selectedContentCategoryProperties = selectedContentCategoryProperties;
return this;
}
+ public ContentCategoryRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponse.java
index 42f08b6..736c5e2 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponseCollection.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponseCollection.java
index 2482d21..5a5fdd8 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationWeights.java b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationWeights.java
index 11f6c63..a5a5ff7 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationWeights.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryRecommendationWeights.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryResult.java b/src/src/main/java/com/relewise/client/model/ContentCategoryResult.java
index b7ea6ed..06f026a 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetails.java b/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetails.java
index 05fa989..bafb5dd 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetailsCategoryResultDetails.java b/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetailsCategoryResultDetails.java
index 2bdc013..c06cb55 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetailsCategoryResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryResultDetailsCategoryResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategorySearchRequest.java b/src/src/main/java/com/relewise/client/model/ContentCategorySearchRequest.java
index 1bbf6b0..57e8a31 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategorySearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategorySearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -140,4 +138,11 @@ public ContentCategorySearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentCategorySearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategorySearchResponse.java b/src/src/main/java/com/relewise/client/model/ContentCategorySearchResponse.java
index 78ab69e..be6b192 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategorySearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategorySearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategorySearchSettings.java b/src/src/main/java/com/relewise/client/model/ContentCategorySearchSettings.java
index 03c2303..b787dd5 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategorySearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategorySearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryUpdate.java b/src/src/main/java/com/relewise/client/model/ContentCategoryUpdate.java
index dddf991..aa64065 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentCategoryView.java b/src/src/main/java/com/relewise/client/model/ContentCategoryView.java
index 605933c..5f2bd3a 100644
--- a/src/src/main/java/com/relewise/client/model/ContentCategoryView.java
+++ b/src/src/main/java/com/relewise/client/model/ContentCategoryView.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class ContentCategoryView extends Trackable implements IUserIdentifier
public String $type = "Relewise.Client.DataTypes.ContentCategoryView, Relewise.Client";
public @Nullable User user;
public String[] idPath;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static ContentCategoryView create(@Nullable User user, String... idPath)
{
return new ContentCategoryView(user, idPath);
@@ -50,6 +50,11 @@ public String[] getIdPath()
{
return this.idPath;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public ContentCategoryView setUser(User user)
{
this.user = user;
@@ -74,4 +79,10 @@ public ContentCategoryView addToIdPath(String idPath)
}
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public ContentCategoryView setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacet.java
index 5252c2f..abdc9fa 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacetResult.java
index 5583f7d..4c3c1a6 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataBooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacet.java
index 0c23d7f..4690def 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacetResult.java
index 9e098f2..59a7706 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacet.java
index f481e2c..7c0ff75 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacetResult.java
index f50e8c2..9b7f7ca 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacet.java
index 37b3ffa..b992dd6 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacetResult.java
index a41faee..85c01c7 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataDoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataFilter.java b/src/src/main/java/com/relewise/client/model/ContentDataFilter.java
index bbb5e92..b05d1a4 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public ContentDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/ContentDataHasKeyFilter.java
new file mode 100644
index 0000000..ad11513
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentDataHasKeyFilter extends Filter implements IContentFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static ContentDataHasKeyFilter create(String key)
+ {
+ return new ContentDataHasKeyFilter(key);
+ }
+ public ContentDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static ContentDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new ContentDataHasKeyFilter(key, negated);
+ }
+ public ContentDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public ContentDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public ContentDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ContentDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacet.java
index ddbe145..31700c6 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacetResult.java
index 80d2d84..979b75d 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataIntegerValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataObjectFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataObjectFacet.java
index e3a1c83..e8e4a96 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataObjectFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataObjectFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataObjectFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataObjectFacetResult.java
index bdc0185..dab3ca1 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataObjectFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataObjectFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ContentDataRelevanceModifier.java
new file mode 100644
index 0000000..d083eaa
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentDataRelevanceModifier.java
@@ -0,0 +1,121 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Content depending on matching conditions on a certain key. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentDataRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentDataRelevanceModifier extends DataRelevanceModifier implements IContentRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ContentDataRelevanceModifier, Relewise.Client";
+ public static ContentDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ return new ContentDataRelevanceModifier(key, conditions, multiplierSelector);
+ }
+ public ContentDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = true;
+ this.considerAsMatchIfKeyIsNotFound = false;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Content depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public static ContentDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ return new ContentDataRelevanceModifier(key, conditions, multiplierSelector, mustMatchAllConditions, considerAsMatchIfKeyIsNotFound);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Content depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public ContentDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ }
+ public ContentDataRelevanceModifier()
+ {
+ this.considerAsMatchIfKeyIsNotFound = false;
+ this.mustMatchAllConditions = true;
+ }
+ @Override
+ public ContentDataRelevanceModifier setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ContentDataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ return this;
+ }
+ /** @deprecated Use MultiplierSelector instead */
+ @Override
+ public ContentDataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
+ {
+ this.multiplyWeightBy = multiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentDataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
+ {
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ return this;
+ }
+ @Override
+ public ContentDataRelevanceModifier setConditions(ValueCondition... conditions)
+ {
+ this.conditions = new ArrayList<>(Arrays.asList(conditions));;
+ return this;
+ }
+ public ContentDataRelevanceModifier addToConditions(ValueCondition conditions)
+ {
+ if (this.conditions == null)
+ {
+ this.conditions = new ArrayList<>();
+ }
+ this.conditions.add(conditions);
+ return this;
+ }
+ @Override
+ public ContentDataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
+ {
+ this.multiplierSelector = multiplierSelector;
+ return this;
+ }
+ @Override
+ public ContentDataRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataSorting.java b/src/src/main/java/com/relewise/client/model/ContentDataSorting.java
index 1df2d3a..325a422 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacet.java b/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacet.java
index 9a62125..9717684 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacetResult.java
index 5041dd3..26f02ba 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDataStringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/ContentDetailsCollectionResponse.java
index e9148c4..aab6957 100644
--- a/src/src/main/java/com/relewise/client/model/ContentDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentDisabledFilter.java b/src/src/main/java/com/relewise/client/model/ContentDisabledFilter.java
new file mode 100644
index 0000000..2d6c166
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentDisabledFilter extends Filter implements IContentFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentDisabledFilter, Relewise.Client";
+ public static ContentDisabledFilter create()
+ {
+ return new ContentDisabledFilter();
+ }
+ public ContentDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static ContentDisabledFilter create(Boolean negated)
+ {
+ return new ContentDisabledFilter(negated);
+ }
+ public ContentDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public ContentDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentFacetQuery.java b/src/src/main/java/com/relewise/client/model/ContentFacetQuery.java
index 873e301..300d8fe 100644
--- a/src/src/main/java/com/relewise/client/model/ContentFacetQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ContentFacetQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,9 +17,15 @@
import java.util.Set;
import java.util.HashSet;
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentFacetQuery.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class ContentFacetQuery
+public class ContentFacetQuery extends FacetQuery
{
+ public String $type = "Relewise.Client.DataTypes.Search.Facets.Queries.ContentFacetQuery, Relewise.Client";
public ArrayList items;
public static ContentFacetQuery create()
{
diff --git a/src/src/main/java/com/relewise/client/model/ContentFacetResult.java b/src/src/main/java/com/relewise/client/model/ContentFacetResult.java
index 38349b0..48d0c91 100644
--- a/src/src/main/java/com/relewise/client/model/ContentFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentHasCategoriesFilter.java b/src/src/main/java/com/relewise/client/model/ContentHasCategoriesFilter.java
new file mode 100644
index 0000000..fe947b2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentHasCategoriesFilter.java
@@ -0,0 +1,52 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentHasCategoriesFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentHasCategoriesFilter extends Filter implements IContentFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentHasCategoriesFilter, Relewise.Client";
+ public static ContentHasCategoriesFilter create(Boolean negated)
+ {
+ return new ContentHasCategoriesFilter(negated);
+ }
+ public ContentHasCategoriesFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ContentHasCategoriesFilter()
+ {
+ }
+ @Override
+ public ContentHasCategoriesFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentHasCategoriesFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentIdFilter.java b/src/src/main/java/com/relewise/client/model/ContentIdFilter.java
index e1fe868..cefd679 100644
--- a/src/src/main/java/com/relewise/client/model/ContentIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ContentIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ContentIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ContentIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/ContentIndexConfiguration.java
index 9eb050c..f5757a1 100644
--- a/src/src/main/java/com/relewise/client/model/ContentIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ContentIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentPopularitySorting.java b/src/src/main/java/com/relewise/client/model/ContentPopularitySorting.java
index 5afcd7b..909315e 100644
--- a/src/src/main/java/com/relewise/client/model/ContentPopularitySorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentPopularitySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentQuery.java b/src/src/main/java/com/relewise/client/model/ContentQuery.java
index 3c6bee5..e1e820e 100644
--- a/src/src/main/java/com/relewise/client/model/ContentQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ContentQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserFilter.java b/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserFilter.java
new file mode 100644
index 0000000..2a10e7d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserFilter.java
@@ -0,0 +1,83 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentRecentlyViewedByUserFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentRecentlyViewedByUserFilter extends Filter implements IContentFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ContentRecentlyViewedByUserFilter, Relewise.Client";
+ public @Nullable OffsetDateTime sinceUtc;
+ public @Nullable Integer sinceMinutesAgo;
+ public static ContentRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ContentRecentlyViewedByUserFilter(sinceUtc);
+ }
+ public ContentRecentlyViewedByUserFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ public static ContentRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ContentRecentlyViewedByUserFilter(sinceUtc, negated);
+ }
+ public ContentRecentlyViewedByUserFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ContentRecentlyViewedByUserFilter()
+ {
+ this.negated = false;
+ }
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ public ContentRecentlyViewedByUserFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ public ContentRecentlyViewedByUserFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserRelevanceModifier.java
new file mode 100644
index 0000000..c060efd
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ContentRecentlyViewedByUserRelevanceModifier.java
@@ -0,0 +1,97 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Content depending on whether they have viewed this content within some timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ContentRecentlyViewedByUserRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ContentRecentlyViewedByUserRelevanceModifier extends RecentlyViewedByUserRelevanceModifier implements IContentRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ContentRecentlyViewedByUserRelevanceModifier, Relewise.Client";
+ public static ContentRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc)
+ {
+ return new ContentRecentlyViewedByUserRelevanceModifier(sinceUtc);
+ }
+ public ContentRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Content depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public static ContentRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ return new ContentRecentlyViewedByUserRelevanceModifier(sinceUtc, ifPreviouslyViewedByUserMultiplyWeightBy, ifNotPreviouslyViewedByUserMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Content depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public ContentRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ }
+ public ContentRecentlyViewedByUserRelevanceModifier()
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ @Override
+ public ContentRecentlyViewedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserRelevanceModifier setIfPreviouslyViewedByUserMultiplyWeightBy(Double ifPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserRelevanceModifier setIfNotPreviouslyViewedByUserMultiplyWeightBy(Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ContentRecentlyViewedByUserRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequest.java
index 2b39de3..25ba787 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -81,4 +79,11 @@ public ContentRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestCollection.java b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestCollection.java
index bb053f8..f0cf226 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -29,14 +27,14 @@ public class ContentRecommendationRequestCollection extends LicensedRequest
{
public String $type = "Relewise.Client.Requests.Recommendations.ContentRecommendationRequestCollection, Relewise.Client";
public ArrayList requests;
- public Boolean requireDistinctContentAcrossResults;
+ public Boolean requireDistinctContentsAcrossResults;
public static ContentRecommendationRequestCollection create(Boolean requireDistinctContentsAcrossResults, ContentRecommendationRequest... requests)
{
return new ContentRecommendationRequestCollection(requireDistinctContentsAcrossResults, requests);
}
public ContentRecommendationRequestCollection(Boolean requireDistinctContentsAcrossResults, ContentRecommendationRequest... requests)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentsAcrossResults;
+ this.requireDistinctContentsAcrossResults = requireDistinctContentsAcrossResults;
this.requests = new ArrayList<>(Arrays.asList(requests));
}
public ContentRecommendationRequestCollection()
@@ -46,9 +44,9 @@ public ArrayList getRequests()
{
return this.requests;
}
- public Boolean getRequireDistinctContentAcrossResults()
+ public Boolean getRequireDistinctContentsAcrossResults()
{
- return this.requireDistinctContentAcrossResults;
+ return this.requireDistinctContentsAcrossResults;
}
public ContentRecommendationRequestCollection setRequests(ContentRecommendationRequest... requests)
{
@@ -64,9 +62,9 @@ public ContentRecommendationRequestCollection addToRequests(ContentRecommendatio
this.requests.add(requests);
return this;
}
- public ContentRecommendationRequestCollection setRequireDistinctContentAcrossResults(Boolean requireDistinctContentAcrossResults)
+ public ContentRecommendationRequestCollection setRequireDistinctContentsAcrossResults(Boolean requireDistinctContentsAcrossResults)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentAcrossResults;
+ this.requireDistinctContentsAcrossResults = requireDistinctContentsAcrossResults;
return this;
}
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestSettings.java
index 0dca038..53df75a 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class ContentRecommendationRequestSettings
public Boolean allowReplacingOfRecentlyShownRecommendations;
public @Nullable SelectedContentPropertiesSettings selectedContentProperties;
public Boolean prioritizeDiversityBetweenRequests;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static ContentRecommendationRequestSettings create()
{
return new ContentRecommendationRequestSettings();
@@ -54,6 +53,10 @@ public Boolean getPrioritizeDiversityBetweenRequests()
{
return this.prioritizeDiversityBetweenRequests;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public ContentRecommendationRequestSettings setNumberOfRecommendations(Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -79,4 +82,9 @@ public ContentRecommendationRequestSettings setPrioritizeDiversityBetweenRequest
this.prioritizeDiversityBetweenRequests = prioritizeDiversityBetweenRequests;
return this;
}
+ public ContentRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/ContentRecommendationResponse.java
index 5680674..2e5fc99 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentRecommendationResponseCollection.java b/src/src/main/java/com/relewise/client/model/ContentRecommendationResponseCollection.java
index 3a9ef24..155de5e 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRecommendationResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRecommendationResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentRelevanceSorting.java b/src/src/main/java/com/relewise/client/model/ContentRelevanceSorting.java
index 5f10cc4..e5689b7 100644
--- a/src/src/main/java/com/relewise/client/model/ContentRelevanceSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentRelevanceSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentResult.java b/src/src/main/java/com/relewise/client/model/ContentResult.java
index 0d21bd4..87648e6 100644
--- a/src/src/main/java/com/relewise/client/model/ContentResult.java
+++ b/src/src/main/java/com/relewise/client/model/ContentResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentResultDetails.java b/src/src/main/java/com/relewise/client/model/ContentResultDetails.java
index 7c90609..61cbd47 100644
--- a/src/src/main/java/com/relewise/client/model/ContentResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ContentResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentSearchRequest.java b/src/src/main/java/com/relewise/client/model/ContentSearchRequest.java
index 1af886d..212ecf5 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -160,4 +158,11 @@ public ContentSearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentSearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentSearchResponse.java b/src/src/main/java/com/relewise/client/model/ContentSearchResponse.java
index 5784ff2..12391c1 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentSearchSettings.java b/src/src/main/java/com/relewise/client/model/ContentSearchSettings.java
index f1522f0..ee58be8 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentSortBySpecification.java b/src/src/main/java/com/relewise/client/model/ContentSortBySpecification.java
index 877fd62..dac7382 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSortBySpecification.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSortBySpecification.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentSorting.java b/src/src/main/java/com/relewise/client/model/ContentSorting.java
index 769a4d1..ec50a8f 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentSortingSorting.java b/src/src/main/java/com/relewise/client/model/ContentSortingSorting.java
index 52aa81d..7229e1a 100644
--- a/src/src/main/java/com/relewise/client/model/ContentSortingSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ContentSortingSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentUpdate.java b/src/src/main/java/com/relewise/client/model/ContentUpdate.java
index dff770f..be8cd90 100644
--- a/src/src/main/java/com/relewise/client/model/ContentUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/ContentUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/ContentUpdateUpdateKind.java
index c3ef023..3c6bcb0 100644
--- a/src/src/main/java/com/relewise/client/model/ContentUpdateUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/ContentUpdateUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ContentView.java b/src/src/main/java/com/relewise/client/model/ContentView.java
index 0d0f31d..128dafc 100644
--- a/src/src/main/java/com/relewise/client/model/ContentView.java
+++ b/src/src/main/java/com/relewise/client/model/ContentView.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class ContentView extends Trackable implements IUserIdentifier
public String $type = "Relewise.Client.DataTypes.ContentView, Relewise.Client";
public @Nullable User user;
public Content content;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static ContentView create(@Nullable User user, Content content)
{
return new ContentView(user, content);
@@ -50,6 +50,11 @@ public Content getContent()
{
return this.content;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public ContentView setUser(User user)
{
this.user = user;
@@ -60,4 +65,10 @@ public ContentView setContent(Content content)
this.content = content;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public ContentView setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingContentRequest.java b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingContentRequest.java
index 4070265..187dd7e 100644
--- a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingContentRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingContentRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public ContentsViewedAfterViewingContentRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentsViewedAfterViewingContentRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleContentsRequest.java b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleContentsRequest.java
index b66844c..7f69cda 100644
--- a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleContentsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleContentsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -109,4 +107,11 @@ public ContentsViewedAfterViewingMultipleContentsRequest setCurrency(Currency cu
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentsViewedAfterViewingMultipleContentsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleProductsRequest.java b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleProductsRequest.java
index b834f26..15a528e 100644
--- a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingMultipleProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -109,4 +107,11 @@ public ContentsViewedAfterViewingMultipleProductsRequest setCurrency(Currency cu
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentsViewedAfterViewingMultipleProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingProductRequest.java b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingProductRequest.java
index e70ccb8..2c4edf4 100644
--- a/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingProductRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ContentsViewedAfterViewingProductRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public ContentsViewedAfterViewingProductRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ContentsViewedAfterViewingProductRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ContextConditionConfiguration.java b/src/src/main/java/com/relewise/client/model/ContextConditionConfiguration.java
index 6c53cd6..435c3c1 100644
--- a/src/src/main/java/com/relewise/client/model/ContextConditionConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ContextConditionConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Currency.java b/src/src/main/java/com/relewise/client/model/Currency.java
index ec7a6ba..d7edf47 100644
--- a/src/src/main/java/com/relewise/client/model/Currency.java
+++ b/src/src/main/java/com/relewise/client/model/Currency.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/CustomProductRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/CustomProductRecommendationRequest.java
index 218d81b..de24aba 100644
--- a/src/src/main/java/com/relewise/client/model/CustomProductRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/CustomProductRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -114,4 +112,11 @@ public CustomProductRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public CustomProductRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/DataDoubleSelector.java b/src/src/main/java/com/relewise/client/model/DataDoubleSelector.java
index b895251..0f6254b 100644
--- a/src/src/main/java/com/relewise/client/model/DataDoubleSelector.java
+++ b/src/src/main/java/com/relewise/client/model/DataDoubleSelector.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataFilter.java b/src/src/main/java/com/relewise/client/model/DataFilter.java
index f56de1d..e9120ef 100644
--- a/src/src/main/java/com/relewise/client/model/DataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/DataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -119,4 +117,10 @@ public DataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public DataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/DataIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/DataIndexConfiguration.java
index f2c164a..e57d9e7 100644
--- a/src/src/main/java/com/relewise/client/model/DataIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/DataIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataKeyPopularityMultiplierSelector.java b/src/src/main/java/com/relewise/client/model/DataKeyPopularityMultiplierSelector.java
new file mode 100644
index 0000000..7bc3103
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/DataKeyPopularityMultiplierSelector.java
@@ -0,0 +1,62 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a selector that uses a Key
to pick a value from an entity's data to change the weighing of an observed view or purchase when making a PopularProductsRequest
. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = DataKeyPopularityMultiplierSelector.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class DataKeyPopularityMultiplierSelector extends PopularityMultiplierSelector
+{
+ public String $type = "Relewise.Client.Requests.PopularityMultiplierSelectors.DataKeyPopularityMultiplierSelector, Relewise.Client";
+ /** The data key that will be used to select a factor that is applied to the entities observed views or purchases. */
+ public String key;
+ /**
+ * Creates a selector that uses a Key
to pick a value from an entity's data to change the weighing of an observed view or purchase when making a PopularProductsRequest
.
+ * @param key The data key that will be used to select a factor that is applied to the entities observed views or purchases.
+ */
+ public static DataKeyPopularityMultiplierSelector create(String key)
+ {
+ return new DataKeyPopularityMultiplierSelector(key);
+ }
+ /**
+ * Creates a selector that uses a Key
to pick a value from an entity's data to change the weighing of an observed view or purchase when making a PopularProductsRequest
.
+ * @param key The data key that will be used to select a factor that is applied to the entities observed views or purchases.
+ */
+ public DataKeyPopularityMultiplierSelector(String key)
+ {
+ this.key = key;
+ }
+ public DataKeyPopularityMultiplierSelector()
+ {
+ }
+ /** The data key that will be used to select a factor that is applied to the entities observed views or purchases. */
+ public String getKey()
+ {
+ return this.key;
+ }
+ /** The data key that will be used to select a factor that is applied to the entities observed views or purchases. */
+ public DataKeyPopularityMultiplierSelector setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacet.java
index 59a5e91..442f07d 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacetResult.java
index d348c56..93c7638 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectBooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacet.java
index fcb8319..57b8df2 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacetResult.java
index 17b22a1..0090798 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacet.java
index 9e48b60..3036f2c 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacetResult.java
index 9a778b5..7356227 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacet.java
index e17fcbc..e073eb9 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacetResult.java
index e9ee585..a89845f 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectDoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectFacet.java
index d56c0a5..7a2c39a 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectFacetResult.java
index 494c41d..002c885 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectFilter.java b/src/src/main/java/com/relewise/client/model/DataObjectFilter.java
index c57726e..11f6e74 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectFilter.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacet.java b/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacet.java
index caae26d..901a118 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacetResult.java
index f3b5bca..7d42123 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectStringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataObjectValueSelector.java b/src/src/main/java/com/relewise/client/model/DataObjectValueSelector.java
index 217e3a8..5812557 100644
--- a/src/src/main/java/com/relewise/client/model/DataObjectValueSelector.java
+++ b/src/src/main/java/com/relewise/client/model/DataObjectValueSelector.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -26,15 +24,16 @@ public class DataObjectValueSelector
public @Nullable DataObjectFilter filter;
public @Nullable DataObjectValueSelector childSelector;
public @Nullable DataObjectValueSelector fallbackSelector;
- public static DataObjectValueSelector create(String key, @Nullable DataObjectFilter filter, DataObjectValueSelector childSelector)
+ public static DataObjectValueSelector create(String key, @Nullable DataObjectFilter filter, @Nullable DataObjectValueSelector childSelector, DataObjectValueSelector fallbackSelector)
{
- return new DataObjectValueSelector(key, filter, childSelector);
+ return new DataObjectValueSelector(key, filter, childSelector, fallbackSelector);
}
- public DataObjectValueSelector(String key, @Nullable DataObjectFilter filter, DataObjectValueSelector childSelector)
+ public DataObjectValueSelector(String key, @Nullable DataObjectFilter filter, @Nullable DataObjectValueSelector childSelector, DataObjectValueSelector fallbackSelector)
{
this.key = key;
this.filter = filter;
this.childSelector = childSelector;
+ this.fallbackSelector = fallbackSelector;
}
public static DataObjectValueSelector create(String key)
{
diff --git a/src/src/main/java/com/relewise/client/model/DataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/DataRelevanceModifier.java
new file mode 100644
index 0000000..f3e6f3f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/DataRelevanceModifier.java
@@ -0,0 +1,128 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ProductDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductDataRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentDataRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryDataRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryDataRelevanceModifier, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class DataRelevanceModifier extends RelevanceModifier
+{
+ public String $type = "";
+ /** The data key that this RelevanceModifier
will distinguish on. */
+ public String key;
+ /** Specifies whether entities that don't have the specific data Key
should be considered a match (true
) or not (false
). */
+ public Boolean considerAsMatchIfKeyIsNotFound;
+ /** @deprecated Use MultiplierSelector instead */
+ public Double multiplyWeightBy;
+ /** Specifies whether all Conditions
should parse their test on the specific data Key
(true
) or if only one is required (false
). */
+ public Boolean mustMatchAllConditions;
+ /** The conditions that must hold for the specific data Key
in order for the entity to be boosted. */
+ public ArrayList conditions;
+ /** The selector for the multiplier which the entities parsing the Conditions
will be have their rank multiplied by. It can either be a FixedDoubleValueSelector
taking a fixed value or a DataDoubleSelector
that can take the multiplier from a data key containing a double. */
+ public ValueSelector multiplierSelector;
+ /** The data key that this RelevanceModifier
will distinguish on. */
+ public String getKey()
+ {
+ return this.key;
+ }
+ /** Specifies whether entities that don't have the specific data Key
should be considered a match (true
) or not (false
). */
+ public Boolean getConsiderAsMatchIfKeyIsNotFound()
+ {
+ return this.considerAsMatchIfKeyIsNotFound;
+ }
+ /** @deprecated Use MultiplierSelector instead */
+ public Double getMultiplyWeightBy()
+ {
+ return this.multiplyWeightBy;
+ }
+ /** Specifies whether all Conditions
should parse their test on the specific data Key
(true
) or if only one is required (false
). */
+ public Boolean getMustMatchAllConditions()
+ {
+ return this.mustMatchAllConditions;
+ }
+ /** The conditions that must hold for the specific data Key
in order for the entity to be boosted. */
+ public ArrayList getConditions()
+ {
+ return this.conditions;
+ }
+ /** The selector for the multiplier which the entities parsing the Conditions
will be have their rank multiplied by. It can either be a FixedDoubleValueSelector
taking a fixed value or a DataDoubleSelector
that can take the multiplier from a data key containing a double. */
+ public ValueSelector getMultiplierSelector()
+ {
+ return this.multiplierSelector;
+ }
+ /** The data key that this RelevanceModifier
will distinguish on. */
+ public DataRelevanceModifier setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ /** Specifies whether entities that don't have the specific data Key
should be considered a match (true
) or not (false
). */
+ public DataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ return this;
+ }
+ /** @deprecated Use MultiplierSelector instead */
+ public DataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
+ {
+ this.multiplyWeightBy = multiplyWeightBy;
+ return this;
+ }
+ /** Specifies whether all Conditions
should parse their test on the specific data Key
(true
) or if only one is required (false
). */
+ public DataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
+ {
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ return this;
+ }
+ /** The conditions that must hold for the specific data Key
in order for the entity to be boosted. */
+ public DataRelevanceModifier setConditions(ValueCondition... conditions)
+ {
+ this.conditions = new ArrayList<>(Arrays.asList(conditions));;
+ return this;
+ }
+ /** The conditions that must hold for the specific data Key
in order for the entity to be boosted. */
+ public DataRelevanceModifier addToConditions(ValueCondition conditions)
+ {
+ if (this.conditions == null)
+ {
+ this.conditions = new ArrayList<>();
+ }
+ this.conditions.add(conditions);
+ return this;
+ }
+ /** The selector for the multiplier which the entities parsing the Conditions
will be have their rank multiplied by. It can either be a FixedDoubleValueSelector
taking a fixed value or a DataDoubleSelector
that can take the multiplier from a data key containing a double. */
+ public DataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
+ {
+ this.multiplierSelector = multiplierSelector;
+ return this;
+ }
+ @Override
+ public DataRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/DataSelectionStrategy.java b/src/src/main/java/com/relewise/client/model/DataSelectionStrategy.java
index 045a136..9a939e7 100644
--- a/src/src/main/java/com/relewise/client/model/DataSelectionStrategy.java
+++ b/src/src/main/java/com/relewise/client/model/DataSelectionStrategy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataValue.java b/src/src/main/java/com/relewise/client/model/DataValue.java
index c1cc2e9..270c274 100644
--- a/src/src/main/java/com/relewise/client/model/DataValue.java
+++ b/src/src/main/java/com/relewise/client/model/DataValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DataValueDataValueTypes.java b/src/src/main/java/com/relewise/client/model/DataValueDataValueTypes.java
index da1f462..ea918aa 100644
--- a/src/src/main/java/com/relewise/client/model/DataValueDataValueTypes.java
+++ b/src/src/main/java/com/relewise/client/model/DataValueDataValueTypes.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRule.java b/src/src/main/java/com/relewise/client/model/DecompoundRule.java
index 4c73e1a..74a19ca 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRule.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,7 +25,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class DecompoundRule extends SearchRule
{
- public String $type = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.DecompoundRule, Relewise.Client";
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client";
public String word;
public @Nullable String head;
public @Nullable String[] modifiers;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesRequest.java
index 39911ac..fed8dff 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class DecompoundRuleSaveSearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesResponse.java
index 48dd249..df45cee 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRuleSaveSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/DecompoundRuleSearchRulesResponse.java
index ecd10ec..88f02ad 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRuleSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRuleSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class DecompoundRuleSearchRulesResponse extends TimedResponse
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequest.java b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequest.java
index c7a261f..8c26053 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBy.java
index b542e4a..a2e8a6f 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBy.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySearchRulesRequest.java
index f1575d4..3237d40 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class DecompoundRulesRequestSortBySearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySorting.java
index 706af54..6f2d0d8 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySorting.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRulesRequestSortBySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DecompoundRulesResponse.java b/src/src/main/java/com/relewise/client/model/DecompoundRulesResponse.java
index 028c60d..17b33c9 100644
--- a/src/src/main/java/com/relewise/client/model/DecompoundRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/DecompoundRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Decrease.java b/src/src/main/java/com/relewise/client/model/Decrease.java
new file mode 100644
index 0000000..a9e3390
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Decrease.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Indicates that some property should change by decreasing in value. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Decrease.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Decrease implements IChange
+{
+ public String $type = "Relewise.Client.DataTypes.Changes.Decrease, Relewise.Client";
+ public static Decrease create()
+ {
+ return new Decrease();
+ }
+ public Decrease()
+ {
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/DeleteDecompoundRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteDecompoundRulesRequest.java
index 1447f1d..55436e7 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteDecompoundRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteDecompoundRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteMerchandisingRuleRequest.java b/src/src/main/java/com/relewise/client/model/DeleteMerchandisingRuleRequest.java
index 798ce93..e4e5087 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteMerchandisingRuleRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteMerchandisingRuleRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeletePredictionRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeletePredictionRulesRequest.java
index ab7ff92..5b3eb98 100644
--- a/src/src/main/java/com/relewise/client/model/DeletePredictionRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeletePredictionRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteRedirectRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteRedirectRulesRequest.java
index b45c5e7..c4ee2b6 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteRedirectRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteRedirectRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSearchIndexRequest.java b/src/src/main/java/com/relewise/client/model/DeleteSearchIndexRequest.java
index 99cebc9..2bc4248 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteSearchIndexRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteSearchIndexRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSearchResultModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteSearchResultModifierRulesRequest.java
new file mode 100644
index 0000000..1ee9673
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/DeleteSearchResultModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = DeleteSearchResultModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class DeleteSearchResultModifierRulesRequest extends DeleteSearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.DeleteSearchResultModifierRulesRequest, Relewise.Client";
+ public static DeleteSearchResultModifierRulesRequest create(UUID[] ids, String deletedBy)
+ {
+ return new DeleteSearchResultModifierRulesRequest(ids, deletedBy);
+ }
+ public DeleteSearchResultModifierRulesRequest(UUID[] ids, String deletedBy)
+ {
+ this.ids = ids;
+ this.deletedBy = deletedBy;
+ }
+ public DeleteSearchResultModifierRulesRequest()
+ {
+ }
+ @Override
+ public DeleteSearchResultModifierRulesRequest setIds(UUID... ids)
+ {
+ this.ids = ids;
+ return this;
+ }
+ public DeleteSearchResultModifierRulesRequest addToIds(UUID id)
+ {
+ if (this.ids == null)
+ {
+ this.ids = new UUID[] { id };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.ids));
+ existingList.add(id);
+ this.ids = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ @Override
+ public DeleteSearchResultModifierRulesRequest setDeletedBy(String deletedBy)
+ {
+ this.deletedBy = deletedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteSearchRulesRequest.java
index b42e543..9e64515 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteSearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteSearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = DeleteRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DeleteRedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DeleteDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DeleteDecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DeleteStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DeleteStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = DeleteSearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DeleteSearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = DeleteSearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DeleteSearchResultModifierRulesRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class DeleteSearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/DeleteSearchRulesResponse.java
index b10760d..b884d9e 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSearchTermModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteSearchTermModifierRulesRequest.java
new file mode 100644
index 0000000..98785a7
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/DeleteSearchTermModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = DeleteSearchTermModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class DeleteSearchTermModifierRulesRequest extends DeleteSearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.DeleteSearchTermModifierRulesRequest, Relewise.Client";
+ public static DeleteSearchTermModifierRulesRequest create(UUID[] ids, String deletedBy)
+ {
+ return new DeleteSearchTermModifierRulesRequest(ids, deletedBy);
+ }
+ public DeleteSearchTermModifierRulesRequest(UUID[] ids, String deletedBy)
+ {
+ this.ids = ids;
+ this.deletedBy = deletedBy;
+ }
+ public DeleteSearchTermModifierRulesRequest()
+ {
+ }
+ @Override
+ public DeleteSearchTermModifierRulesRequest setIds(UUID... ids)
+ {
+ this.ids = ids;
+ return this;
+ }
+ public DeleteSearchTermModifierRulesRequest addToIds(UUID id)
+ {
+ if (this.ids == null)
+ {
+ this.ids = new UUID[] { id };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.ids));
+ existingList.add(id);
+ this.ids = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ @Override
+ public DeleteSearchTermModifierRulesRequest setDeletedBy(String deletedBy)
+ {
+ this.deletedBy = deletedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/DeleteStemmingRulesRequest.java b/src/src/main/java/com/relewise/client/model/DeleteStemmingRulesRequest.java
index 2d63f23..3189aee 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteStemmingRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteStemmingRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSynonymsRequest.java b/src/src/main/java/com/relewise/client/model/DeleteSynonymsRequest.java
index 94366b8..7b60bc9 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteSynonymsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteSynonymsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteSynonymsResponse.java b/src/src/main/java/com/relewise/client/model/DeleteSynonymsResponse.java
index 6857a83..37120ce 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteSynonymsResponse.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteSynonymsResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DeleteTriggerConfigurationRequest.java b/src/src/main/java/com/relewise/client/model/DeleteTriggerConfigurationRequest.java
index 54a2426..838f57a 100644
--- a/src/src/main/java/com/relewise/client/model/DeleteTriggerConfigurationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/DeleteTriggerConfigurationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DistinctCondition.java b/src/src/main/java/com/relewise/client/model/DistinctCondition.java
index 8e74a47..7652122 100644
--- a/src/src/main/java/com/relewise/client/model/DistinctCondition.java
+++ b/src/src/main/java/com/relewise/client/model/DistinctCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/DoubleAvailableFacetValue.java
index e80b333..905ea59 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleChainableRange.java b/src/src/main/java/com/relewise/client/model/DoubleChainableRange.java
index a940e5f..1f0c61e 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleChainableRange.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleChainableRange.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleChainableRangeAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/DoubleChainableRangeAvailableFacetValue.java
index 24d7753..045fbaa 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleChainableRangeAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleChainableRangeAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacet.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacet.java
index 289075a..9c231f4 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacetResult.java
index 2370a7c..c7a7361 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacet.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacet.java
index 681f309..90d54f1 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacetResult.java
index c7a6ca5..6a25859 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacet.java
index baf4656..8f7c278 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacetResult.java
index af1fefe..cd99fa4 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleContentDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacet.java
index 46ce9a3..5e90c7d 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacetResult.java
index de00a51..b0b0159 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacet.java
index 4a89e0a..b025c96 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacetResult.java
index aec4848..e015e93 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacet.java
index ed881bb..e50d5cf 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacetResult.java
index 12f6b51..800d665 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataObjectValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataRangeFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataRangeFacet.java
index 904b396..98587a7 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataRangesFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataRangesFacet.java
index 418bf60..a71a01b 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleDataValueFacet.java
index e36f39d..a363447 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleDataValueFacetResult.java
index 41994c2..3fc70e3 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleDoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleDoubleValueFacetResult.java
index 759e563..2fd1bc6 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleDoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleDoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacet.java
index 2789d86..dd25e86 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacetResult.java
index 66326b4..f0c4e71 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacet.java
index 354a977..dcb74cb 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacetResult.java
index 65094b8..adbc8ae 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacet.java
index 9fd0541..937211c 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacetResult.java
index b875df1..b4323e4 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductCategoryDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacet.java
index e0efc00..c12b6b2 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacetResult.java
index 8dec613..ea1b46d 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacet.java
index b51c44f..d6d5aad 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacetResult.java
index b5ec5a0..3660a2f 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacet.java
index 03f78b8..70760f8 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacetResult.java
index 3cdc961..4e3a991 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleProductDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleRange.java b/src/src/main/java/com/relewise/client/model/DoubleRange.java
index d7bfeb9..3e09d82 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleRange.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleRange.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleRangeAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/DoubleRangeAvailableFacetValue.java
index b9d9973..766976b 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleRangeAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleRangeAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleRangeFacetResult.java
index ebce1e5..6de5b7a 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleRangesFacetResult.java
index 040552d..a1d9036 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleValueFacet.java b/src/src/main/java/com/relewise/client/model/DoubleValueFacet.java
index d495987..16c15f2 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/DoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/DoubleValueFacetResult.java
index 73e9966..dd72fcb 100644
--- a/src/src/main/java/com/relewise/client/model/DoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/DoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/EntitiesRequest.java b/src/src/main/java/com/relewise/client/model/EntitiesRequest.java
new file mode 100644
index 0000000..8a6f907
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/EntitiesRequest.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class EntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public @Nullable AdvertisersRequestEntityFilters filters;
+ public @Nullable AdvertisersRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public @Nullable AdvertisersRequestEntityFilters getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable AdvertisersRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public EntitiesRequest setFilters(AdvertisersRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public EntitiesRequest setSorting(AdvertisersRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public EntitiesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public EntitiesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
new file mode 100644
index 0000000..b7ab24f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
@@ -0,0 +1,179 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class EntityChangeTriggerConfiguration extends ProductChangeTriggerResultTriggerConfiguration
+{
+ public String $type = "";
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable ProductPropertySelector entityPropertySelector;
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection beforeChangeFilters;
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection afterChangeFilters;
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange change;
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable ProductChangeTriggerResultSettings resultSettings;
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable ProductPropertySelector getEntityPropertySelector()
+ {
+ return this.entityPropertySelector;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection getBeforeChangeFilters()
+ {
+ return this.beforeChangeFilters;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection getAfterChangeFilters()
+ {
+ return this.afterChangeFilters;
+ }
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange getChange()
+ {
+ return this.change;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable ProductChangeTriggerResultSettings getResultSettings()
+ {
+ return this.resultSettings;
+ }
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public EntityChangeTriggerConfiguration setEntityPropertySelector(ProductPropertySelector entityPropertySelector)
+ {
+ this.entityPropertySelector = entityPropertySelector;
+ return this;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public EntityChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
+ {
+ this.beforeChangeFilters = beforeChangeFilters;
+ return this;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public EntityChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
+ {
+ this.afterChangeFilters = afterChangeFilters;
+ 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. */
+ public EntityChangeTriggerConfiguration setChange(IChange change)
+ {
+ this.change = change;
+ return this;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public EntityChangeTriggerConfiguration setResultSettings(ProductChangeTriggerResultSettings resultSettings)
+ {
+ this.resultSettings = resultSettings;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public EntityChangeTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public EntityChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/EntityChangeTriggerResult.java b/src/src/main/java/com/relewise/client/model/EntityChangeTriggerResult.java
new file mode 100644
index 0000000..1608c16
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/EntityChangeTriggerResult.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class EntityChangeTriggerResult implements ITriggerResult
+{
+ public String $type = "";
+ public UserResultDetails user;
+ public UserResultDetails getUser()
+ {
+ return this.user;
+ }
+ public EntityChangeTriggerResult setUser(UserResultDetails user)
+ {
+ this.user = user;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/EntityType.java b/src/src/main/java/com/relewise/client/model/EntityType.java
index 4b3c67b..71e46da 100644
--- a/src/src/main/java/com/relewise/client/model/EntityType.java
+++ b/src/src/main/java/com/relewise/client/model/EntityType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/EqualsCondition.java b/src/src/main/java/com/relewise/client/model/EqualsCondition.java
index 8ef1c70..fc65c39 100644
--- a/src/src/main/java/com/relewise/client/model/EqualsCondition.java
+++ b/src/src/main/java/com/relewise/client/model/EqualsCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/EvaluationMode.java b/src/src/main/java/com/relewise/client/model/EvaluationMode.java
index c580773..6f2c3e4 100644
--- a/src/src/main/java/com/relewise/client/model/EvaluationMode.java
+++ b/src/src/main/java/com/relewise/client/model/EvaluationMode.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ExpectedSearchTermResult.java b/src/src/main/java/com/relewise/client/model/ExpectedSearchTermResult.java
index f9b8533..0f44eec 100644
--- a/src/src/main/java/com/relewise/client/model/ExpectedSearchTermResult.java
+++ b/src/src/main/java/com/relewise/client/model/ExpectedSearchTermResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Facet.java b/src/src/main/java/com/relewise/client/model/Facet.java
index 5f90ad2..b60a966 100644
--- a/src/src/main/java/com/relewise/client/model/Facet.java
+++ b/src/src/main/java/com/relewise/client/model/Facet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -58,6 +56,7 @@
@JsonSubTypes.Type(value = DataObjectFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.DataObjectFacet, Relewise.Client"),
@JsonSubTypes.Type(value = ProductCategoryDataObjectFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.ProductCategoryDataObjectFacet, Relewise.Client"),
@JsonSubTypes.Type(value = ContentDataObjectFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.ContentDataObjectFacet, Relewise.Client"),
+ @JsonSubTypes.Type(value = CategoryHierarchyFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.CategoryHierarchyFacet, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Facet
diff --git a/src/src/main/java/com/relewise/client/model/FacetQuery.java b/src/src/main/java/com/relewise/client/model/FacetQuery.java
new file mode 100644
index 0000000..1596517
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/FacetQuery.java
@@ -0,0 +1,30 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class FacetQuery
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/FacetResult.java b/src/src/main/java/com/relewise/client/model/FacetResult.java
index 44913b4..2e8188c 100644
--- a/src/src/main/java/com/relewise/client/model/FacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/FacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,6 +54,7 @@
@JsonSubTypes.Type(value = DataObjectDoubleRangeFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.DataObjectDoubleRangeFacetResult, Relewise.Client"),
@JsonSubTypes.Type(value = DataObjectDoubleRangesFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.DataObjectDoubleRangesFacetResult, Relewise.Client"),
@JsonSubTypes.Type(value = DataObjectFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.DataObjectFacetResult, Relewise.Client"),
+ @JsonSubTypes.Type(value = CategoryHierarchyFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.CategoryHierarchyFacetResult, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class FacetResult
diff --git a/src/src/main/java/com/relewise/client/model/FacetSettings.java b/src/src/main/java/com/relewise/client/model/FacetSettings.java
index 1801923..810417a 100644
--- a/src/src/main/java/com/relewise/client/model/FacetSettings.java
+++ b/src/src/main/java/com/relewise/client/model/FacetSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -23,6 +21,7 @@
public class FacetSettings
{
public Boolean alwaysIncludeSelectedInAvailable;
+ public Boolean includeZeroHitsInAvailable;
public static FacetSettings create()
{
return new FacetSettings();
@@ -34,9 +33,18 @@ public Boolean getAlwaysIncludeSelectedInAvailable()
{
return this.alwaysIncludeSelectedInAvailable;
}
+ public Boolean getIncludeZeroHitsInAvailable()
+ {
+ return this.includeZeroHitsInAvailable;
+ }
public FacetSettings setAlwaysIncludeSelectedInAvailable(Boolean alwaysIncludeSelectedInAvailable)
{
this.alwaysIncludeSelectedInAvailable = alwaysIncludeSelectedInAvailable;
return this;
}
+ public FacetSettings setIncludeZeroHitsInAvailable(Boolean includeZeroHitsInAvailable)
+ {
+ this.includeZeroHitsInAvailable = includeZeroHitsInAvailable;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/FacetingField.java b/src/src/main/java/com/relewise/client/model/FacetingField.java
index 43e9f65..3c4db6c 100644
--- a/src/src/main/java/com/relewise/client/model/FacetingField.java
+++ b/src/src/main/java/com/relewise/client/model/FacetingField.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/FieldIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/FieldIndexConfiguration.java
index ddafee2..2776c7d 100644
--- a/src/src/main/java/com/relewise/client/model/FieldIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/FieldIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -26,6 +24,7 @@ public class FieldIndexConfiguration
public Short weight;
public PredictionSourceType predictionSourceType;
public @Nullable Parser parser;
+ public @Nullable MatchTypeSettings matchTypeSettings;
public static FieldIndexConfiguration create(Boolean included, Short weight, PredictionSourceType predictionSourceType, Parser parser)
{
return new FieldIndexConfiguration(included, weight, predictionSourceType, parser);
@@ -36,6 +35,19 @@ public FieldIndexConfiguration(Boolean included, Short weight, PredictionSourceT
this.weight = weight;
this.predictionSourceType = predictionSourceType;
this.parser = parser;
+ this.matchTypeSettings = null;
+ }
+ public static FieldIndexConfiguration create(Boolean included, Short weight, PredictionSourceType predictionSourceType, Parser parser, MatchTypeSettings matchTypeSettings)
+ {
+ return new FieldIndexConfiguration(included, weight, predictionSourceType, parser, matchTypeSettings);
+ }
+ public FieldIndexConfiguration(Boolean included, Short weight, PredictionSourceType predictionSourceType, Parser parser, MatchTypeSettings matchTypeSettings)
+ {
+ this.included = included;
+ this.weight = weight;
+ this.predictionSourceType = predictionSourceType;
+ this.parser = parser;
+ this.matchTypeSettings = matchTypeSettings;
}
public static FieldIndexConfiguration create(Boolean included, Short weight, PredictionSourceType predictionSourceType)
{
@@ -46,9 +58,22 @@ public FieldIndexConfiguration(Boolean included, Short weight, PredictionSourceT
this.included = included;
this.weight = weight;
this.predictionSourceType = predictionSourceType;
+ this.matchTypeSettings = null;
+ }
+ public static FieldIndexConfiguration create(Boolean included, Short weight, PredictionSourceType predictionSourceType, MatchTypeSettings matchTypeSettings)
+ {
+ return new FieldIndexConfiguration(included, weight, predictionSourceType, matchTypeSettings);
+ }
+ public FieldIndexConfiguration(Boolean included, Short weight, PredictionSourceType predictionSourceType, MatchTypeSettings matchTypeSettings)
+ {
+ this.included = included;
+ this.weight = weight;
+ this.predictionSourceType = predictionSourceType;
+ this.matchTypeSettings = matchTypeSettings;
}
public FieldIndexConfiguration()
{
+ this.matchTypeSettings = null;
}
public Boolean getIncluded()
{
@@ -66,6 +91,10 @@ public PredictionSourceType getPredictionSourceType()
{
return this.parser;
}
+ public @Nullable MatchTypeSettings getMatchTypeSettings()
+ {
+ return this.matchTypeSettings;
+ }
public FieldIndexConfiguration setIncluded(Boolean included)
{
this.included = included;
@@ -86,4 +115,9 @@ public FieldIndexConfiguration setParser(Parser parser)
this.parser = parser;
return this;
}
+ public FieldIndexConfiguration setMatchTypeSettings(MatchTypeSettings matchTypeSettings)
+ {
+ this.matchTypeSettings = matchTypeSettings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/Filter.java b/src/src/main/java/com/relewise/client/model/Filter.java
index 6bd5049..514af52 100644
--- a/src/src/main/java/com/relewise/client/model/Filter.java
+++ b/src/src/main/java/com/relewise/client/model/Filter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a Filter
that can be used to define which entities to include in queries. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -62,19 +61,62 @@
@JsonSubTypes.Type(value = ContentCategoryLevelFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryLevelFilter, Relewise.Client"),
@JsonSubTypes.Type(value = ProductCategoryHasAncestorFilter.class, name = "Relewise.Client.Requests.Filters.ProductCategoryHasAncestorFilter, Relewise.Client"),
@JsonSubTypes.Type(value = ContentCategoryHasAncestorFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryHasAncestorFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentAssortmentFilter.class, name = "Relewise.Client.Requests.Filters.ContentAssortmentFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryHasProductsFilter.class, name = "Relewise.Client.Requests.Filters.ProductCategoryHasProductsFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryHasContentsFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryHasContentsFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyIdFilter.class, name = "Relewise.Client.Requests.Filters.CompanyIdFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyDataFilter.class, name = "Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByUserCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyPurchasedByUserCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyPurchasedByCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentRecentlyViewedByUserFilter.class, name = "Relewise.Client.Requests.Filters.ContentRecentlyViewedByUserFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryRecentlyViewedByUserFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryRecentlyViewedByUserFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryRecentlyViewedByUserFilter.class, name = "Relewise.Client.Requests.Filters.ProductCategoryRecentlyViewedByUserFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByUserParentCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserParentCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyPurchasedByUserParentCompanyFilter.class, name = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserParentCompanyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductDisabledFilter.class, name = "Relewise.Client.Requests.Filters.ProductDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentDisabledFilter.class, name = "Relewise.Client.Requests.Filters.ContentDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = VariantDisabledFilter.class, name = "Relewise.Client.Requests.Filters.VariantDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = BrandDisabledFilter.class, name = "Relewise.Client.Requests.Filters.BrandDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryDisabledFilter.class, name = "Relewise.Client.Requests.Filters.ProductCategoryDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryDisabledFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyDisabledFilter.class, name = "Relewise.Client.Requests.Filters.CompanyDisabledFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.ProductDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.ContentDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = VariantDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.VariantDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = BrandDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.BrandDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.ProductCategoryDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.ContentCategoryDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.CompanyDataHasKeyFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductHasCategoriesFilter.class, name = "Relewise.Client.Requests.Filters.ProductHasCategoriesFilter, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentHasCategoriesFilter.class, name = "Relewise.Client.Requests.Filters.ContentHasCategoriesFilter, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Filter
{
public String $type = "";
+ /** Defines whether the Filter
should exclude the matching entities instead of including the matching entities. */
public Boolean negated;
+ public @Nullable FilterSettings settings;
+ /** Defines whether the Filter
should exclude the matching entities instead of including the matching entities. */
public Boolean getNegated()
{
return this.negated;
}
+ public @Nullable FilterSettings getSettings()
+ {
+ return this.settings;
+ }
+ /** Defines whether the Filter
should exclude the matching entities instead of including the matching entities. */
public Filter setNegated(Boolean negated)
{
this.negated = negated;
return this;
}
+ public Filter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/FilterCollection.java b/src/src/main/java/com/relewise/client/model/FilterCollection.java
index 4faba7e..0242a41 100644
--- a/src/src/main/java/com/relewise/client/model/FilterCollection.java
+++ b/src/src/main/java/com/relewise/client/model/FilterCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/FilterRule.java b/src/src/main/java/com/relewise/client/model/FilterRule.java
index cef73df..1b9b838 100644
--- a/src/src/main/java/com/relewise/client/model/FilterRule.java
+++ b/src/src/main/java/com/relewise/client/model/FilterRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/FilterScopeSettings.java b/src/src/main/java/com/relewise/client/model/FilterScopeSettings.java
new file mode 100644
index 0000000..7de54e0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/FilterScopeSettings.java
@@ -0,0 +1,31 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ApplyFilterSettings.class, name = "Relewise.Client.Requests.Filters.Settings.ApplyFilterSettings, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class FilterScopeSettings
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/FilterScopes.java b/src/src/main/java/com/relewise/client/model/FilterScopes.java
new file mode 100644
index 0000000..9c9d752
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/FilterScopes.java
@@ -0,0 +1,51 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class FilterScopes
+{
+ public @Nullable FilterScopeSettings _default;
+ public @Nullable FilterScopeSettings fill;
+ public static FilterScopes create()
+ {
+ return new FilterScopes();
+ }
+ public FilterScopes()
+ {
+ }
+ @JsonProperty("default")
+ public @Nullable FilterScopeSettings getDefault()
+ {
+ return this._default;
+ }
+ public @Nullable FilterScopeSettings getFill()
+ {
+ return this.fill;
+ }
+ public FilterScopes setDefault(FilterScopeSettings _default)
+ {
+ this._default = _default;
+ return this;
+ }
+ public FilterScopes setFill(FilterScopeSettings fill)
+ {
+ this.fill = fill;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/FilterSettings.java b/src/src/main/java/com/relewise/client/model/FilterSettings.java
new file mode 100644
index 0000000..59afe63
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/FilterSettings.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class FilterSettings
+{
+ public @Nullable FilterScopes scopes;
+ public static FilterSettings create()
+ {
+ return new FilterSettings();
+ }
+ public FilterSettings()
+ {
+ }
+ public @Nullable FilterScopes getScopes()
+ {
+ return this.scopes;
+ }
+ public FilterSettings setScopes(FilterScopes scopes)
+ {
+ this.scopes = scopes;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/FilteredVariantsSettings.java b/src/src/main/java/com/relewise/client/model/FilteredVariantsSettings.java
new file mode 100644
index 0000000..fb3b5c3
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/FilteredVariantsSettings.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class FilteredVariantsSettings
+{
+ public @Nullable FilterCollection filters;
+ public @Nullable Boolean inheritFiltersFromRequest;
+ public static FilteredVariantsSettings create()
+ {
+ return new FilteredVariantsSettings();
+ }
+ public FilteredVariantsSettings()
+ {
+ }
+ public @Nullable FilterCollection getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable Boolean getInheritFiltersFromRequest()
+ {
+ return this.inheritFiltersFromRequest;
+ }
+ public FilteredVariantsSettings setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public FilteredVariantsSettings setInheritFiltersFromRequest(@Nullable Boolean inheritFiltersFromRequest)
+ {
+ this.inheritFiltersFromRequest = inheritFiltersFromRequest;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/FixedDoubleValueSelector.java b/src/src/main/java/com/relewise/client/model/FixedDoubleValueSelector.java
index 3be0b9f..a929099 100644
--- a/src/src/main/java/com/relewise/client/model/FixedDoubleValueSelector.java
+++ b/src/src/main/java/com/relewise/client/model/FixedDoubleValueSelector.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/FixedPositionRule.java b/src/src/main/java/com/relewise/client/model/FixedPositionRule.java
index e2efe34..eccba16 100644
--- a/src/src/main/java/com/relewise/client/model/FixedPositionRule.java
+++ b/src/src/main/java/com/relewise/client/model/FixedPositionRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfiguration.java
index ffe3954..60ebbb1 100644
--- a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationRequest.java b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationRequest.java
index 590dcb7..013c167 100644
--- a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationResponse.java b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationResponse.java
index eb3455c..87fb05d 100644
--- a/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/GlobalTriggerConfigurationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/GreaterThanCondition.java b/src/src/main/java/com/relewise/client/model/GreaterThanCondition.java
index 4abf21f..0396ed4 100644
--- a/src/src/main/java/com/relewise/client/model/GreaterThanCondition.java
+++ b/src/src/main/java/com/relewise/client/model/GreaterThanCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasActivityCondition.java b/src/src/main/java/com/relewise/client/model/HasActivityCondition.java
index 013403a..8f30a4f 100644
--- a/src/src/main/java/com/relewise/client/model/HasActivityCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasActivityCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasAncestorCategoryFilter.java b/src/src/main/java/com/relewise/client/model/HasAncestorCategoryFilter.java
index 79e1236..95326c2 100644
--- a/src/src/main/java/com/relewise/client/model/HasAncestorCategoryFilter.java
+++ b/src/src/main/java/com/relewise/client/model/HasAncestorCategoryFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,4 +54,10 @@ public HasAncestorCategoryFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public HasAncestorCategoryFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/HasAuthenticatedIdCondition.java b/src/src/main/java/com/relewise/client/model/HasAuthenticatedIdCondition.java
index 9bdc639..4610e2e 100644
--- a/src/src/main/java/com/relewise/client/model/HasAuthenticatedIdCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasAuthenticatedIdCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasChildCategoryFilter.java b/src/src/main/java/com/relewise/client/model/HasChildCategoryFilter.java
index e0ca9c4..d4dd613 100644
--- a/src/src/main/java/com/relewise/client/model/HasChildCategoryFilter.java
+++ b/src/src/main/java/com/relewise/client/model/HasChildCategoryFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,4 +54,10 @@ public HasChildCategoryFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public HasChildCategoryFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/HasClassificationCondition.java b/src/src/main/java/com/relewise/client/model/HasClassificationCondition.java
index dea8792..6e4d9c2 100644
--- a/src/src/main/java/com/relewise/client/model/HasClassificationCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasClassificationCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasEmailCondition.java b/src/src/main/java/com/relewise/client/model/HasEmailCondition.java
index d84b013..3f3dee2 100644
--- a/src/src/main/java/com/relewise/client/model/HasEmailCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasEmailCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasIdentifierCondition.java b/src/src/main/java/com/relewise/client/model/HasIdentifierCondition.java
index d3df42d..fa26cda 100644
--- a/src/src/main/java/com/relewise/client/model/HasIdentifierCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasIdentifierCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasLineItemsInCartCondition.java b/src/src/main/java/com/relewise/client/model/HasLineItemsInCartCondition.java
index 4ccc945..9bbad90 100644
--- a/src/src/main/java/com/relewise/client/model/HasLineItemsInCartCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasLineItemsInCartCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasModifiedCartCondition.java b/src/src/main/java/com/relewise/client/model/HasModifiedCartCondition.java
index 348d72b..60bc049 100644
--- a/src/src/main/java/com/relewise/client/model/HasModifiedCartCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasModifiedCartCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasParentCategoryFilter.java b/src/src/main/java/com/relewise/client/model/HasParentCategoryFilter.java
index d99a067..ae34cdf 100644
--- a/src/src/main/java/com/relewise/client/model/HasParentCategoryFilter.java
+++ b/src/src/main/java/com/relewise/client/model/HasParentCategoryFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,4 +54,10 @@ public HasParentCategoryFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public HasParentCategoryFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/HasPlacedOrderCondition.java b/src/src/main/java/com/relewise/client/model/HasPlacedOrderCondition.java
index 3a9231e..34c054a 100644
--- a/src/src/main/java/com/relewise/client/model/HasPlacedOrderCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasPlacedOrderCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedSameTriggerCondition.java b/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedSameTriggerCondition.java
index 38f7dcf..e11efde 100644
--- a/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedSameTriggerCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedSameTriggerCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedTriggerCondition.java b/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedTriggerCondition.java
index 9d20a27..55095e7 100644
--- a/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedTriggerCondition.java
+++ b/src/src/main/java/com/relewise/client/model/HasRecentlyReceivedTriggerCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/HasValueCondition.java b/src/src/main/java/com/relewise/client/model/HasValueCondition.java
new file mode 100644
index 0000000..2064ceb
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/HasValueCondition.java
@@ -0,0 +1,51 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = HasValueCondition.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class HasValueCondition extends ValueCondition
+{
+ public String $type = "Relewise.Client.Requests.Conditions.HasValueCondition, Relewise.Client";
+ public static HasValueCondition create()
+ {
+ return new HasValueCondition();
+ }
+ public HasValueCondition()
+ {
+ this.negated = false;
+ }
+ public static HasValueCondition create(Boolean negated)
+ {
+ return new HasValueCondition(negated);
+ }
+ public HasValueCondition(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public HasValueCondition setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/HtmlParser.java b/src/src/main/java/com/relewise/client/model/HtmlParser.java
index 2ff4edd..c0ea455 100644
--- a/src/src/main/java/com/relewise/client/model/HtmlParser.java
+++ b/src/src/main/java/com/relewise/client/model/HtmlParser.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IBrandFilter.java b/src/src/main/java/com/relewise/client/model/IBrandFilter.java
index b9ef052..d6a583c 100644
--- a/src/src/main/java/com/relewise/client/model/IBrandFilter.java
+++ b/src/src/main/java/com/relewise/client/model/IBrandFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ICategoryFilter.java b/src/src/main/java/com/relewise/client/model/ICategoryFilter.java
index 6db8623..709e7c4 100644
--- a/src/src/main/java/com/relewise/client/model/ICategoryFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ICategoryFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IChange.java b/src/src/main/java/com/relewise/client/model/IChange.java
new file mode 100644
index 0000000..4df7274
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/IChange.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface IChange
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/ICompanyFilter.java b/src/src/main/java/com/relewise/client/model/ICompanyFilter.java
new file mode 100644
index 0000000..4d99140
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ICompanyFilter.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface ICompanyFilter
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/IContentCategoryRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/IContentCategoryRelevanceModifier.java
new file mode 100644
index 0000000..2dc0c9b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/IContentCategoryRelevanceModifier.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface IContentCategoryRelevanceModifier
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/IContentFilter.java b/src/src/main/java/com/relewise/client/model/IContentFilter.java
index b582b78..90f2b46 100644
--- a/src/src/main/java/com/relewise/client/model/IContentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/IContentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IContentRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/IContentRelevanceModifier.java
new file mode 100644
index 0000000..f74ba5a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/IContentRelevanceModifier.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface IContentRelevanceModifier
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/IProductCategoryRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/IProductCategoryRelevanceModifier.java
new file mode 100644
index 0000000..2e40b6e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/IProductCategoryRelevanceModifier.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface IProductCategoryRelevanceModifier
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/IProductFilter.java b/src/src/main/java/com/relewise/client/model/IProductFilter.java
index 7926e50..6f25808 100644
--- a/src/src/main/java/com/relewise/client/model/IProductFilter.java
+++ b/src/src/main/java/com/relewise/client/model/IProductFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IProductRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/IProductRelevanceModifier.java
index a7cc5d9..a3604d4 100644
--- a/src/src/main/java/com/relewise/client/model/IProductRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/IProductRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ISchedule.java b/src/src/main/java/com/relewise/client/model/ISchedule.java
new file mode 100644
index 0000000..29f42d9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ISchedule.java
@@ -0,0 +1,22 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public interface ISchedule
+{
+}
diff --git a/src/src/main/java/com/relewise/client/model/ITriggerResult.java b/src/src/main/java/com/relewise/client/model/ITriggerResult.java
index 118866d..299c24f 100644
--- a/src/src/main/java/com/relewise/client/model/ITriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/ITriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IUserIdentifier.java b/src/src/main/java/com/relewise/client/model/IUserIdentifier.java
index 9212474..253d309 100644
--- a/src/src/main/java/com/relewise/client/model/IUserIdentifier.java
+++ b/src/src/main/java/com/relewise/client/model/IUserIdentifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IVariantFilter.java b/src/src/main/java/com/relewise/client/model/IVariantFilter.java
index eb21e5d..c8974ee 100644
--- a/src/src/main/java/com/relewise/client/model/IVariantFilter.java
+++ b/src/src/main/java/com/relewise/client/model/IVariantFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a Filter
that can be used to define which variants to include for products in queries. */
public interface IVariantFilter
{
}
diff --git a/src/src/main/java/com/relewise/client/model/IVariantRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/IVariantRelevanceModifier.java
index c193c5a..cee6888 100644
--- a/src/src/main/java/com/relewise/client/model/IVariantRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/IVariantRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Increase.java b/src/src/main/java/com/relewise/client/model/Increase.java
new file mode 100644
index 0000000..6ea69ac
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Increase.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Indicates that some property should change by increasing in value. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Increase.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Increase implements IChange
+{
+ public String $type = "Relewise.Client.DataTypes.Changes.Increase, Relewise.Client";
+ public static Increase create()
+ {
+ return new Increase();
+ }
+ public Increase()
+ {
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/IndexConfiguration.java b/src/src/main/java/com/relewise/client/model/IndexConfiguration.java
index 9084cc0..3512fc3 100644
--- a/src/src/main/java/com/relewise/client/model/IndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/IndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/InputConditionConfiguration.java b/src/src/main/java/com/relewise/client/model/InputConditionConfiguration.java
index f5d9c55..c0a40c7 100644
--- a/src/src/main/java/com/relewise/client/model/InputConditionConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/InputConditionConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/InputModifierRule.java b/src/src/main/java/com/relewise/client/model/InputModifierRule.java
index fbcdf23..dba3bbe 100644
--- a/src/src/main/java/com/relewise/client/model/InputModifierRule.java
+++ b/src/src/main/java/com/relewise/client/model/InputModifierRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/IntegerAvailableFacetValue.java
index 1c01d5d..2245e23 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacet.java b/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacet.java
index f381ecd..d5bfd0c 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacetResult.java
index e3bf5b9..ff6e34d 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerContentDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerDataValueFacet.java b/src/src/main/java/com/relewise/client/model/IntegerDataValueFacet.java
index d8e6490..d7f48a3 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/IntegerDataValueFacetResult.java
index 2050917..273b313 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerIntegerValueFacetResult.java b/src/src/main/java/com/relewise/client/model/IntegerIntegerValueFacetResult.java
index efbdbf8..15c7f92 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerIntegerValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerIntegerValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacet.java b/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacet.java
index f019ad2..9bef85e 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacetResult.java
index 4843ab5..adaf009 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerProductDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerRange.java b/src/src/main/java/com/relewise/client/model/IntegerRange.java
index 1d9aab2..99f09d4 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerRange.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerRange.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerValueFacet.java b/src/src/main/java/com/relewise/client/model/IntegerValueFacet.java
index 8061dc2..e53e4e6 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/IntegerValueFacetResult.java b/src/src/main/java/com/relewise/client/model/IntegerValueFacetResult.java
index 8c91759..3226aee 100644
--- a/src/src/main/java/com/relewise/client/model/IntegerValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/IntegerValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/KeyMultiplier.java b/src/src/main/java/com/relewise/client/model/KeyMultiplier.java
index 522bebf..7b65e34 100644
--- a/src/src/main/java/com/relewise/client/model/KeyMultiplier.java
+++ b/src/src/main/java/com/relewise/client/model/KeyMultiplier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Language.java b/src/src/main/java/com/relewise/client/model/Language.java
index 6d32fd3..45cbadc 100644
--- a/src/src/main/java/com/relewise/client/model/Language.java
+++ b/src/src/main/java/com/relewise/client/model/Language.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -22,6 +20,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class Language
{
+ /** Trimmed language name in lower-invariant. */
public String value;
public static final Language UNDEFINED = null;
public static Language create(String name)
@@ -35,10 +34,12 @@ public Language(String name)
public Language()
{
}
+ /** Trimmed language name in lower-invariant. */
public String getValue()
{
return this.value;
}
+ /** Trimmed language name in lower-invariant. */
public Language setValue(String value)
{
this.value = value;
diff --git a/src/src/main/java/com/relewise/client/model/LanguageIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/LanguageIndexConfiguration.java
index 64555be..46f5cb3 100644
--- a/src/src/main/java/com/relewise/client/model/LanguageIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/LanguageIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/LanguageIndexConfigurationEntry.java b/src/src/main/java/com/relewise/client/model/LanguageIndexConfigurationEntry.java
index 7972162..982e9da 100644
--- a/src/src/main/java/com/relewise/client/model/LanguageIndexConfigurationEntry.java
+++ b/src/src/main/java/com/relewise/client/model/LanguageIndexConfigurationEntry.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/LessThanCondition.java b/src/src/main/java/com/relewise/client/model/LessThanCondition.java
index 3de590c..a0b6cbe 100644
--- a/src/src/main/java/com/relewise/client/model/LessThanCondition.java
+++ b/src/src/main/java/com/relewise/client/model/LessThanCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/LicensedRequest.java b/src/src/main/java/com/relewise/client/model/LicensedRequest.java
index d8cc5bc..70b5276 100644
--- a/src/src/main/java/com/relewise/client/model/LicensedRequest.java
+++ b/src/src/main/java/com/relewise/client/model/LicensedRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/LineItem.java b/src/src/main/java/com/relewise/client/model/LineItem.java
index d80e63e..eebaf49 100644
--- a/src/src/main/java/com/relewise/client/model/LineItem.java
+++ b/src/src/main/java/com/relewise/client/model/LineItem.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -26,6 +24,7 @@ public class LineItem
public @Nullable ProductVariant variant;
public Float quantity;
public Double lineTotal;
+ public @Nullable HashMap data;
public static LineItem create(Product product, @Nullable ProductVariant variant, Float quantity, Double lineTotal)
{
return new LineItem(product, variant, quantity, lineTotal);
@@ -37,6 +36,15 @@ public LineItem(Product product, @Nullable ProductVariant variant, Float quantit
this.quantity = quantity;
this.lineTotal = lineTotal;
}
+ public static LineItem create(Product product, Float quantity)
+ {
+ return new LineItem(product, quantity);
+ }
+ public LineItem(Product product, Float quantity)
+ {
+ this.product = product;
+ this.quantity = quantity;
+ }
public LineItem()
{
}
@@ -56,6 +64,10 @@ public Double getLineTotal()
{
return this.lineTotal;
}
+ public @Nullable HashMap getData()
+ {
+ return this.data;
+ }
public LineItem setProduct(Product product)
{
this.product = product;
@@ -76,4 +88,18 @@ public LineItem setLineTotal(Double lineTotal)
this.lineTotal = lineTotal;
return this;
}
+ public LineItem addToData(String key, DataValue value)
+ {
+ if (this.data == null)
+ {
+ this.data = new HashMap<>();
+ }
+ this.data.put(key, value);
+ return this;
+ }
+ public LineItem setData(HashMap data)
+ {
+ this.data = data;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/LocalDateTimeRange.java b/src/src/main/java/com/relewise/client/model/LocalDateTimeRange.java
new file mode 100644
index 0000000..6d3bcff
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocalDateTimeRange.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocalDateTimeRange
+{
+ public LocalDateTime lowerBoundInclusive;
+ public LocalDateTime upperBoundInclusive;
+ public static LocalDateTimeRange create(LocalDateTime lowerBoundInclusive, LocalDateTime upperBoundInclusive)
+ {
+ return new LocalDateTimeRange(lowerBoundInclusive, upperBoundInclusive);
+ }
+ public LocalDateTimeRange(LocalDateTime lowerBoundInclusive, LocalDateTime upperBoundInclusive)
+ {
+ this.lowerBoundInclusive = lowerBoundInclusive;
+ this.upperBoundInclusive = upperBoundInclusive;
+ }
+ public LocalDateTimeRange()
+ {
+ }
+ public LocalDateTime getLowerBoundInclusive()
+ {
+ return this.lowerBoundInclusive;
+ }
+ public LocalDateTime getUpperBoundInclusive()
+ {
+ return this.upperBoundInclusive;
+ }
+ public LocalDateTimeRange setLowerBoundInclusive(LocalDateTime lowerBoundInclusive)
+ {
+ this.lowerBoundInclusive = lowerBoundInclusive;
+ return this;
+ }
+ public LocalDateTimeRange setUpperBoundInclusive(LocalDateTime upperBoundInclusive)
+ {
+ this.upperBoundInclusive = upperBoundInclusive;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/Location.java b/src/src/main/java/com/relewise/client/model/Location.java
new file mode 100644
index 0000000..f22ce10
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Location.java
@@ -0,0 +1,125 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Represents a location in the system where promotions can be shown, like 'Front Page', as well as Placements
(like 'main zone', or 'power action'). */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = Location.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Location extends LocationEntityStateLocationMetadataValuesRetailMediaEntity
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Location, Relewise.Client";
+ /** The name of this location, e.g. "Front page", "PDP", "Home screen" etc. */
+ public String name;
+ /** A key which is automatically computed based on the name of the location. This will be used as identifier to reference this location when retrieving Retail Media content for it from the consuming client This value gets created the first time the location is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public @Nullable String key;
+ /** The placements where promotions may be displayed at this location If null
or empty, no promotions will be shown at this location */
+ public @Nullable LocationPlacementCollection placements;
+ /** Defines what kinds of promotions are supported by this location */
+ public @Nullable PromotionSpecificationCollection supportedPromotions;
+ public static Location create(@Nullable UUID id, LocationEntityState state, String name, LocationPlacementCollection placements, PromotionSpecificationCollection supportedPromotions)
+ {
+ return new Location(id, state, name, placements, supportedPromotions);
+ }
+ public Location(@Nullable UUID id, LocationEntityState state, String name, LocationPlacementCollection placements, PromotionSpecificationCollection supportedPromotions)
+ {
+ this.id = id;
+ this.state = state;
+ this.name = name;
+ this.placements = placements;
+ this.supportedPromotions = supportedPromotions;
+ }
+ public static Location create(@Nullable UUID id, LocationEntityState state, String name)
+ {
+ return new Location(id, state, name);
+ }
+ public Location(@Nullable UUID id, LocationEntityState state, String name)
+ {
+ this.id = id;
+ this.state = state;
+ this.name = name;
+ }
+ public Location()
+ {
+ }
+ /** The name of this location, e.g. "Front page", "PDP", "Home screen" etc. */
+ public String getName()
+ {
+ return this.name;
+ }
+ /** A key which is automatically computed based on the name of the location. This will be used as identifier to reference this location when retrieving Retail Media content for it from the consuming client This value gets created the first time the location is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public @Nullable String getKey()
+ {
+ return this.key;
+ }
+ /** The placements where promotions may be displayed at this location If null
or empty, no promotions will be shown at this location */
+ public @Nullable LocationPlacementCollection getPlacements()
+ {
+ return this.placements;
+ }
+ /** Defines what kinds of promotions are supported by this location */
+ public @Nullable PromotionSpecificationCollection getSupportedPromotions()
+ {
+ return this.supportedPromotions;
+ }
+ /** The name of this location, e.g. "Front page", "PDP", "Home screen" etc. */
+ public Location setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ /** A key which is automatically computed based on the name of the location. This will be used as identifier to reference this location when retrieving Retail Media content for it from the consuming client This value gets created the first time the location is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public Location setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ /** The placements where promotions may be displayed at this location If null
or empty, no promotions will be shown at this location */
+ public Location setPlacements(LocationPlacementCollection placements)
+ {
+ this.placements = placements;
+ return this;
+ }
+ /** Defines what kinds of promotions are supported by this location */
+ public Location setSupportedPromotions(PromotionSpecificationCollection supportedPromotions)
+ {
+ this.supportedPromotions = supportedPromotions;
+ return this;
+ }
+ @Override
+ public Location setState(LocationEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ @Override
+ public Location setMetadata(LocationMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public Location setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationEntityState.java b/src/src/main/java/com/relewise/client/model/LocationEntityState.java
new file mode 100644
index 0000000..438fbb1
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationEntityState.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum LocationEntityState
+{
+ Active {
+ public String toString() {
+ return "Active";
+ }
+ },
+ Inactive {
+ public String toString() {
+ return "Inactive";
+ }
+ },
+ Archived {
+ public String toString() {
+ return "Archived";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest.java
new file mode 100644
index 0000000..cef6ac2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest.java
@@ -0,0 +1,70 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public @Nullable LocationsRequestEntityFilters filters;
+ public @Nullable LocationsRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public @Nullable LocationsRequestEntityFilters getFilters()
+ {
+ return this.filters;
+ }
+ public @Nullable LocationsRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest setFilters(LocationsRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest setSorting(LocationsRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntity.java b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntity.java
new file mode 100644
index 0000000..4a1760a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntity.java
@@ -0,0 +1,59 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationEntityStateLocationMetadataValuesRetailMediaEntity extends RetailMediaEntity
+{
+ public String $type = "";
+ public LocationEntityState state;
+ /** Managed server side only, manually setting this will have no effect */
+ public LocationMetadataValues metadata;
+ public LocationEntityState getState()
+ {
+ return this.state;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public LocationMetadataValues getMetadata()
+ {
+ return this.metadata;
+ }
+ public LocationEntityStateLocationMetadataValuesRetailMediaEntity setState(LocationEntityState state)
+ {
+ this.state = state;
+ return this;
+ }
+ /** Managed server side only, manually setting this will have no effect */
+ public LocationEntityStateLocationMetadataValuesRetailMediaEntity setMetadata(LocationMetadataValues metadata)
+ {
+ this.metadata = metadata;
+ return this;
+ }
+ @Override
+ public LocationEntityStateLocationMetadataValuesRetailMediaEntity setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters.java b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters.java
new file mode 100644
index 0000000..1fe7d2e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "";
+ public @Nullable String term;
+ public @Nullable LocationEntityState[] states;
+ public @Nullable String getTerm()
+ {
+ return this.term;
+ }
+ public @Nullable LocationEntityState[] getStates()
+ {
+ return this.states;
+ }
+ public LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ public LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters setStates(LocationEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationLocationEntityStateEntityResponse.java b/src/src/main/java/com/relewise/client/model/LocationLocationEntityStateEntityResponse.java
new file mode 100644
index 0000000..d5c3dca
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationLocationEntityStateEntityResponse.java
@@ -0,0 +1,75 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationLocationEntityStateEntityResponse extends TimedResponse
+{
+ public String $type = "";
+ public Location[] entities;
+ public Integer hits;
+ public HashMap hitsPerState;
+ public Location[] getEntities()
+ {
+ return this.entities;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public HashMap getHitsPerState()
+ {
+ return this.hitsPerState;
+ }
+ public LocationLocationEntityStateEntityResponse setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public LocationLocationEntityStateEntityResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public LocationLocationEntityStateEntityResponse addToHitsPerState(LocationEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ public LocationLocationEntityStateEntityResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public LocationLocationEntityStateEntityResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationMetadataValues.java b/src/src/main/java/com/relewise/client/model/LocationMetadataValues.java
new file mode 100644
index 0000000..1c11dd8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationMetadataValues.java
@@ -0,0 +1,120 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = LocationMetadataValues.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationMetadataValues extends MetadataValues
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.Location+MetadataValues, Relewise.Client";
+ public @Nullable OffsetDateTime inactivated;
+ public @Nullable String inactivatedBy;
+ public @Nullable OffsetDateTime activated;
+ public @Nullable String activatedBy;
+ public @Nullable OffsetDateTime archived;
+ public @Nullable String archivedBy;
+ public static LocationMetadataValues create()
+ {
+ return new LocationMetadataValues();
+ }
+ public LocationMetadataValues()
+ {
+ }
+ public @Nullable OffsetDateTime getInactivated()
+ {
+ return this.inactivated;
+ }
+ public @Nullable String getInactivatedBy()
+ {
+ return this.inactivatedBy;
+ }
+ public @Nullable OffsetDateTime getActivated()
+ {
+ return this.activated;
+ }
+ public @Nullable String getActivatedBy()
+ {
+ return this.activatedBy;
+ }
+ public @Nullable OffsetDateTime getArchived()
+ {
+ return this.archived;
+ }
+ public @Nullable String getArchivedBy()
+ {
+ return this.archivedBy;
+ }
+ public LocationMetadataValues setInactivated(@Nullable OffsetDateTime inactivated)
+ {
+ this.inactivated = inactivated;
+ return this;
+ }
+ public LocationMetadataValues setInactivatedBy(String inactivatedBy)
+ {
+ this.inactivatedBy = inactivatedBy;
+ return this;
+ }
+ public LocationMetadataValues setActivated(@Nullable OffsetDateTime activated)
+ {
+ this.activated = activated;
+ return this;
+ }
+ public LocationMetadataValues setActivatedBy(String activatedBy)
+ {
+ this.activatedBy = activatedBy;
+ return this;
+ }
+ public LocationMetadataValues setArchived(@Nullable OffsetDateTime archived)
+ {
+ this.archived = archived;
+ return this;
+ }
+ public LocationMetadataValues setArchivedBy(String archivedBy)
+ {
+ this.archivedBy = archivedBy;
+ return this;
+ }
+ @Override
+ public LocationMetadataValues setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public LocationMetadataValues setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public LocationMetadataValues setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public LocationMetadataValues setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationPlacement.java b/src/src/main/java/com/relewise/client/model/LocationPlacement.java
new file mode 100644
index 0000000..515e2fc
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationPlacement.java
@@ -0,0 +1,83 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Represents a placement within a location in the system where promotions can be shown */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationPlacement
+{
+ /** The name of this placement, e.g. "Top", "Bottom", "Right", "Overlay" etc. */
+ public String name;
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public @Nullable String key;
+ /** The variations of this placement, e.g. to support multiple different views, like Mobile, Tablet, Desktop, Email template etc. If null or empty, no promotions will be shown for this placement */
+ public @Nullable LocationPlacementVariationCollection variations;
+ public static LocationPlacement create(String name, LocationPlacementVariationCollection variations)
+ {
+ return new LocationPlacement(name, variations);
+ }
+ public LocationPlacement(String name, LocationPlacementVariationCollection variations)
+ {
+ this.name = name;
+ this.variations = variations;
+ }
+ public static LocationPlacement create(String name)
+ {
+ return new LocationPlacement(name);
+ }
+ public LocationPlacement(String name)
+ {
+ this.name = name;
+ }
+ public LocationPlacement()
+ {
+ }
+ /** The name of this placement, e.g. "Top", "Bottom", "Right", "Overlay" etc. */
+ public String getName()
+ {
+ return this.name;
+ }
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public @Nullable String getKey()
+ {
+ return this.key;
+ }
+ /** The variations of this placement, e.g. to support multiple different views, like Mobile, Tablet, Desktop, Email template etc. If null or empty, no promotions will be shown for this placement */
+ public @Nullable LocationPlacementVariationCollection getVariations()
+ {
+ return this.variations;
+ }
+ /** The name of this placement, e.g. "Top", "Bottom", "Right", "Overlay" etc. */
+ public LocationPlacement setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public LocationPlacement setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ /** The variations of this placement, e.g. to support multiple different views, like Mobile, Tablet, Desktop, Email template etc. If null or empty, no promotions will be shown for this placement */
+ public LocationPlacement setVariations(LocationPlacementVariationCollection variations)
+ {
+ this.variations = variations;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationPlacementCollection.java b/src/src/main/java/com/relewise/client/model/LocationPlacementCollection.java
new file mode 100644
index 0000000..8daaaf0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationPlacementCollection.java
@@ -0,0 +1,53 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationPlacementCollection
+{
+ public ArrayList items;
+ public static LocationPlacementCollection create(LocationPlacement... placements)
+ {
+ return new LocationPlacementCollection(placements);
+ }
+ public LocationPlacementCollection(LocationPlacement... placements)
+ {
+ this.items = new ArrayList<>(Arrays.asList(placements));
+ }
+ public LocationPlacementCollection()
+ {
+ }
+ public ArrayList getItems()
+ {
+ return this.items;
+ }
+ public LocationPlacementCollection setItems(LocationPlacement... items)
+ {
+ this.items = new ArrayList<>(Arrays.asList(items));;
+ return this;
+ }
+ public LocationPlacementCollection addToItems(LocationPlacement items)
+ {
+ if (this.items == null)
+ {
+ this.items = new ArrayList<>();
+ }
+ this.items.add(items);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationPlacementVariation.java b/src/src/main/java/com/relewise/client/model/LocationPlacementVariation.java
new file mode 100644
index 0000000..fea8d0b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationPlacementVariation.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationPlacementVariation
+{
+ public String name;
+ public @Nullable String key;
+ public @Nullable PromotionSpecificationVariationCollection supportedPromotions;
+ public static LocationPlacementVariation create(String name, PromotionSpecificationVariationCollection supportedPromotions)
+ {
+ return new LocationPlacementVariation(name, supportedPromotions);
+ }
+ public LocationPlacementVariation(String name, PromotionSpecificationVariationCollection supportedPromotions)
+ {
+ this.name = name;
+ this.supportedPromotions = supportedPromotions;
+ }
+ public static LocationPlacementVariation create(String name)
+ {
+ return new LocationPlacementVariation(name);
+ }
+ public LocationPlacementVariation(String name)
+ {
+ this.name = name;
+ }
+ public LocationPlacementVariation()
+ {
+ }
+ public String getName()
+ {
+ return this.name;
+ }
+ public @Nullable String getKey()
+ {
+ return this.key;
+ }
+ public @Nullable PromotionSpecificationVariationCollection getSupportedPromotions()
+ {
+ return this.supportedPromotions;
+ }
+ public LocationPlacementVariation setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ public LocationPlacementVariation setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ public LocationPlacementVariation setSupportedPromotions(PromotionSpecificationVariationCollection supportedPromotions)
+ {
+ this.supportedPromotions = supportedPromotions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationPlacementVariationCollection.java b/src/src/main/java/com/relewise/client/model/LocationPlacementVariationCollection.java
new file mode 100644
index 0000000..2925e1c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationPlacementVariationCollection.java
@@ -0,0 +1,53 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationPlacementVariationCollection
+{
+ public ArrayList items;
+ public static LocationPlacementVariationCollection create(LocationPlacementVariation... variations)
+ {
+ return new LocationPlacementVariationCollection(variations);
+ }
+ public LocationPlacementVariationCollection(LocationPlacementVariation... variations)
+ {
+ this.items = new ArrayList<>(Arrays.asList(variations));
+ }
+ public LocationPlacementVariationCollection()
+ {
+ }
+ public ArrayList getItems()
+ {
+ return this.items;
+ }
+ public LocationPlacementVariationCollection setItems(LocationPlacementVariation... items)
+ {
+ this.items = new ArrayList<>(Arrays.asList(items));;
+ return this;
+ }
+ public LocationPlacementVariationCollection addToItems(LocationPlacementVariation items)
+ {
+ if (this.items == null)
+ {
+ this.items = new ArrayList<>();
+ }
+ this.items.add(items);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesRequest.java b/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesRequest.java
new file mode 100644
index 0000000..ca7baee
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesRequest.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationSaveEntitiesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public Location[] entities;
+ public String modifiedBy;
+ public Location[] getEntities()
+ {
+ return this.entities;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public LocationSaveEntitiesRequest setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public LocationSaveEntitiesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesResponse.java b/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesResponse.java
new file mode 100644
index 0000000..f2b1b21
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationSaveEntitiesResponse.java
@@ -0,0 +1,46 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class LocationSaveEntitiesResponse extends TimedResponse
+{
+ public String $type = "";
+ public Location[] entities;
+ public Location[] getEntities()
+ {
+ return this.entities;
+ }
+ public LocationSaveEntitiesResponse setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ @Override
+ public LocationSaveEntitiesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationsRequest.java b/src/src/main/java/com/relewise/client/model/LocationsRequest.java
new file mode 100644
index 0000000..ac99d95
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationsRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = LocationsRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationsRequest extends LocationEntityStateLocationMetadataValuesLocationsRequestSortByLocationsRequestEntityFiltersEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.LocationsRequest, Relewise.Client";
+ public static LocationsRequest create(@Nullable LocationsRequestEntityFilters filters, @Nullable LocationsRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ return new LocationsRequest(filters, sorting, skip, take);
+ }
+ public LocationsRequest(@Nullable LocationsRequestEntityFilters filters, @Nullable LocationsRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ this.filters = filters;
+ this.sorting = sorting;
+ this.skip = skip;
+ this.take = take;
+ }
+ public LocationsRequest()
+ {
+ }
+ @Override
+ public LocationsRequest setFilters(LocationsRequestEntityFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public LocationsRequest setSorting(LocationsRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ @Override
+ public LocationsRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ @Override
+ public LocationsRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationsRequestEntityFilters.java b/src/src/main/java/com/relewise/client/model/LocationsRequestEntityFilters.java
new file mode 100644
index 0000000..b56d06d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationsRequestEntityFilters.java
@@ -0,0 +1,110 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = LocationsRequestEntityFilters.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationsRequestEntityFilters extends LocationEntityStateLocationMetadataValuesRetailMediaEntityEntityFilters
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.LocationsRequest+EntityFilters, Relewise.Client";
+ public @Nullable UUID[] ids;
+ public @Nullable String[] keys;
+ public static LocationsRequestEntityFilters create()
+ {
+ return new LocationsRequestEntityFilters();
+ }
+ public LocationsRequestEntityFilters()
+ {
+ }
+ public @Nullable UUID[] getIds()
+ {
+ return this.ids;
+ }
+ public @Nullable String[] getKeys()
+ {
+ return this.keys;
+ }
+ public LocationsRequestEntityFilters setIds(UUID... ids)
+ {
+ this.ids = ids;
+ return this;
+ }
+ public LocationsRequestEntityFilters addToIds(UUID id)
+ {
+ if (this.ids == null)
+ {
+ this.ids = new UUID[] { id };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.ids));
+ existingList.add(id);
+ this.ids = existingList.toArray(new UUID[0]);
+ }
+ return this;
+ }
+ public LocationsRequestEntityFilters setKeys(String... keys)
+ {
+ this.keys = keys;
+ return this;
+ }
+ public LocationsRequestEntityFilters addToKeys(String key)
+ {
+ if (this.keys == null)
+ {
+ this.keys = new String[] { key };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.keys));
+ existingList.add(key);
+ this.keys = existingList.toArray(new String[0]);
+ }
+ return this;
+ }
+ @Override
+ public LocationsRequestEntityFilters setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ @Override
+ public LocationsRequestEntityFilters setStates(LocationEntityState... states)
+ {
+ this.states = states;
+ return this;
+ }
+ public LocationsRequestEntityFilters addToStates(LocationEntityState state)
+ {
+ if (this.states == null)
+ {
+ this.states = new LocationEntityState[] { state };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.states));
+ existingList.add(state);
+ this.states = existingList.toArray(new LocationEntityState[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationsRequestSortBy.java b/src/src/main/java/com/relewise/client/model/LocationsRequestSortBy.java
new file mode 100644
index 0000000..74e63b4
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationsRequestSortBy.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum LocationsRequestSortBy
+{
+ Created {
+ public String toString() {
+ return "Created";
+ }
+ },
+ Modified {
+ public String toString() {
+ return "Modified";
+ }
+ },
+ Name {
+ public String toString() {
+ return "Name";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationsRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/LocationsRequestSortBySorting.java
new file mode 100644
index 0000000..ce946ee
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationsRequestSortBySorting.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationsRequestSortBySorting
+{
+ public LocationsRequestSortBy sortBy;
+ public SortOrder sortOrder;
+ public static LocationsRequestSortBySorting create(LocationsRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ return new LocationsRequestSortBySorting(sortBy, sortOrder);
+ }
+ public LocationsRequestSortBySorting(LocationsRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ this.sortBy = sortBy;
+ this.sortOrder = sortOrder;
+ }
+ public LocationsRequestSortBySorting()
+ {
+ }
+ public LocationsRequestSortBy getSortBy()
+ {
+ return this.sortBy;
+ }
+ public SortOrder getSortOrder()
+ {
+ return this.sortOrder;
+ }
+ public LocationsRequestSortBySorting setSortBy(LocationsRequestSortBy sortBy)
+ {
+ this.sortBy = sortBy;
+ return this;
+ }
+ public LocationsRequestSortBySorting setSortOrder(SortOrder sortOrder)
+ {
+ this.sortOrder = sortOrder;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/LocationsResponse.java b/src/src/main/java/com/relewise/client/model/LocationsResponse.java
new file mode 100644
index 0000000..0d4814c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/LocationsResponse.java
@@ -0,0 +1,89 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = LocationsResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class LocationsResponse extends LocationLocationEntityStateEntityResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.LocationsResponse, Relewise.Client";
+ public static LocationsResponse create(Location[] locations, Integer hits, HashMap hitsPerState)
+ {
+ return new LocationsResponse(locations, hits, hitsPerState);
+ }
+ public LocationsResponse(Location[] locations, Integer hits, HashMap hitsPerState)
+ {
+ this.entities = locations;
+ this.hits = hits;
+ this.hitsPerState = hitsPerState;
+ }
+ public LocationsResponse()
+ {
+ }
+ @Override
+ public LocationsResponse setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public LocationsResponse addToEntities(Location entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Location[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Location[0]);
+ }
+ return this;
+ }
+ @Override
+ public LocationsResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ public LocationsResponse addToHitsPerState(LocationEntityState key, Integer value)
+ {
+ if (this.hitsPerState == null)
+ {
+ this.hitsPerState = new HashMap<>();
+ }
+ this.hitsPerState.put(key, value);
+ return this;
+ }
+ @Override
+ public LocationsResponse setHitsPerState(HashMap hitsPerState)
+ {
+ this.hitsPerState = hitsPerState;
+ return this;
+ }
+ @Override
+ public LocationsResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/MatchTypeSettings.java b/src/src/main/java/com/relewise/client/model/MatchTypeSettings.java
new file mode 100644
index 0000000..8c1c6ff
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/MatchTypeSettings.java
@@ -0,0 +1,80 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class MatchTypeSettings
+{
+ public Boolean compound;
+ public Boolean exact;
+ public Boolean startsWith;
+ public Boolean endsWith;
+ public Boolean fuzzy;
+ public static MatchTypeSettings create()
+ {
+ return new MatchTypeSettings();
+ }
+ public MatchTypeSettings()
+ {
+ }
+ public Boolean getCompound()
+ {
+ return this.compound;
+ }
+ public Boolean getExact()
+ {
+ return this.exact;
+ }
+ public Boolean getStartsWith()
+ {
+ return this.startsWith;
+ }
+ public Boolean getEndsWith()
+ {
+ return this.endsWith;
+ }
+ public Boolean getFuzzy()
+ {
+ return this.fuzzy;
+ }
+ public MatchTypeSettings setCompound(Boolean compound)
+ {
+ this.compound = compound;
+ return this;
+ }
+ public MatchTypeSettings setExact(Boolean exact)
+ {
+ this.exact = exact;
+ return this;
+ }
+ public MatchTypeSettings setStartsWith(Boolean startsWith)
+ {
+ this.startsWith = startsWith;
+ return this;
+ }
+ public MatchTypeSettings setEndsWith(Boolean endsWith)
+ {
+ this.endsWith = endsWith;
+ return this;
+ }
+ public MatchTypeSettings setFuzzy(Boolean fuzzy)
+ {
+ this.fuzzy = fuzzy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/MerchandisingRule.java b/src/src/main/java/com/relewise/client/model/MerchandisingRule.java
index 21226c9..944249d 100644
--- a/src/src/main/java/com/relewise/client/model/MerchandisingRule.java
+++ b/src/src/main/java/com/relewise/client/model/MerchandisingRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MerchandisingRuleCollectionResponse.java b/src/src/main/java/com/relewise/client/model/MerchandisingRuleCollectionResponse.java
index eb5dfe6..76ecf8f 100644
--- a/src/src/main/java/com/relewise/client/model/MerchandisingRuleCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/MerchandisingRuleCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MerchandisingRuleRequest.java b/src/src/main/java/com/relewise/client/model/MerchandisingRuleRequest.java
index 43d3811..4940e01 100644
--- a/src/src/main/java/com/relewise/client/model/MerchandisingRuleRequest.java
+++ b/src/src/main/java/com/relewise/client/model/MerchandisingRuleRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MerchandisingRuleResponse.java b/src/src/main/java/com/relewise/client/model/MerchandisingRuleResponse.java
index d95c142..c6cf935 100644
--- a/src/src/main/java/com/relewise/client/model/MerchandisingRuleResponse.java
+++ b/src/src/main/java/com/relewise/client/model/MerchandisingRuleResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MerchandisingRulesRequest.java b/src/src/main/java/com/relewise/client/model/MerchandisingRulesRequest.java
index 5272e9c..c164ffc 100644
--- a/src/src/main/java/com/relewise/client/model/MerchandisingRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/MerchandisingRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MetadataValues.java b/src/src/main/java/com/relewise/client/model/MetadataValues.java
new file mode 100644
index 0000000..65be4b0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/MetadataValues.java
@@ -0,0 +1,70 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class MetadataValues
+{
+ public String $type = "";
+ public OffsetDateTime created;
+ public String createdBy;
+ public OffsetDateTime modified;
+ public String modifiedBy;
+ public OffsetDateTime getCreated()
+ {
+ return this.created;
+ }
+ public String getCreatedBy()
+ {
+ return this.createdBy;
+ }
+ public OffsetDateTime getModified()
+ {
+ return this.modified;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public MetadataValues setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ public MetadataValues setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ public MetadataValues setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ public MetadataValues setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/MixedRecommendationResponseCollection.java b/src/src/main/java/com/relewise/client/model/MixedRecommendationResponseCollection.java
index e9715a6..20df685 100644
--- a/src/src/main/java/com/relewise/client/model/MixedRecommendationResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/MixedRecommendationResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Money.java b/src/src/main/java/com/relewise/client/model/Money.java
index ac19239..f17d845 100644
--- a/src/src/main/java/com/relewise/client/model/Money.java
+++ b/src/src/main/java/com/relewise/client/model/Money.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MultiCurrency.java b/src/src/main/java/com/relewise/client/model/MultiCurrency.java
index 7b24138..bf9e583 100644
--- a/src/src/main/java/com/relewise/client/model/MultiCurrency.java
+++ b/src/src/main/java/com/relewise/client/model/MultiCurrency.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Multilingual.java b/src/src/main/java/com/relewise/client/model/Multilingual.java
index bd114e2..daa3ab4 100644
--- a/src/src/main/java/com/relewise/client/model/Multilingual.java
+++ b/src/src/main/java/com/relewise/client/model/Multilingual.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/MultilingualValue.java b/src/src/main/java/com/relewise/client/model/MultilingualValue.java
index 86ba4b4..6842d05 100644
--- a/src/src/main/java/com/relewise/client/model/MultilingualValue.java
+++ b/src/src/main/java/com/relewise/client/model/MultilingualValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueCondition.java
index 2f3543f..a1b67f9 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,41 +29,52 @@
@JsonSubTypes.Type(value = ObjectValueInRangeCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueInRangeCondition, Relewise.Client"),
@JsonSubTypes.Type(value = ObjectValueMinByCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueMinByCondition, Relewise.Client"),
@JsonSubTypes.Type(value = ObjectValueMaxByCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueMaxByCondition, Relewise.Client"),
+ @JsonSubTypes.Type(value = ObjectValueRelativeDateTimeCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueRelativeDateTimeCondition, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class ObjectValueCondition
{
public String $type = "";
+ /** Whether the condition should be negated / inverted */
public Boolean negated;
+ /** The key of the object that the condition will compare against. */
public String key;
+ /** An optional path to some nested object defined under the selected Key
. */
public @Nullable String[] objectPath;
+ /** Whether the condition should be negated / inverted */
public Boolean getNegated()
{
return this.negated;
}
+ /** The key of the object that the condition will compare against. */
public String getKey()
{
return this.key;
}
+ /** An optional path to some nested object defined under the selected Key
. */
public @Nullable String[] getObjectPath()
{
return this.objectPath;
}
+ /** Whether the condition should be negated / inverted */
public ObjectValueCondition setNegated(Boolean negated)
{
this.negated = negated;
return this;
}
+ /** The key of the object that the condition will compare against. */
public ObjectValueCondition setKey(String key)
{
this.key = key;
return this;
}
+ /** An optional path to some nested object defined under the selected Key
. */
public ObjectValueCondition setObjectPath(String... objectPath)
{
this.objectPath = objectPath;
return this;
}
+ /** An optional path to some nested object defined under the selected Key
. */
public ObjectValueCondition addToObjectPath(String objectPath)
{
if (this.objectPath == null)
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueContainsCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueContainsCondition.java
index df4403d..d54dd5e 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueContainsCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueContainsCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueContainsConditionCompareMode.java b/src/src/main/java/com/relewise/client/model/ObjectValueContainsConditionCompareMode.java
index 0785f3b..d854e55 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueContainsConditionCompareMode.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueContainsConditionCompareMode.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueEqualsCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueEqualsCondition.java
index 0ba1136..d8c52b4 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueEqualsCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueEqualsCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueGreaterThanCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueGreaterThanCondition.java
index 1c4ba15..74663c6 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueGreaterThanCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueGreaterThanCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueInRangeCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueInRangeCondition.java
index 8da46b1..484b7e9 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueInRangeCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueInRangeCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueLessThanCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueLessThanCondition.java
index e36f78c..d946a30 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueLessThanCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueLessThanCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueMaxByCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueMaxByCondition.java
index 308503f..4f06e8c 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueMaxByCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueMaxByCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueMinByCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueMinByCondition.java
index 27549df..1e5e560 100644
--- a/src/src/main/java/com/relewise/client/model/ObjectValueMinByCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueMinByCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ObjectValueRelativeDateTimeCondition.java b/src/src/main/java/com/relewise/client/model/ObjectValueRelativeDateTimeCondition.java
new file mode 100644
index 0000000..03905a7
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObjectValueRelativeDateTimeCondition.java
@@ -0,0 +1,190 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a ObjectValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ObjectValueRelativeDateTimeCondition.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ObjectValueRelativeDateTimeCondition extends ObjectValueCondition
+{
+ public String $type = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueRelativeDateTimeCondition, Relewise.Client";
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public RelativeTimeComparison comparison;
+ /** Defines the time unit that the compared value is defined in. */
+ public TimeUnit unit;
+ /** 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. */
+ public Long currentTimeOffset;
+ public static ObjectValueRelativeDateTimeCondition create(String key, String[] objectPath, RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ return new ObjectValueRelativeDateTimeCondition(key, objectPath, comparison, unit);
+ }
+ public ObjectValueRelativeDateTimeCondition(String key, String[] objectPath, RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ this.key = key;
+ this.objectPath = objectPath;
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = 0L;
+ this.negated = false;
+ }
+ /**
+ * Creates a ObjectValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param key The key of the object that the condition will compare against.
+ * @param objectPath An optional path to some nested object defined under the selected Key.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public static ObjectValueRelativeDateTimeCondition create(String key, String[] objectPath, RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ return new ObjectValueRelativeDateTimeCondition(key, objectPath, comparison, unit, currentTimeOffset, negated);
+ }
+ /**
+ * Creates a ObjectValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param key The key of the object that the condition will compare against.
+ * @param objectPath An optional path to some nested object defined under the selected Key.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public ObjectValueRelativeDateTimeCondition(String key, String[] objectPath, RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ this.key = key;
+ this.objectPath = objectPath;
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = currentTimeOffset;
+ this.negated = negated;
+ }
+ public static ObjectValueRelativeDateTimeCondition create(String key, RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ return new ObjectValueRelativeDateTimeCondition(key, comparison, unit);
+ }
+ public ObjectValueRelativeDateTimeCondition(String key, RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ this.key = key;
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = 0L;
+ this.negated = false;
+ }
+ /**
+ * Creates a ObjectValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param key The key of the object that the condition will compare against.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public static ObjectValueRelativeDateTimeCondition create(String key, RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ return new ObjectValueRelativeDateTimeCondition(key, comparison, unit, currentTimeOffset, negated);
+ }
+ /**
+ * Creates a ObjectValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param key The key of the object that the condition will compare against.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public ObjectValueRelativeDateTimeCondition(String key, RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ this.key = key;
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = currentTimeOffset;
+ this.negated = negated;
+ }
+ public ObjectValueRelativeDateTimeCondition()
+ {
+ this.currentTimeOffset = 0L;
+ this.negated = false;
+ }
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public RelativeTimeComparison getComparison()
+ {
+ return this.comparison;
+ }
+ /** Defines the time unit that the compared value is defined in. */
+ public TimeUnit getUnit()
+ {
+ return this.unit;
+ }
+ /** 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. */
+ public Long getCurrentTimeOffset()
+ {
+ return this.currentTimeOffset;
+ }
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public ObjectValueRelativeDateTimeCondition setComparison(RelativeTimeComparison comparison)
+ {
+ this.comparison = comparison;
+ return this;
+ }
+ /** Defines the time unit that the compared value is defined in. */
+ public ObjectValueRelativeDateTimeCondition setUnit(TimeUnit 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. */
+ public ObjectValueRelativeDateTimeCondition setCurrentTimeOffset(Long currentTimeOffset)
+ {
+ this.currentTimeOffset = currentTimeOffset;
+ return this;
+ }
+ @Override
+ public ObjectValueRelativeDateTimeCondition setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ObjectValueRelativeDateTimeCondition setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ObjectValueRelativeDateTimeCondition setObjectPath(String... objectPath)
+ {
+ this.objectPath = objectPath;
+ return this;
+ }
+ public ObjectValueRelativeDateTimeCondition addToObjectPath(String objectPath)
+ {
+ if (this.objectPath == null)
+ {
+ this.objectPath = new String[] { objectPath };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.objectPath));
+ existingList.add(objectPath);
+ this.objectPath = existingList.toArray(new String[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableProductAttribute.java b/src/src/main/java/com/relewise/client/model/ObservableProductAttribute.java
new file mode 100644
index 0000000..1579339
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableProductAttribute.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum ObservableProductAttribute
+{
+ ListPrice {
+ public String toString() {
+ return "ListPrice";
+ }
+ },
+ SalesPrice {
+ public String toString() {
+ return "SalesPrice";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableProductAttributeSelector.java b/src/src/main/java/com/relewise/client/model/ObservableProductAttributeSelector.java
new file mode 100644
index 0000000..9b52368
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableProductAttributeSelector.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ObservableProductAttributeSelector.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ObservableProductAttributeSelector extends ProductPropertySelector
+{
+ public String $type = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableProductAttributeSelector, Relewise.Client";
+ public ObservableProductAttribute attribute;
+ public static ObservableProductAttributeSelector create(ObservableProductAttribute attribute)
+ {
+ return new ObservableProductAttributeSelector(attribute);
+ }
+ public ObservableProductAttributeSelector(ObservableProductAttribute attribute)
+ {
+ this.attribute = attribute;
+ }
+ public ObservableProductAttributeSelector()
+ {
+ }
+ public ObservableProductAttribute getAttribute()
+ {
+ return this.attribute;
+ }
+ public ObservableProductAttributeSelector setAttribute(ObservableProductAttribute attribute)
+ {
+ this.attribute = attribute;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableProductDataValueSelector.java b/src/src/main/java/com/relewise/client/model/ObservableProductDataValueSelector.java
new file mode 100644
index 0000000..8a54eba
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableProductDataValueSelector.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ObservableProductDataValueSelector.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ObservableProductDataValueSelector extends ProductPropertySelector
+{
+ public String $type = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableProductDataValueSelector, Relewise.Client";
+ public DataObjectValueSelector dataObjectValueSelector;
+ public static ObservableProductDataValueSelector create(DataObjectValueSelector dataObjectValueSelector)
+ {
+ return new ObservableProductDataValueSelector(dataObjectValueSelector);
+ }
+ public ObservableProductDataValueSelector(DataObjectValueSelector dataObjectValueSelector)
+ {
+ this.dataObjectValueSelector = dataObjectValueSelector;
+ }
+ public ObservableProductDataValueSelector()
+ {
+ }
+ public DataObjectValueSelector getDataObjectValueSelector()
+ {
+ return this.dataObjectValueSelector;
+ }
+ public ObservableProductDataValueSelector setDataObjectValueSelector(DataObjectValueSelector dataObjectValueSelector)
+ {
+ this.dataObjectValueSelector = dataObjectValueSelector;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableVariantAttribute.java b/src/src/main/java/com/relewise/client/model/ObservableVariantAttribute.java
new file mode 100644
index 0000000..d90bc10
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableVariantAttribute.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum ObservableVariantAttribute
+{
+ ListPrice {
+ public String toString() {
+ return "ListPrice";
+ }
+ },
+ SalesPrice {
+ public String toString() {
+ return "SalesPrice";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableVariantAttributeSelector.java b/src/src/main/java/com/relewise/client/model/ObservableVariantAttributeSelector.java
new file mode 100644
index 0000000..59a6d89
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableVariantAttributeSelector.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ObservableVariantAttributeSelector.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ObservableVariantAttributeSelector extends VariantPropertySelector
+{
+ public String $type = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableVariantAttributeSelector, Relewise.Client";
+ public ObservableVariantAttribute attribute;
+ public static ObservableVariantAttributeSelector create(ObservableVariantAttribute attribute)
+ {
+ return new ObservableVariantAttributeSelector(attribute);
+ }
+ public ObservableVariantAttributeSelector(ObservableVariantAttribute attribute)
+ {
+ this.attribute = attribute;
+ }
+ public ObservableVariantAttributeSelector()
+ {
+ }
+ public ObservableVariantAttribute getAttribute()
+ {
+ return this.attribute;
+ }
+ public ObservableVariantAttributeSelector setAttribute(ObservableVariantAttribute attribute)
+ {
+ this.attribute = attribute;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ObservableVariantDataValueSelector.java b/src/src/main/java/com/relewise/client/model/ObservableVariantDataValueSelector.java
new file mode 100644
index 0000000..ade6260
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ObservableVariantDataValueSelector.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ObservableVariantDataValueSelector.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ObservableVariantDataValueSelector extends VariantPropertySelector
+{
+ public String $type = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableVariantDataValueSelector, Relewise.Client";
+ public DataObjectValueSelector dataObjectValueSelector;
+ public static ObservableVariantDataValueSelector create(DataObjectValueSelector dataObjectValueSelector)
+ {
+ return new ObservableVariantDataValueSelector(dataObjectValueSelector);
+ }
+ public ObservableVariantDataValueSelector(DataObjectValueSelector dataObjectValueSelector)
+ {
+ this.dataObjectValueSelector = dataObjectValueSelector;
+ }
+ public ObservableVariantDataValueSelector()
+ {
+ }
+ public DataObjectValueSelector getDataObjectValueSelector()
+ {
+ return this.dataObjectValueSelector;
+ }
+ public ObservableVariantDataValueSelector setDataObjectValueSelector(DataObjectValueSelector dataObjectValueSelector)
+ {
+ this.dataObjectValueSelector = dataObjectValueSelector;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/OrCondition.java b/src/src/main/java/com/relewise/client/model/OrCondition.java
index 46ac7f8..d811180 100644
--- a/src/src/main/java/com/relewise/client/model/OrCondition.java
+++ b/src/src/main/java/com/relewise/client/model/OrCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/OrFilter.java b/src/src/main/java/com/relewise/client/model/OrFilter.java
index 1dea49a..9e1fea1 100644
--- a/src/src/main/java/com/relewise/client/model/OrFilter.java
+++ b/src/src/main/java/com/relewise/client/model/OrFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -80,4 +78,10 @@ public OrFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public OrFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/Order.java b/src/src/main/java/com/relewise/client/model/Order.java
index 6ccfea9..56fb6a3 100644
--- a/src/src/main/java/com/relewise/client/model/Order.java
+++ b/src/src/main/java/com/relewise/client/model/Order.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,13 +26,16 @@
public class Order extends Trackable implements IUserIdentifier
{
public String $type = "Relewise.Client.DataTypes.Order, Relewise.Client";
- public User user;
+ public @Nullable User user;
public Money subtotal;
public ArrayList lineItems;
public String orderNumber;
public String cartName;
- public @Nullable String channel;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
+ /** @deprecated Use Channel.SubChannel instead. */
public @Nullable String subChannel;
+ public @Nullable HashMap data;
/** @deprecated Use OrderNumber instead. */
public @Nullable String trackingNumber;
public static Order create(User user, Money subtotal, String orderNumber, LineItem... lineItems)
@@ -65,7 +66,7 @@ public Order()
{
this.cartName = "default";
}
- public User getUser()
+ public @Nullable User getUser()
{
return this.user;
}
@@ -85,14 +86,20 @@ public String getCartName()
{
return this.cartName;
}
- public @Nullable String getChannel()
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
{
return this.channel;
}
+ /** @deprecated Use Channel.SubChannel instead. */
public @Nullable String getSubChannel()
{
return this.subChannel;
}
+ public @Nullable HashMap getData()
+ {
+ return this.data;
+ }
/** @deprecated Use OrderNumber instead. */
public @Nullable String getTrackingNumber()
{
@@ -132,16 +139,32 @@ public Order setCartName(String cartName)
this.cartName = cartName;
return this;
}
- public Order setChannel(String channel)
+ /** @deprecated Use User.Channel instead. */
+ public Order setChannel(Channel channel)
{
this.channel = channel;
return this;
}
+ /** @deprecated Use Channel.SubChannel instead. */
public Order setSubChannel(String subChannel)
{
this.subChannel = subChannel;
return this;
}
+ public Order addToData(String key, DataValue value)
+ {
+ if (this.data == null)
+ {
+ this.data = new HashMap<>();
+ }
+ this.data.put(key, value);
+ return this;
+ }
+ public Order setData(HashMap data)
+ {
+ this.data = data;
+ return this;
+ }
/** @deprecated Use OrderNumber instead. */
public Order setTrackingNumber(String trackingNumber)
{
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenContentRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenContentRecommendationRequestSettings.java
index 9d6c6ae..fafbb54 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenContentRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenContentRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class OverriddenContentRecommendationRequestSettings
public @Nullable Boolean allowReplacingOfRecentlyShownRecommendations;
public OverriddenSelectedContentPropertiesSettings selectedContentProperties;
public @Nullable Boolean prioritizeDiversityBetweenRequests;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static OverriddenContentRecommendationRequestSettings create()
{
return new OverriddenContentRecommendationRequestSettings();
@@ -54,6 +53,10 @@ public OverriddenSelectedContentPropertiesSettings getSelectedContentProperties(
{
return this.prioritizeDiversityBetweenRequests;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public OverriddenContentRecommendationRequestSettings setNumberOfRecommendations(@Nullable Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -79,4 +82,9 @@ public OverriddenContentRecommendationRequestSettings setPrioritizeDiversityBetw
this.prioritizeDiversityBetweenRequests = prioritizeDiversityBetweenRequests;
return this;
}
+ public OverriddenContentRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenProductRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenProductRecommendationRequestSettings.java
index c718c12..13a5ebb 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenProductRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenProductRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,6 +29,7 @@ public class OverriddenProductRecommendationRequestSettings
public @Nullable Boolean prioritizeDiversityBetweenRequests;
public @Nullable Boolean allowProductsCurrentlyInCart;
public OverriddenSelectedBrandPropertiesSettings selectedBrandProperties;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static OverriddenProductRecommendationRequestSettings create()
{
return new OverriddenProductRecommendationRequestSettings();
@@ -74,6 +73,10 @@ public OverriddenSelectedBrandPropertiesSettings getSelectedBrandProperties()
{
return this.selectedBrandProperties;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public OverriddenProductRecommendationRequestSettings setNumberOfRecommendations(@Nullable Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -119,4 +122,9 @@ public OverriddenProductRecommendationRequestSettings setSelectedBrandProperties
this.selectedBrandProperties = selectedBrandProperties;
return this;
}
+ public OverriddenProductRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenSelectedBrandPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenSelectedBrandPropertiesSettings.java
index 2c2a6e7..32ddd12 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenSelectedBrandPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenSelectedBrandPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenSelectedContentPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenSelectedContentPropertiesSettings.java
index 6218797..7277b89 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenSelectedContentPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenSelectedContentPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenSelectedProductPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenSelectedProductPropertiesSettings.java
index 537d6ce..0318d5c 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenSelectedProductPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenSelectedProductPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/OverriddenSelectedVariantPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/OverriddenSelectedVariantPropertiesSettings.java
index 599dd2a..30362da 100644
--- a/src/src/main/java/com/relewise/client/model/OverriddenSelectedVariantPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/OverriddenSelectedVariantPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PaginatedSearchRequest.java b/src/src/main/java/com/relewise/client/model/PaginatedSearchRequest.java
index be0431d..58d37d1 100644
--- a/src/src/main/java/com/relewise/client/model/PaginatedSearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PaginatedSearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -97,4 +95,11 @@ public PaginatedSearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PaginatedSearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PaginatedSearchResponse.java b/src/src/main/java/com/relewise/client/model/PaginatedSearchResponse.java
index 4834d5c..8f72cf3 100644
--- a/src/src/main/java/com/relewise/client/model/PaginatedSearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/PaginatedSearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Parser.java b/src/src/main/java/com/relewise/client/model/Parser.java
index 285ba10..2e1bc96 100644
--- a/src/src/main/java/com/relewise/client/model/Parser.java
+++ b/src/src/main/java/com/relewise/client/model/Parser.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PersonalBrandRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PersonalBrandRecommendationRequest.java
index 7832988..97bb8de 100644
--- a/src/src/main/java/com/relewise/client/model/PersonalBrandRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PersonalBrandRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PersonalBrandRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PersonalBrandRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PersonalContentCategoryRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PersonalContentCategoryRecommendationRequest.java
index c50ed66..c0c4635 100644
--- a/src/src/main/java/com/relewise/client/model/PersonalContentCategoryRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PersonalContentCategoryRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PersonalContentCategoryRecommendationRequest setCurrency(Currency currenc
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PersonalContentCategoryRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PersonalContentRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PersonalContentRecommendationRequest.java
index c6bf532..7193b08 100644
--- a/src/src/main/java/com/relewise/client/model/PersonalContentRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PersonalContentRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -84,4 +82,11 @@ public PersonalContentRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PersonalContentRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PersonalProductCategoryRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PersonalProductCategoryRecommendationRequest.java
index d2a8348..669df5b 100644
--- a/src/src/main/java/com/relewise/client/model/PersonalProductCategoryRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PersonalProductCategoryRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PersonalProductCategoryRecommendationRequest setCurrency(Currency currenc
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PersonalProductCategoryRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PersonalProductRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PersonalProductRecommendationRequest.java
index 39038a6..fbd4378 100644
--- a/src/src/main/java/com/relewise/client/model/PersonalProductRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PersonalProductRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -84,4 +82,11 @@ public PersonalProductRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PersonalProductRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularBrandsRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PopularBrandsRecommendationRequest.java
index edb83fb..95b7f3b 100644
--- a/src/src/main/java/com/relewise/client/model/PopularBrandsRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularBrandsRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PopularBrandsRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularBrandsRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularContentCategoriesRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PopularContentCategoriesRecommendationRequest.java
index 71650a7..e15744d 100644
--- a/src/src/main/java/com/relewise/client/model/PopularContentCategoriesRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularContentCategoriesRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PopularContentCategoriesRecommendationRequest setCurrency(Currency curren
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularContentCategoriesRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularContentsRequest.java b/src/src/main/java/com/relewise/client/model/PopularContentsRequest.java
index d057d2f..a809045 100644
--- a/src/src/main/java/com/relewise/client/model/PopularContentsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularContentsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public PopularContentsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularContentsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularProductCategoriesRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PopularProductCategoriesRecommendationRequest.java
index e8ba80d..0a1dbc7 100644
--- a/src/src/main/java/com/relewise/client/model/PopularProductCategoriesRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularProductCategoriesRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -106,4 +104,11 @@ public PopularProductCategoriesRecommendationRequest setCurrency(Currency curren
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularProductCategoriesRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularProductsRequest.java b/src/src/main/java/com/relewise/client/model/PopularProductsRequest.java
index 5bfe1a2..3f8b954 100644
--- a/src/src/main/java/com/relewise/client/model/PopularProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class PopularProductsRequest extends ProductRecommendationRequest impleme
public String $type = "Relewise.Client.Requests.Recommendations.PopularProductsRequest, Relewise.Client";
public PopularityTypes basedOn;
public Integer sinceMinutesAgo;
+ /** A selector for changing the weighing of observed views or purchases on an entity basis when making the recommendation. */
+ public @Nullable PopularityMultiplierSelector popularityMultiplier;
public static PopularProductsRequest create(@Nullable Language language, @Nullable Currency currency, String displayedAtLocationType, User user, PopularityTypes basedOn, Integer sinceMinutesAgo)
{
return new PopularProductsRequest(language, currency, displayedAtLocationType, user, basedOn, sinceMinutesAgo);
@@ -54,6 +54,11 @@ public Integer getSinceMinutesAgo()
{
return this.sinceMinutesAgo;
}
+ /** A selector for changing the weighing of observed views or purchases on an entity basis when making the recommendation. */
+ public @Nullable PopularityMultiplierSelector getPopularityMultiplier()
+ {
+ return this.popularityMultiplier;
+ }
public PopularProductsRequest setBasedOn(PopularityTypes basedOn)
{
this.basedOn = basedOn;
@@ -64,6 +69,12 @@ public PopularProductsRequest setSinceMinutesAgo(Integer sinceMinutesAgo)
this.sinceMinutesAgo = sinceMinutesAgo;
return this;
}
+ /** A selector for changing the weighing of observed views or purchases on an entity basis when making the recommendation. */
+ public PopularProductsRequest setPopularityMultiplier(PopularityMultiplierSelector popularityMultiplier)
+ {
+ this.popularityMultiplier = popularityMultiplier;
+ return this;
+ }
@Override
public PopularProductsRequest setSettings(ProductRecommendationRequestSettings settings)
{
@@ -106,4 +117,11 @@ public PopularProductsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularSearchTermsRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/PopularSearchTermsRecommendationRequest.java
index 6c8e341..e2be8e1 100644
--- a/src/src/main/java/com/relewise/client/model/PopularSearchTermsRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PopularSearchTermsRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -110,4 +108,11 @@ public PopularSearchTermsRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PopularSearchTermsRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PopularityMultiplierSelector.java b/src/src/main/java/com/relewise/client/model/PopularityMultiplierSelector.java
new file mode 100644
index 0000000..9d1db5d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PopularityMultiplierSelector.java
@@ -0,0 +1,25 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** A selector which can change the weighing of an observed view or purchase when making a PopularProductsRequest
. */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class PopularityMultiplierSelector
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/PopularityTypes.java b/src/src/main/java/com/relewise/client/model/PopularityTypes.java
index 4a7afca..50d168d 100644
--- a/src/src/main/java/com/relewise/client/model/PopularityTypes.java
+++ b/src/src/main/java/com/relewise/client/model/PopularityTypes.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,4 +29,9 @@ public String toString() {
return "MostViewed";
}
},
+ LineRevenue {
+ public String toString() {
+ return "LineRevenue";
+ }
+ },
}
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRule.java b/src/src/main/java/com/relewise/client/model/PredictionRule.java
index 46822d7..6f7821a 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRule.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,7 +25,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class PredictionRule extends SearchRule
{
- public String $type = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.PredictionRule, Relewise.Client";
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client";
public SearchTermCondition condition;
public PredictionRulePromotion promote;
public PredictionRuleSuppression suppress;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulePromotion.java b/src/src/main/java/com/relewise/client/model/PredictionRulePromotion.java
index bea44d5..27cb5a3 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulePromotion.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulePromotion.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulePromotionPosition.java b/src/src/main/java/com/relewise/client/model/PredictionRulePromotionPosition.java
index ef4a546..5415ea0 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulePromotionPosition.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulePromotionPosition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesRequest.java
index 057d7aa..85a8ab5 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class PredictionRuleSaveSearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesResponse.java
index 9182637..fce0bf3 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRuleSaveSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/PredictionRuleSearchRulesResponse.java
index ffaa8de..f35f6a9 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRuleSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRuleSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class PredictionRuleSearchRulesResponse extends TimedResponse
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRuleSuppression.java b/src/src/main/java/com/relewise/client/model/PredictionRuleSuppression.java
index b496b3b..687617e 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRuleSuppression.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRuleSuppression.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRuleSuppressionConditionKind.java b/src/src/main/java/com/relewise/client/model/PredictionRuleSuppressionConditionKind.java
index 24df740..08f4d53 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRuleSuppressionConditionKind.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRuleSuppressionConditionKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulesRequest.java b/src/src/main/java/com/relewise/client/model/PredictionRulesRequest.java
index e35348a..17a995c 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBy.java
index 25d767e..8d89b58 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBy.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySearchRulesRequest.java
index d2e9e81..4c3b7e1 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class PredictionRulesRequestSortBySearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySorting.java
index 2cb898b..bbfe4ee 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySorting.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulesRequestSortBySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionRulesResponse.java b/src/src/main/java/com/relewise/client/model/PredictionRulesResponse.java
index 4c43cf7..104c4ed 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PredictionSourceType.java b/src/src/main/java/com/relewise/client/model/PredictionSourceType.java
index 712b19f..d76eb83 100644
--- a/src/src/main/java/com/relewise/client/model/PredictionSourceType.java
+++ b/src/src/main/java/com/relewise/client/model/PredictionSourceType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PriceRangeFacet.java b/src/src/main/java/com/relewise/client/model/PriceRangeFacet.java
index ccd373c..0b09551 100644
--- a/src/src/main/java/com/relewise/client/model/PriceRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/PriceRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PriceRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/PriceRangeFacetResult.java
index 4bbd342..84523df 100644
--- a/src/src/main/java/com/relewise/client/model/PriceRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/PriceRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PriceRangesFacet.java b/src/src/main/java/com/relewise/client/model/PriceRangesFacet.java
index 613a809..e245892 100644
--- a/src/src/main/java/com/relewise/client/model/PriceRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/PriceRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PriceRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/PriceRangesFacetResult.java
index 56a7bce..dd63b66 100644
--- a/src/src/main/java/com/relewise/client/model/PriceRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/PriceRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PriceSelectionStrategy.java b/src/src/main/java/com/relewise/client/model/PriceSelectionStrategy.java
index e9258ca..290c306 100644
--- a/src/src/main/java/com/relewise/client/model/PriceSelectionStrategy.java
+++ b/src/src/main/java/com/relewise/client/model/PriceSelectionStrategy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Product.java b/src/src/main/java/com/relewise/client/model/Product.java
index 22a0435..cda084c 100644
--- a/src/src/main/java/com/relewise/client/model/Product.java
+++ b/src/src/main/java/com/relewise/client/model/Product.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/ProductAdministrativeAction.java
index 79e09d5..cf3b87e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAdministrativeActionUpdateKind.java b/src/src/main/java/com/relewise/client/model/ProductAdministrativeActionUpdateKind.java
index 3b5c7a8..3262784 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAdministrativeActionUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAdministrativeActionUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAndVariantId.java b/src/src/main/java/com/relewise/client/model/ProductAndVariantId.java
index 83df3b6..7f621c9 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAndVariantId.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAndVariantId.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAndVariantIdAbandonedSearch.java b/src/src/main/java/com/relewise/client/model/ProductAndVariantIdAbandonedSearch.java
index a82aece..0375464 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAndVariantIdAbandonedSearch.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAndVariantIdAbandonedSearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -51,4 +49,10 @@ public ProductAndVariantIdAbandonedSearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ @Override
+ public ProductAndVariantIdAbandonedSearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductAndVariantIdFilter.java b/src/src/main/java/com/relewise/client/model/ProductAndVariantIdFilter.java
index 65c200c..b9e7cb7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAndVariantIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAndVariantIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ProductAndVariantIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductAndVariantIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductAssortmentFacet.java b/src/src/main/java/com/relewise/client/model/ProductAssortmentFacet.java
index 8be45cf..6b9d65e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAssortmentFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAssortmentFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAssortmentFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductAssortmentFacetResult.java
index f6eb355..e4765bd 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAssortmentFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAssortmentFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/ProductAssortmentFilter.java
index 116d961..a4cfe07 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAssortmentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAssortmentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ProductAssortmentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductAssortmentRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductAssortmentRelevanceModifier.java
index a1ee780..840b6e2 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAssortmentRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAssortmentRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether the Assortments match Assortments
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,7 +27,9 @@
public class ProductAssortmentRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductAssortmentRelevanceModifier, Relewise.Client";
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public Integer[] assortments;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
public static ProductAssortmentRelevanceModifier create()
{
@@ -46,19 +47,23 @@ public ProductAssortmentRelevanceModifier(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public Integer[] getAssortments()
{
return this.assortments;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public ProductAssortmentRelevanceModifier setAssortments(Integer... assortments)
{
this.assortments = assortments;
return this;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public ProductAssortmentRelevanceModifier addToAssortments(Integer assortment)
{
if (this.assortments == null)
@@ -73,6 +78,7 @@ public ProductAssortmentRelevanceModifier addToAssortments(Integer assortment)
}
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public ProductAssortmentRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAttributeSorting.java b/src/src/main/java/com/relewise/client/model/ProductAttributeSorting.java
index 8066f81..3a10cef 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAttributeSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAttributeSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductAttributeSortingSortableAttribute.java b/src/src/main/java/com/relewise/client/model/ProductAttributeSortingSortableAttribute.java
index 600732a..cdbfa97 100644
--- a/src/src/main/java/com/relewise/client/model/ProductAttributeSortingSortableAttribute.java
+++ b/src/src/main/java/com/relewise/client/model/ProductAttributeSortingSortableAttribute.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategory.java b/src/src/main/java/com/relewise/client/model/ProductCategory.java
index 84a0727..864271b 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategory.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategory.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAdministrativeAction.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAdministrativeAction.java
index 79901bd..c6ba43e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAdministrativeAction.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAdministrativeAction.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacet.java
index d0245e2..a942a94 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacetResult.java
index 366e46b..727eae7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFilter.java
index 048e3b1..2b761f0 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAssortmentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ProductCategoryAssortmentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSorting.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSorting.java
index cc15f94..365f2f3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSortingSortableAttribute.java b/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSortingSortableAttribute.java
index 613c925..3525149 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSortingSortableAttribute.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryAttributeSortingSortableAttribute.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacet.java
index 928ec6b..c0e03c1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacetResult.java
index 2020442..e71d1d6 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataBooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacet.java
index f7877ac..e3be998 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacetResult.java
index daad36a..b79bf41 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacet.java
index b61d0c1..39c199a 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacetResult.java
index f83b132..efdbc80 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacet.java
index 8bc6408..878a441 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacetResult.java
index 1482442..a4b2e4e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataDoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataFilter.java
index c0d33cc..7446612 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public ProductCategoryDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataHasKeyFilter.java
new file mode 100644
index 0000000..feab2a2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryDataHasKeyFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductCategoryDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static ProductCategoryDataHasKeyFilter create(String key)
+ {
+ return new ProductCategoryDataHasKeyFilter(key);
+ }
+ public ProductCategoryDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static ProductCategoryDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new ProductCategoryDataHasKeyFilter(key, negated);
+ }
+ public ProductCategoryDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public ProductCategoryDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public ProductCategoryDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacet.java
index 6e2e55c..2f12af9 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacetResult.java
index 3b76ace..ea61411 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataObjectFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataRelevanceModifier.java
new file mode 100644
index 0000000..a4082f5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataRelevanceModifier.java
@@ -0,0 +1,121 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a ProductCategory depending on matching conditions on a certain key. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryDataRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryDataRelevanceModifier extends DataRelevanceModifier implements IProductCategoryRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryDataRelevanceModifier, Relewise.Client";
+ public static ProductCategoryDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ return new ProductCategoryDataRelevanceModifier(key, conditions, multiplierSelector);
+ }
+ public ProductCategoryDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = true;
+ this.considerAsMatchIfKeyIsNotFound = false;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ProductCategory depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public static ProductCategoryDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ return new ProductCategoryDataRelevanceModifier(key, conditions, multiplierSelector, mustMatchAllConditions, considerAsMatchIfKeyIsNotFound);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ProductCategory depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
+ public ProductCategoryDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.key = key;
+ this.conditions = conditions;
+ this.multiplierSelector = multiplierSelector;
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ }
+ public ProductCategoryDataRelevanceModifier()
+ {
+ this.considerAsMatchIfKeyIsNotFound = false;
+ this.mustMatchAllConditions = true;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
+ {
+ this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
+ return this;
+ }
+ /** @deprecated Use MultiplierSelector instead */
+ @Override
+ public ProductCategoryDataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
+ {
+ this.multiplyWeightBy = multiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
+ {
+ this.mustMatchAllConditions = mustMatchAllConditions;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setConditions(ValueCondition... conditions)
+ {
+ this.conditions = new ArrayList<>(Arrays.asList(conditions));;
+ return this;
+ }
+ public ProductCategoryDataRelevanceModifier addToConditions(ValueCondition conditions)
+ {
+ if (this.conditions == null)
+ {
+ this.conditions = new ArrayList<>();
+ }
+ this.conditions.add(conditions);
+ return this;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
+ {
+ this.multiplierSelector = multiplierSelector;
+ return this;
+ }
+ @Override
+ public ProductCategoryDataRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataSorting.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataSorting.java
index 84176a5..9a3262a 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacet.java
index c38dea3..af5f9a7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacetResult.java
index 45c68a3..b144690 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDataStringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDetailsCollectionResponse.java
index c4f5c7c..4e5ba35 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryDisabledFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryDisabledFilter.java
new file mode 100644
index 0000000..b0941ff
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryDisabledFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductCategoryDisabledFilter, Relewise.Client";
+ public static ProductCategoryDisabledFilter create()
+ {
+ return new ProductCategoryDisabledFilter();
+ }
+ public ProductCategoryDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static ProductCategoryDisabledFilter create(Boolean negated)
+ {
+ return new ProductCategoryDisabledFilter(negated);
+ }
+ public ProductCategoryDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public ProductCategoryDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductCategoryDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryFacetQuery.java b/src/src/main/java/com/relewise/client/model/ProductCategoryFacetQuery.java
index 85ae4ce..0e80a47 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryFacetQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryFacetQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,9 +17,15 @@
import java.util.Set;
import java.util.HashSet;
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryFacetQuery.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class ProductCategoryFacetQuery
+public class ProductCategoryFacetQuery extends FacetQuery
{
+ public String $type = "Relewise.Client.DataTypes.Search.Facets.Queries.ProductCategoryFacetQuery, Relewise.Client";
public ArrayList items;
public static ProductCategoryFacetQuery create()
{
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryFacetResult.java
index 15d46fa..99d2796 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryHasAncestorFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryHasAncestorFilter.java
index a8e26c4..ab57f08 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryHasAncestorFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryHasAncestorFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ProductCategoryHasAncestorFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryHasAncestorFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryHasChildFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryHasChildFilter.java
index 1349a78..9eeea19 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryHasChildFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryHasChildFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ProductCategoryHasChildFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryHasChildFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryHasParentFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryHasParentFilter.java
index c6d0e3d..77bf5f3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryHasParentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryHasParentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ProductCategoryHasParentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryHasParentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryHasProductsFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryHasProductsFilter.java
new file mode 100644
index 0000000..2935493
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryHasProductsFilter.java
@@ -0,0 +1,52 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryHasProductsFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryHasProductsFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductCategoryHasProductsFilter, Relewise.Client";
+ public static ProductCategoryHasProductsFilter create(Boolean negated)
+ {
+ return new ProductCategoryHasProductsFilter(negated);
+ }
+ public ProductCategoryHasProductsFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ProductCategoryHasProductsFilter()
+ {
+ }
+ @Override
+ public ProductCategoryHasProductsFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductCategoryHasProductsFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilter.java
index 0489bc4..eb0e80e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -77,4 +75,10 @@ public ProductCategoryIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilterCategoryQuery.java b/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilterCategoryQuery.java
index 8881aa6..f7a1bd1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilterCategoryQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryIdFilterCategoryQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryIdRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductCategoryIdRelevanceModifier.java
index 25787ac..3c6ef8d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryIdRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryIdRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on if the product is in a category that matches the given CategoryId
and EvaluationScope
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class ProductCategoryIdRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryIdRelevanceModifier, Relewise.Client";
+ /** The Id of the Category that this RelevanceModifier
will multiply the weight for. */
public String categoryId;
+ /** The relative Category levels that this RelevanceModifier
should match with. */
public CategoryScope evaluationScope;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match the specific CategoryId
instead. */
public Boolean negated;
public static ProductCategoryIdRelevanceModifier create(String categoryId, CategoryScope evaluationScope)
{
@@ -43,12 +46,24 @@ public ProductCategoryIdRelevanceModifier(String categoryId, CategoryScope evalu
this.multiplyWeightBy = 1d;
this.negated = false;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on if the product is in a category that matches the given CategoryId
and EvaluationScope
.
+ * @param categoryId The Id of the Category that this RelevanceModifier will multiply the weight for.
+ * @param evaluationScope The relative Category levels that this RelevanceModifier should match with.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that don't match the specific CategoryId instead.
+ */
public static ProductCategoryIdRelevanceModifier create(String categoryId, CategoryScope evaluationScope, Double multiplyWeightBy, Boolean negated)
{
return new ProductCategoryIdRelevanceModifier(categoryId, evaluationScope, multiplyWeightBy, negated);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on if the product is in a category that matches the given CategoryId
and EvaluationScope
.
+ * @param categoryId The Id of the Category that this RelevanceModifier will multiply the weight for.
+ * @param evaluationScope The relative Category levels that this RelevanceModifier should match with.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that don't match the specific CategoryId instead.
+ */
public ProductCategoryIdRelevanceModifier(String categoryId, CategoryScope evaluationScope, Double multiplyWeightBy, Boolean negated)
{
this.categoryId = categoryId;
@@ -61,37 +76,45 @@ public ProductCategoryIdRelevanceModifier()
this.multiplyWeightBy = 1d;
this.negated = false;
}
+ /** The Id of the Category that this RelevanceModifier
will multiply the weight for. */
public String getCategoryId()
{
return this.categoryId;
}
+ /** The relative Category levels that this RelevanceModifier
should match with. */
public CategoryScope getEvaluationScope()
{
return this.evaluationScope;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match the specific CategoryId
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The Id of the Category that this RelevanceModifier
will multiply the weight for. */
public ProductCategoryIdRelevanceModifier setCategoryId(String categoryId)
{
this.categoryId = categoryId;
return this;
}
+ /** The relative Category levels that this RelevanceModifier
should match with. */
public ProductCategoryIdRelevanceModifier setEvaluationScope(CategoryScope evaluationScope)
{
this.evaluationScope = evaluationScope;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public ProductCategoryIdRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match the specific CategoryId
instead. */
public ProductCategoryIdRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductCategoryIndexConfiguration.java
index 7d5b942..dcd3cae 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerConfiguration.java
index a61505c..b7f533f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResult.java
index c8ef2f3..87fa692 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategory.java b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategory.java
index f32bd9c..fbb501e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategory.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategory.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategoryProductAndVariant.java b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategoryProductAndVariant.java
index 79f16cf..96c135c 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategoryProductAndVariant.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultCategoryProductAndVariant.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultTriggerConfiguration.java
index 1d8088f..2ecfa56 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryInterestTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryLevelFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryLevelFilter.java
index 2a179f9..068caba 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryLevelFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryLevelFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -65,4 +63,10 @@ public ProductCategoryLevelFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductCategoryLevelFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryPopularitySorting.java b/src/src/main/java/com/relewise/client/model/ProductCategoryPopularitySorting.java
index e5d882f..4a20bc7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryPopularitySorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryPopularitySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryQuery.java b/src/src/main/java/com/relewise/client/model/ProductCategoryQuery.java
index 747993f..cf6ac47 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserFilter.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserFilter.java
new file mode 100644
index 0000000..45ee273
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserFilter.java
@@ -0,0 +1,83 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryRecentlyViewedByUserFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryRecentlyViewedByUserFilter extends Filter implements ICategoryFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductCategoryRecentlyViewedByUserFilter, Relewise.Client";
+ public @Nullable OffsetDateTime sinceUtc;
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductCategoryRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductCategoryRecentlyViewedByUserFilter(sinceUtc);
+ }
+ public ProductCategoryRecentlyViewedByUserFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ public static ProductCategoryRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductCategoryRecentlyViewedByUserFilter(sinceUtc, negated);
+ }
+ public ProductCategoryRecentlyViewedByUserFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductCategoryRecentlyViewedByUserFilter()
+ {
+ this.negated = false;
+ }
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ public ProductCategoryRecentlyViewedByUserFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ public ProductCategoryRecentlyViewedByUserFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserRelevanceModifier.java
new file mode 100644
index 0000000..ebb4edf
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecentlyViewedByUserRelevanceModifier.java
@@ -0,0 +1,97 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a ProductCategory depending on whether they have viewed this content within some timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductCategoryRecentlyViewedByUserRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductCategoryRecentlyViewedByUserRelevanceModifier extends RecentlyViewedByUserRelevanceModifier implements IProductCategoryRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client";
+ public static ProductCategoryRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc)
+ {
+ return new ProductCategoryRecentlyViewedByUserRelevanceModifier(sinceUtc);
+ }
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ProductCategory depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public static ProductCategoryRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ return new ProductCategoryRecentlyViewedByUserRelevanceModifier(sinceUtc, ifPreviouslyViewedByUserMultiplyWeightBy, ifNotPreviouslyViewedByUserMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a ProductCategory depending on whether they have viewed this content within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ }
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier()
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier setIfPreviouslyViewedByUserMultiplyWeightBy(Double ifPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier setIfNotPreviouslyViewedByUserMultiplyWeightBy(Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductCategoryRecentlyViewedByUserRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequest.java
index 11975f9..1855ec8 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -77,4 +75,11 @@ public ProductCategoryRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductCategoryRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestCollection.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestCollection.java
index b5bbff2..861b2e2 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -29,14 +27,14 @@ public class ProductCategoryRecommendationRequestCollection extends LicensedRequ
{
public String $type = "Relewise.Client.Requests.Recommendations.ProductCategoryRecommendationRequestCollection, Relewise.Client";
public ArrayList requests;
- public Boolean requireDistinctContentAcrossResults;
- public static ProductCategoryRecommendationRequestCollection create(Boolean requireDistinctContentsAcrossResults, ProductCategoryRecommendationRequest... requests)
+ public Boolean requireDistinctCategoriesAcrossResults;
+ public static ProductCategoryRecommendationRequestCollection create(Boolean requireDistinctCategoriesesAcrossResults, ProductCategoryRecommendationRequest... requests)
{
- return new ProductCategoryRecommendationRequestCollection(requireDistinctContentsAcrossResults, requests);
+ return new ProductCategoryRecommendationRequestCollection(requireDistinctCategoriesesAcrossResults, requests);
}
- public ProductCategoryRecommendationRequestCollection(Boolean requireDistinctContentsAcrossResults, ProductCategoryRecommendationRequest... requests)
+ public ProductCategoryRecommendationRequestCollection(Boolean requireDistinctCategoriesesAcrossResults, ProductCategoryRecommendationRequest... requests)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentsAcrossResults;
+ this.requireDistinctCategoriesAcrossResults = requireDistinctCategoriesesAcrossResults;
this.requests = new ArrayList<>(Arrays.asList(requests));
}
public ProductCategoryRecommendationRequestCollection()
@@ -46,9 +44,9 @@ public ArrayList getRequests()
{
return this.requests;
}
- public Boolean getRequireDistinctContentAcrossResults()
+ public Boolean getRequireDistinctCategoriesAcrossResults()
{
- return this.requireDistinctContentAcrossResults;
+ return this.requireDistinctCategoriesAcrossResults;
}
public ProductCategoryRecommendationRequestCollection setRequests(ProductCategoryRecommendationRequest... requests)
{
@@ -64,9 +62,9 @@ public ProductCategoryRecommendationRequestCollection addToRequests(ProductCateg
this.requests.add(requests);
return this;
}
- public ProductCategoryRecommendationRequestCollection setRequireDistinctContentAcrossResults(Boolean requireDistinctContentAcrossResults)
+ public ProductCategoryRecommendationRequestCollection setRequireDistinctCategoriesAcrossResults(Boolean requireDistinctCategoriesAcrossResults)
{
- this.requireDistinctContentAcrossResults = requireDistinctContentAcrossResults;
+ this.requireDistinctCategoriesAcrossResults = requireDistinctCategoriesAcrossResults;
return this;
}
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestSettings.java
index 6cf7cd9..cfed309 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class ProductCategoryRecommendationRequestSettings
public Boolean allowReplacingOfRecentlyShownRecommendations;
public Boolean prioritizeDiversityBetweenRequests;
public SelectedProductCategoryPropertiesSettings selectedProductCategoryProperties;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static ProductCategoryRecommendationRequestSettings create()
{
return new ProductCategoryRecommendationRequestSettings();
@@ -54,6 +53,10 @@ public SelectedProductCategoryPropertiesSettings getSelectedProductCategoryPrope
{
return this.selectedProductCategoryProperties;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public ProductCategoryRecommendationRequestSettings setNumberOfRecommendations(Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -79,4 +82,9 @@ public ProductCategoryRecommendationRequestSettings setSelectedProductCategoryPr
this.selectedProductCategoryProperties = selectedProductCategoryProperties;
return this;
}
+ public ProductCategoryRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponse.java
index 69814d9..de65906 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponseCollection.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponseCollection.java
index b19f2c8..c41e4ff 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationWeights.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationWeights.java
index 4697243..0420d9a 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationWeights.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRecommendationWeights.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryRelevanceSorting.java b/src/src/main/java/com/relewise/client/model/ProductCategoryRelevanceSorting.java
index e03d092..42180a3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryRelevanceSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryRelevanceSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryResult.java b/src/src/main/java/com/relewise/client/model/ProductCategoryResult.java
index 1b5c935..4535d4f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetails.java b/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetails.java
index 00112b0..8382cec 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetailsCategoryResultDetails.java b/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetailsCategoryResultDetails.java
index 07ce883..4b0042c 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetailsCategoryResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryResultDetailsCategoryResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySearchRequest.java b/src/src/main/java/com/relewise/client/model/ProductCategorySearchRequest.java
index b12bb27..a301836 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -160,4 +158,11 @@ public ProductCategorySearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductCategorySearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySearchResponse.java b/src/src/main/java/com/relewise/client/model/ProductCategorySearchResponse.java
index 42892ff..c174193 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySearchSettings.java b/src/src/main/java/com/relewise/client/model/ProductCategorySearchSettings.java
index f5366dd..b67d6f1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySortBySpecification.java b/src/src/main/java/com/relewise/client/model/ProductCategorySortBySpecification.java
index 741f7a8..3ff1b4d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySortBySpecification.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySortBySpecification.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySorting.java b/src/src/main/java/com/relewise/client/model/ProductCategorySorting.java
index 27203c8..c613fbc 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategorySortingSorting.java b/src/src/main/java/com/relewise/client/model/ProductCategorySortingSorting.java
index cdae7e7..1b57278 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategorySortingSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategorySortingSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryUpdate.java b/src/src/main/java/com/relewise/client/model/ProductCategoryUpdate.java
index ae2b535..724d007 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductCategoryView.java b/src/src/main/java/com/relewise/client/model/ProductCategoryView.java
index 5acc3be..d978cd8 100644
--- a/src/src/main/java/com/relewise/client/model/ProductCategoryView.java
+++ b/src/src/main/java/com/relewise/client/model/ProductCategoryView.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class ProductCategoryView extends Trackable implements IUserIdentifier
public String $type = "Relewise.Client.DataTypes.ProductCategoryView, Relewise.Client";
public @Nullable User user;
public String[] idPath;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static ProductCategoryView create(@Nullable User user, String... idPath)
{
return new ProductCategoryView(user, idPath);
@@ -50,6 +50,11 @@ public String[] getIdPath()
{
return this.idPath;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public ProductCategoryView setUser(User user)
{
this.user = user;
@@ -74,4 +79,10 @@ public ProductCategoryView addToIdPath(String idPath)
}
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public ProductCategoryView setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerConfiguration.java
new file mode 100644
index 0000000..416008a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerConfiguration.java
@@ -0,0 +1,155 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductChangeTriggerConfiguration.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductChangeTriggerConfiguration extends ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration
+{
+ public String $type = "Relewise.Client.DataTypes.Triggers.Configurations.ProductChangeTriggerConfiguration, Relewise.Client";
+ public static ProductChangeTriggerConfiguration create(String name, String description, ProductPropertySelector entityPropertySelector, IChange change, ProductChangeTriggerResultSettings resultSettings)
+ {
+ return new ProductChangeTriggerConfiguration(name, description, entityPropertySelector, change, resultSettings);
+ }
+ public ProductChangeTriggerConfiguration(String name, String description, ProductPropertySelector entityPropertySelector, IChange change, ProductChangeTriggerResultSettings resultSettings)
+ {
+ this.name = name;
+ this.description = description;
+ this.entityPropertySelector = entityPropertySelector;
+ this.change = change;
+ this.resultSettings = resultSettings;
+ }
+ public ProductChangeTriggerConfiguration()
+ {
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setEntityPropertySelector(ProductPropertySelector entityPropertySelector)
+ {
+ this.entityPropertySelector = entityPropertySelector;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
+ {
+ this.beforeChangeFilters = beforeChangeFilters;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
+ {
+ this.afterChangeFilters = afterChangeFilters;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setChange(IChange change)
+ {
+ this.change = change;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setResultSettings(ProductChangeTriggerResultSettings resultSettings)
+ {
+ this.resultSettings = resultSettings;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public ProductChangeTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResult.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResult.java
new file mode 100644
index 0000000..c88f284
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResult.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductChangeTriggerResult.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductChangeTriggerResult extends ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult implements ITriggerResult
+{
+ public String $type = "Relewise.Client.Responses.Triggers.Results.ProductChangeTriggerResult, Relewise.Client";
+ public static ProductChangeTriggerResult create(UserResultDetails user, ProductChangeTriggerResultProductChangeResultDetails... entitiesWithChanges)
+ {
+ return new ProductChangeTriggerResult(user, entitiesWithChanges);
+ }
+ public ProductChangeTriggerResult(UserResultDetails user, ProductChangeTriggerResultProductChangeResultDetails... entitiesWithChanges)
+ {
+ this.user = user;
+ this.entitiesWithChanges = entitiesWithChanges;
+ }
+ public ProductChangeTriggerResult()
+ {
+ }
+ @Override
+ public ProductChangeTriggerResult setEntitiesWithChanges(ProductChangeTriggerResultProductChangeResultDetails... entitiesWithChanges)
+ {
+ this.entitiesWithChanges = entitiesWithChanges;
+ return this;
+ }
+ public ProductChangeTriggerResult addToEntitiesWithChanges(ProductChangeTriggerResultProductChangeResultDetails entitiesWithChange)
+ {
+ if (this.entitiesWithChanges == null)
+ {
+ this.entitiesWithChanges = new ProductChangeTriggerResultProductChangeResultDetails[] { entitiesWithChange };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entitiesWithChanges));
+ existingList.add(entitiesWithChange);
+ this.entitiesWithChanges = existingList.toArray(new ProductChangeTriggerResultProductChangeResultDetails[0]);
+ }
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResult setUser(UserResultDetails user)
+ {
+ this.user = user;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetails.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetails.java
new file mode 100644
index 0000000..7027e56
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetails.java
@@ -0,0 +1,77 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductChangeTriggerResultProductChangeResultDetails
+{
+ public OffsetDateTime changeTimeUtc;
+ public DataValue oldValue;
+ public DataValue newValue;
+ public ProductResultDetails product;
+ public static ProductChangeTriggerResultProductChangeResultDetails create(OffsetDateTime changeTimeUtc, DataValue oldValue, DataValue newValue, ProductResultDetails product)
+ {
+ return new ProductChangeTriggerResultProductChangeResultDetails(changeTimeUtc, oldValue, newValue, product);
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails(OffsetDateTime changeTimeUtc, DataValue oldValue, DataValue newValue, ProductResultDetails product)
+ {
+ this.changeTimeUtc = changeTimeUtc;
+ this.oldValue = oldValue;
+ this.newValue = newValue;
+ this.product = product;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails()
+ {
+ }
+ public OffsetDateTime getChangeTimeUtc()
+ {
+ return this.changeTimeUtc;
+ }
+ public DataValue getOldValue()
+ {
+ return this.oldValue;
+ }
+ public DataValue getNewValue()
+ {
+ return this.newValue;
+ }
+ public ProductResultDetails getProduct()
+ {
+ return this.product;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails setChangeTimeUtc(OffsetDateTime changeTimeUtc)
+ {
+ this.changeTimeUtc = changeTimeUtc;
+ return this;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails setOldValue(DataValue oldValue)
+ {
+ this.oldValue = oldValue;
+ return this;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails setNewValue(DataValue newValue)
+ {
+ this.newValue = newValue;
+ return this;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetails setProduct(ProductResultDetails product)
+ {
+ this.product = product;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult.java
new file mode 100644
index 0000000..c0fa4ec
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult.java
@@ -0,0 +1,46 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult extends EntityChangeTriggerResult implements ITriggerResult
+{
+ public String $type = "";
+ public ProductChangeTriggerResultProductChangeResultDetails[] entitiesWithChanges;
+ public ProductChangeTriggerResultProductChangeResultDetails[] getEntitiesWithChanges()
+ {
+ return this.entitiesWithChanges;
+ }
+ public ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult setEntitiesWithChanges(ProductChangeTriggerResultProductChangeResultDetails... entitiesWithChanges)
+ {
+ this.entitiesWithChanges = entitiesWithChanges;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeResultDetailsEntityChangeTriggerResult setUser(UserResultDetails user)
+ {
+ this.user = user;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration.java
new file mode 100644
index 0000000..0595a3a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration.java
@@ -0,0 +1,176 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration extends ProductChangeTriggerResultTriggerConfiguration
+{
+ public String $type = "";
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable ProductPropertySelector entityPropertySelector;
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection beforeChangeFilters;
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection afterChangeFilters;
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange change;
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable ProductChangeTriggerResultSettings resultSettings;
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable ProductPropertySelector getEntityPropertySelector()
+ {
+ return this.entityPropertySelector;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection getBeforeChangeFilters()
+ {
+ return this.beforeChangeFilters;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection getAfterChangeFilters()
+ {
+ return this.afterChangeFilters;
+ }
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange getChange()
+ {
+ return this.change;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable ProductChangeTriggerResultSettings getResultSettings()
+ {
+ return this.resultSettings;
+ }
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setEntityPropertySelector(ProductPropertySelector entityPropertySelector)
+ {
+ this.entityPropertySelector = entityPropertySelector;
+ return this;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
+ {
+ this.beforeChangeFilters = beforeChangeFilters;
+ return this;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
+ {
+ this.afterChangeFilters = afterChangeFilters;
+ 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. */
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setChange(IChange change)
+ {
+ this.change = change;
+ return this;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setResultSettings(ProductChangeTriggerResultSettings resultSettings)
+ {
+ this.resultSettings = resultSettings;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultProductChangeTriggerResultSettingsProductPropertySelectorEntityChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultSettings.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultSettings.java
new file mode 100644
index 0000000..b1f0625
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultSettings.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductChangeTriggerResultSettings
+{
+ public SelectedProductPropertiesSettings selectedProductProperties;
+ public SelectedVariantPropertiesSettings selectedVariantProperties;
+ public static ProductChangeTriggerResultSettings create()
+ {
+ return new ProductChangeTriggerResultSettings();
+ }
+ public ProductChangeTriggerResultSettings()
+ {
+ }
+ public SelectedProductPropertiesSettings getSelectedProductProperties()
+ {
+ return this.selectedProductProperties;
+ }
+ public SelectedVariantPropertiesSettings getSelectedVariantProperties()
+ {
+ return this.selectedVariantProperties;
+ }
+ public ProductChangeTriggerResultSettings setSelectedProductProperties(SelectedProductPropertiesSettings selectedProductProperties)
+ {
+ this.selectedProductProperties = selectedProductProperties;
+ return this;
+ }
+ public ProductChangeTriggerResultSettings setSelectedVariantProperties(SelectedVariantPropertiesSettings selectedVariantProperties)
+ {
+ this.selectedVariantProperties = selectedVariantProperties;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultTriggerConfiguration.java
new file mode 100644
index 0000000..0b37685
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductChangeTriggerResultTriggerConfiguration.java
@@ -0,0 +1,111 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class ProductChangeTriggerResultTriggerConfiguration extends TriggerConfiguration
+{
+ public String $type = "";
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public ProductChangeTriggerResultTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public ProductChangeTriggerResultTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacet.java
index 7b4baf6..ee7b425 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacetResult.java
index d6de5f8..a2212a9 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataBooleanValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacet.java
index daa6cac..34b1e26 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacetResult.java
index 1911934..f1353fc 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangeFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacet.java
index 0640feb..cd47f7f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacetResult.java
index 6e4fd89..93e9582 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleRangesFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacet.java
index bf6eeba..2705a59 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacetResult.java
index 7bd6bbc..b2815ff 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataDoubleValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataFilter.java b/src/src/main/java/com/relewise/client/model/ProductDataFilter.java
index 6447684..6782137 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public ProductDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/ProductDataHasKeyFilter.java
new file mode 100644
index 0000000..63c927c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductDataHasKeyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static ProductDataHasKeyFilter create(String key)
+ {
+ return new ProductDataHasKeyFilter(key);
+ }
+ public ProductDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static ProductDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new ProductDataHasKeyFilter(key, negated);
+ }
+ public ProductDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public ProductDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public ProductDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public ProductDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacet.java
index edb7c90..3a510e1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacetResult.java
index 167c5b0..8ea2271 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataIntegerValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataObjectFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataObjectFacet.java
index 8f71b9b..f3efb83 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataObjectFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataObjectFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataObjectFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataObjectFacetResult.java
index 12a3784..1c28349 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataObjectFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataObjectFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataObjectSorting.java b/src/src/main/java/com/relewise/client/model/ProductDataObjectSorting.java
index f98845e..40caf57 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataObjectSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataObjectSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductDataRelevanceModifier.java
index 03db747..73c21d3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,22 +17,16 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on matching conditions on a certain key. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "$type",
defaultImpl = ProductDataRelevanceModifier.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class ProductDataRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+public class ProductDataRelevanceModifier extends DataRelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductDataRelevanceModifier, Relewise.Client";
- public String key;
- public Boolean considerAsMatchIfKeyIsNotFound;
- /** @deprecated Use MultiplierSelector instead */
- public Double multiplyWeightBy;
- public Boolean mustMatchAllConditions;
- public ArrayList conditions;
- public ValueSelector multiplierSelector;
public static ProductDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector)
{
return new ProductDataRelevanceModifier(key, conditions, multiplierSelector);
@@ -47,10 +39,20 @@ public ProductDataRelevanceModifier(String key, ArrayList condit
this.mustMatchAllConditions = true;
this.considerAsMatchIfKeyIsNotFound = false;
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
public static ProductDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
return new ProductDataRelevanceModifier(key, conditions, multiplierSelector, mustMatchAllConditions, considerAsMatchIfKeyIsNotFound);
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
public ProductDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
this.key = key;
@@ -64,52 +66,32 @@ public ProductDataRelevanceModifier()
this.considerAsMatchIfKeyIsNotFound = false;
this.mustMatchAllConditions = true;
}
- public String getKey()
- {
- return this.key;
- }
- public Boolean getConsiderAsMatchIfKeyIsNotFound()
- {
- return this.considerAsMatchIfKeyIsNotFound;
- }
- /** @deprecated Use MultiplierSelector instead */
- public Double getMultiplyWeightBy()
- {
- return this.multiplyWeightBy;
- }
- public Boolean getMustMatchAllConditions()
- {
- return this.mustMatchAllConditions;
- }
- public ArrayList getConditions()
- {
- return this.conditions;
- }
- public ValueSelector getMultiplierSelector()
- {
- return this.multiplierSelector;
- }
+ @Override
public ProductDataRelevanceModifier setKey(String key)
{
this.key = key;
return this;
}
+ @Override
public ProductDataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
{
this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
return this;
}
/** @deprecated Use MultiplierSelector instead */
+ @Override
public ProductDataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ @Override
public ProductDataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
{
this.mustMatchAllConditions = mustMatchAllConditions;
return this;
}
+ @Override
public ProductDataRelevanceModifier setConditions(ValueCondition... conditions)
{
this.conditions = new ArrayList<>(Arrays.asList(conditions));;
@@ -124,6 +106,7 @@ public ProductDataRelevanceModifier addToConditions(ValueCondition conditions)
this.conditions.add(conditions);
return this;
}
+ @Override
public ProductDataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
{
this.multiplierSelector = multiplierSelector;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataSorting.java b/src/src/main/java/com/relewise/client/model/ProductDataSorting.java
index cc7ce8b..81a8e77 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacet.java b/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacet.java
index 7ae8228..a5dd23d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacetResult.java
index 033a1e2..5eef980 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDataStringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/ProductDetailsCollectionResponse.java
index 2a6b8c4..fe3c6e1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@ public class ProductDetailsCollectionResponse extends TimedResponse
public String $type = "Relewise.Client.Responses.ProductDetailsCollectionResponse, Relewise.Client";
public ProductResultDetails[] products;
public @Nullable Integer totalNumberOfResults;
+ /** Provides a token for NextPageToken
to consume ProductQuery
results in pages of PageSize
. Turns null
as soon as cursor is fully exhausted/read/processed. Once null is returned, there are no more data to be retrieved and no more requests should be made. */
+ public @Nullable UUID nextPageToken;
public static ProductDetailsCollectionResponse create(ProductResultDetails[] products, @Nullable Integer totalNumberOfResults)
{
return new ProductDetailsCollectionResponse(products, totalNumberOfResults);
@@ -50,6 +50,11 @@ public ProductResultDetails[] getProducts()
{
return this.totalNumberOfResults;
}
+ /** Provides a token for NextPageToken
to consume ProductQuery
results in pages of PageSize
. Turns null
as soon as cursor is fully exhausted/read/processed. Once null is returned, there are no more data to be retrieved and no more requests should be made. */
+ public @Nullable UUID getNextPageToken()
+ {
+ return this.nextPageToken;
+ }
public ProductDetailsCollectionResponse setProducts(ProductResultDetails... products)
{
this.products = products;
@@ -74,6 +79,12 @@ public ProductDetailsCollectionResponse setTotalNumberOfResults(@Nullable Intege
this.totalNumberOfResults = totalNumberOfResults;
return this;
}
+ /** Provides a token for NextPageToken
to consume ProductQuery
results in pages of PageSize
. Turns null
as soon as cursor is fully exhausted/read/processed. Once null is returned, there are no more data to be retrieved and no more requests should be made. */
+ public ProductDetailsCollectionResponse setNextPageToken(@Nullable UUID nextPageToken)
+ {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
@Override
public ProductDetailsCollectionResponse setStatistics(Statistics statistics)
{
diff --git a/src/src/main/java/com/relewise/client/model/ProductDisabledFilter.java b/src/src/main/java/com/relewise/client/model/ProductDisabledFilter.java
new file mode 100644
index 0000000..4c9a226
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductDisabledFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductDisabledFilter, Relewise.Client";
+ public static ProductDisabledFilter create()
+ {
+ return new ProductDisabledFilter();
+ }
+ public ProductDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static ProductDisabledFilter create(Boolean negated)
+ {
+ return new ProductDisabledFilter(negated);
+ }
+ public ProductDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public ProductDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductDisplayNameFilter.java b/src/src/main/java/com/relewise/client/model/ProductDisplayNameFilter.java
index f3624c0..a976685 100644
--- a/src/src/main/java/com/relewise/client/model/ProductDisplayNameFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductDisplayNameFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -89,4 +87,10 @@ public ProductDisplayNameFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductDisplayNameFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductFacetQuery.java b/src/src/main/java/com/relewise/client/model/ProductFacetQuery.java
index 4e17d27..b9c97f2 100644
--- a/src/src/main/java/com/relewise/client/model/ProductFacetQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ProductFacetQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,9 +17,15 @@
import java.util.Set;
import java.util.HashSet;
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductFacetQuery.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class ProductFacetQuery
+public class ProductFacetQuery extends FacetQuery
{
+ public String $type = "Relewise.Client.DataTypes.Search.Facets.Queries.ProductFacetQuery, Relewise.Client";
public ArrayList items;
public static ProductFacetQuery create()
{
diff --git a/src/src/main/java/com/relewise/client/model/ProductFacetResult.java b/src/src/main/java/com/relewise/client/model/ProductFacetResult.java
index b63cccf..d2b21d0 100644
--- a/src/src/main/java/com/relewise/client/model/ProductFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductHasCategoriesFilter.java b/src/src/main/java/com/relewise/client/model/ProductHasCategoriesFilter.java
new file mode 100644
index 0000000..3bc955e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductHasCategoriesFilter.java
@@ -0,0 +1,52 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductHasCategoriesFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductHasCategoriesFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductHasCategoriesFilter, Relewise.Client";
+ public static ProductHasCategoriesFilter create(Boolean negated)
+ {
+ return new ProductHasCategoriesFilter(negated);
+ }
+ public ProductHasCategoriesFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ public ProductHasCategoriesFilter()
+ {
+ }
+ @Override
+ public ProductHasCategoriesFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductHasCategoriesFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductHasVariantsFilter.java b/src/src/main/java/com/relewise/client/model/ProductHasVariantsFilter.java
index 4abc316..2579a82 100644
--- a/src/src/main/java/com/relewise/client/model/ProductHasVariantsFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductHasVariantsFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -66,4 +64,10 @@ public ProductHasVariantsFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductHasVariantsFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductIdFilter.java b/src/src/main/java/com/relewise/client/model/ProductIdFilter.java
index 372de92..ac7b7cb 100644
--- a/src/src/main/java/com/relewise/client/model/ProductIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public ProductIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductIdRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductIdRelevanceModifier.java
index 720cf71..abf701a 100644
--- a/src/src/main/java/com/relewise/client/model/ProductIdRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductIdRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether it is contained in a set of ProductIds
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,8 +27,11 @@
public class ProductIdRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductIdRelevanceModifier, Relewise.Client";
+ /** The Ids of the Products that this RelevanceModifier
will distinguish on. */
public String[] productIds;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match one of the specified ProductIds
instead. */
public Boolean negated;
public static ProductIdRelevanceModifier create()
{
@@ -49,23 +51,28 @@ public ProductIdRelevanceModifier(Double multiplyWeightBy, Boolean negated)
this.multiplyWeightBy = multiplyWeightBy;
this.negated = negated;
}
+ /** The Ids of the Products that this RelevanceModifier
will distinguish on. */
public String[] getProductIds()
{
return this.productIds;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match one of the specified ProductIds
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The Ids of the Products that this RelevanceModifier
will distinguish on. */
public ProductIdRelevanceModifier setProductIds(String... productIds)
{
this.productIds = productIds;
return this;
}
+ /** The Ids of the Products that this RelevanceModifier
will distinguish on. */
public ProductIdRelevanceModifier addToProductIds(String productId)
{
if (this.productIds == null)
@@ -80,11 +87,13 @@ public ProductIdRelevanceModifier addToProductIds(String productId)
}
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public ProductIdRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that don't match one of the specified ProductIds
instead. */
public ProductIdRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/ProductIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductIndexConfiguration.java
index afef5cd..e2c7413 100644
--- a/src/src/main/java/com/relewise/client/model/ProductIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerConfiguration.java
index 826533d..5a461a0 100644
--- a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResult.java b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResult.java
index 140f214..930292c 100644
--- a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultProductAndVariant.java b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultProductAndVariant.java
index fef2fd3..4540ce4 100644
--- a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultProductAndVariant.java
+++ b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultProductAndVariant.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultResultSettings.java b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultResultSettings.java
index 83a9fa3..d5b1056 100644
--- a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultResultSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultResultSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultTriggerConfiguration.java
index d4c8ffd..4c86148 100644
--- a/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/ProductInterestTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductListPriceFilter.java b/src/src/main/java/com/relewise/client/model/ProductListPriceFilter.java
index fca1f29..f3368f7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductListPriceFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductListPriceFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -79,4 +77,10 @@ public ProductListPriceFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductListPriceFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductListPriceRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductListPriceRelevanceModifier.java
index 6768d60..438afcc 100644
--- a/src/src/main/java/com/relewise/client/model/ProductListPriceRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductListPriceRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on the list price falling within a specific Range
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class ProductListPriceRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductListPriceRelevanceModifier, Relewise.Client";
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public DoubleRange range;
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency currency;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean negated;
public static ProductListPriceRelevanceModifier create(DoubleRange range)
{
@@ -43,12 +46,24 @@ public ProductListPriceRelevanceModifier(DoubleRange range)
this.currency = null;
this.negated = false;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on the list price falling within a specific Range
.
+ * @param range The range of list prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public static ProductListPriceRelevanceModifier create(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
return new ProductListPriceRelevanceModifier(range, multiplyWeightBy, currency, negated);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on the list price falling within a specific Range
.
+ * @param range The range of list prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public ProductListPriceRelevanceModifier(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
this.range = range;
@@ -62,37 +77,45 @@ public ProductListPriceRelevanceModifier()
this.multiplyWeightBy = 1d;
this.negated = false;
}
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public DoubleRange getRange()
{
return this.range;
}
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency getCurrency()
{
return this.currency;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public ProductListPriceRelevanceModifier setRange(DoubleRange range)
{
this.range = range;
return this;
}
+ /** The currency that is used to distinguish the price. */
public ProductListPriceRelevanceModifier setCurrency(Currency currency)
{
this.currency = currency;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public ProductListPriceRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public ProductListPriceRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequest.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequest.java
index e6fea42..4d65d29 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestOrderByOptions.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestOrderByOptions.java
index ffa9eb2..25623e0 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestOrderByOptions.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestOrderByOptions.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestVariantDataOptions.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestVariantDataOptions.java
index 1f8b053..88145ba 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestVariantDataOptions.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceRequestVariantDataOptions.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResponse.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResponse.java
index 9d87d8d..035b05d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResult.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResult.java
index 56e1b11..6ff0efb 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCartMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCartMetrics.java
index 2444eac..b76e7b3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCartMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCartMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCategoryMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCategoryMetrics.java
index 08eea1b..062b094 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCategoryMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultCategoryMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultClassificationMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultClassificationMetrics.java
index ec10794..1909171 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultClassificationMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultClassificationMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultRankMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultRankMetrics.java
index 0348f81..f4971b1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultRankMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultRankMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesByCurrency.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesByCurrency.java
index bcbc13d..2819699 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesByCurrency.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesByCurrency.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesMetrics.java
index b5e34e3..53fa18f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesWithKnownCartOpenerMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesWithKnownCartOpenerMetrics.java
index 67d6687..a4f7fe6 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesWithKnownCartOpenerMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultSalesWithKnownCartOpenerMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsAndSalesMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsAndSalesMetrics.java
index 1bd5262..9946131 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsAndSalesMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsAndSalesMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsMetrics.java b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsMetrics.java
index 45a3766..a42fde8 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsMetrics.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPerformanceResultViewsMetrics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPopularitySorting.java b/src/src/main/java/com/relewise/client/model/ProductPopularitySorting.java
index 22b8f4a..f6e08aa 100644
--- a/src/src/main/java/com/relewise/client/model/ProductPopularitySorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductPopularitySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductPromotion.java b/src/src/main/java/com/relewise/client/model/ProductPromotion.java
new file mode 100644
index 0000000..3368e4b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductPromotion.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductPromotion.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductPromotion extends Promotion
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion, Relewise.Client";
+ /** Filters matching the products to be promoted */
+ public @Nullable FilterCollection filters;
+ public static ProductPromotion create(String name, @Nullable FilterCollection filters, PromotionLocationCollection locations)
+ {
+ return new ProductPromotion(name, filters, locations);
+ }
+ public ProductPromotion(String name, @Nullable FilterCollection filters, PromotionLocationCollection locations)
+ {
+ this.name = name;
+ this.filters = filters;
+ this.locations = locations;
+ }
+ public ProductPromotion()
+ {
+ }
+ /** Filters matching the products to be promoted */
+ public @Nullable FilterCollection getFilters()
+ {
+ return this.filters;
+ }
+ /** Filters matching the products to be promoted */
+ public ProductPromotion setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public ProductPromotion setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public ProductPromotion setLocations(PromotionLocationCollection locations)
+ {
+ this.locations = locations;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductPromotionSpecification.java b/src/src/main/java/com/relewise/client/model/ProductPromotionSpecification.java
new file mode 100644
index 0000000..e15edb2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductPromotionSpecification.java
@@ -0,0 +1,54 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Used for specifying that this kind of promotion is allowed at a specific Location as well as for specific advertisers */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductPromotionSpecification.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductPromotionSpecification extends PromotionSpecification
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion+Specification, Relewise.Client";
+ /** Filters matching the products which may be promoted */
+ public @Nullable FilterCollection promotableProducts;
+ public static ProductPromotionSpecification create(FilterCollection promotableProducts)
+ {
+ return new ProductPromotionSpecification(promotableProducts);
+ }
+ public ProductPromotionSpecification(FilterCollection promotableProducts)
+ {
+ this.promotableProducts = promotableProducts;
+ }
+ public ProductPromotionSpecification()
+ {
+ }
+ /** Filters matching the products which may be promoted */
+ public @Nullable FilterCollection getPromotableProducts()
+ {
+ return this.promotableProducts;
+ }
+ /** Filters matching the products which may be promoted */
+ public ProductPromotionSpecification setPromotableProducts(FilterCollection promotableProducts)
+ {
+ this.promotableProducts = promotableProducts;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductPromotionSpecificationVariation.java b/src/src/main/java/com/relewise/client/model/ProductPromotionSpecificationVariation.java
new file mode 100644
index 0000000..8aae1f3
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductPromotionSpecificationVariation.java
@@ -0,0 +1,54 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Used for specifying that this kind of promotion is allowed at a specific Location as well as for specific advertisers */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductPromotionSpecificationVariation.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductPromotionSpecificationVariation extends PromotionSpecificationVariation
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion+SpecificationVariation, Relewise.Client";
+ /** The maximum number of products to promote at a time in this variation. */
+ public Integer maxCount;
+ public static ProductPromotionSpecificationVariation create(Integer maxCount)
+ {
+ return new ProductPromotionSpecificationVariation(maxCount);
+ }
+ public ProductPromotionSpecificationVariation(Integer maxCount)
+ {
+ this.maxCount = maxCount;
+ }
+ public ProductPromotionSpecificationVariation()
+ {
+ }
+ /** The maximum number of products to promote at a time in this variation. */
+ public Integer getMaxCount()
+ {
+ return this.maxCount;
+ }
+ /** The maximum number of products to promote at a time in this variation. */
+ public ProductPromotionSpecificationVariation setMaxCount(Integer maxCount)
+ {
+ this.maxCount = maxCount;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductPropertySelector.java b/src/src/main/java/com/relewise/client/model/ProductPropertySelector.java
new file mode 100644
index 0000000..f041bf0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductPropertySelector.java
@@ -0,0 +1,24 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class ProductPropertySelector
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductQuery.java b/src/src/main/java/com/relewise/client/model/ProductQuery.java
index 270dc65..7565418 100644
--- a/src/src/main/java/com/relewise/client/model/ProductQuery.java
+++ b/src/src/main/java/com/relewise/client/model/ProductQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,37 +26,78 @@
public class ProductQuery extends LicensedRequest
{
public String $type = "Relewise.Client.Requests.Queries.ProductQuery, Relewise.Client";
- public FilterCollection filters;
+ public @Nullable FilterCollection filters;
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public Integer numberOfResults;
public @Nullable Language language;
public @Nullable Currency currency;
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public Integer skipNumberOfResults;
public Boolean returnTotalNumberOfResults;
public Boolean includeDisabledProducts;
public Boolean includeDisabledVariants;
public Boolean excludeProductsWithNoVariants;
- public static ProductQuery create()
+ /** The identifier for the ProductQuery
paged cursor, to consume results in PageSize
batches. Leave as null
for retrieving the first page, and set to the value returned in NextPageToken
for any subsequent page requests. Should a wrong/unexisting token be supplied, a 'Validation' exception shall be returned. */
+ public @Nullable UUID nextPageToken;
+ /** The size of the page requested. Maximum allowed value is 1000. */
+ public @Nullable Integer pageSize;
+ public static ProductQuery create(@Nullable FilterCollection filters, Boolean excludeProductsWithNoVariants)
{
- return new ProductQuery();
+ return new ProductQuery(filters, excludeProductsWithNoVariants);
}
- public ProductQuery()
+ public ProductQuery(@Nullable FilterCollection filters, Boolean excludeProductsWithNoVariants)
{
+ this.filters = filters;
+ this.excludeProductsWithNoVariants = excludeProductsWithNoVariants;
+ this.pageSize = 10;
this.language = null;
this.currency = null;
- }
- public static ProductQuery create(@Nullable Language language, Currency currency)
- {
- return new ProductQuery(language, currency);
- }
- public ProductQuery(@Nullable Language language, Currency currency)
+ this.nextPageToken = null;
+ }
+ /**
+ * Initiates a new instance of ProductQuery
with support for paging. The initial request needs to set PageSize
. Should results span over multiple pages, the response would have token for .
+ * @param filters The filters to be executed to limit results.
+ * @param excludeProductsWithNoVariants Should products without variants be included.
+ * @param pageSize The positive number of elements in page should results span over multiple pages.
+ * @param language The language to use.
+ * @param currency The currency to use.
+ * @param nextPageToken The token returned as a part of previous
+ */
+ public static ProductQuery create(@Nullable FilterCollection filters, Boolean excludeProductsWithNoVariants, Integer pageSize, @Nullable Language language, @Nullable Currency currency, @Nullable UUID nextPageToken)
+ {
+ return new ProductQuery(filters, excludeProductsWithNoVariants, pageSize, language, currency, nextPageToken);
+ }
+ /**
+ * Initiates a new instance of ProductQuery
with support for paging. The initial request needs to set PageSize
. Should results span over multiple pages, the response would have token for .
+ * @param filters The filters to be executed to limit results.
+ * @param excludeProductsWithNoVariants Should products without variants be included.
+ * @param pageSize The positive number of elements in page should results span over multiple pages.
+ * @param language The language to use.
+ * @param currency The currency to use.
+ * @param nextPageToken The token returned as a part of previous
+ */
+ public ProductQuery(@Nullable FilterCollection filters, Boolean excludeProductsWithNoVariants, Integer pageSize, @Nullable Language language, @Nullable Currency currency, @Nullable UUID nextPageToken)
{
+ this.filters = filters;
+ this.excludeProductsWithNoVariants = excludeProductsWithNoVariants;
+ this.pageSize = pageSize;
this.language = language;
this.currency = currency;
+ this.nextPageToken = nextPageToken;
}
- public FilterCollection getFilters()
+ public ProductQuery()
+ {
+ this.language = null;
+ this.currency = null;
+ this.skipNumberOfResults = 0;
+ this.returnTotalNumberOfResults = false;
+ this.nextPageToken = null;
+ }
+ public @Nullable FilterCollection getFilters()
{
return this.filters;
}
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public Integer getNumberOfResults()
{
return this.numberOfResults;
@@ -71,6 +110,7 @@ public Integer getNumberOfResults()
{
return this.currency;
}
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public Integer getSkipNumberOfResults()
{
return this.skipNumberOfResults;
@@ -91,11 +131,22 @@ public Boolean getExcludeProductsWithNoVariants()
{
return this.excludeProductsWithNoVariants;
}
+ /** The identifier for the ProductQuery
paged cursor, to consume results in PageSize
batches. Leave as null
for retrieving the first page, and set to the value returned in NextPageToken
for any subsequent page requests. Should a wrong/unexisting token be supplied, a 'Validation' exception shall be returned. */
+ public @Nullable UUID getNextPageToken()
+ {
+ return this.nextPageToken;
+ }
+ /** The size of the page requested. Maximum allowed value is 1000. */
+ public @Nullable Integer getPageSize()
+ {
+ return this.pageSize;
+ }
public ProductQuery setFilters(FilterCollection filters)
{
this.filters = filters;
return this;
}
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public ProductQuery setNumberOfResults(Integer numberOfResults)
{
this.numberOfResults = numberOfResults;
@@ -111,6 +162,7 @@ public ProductQuery setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated For better paging support, please use NextPageToken and PageSize */
public ProductQuery setSkipNumberOfResults(Integer skipNumberOfResults)
{
this.skipNumberOfResults = skipNumberOfResults;
@@ -136,4 +188,16 @@ public ProductQuery setExcludeProductsWithNoVariants(Boolean excludeProductsWith
this.excludeProductsWithNoVariants = excludeProductsWithNoVariants;
return this;
}
+ /** The identifier for the ProductQuery
paged cursor, to consume results in PageSize
batches. Leave as null
for retrieving the first page, and set to the value returned in NextPageToken
for any subsequent page requests. Should a wrong/unexisting token be supplied, a 'Validation' exception shall be returned. */
+ public ProductQuery setNextPageToken(@Nullable UUID nextPageToken)
+ {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+ /** The size of the page requested. Maximum allowed value is 1000. */
+ public ProductQuery setPageSize(@Nullable Integer pageSize)
+ {
+ this.pageSize = pageSize;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyFilter.java
new file mode 100644
index 0000000..8ab2495
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyFilter.java
@@ -0,0 +1,113 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently purchased by some companies. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyPurchasedByCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyPurchasedByCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The companies that should be evaluated in this filter. */
+ public ArrayList companyIds;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyPurchasedByCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyPurchasedByCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyPurchasedByCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ public static ProductRecentlyPurchasedByCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyPurchasedByCompanyFilter(sinceUtc, negated);
+ }
+ public ProductRecentlyPurchasedByCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyPurchasedByCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ArrayList getCompanyIds()
+ {
+ return this.companyIds;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ProductRecentlyPurchasedByCompanyFilter setCompanyIds(String... companyIds)
+ {
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));;
+ return this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ProductRecentlyPurchasedByCompanyFilter addToCompanyIds(String companyIds)
+ {
+ if (this.companyIds == null)
+ {
+ this.companyIds = new ArrayList<>();
+ }
+ this.companyIds.add(companyIds);
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyRelevanceModifier.java
new file mode 100644
index 0000000..3974ff3
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByCompanyRelevanceModifier.java
@@ -0,0 +1,152 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyPurchasedByCompanyRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyPurchasedByCompanyRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyPurchasedByCompanyRelevanceModifier, Relewise.Client";
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by any of the provided companies. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The companies that should be evaluated in this modifier. */
+ public ArrayList companyIds;
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public Double ifPurchasedByCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public Double elseIfNotPurchasedByCompanyMultiplyWeightBy;
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyPurchasedByCompanyRelevanceModifier create(OffsetDateTime sinceUtc, String... companyIds)
+ {
+ return new ProductRecentlyPurchasedByCompanyRelevanceModifier(sinceUtc, companyIds);
+ }
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier(OffsetDateTime sinceUtc, String... companyIds)
+ {
+ this.sinceUtc = sinceUtc;
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));
+ this.ifPurchasedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotPurchasedByCompanyMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if purchased previously by any of the provided companies.
+ * @param companyIds The list of company ids.
+ * @param ifPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by any of the provided companies (since SinceUtc).
+ * @param elseIfNotPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been purchased in the past by any of the provided companies (since SinceUtc).
+ */
+ public static ProductRecentlyPurchasedByCompanyRelevanceModifier create(OffsetDateTime sinceUtc, ArrayList companyIds, Double ifPurchasedByCompanyMultiplyWeightBy, Double elseIfNotPurchasedByCompanyMultiplyWeightBy)
+ {
+ return new ProductRecentlyPurchasedByCompanyRelevanceModifier(sinceUtc, companyIds, ifPurchasedByCompanyMultiplyWeightBy, elseIfNotPurchasedByCompanyMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if purchased previously by any of the provided companies.
+ * @param companyIds The list of company ids.
+ * @param ifPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by any of the provided companies (since SinceUtc).
+ * @param elseIfNotPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been purchased in the past by any of the provided companies (since SinceUtc).
+ */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier(OffsetDateTime sinceUtc, ArrayList companyIds, Double ifPurchasedByCompanyMultiplyWeightBy, Double elseIfNotPurchasedByCompanyMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.companyIds = companyIds;
+ this.ifPurchasedByCompanyMultiplyWeightBy = ifPurchasedByCompanyMultiplyWeightBy;
+ this.elseIfNotPurchasedByCompanyMultiplyWeightBy = elseIfNotPurchasedByCompanyMultiplyWeightBy;
+ }
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier()
+ {
+ this.ifPurchasedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotPurchasedByCompanyMultiplyWeightBy = 1d;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by any of the provided companies. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The companies that should be evaluated in this modifier. */
+ public ArrayList getCompanyIds()
+ {
+ return this.companyIds;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public Double getIfPurchasedByCompanyMultiplyWeightBy()
+ {
+ return this.ifPurchasedByCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public Double getElseIfNotPurchasedByCompanyMultiplyWeightBy()
+ {
+ return this.elseIfNotPurchasedByCompanyMultiplyWeightBy;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by any of the provided companies. */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The companies that should be evaluated in this modifier. */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setCompanyIds(String... companyIds)
+ {
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));;
+ return this;
+ }
+ /** The companies that should be evaluated in this modifier. */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier addToCompanyIds(String companyIds)
+ {
+ if (this.companyIds == null)
+ {
+ this.companyIds = new ArrayList<>();
+ }
+ this.companyIds.add(companyIds);
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setIfPurchasedByCompanyMultiplyWeightBy(Double ifPurchasedByCompanyMultiplyWeightBy)
+ {
+ this.ifPurchasedByCompanyMultiplyWeightBy = ifPurchasedByCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by any of the provided companies (since SinceUtc
). */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setElseIfNotPurchasedByCompanyMultiplyWeightBy(Double elseIfNotPurchasedByCompanyMultiplyWeightBy)
+ {
+ this.elseIfNotPurchasedByCompanyMultiplyWeightBy = elseIfNotPurchasedByCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByCompanyRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyFilter.java
new file mode 100644
index 0000000..c979230
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyFilter.java
@@ -0,0 +1,100 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently purchased by the Company
associated to the User
used in this query. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyPurchasedByUserCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyPurchasedByUserCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyPurchasedByUserCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyPurchasedByUserCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyPurchasedByUserCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently purchased by the Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been bought by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public static ProductRecentlyPurchasedByUserCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyPurchasedByUserCompanyFilter(sinceUtc, negated);
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently purchased by the Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been bought by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public ProductRecentlyPurchasedByUserCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyPurchasedByUserCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByUserCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByUserCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByUserCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByUserCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyRelevanceModifier.java
new file mode 100644
index 0000000..5e8dde5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserCompanyRelevanceModifier.java
@@ -0,0 +1,143 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyPurchasedByUserCompanyRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyPurchasedByUserCompanyRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyPurchasedByUserCompanyRelevanceModifier, Relewise.Client";
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by their company. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users company (since SinceUtc
). */
+ public Double ifPurchasedByCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users parent company (since SinceUtc
). */
+ public Double elseIfPurchasedByParentCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by the users parent company (since SinceUtc
). */
+ public Double elseIfNotPurchasedByEitherCompanyMultiplyWeightBy;
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyPurchasedByUserCompanyRelevanceModifier create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyPurchasedByUserCompanyRelevanceModifier(sinceUtc);
+ }
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPurchasedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfPurchasedByParentCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotPurchasedByEitherCompanyMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if purchased previously by their company.
+ * @param ifPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by the users company (since SinceUtc).
+ * @param elseIfPurchasedByParentCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by the users parent company (since SinceUtc).
+ * @param elseIfNotPurchasedByEitherCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been purchased in the past by the users parent company (since SinceUtc).
+ */
+ public static ProductRecentlyPurchasedByUserCompanyRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPurchasedByCompanyMultiplyWeightBy, Double elseIfPurchasedByParentCompanyMultiplyWeightBy, Double elseIfNotPurchasedByEitherCompanyMultiplyWeightBy)
+ {
+ return new ProductRecentlyPurchasedByUserCompanyRelevanceModifier(sinceUtc, ifPurchasedByCompanyMultiplyWeightBy, elseIfPurchasedByParentCompanyMultiplyWeightBy, elseIfNotPurchasedByEitherCompanyMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have purchased this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if purchased previously by their company.
+ * @param ifPurchasedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by the users company (since SinceUtc).
+ * @param elseIfPurchasedByParentCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been purchased in the past by the users parent company (since SinceUtc).
+ * @param elseIfNotPurchasedByEitherCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been purchased in the past by the users parent company (since SinceUtc).
+ */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier(OffsetDateTime sinceUtc, Double ifPurchasedByCompanyMultiplyWeightBy, Double elseIfPurchasedByParentCompanyMultiplyWeightBy, Double elseIfNotPurchasedByEitherCompanyMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifPurchasedByCompanyMultiplyWeightBy = ifPurchasedByCompanyMultiplyWeightBy;
+ this.elseIfPurchasedByParentCompanyMultiplyWeightBy = elseIfPurchasedByParentCompanyMultiplyWeightBy;
+ this.elseIfNotPurchasedByEitherCompanyMultiplyWeightBy = elseIfNotPurchasedByEitherCompanyMultiplyWeightBy;
+ }
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier()
+ {
+ this.ifPurchasedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfPurchasedByParentCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotPurchasedByEitherCompanyMultiplyWeightBy = 1d;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by their company. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users company (since SinceUtc
). */
+ public Double getIfPurchasedByCompanyMultiplyWeightBy()
+ {
+ return this.ifPurchasedByCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users parent company (since SinceUtc
). */
+ public Double getElseIfPurchasedByParentCompanyMultiplyWeightBy()
+ {
+ return this.elseIfPurchasedByParentCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by the users parent company (since SinceUtc
). */
+ public Double getElseIfNotPurchasedByEitherCompanyMultiplyWeightBy()
+ {
+ return this.elseIfNotPurchasedByEitherCompanyMultiplyWeightBy;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if purchased previously by their company. */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users company (since SinceUtc
). */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setIfPurchasedByCompanyMultiplyWeightBy(Double ifPurchasedByCompanyMultiplyWeightBy)
+ {
+ this.ifPurchasedByCompanyMultiplyWeightBy = ifPurchasedByCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been purchased in the past by the users parent company (since SinceUtc
). */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setElseIfPurchasedByParentCompanyMultiplyWeightBy(Double elseIfPurchasedByParentCompanyMultiplyWeightBy)
+ {
+ this.elseIfPurchasedByParentCompanyMultiplyWeightBy = elseIfPurchasedByParentCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has not been purchased in the past by the users parent company (since SinceUtc
). */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setElseIfNotPurchasedByEitherCompanyMultiplyWeightBy(Double elseIfNotPurchasedByEitherCompanyMultiplyWeightBy)
+ {
+ this.elseIfNotPurchasedByEitherCompanyMultiplyWeightBy = elseIfNotPurchasedByEitherCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByUserCompanyRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserFilter.java
index 96a9674..19d689d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,7 +26,8 @@
public class ProductRecentlyPurchasedByUserFilter extends Filter implements IProductFilter
{
public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserFilter, Relewise.Client";
- public OffsetDateTime sinceUtc;
+ public @Nullable OffsetDateTime sinceUtc;
+ public @Nullable Integer sinceMinutesAgo;
public static ProductRecentlyPurchasedByUserFilter create(OffsetDateTime sinceUtc)
{
return new ProductRecentlyPurchasedByUserFilter(sinceUtc);
@@ -51,19 +50,34 @@ public ProductRecentlyPurchasedByUserFilter()
{
this.negated = false;
}
- public OffsetDateTime getSinceUtc()
+ public @Nullable OffsetDateTime getSinceUtc()
{
return this.sinceUtc;
}
- public ProductRecentlyPurchasedByUserFilter setSinceUtc(OffsetDateTime sinceUtc)
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ public ProductRecentlyPurchasedByUserFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
{
this.sinceUtc = sinceUtc;
return this;
}
+ public ProductRecentlyPurchasedByUserFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
@Override
public ProductRecentlyPurchasedByUserFilter setNegated(Boolean negated)
{
this.negated = negated;
return this;
}
+ @Override
+ public ProductRecentlyPurchasedByUserFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserParentCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserParentCompanyFilter.java
new file mode 100644
index 0000000..2a6d6eb
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserParentCompanyFilter.java
@@ -0,0 +1,100 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently purchased by the parent Company
associated to the User
used in this query. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyPurchasedByUserParentCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyPurchasedByUserParentCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyPurchasedByUserParentCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyPurchasedByUserParentCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyPurchasedByUserParentCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyPurchasedByUserParentCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently purchased by the parent Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been bought by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public static ProductRecentlyPurchasedByUserParentCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyPurchasedByUserParentCompanyFilter(sinceUtc, negated);
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently purchased by the parent Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been bought by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public ProductRecentlyPurchasedByUserParentCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyPurchasedByUserParentCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been bought by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByUserParentCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyPurchasedByUserParentCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByUserParentCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyPurchasedByUserParentCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserRelevanceModifier.java
index 7d9e322..e32432c 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyPurchasedByUserRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether they have bought this product within some timespan. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,14 @@
public class ProductRecentlyPurchasedByUserRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyPurchasedByUserRelevanceModifier, Relewise.Client";
- public OffsetDateTime sinceUtc;
+ /** The start of the time period in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The weight that the Product will be multiplied with if it has been bought in the past by the user (since SinceUtc
). */
public Double ifPreviouslyPurchasedByUserMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has not been bought in the past by the user (since SinceUtc
). */
public Double ifNotPreviouslyPurchasedByUserMultiplyWeightBy;
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
public static ProductRecentlyPurchasedByUserRelevanceModifier create(OffsetDateTime sinceUtc)
{
return new ProductRecentlyPurchasedByUserRelevanceModifier(sinceUtc);
@@ -41,12 +45,22 @@ public ProductRecentlyPurchasedByUserRelevanceModifier(OffsetDateTime sinceUtc)
this.ifPreviouslyPurchasedByUserMultiplyWeightBy = 1d;
this.ifNotPreviouslyPurchasedByUserMultiplyWeightBy = 1d;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether they have bought this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if bought previously by them.
+ * @param ifPreviouslyPurchasedByUserMultiplyWeightBy The weight that the Product will be multiplied with if it has been bought in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyPurchasedByUserMultiplyWeightBy The weight that the Product will be multiplied with if it has not been bought in the past by the user (since SinceUtc).
+ */
public static ProductRecentlyPurchasedByUserRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPreviouslyPurchasedByUserMultiplyWeightBy, Double ifNotPreviouslyPurchasedByUserMultiplyWeightBy)
{
return new ProductRecentlyPurchasedByUserRelevanceModifier(sinceUtc, ifPreviouslyPurchasedByUserMultiplyWeightBy, ifNotPreviouslyPurchasedByUserMultiplyWeightBy);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether they have bought this product within some timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if bought previously by them.
+ * @param ifPreviouslyPurchasedByUserMultiplyWeightBy The weight that the Product will be multiplied with if it has been bought in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyPurchasedByUserMultiplyWeightBy The weight that the Product will be multiplied with if it has not been bought in the past by the user (since SinceUtc).
+ */
public ProductRecentlyPurchasedByUserRelevanceModifier(OffsetDateTime sinceUtc, Double ifPreviouslyPurchasedByUserMultiplyWeightBy, Double ifNotPreviouslyPurchasedByUserMultiplyWeightBy)
{
this.sinceUtc = sinceUtc;
@@ -58,33 +72,50 @@ public ProductRecentlyPurchasedByUserRelevanceModifier()
this.ifPreviouslyPurchasedByUserMultiplyWeightBy = 1d;
this.ifNotPreviouslyPurchasedByUserMultiplyWeightBy = 1d;
}
- public OffsetDateTime getSinceUtc()
+ /** The start of the time period in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable OffsetDateTime getSinceUtc()
{
return this.sinceUtc;
}
+ /** The weight that the Product will be multiplied with if it has been bought in the past by the user (since SinceUtc
). */
public Double getIfPreviouslyPurchasedByUserMultiplyWeightBy()
{
return this.ifPreviouslyPurchasedByUserMultiplyWeightBy;
}
+ /** The weight that the Product will be multiplied with if it has not been bought in the past by the user (since SinceUtc
). */
public Double getIfNotPreviouslyPurchasedByUserMultiplyWeightBy()
{
return this.ifNotPreviouslyPurchasedByUserMultiplyWeightBy;
}
- public ProductRecentlyPurchasedByUserRelevanceModifier setSinceUtc(OffsetDateTime sinceUtc)
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if bought previously by them. */
+ public ProductRecentlyPurchasedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
{
this.sinceUtc = sinceUtc;
return this;
}
+ /** The weight that the Product will be multiplied with if it has been bought in the past by the user (since SinceUtc
). */
public ProductRecentlyPurchasedByUserRelevanceModifier setIfPreviouslyPurchasedByUserMultiplyWeightBy(Double ifPreviouslyPurchasedByUserMultiplyWeightBy)
{
this.ifPreviouslyPurchasedByUserMultiplyWeightBy = ifPreviouslyPurchasedByUserMultiplyWeightBy;
return this;
}
+ /** The weight that the Product will be multiplied with if it has not been bought in the past by the user (since SinceUtc
). */
public ProductRecentlyPurchasedByUserRelevanceModifier setIfNotPreviouslyPurchasedByUserMultiplyWeightBy(Double ifNotPreviouslyPurchasedByUserMultiplyWeightBy)
{
this.ifNotPreviouslyPurchasedByUserMultiplyWeightBy = ifNotPreviouslyPurchasedByUserMultiplyWeightBy;
return this;
}
+ /** The minutes since in which a product will be considered relevant to the user if bought previously by them. */
+ public ProductRecentlyPurchasedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
@Override
public ProductRecentlyPurchasedByUserRelevanceModifier setFilters(FilterCollection filters)
{
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyFilter.java
new file mode 100644
index 0000000..46cdf5c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyFilter.java
@@ -0,0 +1,113 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently viewed by some companies. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyViewedByCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyViewedByCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The companies that should be evaluated in this filter. */
+ public ArrayList companyIds;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyViewedByCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyViewedByCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyViewedByCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ public static ProductRecentlyViewedByCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyViewedByCompanyFilter(sinceUtc, negated);
+ }
+ public ProductRecentlyViewedByCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyViewedByCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ArrayList getCompanyIds()
+ {
+ return this.companyIds;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ProductRecentlyViewedByCompanyFilter setCompanyIds(String... companyIds)
+ {
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));;
+ return this;
+ }
+ /** The companies that should be evaluated in this filter. */
+ public ProductRecentlyViewedByCompanyFilter addToCompanyIds(String companyIds)
+ {
+ if (this.companyIds == null)
+ {
+ this.companyIds = new ArrayList<>();
+ }
+ this.companyIds.add(companyIds);
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyRelevanceModifier.java
new file mode 100644
index 0000000..e8a56d9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByCompanyRelevanceModifier.java
@@ -0,0 +1,152 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether the product has been viewed by any of the provided companies within the provided timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyViewedByCompanyRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyViewedByCompanyRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByCompanyRelevanceModifier, Relewise.Client";
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by any of the provided companies. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The list of companies. */
+ public ArrayList companyIds;
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by any of the provided companies (since SinceUtc
). */
+ public Double ifViewedByCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users company (since SinceUtc
). */
+ public Double elseIfNotViewedByCompanyMultiplyWeightBy;
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyViewedByCompanyRelevanceModifier create(OffsetDateTime sinceUtc, String... companyIds)
+ {
+ return new ProductRecentlyViewedByCompanyRelevanceModifier(sinceUtc, companyIds);
+ }
+ public ProductRecentlyViewedByCompanyRelevanceModifier(OffsetDateTime sinceUtc, String... companyIds)
+ {
+ this.sinceUtc = sinceUtc;
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));
+ this.ifViewedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotViewedByCompanyMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the product has been viewed by any of the provided companies within the provided timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if viewed previously by any of the provided companies.
+ * @param companyIds The single company that should be evaluated in this filter.
+ * @param ifViewedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by any of the provided companies (since SinceUtc).
+ * @param elseIfNotViewedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been viewed in the past by the users company (since SinceUtc).
+ */
+ public static ProductRecentlyViewedByCompanyRelevanceModifier create(OffsetDateTime sinceUtc, ArrayList companyIds, Double ifViewedByCompanyMultiplyWeightBy, Double elseIfNotViewedByCompanyMultiplyWeightBy)
+ {
+ return new ProductRecentlyViewedByCompanyRelevanceModifier(sinceUtc, companyIds, ifViewedByCompanyMultiplyWeightBy, elseIfNotViewedByCompanyMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the product has been viewed by any of the provided companies within the provided timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if viewed previously by any of the provided companies.
+ * @param companyIds The single company that should be evaluated in this filter.
+ * @param ifViewedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by any of the provided companies (since SinceUtc).
+ * @param elseIfNotViewedByCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been viewed in the past by the users company (since SinceUtc).
+ */
+ public ProductRecentlyViewedByCompanyRelevanceModifier(OffsetDateTime sinceUtc, ArrayList companyIds, Double ifViewedByCompanyMultiplyWeightBy, Double elseIfNotViewedByCompanyMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.companyIds = companyIds;
+ this.ifViewedByCompanyMultiplyWeightBy = ifViewedByCompanyMultiplyWeightBy;
+ this.elseIfNotViewedByCompanyMultiplyWeightBy = elseIfNotViewedByCompanyMultiplyWeightBy;
+ }
+ public ProductRecentlyViewedByCompanyRelevanceModifier()
+ {
+ this.ifViewedByCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotViewedByCompanyMultiplyWeightBy = 1d;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by any of the provided companies. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The list of companies. */
+ public ArrayList getCompanyIds()
+ {
+ return this.companyIds;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by any of the provided companies (since SinceUtc
). */
+ public Double getIfViewedByCompanyMultiplyWeightBy()
+ {
+ return this.ifViewedByCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users company (since SinceUtc
). */
+ public Double getElseIfNotViewedByCompanyMultiplyWeightBy()
+ {
+ return this.elseIfNotViewedByCompanyMultiplyWeightBy;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by any of the provided companies. */
+ public ProductRecentlyViewedByCompanyRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The list of companies. */
+ public ProductRecentlyViewedByCompanyRelevanceModifier setCompanyIds(String... companyIds)
+ {
+ this.companyIds = new ArrayList<>(Arrays.asList(companyIds));;
+ return this;
+ }
+ /** The list of companies. */
+ public ProductRecentlyViewedByCompanyRelevanceModifier addToCompanyIds(String companyIds)
+ {
+ if (this.companyIds == null)
+ {
+ this.companyIds = new ArrayList<>();
+ }
+ this.companyIds.add(companyIds);
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by any of the provided companies (since SinceUtc
). */
+ public ProductRecentlyViewedByCompanyRelevanceModifier setIfViewedByCompanyMultiplyWeightBy(Double ifViewedByCompanyMultiplyWeightBy)
+ {
+ this.ifViewedByCompanyMultiplyWeightBy = ifViewedByCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users company (since SinceUtc
). */
+ public ProductRecentlyViewedByCompanyRelevanceModifier setElseIfNotViewedByCompanyMultiplyWeightBy(Double elseIfNotViewedByCompanyMultiplyWeightBy)
+ {
+ this.elseIfNotViewedByCompanyMultiplyWeightBy = elseIfNotViewedByCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public ProductRecentlyViewedByCompanyRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByCompanyRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyFilter.java
new file mode 100644
index 0000000..af74f6b
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyFilter.java
@@ -0,0 +1,100 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently viewed by the Company
associated to the User
used in this query. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyViewedByUserCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyViewedByUserCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyViewedByUserCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyViewedByUserCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyViewedByUserCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently viewed by the Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been viewed by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public static ProductRecentlyViewedByUserCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyViewedByUserCompanyFilter(sinceUtc, negated);
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently viewed by the Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been viewed by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public ProductRecentlyViewedByUserCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyViewedByUserCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByUserCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByUserCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByUserCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByUserCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyRelevanceModifier.java
new file mode 100644
index 0000000..81b80c5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserCompanyRelevanceModifier.java
@@ -0,0 +1,143 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have viewed this product within the provided timespan. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyViewedByUserCompanyRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyViewedByUserCompanyRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByUserCompanyRelevanceModifier, Relewise.Client";
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by their company. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users company (since SinceUtc
). */
+ public Double ifViewedByUserCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users parent company (since SinceUtc
). */
+ public Double elseIfViewedByUserParentCompanyMultiplyWeightBy;
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users parent company (since SinceUtc
). */
+ public Double elseIfNotViewedByEitherCompanyMultiplyWeightBy;
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyViewedByUserCompanyRelevanceModifier create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyViewedByUserCompanyRelevanceModifier(sinceUtc);
+ }
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifViewedByUserCompanyMultiplyWeightBy = 1d;
+ this.elseIfViewedByUserParentCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotViewedByEitherCompanyMultiplyWeightBy = 1d;
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have viewed this product within the provided timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if viewed previously by their company.
+ * @param ifViewedByUserCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by the users company (since SinceUtc).
+ * @param elseIfViewedByUserParentCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by the users parent company (since SinceUtc).
+ * @param elseIfNotViewedByEitherCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been viewed in the past by the users parent company (since SinceUtc).
+ */
+ public static ProductRecentlyViewedByUserCompanyRelevanceModifier create(OffsetDateTime sinceUtc, Double ifViewedByUserCompanyMultiplyWeightBy, Double elseIfViewedByUserParentCompanyMultiplyWeightBy, Double elseIfNotViewedByEitherCompanyMultiplyWeightBy)
+ {
+ return new ProductRecentlyViewedByUserCompanyRelevanceModifier(sinceUtc, ifViewedByUserCompanyMultiplyWeightBy, elseIfViewedByUserParentCompanyMultiplyWeightBy, elseIfNotViewedByEitherCompanyMultiplyWeightBy);
+ }
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether the users company or parent company have viewed this product within the provided timespan.
+ * @param sinceUtc The start of the time period in which a product will be considered relevant to the user if viewed previously by their company.
+ * @param ifViewedByUserCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by the users company (since SinceUtc).
+ * @param elseIfViewedByUserParentCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has been viewed in the past by the users parent company (since SinceUtc).
+ * @param elseIfNotViewedByEitherCompanyMultiplyWeightBy The weight that the Product will be multiplied with if it has not been viewed in the past by the users parent company (since SinceUtc).
+ */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier(OffsetDateTime sinceUtc, Double ifViewedByUserCompanyMultiplyWeightBy, Double elseIfViewedByUserParentCompanyMultiplyWeightBy, Double elseIfNotViewedByEitherCompanyMultiplyWeightBy)
+ {
+ this.sinceUtc = sinceUtc;
+ this.ifViewedByUserCompanyMultiplyWeightBy = ifViewedByUserCompanyMultiplyWeightBy;
+ this.elseIfViewedByUserParentCompanyMultiplyWeightBy = elseIfViewedByUserParentCompanyMultiplyWeightBy;
+ this.elseIfNotViewedByEitherCompanyMultiplyWeightBy = elseIfNotViewedByEitherCompanyMultiplyWeightBy;
+ }
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier()
+ {
+ this.ifViewedByUserCompanyMultiplyWeightBy = 1d;
+ this.elseIfViewedByUserParentCompanyMultiplyWeightBy = 1d;
+ this.elseIfNotViewedByEitherCompanyMultiplyWeightBy = 1d;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by their company. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users company (since SinceUtc
). */
+ public Double getIfViewedByUserCompanyMultiplyWeightBy()
+ {
+ return this.ifViewedByUserCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users parent company (since SinceUtc
). */
+ public Double getElseIfViewedByUserParentCompanyMultiplyWeightBy()
+ {
+ return this.elseIfViewedByUserParentCompanyMultiplyWeightBy;
+ }
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users parent company (since SinceUtc
). */
+ public Double getElseIfNotViewedByEitherCompanyMultiplyWeightBy()
+ {
+ return this.elseIfNotViewedByEitherCompanyMultiplyWeightBy;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which a product will be considered relevant to the user if viewed previously by their company. */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users company (since SinceUtc
). */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setIfViewedByUserCompanyMultiplyWeightBy(Double ifViewedByUserCompanyMultiplyWeightBy)
+ {
+ this.ifViewedByUserCompanyMultiplyWeightBy = ifViewedByUserCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has been viewed in the past by the users parent company (since SinceUtc
). */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setElseIfViewedByUserParentCompanyMultiplyWeightBy(Double elseIfViewedByUserParentCompanyMultiplyWeightBy)
+ {
+ this.elseIfViewedByUserParentCompanyMultiplyWeightBy = elseIfViewedByUserParentCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the Product will be multiplied with if it has not been viewed in the past by the users parent company (since SinceUtc
). */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setElseIfNotViewedByEitherCompanyMultiplyWeightBy(Double elseIfNotViewedByEitherCompanyMultiplyWeightBy)
+ {
+ this.elseIfNotViewedByEitherCompanyMultiplyWeightBy = elseIfNotViewedByEitherCompanyMultiplyWeightBy;
+ return this;
+ }
+ /** The minutes since in which a product will be considered relevant to the user if viewed previously by them. */
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByUserCompanyRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserFilter.java
index a0e1489..f06bd2e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,7 +26,8 @@
public class ProductRecentlyViewedByUserFilter extends Filter implements IProductFilter
{
public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserFilter, Relewise.Client";
- public OffsetDateTime sinceUtc;
+ public @Nullable OffsetDateTime sinceUtc;
+ public @Nullable Integer sinceMinutesAgo;
public static ProductRecentlyViewedByUserFilter create(OffsetDateTime sinceUtc)
{
return new ProductRecentlyViewedByUserFilter(sinceUtc);
@@ -51,19 +50,34 @@ public ProductRecentlyViewedByUserFilter()
{
this.negated = false;
}
- public OffsetDateTime getSinceUtc()
+ public @Nullable OffsetDateTime getSinceUtc()
{
return this.sinceUtc;
}
- public ProductRecentlyViewedByUserFilter setSinceUtc(OffsetDateTime sinceUtc)
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ public ProductRecentlyViewedByUserFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
{
this.sinceUtc = sinceUtc;
return this;
}
+ public ProductRecentlyViewedByUserFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
@Override
public ProductRecentlyViewedByUserFilter setNegated(Boolean negated)
{
this.negated = negated;
return this;
}
+ @Override
+ public ProductRecentlyViewedByUserFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserParentCompanyFilter.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserParentCompanyFilter.java
new file mode 100644
index 0000000..e8a47d6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserParentCompanyFilter.java
@@ -0,0 +1,100 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a Filter
that can filter on the products recently viewed by the parent Company
associated to the User
used in this query. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ProductRecentlyViewedByUserParentCompanyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ProductRecentlyViewedByUserParentCompanyFilter extends Filter implements IProductFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.ProductRecentlyViewedByUserParentCompanyFilter, Relewise.Client";
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer sinceMinutesAgo;
+ public static ProductRecentlyViewedByUserParentCompanyFilter create(OffsetDateTime sinceUtc)
+ {
+ return new ProductRecentlyViewedByUserParentCompanyFilter(sinceUtc);
+ }
+ public ProductRecentlyViewedByUserParentCompanyFilter(OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = false;
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently viewed by the parent Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been viewed by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public static ProductRecentlyViewedByUserParentCompanyFilter create(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ return new ProductRecentlyViewedByUserParentCompanyFilter(sinceUtc, negated);
+ }
+ /**
+ * Creates a Filter
that can filter on the products recently viewed by the parent Company
associated to the User
used in this query.
+ * @param sinceUtc The time from which a Product should have been viewed by any of the companies to be included by the filter.
+ * @param negated Defines whether the Filter should exclude the matching entities instead of including the matching entities.
+ */
+ public ProductRecentlyViewedByUserParentCompanyFilter(OffsetDateTime sinceUtc, Boolean negated)
+ {
+ this.sinceUtc = sinceUtc;
+ this.negated = negated;
+ }
+ public ProductRecentlyViewedByUserParentCompanyFilter()
+ {
+ this.negated = false;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The time from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByUserParentCompanyFilter setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The time in minutes from which a Product
should have been viewed by any of the companies to be included by the filter. */
+ public ProductRecentlyViewedByUserParentCompanyFilter setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByUserParentCompanyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public ProductRecentlyViewedByUserParentCompanyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserRelevanceModifier.java
index 54bb4aa..3b2a6ec 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecentlyViewedByUserRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,18 +17,16 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether they have viewed this product within some timespan. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "$type",
defaultImpl = ProductRecentlyViewedByUserRelevanceModifier.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class ProductRecentlyViewedByUserRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
+public class ProductRecentlyViewedByUserRelevanceModifier extends RecentlyViewedByUserRelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByUserRelevanceModifier, Relewise.Client";
- public OffsetDateTime sinceUtc;
- public Double ifPreviouslyViewedByUserMultiplyWeightBy;
- public Double ifNotPreviouslyViewedByUserMultiplyWeightBy;
public static ProductRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc)
{
return new ProductRecentlyViewedByUserRelevanceModifier(sinceUtc);
@@ -41,12 +37,22 @@ public ProductRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc)
this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether they have viewed this product within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
public static ProductRecentlyViewedByUserRelevanceModifier create(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
{
return new ProductRecentlyViewedByUserRelevanceModifier(sinceUtc, ifPreviouslyViewedByUserMultiplyWeightBy, ifNotPreviouslyViewedByUserMultiplyWeightBy);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether they have viewed this product within some timespan.
+ * @param sinceUtc The start of the time period in which an entity will be considered relevant to the user if viewed previously by them.
+ * @param ifPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc).
+ * @param ifNotPreviouslyViewedByUserMultiplyWeightBy The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc).
+ */
public ProductRecentlyViewedByUserRelevanceModifier(OffsetDateTime sinceUtc, Double ifPreviouslyViewedByUserMultiplyWeightBy, Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
{
this.sinceUtc = sinceUtc;
@@ -58,34 +64,31 @@ public ProductRecentlyViewedByUserRelevanceModifier()
this.ifPreviouslyViewedByUserMultiplyWeightBy = 1d;
this.ifNotPreviouslyViewedByUserMultiplyWeightBy = 1d;
}
- public OffsetDateTime getSinceUtc()
- {
- return this.sinceUtc;
- }
- public Double getIfPreviouslyViewedByUserMultiplyWeightBy()
- {
- return this.ifPreviouslyViewedByUserMultiplyWeightBy;
- }
- public Double getIfNotPreviouslyViewedByUserMultiplyWeightBy()
- {
- return this.ifNotPreviouslyViewedByUserMultiplyWeightBy;
- }
- public ProductRecentlyViewedByUserRelevanceModifier setSinceUtc(OffsetDateTime sinceUtc)
+ @Override
+ public ProductRecentlyViewedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
{
this.sinceUtc = sinceUtc;
return this;
}
+ @Override
public ProductRecentlyViewedByUserRelevanceModifier setIfPreviouslyViewedByUserMultiplyWeightBy(Double ifPreviouslyViewedByUserMultiplyWeightBy)
{
this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
return this;
}
+ @Override
public ProductRecentlyViewedByUserRelevanceModifier setIfNotPreviouslyViewedByUserMultiplyWeightBy(Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
{
this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
return this;
}
@Override
+ public ProductRecentlyViewedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
public ProductRecentlyViewedByUserRelevanceModifier setFilters(FilterCollection filters)
{
this.filters = filters;
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequest.java
index cbfcc7b..cf2e83b 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -88,4 +86,11 @@ public ProductRecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestCollection.java b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestCollection.java
index fce6c3e..31d0f7d 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestSettings.java b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestSettings.java
index 886c7fa..5710c24 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecommendationRequestSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,6 +29,7 @@ public class ProductRecommendationRequestSettings
public Boolean prioritizeDiversityBetweenRequests;
public @Nullable Boolean allowProductsCurrentlyInCart;
public @Nullable SelectedBrandPropertiesSettings selectedBrandProperties;
+ public @Nullable Integer prioritizeResultsNotRecommendedWithinSeconds;
public static ProductRecommendationRequestSettings create()
{
return new ProductRecommendationRequestSettings();
@@ -74,6 +73,10 @@ public Boolean getPrioritizeDiversityBetweenRequests()
{
return this.selectedBrandProperties;
}
+ public @Nullable Integer getPrioritizeResultsNotRecommendedWithinSeconds()
+ {
+ return this.prioritizeResultsNotRecommendedWithinSeconds;
+ }
public ProductRecommendationRequestSettings setNumberOfRecommendations(Integer numberOfRecommendations)
{
this.numberOfRecommendations = numberOfRecommendations;
@@ -119,4 +122,9 @@ public ProductRecommendationRequestSettings setSelectedBrandProperties(SelectedB
this.selectedBrandProperties = selectedBrandProperties;
return this;
}
+ public ProductRecommendationRequestSettings setPrioritizeResultsNotRecommendedWithinSeconds(@Nullable Integer prioritizeResultsNotRecommendedWithinSeconds)
+ {
+ this.prioritizeResultsNotRecommendedWithinSeconds = prioritizeResultsNotRecommendedWithinSeconds;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/ProductRecommendationResponse.java
index 75ab4d8..986844f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductRecommendationResponseCollection.java b/src/src/main/java/com/relewise/client/model/ProductRecommendationResponseCollection.java
index 4843a33..82ebb03 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRecommendationResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRecommendationResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductRelevanceSorting.java b/src/src/main/java/com/relewise/client/model/ProductRelevanceSorting.java
index f3df3e6..bc8c4ee 100644
--- a/src/src/main/java/com/relewise/client/model/ProductRelevanceSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductRelevanceSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductResult.java b/src/src/main/java/com/relewise/client/model/ProductResult.java
index 63d1666..16bc615 100644
--- a/src/src/main/java/com/relewise/client/model/ProductResult.java
+++ b/src/src/main/java/com/relewise/client/model/ProductResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -35,6 +33,9 @@ public class ProductResult
public @Nullable Double salesPrice;
public BrandResult brand;
public VariantResult[] allVariants;
+ public PurchasedByUserCompanyInfo purchasedByUserCompany;
+ public ViewedByUserCompanyInfo viewedByUserCompany;
+ public VariantResult[] filteredVariants;
public static ProductResult create(String productId, Integer rank)
{
return new ProductResult(productId, rank);
@@ -99,6 +100,18 @@ public VariantResult[] getAllVariants()
{
return this.allVariants;
}
+ public PurchasedByUserCompanyInfo getPurchasedByUserCompany()
+ {
+ return this.purchasedByUserCompany;
+ }
+ public ViewedByUserCompanyInfo getViewedByUserCompany()
+ {
+ return this.viewedByUserCompany;
+ }
+ public VariantResult[] getFilteredVariants()
+ {
+ return this.filteredVariants;
+ }
public ProductResult setProductId(String productId)
{
this.productId = productId;
@@ -215,4 +228,33 @@ public ProductResult addToAllVariants(VariantResult allVariant)
}
return this;
}
+ public ProductResult setPurchasedByUserCompany(PurchasedByUserCompanyInfo purchasedByUserCompany)
+ {
+ this.purchasedByUserCompany = purchasedByUserCompany;
+ return this;
+ }
+ public ProductResult setViewedByUserCompany(ViewedByUserCompanyInfo viewedByUserCompany)
+ {
+ this.viewedByUserCompany = viewedByUserCompany;
+ return this;
+ }
+ public ProductResult setFilteredVariants(VariantResult... filteredVariants)
+ {
+ this.filteredVariants = filteredVariants;
+ return this;
+ }
+ public ProductResult addToFilteredVariants(VariantResult filteredVariant)
+ {
+ if (this.filteredVariants == null)
+ {
+ this.filteredVariants = new VariantResult[] { filteredVariant };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.filteredVariants));
+ existingList.add(filteredVariant);
+ this.filteredVariants = existingList.toArray(new VariantResult[0]);
+ }
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductResultDetails.java b/src/src/main/java/com/relewise/client/model/ProductResultDetails.java
index 1e796a3..43b98b1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/ProductResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -43,6 +41,7 @@ public class ProductResultDetails
public MultiCurrency listPrice;
public MultiCurrency salesPrice;
public BrandResultDetails brand;
+ public VariantResultDetails[] filteredVariants;
public static ProductResultDetails create(String productId)
{
return new ProductResultDetails(productId);
@@ -138,6 +137,10 @@ public BrandResultDetails getBrand()
{
return this.brand;
}
+ public VariantResultDetails[] getFilteredVariants()
+ {
+ return this.filteredVariants;
+ }
public ProductResultDetails setProductId(String productId)
{
this.productId = productId;
@@ -294,4 +297,23 @@ public ProductResultDetails setBrand(BrandResultDetails brand)
this.brand = brand;
return this;
}
+ public ProductResultDetails setFilteredVariants(VariantResultDetails... filteredVariants)
+ {
+ this.filteredVariants = filteredVariants;
+ return this;
+ }
+ public ProductResultDetails addToFilteredVariants(VariantResultDetails filteredVariant)
+ {
+ if (this.filteredVariants == null)
+ {
+ this.filteredVariants = new VariantResultDetails[] { filteredVariant };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.filteredVariants));
+ existingList.add(filteredVariant);
+ this.filteredVariants = existingList.toArray(new VariantResultDetails[0]);
+ }
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductSalesPriceFilter.java b/src/src/main/java/com/relewise/client/model/ProductSalesPriceFilter.java
index 00dd495..6336da1 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSalesPriceFilter.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSalesPriceFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -79,4 +77,10 @@ public ProductSalesPriceFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public ProductSalesPriceFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductSalesPriceRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/ProductSalesPriceRelevanceModifier.java
index 951c871..772dab9 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSalesPriceRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSalesPriceRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on the sales price falling within a specific Range
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class ProductSalesPriceRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.ProductSalesPriceRelevanceModifier, Relewise.Client";
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public DoubleRange range;
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency currency;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean negated;
public static ProductSalesPriceRelevanceModifier create(DoubleRange range)
{
@@ -43,12 +46,24 @@ public ProductSalesPriceRelevanceModifier(DoubleRange range)
this.currency = null;
this.negated = false;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on the sales price falling within a specific Range
.
+ * @param range The range of sales prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public static ProductSalesPriceRelevanceModifier create(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
return new ProductSalesPriceRelevanceModifier(range, multiplyWeightBy, currency, negated);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a product must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a product only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on the sales price falling within a specific Range
.
+ * @param range The range of sales prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public ProductSalesPriceRelevanceModifier(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
this.range = range;
@@ -62,37 +77,45 @@ public ProductSalesPriceRelevanceModifier()
this.multiplyWeightBy = 1d;
this.negated = false;
}
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public DoubleRange getRange()
{
return this.range;
}
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency getCurrency()
{
return this.currency;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public ProductSalesPriceRelevanceModifier setRange(DoubleRange range)
{
this.range = range;
return this;
}
+ /** The currency that is used to distinguish the price. */
public ProductSalesPriceRelevanceModifier setCurrency(Currency currency)
{
this.currency = currency;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public ProductSalesPriceRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public ProductSalesPriceRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/ProductSearchRequest.java b/src/src/main/java/com/relewise/client/model/ProductSearchRequest.java
index 6c6d1d3..9584654 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -32,6 +30,7 @@ public class ProductSearchRequest extends PaginatedSearchRequest implements IUse
public @Nullable ProductFacetQuery facets;
public @Nullable ProductSearchSettings settings;
public @Nullable ProductSortBySpecification sorting;
+ public @Nullable RetailMediaQuery retailMedia;
public static ProductSearchRequest create(@Nullable Language language, @Nullable Currency currency, @Nullable SearchIndexSelector indexSelector, User user, String displayedAtLocation, @Nullable String term, Integer skip, Integer take)
{
return new ProductSearchRequest(language, currency, indexSelector, user, displayedAtLocation, term, skip, take);
@@ -80,6 +79,10 @@ public ProductSearchRequest()
{
return this.sorting;
}
+ public @Nullable RetailMediaQuery getRetailMedia()
+ {
+ return this.retailMedia;
+ }
public ProductSearchRequest setTerm(String term)
{
this.term = term;
@@ -100,6 +103,11 @@ public ProductSearchRequest setSorting(ProductSortBySpecification sorting)
this.sorting = sorting;
return this;
}
+ public ProductSearchRequest setRetailMedia(RetailMediaQuery retailMedia)
+ {
+ this.retailMedia = retailMedia;
+ return this;
+ }
@Override
public ProductSearchRequest setSkip(Integer skip)
{
@@ -160,4 +168,11 @@ public ProductSearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductSearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductSearchResponse.java b/src/src/main/java/com/relewise/client/model/ProductSearchResponse.java
index d3cf448..47a9112 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -32,6 +30,7 @@ public class ProductSearchResponse extends PaginatedSearchResponse
public ProductFacetResult facets;
public ProductResult[] recommendations;
public RedirectResult[] redirects;
+ public RetailMediaResult retailMedia;
public static ProductSearchResponse create()
{
return new ProductSearchResponse();
@@ -55,6 +54,10 @@ public RedirectResult[] getRedirects()
{
return this.redirects;
}
+ public RetailMediaResult getRetailMedia()
+ {
+ return this.retailMedia;
+ }
public ProductSearchResponse setResults(ProductResult... results)
{
this.results = results;
@@ -117,6 +120,11 @@ public ProductSearchResponse addToRedirects(RedirectResult redirect)
}
return this;
}
+ public ProductSearchResponse setRetailMedia(RetailMediaResult retailMedia)
+ {
+ this.retailMedia = retailMedia;
+ return this;
+ }
@Override
public ProductSearchResponse setHits(Integer hits)
{
diff --git a/src/src/main/java/com/relewise/client/model/ProductSearchResultConstraint.java b/src/src/main/java/com/relewise/client/model/ProductSearchResultConstraint.java
new file mode 100644
index 0000000..c9783de
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ProductSearchResultConstraint.java
@@ -0,0 +1,31 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ResultMustHaveVariantConstraint.class, name = "Relewise.Client.Requests.Search.Settings.ResultMustHaveVariantConstraint, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class ProductSearchResultConstraint
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/ProductSearchSettings.java b/src/src/main/java/com/relewise/client/model/ProductSearchSettings.java
index 0285e0c..0338ff9 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -35,6 +33,8 @@ public class ProductSearchSettings extends SearchSettings
public RecommendationSettings recommendations;
public @Nullable SelectedBrandPropertiesSettings selectedBrandProperties;
public @Nullable VariantSearchSettings variantSettings;
+ /** Used to define constraints which must be honoured to be a valid results. The difference between this and Filters, is that filters are evaluated per product and variant, constraints could be acting on the result of such filter evaluations or a combination of factors, such as whether the product has any variants which matched the provided filters etc. */
+ public @Nullable ProductSearchResultConstraint resultConstraint;
public static ProductSearchSettings create()
{
return new ProductSearchSettings();
@@ -67,6 +67,11 @@ public RecommendationSettings getRecommendations()
{
return this.variantSettings;
}
+ /** Used to define constraints which must be honoured to be a valid results. The difference between this and Filters, is that filters are evaluated per product and variant, constraints could be acting on the result of such filter evaluations or a combination of factors, such as whether the product has any variants which matched the provided filters etc. */
+ public @Nullable ProductSearchResultConstraint getResultConstraint()
+ {
+ return this.resultConstraint;
+ }
public ProductSearchSettings setSelectedProductProperties(SelectedProductPropertiesSettings selectedProductProperties)
{
this.selectedProductProperties = selectedProductProperties;
@@ -98,4 +103,10 @@ public ProductSearchSettings setVariantSettings(VariantSearchSettings variantSet
this.variantSettings = variantSettings;
return this;
}
+ /** Used to define constraints which must be honoured to be a valid results. The difference between this and Filters, is that filters are evaluated per product and variant, constraints could be acting on the result of such filter evaluations or a combination of factors, such as whether the product has any variants which matched the provided filters etc. */
+ public ProductSearchSettings setResultConstraint(ProductSearchResultConstraint resultConstraint)
+ {
+ this.resultConstraint = resultConstraint;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductSortBySpecification.java b/src/src/main/java/com/relewise/client/model/ProductSortBySpecification.java
index 614edfe..f1b0af6 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSortBySpecification.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSortBySpecification.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductSorting.java b/src/src/main/java/com/relewise/client/model/ProductSorting.java
index dd8afd3..b93925c 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductSortingSorting.java b/src/src/main/java/com/relewise/client/model/ProductSortingSorting.java
index cb56e40..69715ed 100644
--- a/src/src/main/java/com/relewise/client/model/ProductSortingSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductSortingSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductUpdate.java b/src/src/main/java/com/relewise/client/model/ProductUpdate.java
index a6dd9d6..067f428 100644
--- a/src/src/main/java/com/relewise/client/model/ProductUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/ProductUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/ProductUpdateUpdateKind.java
index 19b9ef3..cc6699f 100644
--- a/src/src/main/java/com/relewise/client/model/ProductUpdateUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/ProductUpdateUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductVariant.java b/src/src/main/java/com/relewise/client/model/ProductVariant.java
index 612afbb..57ab7a7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductVariant.java
+++ b/src/src/main/java/com/relewise/client/model/ProductVariant.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSorting.java b/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSorting.java
index 05d190b..4f17491 100644
--- a/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSortingSortableAttribute.java b/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSortingSortableAttribute.java
index 559db78..0ad5d4e 100644
--- a/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSortingSortableAttribute.java
+++ b/src/src/main/java/com/relewise/client/model/ProductVariantAttributeSortingSortableAttribute.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductVariantSpecificationSorting.java b/src/src/main/java/com/relewise/client/model/ProductVariantSpecificationSorting.java
index e886236..c620ac7 100644
--- a/src/src/main/java/com/relewise/client/model/ProductVariantSpecificationSorting.java
+++ b/src/src/main/java/com/relewise/client/model/ProductVariantSpecificationSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ProductView.java b/src/src/main/java/com/relewise/client/model/ProductView.java
index f9ab77f..2356442 100644
--- a/src/src/main/java/com/relewise/client/model/ProductView.java
+++ b/src/src/main/java/com/relewise/client/model/ProductView.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,6 +29,8 @@ public class ProductView extends Trackable implements IUserIdentifier
public @Nullable User user;
public Product product;
public @Nullable ProductVariant variant;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static ProductView create(@Nullable User user, Product product)
{
return new ProductView(user, product);
@@ -67,6 +67,11 @@ public Product getProduct()
{
return this.variant;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public ProductView setUser(User user)
{
this.user = user;
@@ -82,4 +87,10 @@ public ProductView setVariant(ProductVariant variant)
this.variant = variant;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public ProductView setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingContentRequest.java b/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingContentRequest.java
index 608d41d..0fc7dd3 100644
--- a/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingContentRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingContentRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public ProductsViewedAfterViewingContentRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductsViewedAfterViewingContentRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingProductRequest.java b/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingProductRequest.java
index f1bd4c1..74d4cf5 100644
--- a/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingProductRequest.java
+++ b/src/src/main/java/com/relewise/client/model/ProductsViewedAfterViewingProductRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public ProductsViewedAfterViewingProductRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public ProductsViewedAfterViewingProductRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/Promotion.java b/src/src/main/java/com/relewise/client/model/Promotion.java
new file mode 100644
index 0000000..5feaf3e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/Promotion.java
@@ -0,0 +1,51 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ProductPromotion.class, name = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class Promotion
+{
+ public String $type = "";
+ public String name;
+ public @Nullable PromotionLocationCollection locations;
+ public String getName()
+ {
+ return this.name;
+ }
+ public @Nullable PromotionLocationCollection getLocations()
+ {
+ return this.locations;
+ }
+ public Promotion setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ public Promotion setLocations(PromotionLocationCollection locations)
+ {
+ this.locations = locations;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionCollection.java b/src/src/main/java/com/relewise/client/model/PromotionCollection.java
new file mode 100644
index 0000000..fb5f975
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionCollection.java
@@ -0,0 +1,53 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionCollection
+{
+ public ArrayList promotions;
+ public static PromotionCollection create(Promotion... promotions)
+ {
+ return new PromotionCollection(promotions);
+ }
+ public PromotionCollection(Promotion... promotions)
+ {
+ this.promotions = new ArrayList<>(Arrays.asList(promotions));
+ }
+ public PromotionCollection()
+ {
+ }
+ public ArrayList getPromotions()
+ {
+ return this.promotions;
+ }
+ public PromotionCollection setPromotions(Promotion... promotions)
+ {
+ this.promotions = new ArrayList<>(Arrays.asList(promotions));;
+ return this;
+ }
+ public PromotionCollection addToPromotions(Promotion promotions)
+ {
+ if (this.promotions == null)
+ {
+ this.promotions = new ArrayList<>();
+ }
+ this.promotions.add(promotions);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionLocation.java b/src/src/main/java/com/relewise/client/model/PromotionLocation.java
new file mode 100644
index 0000000..8003c3f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionLocation.java
@@ -0,0 +1,65 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionLocation
+{
+ public String key;
+ public @Nullable PromotionLocationPlacementCollection placements;
+ public static PromotionLocation create(String key)
+ {
+ return new PromotionLocation(key);
+ }
+ public PromotionLocation(String key)
+ {
+ this.key = key;
+ this.placements = null;
+ }
+ public static PromotionLocation create(String key, PromotionLocationPlacementCollection placements)
+ {
+ return new PromotionLocation(key, placements);
+ }
+ public PromotionLocation(String key, PromotionLocationPlacementCollection placements)
+ {
+ this.key = key;
+ this.placements = placements;
+ }
+ public PromotionLocation()
+ {
+ this.placements = null;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public @Nullable PromotionLocationPlacementCollection getPlacements()
+ {
+ return this.placements;
+ }
+ public PromotionLocation setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ public PromotionLocation setPlacements(PromotionLocationPlacementCollection placements)
+ {
+ this.placements = placements;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionLocationCollection.java b/src/src/main/java/com/relewise/client/model/PromotionLocationCollection.java
new file mode 100644
index 0000000..8ce574e
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionLocationCollection.java
@@ -0,0 +1,53 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionLocationCollection
+{
+ public ArrayList items;
+ public static PromotionLocationCollection create(PromotionLocation... placements)
+ {
+ return new PromotionLocationCollection(placements);
+ }
+ public PromotionLocationCollection(PromotionLocation... placements)
+ {
+ this.items = new ArrayList<>(Arrays.asList(placements));
+ }
+ public PromotionLocationCollection()
+ {
+ }
+ public ArrayList getItems()
+ {
+ return this.items;
+ }
+ public PromotionLocationCollection setItems(PromotionLocation... items)
+ {
+ this.items = new ArrayList<>(Arrays.asList(items));;
+ return this;
+ }
+ public PromotionLocationCollection addToItems(PromotionLocation items)
+ {
+ if (this.items == null)
+ {
+ this.items = new ArrayList<>();
+ }
+ this.items.add(items);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionLocationPlacement.java b/src/src/main/java/com/relewise/client/model/PromotionLocationPlacement.java
new file mode 100644
index 0000000..30f2879
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionLocationPlacement.java
@@ -0,0 +1,48 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Represents a placement within a location in the system where promotions can be shown */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionLocationPlacement
+{
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public String key;
+ public static PromotionLocationPlacement create(String key)
+ {
+ return new PromotionLocationPlacement(key);
+ }
+ public PromotionLocationPlacement(String key)
+ {
+ this.key = key;
+ }
+ public PromotionLocationPlacement()
+ {
+ }
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public String getKey()
+ {
+ return this.key;
+ }
+ /** A key which is automatically computed based on the name. This value gets created the first time the placement is saved and cannot be modified in the future. Manually assigning a value to this will have no effect. */
+ public PromotionLocationPlacement setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionLocationPlacementCollection.java b/src/src/main/java/com/relewise/client/model/PromotionLocationPlacementCollection.java
new file mode 100644
index 0000000..3e98998
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionLocationPlacementCollection.java
@@ -0,0 +1,53 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionLocationPlacementCollection
+{
+ public ArrayList items;
+ public static PromotionLocationPlacementCollection create(PromotionLocationPlacement... placements)
+ {
+ return new PromotionLocationPlacementCollection(placements);
+ }
+ public PromotionLocationPlacementCollection(PromotionLocationPlacement... placements)
+ {
+ this.items = new ArrayList<>(Arrays.asList(placements));
+ }
+ public PromotionLocationPlacementCollection()
+ {
+ }
+ public ArrayList getItems()
+ {
+ return this.items;
+ }
+ public PromotionLocationPlacementCollection setItems(PromotionLocationPlacement... items)
+ {
+ this.items = new ArrayList<>(Arrays.asList(items));;
+ return this;
+ }
+ public PromotionLocationPlacementCollection addToItems(PromotionLocationPlacement items)
+ {
+ if (this.items == null)
+ {
+ this.items = new ArrayList<>();
+ }
+ this.items.add(items);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionSpecification.java b/src/src/main/java/com/relewise/client/model/PromotionSpecification.java
new file mode 100644
index 0000000..bef3b22
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionSpecification.java
@@ -0,0 +1,31 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ProductPromotionSpecification.class, name = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion+Specification, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class PromotionSpecification
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionSpecificationCollection.java b/src/src/main/java/com/relewise/client/model/PromotionSpecificationCollection.java
new file mode 100644
index 0000000..e0694f5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionSpecificationCollection.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionSpecificationCollection
+{
+ public @Nullable ProductPromotionSpecification productPromotion;
+ public static PromotionSpecificationCollection create()
+ {
+ return new PromotionSpecificationCollection();
+ }
+ public PromotionSpecificationCollection()
+ {
+ }
+ public @Nullable ProductPromotionSpecification getProductPromotion()
+ {
+ return this.productPromotion;
+ }
+ public PromotionSpecificationCollection setProductPromotion(ProductPromotionSpecification productPromotion)
+ {
+ this.productPromotion = productPromotion;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariation.java b/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariation.java
new file mode 100644
index 0000000..cf0d9a2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariation.java
@@ -0,0 +1,31 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ProductPromotionSpecificationVariation.class, name = "Relewise.Client.DataTypes.RetailMedia.ProductPromotion+SpecificationVariation, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class PromotionSpecificationVariation
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariationCollection.java b/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariationCollection.java
new file mode 100644
index 0000000..3892459
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PromotionSpecificationVariationCollection.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PromotionSpecificationVariationCollection
+{
+ public @Nullable ProductPromotionSpecificationVariation productPromotion;
+ public static PromotionSpecificationVariationCollection create()
+ {
+ return new PromotionSpecificationVariationCollection();
+ }
+ public PromotionSpecificationVariationCollection()
+ {
+ }
+ public @Nullable ProductPromotionSpecificationVariation getProductPromotion()
+ {
+ return this.productPromotion;
+ }
+ public PromotionSpecificationVariationCollection setProductPromotion(ProductPromotionSpecificationVariation productPromotion)
+ {
+ this.productPromotion = productPromotion;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PurchasedByUserCompanyInfo.java b/src/src/main/java/com/relewise/client/model/PurchasedByUserCompanyInfo.java
new file mode 100644
index 0000000..2eb5d4f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/PurchasedByUserCompanyInfo.java
@@ -0,0 +1,65 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class PurchasedByUserCompanyInfo
+{
+ public OffsetDateTime mostRecentPurchasedUtc;
+ public Long totalNumberOfTimesPurchased;
+ public PurchasedByUserCompanyInfo purchasedByParentCompany;
+ public static PurchasedByUserCompanyInfo create(OffsetDateTime mostRecentPurchasedUtc, Long totalNumberOfTimesPurchased)
+ {
+ return new PurchasedByUserCompanyInfo(mostRecentPurchasedUtc, totalNumberOfTimesPurchased);
+ }
+ public PurchasedByUserCompanyInfo(OffsetDateTime mostRecentPurchasedUtc, Long totalNumberOfTimesPurchased)
+ {
+ this.mostRecentPurchasedUtc = mostRecentPurchasedUtc;
+ this.totalNumberOfTimesPurchased = totalNumberOfTimesPurchased;
+ }
+ public PurchasedByUserCompanyInfo()
+ {
+ }
+ public OffsetDateTime getMostRecentPurchasedUtc()
+ {
+ return this.mostRecentPurchasedUtc;
+ }
+ public Long getTotalNumberOfTimesPurchased()
+ {
+ return this.totalNumberOfTimesPurchased;
+ }
+ public PurchasedByUserCompanyInfo getPurchasedByParentCompany()
+ {
+ return this.purchasedByParentCompany;
+ }
+ public PurchasedByUserCompanyInfo setMostRecentPurchasedUtc(OffsetDateTime mostRecentPurchasedUtc)
+ {
+ this.mostRecentPurchasedUtc = mostRecentPurchasedUtc;
+ return this;
+ }
+ public PurchasedByUserCompanyInfo setTotalNumberOfTimesPurchased(Long totalNumberOfTimesPurchased)
+ {
+ this.totalNumberOfTimesPurchased = totalNumberOfTimesPurchased;
+ return this;
+ }
+ public PurchasedByUserCompanyInfo setPurchasedByParentCompany(PurchasedByUserCompanyInfo purchasedByParentCompany)
+ {
+ this.purchasedByParentCompany = purchasedByParentCompany;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/PurchasedByUserInfo.java b/src/src/main/java/com/relewise/client/model/PurchasedByUserInfo.java
index dfda108..5a9af6b 100644
--- a/src/src/main/java/com/relewise/client/model/PurchasedByUserInfo.java
+++ b/src/src/main/java/com/relewise/client/model/PurchasedByUserInfo.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/PurchasedWithCurrentCartRequest.java b/src/src/main/java/com/relewise/client/model/PurchasedWithCurrentCartRequest.java
index 102bb84..60724e7 100644
--- a/src/src/main/java/com/relewise/client/model/PurchasedWithCurrentCartRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PurchasedWithCurrentCartRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -84,4 +82,11 @@ public PurchasedWithCurrentCartRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PurchasedWithCurrentCartRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PurchasedWithMultipleProductsRequest.java b/src/src/main/java/com/relewise/client/model/PurchasedWithMultipleProductsRequest.java
index 62c06c8..632a7b7 100644
--- a/src/src/main/java/com/relewise/client/model/PurchasedWithMultipleProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PurchasedWithMultipleProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -108,4 +106,11 @@ public PurchasedWithMultipleProductsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PurchasedWithMultipleProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/PurchasedWithProductRequest.java b/src/src/main/java/com/relewise/client/model/PurchasedWithProductRequest.java
index 3622573..0ced951 100644
--- a/src/src/main/java/com/relewise/client/model/PurchasedWithProductRequest.java
+++ b/src/src/main/java/com/relewise/client/model/PurchasedWithProductRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public PurchasedWithProductRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public PurchasedWithProductRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/RecentlyViewedByUserRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/RecentlyViewedByUserRelevanceModifier.java
new file mode 100644
index 0000000..98c1061
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RecentlyViewedByUserRelevanceModifier.java
@@ -0,0 +1,92 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class RecentlyViewedByUserRelevanceModifier extends RelevanceModifier
+{
+ public String $type = "";
+ /** The start of the time period in which an entity will be considered relevant to the user if viewed previously by them. */
+ public @Nullable OffsetDateTime sinceUtc;
+ /** The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc
). */
+ public Double ifPreviouslyViewedByUserMultiplyWeightBy;
+ /** The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc
). */
+ public Double ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ /** The minutes since in which an entity will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer sinceMinutesAgo;
+ /** The start of the time period in which an entity will be considered relevant to the user if viewed previously by them. */
+ public @Nullable OffsetDateTime getSinceUtc()
+ {
+ return this.sinceUtc;
+ }
+ /** The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc
). */
+ public Double getIfPreviouslyViewedByUserMultiplyWeightBy()
+ {
+ return this.ifPreviouslyViewedByUserMultiplyWeightBy;
+ }
+ /** The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc
). */
+ public Double getIfNotPreviouslyViewedByUserMultiplyWeightBy()
+ {
+ return this.ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ }
+ /** The minutes since in which an entity will be considered relevant to the user if viewed previously by them. */
+ public @Nullable Integer getSinceMinutesAgo()
+ {
+ return this.sinceMinutesAgo;
+ }
+ /** The start of the time period in which an entity will be considered relevant to the user if viewed previously by them. */
+ public RecentlyViewedByUserRelevanceModifier setSinceUtc(@Nullable OffsetDateTime sinceUtc)
+ {
+ this.sinceUtc = sinceUtc;
+ return this;
+ }
+ /** The weight that the entity will be multiplied with if it has been viewed in the past by the user (since SinceUtc
). */
+ public RecentlyViewedByUserRelevanceModifier setIfPreviouslyViewedByUserMultiplyWeightBy(Double ifPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifPreviouslyViewedByUserMultiplyWeightBy = ifPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ /** The weight that the entity will be multiplied with if it has not been viewed in the past by the user (since SinceUtc
). */
+ public RecentlyViewedByUserRelevanceModifier setIfNotPreviouslyViewedByUserMultiplyWeightBy(Double ifNotPreviouslyViewedByUserMultiplyWeightBy)
+ {
+ this.ifNotPreviouslyViewedByUserMultiplyWeightBy = ifNotPreviouslyViewedByUserMultiplyWeightBy;
+ return this;
+ }
+ /** The minutes since in which an entity will be considered relevant to the user if viewed previously by them. */
+ public RecentlyViewedByUserRelevanceModifier setSinceMinutesAgo(@Nullable Integer sinceMinutesAgo)
+ {
+ this.sinceMinutesAgo = sinceMinutesAgo;
+ return this;
+ }
+ @Override
+ public RecentlyViewedByUserRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RecentlyViewedProductsRequest.java b/src/src/main/java/com/relewise/client/model/RecentlyViewedProductsRequest.java
index fa37e71..9f126d6 100644
--- a/src/src/main/java/com/relewise/client/model/RecentlyViewedProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/RecentlyViewedProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -84,4 +82,11 @@ public RecentlyViewedProductsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public RecentlyViewedProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/RecommendPopularSearchTermSettings.java b/src/src/main/java/com/relewise/client/model/RecommendPopularSearchTermSettings.java
index cfa63f2..51ad4d2 100644
--- a/src/src/main/java/com/relewise/client/model/RecommendPopularSearchTermSettings.java
+++ b/src/src/main/java/com/relewise/client/model/RecommendPopularSearchTermSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RecommendationRequest.java b/src/src/main/java/com/relewise/client/model/RecommendationRequest.java
index 29cea34..6b09883 100644
--- a/src/src/main/java/com/relewise/client/model/RecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/RecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -56,16 +54,18 @@ public abstract class RecommendationRequest extends LicensedRequest implements I
{
public String $type = "";
public @Nullable Language language;
- public User user;
+ public @Nullable User user;
public RelevanceModifierCollection relevanceModifiers;
public FilterCollection filters;
public String displayedAtLocationType;
public @Nullable Currency currency;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public @Nullable Language getLanguage()
{
return this.language;
}
- public User getUser()
+ public @Nullable User getUser()
{
return this.user;
}
@@ -85,6 +85,11 @@ public String getDisplayedAtLocationType()
{
return this.currency;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public RecommendationRequest setLanguage(Language language)
{
this.language = language;
@@ -115,4 +120,10 @@ public RecommendationRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public RecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/RecommendationResponse.java b/src/src/main/java/com/relewise/client/model/RecommendationResponse.java
index 940bf19..7643e0c 100644
--- a/src/src/main/java/com/relewise/client/model/RecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/RecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RecommendationSettings.java b/src/src/main/java/com/relewise/client/model/RecommendationSettings.java
index f2a1fc7..26b3594 100644
--- a/src/src/main/java/com/relewise/client/model/RecommendationSettings.java
+++ b/src/src/main/java/com/relewise/client/model/RecommendationSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RecommendationTypeCollection.java b/src/src/main/java/com/relewise/client/model/RecommendationTypeCollection.java
index 9d1101f..eb1d5ff 100644
--- a/src/src/main/java/com/relewise/client/model/RecommendationTypeCollection.java
+++ b/src/src/main/java/com/relewise/client/model/RecommendationTypeCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectResult.java b/src/src/main/java/com/relewise/client/model/RedirectResult.java
index 30e8196..a8d9d5d 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectResult.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRule.java b/src/src/main/java/com/relewise/client/model/RedirectRule.java
index 47dd52f..9bef029 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRule.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,7 +25,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class RedirectRule extends SearchRule
{
- public String $type = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.RedirectRule, Relewise.Client";
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client";
public SearchTermCondition condition;
public @Nullable String destination;
public @Nullable HashMap data;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesRequest.java
index 279fa14..55142c7 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class RedirectRuleSaveSearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesResponse.java
index 6f57788..2d93e19 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRuleSaveSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/RedirectRuleSearchRulesResponse.java
index 6598a2a..e14dc6b 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRuleSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRuleSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class RedirectRuleSearchRulesResponse extends TimedResponse
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRulesRequest.java b/src/src/main/java/com/relewise/client/model/RedirectRulesRequest.java
index 1578f7b..fd894d5 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBy.java
index 6417d74..f82dcdd 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBy.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySearchRulesRequest.java
index 140a01d..1e30e7e 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class RedirectRulesRequestSortBySearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySorting.java
index cecf63c..82c4870 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySorting.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRulesRequestSortBySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RedirectRulesResponse.java b/src/src/main/java/com/relewise/client/model/RedirectRulesResponse.java
index 9a76d3d..c7ce6ab 100644
--- a/src/src/main/java/com/relewise/client/model/RedirectRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/RedirectRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RelativeDateTimeCondition.java b/src/src/main/java/com/relewise/client/model/RelativeDateTimeCondition.java
new file mode 100644
index 0000000..7a689f9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RelativeDateTimeCondition.java
@@ -0,0 +1,116 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a ValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = RelativeDateTimeCondition.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RelativeDateTimeCondition extends ValueCondition
+{
+ public String $type = "Relewise.Client.Requests.Conditions.RelativeDateTimeCondition, Relewise.Client";
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public RelativeTimeComparison comparison;
+ /** Defines the time unit that the compared value is defined in. */
+ public TimeUnit unit;
+ /** 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. */
+ public Long currentTimeOffset;
+ public static RelativeDateTimeCondition create(RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ return new RelativeDateTimeCondition(comparison, unit);
+ }
+ public RelativeDateTimeCondition(RelativeTimeComparison comparison, TimeUnit unit)
+ {
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = 0L;
+ this.negated = false;
+ }
+ /**
+ * Creates a ValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public static RelativeDateTimeCondition create(RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ return new RelativeDateTimeCondition(comparison, unit, currentTimeOffset, negated);
+ }
+ /**
+ * Creates a ValueCondition
that can check if an object value interpreted as a timestamp is before or after the current time.
+ * @param comparison Defines whether the compared value should be before or after the current time for the condition to evaluate true.
+ * @param unit Defines the time unit that the compared value is defined in.
+ * @param currentTimeOffset 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.
+ * @param negated Whether the condition should be negated / inverted
+ */
+ public RelativeDateTimeCondition(RelativeTimeComparison comparison, TimeUnit unit, Long currentTimeOffset, Boolean negated)
+ {
+ this.comparison = comparison;
+ this.unit = unit;
+ this.currentTimeOffset = currentTimeOffset;
+ this.negated = negated;
+ }
+ public RelativeDateTimeCondition()
+ {
+ this.currentTimeOffset = 0L;
+ this.negated = false;
+ }
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public RelativeTimeComparison getComparison()
+ {
+ return this.comparison;
+ }
+ /** Defines the time unit that the compared value is defined in. */
+ public TimeUnit getUnit()
+ {
+ return this.unit;
+ }
+ /** 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. */
+ public Long getCurrentTimeOffset()
+ {
+ return this.currentTimeOffset;
+ }
+ /** Defines whether the compared value should be before or after the current time for the condition to evaluate true. */
+ public RelativeDateTimeCondition setComparison(RelativeTimeComparison comparison)
+ {
+ this.comparison = comparison;
+ return this;
+ }
+ /** Defines the time unit that the compared value is defined in. */
+ public RelativeDateTimeCondition setUnit(TimeUnit 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. */
+ public RelativeDateTimeCondition setCurrentTimeOffset(Long currentTimeOffset)
+ {
+ this.currentTimeOffset = currentTimeOffset;
+ return this;
+ }
+ @Override
+ public RelativeDateTimeCondition setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RelativeTimeComparison.java b/src/src/main/java/com/relewise/client/model/RelativeTimeComparison.java
new file mode 100644
index 0000000..f1607ee
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RelativeTimeComparison.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum RelativeTimeComparison
+{
+ Before {
+ public String toString() {
+ return "Before";
+ }
+ },
+ After {
+ public String toString() {
+ return "After";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/RelevanceModifier.java b/src/src/main/java/com/relewise/client/model/RelevanceModifier.java
index aaaca00..8cea958 100644
--- a/src/src/main/java/com/relewise/client/model/RelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/RelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -40,16 +38,30 @@
@JsonSubTypes.Type(value = VariantListPriceRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.VariantListPriceRelevanceModifier, Relewise.Client"),
@JsonSubTypes.Type(value = VariantSalesPriceRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.VariantSalesPriceRelevanceModifier, Relewise.Client"),
@JsonSubTypes.Type(value = UserFavoriteProductRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.UserFavoriteProductRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = VariantIdRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.VariantIdRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyPurchasedByCompanyRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyPurchasedByCompanyRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByCompanyRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByCompanyRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyPurchasedByUserCompanyRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyPurchasedByUserCompanyRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductRecentlyViewedByUserCompanyRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductRecentlyViewedByUserCompanyRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryRecentlyViewedByUserRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryRecentlyViewedByUserRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentDataRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductCategoryDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ProductCategoryDataRelevanceModifier, Relewise.Client"),
+ @JsonSubTypes.Type(value = ContentCategoryDataRelevanceModifier.class, name = "Relewise.Client.Requests.RelevanceModifiers.ContentCategoryDataRelevanceModifier, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class RelevanceModifier
{
public String $type = "";
+ /** Filters which entities this relevance modifier can apply to. */
public FilterCollection filters;
+ /** Filters which entities this relevance modifier can apply to. */
public FilterCollection getFilters()
{
return this.filters;
}
+ /** Filters which entities this relevance modifier can apply to. */
public RelevanceModifier setFilters(FilterCollection filters)
{
this.filters = filters;
diff --git a/src/src/main/java/com/relewise/client/model/RelevanceModifierCollection.java b/src/src/main/java/com/relewise/client/model/RelevanceModifierCollection.java
index 5f426de..036044e 100644
--- a/src/src/main/java/com/relewise/client/model/RelevanceModifierCollection.java
+++ b/src/src/main/java/com/relewise/client/model/RelevanceModifierCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,14 +17,24 @@
import java.util.Set;
import java.util.HashSet;
+/** a collection that contains multiple RelevanceModifier
s in its inner list Items
. */
@JsonIgnoreProperties(ignoreUnknown = true)
public class RelevanceModifierCollection
{
+ /** The items that the collection holds. */
public @Nullable ArrayList items;
+ /**
+ * Creates a collection that contains multiple RelevanceModifier
s in its inner list Items
.
+ * @param relevanceModifiers The items that the collection holds.
+ */
public static RelevanceModifierCollection create(RelevanceModifier... relevanceModifiers)
{
return new RelevanceModifierCollection(relevanceModifiers);
}
+ /**
+ * Creates a collection that contains multiple RelevanceModifier
s in its inner list Items
.
+ * @param relevanceModifiers The items that the collection holds.
+ */
public RelevanceModifierCollection(RelevanceModifier... relevanceModifiers)
{
this.items = new ArrayList<>(Arrays.asList(relevanceModifiers));
@@ -34,15 +42,18 @@ public RelevanceModifierCollection(RelevanceModifier... relevanceModifiers)
public RelevanceModifierCollection()
{
}
+ /** The items that the collection holds. */
public @Nullable ArrayList getItems()
{
return this.items;
}
+ /** The items that the collection holds. */
public RelevanceModifierCollection setItems(RelevanceModifier... items)
{
this.items = new ArrayList<>(Arrays.asList(items));;
return this;
}
+ /** The items that the collection holds. */
public RelevanceModifierCollection addToItems(RelevanceModifier items)
{
if (this.items == null)
diff --git a/src/src/main/java/com/relewise/client/model/RequestConfiguration.java b/src/src/main/java/com/relewise/client/model/RequestConfiguration.java
index 0f6afc9..9bc1aba 100644
--- a/src/src/main/java/com/relewise/client/model/RequestConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/RequestConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RequestConfigurationPrioritization.java b/src/src/main/java/com/relewise/client/model/RequestConfigurationPrioritization.java
index ea7d297..bab77e7 100644
--- a/src/src/main/java/com/relewise/client/model/RequestConfigurationPrioritization.java
+++ b/src/src/main/java/com/relewise/client/model/RequestConfigurationPrioritization.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/RequestContextFilter.java b/src/src/main/java/com/relewise/client/model/RequestContextFilter.java
index a43c5cc..d9bce5b 100644
--- a/src/src/main/java/com/relewise/client/model/RequestContextFilter.java
+++ b/src/src/main/java/com/relewise/client/model/RequestContextFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,6 +25,7 @@ public class RequestContextFilter
public ArrayList locations;
public ArrayList languages;
public ArrayList currencies;
+ public RequestFilterCriteria filters;
public static RequestContextFilter create()
{
return new RequestContextFilter();
@@ -54,6 +53,10 @@ public ArrayList getCurrencies()
{
return this.currencies;
}
+ public RequestFilterCriteria getFilters()
+ {
+ return this.filters;
+ }
public RequestContextFilter setRecommendations(RecommendationTypeCollection recommendations)
{
this.recommendations = recommendations;
@@ -106,4 +109,9 @@ public RequestContextFilter addToCurrencies(Currency currencies)
this.currencies.add(currencies);
return this;
}
+ public RequestContextFilter setFilters(RequestFilterCriteria filters)
+ {
+ this.filters = filters;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/RequestFilterCriteria.java b/src/src/main/java/com/relewise/client/model/RequestFilterCriteria.java
new file mode 100644
index 0000000..e6b5532
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RequestFilterCriteria.java
@@ -0,0 +1,60 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RequestFilterCriteria
+{
+ public FilterCollection includes;
+ public FilterCollection excludes;
+ public @Nullable IntegerRange count;
+ public static RequestFilterCriteria create()
+ {
+ return new RequestFilterCriteria();
+ }
+ public RequestFilterCriteria()
+ {
+ }
+ public FilterCollection getIncludes()
+ {
+ return this.includes;
+ }
+ public FilterCollection getExcludes()
+ {
+ return this.excludes;
+ }
+ public @Nullable IntegerRange getCount()
+ {
+ return this.count;
+ }
+ public RequestFilterCriteria setIncludes(FilterCollection includes)
+ {
+ this.includes = includes;
+ return this;
+ }
+ public RequestFilterCriteria setExcludes(FilterCollection excludes)
+ {
+ this.excludes = excludes;
+ return this;
+ }
+ public RequestFilterCriteria setCount(IntegerRange count)
+ {
+ this.count = count;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ResultMustHaveVariantConstraint.java b/src/src/main/java/com/relewise/client/model/ResultMustHaveVariantConstraint.java
new file mode 100644
index 0000000..7fb7af9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ResultMustHaveVariantConstraint.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Used to instruct the search engine that results which does not have any variants, must not be returned. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ResultMustHaveVariantConstraint.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ResultMustHaveVariantConstraint extends ProductSearchResultConstraint
+{
+ public String $type = "Relewise.Client.Requests.Search.Settings.ResultMustHaveVariantConstraint, Relewise.Client";
+ /** Used to instruct the search engine that products which does not have any variants, will be returned anyway. */
+ public Boolean exceptWhenProductHasNoVariants;
+ public static ResultMustHaveVariantConstraint create()
+ {
+ return new ResultMustHaveVariantConstraint();
+ }
+ public ResultMustHaveVariantConstraint()
+ {
+ }
+ /** Used to instruct the search engine that products which does not have any variants, will be returned anyway. */
+ public Boolean getExceptWhenProductHasNoVariants()
+ {
+ return this.exceptWhenProductHasNoVariants;
+ }
+ /** Used to instruct the search engine that products which does not have any variants, will be returned anyway. */
+ public ResultMustHaveVariantConstraint setExceptWhenProductHasNoVariants(Boolean exceptWhenProductHasNoVariants)
+ {
+ this.exceptWhenProductHasNoVariants = exceptWhenProductHasNoVariants;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaEntity.java b/src/src/main/java/com/relewise/client/model/RetailMediaEntity.java
new file mode 100644
index 0000000..ebb3d9a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaEntity.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class RetailMediaEntity
+{
+ public String $type = "";
+ public @Nullable UUID id;
+ public @Nullable UUID getId()
+ {
+ return this.id;
+ }
+ public RetailMediaEntity setId(@Nullable UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaQuery.java b/src/src/main/java/com/relewise/client/model/RetailMediaQuery.java
new file mode 100644
index 0000000..2d30427
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaQuery.java
@@ -0,0 +1,47 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaQuery
+{
+ /** Defines the location (f.e. 'Home Page'), placements (f.e. 'main zone' and 'power action') for specific Variation
(f.e. 'desktop'). */
+ public RetailMediaQueryLocationSelector location;
+ public static RetailMediaQuery create(RetailMediaQueryLocationSelector location)
+ {
+ return new RetailMediaQuery(location);
+ }
+ public RetailMediaQuery(RetailMediaQueryLocationSelector location)
+ {
+ this.location = location;
+ }
+ public RetailMediaQuery()
+ {
+ }
+ /** Defines the location (f.e. 'Home Page'), placements (f.e. 'main zone' and 'power action') for specific Variation
(f.e. 'desktop'). */
+ public RetailMediaQueryLocationSelector getLocation()
+ {
+ return this.location;
+ }
+ /** Defines the location (f.e. 'Home Page'), placements (f.e. 'main zone' and 'power action') for specific Variation
(f.e. 'desktop'). */
+ public RetailMediaQuery setLocation(RetailMediaQueryLocationSelector location)
+ {
+ this.location = location;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaQueryLocationSelector.java b/src/src/main/java/com/relewise/client/model/RetailMediaQueryLocationSelector.java
new file mode 100644
index 0000000..192f946
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaQueryLocationSelector.java
@@ -0,0 +1,88 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Defines the location (f.e. 'Home Page'), placements (f.e. 'main zone' and 'power action') for specific Variation
(f.e. 'desktop'). */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaQueryLocationSelector
+{
+ public String key;
+ /** The variation to retrieve the retail media content for, e.g. "Desktop", "Mobile", "Tablet" etc. */
+ public RetailMediaQueryVariationSelector variation;
+ /** The placements on the specified location. */
+ public RetailMediaQueryPlacementSelector[] placements;
+ public static RetailMediaQueryLocationSelector create(String key, RetailMediaQueryVariationSelector variation, RetailMediaQueryPlacementSelector... placements)
+ {
+ return new RetailMediaQueryLocationSelector(key, variation, placements);
+ }
+ public RetailMediaQueryLocationSelector(String key, RetailMediaQueryVariationSelector variation, RetailMediaQueryPlacementSelector... placements)
+ {
+ this.key = key;
+ this.variation = variation;
+ this.placements = placements;
+ }
+ public RetailMediaQueryLocationSelector()
+ {
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ /** The variation to retrieve the retail media content for, e.g. "Desktop", "Mobile", "Tablet" etc. */
+ public RetailMediaQueryVariationSelector getVariation()
+ {
+ return this.variation;
+ }
+ /** The placements on the specified location. */
+ public RetailMediaQueryPlacementSelector[] getPlacements()
+ {
+ return this.placements;
+ }
+ public RetailMediaQueryLocationSelector setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ /** The variation to retrieve the retail media content for, e.g. "Desktop", "Mobile", "Tablet" etc. */
+ public RetailMediaQueryLocationSelector setVariation(RetailMediaQueryVariationSelector variation)
+ {
+ this.variation = variation;
+ return this;
+ }
+ /** The placements on the specified location. */
+ public RetailMediaQueryLocationSelector setPlacements(RetailMediaQueryPlacementSelector... placements)
+ {
+ this.placements = placements;
+ return this;
+ }
+ /** The placements on the specified location. */
+ public RetailMediaQueryLocationSelector addToPlacements(RetailMediaQueryPlacementSelector placement)
+ {
+ if (this.placements == null)
+ {
+ this.placements = new RetailMediaQueryPlacementSelector[] { placement };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.placements));
+ existingList.add(placement);
+ this.placements = existingList.toArray(new RetailMediaQueryPlacementSelector[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaQueryPlacementSelector.java b/src/src/main/java/com/relewise/client/model/RetailMediaQueryPlacementSelector.java
new file mode 100644
index 0000000..f9088a8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaQueryPlacementSelector.java
@@ -0,0 +1,45 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** Defines a placement (f.e. 'main zone', or 'power action') to locate promotions for. */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaQueryPlacementSelector
+{
+ public String key;
+ public static RetailMediaQueryPlacementSelector create(String key)
+ {
+ return new RetailMediaQueryPlacementSelector(key);
+ }
+ public RetailMediaQueryPlacementSelector(String key)
+ {
+ this.key = key;
+ }
+ public RetailMediaQueryPlacementSelector()
+ {
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public RetailMediaQueryPlacementSelector setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaQueryVariationSelector.java b/src/src/main/java/com/relewise/client/model/RetailMediaQueryVariationSelector.java
new file mode 100644
index 0000000..b5bbbcc
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaQueryVariationSelector.java
@@ -0,0 +1,45 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** The variation to retrieve the retail media content for, e.g. "Desktop", "Mobile", "Tablet" etc. */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaQueryVariationSelector
+{
+ public String key;
+ public static RetailMediaQueryVariationSelector create(String key)
+ {
+ return new RetailMediaQueryVariationSelector(key);
+ }
+ public RetailMediaQueryVariationSelector(String key)
+ {
+ this.key = key;
+ }
+ public RetailMediaQueryVariationSelector()
+ {
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public RetailMediaQueryVariationSelector setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaResult.java b/src/src/main/java/com/relewise/client/model/RetailMediaResult.java
new file mode 100644
index 0000000..807deae
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaResult.java
@@ -0,0 +1,49 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaResult
+{
+ public @Nullable HashMap placements;
+ public static RetailMediaResult create()
+ {
+ return new RetailMediaResult();
+ }
+ public RetailMediaResult()
+ {
+ }
+ public @Nullable HashMap getPlacements()
+ {
+ return this.placements;
+ }
+ public RetailMediaResult addToPlacements(String key, RetailMediaResultPlacement value)
+ {
+ if (this.placements == null)
+ {
+ this.placements = new HashMap<>();
+ }
+ this.placements.put(key, value);
+ return this;
+ }
+ public RetailMediaResult setPlacements(HashMap placements)
+ {
+ this.placements = placements;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacement.java b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacement.java
new file mode 100644
index 0000000..6d7dfe3
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacement.java
@@ -0,0 +1,54 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaResultPlacement
+{
+ public @Nullable RetailMediaResultPlacementResultEntity[] results;
+ public static RetailMediaResultPlacement create()
+ {
+ return new RetailMediaResultPlacement();
+ }
+ public RetailMediaResultPlacement()
+ {
+ }
+ public @Nullable RetailMediaResultPlacementResultEntity[] getResults()
+ {
+ return this.results;
+ }
+ public RetailMediaResultPlacement setResults(RetailMediaResultPlacementResultEntity... results)
+ {
+ this.results = results;
+ return this;
+ }
+ public RetailMediaResultPlacement addToResults(RetailMediaResultPlacementResultEntity result)
+ {
+ if (this.results == null)
+ {
+ this.results = new RetailMediaResultPlacementResultEntity[] { result };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.results));
+ existingList.add(result);
+ this.results = existingList.toArray(new RetailMediaResultPlacementResultEntity[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntity.java b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntity.java
new file mode 100644
index 0000000..12c3333
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntity.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaResultPlacementResultEntity
+{
+ public @Nullable RetailMediaResultPlacementResultEntityProduct promotedProduct;
+ public static RetailMediaResultPlacementResultEntity create()
+ {
+ return new RetailMediaResultPlacementResultEntity();
+ }
+ public RetailMediaResultPlacementResultEntity()
+ {
+ }
+ public @Nullable RetailMediaResultPlacementResultEntityProduct getPromotedProduct()
+ {
+ return this.promotedProduct;
+ }
+ public RetailMediaResultPlacementResultEntity setPromotedProduct(RetailMediaResultPlacementResultEntityProduct promotedProduct)
+ {
+ this.promotedProduct = promotedProduct;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntityProduct.java b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntityProduct.java
new file mode 100644
index 0000000..8768bf4
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/RetailMediaResultPlacementResultEntityProduct.java
@@ -0,0 +1,40 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class RetailMediaResultPlacementResultEntityProduct
+{
+ public ProductResult result;
+ public static RetailMediaResultPlacementResultEntityProduct create()
+ {
+ return new RetailMediaResultPlacementResultEntityProduct();
+ }
+ public RetailMediaResultPlacementResultEntityProduct()
+ {
+ }
+ public ProductResult getResult()
+ {
+ return this.result;
+ }
+ public RetailMediaResultPlacementResultEntityProduct setResult(ProductResult result)
+ {
+ this.result = result;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveAdvertisersRequest.java b/src/src/main/java/com/relewise/client/model/SaveAdvertisersRequest.java
new file mode 100644
index 0000000..46ed60f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveAdvertisersRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveAdvertisersRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveAdvertisersRequest extends AdvertiserSaveEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.SaveAdvertisersRequest, Relewise.Client";
+ public static SaveAdvertisersRequest create(Advertiser[] advertisers, String modifiedBy)
+ {
+ return new SaveAdvertisersRequest(advertisers, modifiedBy);
+ }
+ public SaveAdvertisersRequest(Advertiser[] advertisers, String modifiedBy)
+ {
+ this.entities = advertisers;
+ this.modifiedBy = modifiedBy;
+ }
+ public SaveAdvertisersRequest()
+ {
+ }
+ @Override
+ public SaveAdvertisersRequest setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveAdvertisersRequest addToEntities(Advertiser entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Advertiser[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Advertiser[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveAdvertisersRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveAdvertisersResponse.java b/src/src/main/java/com/relewise/client/model/SaveAdvertisersResponse.java
new file mode 100644
index 0000000..ff85fdc
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveAdvertisersResponse.java
@@ -0,0 +1,66 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveAdvertisersResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveAdvertisersResponse extends AdvertiserSaveEntitiesResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.SaveAdvertisersResponse, Relewise.Client";
+ public static SaveAdvertisersResponse create(Advertiser... advertisers)
+ {
+ return new SaveAdvertisersResponse(advertisers);
+ }
+ public SaveAdvertisersResponse(Advertiser... advertisers)
+ {
+ this.entities = advertisers;
+ }
+ public SaveAdvertisersResponse()
+ {
+ }
+ @Override
+ public SaveAdvertisersResponse setEntities(Advertiser... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveAdvertisersResponse addToEntities(Advertiser entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Advertiser[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Advertiser[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveAdvertisersResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveCampaignsRequest.java b/src/src/main/java/com/relewise/client/model/SaveCampaignsRequest.java
new file mode 100644
index 0000000..90b5c61
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveCampaignsRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveCampaignsRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveCampaignsRequest extends CampaignSaveEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.SaveCampaignsRequest, Relewise.Client";
+ public static SaveCampaignsRequest create(Campaign[] campaigns, String modifiedBy)
+ {
+ return new SaveCampaignsRequest(campaigns, modifiedBy);
+ }
+ public SaveCampaignsRequest(Campaign[] campaigns, String modifiedBy)
+ {
+ this.entities = campaigns;
+ this.modifiedBy = modifiedBy;
+ }
+ public SaveCampaignsRequest()
+ {
+ }
+ @Override
+ public SaveCampaignsRequest setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveCampaignsRequest addToEntities(Campaign entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Campaign[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Campaign[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveCampaignsRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveCampaignsResponse.java b/src/src/main/java/com/relewise/client/model/SaveCampaignsResponse.java
new file mode 100644
index 0000000..75f17de
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveCampaignsResponse.java
@@ -0,0 +1,66 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveCampaignsResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveCampaignsResponse extends CampaignSaveEntitiesResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.SaveCampaignsResponse, Relewise.Client";
+ public static SaveCampaignsResponse create(Campaign... campaigns)
+ {
+ return new SaveCampaignsResponse(campaigns);
+ }
+ public SaveCampaignsResponse(Campaign... campaigns)
+ {
+ this.entities = campaigns;
+ }
+ public SaveCampaignsResponse()
+ {
+ }
+ @Override
+ public SaveCampaignsResponse setEntities(Campaign... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveCampaignsResponse addToEntities(Campaign entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Campaign[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Campaign[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveCampaignsResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesRequest.java b/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesRequest.java
index 0be2b6d..fea5570 100644
--- a/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesResponse.java b/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesResponse.java
index b23b9b6..518e1c7 100644
--- a/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SaveDecompoundRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveGlobalTriggerConfigurationRequest.java b/src/src/main/java/com/relewise/client/model/SaveGlobalTriggerConfigurationRequest.java
index 5a08ecc..5b296a1 100644
--- a/src/src/main/java/com/relewise/client/model/SaveGlobalTriggerConfigurationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveGlobalTriggerConfigurationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveLocationsRequest.java b/src/src/main/java/com/relewise/client/model/SaveLocationsRequest.java
new file mode 100644
index 0000000..4226cdd
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveLocationsRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveLocationsRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveLocationsRequest extends LocationSaveEntitiesRequest
+{
+ public String $type = "Relewise.Client.Requests.RetailMedia.SaveLocationsRequest, Relewise.Client";
+ public static SaveLocationsRequest create(Location[] locations, String modifiedBy)
+ {
+ return new SaveLocationsRequest(locations, modifiedBy);
+ }
+ public SaveLocationsRequest(Location[] locations, String modifiedBy)
+ {
+ this.entities = locations;
+ this.modifiedBy = modifiedBy;
+ }
+ public SaveLocationsRequest()
+ {
+ }
+ @Override
+ public SaveLocationsRequest setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveLocationsRequest addToEntities(Location entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Location[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Location[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveLocationsRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveLocationsResponse.java b/src/src/main/java/com/relewise/client/model/SaveLocationsResponse.java
new file mode 100644
index 0000000..db76e3a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveLocationsResponse.java
@@ -0,0 +1,66 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveLocationsResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveLocationsResponse extends LocationSaveEntitiesResponse
+{
+ public String $type = "Relewise.Client.Responses.RetailMedia.SaveLocationsResponse, Relewise.Client";
+ public static SaveLocationsResponse create(Location... locations)
+ {
+ return new SaveLocationsResponse(locations);
+ }
+ public SaveLocationsResponse(Location... locations)
+ {
+ this.entities = locations;
+ }
+ public SaveLocationsResponse()
+ {
+ }
+ @Override
+ public SaveLocationsResponse setEntities(Location... entities)
+ {
+ this.entities = entities;
+ return this;
+ }
+ public SaveLocationsResponse addToEntities(Location entity)
+ {
+ if (this.entities == null)
+ {
+ this.entities = new Location[] { entity };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entities));
+ existingList.add(entity);
+ this.entities = existingList.toArray(new Location[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveLocationsResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveMerchandisingRuleRequest.java b/src/src/main/java/com/relewise/client/model/SaveMerchandisingRuleRequest.java
index 2fef114..e397b9f 100644
--- a/src/src/main/java/com/relewise/client/model/SaveMerchandisingRuleRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveMerchandisingRuleRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SavePredictionRulesRequest.java b/src/src/main/java/com/relewise/client/model/SavePredictionRulesRequest.java
index 4cbb991..42411bb 100644
--- a/src/src/main/java/com/relewise/client/model/SavePredictionRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SavePredictionRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SavePredictionRulesResponse.java b/src/src/main/java/com/relewise/client/model/SavePredictionRulesResponse.java
index 995cd26..b553ac6 100644
--- a/src/src/main/java/com/relewise/client/model/SavePredictionRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SavePredictionRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveRedirectRulesRequest.java b/src/src/main/java/com/relewise/client/model/SaveRedirectRulesRequest.java
index 282dbf1..8b91eab 100644
--- a/src/src/main/java/com/relewise/client/model/SaveRedirectRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveRedirectRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveRedirectRulesResponse.java b/src/src/main/java/com/relewise/client/model/SaveRedirectRulesResponse.java
index 71e878f..4ba5f01 100644
--- a/src/src/main/java/com/relewise/client/model/SaveRedirectRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SaveRedirectRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveSearchIndexRequest.java b/src/src/main/java/com/relewise/client/model/SaveSearchIndexRequest.java
index 24b3d65..265fc71 100644
--- a/src/src/main/java/com/relewise/client/model/SaveSearchIndexRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveSearchIndexRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesRequest.java
new file mode 100644
index 0000000..5f2350d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveSearchResultModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveSearchResultModifierRulesRequest extends SearchResultModifierRuleSaveSearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.SaveSearchResultModifierRulesRequest, Relewise.Client";
+ public static SaveSearchResultModifierRulesRequest create(SearchResultModifierRule[] rules, String modifiedBy)
+ {
+ return new SaveSearchResultModifierRulesRequest(rules, modifiedBy);
+ }
+ public SaveSearchResultModifierRulesRequest(SearchResultModifierRule[] rules, String modifiedBy)
+ {
+ this.rules = rules;
+ this.modifiedBy = modifiedBy;
+ }
+ public SaveSearchResultModifierRulesRequest()
+ {
+ }
+ @Override
+ public SaveSearchResultModifierRulesRequest setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SaveSearchResultModifierRulesRequest addToRules(SearchResultModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchResultModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchResultModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveSearchResultModifierRulesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesResponse.java b/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesResponse.java
new file mode 100644
index 0000000..4aa8c6a
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveSearchResultModifierRulesResponse.java
@@ -0,0 +1,66 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveSearchResultModifierRulesResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveSearchResultModifierRulesResponse extends SearchResultModifierRuleSaveSearchRulesResponse
+{
+ public String $type = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client";
+ public static SaveSearchResultModifierRulesResponse create(SearchResultModifierRule... rules)
+ {
+ return new SaveSearchResultModifierRulesResponse(rules);
+ }
+ public SaveSearchResultModifierRulesResponse(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ }
+ public SaveSearchResultModifierRulesResponse()
+ {
+ }
+ @Override
+ public SaveSearchResultModifierRulesResponse setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SaveSearchResultModifierRulesResponse addToRules(SearchResultModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchResultModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchResultModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveSearchResultModifierRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesRequest.java
new file mode 100644
index 0000000..52f6ec6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveSearchTermModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveSearchTermModifierRulesRequest extends SearchTermModifierRuleSaveSearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.SaveSearchTermModifierRulesRequest, Relewise.Client";
+ public static SaveSearchTermModifierRulesRequest create(SearchTermModifierRule[] rules, String modifiedBy)
+ {
+ return new SaveSearchTermModifierRulesRequest(rules, modifiedBy);
+ }
+ public SaveSearchTermModifierRulesRequest(SearchTermModifierRule[] rules, String modifiedBy)
+ {
+ this.rules = rules;
+ this.modifiedBy = modifiedBy;
+ }
+ public SaveSearchTermModifierRulesRequest()
+ {
+ }
+ @Override
+ public SaveSearchTermModifierRulesRequest setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SaveSearchTermModifierRulesRequest addToRules(SearchTermModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchTermModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchTermModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveSearchTermModifierRulesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesResponse.java b/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesResponse.java
new file mode 100644
index 0000000..e641b53
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SaveSearchTermModifierRulesResponse.java
@@ -0,0 +1,66 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SaveSearchTermModifierRulesResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SaveSearchTermModifierRulesResponse extends SearchTermModifierRuleSaveSearchRulesResponse
+{
+ public String $type = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client";
+ public static SaveSearchTermModifierRulesResponse create(SearchTermModifierRule... rules)
+ {
+ return new SaveSearchTermModifierRulesResponse(rules);
+ }
+ public SaveSearchTermModifierRulesResponse(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ }
+ public SaveSearchTermModifierRulesResponse()
+ {
+ }
+ @Override
+ public SaveSearchTermModifierRulesResponse setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SaveSearchTermModifierRulesResponse addToRules(SearchTermModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchTermModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchTermModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SaveSearchTermModifierRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SaveStemmingRulesRequest.java b/src/src/main/java/com/relewise/client/model/SaveStemmingRulesRequest.java
index 7ec2e74..bbbd3d5 100644
--- a/src/src/main/java/com/relewise/client/model/SaveStemmingRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveStemmingRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveStemmingRulesResponse.java b/src/src/main/java/com/relewise/client/model/SaveStemmingRulesResponse.java
index bd7a881..e19104c 100644
--- a/src/src/main/java/com/relewise/client/model/SaveStemmingRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SaveStemmingRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveSynonymsRequest.java b/src/src/main/java/com/relewise/client/model/SaveSynonymsRequest.java
index c543096..5b6211f 100644
--- a/src/src/main/java/com/relewise/client/model/SaveSynonymsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveSynonymsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveSynonymsResponse.java b/src/src/main/java/com/relewise/client/model/SaveSynonymsResponse.java
index ed830cb..3bec6fc 100644
--- a/src/src/main/java/com/relewise/client/model/SaveSynonymsResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SaveSynonymsResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SaveTriggerConfigurationRequest.java b/src/src/main/java/com/relewise/client/model/SaveTriggerConfigurationRequest.java
index b428201..049b38b 100644
--- a/src/src/main/java/com/relewise/client/model/SaveTriggerConfigurationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SaveTriggerConfigurationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ScheduledPeriod.java b/src/src/main/java/com/relewise/client/model/ScheduledPeriod.java
new file mode 100644
index 0000000..a5cf34f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ScheduledPeriod.java
@@ -0,0 +1,61 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = ScheduledPeriod.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ScheduledPeriod implements ISchedule
+{
+ public String $type = "Relewise.Client.DataTypes.RetailMedia.ScheduledPeriod, Relewise.Client";
+ public @Nullable OffsetDateTime fromUtc;
+ public @Nullable OffsetDateTime toUtc;
+ public static ScheduledPeriod create(@Nullable OffsetDateTime fromUtc, @Nullable OffsetDateTime toUtc)
+ {
+ return new ScheduledPeriod(fromUtc, toUtc);
+ }
+ public ScheduledPeriod(@Nullable OffsetDateTime fromUtc, @Nullable OffsetDateTime toUtc)
+ {
+ this.fromUtc = fromUtc;
+ this.toUtc = toUtc;
+ }
+ public ScheduledPeriod()
+ {
+ }
+ public @Nullable OffsetDateTime getFromUtc()
+ {
+ return this.fromUtc;
+ }
+ public @Nullable OffsetDateTime getToUtc()
+ {
+ return this.toUtc;
+ }
+ public ScheduledPeriod setFromUtc(@Nullable OffsetDateTime fromUtc)
+ {
+ this.fromUtc = fromUtc;
+ return this;
+ }
+ public ScheduledPeriod setToUtc(@Nullable OffsetDateTime toUtc)
+ {
+ this.toUtc = toUtc;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndex.java b/src/src/main/java/com/relewise/client/model/SearchIndex.java
index b6d662a..b6fb92b 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndex.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndex.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndexCollectionResponse.java b/src/src/main/java/com/relewise/client/model/SearchIndexCollectionResponse.java
index bf7b4b8..c214da5 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndexCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndexCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndexRequest.java b/src/src/main/java/com/relewise/client/model/SearchIndexRequest.java
index d71fa5c..4f8194a 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndexRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndexRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndexResponse.java b/src/src/main/java/com/relewise/client/model/SearchIndexResponse.java
index 1febb7e..84671a0 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndexResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndexResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndexSelector.java b/src/src/main/java/com/relewise/client/model/SearchIndexSelector.java
index e727cc5..0d19615 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndexSelector.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndexSelector.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchIndexesRequest.java b/src/src/main/java/com/relewise/client/model/SearchIndexesRequest.java
index 053ceed..304bbcf 100644
--- a/src/src/main/java/com/relewise/client/model/SearchIndexesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SearchIndexesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchRequest.java b/src/src/main/java/com/relewise/client/model/SearchRequest.java
index b35e130..6f7ae40 100644
--- a/src/src/main/java/com/relewise/client/model/SearchRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SearchRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** The search request shape establishes language-currency context with search filters, optional user info. Defines Language
. Currency
pair, as well as Filters
(both PostFilters
). Products search is done through - ProductSearchRequest
Content search is done through - ContentSearchRequest
Search term prediction is done through - SearchTermPredictionRequest
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -43,6 +42,8 @@ public abstract class SearchRequest extends LicensedRequest implements IUserIden
public @Nullable FilterCollection filters;
public @Nullable SearchIndexSelector indexSelector;
public @Nullable FilterCollection postFilters;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public @Nullable Language getLanguage()
{
return this.language;
@@ -75,6 +76,11 @@ public abstract class SearchRequest extends LicensedRequest implements IUserIden
{
return this.postFilters;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public SearchRequest setLanguage(Language language)
{
this.language = language;
@@ -115,4 +121,10 @@ public SearchRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public SearchRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SearchRequestCollection.java b/src/src/main/java/com/relewise/client/model/SearchRequestCollection.java
index 88aa38d..43a3582 100644
--- a/src/src/main/java/com/relewise/client/model/SearchRequestCollection.java
+++ b/src/src/main/java/com/relewise/client/model/SearchRequestCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -119,4 +117,11 @@ public SearchRequestCollection setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SearchRequestCollection setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResponse.java b/src/src/main/java/com/relewise/client/model/SearchResponse.java
index dfb5284..b38cd15 100644
--- a/src/src/main/java/com/relewise/client/model/SearchResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SearchResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchResponseCollection.java b/src/src/main/java/com/relewise/client/model/SearchResponseCollection.java
index 646bd7f..ba869c1 100644
--- a/src/src/main/java/com/relewise/client/model/SearchResponseCollection.java
+++ b/src/src/main/java/com/relewise/client/model/SearchResponseCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRule.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRule.java
new file mode 100644
index 0000000..2ad5b4c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRule.java
@@ -0,0 +1,139 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchResultModifierRule.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRule extends SearchRule
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client";
+ public SearchTermCondition condition;
+ public SearchResultModifierRuleRuleAction[] actions;
+ public static SearchResultModifierRule create(UUID id, @Nullable ApplicableIndexes indexes, @Nullable ApplicableLanguages languages, Boolean isApproved, SearchTermCondition condition, SearchResultModifierRuleRuleAction... actions)
+ {
+ return new SearchResultModifierRule(id, indexes, languages, isApproved, condition, actions);
+ }
+ public SearchResultModifierRule(UUID id, @Nullable ApplicableIndexes indexes, @Nullable ApplicableLanguages languages, Boolean isApproved, SearchTermCondition condition, SearchResultModifierRuleRuleAction... actions)
+ {
+ this.id = id;
+ this.indexes = indexes;
+ this.languages = languages;
+ this.isApproved = isApproved;
+ this.condition = condition;
+ this.actions = actions;
+ }
+ public SearchResultModifierRule()
+ {
+ }
+ public SearchTermCondition getCondition()
+ {
+ return this.condition;
+ }
+ public SearchResultModifierRuleRuleAction[] getActions()
+ {
+ return this.actions;
+ }
+ public SearchResultModifierRule setCondition(SearchTermCondition condition)
+ {
+ this.condition = condition;
+ return this;
+ }
+ public SearchResultModifierRule setActions(SearchResultModifierRuleRuleAction... actions)
+ {
+ this.actions = actions;
+ return this;
+ }
+ public SearchResultModifierRule addToActions(SearchResultModifierRuleRuleAction action)
+ {
+ if (this.actions == null)
+ {
+ this.actions = new SearchResultModifierRuleRuleAction[] { action };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.actions));
+ existingList.add(action);
+ this.actions = existingList.toArray(new SearchResultModifierRuleRuleAction[0]);
+ }
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setIndexes(ApplicableIndexes indexes)
+ {
+ this.indexes = indexes;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setLanguages(ApplicableLanguages languages)
+ {
+ this.languages = languages;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setApproved(@Nullable OffsetDateTime approved)
+ {
+ this.approved = approved;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setApprovedBy(String approvedBy)
+ {
+ this.approvedBy = approvedBy;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRule setIsApproved(Boolean isApproved)
+ {
+ this.isApproved = isApproved;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddFiltersAction.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddFiltersAction.java
new file mode 100644
index 0000000..b694713
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddFiltersAction.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchResultModifierRuleAddFiltersAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRuleAddFiltersAction extends SearchResultModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule+AddFiltersAction, Relewise.Client";
+ public FilterCollection filters;
+ public static SearchResultModifierRuleAddFiltersAction create(FilterCollection filters)
+ {
+ return new SearchResultModifierRuleAddFiltersAction(filters);
+ }
+ public SearchResultModifierRuleAddFiltersAction(FilterCollection filters)
+ {
+ this.filters = filters;
+ }
+ public SearchResultModifierRuleAddFiltersAction()
+ {
+ }
+ public FilterCollection getFilters()
+ {
+ return this.filters;
+ }
+ public SearchResultModifierRuleAddFiltersAction setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddTermFilterAction.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddTermFilterAction.java
new file mode 100644
index 0000000..0ee266c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleAddTermFilterAction.java
@@ -0,0 +1,61 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchResultModifierRuleAddTermFilterAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRuleAddTermFilterAction extends SearchResultModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule+AddTermFilterAction, Relewise.Client";
+ public String term;
+ public Boolean negated;
+ public static SearchResultModifierRuleAddTermFilterAction create(String term, Boolean negated)
+ {
+ return new SearchResultModifierRuleAddTermFilterAction(term, negated);
+ }
+ public SearchResultModifierRuleAddTermFilterAction(String term, Boolean negated)
+ {
+ this.term = term;
+ this.negated = negated;
+ }
+ public SearchResultModifierRuleAddTermFilterAction()
+ {
+ }
+ public String getTerm()
+ {
+ return this.term;
+ }
+ public Boolean getNegated()
+ {
+ return this.negated;
+ }
+ public SearchResultModifierRuleAddTermFilterAction setTerm(String term)
+ {
+ this.term = term;
+ return this;
+ }
+ public SearchResultModifierRuleAddTermFilterAction setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleRuleAction.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleRuleAction.java
new file mode 100644
index 0000000..f561d5c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleRuleAction.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SearchResultModifierRuleAddFiltersAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule+AddFiltersAction, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRuleAddTermFilterAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule+AddTermFilterAction, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchResultModifierRuleRuleAction
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesRequest.java
new file mode 100644
index 0000000..c4a5670
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesRequest.java
@@ -0,0 +1,56 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SavePredictionRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SavePredictionRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchResultModifierRuleSaveSearchRulesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public SearchResultModifierRule[] rules;
+ public String modifiedBy;
+ public SearchResultModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public SearchResultModifierRuleSaveSearchRulesRequest setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchResultModifierRuleSaveSearchRulesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesResponse.java
new file mode 100644
index 0000000..300e212
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSaveSearchRulesResponse.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SavePredictionRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SavePredictionRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveRedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveRedirectRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveDecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveDecompoundRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveStemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveStemmingRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchResultModifierRuleSaveSearchRulesResponse extends TimedResponse
+{
+ public String $type = "";
+ public SearchResultModifierRule[] rules;
+ public SearchResultModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public SearchResultModifierRuleSaveSearchRulesResponse setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRuleSaveSearchRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSearchRulesResponse.java
new file mode 100644
index 0000000..fab755c
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRuleSearchRulesResponse.java
@@ -0,0 +1,62 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = PredictionRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.PredictionRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchResultModifierRuleSearchRulesResponse extends TimedResponse
+{
+ public String $type = "";
+ public SearchResultModifierRule[] rules;
+ public Integer hits;
+ public SearchResultModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public SearchResultModifierRuleSearchRulesResponse setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchResultModifierRuleSearchRulesResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRuleSearchRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequest.java
new file mode 100644
index 0000000..dd39440
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchResultModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRulesRequest extends SearchResultModifierRulesRequestSortBySearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client";
+ public static SearchResultModifierRulesRequest create(SearchRuleFilters filters, SearchResultModifierRulesRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ return new SearchResultModifierRulesRequest(filters, sorting, skip, take);
+ }
+ public SearchResultModifierRulesRequest(SearchRuleFilters filters, SearchResultModifierRulesRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ this.filters = filters;
+ this.sorting = sorting;
+ this.skip = skip;
+ this.take = take;
+ }
+ public SearchResultModifierRulesRequest()
+ {
+ }
+ @Override
+ public SearchResultModifierRulesRequest setFilters(SearchRuleFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRulesRequest setSorting(SearchResultModifierRulesRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRulesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRulesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBy.java
new file mode 100644
index 0000000..0d8a2f9
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBy.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum SearchResultModifierRulesRequestSortBy
+{
+ Created {
+ public String toString() {
+ return "Created";
+ }
+ },
+ Modified {
+ public String toString() {
+ return "Modified";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySearchRulesRequest.java
new file mode 100644
index 0000000..c936fdd
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySearchRulesRequest.java
@@ -0,0 +1,76 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = PredictionRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.PredictionRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchResultModifierRulesRequestSortBySearchRulesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public SearchRuleFilters filters;
+ public SearchResultModifierRulesRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public SearchRuleFilters getFilters()
+ {
+ return this.filters;
+ }
+ public SearchResultModifierRulesRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public SearchResultModifierRulesRequestSortBySearchRulesRequest setFilters(SearchRuleFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public SearchResultModifierRulesRequestSortBySearchRulesRequest setSorting(SearchResultModifierRulesRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public SearchResultModifierRulesRequestSortBySearchRulesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public SearchResultModifierRulesRequestSortBySearchRulesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySorting.java
new file mode 100644
index 0000000..c8ee8cf
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesRequestSortBySorting.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRulesRequestSortBySorting
+{
+ public SearchResultModifierRulesRequestSortBy sortBy;
+ public SortOrder sortOrder;
+ public static SearchResultModifierRulesRequestSortBySorting create(SearchResultModifierRulesRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ return new SearchResultModifierRulesRequestSortBySorting(sortBy, sortOrder);
+ }
+ public SearchResultModifierRulesRequestSortBySorting(SearchResultModifierRulesRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ this.sortBy = sortBy;
+ this.sortOrder = sortOrder;
+ }
+ public SearchResultModifierRulesRequestSortBySorting()
+ {
+ }
+ public SearchResultModifierRulesRequestSortBy getSortBy()
+ {
+ return this.sortBy;
+ }
+ public SortOrder getSortOrder()
+ {
+ return this.sortOrder;
+ }
+ public SearchResultModifierRulesRequestSortBySorting setSortBy(SearchResultModifierRulesRequestSortBy sortBy)
+ {
+ this.sortBy = sortBy;
+ return this;
+ }
+ public SearchResultModifierRulesRequestSortBySorting setSortOrder(SortOrder sortOrder)
+ {
+ this.sortOrder = sortOrder;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesResponse.java
new file mode 100644
index 0000000..6e06369
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchResultModifierRulesResponse.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchResultModifierRulesResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchResultModifierRulesResponse extends SearchResultModifierRuleSearchRulesResponse
+{
+ public String $type = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client";
+ public static SearchResultModifierRulesResponse create(SearchResultModifierRule[] rules, Integer hits)
+ {
+ return new SearchResultModifierRulesResponse(rules, hits);
+ }
+ public SearchResultModifierRulesResponse(SearchResultModifierRule[] rules, Integer hits)
+ {
+ this.rules = rules;
+ this.hits = hits;
+ }
+ public SearchResultModifierRulesResponse()
+ {
+ }
+ @Override
+ public SearchResultModifierRulesResponse setRules(SearchResultModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchResultModifierRulesResponse addToRules(SearchResultModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchResultModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchResultModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SearchResultModifierRulesResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ @Override
+ public SearchResultModifierRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchRule.java b/src/src/main/java/com/relewise/client/model/SearchRule.java
index 3320872..afe18f4 100644
--- a/src/src/main/java/com/relewise/client/model/SearchRule.java
+++ b/src/src/main/java/com/relewise/client/model/SearchRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -24,10 +22,12 @@
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "$type")
@JsonSubTypes({
- @JsonSubTypes.Type(value = PredictionRule.class, name = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.PredictionRule, Relewise.Client"),
- @JsonSubTypes.Type(value = RedirectRule.class, name = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.RedirectRule, Relewise.Client"),
- @JsonSubTypes.Type(value = DecompoundRule.class, name = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.DecompoundRule, Relewise.Client"),
- @JsonSubTypes.Type(value = StemmingRule.class, name = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.StemmingRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = PredictionRule.class, name = "Relewise.Client.DataTypes.Search.Rules.PredictionRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = RedirectRule.class, name = "Relewise.Client.DataTypes.Search.Rules.RedirectRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = DecompoundRule.class, name = "Relewise.Client.DataTypes.Search.Rules.DecompoundRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = StemmingRule.class, name = "Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRule.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRule.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchResultModifierRule, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class SearchRule
diff --git a/src/src/main/java/com/relewise/client/model/SearchRuleFilters.java b/src/src/main/java/com/relewise/client/model/SearchRuleFilters.java
index ca44cd1..a4fa23c 100644
--- a/src/src/main/java/com/relewise/client/model/SearchRuleFilters.java
+++ b/src/src/main/java/com/relewise/client/model/SearchRuleFilters.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchSettings.java b/src/src/main/java/com/relewise/client/model/SearchSettings.java
index 3deec96..72a4759 100644
--- a/src/src/main/java/com/relewise/client/model/SearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTerm.java b/src/src/main/java/com/relewise/client/model/SearchTerm.java
index 4fec93d..4adfde7 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTerm.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTerm.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -31,6 +29,8 @@ public class SearchTerm extends Trackable implements IUserIdentifier
public Language language;
public User user;
public String term;
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel channel;
public static SearchTerm create(Language language, User user, String term)
{
return new SearchTerm(language, user, term);
@@ -56,6 +56,11 @@ public String getTerm()
{
return this.term;
}
+ /** @deprecated Use User.Channel instead. */
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
public SearchTerm setLanguage(Language language)
{
this.language = language;
@@ -71,4 +76,10 @@ public SearchTerm setTerm(String term)
this.term = term;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ public SearchTerm setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermBasedProductRecommendationRequest.java b/src/src/main/java/com/relewise/client/model/SearchTermBasedProductRecommendationRequest.java
index 6626b72..ccd3aa4 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermBasedProductRecommendationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermBasedProductRecommendationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public SearchTermBasedProductRecommendationRequest setCurrency(Currency currency
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SearchTermBasedProductRecommendationRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermCondition.java b/src/src/main/java/com/relewise/client/model/SearchTermCondition.java
index d28fdf6..362ee1f 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermCondition.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermConditionConditionKind.java b/src/src/main/java/com/relewise/client/model/SearchTermConditionConditionKind.java
index dd94048..d6f390a 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermConditionConditionKind.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermConditionConditionKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRule.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRule.java
new file mode 100644
index 0000000..414d475
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRule.java
@@ -0,0 +1,139 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRule.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRule extends SearchRule
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule, Relewise.Client";
+ public SearchTermCondition condition;
+ public SearchTermModifierRuleRuleAction[] actions;
+ public static SearchTermModifierRule create(UUID id, @Nullable ApplicableIndexes indexes, @Nullable ApplicableLanguages languages, Boolean isApproved, SearchTermCondition condition, SearchTermModifierRuleRuleAction... actions)
+ {
+ return new SearchTermModifierRule(id, indexes, languages, isApproved, condition, actions);
+ }
+ public SearchTermModifierRule(UUID id, @Nullable ApplicableIndexes indexes, @Nullable ApplicableLanguages languages, Boolean isApproved, SearchTermCondition condition, SearchTermModifierRuleRuleAction... actions)
+ {
+ this.id = id;
+ this.indexes = indexes;
+ this.languages = languages;
+ this.isApproved = isApproved;
+ this.condition = condition;
+ this.actions = actions;
+ }
+ public SearchTermModifierRule()
+ {
+ }
+ public SearchTermCondition getCondition()
+ {
+ return this.condition;
+ }
+ public SearchTermModifierRuleRuleAction[] getActions()
+ {
+ return this.actions;
+ }
+ public SearchTermModifierRule setCondition(SearchTermCondition condition)
+ {
+ this.condition = condition;
+ return this;
+ }
+ public SearchTermModifierRule setActions(SearchTermModifierRuleRuleAction... actions)
+ {
+ this.actions = actions;
+ return this;
+ }
+ public SearchTermModifierRule addToActions(SearchTermModifierRuleRuleAction action)
+ {
+ if (this.actions == null)
+ {
+ this.actions = new SearchTermModifierRuleRuleAction[] { action };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.actions));
+ existingList.add(action);
+ this.actions = existingList.toArray(new SearchTermModifierRuleRuleAction[0]);
+ }
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setIndexes(ApplicableIndexes indexes)
+ {
+ this.indexes = indexes;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setLanguages(ApplicableLanguages languages)
+ {
+ this.languages = languages;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setApproved(@Nullable OffsetDateTime approved)
+ {
+ this.approved = approved;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setApprovedBy(String approvedBy)
+ {
+ this.approvedBy = approvedBy;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRule setIsApproved(Boolean isApproved)
+ {
+ this.isApproved = isApproved;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleAppendToTermAction.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleAppendToTermAction.java
new file mode 100644
index 0000000..8fbe20d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleAppendToTermAction.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRuleAppendToTermAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRuleAppendToTermAction extends SearchTermModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+AppendToTermAction, Relewise.Client";
+ public String words;
+ public static SearchTermModifierRuleAppendToTermAction create(String words)
+ {
+ return new SearchTermModifierRuleAppendToTermAction(words);
+ }
+ public SearchTermModifierRuleAppendToTermAction(String words)
+ {
+ this.words = words;
+ }
+ public SearchTermModifierRuleAppendToTermAction()
+ {
+ }
+ public String getWords()
+ {
+ return this.words;
+ }
+ public SearchTermModifierRuleAppendToTermAction setWords(String words)
+ {
+ this.words = words;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRemoveFromTermAction.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRemoveFromTermAction.java
new file mode 100644
index 0000000..98496a8
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRemoveFromTermAction.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRuleRemoveFromTermAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRuleRemoveFromTermAction extends SearchTermModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+RemoveFromTermAction, Relewise.Client";
+ public String words;
+ public static SearchTermModifierRuleRemoveFromTermAction create(String words)
+ {
+ return new SearchTermModifierRuleRemoveFromTermAction(words);
+ }
+ public SearchTermModifierRuleRemoveFromTermAction(String words)
+ {
+ this.words = words;
+ }
+ public SearchTermModifierRuleRemoveFromTermAction()
+ {
+ }
+ public String getWords()
+ {
+ return this.words;
+ }
+ public SearchTermModifierRuleRemoveFromTermAction setWords(String words)
+ {
+ this.words = words;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceTermAction.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceTermAction.java
new file mode 100644
index 0000000..2c91a77
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceTermAction.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRuleReplaceTermAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRuleReplaceTermAction extends SearchTermModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+ReplaceTermAction, Relewise.Client";
+ public @Nullable String replacement;
+ public static SearchTermModifierRuleReplaceTermAction create(String replacement)
+ {
+ return new SearchTermModifierRuleReplaceTermAction(replacement);
+ }
+ public SearchTermModifierRuleReplaceTermAction(String replacement)
+ {
+ this.replacement = replacement;
+ }
+ public SearchTermModifierRuleReplaceTermAction()
+ {
+ }
+ public @Nullable String getReplacement()
+ {
+ return this.replacement;
+ }
+ public SearchTermModifierRuleReplaceTermAction setReplacement(String replacement)
+ {
+ this.replacement = replacement;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceWordsInTermAction.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceWordsInTermAction.java
new file mode 100644
index 0000000..c46b6e7
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleReplaceWordsInTermAction.java
@@ -0,0 +1,61 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRuleReplaceWordsInTermAction.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRuleReplaceWordsInTermAction extends SearchTermModifierRuleRuleAction
+{
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+ReplaceWordsInTermAction, Relewise.Client";
+ public String words;
+ public @Nullable String replacement;
+ public static SearchTermModifierRuleReplaceWordsInTermAction create(String words, String replacement)
+ {
+ return new SearchTermModifierRuleReplaceWordsInTermAction(words, replacement);
+ }
+ public SearchTermModifierRuleReplaceWordsInTermAction(String words, String replacement)
+ {
+ this.words = words;
+ this.replacement = replacement;
+ }
+ public SearchTermModifierRuleReplaceWordsInTermAction()
+ {
+ }
+ public String getWords()
+ {
+ return this.words;
+ }
+ public @Nullable String getReplacement()
+ {
+ return this.replacement;
+ }
+ public SearchTermModifierRuleReplaceWordsInTermAction setWords(String words)
+ {
+ this.words = words;
+ return this;
+ }
+ public SearchTermModifierRuleReplaceWordsInTermAction setReplacement(String replacement)
+ {
+ this.replacement = replacement;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRuleAction.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRuleAction.java
new file mode 100644
index 0000000..ff0c0e5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleRuleAction.java
@@ -0,0 +1,34 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SearchTermModifierRuleAppendToTermAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+AppendToTermAction, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRuleRemoveFromTermAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+RemoveFromTermAction, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRuleReplaceTermAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+ReplaceTermAction, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRuleReplaceWordsInTermAction.class, name = "Relewise.Client.DataTypes.Search.Rules.SearchTermModifierRule+ReplaceWordsInTermAction, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchTermModifierRuleRuleAction
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesRequest.java
new file mode 100644
index 0000000..d56878d
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesRequest.java
@@ -0,0 +1,56 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SavePredictionRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SavePredictionRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchTermModifierRuleSaveSearchRulesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public SearchTermModifierRule[] rules;
+ public String modifiedBy;
+ public SearchTermModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public String getModifiedBy()
+ {
+ return this.modifiedBy;
+ }
+ public SearchTermModifierRuleSaveSearchRulesRequest setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchTermModifierRuleSaveSearchRulesRequest setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesResponse.java
new file mode 100644
index 0000000..fdbc350
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSaveSearchRulesResponse.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SavePredictionRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SavePredictionRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveRedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveRedirectRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveDecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveDecompoundRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveStemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveStemmingRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchTermModifierRuleSaveSearchRulesResponse extends TimedResponse
+{
+ public String $type = "";
+ public SearchTermModifierRule[] rules;
+ public SearchTermModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public SearchTermModifierRuleSaveSearchRulesResponse setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRuleSaveSearchRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSearchRulesResponse.java
new file mode 100644
index 0000000..cd6d3a2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRuleSearchRulesResponse.java
@@ -0,0 +1,62 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = PredictionRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.PredictionRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchTermModifierRuleSearchRulesResponse extends TimedResponse
+{
+ public String $type = "";
+ public SearchTermModifierRule[] rules;
+ public Integer hits;
+ public SearchTermModifierRule[] getRules()
+ {
+ return this.rules;
+ }
+ public Integer getHits()
+ {
+ return this.hits;
+ }
+ public SearchTermModifierRuleSearchRulesResponse setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchTermModifierRuleSearchRulesResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRuleSearchRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequest.java
new file mode 100644
index 0000000..6a7bbb6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequest.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRulesRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRulesRequest extends SearchTermModifierRulesRequestSortBySearchRulesRequest
+{
+ public String $type = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client";
+ public static SearchTermModifierRulesRequest create(SearchRuleFilters filters, SearchTermModifierRulesRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ return new SearchTermModifierRulesRequest(filters, sorting, skip, take);
+ }
+ public SearchTermModifierRulesRequest(SearchRuleFilters filters, SearchTermModifierRulesRequestSortBySorting sorting, Integer skip, Integer take)
+ {
+ this.filters = filters;
+ this.sorting = sorting;
+ this.skip = skip;
+ this.take = take;
+ }
+ public SearchTermModifierRulesRequest()
+ {
+ }
+ @Override
+ public SearchTermModifierRulesRequest setFilters(SearchRuleFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRulesRequest setSorting(SearchTermModifierRulesRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRulesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRulesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBy.java
new file mode 100644
index 0000000..9a6e168
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBy.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum SearchTermModifierRulesRequestSortBy
+{
+ Created {
+ public String toString() {
+ return "Created";
+ }
+ },
+ Modified {
+ public String toString() {
+ return "Modified";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySearchRulesRequest.java
new file mode 100644
index 0000000..0c6ab43
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySearchRulesRequest.java
@@ -0,0 +1,76 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = PredictionRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.PredictionRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SearchTermModifierRulesRequestSortBySearchRulesRequest extends LicensedRequest
+{
+ public String $type = "";
+ public SearchRuleFilters filters;
+ public SearchTermModifierRulesRequestSortBySorting sorting;
+ public Integer skip;
+ public Integer take;
+ public SearchRuleFilters getFilters()
+ {
+ return this.filters;
+ }
+ public SearchTermModifierRulesRequestSortBySorting getSorting()
+ {
+ return this.sorting;
+ }
+ public Integer getSkip()
+ {
+ return this.skip;
+ }
+ public Integer getTake()
+ {
+ return this.take;
+ }
+ public SearchTermModifierRulesRequestSortBySearchRulesRequest setFilters(SearchRuleFilters filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+ public SearchTermModifierRulesRequestSortBySearchRulesRequest setSorting(SearchTermModifierRulesRequestSortBySorting sorting)
+ {
+ this.sorting = sorting;
+ return this;
+ }
+ public SearchTermModifierRulesRequestSortBySearchRulesRequest setSkip(Integer skip)
+ {
+ this.skip = skip;
+ return this;
+ }
+ public SearchTermModifierRulesRequestSortBySearchRulesRequest setTake(Integer take)
+ {
+ this.take = take;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySorting.java
new file mode 100644
index 0000000..3d40f88
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesRequestSortBySorting.java
@@ -0,0 +1,55 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRulesRequestSortBySorting
+{
+ public SearchTermModifierRulesRequestSortBy sortBy;
+ public SortOrder sortOrder;
+ public static SearchTermModifierRulesRequestSortBySorting create(SearchTermModifierRulesRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ return new SearchTermModifierRulesRequestSortBySorting(sortBy, sortOrder);
+ }
+ public SearchTermModifierRulesRequestSortBySorting(SearchTermModifierRulesRequestSortBy sortBy, SortOrder sortOrder)
+ {
+ this.sortBy = sortBy;
+ this.sortOrder = sortOrder;
+ }
+ public SearchTermModifierRulesRequestSortBySorting()
+ {
+ }
+ public SearchTermModifierRulesRequestSortBy getSortBy()
+ {
+ return this.sortBy;
+ }
+ public SortOrder getSortOrder()
+ {
+ return this.sortOrder;
+ }
+ public SearchTermModifierRulesRequestSortBySorting setSortBy(SearchTermModifierRulesRequestSortBy sortBy)
+ {
+ this.sortBy = sortBy;
+ return this;
+ }
+ public SearchTermModifierRulesRequestSortBySorting setSortOrder(SortOrder sortOrder)
+ {
+ this.sortOrder = sortOrder;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesResponse.java b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesResponse.java
new file mode 100644
index 0000000..d36f876
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SearchTermModifierRulesResponse.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SearchTermModifierRulesResponse.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SearchTermModifierRulesResponse extends SearchTermModifierRuleSearchRulesResponse
+{
+ public String $type = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client";
+ public static SearchTermModifierRulesResponse create(SearchTermModifierRule[] rules, Integer hits)
+ {
+ return new SearchTermModifierRulesResponse(rules, hits);
+ }
+ public SearchTermModifierRulesResponse(SearchTermModifierRule[] rules, Integer hits)
+ {
+ this.rules = rules;
+ this.hits = hits;
+ }
+ public SearchTermModifierRulesResponse()
+ {
+ }
+ @Override
+ public SearchTermModifierRulesResponse setRules(SearchTermModifierRule... rules)
+ {
+ this.rules = rules;
+ return this;
+ }
+ public SearchTermModifierRulesResponse addToRules(SearchTermModifierRule rule)
+ {
+ if (this.rules == null)
+ {
+ this.rules = new SearchTermModifierRule[] { rule };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.rules));
+ existingList.add(rule);
+ this.rules = existingList.toArray(new SearchTermModifierRule[0]);
+ }
+ return this;
+ }
+ @Override
+ public SearchTermModifierRulesResponse setHits(Integer hits)
+ {
+ this.hits = hits;
+ return this;
+ }
+ @Override
+ public SearchTermModifierRulesResponse setStatistics(Statistics statistics)
+ {
+ this.statistics = statistics;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermPredictionRequest.java b/src/src/main/java/com/relewise/client/model/SearchTermPredictionRequest.java
index 878e83b..a06bb50 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermPredictionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermPredictionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -136,4 +134,11 @@ public SearchTermPredictionRequest setPostFilters(FilterCollection postFilters)
this.postFilters = postFilters;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SearchTermPredictionRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResponse.java b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResponse.java
index 2422e7c..276d30d 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResult.java b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResult.java
index 73dbabc..2c91976 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResult.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResultPredictionType.java b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResultPredictionType.java
index 39738a8..5df54e6 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermPredictionResultPredictionType.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermPredictionResultPredictionType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermPredictionSettings.java b/src/src/main/java/com/relewise/client/model/SearchTermPredictionSettings.java
index e2e2518..bb9f176 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermPredictionSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermPredictionSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermRecommendationResponse.java b/src/src/main/java/com/relewise/client/model/SearchTermRecommendationResponse.java
index c518d2f..f2c9123 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermRecommendationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermRecommendationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTermResult.java b/src/src/main/java/com/relewise/client/model/SearchTermResult.java
index 3be3bc4..6afa0de 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTermResult.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTermResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchType.java b/src/src/main/java/com/relewise/client/model/SearchType.java
index 883d12e..6b4468b 100644
--- a/src/src/main/java/com/relewise/client/model/SearchType.java
+++ b/src/src/main/java/com/relewise/client/model/SearchType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SearchTypeCollection.java b/src/src/main/java/com/relewise/client/model/SearchTypeCollection.java
index 7292802..164045a 100644
--- a/src/src/main/java/com/relewise/client/model/SearchTypeCollection.java
+++ b/src/src/main/java/com/relewise/client/model/SearchTypeCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SelectedBrandPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedBrandPropertiesSettings.java
index 4619b5a..91b96f0 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedBrandPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedBrandPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SelectedCategoryPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedCategoryPropertiesSettings.java
new file mode 100644
index 0000000..819c5b2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SelectedCategoryPropertiesSettings.java
@@ -0,0 +1,106 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = SelectedProductCategoryPropertiesSettings.class, name = "Relewise.Client.Requests.Shared.SelectedProductCategoryPropertiesSettings, Relewise.Client"),
+ @JsonSubTypes.Type(value = SelectedContentCategoryPropertiesSettings.class, name = "Relewise.Client.Requests.Shared.SelectedContentCategoryPropertiesSettings, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class SelectedCategoryPropertiesSettings
+{
+ public String $type = "";
+ public Boolean displayName;
+ public Boolean paths;
+ public Boolean assortments;
+ public Boolean viewedByUserInfo;
+ public Boolean allData;
+ public String[] dataKeys;
+ public Boolean getDisplayName()
+ {
+ return this.displayName;
+ }
+ public Boolean getPaths()
+ {
+ return this.paths;
+ }
+ public Boolean getAssortments()
+ {
+ return this.assortments;
+ }
+ public Boolean getViewedByUserInfo()
+ {
+ return this.viewedByUserInfo;
+ }
+ public Boolean getAllData()
+ {
+ return this.allData;
+ }
+ public String[] getDataKeys()
+ {
+ return this.dataKeys;
+ }
+ public SelectedCategoryPropertiesSettings setDisplayName(Boolean displayName)
+ {
+ this.displayName = displayName;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings setPaths(Boolean paths)
+ {
+ this.paths = paths;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings setAssortments(Boolean assortments)
+ {
+ this.assortments = assortments;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings setViewedByUserInfo(Boolean viewedByUserInfo)
+ {
+ this.viewedByUserInfo = viewedByUserInfo;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings setAllData(Boolean allData)
+ {
+ this.allData = allData;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings setDataKeys(String... dataKeys)
+ {
+ this.dataKeys = dataKeys;
+ return this;
+ }
+ public SelectedCategoryPropertiesSettings addToDataKeys(String dataKey)
+ {
+ if (this.dataKeys == null)
+ {
+ this.dataKeys = new String[] { dataKey };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.dataKeys));
+ existingList.add(dataKey);
+ this.dataKeys = existingList.toArray(new String[0]);
+ }
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SelectedContentCategoryPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedContentCategoryPropertiesSettings.java
index f81f5d1..27388e2 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedContentCategoryPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedContentCategoryPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,15 +17,15 @@
import java.util.Set;
import java.util.HashSet;
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SelectedContentCategoryPropertiesSettings.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class SelectedContentCategoryPropertiesSettings
+public class SelectedContentCategoryPropertiesSettings extends SelectedCategoryPropertiesSettings
{
- public Boolean displayName;
- public Boolean paths;
- public Boolean assortments;
- public Boolean viewedByUserInfo;
- public Boolean allData;
- public String[] dataKeys;
+ public String $type = "Relewise.Client.Requests.Shared.SelectedContentCategoryPropertiesSettings, Relewise.Client";
public static SelectedContentCategoryPropertiesSettings create()
{
return new SelectedContentCategoryPropertiesSettings();
@@ -35,55 +33,37 @@ public static SelectedContentCategoryPropertiesSettings create()
public SelectedContentCategoryPropertiesSettings()
{
}
- public Boolean getDisplayName()
- {
- return this.displayName;
- }
- public Boolean getPaths()
- {
- return this.paths;
- }
- public Boolean getAssortments()
- {
- return this.assortments;
- }
- public Boolean getViewedByUserInfo()
- {
- return this.viewedByUserInfo;
- }
- public Boolean getAllData()
- {
- return this.allData;
- }
- public String[] getDataKeys()
- {
- return this.dataKeys;
- }
+ @Override
public SelectedContentCategoryPropertiesSettings setDisplayName(Boolean displayName)
{
this.displayName = displayName;
return this;
}
+ @Override
public SelectedContentCategoryPropertiesSettings setPaths(Boolean paths)
{
this.paths = paths;
return this;
}
+ @Override
public SelectedContentCategoryPropertiesSettings setAssortments(Boolean assortments)
{
this.assortments = assortments;
return this;
}
+ @Override
public SelectedContentCategoryPropertiesSettings setViewedByUserInfo(Boolean viewedByUserInfo)
{
this.viewedByUserInfo = viewedByUserInfo;
return this;
}
+ @Override
public SelectedContentCategoryPropertiesSettings setAllData(Boolean allData)
{
this.allData = allData;
return this;
}
+ @Override
public SelectedContentCategoryPropertiesSettings setDataKeys(String... dataKeys)
{
this.dataKeys = dataKeys;
diff --git a/src/src/main/java/com/relewise/client/model/SelectedContentPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedContentPropertiesSettings.java
index a76598a..f451348 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedContentPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedContentPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SelectedProductCategoryPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedProductCategoryPropertiesSettings.java
index 413bfcc..ab1c7bf 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedProductCategoryPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedProductCategoryPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,15 +17,15 @@
import java.util.Set;
import java.util.HashSet;
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = SelectedProductCategoryPropertiesSettings.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class SelectedProductCategoryPropertiesSettings
+public class SelectedProductCategoryPropertiesSettings extends SelectedCategoryPropertiesSettings
{
- public Boolean displayName;
- public Boolean paths;
- public Boolean assortments;
- public Boolean viewedByUserInfo;
- public Boolean allData;
- public String[] dataKeys;
+ public String $type = "Relewise.Client.Requests.Shared.SelectedProductCategoryPropertiesSettings, Relewise.Client";
public static SelectedProductCategoryPropertiesSettings create()
{
return new SelectedProductCategoryPropertiesSettings();
@@ -35,55 +33,37 @@ public static SelectedProductCategoryPropertiesSettings create()
public SelectedProductCategoryPropertiesSettings()
{
}
- public Boolean getDisplayName()
- {
- return this.displayName;
- }
- public Boolean getPaths()
- {
- return this.paths;
- }
- public Boolean getAssortments()
- {
- return this.assortments;
- }
- public Boolean getViewedByUserInfo()
- {
- return this.viewedByUserInfo;
- }
- public Boolean getAllData()
- {
- return this.allData;
- }
- public String[] getDataKeys()
- {
- return this.dataKeys;
- }
+ @Override
public SelectedProductCategoryPropertiesSettings setDisplayName(Boolean displayName)
{
this.displayName = displayName;
return this;
}
+ @Override
public SelectedProductCategoryPropertiesSettings setPaths(Boolean paths)
{
this.paths = paths;
return this;
}
+ @Override
public SelectedProductCategoryPropertiesSettings setAssortments(Boolean assortments)
{
this.assortments = assortments;
return this;
}
+ @Override
public SelectedProductCategoryPropertiesSettings setViewedByUserInfo(Boolean viewedByUserInfo)
{
this.viewedByUserInfo = viewedByUserInfo;
return this;
}
+ @Override
public SelectedProductCategoryPropertiesSettings setAllData(Boolean allData)
{
this.allData = allData;
return this;
}
+ @Override
public SelectedProductCategoryPropertiesSettings setDataKeys(String... dataKeys)
{
this.dataKeys = dataKeys;
diff --git a/src/src/main/java/com/relewise/client/model/SelectedProductPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedProductPropertiesSettings.java
index f4657ce..c7735a3 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedProductPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedProductPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -32,6 +30,9 @@ public class SelectedProductPropertiesSettings
public Boolean brand;
public Boolean allVariants;
public @Nullable String[] dataKeys;
+ public Boolean viewedByUserCompanyInfo;
+ public Boolean purchasedByUserCompanyInfo;
+ public @Nullable FilteredVariantsSettings filteredVariants;
public static SelectedProductPropertiesSettings create()
{
return new SelectedProductPropertiesSettings();
@@ -79,6 +80,18 @@ public Boolean getAllVariants()
{
return this.dataKeys;
}
+ public Boolean getViewedByUserCompanyInfo()
+ {
+ return this.viewedByUserCompanyInfo;
+ }
+ public Boolean getPurchasedByUserCompanyInfo()
+ {
+ return this.purchasedByUserCompanyInfo;
+ }
+ public @Nullable FilteredVariantsSettings getFilteredVariants()
+ {
+ return this.filteredVariants;
+ }
public SelectedProductPropertiesSettings setDisplayName(Boolean displayName)
{
this.displayName = displayName;
@@ -143,4 +156,19 @@ public SelectedProductPropertiesSettings addToDataKeys(String dataKey)
}
return this;
}
+ public SelectedProductPropertiesSettings setViewedByUserCompanyInfo(Boolean viewedByUserCompanyInfo)
+ {
+ this.viewedByUserCompanyInfo = viewedByUserCompanyInfo;
+ return this;
+ }
+ public SelectedProductPropertiesSettings setPurchasedByUserCompanyInfo(Boolean purchasedByUserCompanyInfo)
+ {
+ this.purchasedByUserCompanyInfo = purchasedByUserCompanyInfo;
+ return this;
+ }
+ public SelectedProductPropertiesSettings setFilteredVariants(FilteredVariantsSettings filteredVariants)
+ {
+ this.filteredVariants = filteredVariants;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SelectedVariantPropertiesSettings.java b/src/src/main/java/com/relewise/client/model/SelectedVariantPropertiesSettings.java
index 4fb435f..445f404 100644
--- a/src/src/main/java/com/relewise/client/model/SelectedVariantPropertiesSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SelectedVariantPropertiesSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SignificantDataValue.java b/src/src/main/java/com/relewise/client/model/SignificantDataValue.java
index 2006d46..2364c12 100644
--- a/src/src/main/java/com/relewise/client/model/SignificantDataValue.java
+++ b/src/src/main/java/com/relewise/client/model/SignificantDataValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SignificantDataValueSignificantDataValueComparer.java b/src/src/main/java/com/relewise/client/model/SignificantDataValueSignificantDataValueComparer.java
index 5a3399a..5c57f9c 100644
--- a/src/src/main/java/com/relewise/client/model/SignificantDataValueSignificantDataValueComparer.java
+++ b/src/src/main/java/com/relewise/client/model/SignificantDataValueSignificantDataValueComparer.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SimilarProductsEvaluationSettings.java b/src/src/main/java/com/relewise/client/model/SimilarProductsEvaluationSettings.java
index 1b3ed8d..57015be 100644
--- a/src/src/main/java/com/relewise/client/model/SimilarProductsEvaluationSettings.java
+++ b/src/src/main/java/com/relewise/client/model/SimilarProductsEvaluationSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -33,6 +31,7 @@ public class SimilarProductsEvaluationSettings
public @Nullable ArrayList significantProductDataFields;
public Double significanceOfSimilarSalesPrice;
public Double significanceOfSimilarBrand;
+ public @Nullable SimilarVariantEvaluationSettings variantEvaluationSettings;
public static SimilarProductsEvaluationSettings create()
{
return new SimilarProductsEvaluationSettings();
@@ -84,6 +83,10 @@ public Double getSignificanceOfSimilarBrand()
{
return this.significanceOfSimilarBrand;
}
+ public @Nullable SimilarVariantEvaluationSettings getVariantEvaluationSettings()
+ {
+ return this.variantEvaluationSettings;
+ }
public SimilarProductsEvaluationSettings setSignificanceOfSimilaritiesInDisplayName(Double significanceOfSimilaritiesInDisplayName)
{
this.significanceOfSimilaritiesInDisplayName = significanceOfSimilaritiesInDisplayName;
@@ -148,4 +151,9 @@ public SimilarProductsEvaluationSettings setSignificanceOfSimilarBrand(Double si
this.significanceOfSimilarBrand = significanceOfSimilarBrand;
return this;
}
+ public SimilarProductsEvaluationSettings setVariantEvaluationSettings(SimilarVariantEvaluationSettings variantEvaluationSettings)
+ {
+ this.variantEvaluationSettings = variantEvaluationSettings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SimilarProductsRequest.java b/src/src/main/java/com/relewise/client/model/SimilarProductsRequest.java
index a73b306..f2ce684 100644
--- a/src/src/main/java/com/relewise/client/model/SimilarProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SimilarProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -32,6 +30,7 @@ public class SimilarProductsRequest extends ProductRecommendationRequest impleme
public @Nullable Product productData;
public Boolean considerAlreadyKnownInformationAboutProduct;
public @Nullable SimilarProductsEvaluationSettings evaluationSettings;
+ public @Nullable Integer explodedVariants;
public static SimilarProductsRequest create(@Nullable Language language, @Nullable Currency currency, String displayedAtLocationType, User user, Product productData, Boolean considerAlreadyKnownInformationAboutProduct)
{
return new SimilarProductsRequest(language, currency, displayedAtLocationType, user, productData, considerAlreadyKnownInformationAboutProduct);
@@ -106,6 +105,10 @@ public Boolean getConsiderAlreadyKnownInformationAboutProduct()
{
return this.evaluationSettings;
}
+ public @Nullable Integer getExplodedVariants()
+ {
+ return this.explodedVariants;
+ }
public SimilarProductsRequest setExistingProductId(ProductAndVariantId existingProductId)
{
this.existingProductId = existingProductId;
@@ -126,6 +129,11 @@ public SimilarProductsRequest setEvaluationSettings(SimilarProductsEvaluationSet
this.evaluationSettings = evaluationSettings;
return this;
}
+ public SimilarProductsRequest setExplodedVariants(@Nullable Integer explodedVariants)
+ {
+ this.explodedVariants = explodedVariants;
+ return this;
+ }
@Override
public SimilarProductsRequest setSettings(ProductRecommendationRequestSettings settings)
{
@@ -168,4 +176,11 @@ public SimilarProductsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SimilarProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SimilarVariantEvaluationSettings.java b/src/src/main/java/com/relewise/client/model/SimilarVariantEvaluationSettings.java
new file mode 100644
index 0000000..30cfa98
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/SimilarVariantEvaluationSettings.java
@@ -0,0 +1,99 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SimilarVariantEvaluationSettings
+{
+ public @Nullable Double significanceOfSimilaritiesInDisplayName;
+ public @Nullable Double significanceOfSimilarListPrice;
+ public @Nullable Double significanceOfSimilarSalesPrice;
+ public @Nullable Double significanceOfCommonDataKeys;
+ public @Nullable Double significanceOfIdenticalDataValues;
+ public @Nullable ArrayList significantDataFields;
+ public static SimilarVariantEvaluationSettings create()
+ {
+ return new SimilarVariantEvaluationSettings();
+ }
+ public SimilarVariantEvaluationSettings()
+ {
+ }
+ public @Nullable Double getSignificanceOfSimilaritiesInDisplayName()
+ {
+ return this.significanceOfSimilaritiesInDisplayName;
+ }
+ public @Nullable Double getSignificanceOfSimilarListPrice()
+ {
+ return this.significanceOfSimilarListPrice;
+ }
+ public @Nullable Double getSignificanceOfSimilarSalesPrice()
+ {
+ return this.significanceOfSimilarSalesPrice;
+ }
+ public @Nullable Double getSignificanceOfCommonDataKeys()
+ {
+ return this.significanceOfCommonDataKeys;
+ }
+ public @Nullable Double getSignificanceOfIdenticalDataValues()
+ {
+ return this.significanceOfIdenticalDataValues;
+ }
+ public @Nullable ArrayList getSignificantDataFields()
+ {
+ return this.significantDataFields;
+ }
+ public SimilarVariantEvaluationSettings setSignificanceOfSimilaritiesInDisplayName(@Nullable Double significanceOfSimilaritiesInDisplayName)
+ {
+ this.significanceOfSimilaritiesInDisplayName = significanceOfSimilaritiesInDisplayName;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings setSignificanceOfSimilarListPrice(@Nullable Double significanceOfSimilarListPrice)
+ {
+ this.significanceOfSimilarListPrice = significanceOfSimilarListPrice;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings setSignificanceOfSimilarSalesPrice(@Nullable Double significanceOfSimilarSalesPrice)
+ {
+ this.significanceOfSimilarSalesPrice = significanceOfSimilarSalesPrice;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings setSignificanceOfCommonDataKeys(@Nullable Double significanceOfCommonDataKeys)
+ {
+ this.significanceOfCommonDataKeys = significanceOfCommonDataKeys;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings setSignificanceOfIdenticalDataValues(@Nullable Double significanceOfIdenticalDataValues)
+ {
+ this.significanceOfIdenticalDataValues = significanceOfIdenticalDataValues;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings setSignificantDataFields(SignificantDataValue... significantDataFields)
+ {
+ this.significantDataFields = new ArrayList<>(Arrays.asList(significantDataFields));;
+ return this;
+ }
+ public SimilarVariantEvaluationSettings addToSignificantDataFields(SignificantDataValue significantDataFields)
+ {
+ if (this.significantDataFields == null)
+ {
+ this.significantDataFields = new ArrayList<>();
+ }
+ this.significantDataFields.add(significantDataFields);
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/SortMode.java b/src/src/main/java/com/relewise/client/model/SortMode.java
index 6a54eeb..83a354a 100644
--- a/src/src/main/java/com/relewise/client/model/SortMode.java
+++ b/src/src/main/java/com/relewise/client/model/SortMode.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SortOrder.java b/src/src/main/java/com/relewise/client/model/SortOrder.java
index a77ce78..21ed97f 100644
--- a/src/src/main/java/com/relewise/client/model/SortOrder.java
+++ b/src/src/main/java/com/relewise/client/model/SortOrder.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SortProductsRequest.java b/src/src/main/java/com/relewise/client/model/SortProductsRequest.java
index de12e30..c50ace6 100644
--- a/src/src/main/java/com/relewise/client/model/SortProductsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SortProductsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -108,4 +106,11 @@ public SortProductsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SortProductsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SortVariantsRequest.java b/src/src/main/java/com/relewise/client/model/SortVariantsRequest.java
index 8e52bbf..1c3daa6 100644
--- a/src/src/main/java/com/relewise/client/model/SortVariantsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SortVariantsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -95,4 +93,11 @@ public SortVariantsRequest setCurrency(Currency currency)
this.currency = currency;
return this;
}
+ /** @deprecated Use User.Channel instead. */
+ @Override
+ public SortVariantsRequest setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/SpecificationsIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/SpecificationsIndexConfiguration.java
index a89596e..dc5b33f 100644
--- a/src/src/main/java/com/relewise/client/model/SpecificationsIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/SpecificationsIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Statistics.java b/src/src/main/java/com/relewise/client/model/Statistics.java
index 0997c54..ee80b95 100644
--- a/src/src/main/java/com/relewise/client/model/Statistics.java
+++ b/src/src/main/java/com/relewise/client/model/Statistics.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRule.java b/src/src/main/java/com/relewise/client/model/StemmingRule.java
index 1f34cb4..e321937 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRule.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRule.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -27,7 +25,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class StemmingRule extends SearchRule
{
- public String $type = "Relewise.Client.DataTypes.Search.Configuration.SearchRules.StemmingRule, Relewise.Client";
+ public String $type = "Relewise.Client.DataTypes.Search.Rules.StemmingRule, Relewise.Client";
public String[] words;
public @Nullable String stem;
public static StemmingRule create(UUID id, @Nullable ApplicableIndexes indexes, @Nullable ApplicableLanguages languages, Boolean isApproved, String[] words, String stem)
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesRequest.java
index 61cc886..8142262 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = SaveRedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveRedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveDecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveDecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = SaveStemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SaveStemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SaveSearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SaveSearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class StemmingRuleSaveSearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesResponse.java
index 184bc68..23c8407 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRuleSaveSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRuleSearchRulesResponse.java b/src/src/main/java/com/relewise/client/model/StemmingRuleSearchRulesResponse.java
index bedb488..9165641 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRuleSearchRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRuleSearchRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.RedirectRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.DecompoundRulesResponse, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.StemmingRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchTermModifierRulesResponse, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesResponse.class, name = "Relewise.Client.Responses.Search.Rules.SearchResultModifierRulesResponse, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class StemmingRuleSearchRulesResponse extends TimedResponse
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRulesRequest.java b/src/src/main/java/com/relewise/client/model/StemmingRulesRequest.java
index 2b7e265..8556ea7 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBy.java b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBy.java
index 3fb0cb5..2dce2c2 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBy.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBy.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySearchRulesRequest.java b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySearchRulesRequest.java
index 77823ea..d0247f1 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySearchRulesRequest.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySearchRulesRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -28,6 +26,8 @@
@JsonSubTypes.Type(value = RedirectRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.RedirectRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = DecompoundRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.DecompoundRulesRequest, Relewise.Client"),
@JsonSubTypes.Type(value = StemmingRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.StemmingRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchTermModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchTermModifierRulesRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = SearchResultModifierRulesRequest.class, name = "Relewise.Client.Requests.Search.Rules.SearchResultModifierRulesRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class StemmingRulesRequestSortBySearchRulesRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySorting.java b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySorting.java
index 64dde7f..522b7bb 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySorting.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRulesRequestSortBySorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StemmingRulesResponse.java b/src/src/main/java/com/relewise/client/model/StemmingRulesResponse.java
index 80fc8f1..d8ae0d4 100644
--- a/src/src/main/java/com/relewise/client/model/StemmingRulesResponse.java
+++ b/src/src/main/java/com/relewise/client/model/StemmingRulesResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringAbandonedSearch.java b/src/src/main/java/com/relewise/client/model/StringAbandonedSearch.java
index 7b43ced..1bcd054 100644
--- a/src/src/main/java/com/relewise/client/model/StringAbandonedSearch.java
+++ b/src/src/main/java/com/relewise/client/model/StringAbandonedSearch.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -51,4 +49,10 @@ public StringAbandonedSearch setHits(Integer hits)
this.hits = hits;
return this;
}
+ @Override
+ public StringAbandonedSearch setLanguage(Language language)
+ {
+ this.language = language;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/StringAvailableFacetValue.java b/src/src/main/java/com/relewise/client/model/StringAvailableFacetValue.java
index 8551eaa..9d05cd1 100644
--- a/src/src/main/java/com/relewise/client/model/StringAvailableFacetValue.java
+++ b/src/src/main/java/com/relewise/client/model/StringAvailableFacetValue.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringBrandNameAndIdResultValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringBrandNameAndIdResultValueFacetResult.java
index 54fbb71..2e57a77 100644
--- a/src/src/main/java/com/relewise/client/model/StringBrandNameAndIdResultValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringBrandNameAndIdResultValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringCategoryNameAndIdResultValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringCategoryNameAndIdResultValueFacetResult.java
index ad9ba46..063f560 100644
--- a/src/src/main/java/com/relewise/client/model/StringCategoryNameAndIdResultValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringCategoryNameAndIdResultValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringContentDataValueFacet.java b/src/src/main/java/com/relewise/client/model/StringContentDataValueFacet.java
index df375a8..e8cf8b1 100644
--- a/src/src/main/java/com/relewise/client/model/StringContentDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringContentDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringContentDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringContentDataValueFacetResult.java
index bf30262..18c1436 100644
--- a/src/src/main/java/com/relewise/client/model/StringContentDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringContentDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacet.java b/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacet.java
index d7be2e1..cec20b0 100644
--- a/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacetResult.java
index c603c68..1c2043a 100644
--- a/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringDataObjectValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringDataValueFacet.java b/src/src/main/java/com/relewise/client/model/StringDataValueFacet.java
index cec3fe3..c1e53df 100644
--- a/src/src/main/java/com/relewise/client/model/StringDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringDataValueFacetResult.java
index 505dfb8..b56d287 100644
--- a/src/src/main/java/com/relewise/client/model/StringDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacet.java b/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacet.java
index 833ef3b..ecb289d 100644
--- a/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacetResult.java
index 2ee3fa6..b20ac79 100644
--- a/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringProductCategoryDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringProductDataValueFacet.java b/src/src/main/java/com/relewise/client/model/StringProductDataValueFacet.java
index e191434..8eada8c 100644
--- a/src/src/main/java/com/relewise/client/model/StringProductDataValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringProductDataValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringProductDataValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringProductDataValueFacetResult.java
index ddc2b17..8e3eeb1 100644
--- a/src/src/main/java/com/relewise/client/model/StringProductDataValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringProductDataValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringStringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringStringValueFacetResult.java
index 82cdd1d..70270f5 100644
--- a/src/src/main/java/com/relewise/client/model/StringStringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringStringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringValueFacet.java b/src/src/main/java/com/relewise/client/model/StringValueFacet.java
index a580cd4..bc47dc8 100644
--- a/src/src/main/java/com/relewise/client/model/StringValueFacet.java
+++ b/src/src/main/java/com/relewise/client/model/StringValueFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/StringValueFacetResult.java b/src/src/main/java/com/relewise/client/model/StringValueFacetResult.java
index 26ccacd..0f13b64 100644
--- a/src/src/main/java/com/relewise/client/model/StringValueFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/StringValueFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Synonym.java b/src/src/main/java/com/relewise/client/model/Synonym.java
index 843d575..625db4e 100644
--- a/src/src/main/java/com/relewise/client/model/Synonym.java
+++ b/src/src/main/java/com/relewise/client/model/Synonym.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SynonymType.java b/src/src/main/java/com/relewise/client/model/SynonymType.java
index f69f482..72d9daa 100644
--- a/src/src/main/java/com/relewise/client/model/SynonymType.java
+++ b/src/src/main/java/com/relewise/client/model/SynonymType.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SynonymsRequest.java b/src/src/main/java/com/relewise/client/model/SynonymsRequest.java
index de463a2..6f6adbf 100644
--- a/src/src/main/java/com/relewise/client/model/SynonymsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/SynonymsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSorting.java b/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSorting.java
index 04301bf..9b5cc08 100644
--- a/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSorting.java
+++ b/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSortingSorting.java b/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSortingSorting.java
index 360274f..39ce656 100644
--- a/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSortingSorting.java
+++ b/src/src/main/java/com/relewise/client/model/SynonymsRequestSynonymSortingSorting.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/SynonymsResponse.java b/src/src/main/java/com/relewise/client/model/SynonymsResponse.java
index cb5e5f7..c8a5b00 100644
--- a/src/src/main/java/com/relewise/client/model/SynonymsResponse.java
+++ b/src/src/main/java/com/relewise/client/model/SynonymsResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TargetConditionConfiguration.java b/src/src/main/java/com/relewise/client/model/TargetConditionConfiguration.java
index 9ba9401..b52234c 100644
--- a/src/src/main/java/com/relewise/client/model/TargetConditionConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/TargetConditionConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TimeUnit.java b/src/src/main/java/com/relewise/client/model/TimeUnit.java
new file mode 100644
index 0000000..ee4c9e2
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/TimeUnit.java
@@ -0,0 +1,37 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+public enum TimeUnit
+{
+ UnixMilliseconds {
+ public String toString() {
+ return "UnixMilliseconds";
+ }
+ },
+ UnixSeconds {
+ public String toString() {
+ return "UnixSeconds";
+ }
+ },
+ UnixMinutes {
+ public String toString() {
+ return "UnixMinutes";
+ }
+ },
+}
diff --git a/src/src/main/java/com/relewise/client/model/TimedResponse.java b/src/src/main/java/com/relewise/client/model/TimedResponse.java
index 359569e..b10d4b8 100644
--- a/src/src/main/java/com/relewise/client/model/TimedResponse.java
+++ b/src/src/main/java/com/relewise/client/model/TimedResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackBrandAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackBrandAdministrativeActionRequest.java
index ff86714..c963a8c 100644
--- a/src/src/main/java/com/relewise/client/model/TrackBrandAdministrativeActionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackBrandAdministrativeActionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackBrandUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackBrandUpdateRequest.java
index 6317bea..54e402a 100644
--- a/src/src/main/java/com/relewise/client/model/TrackBrandUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackBrandUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackBrandViewRequest.java b/src/src/main/java/com/relewise/client/model/TrackBrandViewRequest.java
index fbe716a..4477998 100644
--- a/src/src/main/java/com/relewise/client/model/TrackBrandViewRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackBrandViewRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackCartRequest.java b/src/src/main/java/com/relewise/client/model/TrackCartRequest.java
index e71def6..14d5600 100644
--- a/src/src/main/java/com/relewise/client/model/TrackCartRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackCartRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackCompanyAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackCompanyAdministrativeActionRequest.java
new file mode 100644
index 0000000..97feaba
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/TrackCompanyAdministrativeActionRequest.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = TrackCompanyAdministrativeActionRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class TrackCompanyAdministrativeActionRequest extends TrackingRequest
+{
+ public String $type = "Relewise.Client.Requests.Tracking.TrackCompanyAdministrativeActionRequest, Relewise.Client";
+ public CompanyAdministrativeAction administrativeAction;
+ public static TrackCompanyAdministrativeActionRequest create(CompanyAdministrativeAction administrativeAction)
+ {
+ return new TrackCompanyAdministrativeActionRequest(administrativeAction);
+ }
+ public TrackCompanyAdministrativeActionRequest(CompanyAdministrativeAction administrativeAction)
+ {
+ this.administrativeAction = administrativeAction;
+ }
+ public TrackCompanyAdministrativeActionRequest()
+ {
+ }
+ public CompanyAdministrativeAction getAdministrativeAction()
+ {
+ return this.administrativeAction;
+ }
+ public TrackCompanyAdministrativeActionRequest setAdministrativeAction(CompanyAdministrativeAction administrativeAction)
+ {
+ this.administrativeAction = administrativeAction;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/TrackCompanyUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackCompanyUpdateRequest.java
new file mode 100644
index 0000000..e43e713
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/TrackCompanyUpdateRequest.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = TrackCompanyUpdateRequest.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class TrackCompanyUpdateRequest extends TrackingRequest
+{
+ public String $type = "Relewise.Client.Requests.Tracking.TrackCompanyUpdateRequest, Relewise.Client";
+ public CompanyUpdate companyUpdate;
+ public static TrackCompanyUpdateRequest create(CompanyUpdate companyUpdate)
+ {
+ return new TrackCompanyUpdateRequest(companyUpdate);
+ }
+ public TrackCompanyUpdateRequest(CompanyUpdate companyUpdate)
+ {
+ this.companyUpdate = companyUpdate;
+ }
+ public TrackCompanyUpdateRequest()
+ {
+ }
+ public CompanyUpdate getCompanyUpdate()
+ {
+ return this.companyUpdate;
+ }
+ public TrackCompanyUpdateRequest setCompanyUpdate(CompanyUpdate companyUpdate)
+ {
+ this.companyUpdate = companyUpdate;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentAdministrativeActionRequest.java
index 20d0c47..78fc2de 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentAdministrativeActionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentAdministrativeActionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentCategoryAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentCategoryAdministrativeActionRequest.java
index 27bbd76..3467154 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentCategoryAdministrativeActionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentCategoryAdministrativeActionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentCategoryUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentCategoryUpdateRequest.java
index 0153bdd..2952736 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentCategoryUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentCategoryUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentCategoryViewRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentCategoryViewRequest.java
index 6e7067e..d77bf57 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentCategoryViewRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentCategoryViewRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentUpdateRequest.java
index 397da9a..197ae7e 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackContentViewRequest.java b/src/src/main/java/com/relewise/client/model/TrackContentViewRequest.java
index 248fb5c..8e2de6c 100644
--- a/src/src/main/java/com/relewise/client/model/TrackContentViewRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackContentViewRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackOrderRequest.java b/src/src/main/java/com/relewise/client/model/TrackOrderRequest.java
index 0b88f15..a76b999 100644
--- a/src/src/main/java/com/relewise/client/model/TrackOrderRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackOrderRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductAdministrativeActionRequest.java
index 0d0a33d..7c780e1 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductAdministrativeActionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductAdministrativeActionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductCategoryAdministrativeActionRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductCategoryAdministrativeActionRequest.java
index ac38179..6d459e7 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductCategoryAdministrativeActionRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductCategoryAdministrativeActionRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductCategoryUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductCategoryUpdateRequest.java
index 3898114..69e6ae0 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductCategoryUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductCategoryUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductCategoryViewRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductCategoryViewRequest.java
index 79915b4..fda69b7 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductCategoryViewRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductCategoryViewRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductUpdateRequest.java
index 4a14702..c23900a 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackProductViewRequest.java b/src/src/main/java/com/relewise/client/model/TrackProductViewRequest.java
index 0038e36..a85b37c 100644
--- a/src/src/main/java/com/relewise/client/model/TrackProductViewRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackProductViewRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackSearchTermRequest.java b/src/src/main/java/com/relewise/client/model/TrackSearchTermRequest.java
index 797f11d..c5bed54 100644
--- a/src/src/main/java/com/relewise/client/model/TrackSearchTermRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackSearchTermRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrackUserUpdateRequest.java b/src/src/main/java/com/relewise/client/model/TrackUserUpdateRequest.java
index a5250ba..09cd963 100644
--- a/src/src/main/java/com/relewise/client/model/TrackUserUpdateRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackUserUpdateRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/Trackable.java b/src/src/main/java/com/relewise/client/model/Trackable.java
index a784528..4acbcb7 100644
--- a/src/src/main/java/com/relewise/client/model/Trackable.java
+++ b/src/src/main/java/com/relewise/client/model/Trackable.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -43,6 +41,8 @@
@JsonSubTypes.Type(value = ContentCategoryAdministrativeAction.class, name = "Relewise.Client.DataTypes.ContentCategoryAdministrativeAction, Relewise.Client"),
@JsonSubTypes.Type(value = ContentCategoryView.class, name = "Relewise.Client.DataTypes.ContentCategoryView, Relewise.Client"),
@JsonSubTypes.Type(value = ContentCategoryUpdate.class, name = "Relewise.Client.DataTypes.ContentCategoryUpdate, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyUpdate.class, name = "Relewise.Client.DataTypes.CompanyUpdate, Relewise.Client"),
+ @JsonSubTypes.Type(value = CompanyAdministrativeAction.class, name = "Relewise.Client.DataTypes.CompanyAdministrativeAction, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Trackable
diff --git a/src/src/main/java/com/relewise/client/model/TrackingRequest.java b/src/src/main/java/com/relewise/client/model/TrackingRequest.java
index 9f4002f..f8d09c5 100644
--- a/src/src/main/java/com/relewise/client/model/TrackingRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TrackingRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -44,6 +42,8 @@
@JsonSubTypes.Type(value = TrackContentCategoryViewRequest.class, name = "Relewise.Client.Requests.Tracking.TrackContentCategoryViewRequest, Relewise.Client"),
@JsonSubTypes.Type(value = TrackContentCategoryUpdateRequest.class, name = "Relewise.Client.Requests.Tracking.TrackContentCategoryUpdateRequest, Relewise.Client"),
@JsonSubTypes.Type(value = TrackContentCategoryAdministrativeActionRequest.class, name = "Relewise.Client.Requests.Tracking.TrackContentCategoryAdministrativeActionRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = TrackCompanyUpdateRequest.class, name = "Relewise.Client.Requests.Tracking.TrackCompanyUpdateRequest, Relewise.Client"),
+ @JsonSubTypes.Type(value = TrackCompanyAdministrativeActionRequest.class, name = "Relewise.Client.Requests.Tracking.TrackCompanyAdministrativeActionRequest, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class TrackingRequest extends LicensedRequest
diff --git a/src/src/main/java/com/relewise/client/model/TriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/TriggerConfiguration.java
index f8281a3..8bf5e1c 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -30,6 +28,8 @@
@JsonSubTypes.Type(value = UserActivityTriggerConfiguration.class, name = "Relewise.Client.DataTypes.Triggers.Configurations.UserActivityTriggerConfiguration, Relewise.Client"),
@JsonSubTypes.Type(value = ContentCategoryInterestTriggerConfiguration.class, name = "Relewise.Client.DataTypes.Triggers.Configurations.ContentCategoryInterestTriggerConfiguration, Relewise.Client"),
@JsonSubTypes.Type(value = AbandonedSearchTriggerConfiguration.class, name = "Relewise.Client.DataTypes.Triggers.Configurations.AbandonedSearchTriggerConfiguration, Relewise.Client"),
+ @JsonSubTypes.Type(value = ProductChangeTriggerConfiguration.class, name = "Relewise.Client.DataTypes.Triggers.Configurations.ProductChangeTriggerConfiguration, Relewise.Client"),
+ @JsonSubTypes.Type(value = VariantChangeTriggerConfiguration.class, name = "Relewise.Client.DataTypes.Triggers.Configurations.VariantChangeTriggerConfiguration, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class TriggerConfiguration
diff --git a/src/src/main/java/com/relewise/client/model/TriggerConfigurationCollectionResponse.java b/src/src/main/java/com/relewise/client/model/TriggerConfigurationCollectionResponse.java
index 983ddbb..b2bd8d2 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerConfigurationCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerConfigurationCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggerConfigurationRequest.java b/src/src/main/java/com/relewise/client/model/TriggerConfigurationRequest.java
index 1622ac7..99e83b9 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerConfigurationRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerConfigurationRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggerConfigurationResponse.java b/src/src/main/java/com/relewise/client/model/TriggerConfigurationResponse.java
index 88aaf6c..9a220f5 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerConfigurationResponse.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerConfigurationResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggerConfigurationsRequest.java b/src/src/main/java/com/relewise/client/model/TriggerConfigurationsRequest.java
index 64e87d6..758d3c1 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerConfigurationsRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerConfigurationsRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggerResultRequest.java b/src/src/main/java/com/relewise/client/model/TriggerResultRequest.java
index 9bed34a..49d4b8e 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerResultRequest.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerResultRequest.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggerResultResponse.java b/src/src/main/java/com/relewise/client/model/TriggerResultResponse.java
index 4691d18..b720791 100644
--- a/src/src/main/java/com/relewise/client/model/TriggerResultResponse.java
+++ b/src/src/main/java/com/relewise/client/model/TriggerResultResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TriggersResponse.java b/src/src/main/java/com/relewise/client/model/TriggersResponse.java
index ea8439f..626d1b3 100644
--- a/src/src/main/java/com/relewise/client/model/TriggersResponse.java
+++ b/src/src/main/java/com/relewise/client/model/TriggersResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/TrimStringTransformer.java b/src/src/main/java/com/relewise/client/model/TrimStringTransformer.java
index 34eb003..7b4be89 100644
--- a/src/src/main/java/com/relewise/client/model/TrimStringTransformer.java
+++ b/src/src/main/java/com/relewise/client/model/TrimStringTransformer.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/User.java b/src/src/main/java/com/relewise/client/model/User.java
index 2f72494..9b0530d 100644
--- a/src/src/main/java/com/relewise/client/model/User.java
+++ b/src/src/main/java/com/relewise/client/model/User.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -34,8 +32,11 @@ public class User
public @Nullable HashMap identifiers;
/** Data stored on the user */
public @Nullable HashMap 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 @Nullable String fingerprint;
+ public @Nullable 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 @Nullable Company company;
/**
* User DTO
* @param authenticatedId A persistent Id for current user, e.g. a database-id
@@ -103,11 +104,20 @@ public User()
{
return this.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 @Nullable String getFingerprint()
{
return this.fingerprint;
}
+ public @Nullable Channel getChannel()
+ {
+ return this.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 @Nullable Company getCompany()
+ {
+ return this.company;
+ }
/** A persistent Id for current user, e.g. a database-id This Id should never be expected to change in the future */
public User setAuthenticatedId(String authenticatedId)
{
@@ -174,10 +184,21 @@ public User setData(HashMap 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 */
public User setFingerprint(String fingerprint)
{
this.fingerprint = fingerprint;
return this;
}
+ public User 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) */
+ public User setCompany(Company company)
+ {
+ this.company = company;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/UserActivityTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/UserActivityTriggerConfiguration.java
index 71b5504..693ffdf 100644
--- a/src/src/main/java/com/relewise/client/model/UserActivityTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/UserActivityTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserActivityTriggerResult.java b/src/src/main/java/com/relewise/client/model/UserActivityTriggerResult.java
index c3e3385..cc6641c 100644
--- a/src/src/main/java/com/relewise/client/model/UserActivityTriggerResult.java
+++ b/src/src/main/java/com/relewise/client/model/UserActivityTriggerResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserActivityTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/UserActivityTriggerResultTriggerConfiguration.java
index 98f8098..a6d52d5 100644
--- a/src/src/main/java/com/relewise/client/model/UserActivityTriggerResultTriggerConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/UserActivityTriggerResultTriggerConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserAssociatedCompanyResultDetails.java b/src/src/main/java/com/relewise/client/model/UserAssociatedCompanyResultDetails.java
new file mode 100644
index 0000000..a8401c6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/UserAssociatedCompanyResultDetails.java
@@ -0,0 +1,93 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class UserAssociatedCompanyResultDetails
+{
+ public String id;
+ public @Nullable UserAssociatedCompanyResultDetails parent;
+ public @Nullable HashMap data;
+ public OffsetDateTime createdUtc;
+ public OffsetDateTime lastAccessedUtc;
+ public static UserAssociatedCompanyResultDetails create(String id)
+ {
+ return new UserAssociatedCompanyResultDetails(id);
+ }
+ public UserAssociatedCompanyResultDetails(String id)
+ {
+ this.id = id;
+ }
+ public UserAssociatedCompanyResultDetails()
+ {
+ }
+ public String getId()
+ {
+ return this.id;
+ }
+ public @Nullable UserAssociatedCompanyResultDetails getParent()
+ {
+ return this.parent;
+ }
+ public @Nullable HashMap getData()
+ {
+ return this.data;
+ }
+ public OffsetDateTime getCreatedUtc()
+ {
+ return this.createdUtc;
+ }
+ public OffsetDateTime getLastAccessedUtc()
+ {
+ return this.lastAccessedUtc;
+ }
+ public UserAssociatedCompanyResultDetails setId(String id)
+ {
+ this.id = id;
+ return this;
+ }
+ public UserAssociatedCompanyResultDetails setParent(UserAssociatedCompanyResultDetails parent)
+ {
+ this.parent = parent;
+ return this;
+ }
+ public UserAssociatedCompanyResultDetails addToData(String key, DataValue value)
+ {
+ if (this.data == null)
+ {
+ this.data = new HashMap<>();
+ }
+ this.data.put(key, value);
+ return this;
+ }
+ public UserAssociatedCompanyResultDetails setData(HashMap data)
+ {
+ this.data = data;
+ return this;
+ }
+ public UserAssociatedCompanyResultDetails setCreatedUtc(OffsetDateTime createdUtc)
+ {
+ this.createdUtc = createdUtc;
+ return this;
+ }
+ public UserAssociatedCompanyResultDetails setLastAccessedUtc(OffsetDateTime lastAccessedUtc)
+ {
+ this.lastAccessedUtc = lastAccessedUtc;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/UserCondition.java b/src/src/main/java/com/relewise/client/model/UserCondition.java
index 6682a0f..6bd7f29 100644
--- a/src/src/main/java/com/relewise/client/model/UserCondition.java
+++ b/src/src/main/java/com/relewise/client/model/UserCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserConditionCollection.java b/src/src/main/java/com/relewise/client/model/UserConditionCollection.java
index 95d5676..fa04f62 100644
--- a/src/src/main/java/com/relewise/client/model/UserConditionCollection.java
+++ b/src/src/main/java/com/relewise/client/model/UserConditionCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserConditionConfiguration.java b/src/src/main/java/com/relewise/client/model/UserConditionConfiguration.java
index 5a28c2c..e8d3f76 100644
--- a/src/src/main/java/com/relewise/client/model/UserConditionConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/UserConditionConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserDetailsCollectionResponse.java b/src/src/main/java/com/relewise/client/model/UserDetailsCollectionResponse.java
index ab236b3..767d7ed 100644
--- a/src/src/main/java/com/relewise/client/model/UserDetailsCollectionResponse.java
+++ b/src/src/main/java/com/relewise/client/model/UserDetailsCollectionResponse.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserFavoriteProductRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/UserFavoriteProductRelevanceModifier.java
index 82601a2..a459533 100644
--- a/src/src/main/java/com/relewise/client/model/UserFavoriteProductRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/UserFavoriteProductRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Product depending on whether a product has been bought within some interval of minutes SinceMinutesAgo
from now, which can define complex modifiers depending on the number of purchases and how long time there has passed since the last purchase. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class UserFavoriteProductRelevanceModifier extends RelevanceModifier implements IProductRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.UserFavoriteProductRelevanceModifier, Relewise.Client";
+ /** The timespan in minutes up till now that a product should be considered relevant if it has been bought by the user. */
public Integer sinceMinutesAgo;
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public Double numberOfPurchasesWeight;
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public Double mostRecentPurchaseWeight;
+ /** The multiplier that decides how important more recent purchases should */
public Double ifNotPurchasedBaseWeight;
public static UserFavoriteProductRelevanceModifier create(Integer sinceMinutesAgo)
{
@@ -43,10 +46,24 @@ public UserFavoriteProductRelevanceModifier(Integer sinceMinutesAgo)
this.mostRecentPurchaseWeight = 1d;
this.ifNotPurchasedBaseWeight = 1d;
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether a product has been bought within some interval of minutes SinceMinutesAgo
from now, which can define complex modifiers depending on the number of purchases and how long time there has passed since the last purchase.
+ * @param sinceMinutesAgo The timespan in minutes up till now that a product should be considered relevant if it has been bought by the user.
+ * @param numberOfPurchasesWeight The multiplier that decides how important the amount of times the product has been bought is.
+ * @param mostRecentPurchaseWeight The multiplier that decides how important the amount of times the product has been bought is.
+ * @param ifNotPurchasedBaseWeight The multiplier that decides how important more recent purchases should
+ */
public static UserFavoriteProductRelevanceModifier create(Integer sinceMinutesAgo, Double numberOfPurchasesWeight, Double mostRecentPurchaseWeight, Double ifNotPurchasedBaseWeight)
{
return new UserFavoriteProductRelevanceModifier(sinceMinutesAgo, numberOfPurchasesWeight, mostRecentPurchaseWeight, ifNotPurchasedBaseWeight);
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Product depending on whether a product has been bought within some interval of minutes SinceMinutesAgo
from now, which can define complex modifiers depending on the number of purchases and how long time there has passed since the last purchase.
+ * @param sinceMinutesAgo The timespan in minutes up till now that a product should be considered relevant if it has been bought by the user.
+ * @param numberOfPurchasesWeight The multiplier that decides how important the amount of times the product has been bought is.
+ * @param mostRecentPurchaseWeight The multiplier that decides how important the amount of times the product has been bought is.
+ * @param ifNotPurchasedBaseWeight The multiplier that decides how important more recent purchases should
+ */
public UserFavoriteProductRelevanceModifier(Integer sinceMinutesAgo, Double numberOfPurchasesWeight, Double mostRecentPurchaseWeight, Double ifNotPurchasedBaseWeight)
{
this.sinceMinutesAgo = sinceMinutesAgo;
@@ -60,37 +77,45 @@ public UserFavoriteProductRelevanceModifier()
this.mostRecentPurchaseWeight = 1d;
this.ifNotPurchasedBaseWeight = 1d;
}
+ /** The timespan in minutes up till now that a product should be considered relevant if it has been bought by the user. */
public Integer getSinceMinutesAgo()
{
return this.sinceMinutesAgo;
}
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public Double getNumberOfPurchasesWeight()
{
return this.numberOfPurchasesWeight;
}
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public Double getMostRecentPurchaseWeight()
{
return this.mostRecentPurchaseWeight;
}
+ /** The multiplier that decides how important more recent purchases should */
public Double getIfNotPurchasedBaseWeight()
{
return this.ifNotPurchasedBaseWeight;
}
+ /** The timespan in minutes up till now that a product should be considered relevant if it has been bought by the user. */
public UserFavoriteProductRelevanceModifier setSinceMinutesAgo(Integer sinceMinutesAgo)
{
this.sinceMinutesAgo = sinceMinutesAgo;
return this;
}
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public UserFavoriteProductRelevanceModifier setNumberOfPurchasesWeight(Double numberOfPurchasesWeight)
{
this.numberOfPurchasesWeight = numberOfPurchasesWeight;
return this;
}
+ /** The multiplier that decides how important the amount of times the product has been bought is. */
public UserFavoriteProductRelevanceModifier setMostRecentPurchaseWeight(Double mostRecentPurchaseWeight)
{
this.mostRecentPurchaseWeight = mostRecentPurchaseWeight;
return this;
}
+ /** The multiplier that decides how important more recent purchases should */
public UserFavoriteProductRelevanceModifier setIfNotPurchasedBaseWeight(Double ifNotPurchasedBaseWeight)
{
this.ifNotPurchasedBaseWeight = ifNotPurchasedBaseWeight;
diff --git a/src/src/main/java/com/relewise/client/model/UserQuery.java b/src/src/main/java/com/relewise/client/model/UserQuery.java
index 5d63a30..38b82da 100644
--- a/src/src/main/java/com/relewise/client/model/UserQuery.java
+++ b/src/src/main/java/com/relewise/client/model/UserQuery.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserQueryCriteria.java b/src/src/main/java/com/relewise/client/model/UserQueryCriteria.java
index e758ad7..4b0702a 100644
--- a/src/src/main/java/com/relewise/client/model/UserQueryCriteria.java
+++ b/src/src/main/java/com/relewise/client/model/UserQueryCriteria.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserResultDetails.java b/src/src/main/java/com/relewise/client/model/UserResultDetails.java
index 68e1abf..a522d5a 100644
--- a/src/src/main/java/com/relewise/client/model/UserResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/UserResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -37,6 +35,8 @@ public class UserResultDetails
public HashMap data;
/** All known temporary ids for the user */
public String[] temporaryIds;
+ public @Nullable Channel channel;
+ public @Nullable UserAssociatedCompanyResultDetails company;
public static UserResultDetails create()
{
return new UserResultDetails();
@@ -101,6 +101,14 @@ public String[] getTemporaryIds()
{
return this.temporaryIds;
}
+ public @Nullable Channel getChannel()
+ {
+ return this.channel;
+ }
+ public @Nullable UserAssociatedCompanyResultDetails getCompany()
+ {
+ return this.company;
+ }
public UserResultDetails setAuthenticatedId(String authenticatedId)
{
this.authenticatedId = authenticatedId;
@@ -223,4 +231,14 @@ public UserResultDetails addToTemporaryIds(String temporaryId)
}
return this;
}
+ public UserResultDetails setChannel(Channel channel)
+ {
+ this.channel = channel;
+ return this;
+ }
+ public UserResultDetails setCompany(UserAssociatedCompanyResultDetails company)
+ {
+ this.company = company;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/UserUpdate.java b/src/src/main/java/com/relewise/client/model/UserUpdate.java
index b5daacf..6c1bd7d 100644
--- a/src/src/main/java/com/relewise/client/model/UserUpdate.java
+++ b/src/src/main/java/com/relewise/client/model/UserUpdate.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/UserUpdateUpdateKind.java b/src/src/main/java/com/relewise/client/model/UserUpdateUpdateKind.java
index 59d21f4..5f1f87f 100644
--- a/src/src/main/java/com/relewise/client/model/UserUpdateUpdateKind.java
+++ b/src/src/main/java/com/relewise/client/model/UserUpdateUpdateKind.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/ValueCondition.java b/src/src/main/java/com/relewise/client/model/ValueCondition.java
index 417405f..3e77180 100644
--- a/src/src/main/java/com/relewise/client/model/ValueCondition.java
+++ b/src/src/main/java/com/relewise/client/model/ValueCondition.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -29,16 +27,21 @@
@JsonSubTypes.Type(value = GreaterThanCondition.class, name = "Relewise.Client.Requests.Conditions.GreaterThanCondition, Relewise.Client"),
@JsonSubTypes.Type(value = LessThanCondition.class, name = "Relewise.Client.Requests.Conditions.LessThanCondition, Relewise.Client"),
@JsonSubTypes.Type(value = DistinctCondition.class, name = "Relewise.Client.Requests.Conditions.DistinctCondition, Relewise.Client"),
+ @JsonSubTypes.Type(value = RelativeDateTimeCondition.class, name = "Relewise.Client.Requests.Conditions.RelativeDateTimeCondition, Relewise.Client"),
+ @JsonSubTypes.Type(value = HasValueCondition.class, name = "Relewise.Client.Requests.Conditions.HasValueCondition, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class ValueCondition
{
public String $type = "";
+ /** Whether the condition should be negated / inverted */
public Boolean negated;
+ /** Whether the condition should be negated / inverted */
public Boolean getNegated()
{
return this.negated;
}
+ /** Whether the condition should be negated / inverted */
public ValueCondition setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/ValueConditionCollection.java b/src/src/main/java/com/relewise/client/model/ValueConditionCollection.java
index 40235c5..2d8837d 100644
--- a/src/src/main/java/com/relewise/client/model/ValueConditionCollection.java
+++ b/src/src/main/java/com/relewise/client/model/ValueConditionCollection.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,9 +17,11 @@
import java.util.Set;
import java.util.HashSet;
+/** a collection that contains multiple ValueCondition
s in its inner list Items
. */
@JsonIgnoreProperties(ignoreUnknown = true)
public class ValueConditionCollection
{
+ /** The items that this collection holds. */
public @Nullable ArrayList items;
public static ValueConditionCollection create()
{
@@ -30,15 +30,18 @@ public static ValueConditionCollection create()
public ValueConditionCollection()
{
}
+ /** The items that this collection holds. */
public @Nullable ArrayList getItems()
{
return this.items;
}
+ /** The items that this collection holds. */
public ValueConditionCollection setItems(ValueCondition... items)
{
this.items = new ArrayList<>(Arrays.asList(items));;
return this;
}
+ /** The items that this collection holds. */
public ValueConditionCollection addToItems(ValueCondition items)
{
if (this.items == null)
diff --git a/src/src/main/java/com/relewise/client/model/ValueSelector.java b/src/src/main/java/com/relewise/client/model/ValueSelector.java
index 11d685f..5d5bf7e 100644
--- a/src/src/main/java/com/relewise/client/model/ValueSelector.java
+++ b/src/src/main/java/com/relewise/client/model/ValueSelector.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantAssortmentFilter.java b/src/src/main/java/com/relewise/client/model/VariantAssortmentFilter.java
index 9afa89d..79bc4e7 100644
--- a/src/src/main/java/com/relewise/client/model/VariantAssortmentFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantAssortmentFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public VariantAssortmentFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantAssortmentFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantAssortmentRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantAssortmentRelevanceModifier.java
index c0e198e..7880ed0 100644
--- a/src/src/main/java/com/relewise/client/model/VariantAssortmentRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantAssortmentRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Variant depending on whether the Assortments match Assortments
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,7 +27,9 @@
public class VariantAssortmentRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantAssortmentRelevanceModifier, Relewise.Client";
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public Integer[] assortments;
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public Double multiplyWeightBy;
public static VariantAssortmentRelevanceModifier create()
{
@@ -46,19 +47,23 @@ public VariantAssortmentRelevanceModifier(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public Integer[] getAssortments()
{
return this.assortments;
}
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public VariantAssortmentRelevanceModifier setAssortments(Integer... assortments)
{
this.assortments = assortments;
return this;
}
+ /** The assortments that this RelevanceModifier
will multiply the weight for. */
public VariantAssortmentRelevanceModifier addToAssortments(Integer assortment)
{
if (this.assortments == null)
@@ -73,6 +78,7 @@ public VariantAssortmentRelevanceModifier addToAssortments(Integer assortment)
}
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public VariantAssortmentRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerConfiguration.java
new file mode 100644
index 0000000..2b3a298
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerConfiguration.java
@@ -0,0 +1,155 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = VariantChangeTriggerConfiguration.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantChangeTriggerConfiguration extends VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration
+{
+ public String $type = "Relewise.Client.DataTypes.Triggers.Configurations.VariantChangeTriggerConfiguration, Relewise.Client";
+ public static VariantChangeTriggerConfiguration create(String name, String description, VariantPropertySelector entityPropertySelector, IChange change, VariantChangeTriggerResultSettings resultSettings)
+ {
+ return new VariantChangeTriggerConfiguration(name, description, entityPropertySelector, change, resultSettings);
+ }
+ public VariantChangeTriggerConfiguration(String name, String description, VariantPropertySelector entityPropertySelector, IChange change, VariantChangeTriggerResultSettings resultSettings)
+ {
+ this.name = name;
+ this.description = description;
+ this.entityPropertySelector = entityPropertySelector;
+ this.change = change;
+ this.resultSettings = resultSettings;
+ }
+ public VariantChangeTriggerConfiguration()
+ {
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setEntityPropertySelector(VariantPropertySelector entityPropertySelector)
+ {
+ this.entityPropertySelector = entityPropertySelector;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
+ {
+ this.beforeChangeFilters = beforeChangeFilters;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
+ {
+ this.afterChangeFilters = afterChangeFilters;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setChange(IChange change)
+ {
+ this.change = change;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setResultSettings(VariantChangeTriggerResultSettings resultSettings)
+ {
+ this.resultSettings = resultSettings;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public VariantChangeTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResult.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResult.java
new file mode 100644
index 0000000..914fb16
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResult.java
@@ -0,0 +1,67 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = VariantChangeTriggerResult.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantChangeTriggerResult extends VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult implements ITriggerResult
+{
+ public String $type = "Relewise.Client.Responses.Triggers.Results.VariantChangeTriggerResult, Relewise.Client";
+ public static VariantChangeTriggerResult create(UserResultDetails user, VariantChangeTriggerResultVariantChangeResultDetails... entitiesWithChanges)
+ {
+ return new VariantChangeTriggerResult(user, entitiesWithChanges);
+ }
+ public VariantChangeTriggerResult(UserResultDetails user, VariantChangeTriggerResultVariantChangeResultDetails... entitiesWithChanges)
+ {
+ this.user = user;
+ this.entitiesWithChanges = entitiesWithChanges;
+ }
+ public VariantChangeTriggerResult()
+ {
+ }
+ @Override
+ public VariantChangeTriggerResult setEntitiesWithChanges(VariantChangeTriggerResultVariantChangeResultDetails... entitiesWithChanges)
+ {
+ this.entitiesWithChanges = entitiesWithChanges;
+ return this;
+ }
+ public VariantChangeTriggerResult addToEntitiesWithChanges(VariantChangeTriggerResultVariantChangeResultDetails entitiesWithChange)
+ {
+ if (this.entitiesWithChanges == null)
+ {
+ this.entitiesWithChanges = new VariantChangeTriggerResultVariantChangeResultDetails[] { entitiesWithChange };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.entitiesWithChanges));
+ existingList.add(entitiesWithChange);
+ this.entitiesWithChanges = existingList.toArray(new VariantChangeTriggerResultVariantChangeResultDetails[0]);
+ }
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResult setUser(UserResultDetails user)
+ {
+ this.user = user;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultSettings.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultSettings.java
new file mode 100644
index 0000000..9f7a7e6
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultSettings.java
@@ -0,0 +1,50 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantChangeTriggerResultSettings
+{
+ public SelectedProductPropertiesSettings selectedProductProperties;
+ public SelectedVariantPropertiesSettings selectedVariantProperties;
+ public static VariantChangeTriggerResultSettings create()
+ {
+ return new VariantChangeTriggerResultSettings();
+ }
+ public VariantChangeTriggerResultSettings()
+ {
+ }
+ public SelectedProductPropertiesSettings getSelectedProductProperties()
+ {
+ return this.selectedProductProperties;
+ }
+ public SelectedVariantPropertiesSettings getSelectedVariantProperties()
+ {
+ return this.selectedVariantProperties;
+ }
+ public VariantChangeTriggerResultSettings setSelectedProductProperties(SelectedProductPropertiesSettings selectedProductProperties)
+ {
+ this.selectedProductProperties = selectedProductProperties;
+ return this;
+ }
+ public VariantChangeTriggerResultSettings setSelectedVariantProperties(SelectedVariantPropertiesSettings selectedVariantProperties)
+ {
+ this.selectedVariantProperties = selectedVariantProperties;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultTriggerConfiguration.java
new file mode 100644
index 0000000..4f051c7
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultTriggerConfiguration.java
@@ -0,0 +1,111 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class VariantChangeTriggerResultTriggerConfiguration extends TriggerConfiguration
+{
+ public String $type = "";
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public VariantChangeTriggerResultTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetails.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetails.java
new file mode 100644
index 0000000..754a7c0
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetails.java
@@ -0,0 +1,88 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantChangeTriggerResultVariantChangeResultDetails
+{
+ public OffsetDateTime changeTime;
+ public DataValue oldValue;
+ public DataValue newValue;
+ public ProductResultDetails product;
+ public VariantResultDetails variant;
+ public static VariantChangeTriggerResultVariantChangeResultDetails create(OffsetDateTime changeTime, DataValue oldValue, DataValue newValue, ProductResultDetails product, VariantResultDetails variant)
+ {
+ return new VariantChangeTriggerResultVariantChangeResultDetails(changeTime, oldValue, newValue, product, variant);
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails(OffsetDateTime changeTime, DataValue oldValue, DataValue newValue, ProductResultDetails product, VariantResultDetails variant)
+ {
+ this.changeTime = changeTime;
+ this.oldValue = oldValue;
+ this.newValue = newValue;
+ this.product = product;
+ this.variant = variant;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails()
+ {
+ }
+ public OffsetDateTime getChangeTime()
+ {
+ return this.changeTime;
+ }
+ public DataValue getOldValue()
+ {
+ return this.oldValue;
+ }
+ public DataValue getNewValue()
+ {
+ return this.newValue;
+ }
+ public ProductResultDetails getProduct()
+ {
+ return this.product;
+ }
+ public VariantResultDetails getVariant()
+ {
+ return this.variant;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails setChangeTime(OffsetDateTime changeTime)
+ {
+ this.changeTime = changeTime;
+ return this;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails setOldValue(DataValue oldValue)
+ {
+ this.oldValue = oldValue;
+ return this;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails setNewValue(DataValue newValue)
+ {
+ this.newValue = newValue;
+ return this;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails setProduct(ProductResultDetails product)
+ {
+ this.product = product;
+ return this;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetails setVariant(VariantResultDetails variant)
+ {
+ this.variant = variant;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult.java
new file mode 100644
index 0000000..8ba7882
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult.java
@@ -0,0 +1,46 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult extends EntityChangeTriggerResult implements ITriggerResult
+{
+ public String $type = "";
+ public VariantChangeTriggerResultVariantChangeResultDetails[] entitiesWithChanges;
+ public VariantChangeTriggerResultVariantChangeResultDetails[] getEntitiesWithChanges()
+ {
+ return this.entitiesWithChanges;
+ }
+ public VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult setEntitiesWithChanges(VariantChangeTriggerResultVariantChangeResultDetails... entitiesWithChanges)
+ {
+ this.entitiesWithChanges = entitiesWithChanges;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeResultDetailsEntityChangeTriggerResult setUser(UserResultDetails user)
+ {
+ this.user = user;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration.java
new file mode 100644
index 0000000..45ac20f
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration.java
@@ -0,0 +1,176 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration extends VariantChangeTriggerResultTriggerConfiguration
+{
+ public String $type = "";
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable VariantPropertySelector entityPropertySelector;
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection beforeChangeFilters;
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection afterChangeFilters;
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange change;
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable VariantChangeTriggerResultSettings resultSettings;
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public @Nullable VariantPropertySelector getEntityPropertySelector()
+ {
+ return this.entityPropertySelector;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public FilterCollection getBeforeChangeFilters()
+ {
+ return this.beforeChangeFilters;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public FilterCollection getAfterChangeFilters()
+ {
+ return this.afterChangeFilters;
+ }
+ /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
+ public IChange getChange()
+ {
+ return this.change;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public @Nullable VariantChangeTriggerResultSettings getResultSettings()
+ {
+ return this.resultSettings;
+ }
+ /** The selector used for choosing which property of the entity the trigger should look for change in. */
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setEntityPropertySelector(VariantPropertySelector entityPropertySelector)
+ {
+ this.entityPropertySelector = entityPropertySelector;
+ return this;
+ }
+ /** The filter that specifies which entities the trigger should track changes for. */
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
+ {
+ this.beforeChangeFilters = beforeChangeFilters;
+ return this;
+ }
+ /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
+ {
+ this.afterChangeFilters = afterChangeFilters;
+ 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. */
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setChange(IChange change)
+ {
+ this.change = change;
+ return this;
+ }
+ /** Settings for defining which properties should be included in the result of the trigger. */
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setResultSettings(VariantChangeTriggerResultSettings resultSettings)
+ {
+ this.resultSettings = resultSettings;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setId(UUID id)
+ {
+ this.id = id;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setName(String name)
+ {
+ this.name = name;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setDescription(String description)
+ {
+ this.description = description;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setGroup(String group)
+ {
+ this.group = group;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setEnabled(Boolean enabled)
+ {
+ this.enabled = enabled;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setCreated(OffsetDateTime created)
+ {
+ this.created = created;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setCreatedBy(String createdBy)
+ {
+ this.createdBy = createdBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setModified(OffsetDateTime modified)
+ {
+ this.modified = modified;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setModifiedBy(String modifiedBy)
+ {
+ this.modifiedBy = modifiedBy;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
+ {
+ this.withinTimeSpanMinutes = withinTimeSpanMinutes;
+ return this;
+ }
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration addToSettings(String key, String value)
+ {
+ if (this.settings == null)
+ {
+ this.settings = new HashMap<>();
+ }
+ this.settings.put(key, value);
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setSettings(HashMap settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+ @Override
+ public VariantChangeTriggerResultVariantChangeTriggerResultSettingsVariantPropertySelectorEntityChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
+ {
+ this.userConditions = userConditions;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantDataFilter.java b/src/src/main/java/com/relewise/client/model/VariantDataFilter.java
index bcd283c..a67f9ba 100644
--- a/src/src/main/java/com/relewise/client/model/VariantDataFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantDataFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -152,4 +150,10 @@ public VariantDataFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantDataFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantDataHasKeyFilter.java b/src/src/main/java/com/relewise/client/model/VariantDataHasKeyFilter.java
new file mode 100644
index 0000000..169f4d1
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantDataHasKeyFilter.java
@@ -0,0 +1,73 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = VariantDataHasKeyFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantDataHasKeyFilter extends Filter implements IVariantFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.VariantDataHasKeyFilter, Relewise.Client";
+ public String key;
+ public static VariantDataHasKeyFilter create(String key)
+ {
+ return new VariantDataHasKeyFilter(key);
+ }
+ public VariantDataHasKeyFilter(String key)
+ {
+ this.key = key;
+ this.negated = false;
+ }
+ public static VariantDataHasKeyFilter create(String key, Boolean negated)
+ {
+ return new VariantDataHasKeyFilter(key, negated);
+ }
+ public VariantDataHasKeyFilter(String key, Boolean negated)
+ {
+ this.key = key;
+ this.negated = negated;
+ }
+ public VariantDataHasKeyFilter()
+ {
+ this.negated = false;
+ }
+ public String getKey()
+ {
+ return this.key;
+ }
+ public VariantDataHasKeyFilter setKey(String key)
+ {
+ this.key = key;
+ return this;
+ }
+ @Override
+ public VariantDataHasKeyFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public VariantDataHasKeyFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantDataRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantDataRelevanceModifier.java
index dc58638..2322eda 100644
--- a/src/src/main/java/com/relewise/client/model/VariantDataRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantDataRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,22 +17,16 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a variant depending on matching conditions on a certain key. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "$type",
defaultImpl = VariantDataRelevanceModifier.class)
@JsonIgnoreProperties(ignoreUnknown = true)
-public class VariantDataRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
+public class VariantDataRelevanceModifier extends DataRelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantDataRelevanceModifier, Relewise.Client";
- public String key;
- public Boolean considerAsMatchIfKeyIsNotFound;
- /** @deprecated Use MultiplierSelector instead */
- public Double multiplyWeightBy;
- public Boolean mustMatchAllConditions;
- public ArrayList conditions;
- public ValueSelector multiplierSelector;
public static VariantDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector)
{
return new VariantDataRelevanceModifier(key, conditions, multiplierSelector);
@@ -47,10 +39,20 @@ public VariantDataRelevanceModifier(String key, ArrayList condit
this.mustMatchAllConditions = true;
this.considerAsMatchIfKeyIsNotFound = false;
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a variant depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
public static VariantDataRelevanceModifier create(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
return new VariantDataRelevanceModifier(key, conditions, multiplierSelector, mustMatchAllConditions, considerAsMatchIfKeyIsNotFound);
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a variant depending on matching conditions on a certain key.
+ * @param key The data key that this RelevanceModifier will distinguish on.
+ * @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
+ */
public VariantDataRelevanceModifier(String key, ArrayList conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
this.key = key;
@@ -64,52 +66,32 @@ public VariantDataRelevanceModifier()
this.considerAsMatchIfKeyIsNotFound = false;
this.mustMatchAllConditions = true;
}
- public String getKey()
- {
- return this.key;
- }
- public Boolean getConsiderAsMatchIfKeyIsNotFound()
- {
- return this.considerAsMatchIfKeyIsNotFound;
- }
- /** @deprecated Use MultiplierSelector instead */
- public Double getMultiplyWeightBy()
- {
- return this.multiplyWeightBy;
- }
- public Boolean getMustMatchAllConditions()
- {
- return this.mustMatchAllConditions;
- }
- public ArrayList getConditions()
- {
- return this.conditions;
- }
- public ValueSelector getMultiplierSelector()
- {
- return this.multiplierSelector;
- }
+ @Override
public VariantDataRelevanceModifier setKey(String key)
{
this.key = key;
return this;
}
+ @Override
public VariantDataRelevanceModifier setConsiderAsMatchIfKeyIsNotFound(Boolean considerAsMatchIfKeyIsNotFound)
{
this.considerAsMatchIfKeyIsNotFound = considerAsMatchIfKeyIsNotFound;
return this;
}
/** @deprecated Use MultiplierSelector instead */
+ @Override
public VariantDataRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ @Override
public VariantDataRelevanceModifier setMustMatchAllConditions(Boolean mustMatchAllConditions)
{
this.mustMatchAllConditions = mustMatchAllConditions;
return this;
}
+ @Override
public VariantDataRelevanceModifier setConditions(ValueCondition... conditions)
{
this.conditions = new ArrayList<>(Arrays.asList(conditions));;
@@ -124,6 +106,7 @@ public VariantDataRelevanceModifier addToConditions(ValueCondition conditions)
this.conditions.add(conditions);
return this;
}
+ @Override
public VariantDataRelevanceModifier setMultiplierSelector(ValueSelector multiplierSelector)
{
this.multiplierSelector = multiplierSelector;
diff --git a/src/src/main/java/com/relewise/client/model/VariantDisabledFilter.java b/src/src/main/java/com/relewise/client/model/VariantDisabledFilter.java
new file mode 100644
index 0000000..f0dbaa5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantDisabledFilter.java
@@ -0,0 +1,57 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = VariantDisabledFilter.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantDisabledFilter extends Filter implements IVariantFilter
+{
+ public String $type = "Relewise.Client.Requests.Filters.VariantDisabledFilter, Relewise.Client";
+ public static VariantDisabledFilter create()
+ {
+ return new VariantDisabledFilter();
+ }
+ public VariantDisabledFilter()
+ {
+ this.negated = false;
+ }
+ public static VariantDisabledFilter create(Boolean negated)
+ {
+ return new VariantDisabledFilter(negated);
+ }
+ public VariantDisabledFilter(Boolean negated)
+ {
+ this.negated = negated;
+ }
+ @Override
+ public VariantDisabledFilter setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public VariantDisabledFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantIdFilter.java b/src/src/main/java/com/relewise/client/model/VariantIdFilter.java
index 0760319..e50cc28 100644
--- a/src/src/main/java/com/relewise/client/model/VariantIdFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantIdFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -69,4 +67,10 @@ public VariantIdFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantIdFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantIdRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantIdRelevanceModifier.java
new file mode 100644
index 0000000..379d0c5
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantIdRelevanceModifier.java
@@ -0,0 +1,108 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+/** a RelevanceModifier
that can change the relevance of a Variant depending on whether it is contained in a set of VariantIds
. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type",
+ defaultImpl = VariantIdRelevanceModifier.class)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class VariantIdRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
+{
+ public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantIdRelevanceModifier, Relewise.Client";
+ /** The Ids of the Variants that this RelevanceModifier
will distinguish on. */
+ public String[] variantIds;
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
+ public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Variants that don't match one of the specified VariantIds
instead. */
+ public Boolean negated;
+ public static VariantIdRelevanceModifier create()
+ {
+ return new VariantIdRelevanceModifier();
+ }
+ public VariantIdRelevanceModifier()
+ {
+ this.multiplyWeightBy = 1d;
+ this.negated = false;
+ }
+ public static VariantIdRelevanceModifier create(Double multiplyWeightBy, Boolean negated)
+ {
+ return new VariantIdRelevanceModifier(multiplyWeightBy, negated);
+ }
+ public VariantIdRelevanceModifier(Double multiplyWeightBy, Boolean negated)
+ {
+ this.multiplyWeightBy = multiplyWeightBy;
+ this.negated = negated;
+ }
+ /** The Ids of the Variants that this RelevanceModifier
will distinguish on. */
+ public String[] getVariantIds()
+ {
+ return this.variantIds;
+ }
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
+ public Double getMultiplyWeightBy()
+ {
+ return this.multiplyWeightBy;
+ }
+ /** Determines whether this RelevanceModifier
should apply to all the Variants that don't match one of the specified VariantIds
instead. */
+ public Boolean getNegated()
+ {
+ return this.negated;
+ }
+ /** The Ids of the Variants that this RelevanceModifier
will distinguish on. */
+ public VariantIdRelevanceModifier setVariantIds(String... variantIds)
+ {
+ this.variantIds = variantIds;
+ return this;
+ }
+ /** The Ids of the Variants that this RelevanceModifier
will distinguish on. */
+ public VariantIdRelevanceModifier addToVariantIds(String variantId)
+ {
+ if (this.variantIds == null)
+ {
+ this.variantIds = new String[] { variantId };
+ }
+ else
+ {
+ ArrayList existingList = new ArrayList<>(Arrays.asList(this.variantIds));
+ existingList.add(variantId);
+ this.variantIds = existingList.toArray(new String[0]);
+ }
+ return this;
+ }
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
+ public VariantIdRelevanceModifier setMultiplyWeightBy(Double 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. */
+ public VariantIdRelevanceModifier setNegated(Boolean negated)
+ {
+ this.negated = negated;
+ return this;
+ }
+ @Override
+ public VariantIdRelevanceModifier setFilters(FilterCollection filters)
+ {
+ this.filters = filters;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantIndexConfiguration.java b/src/src/main/java/com/relewise/client/model/VariantIndexConfiguration.java
index 2c3f58b..b378bd2 100644
--- a/src/src/main/java/com/relewise/client/model/VariantIndexConfiguration.java
+++ b/src/src/main/java/com/relewise/client/model/VariantIndexConfiguration.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantListPriceFilter.java b/src/src/main/java/com/relewise/client/model/VariantListPriceFilter.java
index 78f4ddc..48db271 100644
--- a/src/src/main/java/com/relewise/client/model/VariantListPriceFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantListPriceFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -79,4 +77,10 @@ public VariantListPriceFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantListPriceFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantListPriceRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantListPriceRelevanceModifier.java
index 0b9f640..94a5436 100644
--- a/src/src/main/java/com/relewise/client/model/VariantListPriceRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantListPriceRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Variant depending on the list price falling within a specific Range
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class VariantListPriceRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantListPriceRelevanceModifier, Relewise.Client";
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public DoubleRange range;
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency currency;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Variants that aren't contained within the specific Range
instead. */
public Boolean negated;
public static VariantListPriceRelevanceModifier create(DoubleRange range)
{
@@ -43,12 +46,24 @@ public VariantListPriceRelevanceModifier(DoubleRange range)
this.currency = null;
this.negated = false;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a variant must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a variant only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on the list price falling within a specific Range
.
+ * @param range The range of list prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Variants that aren't contained within the specific Range instead.
+ */
public static VariantListPriceRelevanceModifier create(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
return new VariantListPriceRelevanceModifier(range, multiplyWeightBy, currency, negated);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a variant must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a variant only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on the list price falling within a specific Range
.
+ * @param range The range of list prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Variants that aren't contained within the specific Range instead.
+ */
public VariantListPriceRelevanceModifier(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
this.range = range;
@@ -62,37 +77,45 @@ public VariantListPriceRelevanceModifier()
this.multiplyWeightBy = 1d;
this.negated = false;
}
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public DoubleRange getRange()
{
return this.range;
}
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency getCurrency()
{
return this.currency;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Variants that aren't contained within the specific Range
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The range of list prices that this RelevanceModifier
will distinguish on. */
public VariantListPriceRelevanceModifier setRange(DoubleRange range)
{
this.range = range;
return this;
}
+ /** The currency that is used to distinguish the price. */
public VariantListPriceRelevanceModifier setCurrency(Currency currency)
{
this.currency = currency;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public VariantListPriceRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Variants that aren't contained within the specific Range
instead. */
public VariantListPriceRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/VariantPropertySelector.java b/src/src/main/java/com/relewise/client/model/VariantPropertySelector.java
new file mode 100644
index 0000000..8c9e995
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/VariantPropertySelector.java
@@ -0,0 +1,32 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.EXISTING_PROPERTY,
+ property = "$type")
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = ObservableVariantAttributeSelector.class, name = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableVariantAttributeSelector, Relewise.Client"),
+ @JsonSubTypes.Type(value = ObservableVariantDataValueSelector.class, name = "Relewise.Client.DataTypes.EntityPropertySelectors.ObservableVariantDataValueSelector, Relewise.Client"),
+})
+@JsonIgnoreProperties(ignoreUnknown = true)
+public abstract class VariantPropertySelector
+{
+ public String $type = "";
+}
diff --git a/src/src/main/java/com/relewise/client/model/VariantResult.java b/src/src/main/java/com/relewise/client/model/VariantResult.java
index 7fa3e98..6c06053 100644
--- a/src/src/main/java/com/relewise/client/model/VariantResult.java
+++ b/src/src/main/java/com/relewise/client/model/VariantResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantResultDetails.java b/src/src/main/java/com/relewise/client/model/VariantResultDetails.java
index c32727c..64724d2 100644
--- a/src/src/main/java/com/relewise/client/model/VariantResultDetails.java
+++ b/src/src/main/java/com/relewise/client/model/VariantResultDetails.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSalesPriceFilter.java b/src/src/main/java/com/relewise/client/model/VariantSalesPriceFilter.java
index bda2d49..6085d32 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSalesPriceFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSalesPriceFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -79,4 +77,10 @@ public VariantSalesPriceFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantSalesPriceFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantSalesPriceRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantSalesPriceRelevanceModifier.java
index 5683211..65abf5f 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSalesPriceRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSalesPriceRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Variant depending on the sales price falling within a specific Range
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,9 +27,13 @@
public class VariantSalesPriceRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantSalesPriceRelevanceModifier, Relewise.Client";
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public DoubleRange range;
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency currency;
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double multiplyWeightBy;
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean negated;
public static VariantSalesPriceRelevanceModifier create(DoubleRange range)
{
@@ -43,12 +46,24 @@ public VariantSalesPriceRelevanceModifier(DoubleRange range)
this.currency = null;
this.negated = false;
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a variant must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a variant only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on the sales price falling within a specific Range
.
+ * @param range The range of sales prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public static VariantSalesPriceRelevanceModifier create(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
return new VariantSalesPriceRelevanceModifier(range, multiplyWeightBy, currency, negated);
}
- /** 0.0: Means it will be given zero percentage of its default weight during evaluation, but may still be used as "fill" to meet the "desiredNumberOfRecommendations" 0.5: Means a variant must be twice as good a match as one with a default weight of 1.0 in order to be considered equal in the recommendation results. 1.0: Default weight 2.0: Means a variant only have to be half as good a match, as one with a weight of 1.0 to still score equally high in the recommendation results */
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on the sales price falling within a specific Range
.
+ * @param range The range of sales prices that this RelevanceModifier will distinguish on.
+ * @param multiplyWeightBy The weight that this RelevanceModifier will multiply relevant products with.
+ * @param currency The currency that is used to distinguish the price.
+ * @param negated Determines whether this RelevanceModifier should apply to all the Products that aren't contained within the specific Range instead.
+ */
public VariantSalesPriceRelevanceModifier(DoubleRange range, Double multiplyWeightBy, @Nullable Currency currency, Boolean negated)
{
this.range = range;
@@ -62,37 +77,45 @@ public VariantSalesPriceRelevanceModifier()
this.multiplyWeightBy = 1d;
this.negated = false;
}
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public DoubleRange getRange()
{
return this.range;
}
+ /** The currency that is used to distinguish the price. */
public @Nullable Currency getCurrency()
{
return this.currency;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public Double getMultiplyWeightBy()
{
return this.multiplyWeightBy;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public Boolean getNegated()
{
return this.negated;
}
+ /** The range of sales prices that this RelevanceModifier
will distinguish on. */
public VariantSalesPriceRelevanceModifier setRange(DoubleRange range)
{
this.range = range;
return this;
}
+ /** The currency that is used to distinguish the price. */
public VariantSalesPriceRelevanceModifier setCurrency(Currency currency)
{
this.currency = currency;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant products with. */
public VariantSalesPriceRelevanceModifier setMultiplyWeightBy(Double multiplyWeightBy)
{
this.multiplyWeightBy = multiplyWeightBy;
return this;
}
+ /** Determines whether this RelevanceModifier
should apply to all the Products that aren't contained within the specific Range
instead. */
public VariantSalesPriceRelevanceModifier setNegated(Boolean negated)
{
this.negated = negated;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSearchSettings.java b/src/src/main/java/com/relewise/client/model/VariantSearchSettings.java
index 60c92ef..bd6fa13 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSearchSettings.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSearchSettings.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -22,6 +20,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class VariantSearchSettings
{
+ /** @deprecated Use ProductSearchSettings.ResultConstraint instead */
public Boolean excludeResultsWithoutVariant;
public static VariantSearchSettings create()
{
@@ -30,10 +29,12 @@ public static VariantSearchSettings create()
public VariantSearchSettings()
{
}
+ /** @deprecated Use ProductSearchSettings.ResultConstraint instead */
public Boolean getExcludeResultsWithoutVariant()
{
return this.excludeResultsWithoutVariant;
}
+ /** @deprecated Use ProductSearchSettings.ResultConstraint instead */
public VariantSearchSettings setExcludeResultsWithoutVariant(Boolean excludeResultsWithoutVariant)
{
this.excludeResultsWithoutVariant = excludeResultsWithoutVariant;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSpecificationFacet.java b/src/src/main/java/com/relewise/client/model/VariantSpecificationFacet.java
index a164afb..9c0fc9a 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSpecificationFacet.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSpecificationFacet.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSpecificationFacetResult.java b/src/src/main/java/com/relewise/client/model/VariantSpecificationFacetResult.java
index 5ccf150..003ee6b 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSpecificationFacetResult.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSpecificationFacetResult.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSpecificationFilter.java b/src/src/main/java/com/relewise/client/model/VariantSpecificationFilter.java
index 075b7bf..3e2e075 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSpecificationFilter.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSpecificationFilter.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -88,4 +86,10 @@ public VariantSpecificationFilter setNegated(Boolean negated)
this.negated = negated;
return this;
}
+ @Override
+ public VariantSpecificationFilter setSettings(FilterSettings settings)
+ {
+ this.settings = settings;
+ return this;
+ }
}
diff --git a/src/src/main/java/com/relewise/client/model/VariantSpecificationValueRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantSpecificationValueRelevanceModifier.java
index 4b84b8d..6dcdb8b 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSpecificationValueRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSpecificationValueRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Variant depending on whether a certain specification Key
has a certain Value
. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,10 +27,15 @@
public class VariantSpecificationValueRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantSpecificationValueRelevanceModifier, Relewise.Client";
+ /** The specification key that this RelevanceModifier
will distinguish on. */
public String key;
+ /** The value that the key must be equal. */
public String value;
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public Double ifIdenticalMultiplyWeightBy;
+ /** The weight that this RelevanceModifier
will multiply variants that are note relevant with. */
public Double ifNotIdenticalMultiplyWeightBy;
+ /** Determines whether specification keys that are not found should count as the value not being equal i.e. multiplying by IfNotIdenticalMultiplyWeightBy
. Alternatively the rank will not be modified in any way by this modifier. */
public Boolean ifSpecificationKeyNotFoundApplyNotEqualMultiplier;
public static VariantSpecificationValueRelevanceModifier create(String key, String value)
{
@@ -45,10 +49,26 @@ public VariantSpecificationValueRelevanceModifier(String key, String value)
this.ifNotIdenticalMultiplyWeightBy = 0d;
this.ifSpecificationKeyNotFoundApplyNotEqualMultiplier = false;
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on whether a certain specification Key
has a certain Value
.
+ * @param key The specification key that this RelevanceModifier will distinguish on.
+ * @param value The value that the key must be equal.
+ * @param ifIdenticalMultiplyWeightBy The weight that this RelevanceModifier will multiply relevant variants with.
+ * @param ifNotIdenticalMultiplyWeightBy The weight that this RelevanceModifier will multiply variants that are note relevant with.
+ * @param ifSpecificationKeyNotFoundApplyNotEqualMultiplier Determines whether specification keys that are not found should count as the value not being equal i.e. multiplying by IfNotIdenticalMultiplyWeightBy. Alternatively the rank will not be modified in any way by this modifier.
+ */
public static VariantSpecificationValueRelevanceModifier create(String key, String value, Double ifIdenticalMultiplyWeightBy, Double ifNotIdenticalMultiplyWeightBy, Boolean ifSpecificationKeyNotFoundApplyNotEqualMultiplier)
{
return new VariantSpecificationValueRelevanceModifier(key, value, ifIdenticalMultiplyWeightBy, ifNotIdenticalMultiplyWeightBy, ifSpecificationKeyNotFoundApplyNotEqualMultiplier);
}
+ /**
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on whether a certain specification Key
has a certain Value
.
+ * @param key The specification key that this RelevanceModifier will distinguish on.
+ * @param value The value that the key must be equal.
+ * @param ifIdenticalMultiplyWeightBy The weight that this RelevanceModifier will multiply relevant variants with.
+ * @param ifNotIdenticalMultiplyWeightBy The weight that this RelevanceModifier will multiply variants that are note relevant with.
+ * @param ifSpecificationKeyNotFoundApplyNotEqualMultiplier Determines whether specification keys that are not found should count as the value not being equal i.e. multiplying by IfNotIdenticalMultiplyWeightBy. Alternatively the rank will not be modified in any way by this modifier.
+ */
public VariantSpecificationValueRelevanceModifier(String key, String value, Double ifIdenticalMultiplyWeightBy, Double ifNotIdenticalMultiplyWeightBy, Boolean ifSpecificationKeyNotFoundApplyNotEqualMultiplier)
{
this.key = key;
@@ -63,46 +83,56 @@ public VariantSpecificationValueRelevanceModifier()
this.ifNotIdenticalMultiplyWeightBy = 0d;
this.ifSpecificationKeyNotFoundApplyNotEqualMultiplier = false;
}
+ /** The specification key that this RelevanceModifier
will distinguish on. */
public String getKey()
{
return this.key;
}
+ /** The value that the key must be equal. */
public String getValue()
{
return this.value;
}
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public Double getIfIdenticalMultiplyWeightBy()
{
return this.ifIdenticalMultiplyWeightBy;
}
+ /** The weight that this RelevanceModifier
will multiply variants that are note relevant with. */
public Double getIfNotIdenticalMultiplyWeightBy()
{
return this.ifNotIdenticalMultiplyWeightBy;
}
+ /** Determines whether specification keys that are not found should count as the value not being equal i.e. multiplying by IfNotIdenticalMultiplyWeightBy
. Alternatively the rank will not be modified in any way by this modifier. */
public Boolean getIfSpecificationKeyNotFoundApplyNotEqualMultiplier()
{
return this.ifSpecificationKeyNotFoundApplyNotEqualMultiplier;
}
+ /** The specification key that this RelevanceModifier
will distinguish on. */
public VariantSpecificationValueRelevanceModifier setKey(String key)
{
this.key = key;
return this;
}
+ /** The value that the key must be equal. */
public VariantSpecificationValueRelevanceModifier setValue(String value)
{
this.value = value;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply relevant variants with. */
public VariantSpecificationValueRelevanceModifier setIfIdenticalMultiplyWeightBy(Double ifIdenticalMultiplyWeightBy)
{
this.ifIdenticalMultiplyWeightBy = ifIdenticalMultiplyWeightBy;
return this;
}
+ /** The weight that this RelevanceModifier
will multiply variants that are note relevant with. */
public VariantSpecificationValueRelevanceModifier setIfNotIdenticalMultiplyWeightBy(Double ifNotIdenticalMultiplyWeightBy)
{
this.ifNotIdenticalMultiplyWeightBy = ifNotIdenticalMultiplyWeightBy;
return this;
}
+ /** Determines whether specification keys that are not found should count as the value not being equal i.e. multiplying by IfNotIdenticalMultiplyWeightBy
. Alternatively the rank will not be modified in any way by this modifier. */
public VariantSpecificationValueRelevanceModifier setIfSpecificationKeyNotFoundApplyNotEqualMultiplier(Boolean ifSpecificationKeyNotFoundApplyNotEqualMultiplier)
{
this.ifSpecificationKeyNotFoundApplyNotEqualMultiplier = ifSpecificationKeyNotFoundApplyNotEqualMultiplier;
diff --git a/src/src/main/java/com/relewise/client/model/VariantSpecificationsInCommonRelevanceModifier.java b/src/src/main/java/com/relewise/client/model/VariantSpecificationsInCommonRelevanceModifier.java
index 3641164..f42329b 100644
--- a/src/src/main/java/com/relewise/client/model/VariantSpecificationsInCommonRelevanceModifier.java
+++ b/src/src/main/java/com/relewise/client/model/VariantSpecificationsInCommonRelevanceModifier.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
@@ -19,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;
+/** a RelevanceModifier
that can change the relevance of a Variant depending on whether certain SpecificationKeysAndMultipliers
match with a specific variant. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
@@ -28,18 +27,19 @@
public class VariantSpecificationsInCommonRelevanceModifier extends RelevanceModifier implements IVariantRelevanceModifier
{
public String $type = "Relewise.Client.Requests.RelevanceModifiers.VariantSpecificationsInCommonRelevanceModifier, Relewise.Client";
+ /** A collection of KeyMultiplier
that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0. */
public KeyMultiplier[] specificationKeysAndMultipliers;
/**
- * The default multiplier for keys not included, is 1.0
- * @param specificationKeysAndMultipliers
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on whether certain SpecificationKeysAndMultipliers
match with a specific variant.
+ * @param specificationKeysAndMultipliers A collection of KeyMultiplier that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0.
*/
public static VariantSpecificationsInCommonRelevanceModifier create(KeyMultiplier... specificationKeysAndMultipliers)
{
return new VariantSpecificationsInCommonRelevanceModifier(specificationKeysAndMultipliers);
}
/**
- * The default multiplier for keys not included, is 1.0
- * @param specificationKeysAndMultipliers
+ * Creates a RelevanceModifier
that can change the relevance of a Variant depending on whether certain SpecificationKeysAndMultipliers
match with a specific variant.
+ * @param specificationKeysAndMultipliers A collection of KeyMultiplier that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0.
*/
public VariantSpecificationsInCommonRelevanceModifier(KeyMultiplier... specificationKeysAndMultipliers)
{
@@ -48,15 +48,18 @@ public VariantSpecificationsInCommonRelevanceModifier(KeyMultiplier... specifica
public VariantSpecificationsInCommonRelevanceModifier()
{
}
+ /** A collection of KeyMultiplier
that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0. */
public KeyMultiplier[] getSpecificationKeysAndMultipliers()
{
return this.specificationKeysAndMultipliers;
}
+ /** A collection of KeyMultiplier
that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0. */
public VariantSpecificationsInCommonRelevanceModifier setSpecificationKeysAndMultipliers(KeyMultiplier... specificationKeysAndMultipliers)
{
this.specificationKeysAndMultipliers = specificationKeysAndMultipliers;
return this;
}
+ /** A collection of KeyMultiplier
that each define a certain key and value that the relevance should be multiplied with if matching on this key. The default multiplier for keys not included, is 1.0. */
public VariantSpecificationsInCommonRelevanceModifier addToSpecificationKeysAndMultipliers(KeyMultiplier specificationKeysAndMultiplier)
{
if (this.specificationKeysAndMultipliers == null)
diff --git a/src/src/main/java/com/relewise/client/model/ViewedByUserCompanyInfo.java b/src/src/main/java/com/relewise/client/model/ViewedByUserCompanyInfo.java
new file mode 100644
index 0000000..8b55793
--- /dev/null
+++ b/src/src/main/java/com/relewise/client/model/ViewedByUserCompanyInfo.java
@@ -0,0 +1,65 @@
+package com.relewise.client.model;
+
+import com.fasterxml.jackson.annotation.*;
+import javax.annotation.Nullable;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
+import java.util.Objects;
+import java.util.Arrays;
+import java.util.UUID;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.AbstractMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.HashSet;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ViewedByUserCompanyInfo
+{
+ public OffsetDateTime mostRecentlyViewedUtc;
+ public Long totalNumberOfTimesViewed;
+ public ViewedByUserCompanyInfo viewedByParentCompany;
+ public static ViewedByUserCompanyInfo create(OffsetDateTime mostRecentlyViewedUtc, Long totalNumberOfTimesViewed)
+ {
+ return new ViewedByUserCompanyInfo(mostRecentlyViewedUtc, totalNumberOfTimesViewed);
+ }
+ public ViewedByUserCompanyInfo(OffsetDateTime mostRecentlyViewedUtc, Long totalNumberOfTimesViewed)
+ {
+ this.mostRecentlyViewedUtc = mostRecentlyViewedUtc;
+ this.totalNumberOfTimesViewed = totalNumberOfTimesViewed;
+ }
+ public ViewedByUserCompanyInfo()
+ {
+ }
+ public OffsetDateTime getMostRecentlyViewedUtc()
+ {
+ return this.mostRecentlyViewedUtc;
+ }
+ public Long getTotalNumberOfTimesViewed()
+ {
+ return this.totalNumberOfTimesViewed;
+ }
+ public ViewedByUserCompanyInfo getViewedByParentCompany()
+ {
+ return this.viewedByParentCompany;
+ }
+ public ViewedByUserCompanyInfo setMostRecentlyViewedUtc(OffsetDateTime mostRecentlyViewedUtc)
+ {
+ this.mostRecentlyViewedUtc = mostRecentlyViewedUtc;
+ return this;
+ }
+ public ViewedByUserCompanyInfo setTotalNumberOfTimesViewed(Long totalNumberOfTimesViewed)
+ {
+ this.totalNumberOfTimesViewed = totalNumberOfTimesViewed;
+ return this;
+ }
+ public ViewedByUserCompanyInfo setViewedByParentCompany(ViewedByUserCompanyInfo viewedByParentCompany)
+ {
+ this.viewedByParentCompany = viewedByParentCompany;
+ return this;
+ }
+}
diff --git a/src/src/main/java/com/relewise/client/model/ViewedByUserInfo.java b/src/src/main/java/com/relewise/client/model/ViewedByUserInfo.java
index b7a60ad..ebb53e7 100644
--- a/src/src/main/java/com/relewise/client/model/ViewedByUserInfo.java
+++ b/src/src/main/java/com/relewise/client/model/ViewedByUserInfo.java
@@ -1,12 +1,10 @@
package com.relewise.client.model;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
From 92cf2c314bf4419a47811d8933b482c003eb4a7e Mon Sep 17 00:00:00 2001
From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com>
Date: Mon, 12 Aug 2024 16:08:25 +0200
Subject: [PATCH 3/4] Regenerated clients.
---
.../java/com/relewise/client/Recommender.java | 4 ++++
.../relewise/client/SearchAdministrator.java | 24 +++++++++++++++++++
.../java/com/relewise/client/Tracker.java | 8 +++++++
3 files changed, 36 insertions(+)
diff --git a/src/src/main/java/com/relewise/client/Recommender.java b/src/src/main/java/com/relewise/client/Recommender.java
index 2aff76c..6071e47 100644
--- a/src/src/main/java/com/relewise/client/Recommender.java
+++ b/src/src/main/java/com/relewise/client/Recommender.java
@@ -113,6 +113,10 @@ public BrandRecommendationResponse recommend(PersonalBrandRecommendationRequest
return makeRequestAndValidate("PersonalBrandRecommendationRequest", request, BrandRecommendationResponse.class);
}
+ public BrandRecommendationResponse recommend(BrandRecommendationRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("BrandRecommendationRequest", request, BrandRecommendationResponse.class);
+ }
+
public ProductRecommendationResponseCollection recommend(ProductRecommendationRequestCollection request) throws IOException, InterruptedException, ClientException {
return makeRequestAndValidate("ProductRecommendationRequestCollection", request, ProductRecommendationResponseCollection.class);
}
diff --git a/src/src/main/java/com/relewise/client/SearchAdministrator.java b/src/src/main/java/com/relewise/client/SearchAdministrator.java
index be2f3e5..54286f2 100644
--- a/src/src/main/java/com/relewise/client/SearchAdministrator.java
+++ b/src/src/main/java/com/relewise/client/SearchAdministrator.java
@@ -72,4 +72,28 @@ public SaveStemmingRulesResponse save(SaveStemmingRulesRequest request) throws I
public DeleteSearchRulesResponse delete(DeleteStemmingRulesRequest request) throws IOException, InterruptedException, ClientException {
return makeRequestAndValidate("DeleteStemmingRulesRequest", request, DeleteSearchRulesResponse.class);
}
+
+ public SearchTermModifierRulesResponse load(SearchTermModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("SearchTermModifierRulesRequest", request, SearchTermModifierRulesResponse.class);
+ }
+
+ public SaveSearchTermModifierRulesResponse save(SaveSearchTermModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("SaveSearchTermModifierRulesRequest", request, SaveSearchTermModifierRulesResponse.class);
+ }
+
+ public DeleteSearchRulesResponse delete(DeleteSearchTermModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("DeleteSearchTermModifierRulesRequest", request, DeleteSearchRulesResponse.class);
+ }
+
+ public SearchResultModifierRulesResponse load(SearchResultModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("SearchResultModifierRulesRequest", request, SearchResultModifierRulesResponse.class);
+ }
+
+ public SaveSearchResultModifierRulesResponse save(SaveSearchResultModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("SaveSearchResultModifierRulesRequest", request, SaveSearchResultModifierRulesResponse.class);
+ }
+
+ public DeleteSearchRulesResponse delete(DeleteSearchResultModifierRulesRequest request) throws IOException, InterruptedException, ClientException {
+ return makeRequestAndValidate("DeleteSearchResultModifierRulesRequest", request, DeleteSearchRulesResponse.class);
+ }
}
diff --git a/src/src/main/java/com/relewise/client/Tracker.java b/src/src/main/java/com/relewise/client/Tracker.java
index 66485bf..5608e75 100644
--- a/src/src/main/java/com/relewise/client/Tracker.java
+++ b/src/src/main/java/com/relewise/client/Tracker.java
@@ -29,6 +29,14 @@ public void track(TrackCartRequest trackingRequest) throws IOException, Interrup
makeRequestAndValidate("TrackCartRequest", trackingRequest, Void.class);
}
+ public void track(TrackCompanyAdministrativeActionRequest trackingRequest) throws IOException, InterruptedException, ClientException {
+ makeRequestAndValidate("TrackCompanyAdministrativeActionRequest", trackingRequest, Void.class);
+ }
+
+ public void track(TrackCompanyUpdateRequest trackingRequest) throws IOException, InterruptedException, ClientException {
+ makeRequestAndValidate("TrackCompanyUpdateRequest", trackingRequest, Void.class);
+ }
+
public void track(TrackContentAdministrativeActionRequest trackingRequest) throws IOException, InterruptedException, ClientException {
makeRequestAndValidate("TrackContentAdministrativeActionRequest", trackingRequest, Void.class);
}
From fab1c0d9050bfd91a09b6af960abf92ac7b4141a Mon Sep 17 00:00:00 2001
From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com>
Date: Mon, 12 Aug 2024 16:08:47 +0200
Subject: [PATCH 4/4] Adjusted tests to conform to new types.
---
.../com/relewise/client/GeneratedRequestsTest.java | 10 ++++------
.../test/java/com/relewise/client/SearcherTest.java | 7 +++++++
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/src/test/java/com/relewise/client/GeneratedRequestsTest.java b/src/src/test/java/com/relewise/client/GeneratedRequestsTest.java
index 9be3925..dba35e1 100644
--- a/src/src/test/java/com/relewise/client/GeneratedRequestsTest.java
+++ b/src/src/test/java/com/relewise/client/GeneratedRequestsTest.java
@@ -15,10 +15,10 @@ public void testTrackOrderRequestWithBuilderPatternAndCreatorMethod() throws Exc
var orderRequest = TrackOrderRequest.create(
Order.create(
- UserFactory.byTemporaryId("t-id"),
+ UserFactory.byTemporaryId("t-id").setChannel(Channel.create("Channel 1")),
Money.create(Currency.create("DKK"), 100.0),
"1"
- ).setChannel("Channel 1")
+ )
);
Executable action = () -> tracker.track(orderRequest);
@@ -36,7 +36,7 @@ public void testTrackOrderRequestWithBuilderPattern() throws Exception {
var orderRequest = (new TrackOrderRequest())
.setOrder((new Order())
- .setUser(new User().setTemporaryId("t-Id"))
+ .setUser(new User().setTemporaryId("t-Id").setChannel(Channel.create("Channel 1")))
.setSubtotal((new Money())
.setAmount(100.0)
.setCurrency((new Currency())
@@ -45,7 +45,6 @@ public void testTrackOrderRequestWithBuilderPattern() throws Exception {
)
.setOrderNumber("1")
.setCartName("1")
- .setChannel("Channel 1")
);
Executable action = () -> tracker.track(orderRequest);
@@ -62,14 +61,13 @@ public void testTrackOrderRequest() throws Exception {
var tracker = new Tracker(GetDatasetId(), GetApiKey(), "https://api.relewise.com");
var order = new Order(
- UserFactory.byTemporaryId("t-ID"),
+ UserFactory.byTemporaryId("t-ID").setChannel(Channel.create("Channel 1")),
new Money(
new Currency("DKK"),
100.0
),
"1"
);
- order.setChannel("Channel 1");
var orderRequest = new TrackOrderRequest(order);
diff --git a/src/src/test/java/com/relewise/client/SearcherTest.java b/src/src/test/java/com/relewise/client/SearcherTest.java
index 0c8d0cd..aec36a8 100644
--- a/src/src/test/java/com/relewise/client/SearcherTest.java
+++ b/src/src/test/java/com/relewise/client/SearcherTest.java
@@ -58,6 +58,13 @@ public void testProductSearchWithRecentlyViewedFilter() throws Exception {
).setFilters(
FilterCollection.create(
ProductRecentlyViewedByUserFilter.create(OffsetDateTime.now().minusDays(365))
+ .setSettings(
+ FilterSettings.create()
+ .setScopes(
+ FilterScopes.create()
+ .setDefault(ApplyFilterSettings.create(true))
+ )
+ )
)
);