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/Contract/ContractAPI.pm

45 lines
1.1 KiB

package NGCP::Panel::Form::Contract::ContractAPI;
use HTML::FormHandler::Moose;
extends 'NGCP::Panel::Form::Contract::BaseAPI';
has_field 'contact_id' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['The contact id this contract belongs to.'],
expand => {
class => 'NGCP::Panel::Role::API::SystemContacts',
},
},
);
has_field 'billing_profile_definition' => (
type => 'Select',
#required => 1,
options => [
{ value => 'id', label => 'single: by \'billing_profile_id\' field' },
{ value => 'profiles', label => 'schedule: by \'billing_profiles\' field' },
],
element_attr => {
rel => ['tooltip'],
title => ['Explicitly declare the way how you want to set billing profiles for this API call.']
},
);
has_field 'type' => (
type => 'Select',
options => [
{ value => "sippeering", label => "sippeering"},
{ value => "reseller", label => "reseller"},
],
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['Either "sippeering" or "reseller".']
},
);
1;