-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9fd34a
commit 73c91ea
Showing
8 changed files
with
190 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "./build.schema.json", | ||
"Solution": "VirtoCommerce.OrdersModule.sln" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 63 additions & 4 deletions
67
src/VirtoCommerce.OrdersModule.Core/Model/Search/CustomerOrderIndexedSearchCriteria.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,69 @@ | ||
using System; | ||
using VirtoCommerce.Platform.Core.Common; | ||
using System.Collections.Generic; | ||
|
||
namespace VirtoCommerce.OrdersModule.Core.Model.Search | ||
{ | ||
[Obsolete("Use CustomerOrderSearchCriteria", DiagnosticId = "VC0008", UrlFormat = "https://docs.virtocommerce.org/products/products-virto3-versions/")] | ||
public class CustomerOrderIndexedSearchCriteria : SearchCriteriaBase | ||
public class CustomerOrderIndexedSearchCriteria : CustomerOrderSearchCriteria | ||
{ | ||
public string Facet { get; set; } | ||
} | ||
|
||
public class CustomerOrderIndexedSearchResult : CustomerOrderSearchResult | ||
{ | ||
public virtual IList<OrderAggregation> Aggregations { get; set; } | ||
} | ||
|
||
public class OrderAggregation | ||
{ | ||
/// <summary> | ||
/// Gets or sets the value of the aggregation type | ||
/// </summary> | ||
/// <value> | ||
/// "Attribute", "Range" | ||
/// </value> | ||
public string AggregationType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the value of the aggregation field | ||
/// </summary> | ||
public string Field { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of the aggregation labels | ||
/// </summary> | ||
public IList<OrderAggregationLabel> Labels { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of the aggregation items | ||
/// </summary> | ||
public IList<OrderAggregationItem> Items { get; set; } | ||
} | ||
|
||
public class OrderAggregationLabel | ||
{ | ||
public string Language { get; set; } | ||
public string Label { get; set; } | ||
} | ||
|
||
public class OrderAggregationItem | ||
{ | ||
/// <summary> | ||
/// Gets or sets the aggregation item value | ||
/// </summary> | ||
public object Value { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the aggregation item count | ||
/// </summary> | ||
public int Count { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the flag for aggregation item is applied | ||
/// </summary> | ||
public bool IsApplied { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of the aggregation item labels | ||
/// </summary> | ||
public IList<OrderAggregationLabel> Labels { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters