mirror of https://github.com/sipwise/db-schema.git
Change-Id: I99a093720b4dfab898d69b4c85adfd21dc72284echanges/82/5082/2
parent
41ef61b98f
commit
85974017dd
@ -0,0 +1,16 @@
|
||||
use billing;
|
||||
set autocommit=0;
|
||||
|
||||
DELETE from email_templates
|
||||
WHERE reseller_id IS NULL
|
||||
AND name = 'credit_warning_default_email';
|
||||
|
||||
DELETE from email_templates
|
||||
WHERE reseller_id IS NULL
|
||||
AND name = 'customer_fraud_lock_default_email';
|
||||
|
||||
DELETE from email_templates
|
||||
WHERE reseller_id IS NULL
|
||||
AND name = 'customer_fraud_warning_default_email';
|
||||
|
||||
commit;
|
||||
@ -0,0 +1,50 @@
|
||||
use billing;
|
||||
set autocommit=0;
|
||||
|
||||
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
|
||||
VALUES
|
||||
(NULL, 'credit_warning_default_email', '[% adminmail %]',
|
||||
'Sipwise NGCP credit threshold notification',
|
||||
'Credit threshold warning for: [% domain %]
|
||||
The following contracts are below the configured threshold of [% threshold %]:
|
||||
|
||||
[% contracts %]
|
||||
|
||||
Your faithful Sipwise system
|
||||
|
||||
--
|
||||
This is an automatically generated message. Do not reply.');
|
||||
|
||||
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
|
||||
VALUES
|
||||
(NULL, 'customer_fraud_lock_default_email', '[% adminmail %]',
|
||||
'Customer # [% customer_id %] locked by fraud detection',
|
||||
'Customer # [% customer_id %] has been locked due to exceeding the configured
|
||||
credit balance threshold ([% interval_cost %] >= [% interval_limit %]) in the [% type %] settings.
|
||||
|
||||
Affected subscribers:
|
||||
[% subscribers %]
|
||||
|
||||
Your faithful Sipwise system
|
||||
|
||||
--
|
||||
This is an automatically generated message. Do not reply.');
|
||||
|
||||
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
|
||||
VALUES
|
||||
(NULL, 'customer_fraud_warning_default_email', '[% adminmail %]',
|
||||
'Customer # [% customer_id %] exceeding fraud detection limit',
|
||||
'Customer # [% customer_id %] is currently exceeding the configured credit balance
|
||||
threshold ([% interval_cost %] >= [% interval_limit %]) in the [% type %] settings,
|
||||
but has not been locked due to configuration.
|
||||
|
||||
Affected subscribers:
|
||||
[% subscribers %]
|
||||
|
||||
Your faithful Sipwise system
|
||||
|
||||
--
|
||||
This is an automatically generated message. Do not reply.');
|
||||
|
||||
commit;
|
||||
|
||||
Loading…
Reference in new issue