| |
| |
| |
| |
|
|
| module.exports = { |
| |
| wifiCode: (code, planName, duration, deviceName) => |
| `WiFi Code: ${code}\nPlan: ${planName} (${duration})\nDevice: ${deviceName}\nEnter this code on the WiFi login page. Valid for ${duration} after connecting.`, |
|
|
| |
| manualWifiCode: (code, planName, duration, deviceName, expiryPreview) => |
| `WiFi Code: ${code}\nPlan: ${planName} (${duration})\nDevice: ${deviceName}\nValid for ${duration} after first connection. If used now, access ends around ${expiryPreview}.`, |
|
|
| |
| tokenExpired: (deviceName, planName = null) => |
| planName |
| ? `Your WiFi access for ${deviceName} (${planName}) has expired. Buy a new bundle to reconnect.` |
| : `Your WiFi access for ${deviceName} has expired. Buy a new bundle to reconnect.`, |
|
|
| |
| deviceRenewal: (deviceName, expiryDate) => |
| `"${deviceName}" renewed until ${expiryDate}. Keep selling!`, |
|
|
| |
| deviceOnline: (deviceName) => |
| `Your device "${deviceName}" is now online! Create WiFi plans to start selling.`, |
|
|
| |
| deviceOffline: (deviceName) => |
| `Alert: Your device "${deviceName}" went offline. Check the AP.`, |
|
|
| |
| deviceSuspended: (deviceName, fee) => |
| `Your device "${deviceName}" has been suspended (billing expired). Pay ${fee} TZS to reactivate.`, |
|
|
| |
| devicePaused: (deviceName, fee) => |
| `Your device "${deviceName}" has been paused. Pay ${fee} TZS to reactivate and resume WiFi service.`, |
|
|
| |
| welcome: () => |
| `Welcome to WiFi Platform! Add your first device on the dashboard to start selling WiFi.`, |
|
|
| |
| billingReminder: (deviceName, daysLeft, fee) => |
| `Reminder: Your WiFi device "${deviceName}" expires in ${daysLeft} day(s). Pay ${parseInt(fee).toLocaleString()} TZS to keep it active.`, |
|
|
| |
| passwordResetOtp: (otp) => `${otp} is your WifiBiz reset code.`, |
|
|
| |
| phoneChangeOtp: (otp) => `${otp} is your WifiBiz verification code.`, |
|
|
| |
| phoneChangeNotice: (newPhone) => |
| `Your WifiBiz account phone number has been changed to ${newPhone}. If this wasn't you, contact support immediately.`, |
|
|
| |
| payoutCompleted: (amount) => |
| `Payout of ${parseInt(amount).toLocaleString()} TZS sent to your M-Pesa.`, |
|
|
| |
| payoutFailed: (amount) => |
| `Payout of ${parseInt(amount).toLocaleString()} TZS failed. Your balance has been restored.`, |
|
|
| |
| purchaseAlert: (amount, revenue) => |
| `New bundle purchase: ${amount}. Revenue after payouts: ${revenue}.`, |
|
|
| |
| trialGranted: (deviceName, days, expiryDate) => |
| `Your device "${deviceName}" has been granted a ${days}-day trial. It expires on ${expiryDate}. Good luck!`, |
| }; |
|
|