mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
17 lines
605 B
TypeScript
17 lines
605 B
TypeScript
import { Container, Inject } from 'typedi';
|
|
import SMSClient from '@/services/SMSClient';
|
|
|
|
export default class SubscriptionSMSMessages {
|
|
@Inject('SMSClient')
|
|
smsClient: SMSClient;
|
|
|
|
/**
|
|
* Sends license code to the given phone number via SMS message.
|
|
* @param {string} phoneNumber
|
|
* @param {string} licenseCode
|
|
*/
|
|
public async sendLicenseSMSMessage(phoneNumber: string, licenseCode: string) {
|
|
const message: string = `Your license card number: ${licenseCode}. If you need any help please contact us. Bigcapital.`;
|
|
return this.smsClient.sendMessage(phoneNumber, message);
|
|
}
|
|
} |