shakun
11 months ago
9 changed files with 219 additions and 7 deletions
-
61CustomerOnlineV2/CustomerOnlineV2.Api/API/TPApi/TPApiService.cs
-
7CustomerOnlineV2/CustomerOnlineV2.Common/Models/CommonResponse.cs
-
16CustomerOnlineV2/CustomerOnlineV2.Common/Models/Notification/AttachmentModel.cs
-
25CustomerOnlineV2/CustomerOnlineV2.Common/Models/Notification/NotificationDTO.cs
-
62CustomerOnlineV2/CustomerOnlineV2.Common/Models/Notification/NotifyTemplate.cs
-
30CustomerOnlineV2/CustomerOnlineV2.Common/Models/Notification/RecipientViewModel.cs
-
23CustomerOnlineV2/CustomerOnlineV2.Common/Models/Notification/SendNotificationRequest.cs
-
BINDB/PROC_DYNAMIC_TABLE.sql
-
2DB/mobile_proc_online_customerMaster_V1.sql
@ -0,0 +1,16 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.Notification |
|||
{ |
|||
public class AttachmentModel |
|||
{ |
|||
public string FileName { get; set; } |
|||
public string FilePath { get; set; } |
|||
public string FileType { get; set; } |
|||
public string Byte64String { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.Notification |
|||
{ |
|||
public class NotificationDTO |
|||
{ |
|||
|
|||
|
|||
public string Body { get; set; } |
|||
public string Title { get; set; } |
|||
|
|||
public string Image { get; set; } |
|||
|
|||
public List<AttachmentModel> Attachments { get; set; } |
|||
|
|||
public List<AttachmentModel> EmbeddedResources { get; set; } |
|||
|
|||
public string ClickActivity { get; set; } |
|||
} |
|||
} |
|||
|
@ -0,0 +1,62 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.Notification |
|||
{ |
|||
[DefaultValue(NONE)] |
|||
public enum NotifyTemplate |
|||
{ |
|||
NONE, |
|||
|
|||
|
|||
|
|||
[Description("Email to customer txn is created for bank transfer")] |
|||
BANK_TRANSFER_TXN_PENDING = 1, |
|||
|
|||
[Description("Email to customer after txn payment is cleared by IME London")] |
|||
BANK_TRANSFER_TXN_CLEARED = 2, |
|||
|
|||
[Description("Email to customer after txn is accepted by Pay-out partner")] |
|||
BANK_TXN_POST = 3, |
|||
|
|||
[Description("Email to customer after txn has been accepted by Pay-out partner (Cash Collection)")] |
|||
CASH_TXN_POST = 4, |
|||
|
|||
[Description("Email to customer for reset password. JsonRX")] |
|||
RESET_PASSWORD_EMAIL = 5, |
|||
|
|||
[Description("Email to customer after Basic Registration has been completed")] |
|||
BASIC_REGISTRATION_EMAIL = 6, |
|||
|
|||
[Description("Email to customer after KYC completion")] |
|||
KYC_VERIFICATION_EMAIL = 7, |
|||
|
|||
[Description("Email to customer for OTP")] |
|||
OTP_EMAIL = 8, |
|||
|
|||
TRANSACTION_APPROVED = 10, |
|||
|
|||
TRANSACTION_MODIFY = 11, |
|||
|
|||
JP_POST_APPROVED = 12, |
|||
|
|||
TRANSACTION_CANCELLED = 13, |
|||
|
|||
TRANSACTION_PAID = 14, |
|||
|
|||
TRANSACTION_SUCCESS = 15, |
|||
|
|||
TF_NO_BALANCE = 16 |
|||
} |
|||
|
|||
public enum NOTIFICATION_TYPE |
|||
{ |
|||
SMS, |
|||
EMAIL, |
|||
PUSH_NOTIFICATION |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.Notification |
|||
{ |
|||
public class RecipientViewModel |
|||
{ |
|||
public string Address { get; set; } |
|||
public string CcAddress { get; set; } |
|||
|
|||
public string BccAddress { get; set; } |
|||
public string DeviceType { get; set; } |
|||
|
|||
public DisplayMailAddress MailAddress { get; set; } |
|||
|
|||
public NotificationDTO NotificationContent { get; set; } |
|||
} |
|||
|
|||
public class DisplayMailAddress |
|||
{ |
|||
public string FromEmail { get; set; } |
|||
|
|||
public string AliasName { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,23 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.Notification |
|||
{ |
|||
public class SendNotificationRequest |
|||
{ |
|||
public string NotificationTypeId { get; set; } |
|||
|
|||
public bool IsBulkNotification { get; set; } |
|||
|
|||
public string ControlNo { get; set; } |
|||
|
|||
public List<RecipientViewModel> Recipients { get; set; } |
|||
|
|||
public NotifyTemplate Template { get; set; } |
|||
|
|||
public string Language { get; set; } |
|||
} |
|||
} |
2
DB/mobile_proc_online_customerMaster_V1.sql
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue