Last active
March 15, 2019 09:44
-
-
Save gaboe/f9ab9689973c60b289e39075612d5384 to your computer and use it in GitHub Desktop.
BSP params
This file contains hidden or 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
using BLogic.BeCommerce.Domain.Models.Products; | |
using System.Collections.Generic; | |
namespace BLogic.BeCommerce.Domain.Models.Warehouses.Dtos | |
{ | |
public interface IStockQuantityTextParams | |
{ | |
int WarehouseID { get; } | |
bool IsOnRequest { get; } | |
MeasureUnit MeasureUnit { get; } | |
IDictionary<string, object> ProductExtension { get; } | |
} | |
public class DefaultStockQuantityTextParams : IStockQuantityTextParams | |
{ | |
public DefaultStockQuantityTextParams(int warehouseID, bool isOnRequest, MeasureUnit measureUnit, | |
IDictionary<string, object> productExtension) | |
{ | |
WarehouseID = warehouseID; | |
IsOnRequest = isOnRequest; | |
MeasureUnit = measureUnit; | |
ProductExtension = productExtension; | |
} | |
public int WarehouseID { get; } | |
public bool IsOnRequest { get; } | |
public MeasureUnit MeasureUnit { get; } | |
public IDictionary<string, object> ProductExtension { get; } | |
} | |
public class GumexStockQuantityTextParams : IStockQuantityTextParams | |
{ | |
public GumexStockQuantityTextParams(int warehouseID) | |
{ | |
WarehouseID = warehouseID; | |
} | |
public int WarehouseID { get; } | |
public bool IsOnRequest { get; } | |
public MeasureUnit MeasureUnit { get; } | |
public IDictionary<string, object> ProductExtension { get; } | |
} | |
public class IpneuStockQuantityTextParams : IStockQuantityTextParams | |
{ | |
public IpneuStockQuantityTextParams(bool isOnRequest, MeasureUnit measureUnit, | |
IDictionary<string, object> productExtension) | |
{ | |
IsOnRequest = isOnRequest; | |
MeasureUnit = measureUnit; | |
ProductExtension = productExtension; | |
} | |
public int WarehouseID { get; } | |
public bool IsOnRequest { get; } | |
public MeasureUnit MeasureUnit { get; } | |
public IDictionary<string, object> ProductExtension { get; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment