update
This commit is contained in:
@@ -53,18 +53,11 @@ interface INotifySms {
|
||||
phone: string;
|
||||
subject: NotifTitleEnum;
|
||||
}
|
||||
// Sub intefaces
|
||||
// 1. Order Created Sms Notify Payload
|
||||
interface IOrderCreatedSmsNotifyPayload extends INotifySmsPayload {
|
||||
orderNumber: string;
|
||||
orderAmount: number;
|
||||
orderDate: Date;
|
||||
export interface IInAppNotificationPayload {
|
||||
subject: NotifTitleEnum;
|
||||
body: string;
|
||||
}
|
||||
|
||||
interface IOrderCreatedSmsNotify extends INotifySms {
|
||||
subject: NotifTitleEnum.ORDER_CREATED;
|
||||
payload: IOrderCreatedSmsNotifyPayload;
|
||||
}
|
||||
// 2. Payment Success
|
||||
interface IPaymentSuccessSmsNotifyPayload extends INotifySmsPayload {
|
||||
amount: number;
|
||||
@@ -76,4 +69,4 @@ interface IPaymentSuccessSmsNotify extends INotifySms {
|
||||
payload: IPaymentSuccessSmsNotifyPayload;
|
||||
}
|
||||
|
||||
export type ISmsNotifyPayload = IOrderCreatedSmsNotify | IPaymentSuccessSmsNotify;
|
||||
export type ISmsNotifyPayload = IPaymentSuccessSmsNotify;
|
||||
|
||||
Reference in New Issue
Block a user