fix(server): rename term to

This commit is contained in:
Ahmed Bouhuolia
2024-08-13 13:41:09 +02:00
parent cd90fede54
commit 9991eebaaf
35 changed files with 89 additions and 93 deletions

View File

@@ -0,0 +1,27 @@
import { Container } from 'typedi';
import { On, EventSubscriber } from 'event-dispatch';
import events from '@/subscribers/events';
import { PaymentReceiveNotifyBySms } from './PaymentReceivedSmsNotify';
@EventSubscriber()
export default class SendSmsNotificationPaymentReceive {
paymentReceiveNotifyBySms: PaymentReceiveNotifyBySms;
constructor() {
this.paymentReceiveNotifyBySms = Container.get(PaymentReceiveNotifyBySms);
}
/**
*
*/
@On(events.paymentReceive.onNotifySms)
async sendSmsNotificationOnceInvoiceNotify({
paymentReceive,
customer,
}) {
await this.paymentReceiveNotifyBySms.sendSmsNotification(
paymentReceive,
customer
);
}
}