generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Kentico/feat/standalone_sku_synchronization
Feat/standalone SKU synchronization
- Loading branch information
Showing
22 changed files
with
339 additions
and
101 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
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
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
39 changes: 39 additions & 0 deletions
39
src/Kentico.Xperience.K13Ecommerce/Products/ProductRequest.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,39 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Kentico.Xperience.K13Ecommerce.Products; | ||
|
||
/// <summary> | ||
/// Model for request to filter standalone products | ||
/// </summary> | ||
public class ProductRequest | ||
{ | ||
/// <summary> | ||
/// To determine if product has its page, culture needs to be provided | ||
/// so documents in the specific culture will be checked. | ||
/// </summary> | ||
[RegularExpression("[a-zA-Z]{2}-[a-zA-Z]{2}")] | ||
public string? Culture { get; set; } | ||
|
||
/// <summary> | ||
/// Product currency. | ||
/// </summary> | ||
public string? Currency { get; set; } | ||
|
||
/// <summary> | ||
/// Order by SQL expression. | ||
/// </summary> | ||
public string? OrderBy { get; set; } | ||
|
||
/// <summary> | ||
/// Limit how many products to return. | ||
/// </summary> | ||
[DefaultValue(12)] | ||
[Range(1, 1000)] | ||
public int Limit { get; set; } | ||
|
||
/// <summary> | ||
/// If true variants are loaded too for products with variants (default false). | ||
/// </summary> | ||
public bool WithVariants { 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
Oops, something went wrong.