-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from IliyanIlievPH/20
Closes #20
- Loading branch information
Showing
55 changed files
with
2,635 additions
and
210 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
client/MAVN.Service.OperationsHistory.Client/IOperationsHistoryApi.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
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
2 changes: 1 addition & 1 deletion
2
client/MAVN.Service.OperationsHistory.Client/Models/Responses/ReferralStakeResponse.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
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
67 changes: 67 additions & 0 deletions
67
...nt/MAVN.Service.OperationsHistory.Client/Models/Responses/SmartVoucherTransferResponse.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,67 @@ | ||
using System; | ||
|
||
namespace MAVN.Service.OperationsHistory.Client.Models.Responses | ||
{ | ||
/// <summary> | ||
/// Response model for smart voucher transfer | ||
/// </summary> | ||
public class SmartVoucherTransferResponse | ||
{ | ||
/// <summary> | ||
/// Id of the operation | ||
/// </summary> | ||
public string Id { get; set; } | ||
/// <summary> | ||
/// Timestamp | ||
/// </summary> | ||
public DateTime Timestamp { get; set; } | ||
/// <summary> | ||
/// Id of the old owner | ||
/// </summary> | ||
public Guid OldCustomerId { get; set; } | ||
/// <summary> | ||
/// Id of the new owner | ||
/// </summary> | ||
public Guid NewCustomerId { get; set; } | ||
/// <summary> | ||
/// Id of the partner | ||
/// </summary> | ||
public Guid PartnerId { get; set; } | ||
/// <summary> | ||
/// Id of the campaign | ||
/// </summary> | ||
public string CampaignId { get; set; } | ||
/// <summary> | ||
/// Short code of the voucher | ||
/// </summary> | ||
public string ShortCode { get; set; } | ||
/// <summary> | ||
/// Price of the voucher | ||
/// </summary> | ||
public decimal Amount { get; set; } | ||
/// <summary> | ||
/// Asset symbol of the currency | ||
/// </summary> | ||
public string AssetSymbol { get; set; } | ||
/// <summary> | ||
/// Name of the campaign | ||
/// </summary> | ||
public string CampaignName { get; set; } | ||
/// <summary> | ||
/// Name of the partner | ||
/// </summary> | ||
public string PartnerName { get; set; } | ||
/// <summary> | ||
/// Vertical of the partner | ||
/// </summary> | ||
public string Vertical { get; set; } | ||
/// <summary> | ||
/// Email of the receiver | ||
/// </summary> | ||
public string OldCustomerEmail { get; set; } | ||
/// <summary> | ||
/// Email of the receiver | ||
/// </summary> | ||
public string NewCustomerEmail { 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
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
2 changes: 1 addition & 1 deletion
2
src/MAVN.Service.OperationsHistory.Domain/Models/BonusCashInDto.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System; | ||
using System; | ||
using MAVN.Numerics; | ||
|
||
namespace MAVN.Service.OperationsHistory.Domain.Models | ||
|
2 changes: 1 addition & 1 deletion
2
src/MAVN.Service.OperationsHistory.Domain/Models/IBonusCashIn.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System; | ||
using System; | ||
using MAVN.Numerics; | ||
|
||
namespace MAVN.Service.OperationsHistory.Domain.Models | ||
|
16 changes: 0 additions & 16 deletions
16
src/MAVN.Service.OperationsHistory.Domain/Models/ISmartVoucherPayment.cs
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/MAVN.Service.OperationsHistory.Domain/Models/ISmartVoucherUse.cs
This file was deleted.
Oops, something went wrong.
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
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
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
2 changes: 1 addition & 1 deletion
2
src/MAVN.Service.OperationsHistory.Domain/Models/ReferralStakeDto.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System; | ||
using System; | ||
using MAVN.Numerics; | ||
|
||
namespace MAVN.Service.OperationsHistory.Domain.Models | ||
|
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
22 changes: 22 additions & 0 deletions
22
src/MAVN.Service.OperationsHistory.Domain/Models/SmartVoucherTransferDto.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 MAVN.Service.OperationsHistory.Domain.Models | ||
{ | ||
public class SmartVoucherTransferDto | ||
{ | ||
public string Id { get; set; } | ||
public DateTime Timestamp { get; set; } | ||
public Guid OldCustomerId { get; set; } | ||
public Guid NewCustomerId { get; set; } | ||
public Guid PartnerId { get; set; } | ||
public string CampaignId { get; set; } | ||
public string ShortCode { get; set; } | ||
public decimal Amount { get; set; } | ||
public string AssetSymbol { get; set; } | ||
public string CampaignName { get; set; } | ||
public string PartnerName { get; set; } | ||
public string Vertical { get; set; } | ||
public string NewCustomerEmail { get; set; } | ||
public string OldCustomerEmail { 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
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
2 changes: 1 addition & 1 deletion
2
src/MAVN.Service.OperationsHistory.Domain/Repositories/ITransactionHistoryRepository.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
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
12 changes: 12 additions & 0 deletions
12
src/MAVN.Service.OperationsHistory.Domain/Services/ISmartVoucherOperationsService.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,12 @@ | ||
using System.Threading.Tasks; | ||
using MAVN.Service.OperationsHistory.Domain.Models; | ||
|
||
namespace MAVN.Service.OperationsHistory.Domain.Services | ||
{ | ||
public interface ISmartVoucherOperationsService | ||
{ | ||
Task ProcessSmartVoucherSoldEventAsync(SmartVoucherPaymentDto smartVoucherPayment); | ||
Task ProcessSmartVoucherUsedEventAsync(SmartVoucherUseDto smartVoucherUse); | ||
Task ProcessSmartVoucherTransferredEventAsync(SmartVoucherTransferDto smartVoucherTransfer); | ||
} | ||
} |
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
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
Oops, something went wrong.