-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f937387
commit d3a4e37
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/BuildingBlocks/EventBus.Messages/Common/EventBusConstants.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,7 @@ | ||
namespace EventBus.Messages.Common | ||
{ | ||
public class EventBusConstants | ||
{ | ||
public const string BasketCheckoutQueue = "basketcheckout-queue"; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/BuildingBlocks/EventBus.Messages/EventBus.Messages.csproj
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,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
24 changes: 24 additions & 0 deletions
24
src/BuildingBlocks/EventBus.Messages/Events/BasketCheckoutEvent.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,24 @@ | ||
namespace EventBus.Messages.Events | ||
{ | ||
public class BasketCheckoutEvent : IntegrationBaseEvent | ||
{ | ||
public string UserName { get; set; } | ||
public decimal TotalPrice { get; set; } | ||
|
||
// BillingAddress | ||
public string FirstName { get; set; } | ||
public string LastName { get; set; } | ||
public string EmailAddress { get; set; } | ||
public string AddressLine { get; set; } | ||
public string Country { get; set; } | ||
public string State { get; set; } | ||
public string ZipCode { get; set; } | ||
|
||
// Payment | ||
public string CardName { get; set; } | ||
public string CardNumber { get; set; } | ||
public string Expiration { get; set; } | ||
public string CVV { get; set; } | ||
public int PaymentMethod { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/BuildingBlocks/EventBus.Messages/Events/IntegrationBaseEvent.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,22 @@ | ||
using System; | ||
|
||
namespace EventBus.Messages.Events | ||
{ | ||
public class IntegrationBaseEvent | ||
{ | ||
public IntegrationBaseEvent() | ||
{ | ||
Id = Guid.NewGuid(); | ||
CreationDate = DateTime.UtcNow; | ||
} | ||
|
||
public IntegrationBaseEvent(Guid id, DateTime creationDate) | ||
{ | ||
Id = id; | ||
CreationDate = creationDate; | ||
} | ||
|
||
public Guid Id { get; private set; } | ||
public DateTime CreationDate { 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