forked from Yara724/api
Added required documents for blame, added 2 sms
This commit is contained in:
@@ -94,6 +94,36 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
}
|
||||
}
|
||||
|
||||
async sendThirdPartyAgreementSignNotice(params: {
|
||||
receptor: string;
|
||||
publicId: string;
|
||||
link: string;
|
||||
}): Promise<boolean> {
|
||||
return this.sendTemplate({
|
||||
template: "yara-blame-agreement",
|
||||
receptor: params.receptor,
|
||||
token: params.publicId,
|
||||
token2: params.link,
|
||||
});
|
||||
}
|
||||
|
||||
async sendThirdPartyExpertStartedReviewNotice(
|
||||
params: {
|
||||
receptor: string;
|
||||
publicId: string;
|
||||
expertLastName: string;
|
||||
},
|
||||
): Promise<boolean> {
|
||||
return this.sendTemplate({
|
||||
template:
|
||||
process.env.SMS_TEMPLATE_THIRD_PARTY_EXPERT_LOCK ||
|
||||
"yara-blame-expert-lock",
|
||||
receptor: params.receptor,
|
||||
token: params.publicId,
|
||||
token2: params.expertLastName || "کارشناس",
|
||||
});
|
||||
}
|
||||
|
||||
private async sendTemplate(args: TemplateArgs): Promise<boolean> {
|
||||
try {
|
||||
await this.smsGatewayService.verifyLookUp(args);
|
||||
|
||||
Reference in New Issue
Block a user