Skip to content

Commit

Permalink
Merge pull request #24 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
Support for PriceType and AmountType
  • Loading branch information
Ali-YousefiTelori authored Nov 15, 2023
2 parents 92dde88 + cc152a2 commit 086ae7c
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ public class PriceContract
/// <summary>
///
/// </summary>
public AmountType AmountType { get; set; }
/// <summary>
///
/// </summary>
public CurrencyCodeType CurrencyCode { get; set; }
/// <summary>
///
/// </summary>
public PriceType Type { get; set; }
}
}
41 changes: 41 additions & 0 deletions src/CSharp/EasyMicroservices.Domain/DataTypes/AmountType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
namespace EasyMicroservices.Domain.DataTypes
{
/// <summary>
///
/// </summary>
public enum AmountType : byte
{
/// <summary>
/// value is none, Never use the None to return values
/// </summary>
None = 0,
/// <summary>
/// error value is default
/// </summary>
Default = 1,
/// <summary>
/// for the filter values from web admin panel you can sent all for types
/// </summary>
All = 2,
/// <summary>
/// there is other error that is not in the types
/// </summary>
Other = 3,
/// <summary>
/// the error type is uknown to us
/// </summary>
Unknown = 4,
/// <summary>
/// there is nothing to show or validate error
/// </summary>
Nothing = 5,
/// <summary>
///
/// </summary>
Decimal = 6,
/// <summary>
///
/// </summary>
Percent = 7
}
}
38 changes: 38 additions & 0 deletions src/CSharp/EasyMicroservices.Domain/DataTypes/PriceType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
namespace EasyMicroservices.Domain.DataTypes
{
/// <summary>
///
/// </summary>
public enum PriceType : byte
{
/// <summary>
/// value is none, Never use the None to return values
/// </summary>
None = 0,
/// <summary>
/// error value is default
/// </summary>
Default = 1,
/// <summary>
/// for the filter values from web admin panel you can sent all for types
/// </summary>
All = 2,
/// <summary>
/// there is other error that is not in the types
/// </summary>
Other = 3,
/// <summary>
/// the error type is uknown to us
/// </summary>
Unknown = 4,
/// <summary>
/// there is nothing to show or validate error
/// </summary>
Nothing = 5,
/// <summary>
/// مالیات ارزش افزوده
/// VAT
/// </summary>
ValueAddedTax = 6
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.3</Version>
<Version>0.0.0.4</Version>
<Description>Domain of programming.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>utility,utilities,domain,domains,models,schemas,contracts</PackageTags>
Expand Down

0 comments on commit 086ae7c

Please sign in to comment.