update: add review count and also verification from admin panel

This commit is contained in:
mahyargdz
2025-03-02 11:49:26 +03:30
parent 27f4c9c633
commit af9f365bc7
13 changed files with 175 additions and 98 deletions
+1
View File
@@ -39,5 +39,6 @@ export type TemplateParams =
| "amount"
| "newBalance"
| "reason"
| "dueDate"
| "subject"
| "message";
+2 -1
View File
@@ -114,13 +114,14 @@ export class SmsService {
}
//************************************************* */
async sendInvoiceCreationSms(mobile: string, invoiceId: string, price: number, items: string, invoiceDate: string) {
async sendInvoiceCreationSms(mobile: string, invoiceId: string, price: number, items: string, invoiceDate: string, dueDate: string) {
const smsData: ISmsVerifyBody = {
Parameters: [
{ name: "invoiceId", value: invoiceId },
{ name: "price", value: Intl.NumberFormat("fa-IR").format(price) },
{ name: "items", value: items },
{ name: "invoiceDate", value: invoiceDate },
{ name: "dueDate", value: dueDate },
],
Mobile: mobile,
TemplateId: this.smsConfigs.SMS_PATTERN_INVOICE_CREATED,