You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Form/CustomerFraudPreferences/PreferencesAPI.pm

55 lines
1.6 KiB

package NGCP::Panel::Form::CustomerFraudPreferences::PreferencesAPI;
use HTML::FormHandler::Moose;
use HTML::FormHandler::Widget::Block::Bootstrap;
extends 'HTML::FormHandler';
has_field 'fraud_interval_limit' => (
type => 'Integer',
label => 'Fraud detection threshold per month in cents.',
);
has_field 'fraud_interval_lock' => (
type => 'Select',
label => 'Lock Level',
options => [
{ value => 0, label => 'none' },
{ value => 1, label => 'foreign calls' },
{ value => 2, label => 'all outgoing calls' },
{ value => 3, label => 'incoming and outgoing' },
{ value => 4, label => 'global (including CSC)' },
{ value => 5, label => 'ported (call forwarding only)' },
],
);
has_field 'fraud_interval_notify' => (
type => '+NGCP::Panel::Field::EmailList',
maxlength => 255,
label => 'Comma-separated list of e-mail addresses for notification.'
);
has_field 'fraud_daily_limit' => (
type => 'Integer',
label => 'Fraud detection threshold per day in cents.',
);
has_field 'fraud_daily_lock' => (
type => 'Select',
label => 'Lock Level',
options => [
{ value => 0, label => 'none' },
{ value => 1, label => 'foreign calls' },
{ value => 2, label => 'all outgoing calls' },
{ value => 3, label => 'incoming and outgoing' },
{ value => 4, label => 'global (including CSC)' },
{ value => 5, label => 'ported (call forwarding only)' },
],
);
has_field 'fraud_daily_notify' => (
type => '+NGCP::Panel::Field::EmailList',
maxlength => 255,
label => 'Comma-separated list of e-mail addresses for notification.'
);
1;