feat(discount): add InStock filter to discount product queries and mappings
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
- Introduced InStock property to GetDiscountProductsQuery and GetCustomerProductsByFilterQuery for filtering based on product availability. - Updated query handlers to apply InStock filtering logic in both discount and customer product queries. - Enhanced mapping configurations to include InStock in the response DTOs. - Bumped Protobuf project version to reflect the addition of new features.
This commit is contained in:
@@ -19,6 +19,8 @@ public class DiscountProductProfile : IRegister
|
||||
src => src.CategoryId != null ? src.CategoryId.Value : (long?)null)
|
||||
.Map(dest => dest.IsActive,
|
||||
src => src.IsActive != null ? src.IsActive.Value : (bool?)null)
|
||||
.Map(dest => dest.InStock,
|
||||
src => src.InStock != null ? src.InStock.Value : (bool?)null)
|
||||
.Map(dest => dest.MinPrice,
|
||||
src => src.MinPrice != null ? (int?)src.MinPrice.Value : null)
|
||||
.Map(dest => dest.MaxPrice,
|
||||
|
||||
Reference in New Issue
Block a user