-
Notifications
You must be signed in to change notification settings - Fork 17
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
979002a
commit 756f25a
Showing
56 changed files
with
758 additions
and
760 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
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,9 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?><Project> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<!-- These properties will be shared for all projects --> | ||
<PropertyGroup> | ||
<VersionPrefix>3.400.0</VersionPrefix> | ||
<VersionSuffix> | ||
</VersionSuffix> | ||
<VersionSuffix></VersionSuffix> | ||
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
</Project> |
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,6 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=postgre/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=pricelist/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=pricelists/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=virto/@EntryIndexedValue">True</s:Boolean> | ||
</wpf:ResourceDictionary> |
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,2 @@ | ||
Antlr4.Runtime.Standard.dll | ||
TimeZoneConverter.dll |
27 changes: 14 additions & 13 deletions
27
src/VirtoCommerce.PricingModule.Core/Model/PriceEvaluationContext.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,30 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using VirtoCommerce.CoreModule.Core.Common; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Model | ||
{ | ||
public class PriceEvaluationContext : EvaluationContextBase, ICloneable | ||
{ | ||
public string StoreId { get; set; } | ||
public string CatalogId { get; set; } | ||
public string[] ProductIds { get; set; } | ||
public class PriceEvaluationContext : EvaluationContextBase, ICloneable | ||
{ | ||
public string StoreId { get; set; } | ||
public string CatalogId { get; set; } | ||
public IList<string> ProductIds { get; set; } | ||
// The ordered list of price-list IDs, evaluation logic will return only matched product prices from the first price-list from this list | ||
// To return all the prices found, simply set ReturnAllMatchedPrices to true | ||
public string[] PricelistIds { get; set; } | ||
public Pricelist[] Pricelists { get; set; } | ||
public IList<string> PricelistIds { get; set; } | ||
public IList<Pricelist> Pricelists { get; set; } | ||
// Set this flag to true for return all matched prices from all given pricelists | ||
public bool ReturnAllMatchedPrices { get; set; } | ||
public bool ReturnAllMatchedPrices { get; set; } | ||
public decimal Quantity { get; set; } | ||
public string CustomerId { get; set; } | ||
public string OrganizationId { get; set; } | ||
public DateTime? CertainDate { get; set; } | ||
public string Currency { get; set; } | ||
public string CustomerId { get; set; } | ||
public string OrganizationId { get; set; } | ||
public DateTime? CertainDate { get; set; } | ||
public string Currency { get; set; } | ||
// Set this flag to true for indexing from all given pricelists and skip Dynamic Conditions except Start and End Date | ||
public bool SkipAssignmentValidation { get; set; } | ||
|
||
public object Clone() | ||
{ | ||
return base.MemberwiseClone() as PriceEvaluationContext; | ||
return (PriceEvaluationContext)MemberwiseClone(); | ||
} | ||
} | ||
} |
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
10 changes: 6 additions & 4 deletions
10
src/VirtoCommerce.PricingModule.Core/Model/Search/PricelistAssignmentsSearchCriteria.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
4 changes: 3 additions & 1 deletion
4
src/VirtoCommerce.PricingModule.Core/Model/Search/PricelistSearchCriteria.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,7 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Model.Search | ||
{ | ||
public class PricelistSearchCriteria : PricingSearchCriteria | ||
{ | ||
public string[] Currencies { get; set; } | ||
public IList<string> Currencies { 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
12 changes: 0 additions & 12 deletions
12
src/VirtoCommerce.PricingModule.Core/Model/Search/PricingSearchResult.cs
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/VirtoCommerce.PricingModule.Core/Services/IPriceSearchService.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
using VirtoCommerce.PricingModule.Core.Model.Search; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPriceSearchService : ISearchService<PricesSearchCriteria, PriceSearchResult, Price> | ||
{ | ||
} |
8 changes: 8 additions & 0 deletions
8
src/VirtoCommerce.PricingModule.Core/Services/IPriceService.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPriceService : ICrudService<Price> | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
src/VirtoCommerce.PricingModule.Core/Services/IPricelistAssignmentSearchService.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
using VirtoCommerce.PricingModule.Core.Model.Search; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPricelistAssignmentSearchService : ISearchService<PricelistAssignmentsSearchCriteria, PricelistAssignmentSearchResult, PricelistAssignment> | ||
{ | ||
} |
8 changes: 8 additions & 0 deletions
8
src/VirtoCommerce.PricingModule.Core/Services/IPricelistAssignmentService.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPricelistAssignmentService : ICrudService<PricelistAssignment> | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
src/VirtoCommerce.PricingModule.Core/Services/IPricelistSearchService.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
using VirtoCommerce.PricingModule.Core.Model.Search; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPricelistSearchService : ISearchService<PricelistSearchCriteria, PricelistSearchResult, Pricelist> | ||
{ | ||
} |
8 changes: 8 additions & 0 deletions
8
src/VirtoCommerce.PricingModule.Core/Services/IPricelistService.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.PricingModule.Core.Model; | ||
|
||
namespace VirtoCommerce.PricingModule.Core.Services; | ||
|
||
public interface IPricelistService : ICrudService<Pricelist> | ||
{ | ||
} |
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
16 changes: 0 additions & 16 deletions
16
src/VirtoCommerce.PricingModule.Core/Services/IPricingSearchService.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.