Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

add VatNumber Nox.Type Placeholder #124

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Nox.Types/Enums/NoxType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ public enum NoxType
@Array,
@Collection,
@Object,
// This is complex, needs to include CountryCode
VatNumber,

// Compound Types - requires multiple fields to persist
[CompoundType] Entity,
Expand Down
9 changes: 9 additions & 0 deletions src/Nox.Types/Types/VatNumber/VatNumber.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Nox.Types;

/// <summary>
/// Represents a Nox <see cref="VatNumber"/> type and value object.
/// </summary>
/// <remarks>Placeholder, needs to be implemented</remarks>
public sealed class VatNumber : ValueObject<(string VatNumber, CountryCode2 countryCode2), VatNumber>
{
}
11 changes: 11 additions & 0 deletions tests/Nox.Types.Tests/Types/VatNumberTests/VatNumberTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// ReSharper disable once CheckNamespace
namespace Nox.Types.Tests.Types;

public class VatNumberTests
{
[Fact]
public void When_Create_Should()
{

}
}