|
|
|
@@ -34,7 +34,7 @@ export class PaymentListeners {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const body = `پرداخت آنلاین جدید: پیشفاکتور شماره ${event.invoiceNumber} به مبلغ ${event.total.toLocaleString('fa-IR')} تومان`;
|
|
|
|
|
const body = `پرداخت آنلاین جدید: پیشفاکتور شماره ${event.invoiceNumber} به مبلغ ${event.total.toLocaleString('fa-IR')} ریال`;
|
|
|
|
|
|
|
|
|
|
const notifications = admins.map((admin) =>
|
|
|
|
|
this.em.create(Notification, {
|
|
|
|
@@ -82,7 +82,7 @@ export class PaymentListeners {
|
|
|
|
|
// : event.,
|
|
|
|
|
// message: {
|
|
|
|
|
// title: NotifTitleEnum.PAYMENT_SUCCESS,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${event.orderNumber} با روش ${this.getPaymentMethodFarsi(event.paymentMethod)} و مبلغ ${event.total} تومان با موفقیت انجام شد`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${event.orderNumber} با روش ${this.getPaymentMethodFarsi(event.paymentMethod)} و مبلغ ${event.total} ریال با موفقیت انجام شد`,
|
|
|
|
|
// sms: {
|
|
|
|
|
// templateId: this.orderCreatedSmsTemplateId,
|
|
|
|
|
// parameters: {
|
|
|
|
@@ -92,7 +92,7 @@ export class PaymentListeners {
|
|
|
|
|
// },
|
|
|
|
|
// pushNotif: {
|
|
|
|
|
// title: `پرداخت موفق`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${event.orderNumber} با روش ${this.getPaymentMethodFarsi(event.paymentMethod)} و مبلغ ${event.total} تومان با موفقیت انجام شد`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${event.orderNumber} با روش ${this.getPaymentMethodFarsi(event.paymentMethod)} و مبلغ ${event.total} ریال با موفقیت انجام شد`,
|
|
|
|
|
// icon: ``,
|
|
|
|
|
// action: {
|
|
|
|
|
// type: NotifTitleEnum.PAYMENT_SUCCESS,
|
|
|
|
@@ -130,7 +130,7 @@ export class PaymentListeners {
|
|
|
|
|
// : event.,
|
|
|
|
|
// message: {
|
|
|
|
|
// title: NotifTitleEnum.ORDER_CREATED,
|
|
|
|
|
// content: `سفارش شماره ${event.orderNumber} با مبلغ ${event.total} تومان با موفقیت ایجاد شد`,
|
|
|
|
|
// content: `سفارش شماره ${event.orderNumber} با مبلغ ${event.total} ریال با موفقیت ایجاد شد`,
|
|
|
|
|
// sms: {
|
|
|
|
|
// templateId: this.orderCreatedSmsTemplateId,
|
|
|
|
|
// parameters: {
|
|
|
|
@@ -140,7 +140,7 @@ export class PaymentListeners {
|
|
|
|
|
// },
|
|
|
|
|
// pushNotif: {
|
|
|
|
|
// title: `سفارش جدید`,
|
|
|
|
|
// content: `سفارش شماره ${event.orderNumber} با مبلغ ${event.total} تومان با موفقیت ایجاد شد`,
|
|
|
|
|
// content: `سفارش شماره ${event.orderNumber} با مبلغ ${event.total} ریال با موفقیت ایجاد شد`,
|
|
|
|
|
// icon: `/`,
|
|
|
|
|
// action: {
|
|
|
|
|
// type: NotifTitleEnum.ORDER_CREATED,
|
|
|
|
@@ -171,7 +171,7 @@ export class PaymentListeners {
|
|
|
|
|
// : event.,
|
|
|
|
|
// message: {
|
|
|
|
|
// title: NotifTitleEnum.PAYMENT_SUCCESS,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${order.orderNumber} با روش ${this.getPaymentMethodFarsi(order.paymentMethod.method)} و مبلغ ${order.total} تومان با موفقیت انجام شد`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${order.orderNumber} با روش ${this.getPaymentMethodFarsi(order.paymentMethod.method)} و مبلغ ${order.total} ریال با موفقیت انجام شد`,
|
|
|
|
|
// sms: {
|
|
|
|
|
// templateId: this.paymentSucceedSmsTemplateId,
|
|
|
|
|
// parameters: {
|
|
|
|
@@ -181,7 +181,7 @@ export class PaymentListeners {
|
|
|
|
|
// },
|
|
|
|
|
// pushNotif: {
|
|
|
|
|
// title: `پرداخت موفق`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${order.orderNumber} با روش ${this.getPaymentMethodFarsi(order.paymentMethod.method)} و مبلغ ${order.total} تومان با موفقیت انجام شد`,
|
|
|
|
|
// content: `پرداخت سفارش شماره ${order.orderNumber} با روش ${this.getPaymentMethodFarsi(order.paymentMethod.method)} و مبلغ ${order.total} ریال با موفقیت انجام شد`,
|
|
|
|
|
// icon: `/`,
|
|
|
|
|
// action: {
|
|
|
|
|
// type: NotifTitleEnum.PAYMENT_SUCCESS,
|
|
|
|
|