TT#22411 Fix spelling mistakes/typos

s/Diffrent/Different/
s/If it mathes/If it matches/
s/addreses/addresses/
s/altough/although/
s/autenticate/authenticate/
s/curently/currently/
s/dont't/don't/
s/dont/don't/
s/existance/existence/
s/explicitely/explicitly/
s/in in/in/
s/lenght/length/
s/neccessary/necessary/
s/occured/occurred/
s/occurence/occurrence/
s/packge/package/
s/paramters/parameters/
s/perfomed/performed/
s/propery/property/
s/recieve/receive/
s/reponse/response/
s/sematical/semantical/
s/serie /series /
s/than than/than/
s/the the/the/
s/underun/underrun/
s/wether/whether/
s/wihout/without/

NOTE: Ignoring stuff in share/static + debian/changelog though

Change-Id: I90fe718c92582eedf9325d2df3c3280f5f25afd7
changes/05/15605/2
Michael Prokop 8 years ago
parent ce315a86c6
commit 12234e584d

@ -164,7 +164,7 @@
<message name="empty_Response">
</message>
<!-- this is curently only used by create_interception -->
<!-- this is currently only used by create_interception -->
<message name="integer_Response">
<part name="data" type="xsd:int" />
</message>

@ -22,7 +22,7 @@ sub allowed_methods{
}
sub api_description {
return 'Specifies the fees to be applied for a call if it matches the source or destination number of the call. You can POST fees individually one-by-one using json. To bulk-upload fees, specify the Content-Type as "text/csv" and POST the CSV in the request body to the collection while specifying the the billing profile via URI parameters, like "/api/billingfees/?billing_profile_id=xx&amp;purge_existing=true"';
return 'Specifies the fees to be applied for a call if it matches the source or destination number of the call. You can POST fees individually one-by-one using json. To bulk-upload fees, specify the Content-Type as "text/csv" and POST the CSV in the request body to the collection while specifying the billing profile via URI parameters, like "/api/billingfees/?billing_profile_id=xx&amp;purge_existing=true"';
}
sub query_params {

@ -47,7 +47,7 @@ sub query_params {
second => sub {
return { join => 'billing_network_blocks',
group_by => 'me.id', }
#distinct => 1 }; #not neccessary if _CHECK_BLOCK_OVERLAPS was always on
#distinct => 1 }; #not necessary if _CHECK_BLOCK_OVERLAPS was always on
},
},
},

@ -35,7 +35,7 @@ sub query_params {
second => sub {
return { join => 'voip_contract_location_blocks',
group_by => 'me.id', }
#distinct => 1 }; #not neccessary if _CHECK_BLOCK_OVERLAPS was always on
#distinct => 1 }; #not necessary if _CHECK_BLOCK_OVERLAPS was always on
},
},
},

@ -156,7 +156,7 @@ sub create_item {
$self->error($c, HTTP_PAYMENT_REQUIRED, "Not enough credit to send the sms");
} else {
$self->error($c, HTTP_INTERNAL_SERVER_ERROR,
"An internal error has occured when sending the sms, please contact the platform administrator or try again later");
"An internal error has occurred when sending the sms, please contact the platform administrator or try again later");
}
}

@ -2430,7 +2430,7 @@ sub edit_master :Chained('master') :PathPart('edit') :Args(0) :Does(ACL) :ACLDet
# we don't change this on edit
$c->request->params->{username} = $prov_subscriber->username;
if ($subadmin_pbx) {
#dont change the status
#don't change the status
$c->request->params->{status} = $subscriber->status;
}
unless($posted) {

@ -60,7 +60,7 @@ sub validate {
}
if ($self->has_errors) {
#dont add more errors
#don't add more errors
} elsif (defined $cc && $cc ne '' && (!defined $sn || $sn eq '')) {
my $err_msg = 'Subscriber Number required if Country Code is set';
$self->add_error($err_msg);

@ -69,7 +69,7 @@ sub validate {
}
if ($self->has_errors) {
#dont add more errors
#don't add more errors
} elsif (defined $cc && $cc ne '' && (!defined $sn || $sn eq '')) {
my $err_msg = 'Subscriber Number required if Country Code is set';
$self->add_error($err_msg);

@ -103,7 +103,7 @@ has_field 'rated_at' => (
type => 'Text',
element_attr => {
rel => ['tooltip'],
title => ['The timestamp when the rating occured.']
title => ['The timestamp when the rating occurred.']
},
required => 0,
);
@ -125,7 +125,7 @@ has_field 'exported_at' => (
type => 'Text',
element_attr => {
rel => ['tooltip'],
title => ['The timestamp when the exporting occured.']
title => ['The timestamp when the exporting occurred.']
},
required => 0,
);

@ -39,7 +39,7 @@ has_field 'fraud_daily_notify' => (
maxlength => 255,
element_attr => {
rel => ['tooltip'],
title => ['where e-mail notifications are sent, a list of e-mail addreses separated by comma']
title => ['where e-mail notifications are sent, a list of e-mail addresses separated by comma']
},
);

@ -39,7 +39,7 @@ has_field 'fraud_interval_notify' => (
maxlength => 255,
element_attr => {
rel => ['tooltip'],
title => ['where e-mail notifications are sent, a list of e-mail addreses separated by comma']
title => ['where e-mail notifications are sent, a list of e-mail addresses separated by comma']
},
);

@ -21,7 +21,7 @@ has_field 'export_status' => (
has_field 'exported_at' => (
type => 'Text',
title => 'The timestamp when the exporting occured.',
title => 'The timestamp when the exporting occurred.',
required => 0,
);

@ -142,7 +142,7 @@ has_field 'notopup_discard_intervals' => (
type => 'PosInteger',
element_attr => {
rel => ['tooltip'],
title => ['The balance will be discarded if no top-up happened for the the given number of balance interval units.']
title => ['The balance will be discarded if no top-up happened for the given number of balance interval units.']
},
);

@ -146,7 +146,7 @@ has_field 'notopup_discard_intervals' => (
label => 'Discard balance after intervals',
element_attr => {
rel => ['tooltip'],
title => ['The balance will be discarded if no top-up happened for the the given number of balance interval units.']
title => ['The balance will be discarded if no top-up happened for the given number of balance interval units.']
},
);

@ -28,7 +28,7 @@ has_field 'package_id' => (
required => 0,
element_attr => {
rel => ['tooltip'],
title => ['The billing packge to switch to after topup.']
title => ['The billing package to switch to after topup.']
},
);

@ -6004,7 +6004,7 @@ msgstr "SVG speichern"
#: lib/NGCP/Panel/Utils/DbStrings.pm
msgid ""
"Search for partial match of user-provided number (UPN) to subscriber's "
"primary E164 number and aliases. If it mathes, take UPN as valid wihout "
"primary E164 number and aliases. If it matches, take UPN as valid without "
"allowed_clis check and copy UPN to network-provided number (NPN)."
msgstr ""
"Suche nach partieller Übereinstimmung der user-provided Nummer (UPN) in der "
@ -6196,13 +6196,13 @@ msgid "Sorry!"
msgstr "Verzeihung!"
#: share/templates/notfound_page.tt
msgid "Sorry, an error has occured, Requested page not found!"
msgid "Sorry, an error has occurred, Requested page not found!"
msgstr ""
"Verzeihung, ein Problem ist aufgetreten. Die angeforderte Seite konnte nicht "
"gefunden werden!"
#: share/templates/denied_page.tt
msgid "Sorry, an error has occured, requested operation denied!"
msgid "Sorry, an error has occurred, requested operation denied!"
msgstr ""
"Verzeihung, ein Problem ist aufgetreten. Die angeforderte Operation ist "
"nicht erlaubt!"
@ -7493,7 +7493,7 @@ msgid "Vouchers"
msgstr ""
#: share/templates/error_page.tt
msgid "We are terribly sorry, an exceptional error has occured:"
msgid "We are terribly sorry, an exceptional error has occurred:"
msgstr "Wir bitten um Verzeihung, ein schwerer Fehler ist aufgetreten:"
#: share/templates/widgets/subscriber_topmenu_settings.tt
@ -9257,7 +9257,7 @@ msgstr "ja"
#~ msgstr "bis inkl."
#~ msgid ""
#~ "where e-mail notifications are sent, a list of e-mail addreses separated "
#~ "where e-mail notifications are sent, a list of e-mail addresses separated "
#~ "by comma"
#~ msgstr ""
#~ "Komma-separierte Liste von Email-Adressen, and die Benachrichtigungen "

@ -6010,7 +6010,7 @@ msgstr ""
#: lib/NGCP/Panel/Utils/DbStrings.pm
msgid ""
"Search for partial match of user-provided number (UPN) to subscriber's "
"primary E164 number and aliases. If it mathes, take UPN as valid wihout "
"primary E164 number and aliases. If it matches, take UPN as valid without "
"allowed_clis check and copy UPN to network-provided number (NPN)."
msgstr ""
"Buscar por una coincidencia parcial del UPN (CLI proporcionado por el "
@ -6208,12 +6208,12 @@ msgid "Sorry!"
msgstr "¡Lo sentimos!"
#: share/templates/notfound_page.tt
msgid "Sorry, an error has occured, Requested page not found!"
msgid "Sorry, an error has occurred, Requested page not found!"
msgstr ""
"Lo sentimos, se ha producido un error, página solicitada no encontrada!"
#: share/templates/denied_page.tt
msgid "Sorry, an error has occured, requested operation denied!"
msgid "Sorry, an error has occurred, requested operation denied!"
msgstr "Lo sentimos, se ha producido un error, operación solicitada denegada!"
#: share/templates/customer/details.tt share/templates/sound/list.tt
@ -7496,7 +7496,7 @@ msgid "Vouchers"
msgstr ""
#: share/templates/error_page.tt
msgid "We are terribly sorry, an exceptional error has occured:"
msgid "We are terribly sorry, an exceptional error has occurred:"
msgstr "Lo sentimos, ha ocurrido un error:"
#: share/templates/widgets/subscriber_topmenu_settings.tt
@ -8822,7 +8822,7 @@ msgstr "sí"
#~ msgstr "through"
#~ msgid ""
#~ "where e-mail notifications are sent, a list of e-mail addreses separated "
#~ "where e-mail notifications are sent, a list of e-mail addresses separated "
#~ "by comma"
#~ msgstr ""
#~ "lista de direcciones de correo separadas por coma a las que enviar "

@ -6158,7 +6158,7 @@ msgstr "Salva SVG"
#: lib/NGCP/Panel/Utils/DbStrings.pm
msgid ""
"Search for partial match of user-provided number (UPN) to subscriber's "
"primary E164 number and aliases. If it mathes, take UPN as valid wihout "
"primary E164 number and aliases. If it matches, take UPN as valid without "
"allowed_clis check and copy UPN to network-provided number (NPN)."
msgstr ""
"Ricerca per un riscontro parziale di user-provided number (UPN) con il "
@ -6356,13 +6356,13 @@ msgid "Sorry!"
msgstr "Siamo desolati!"
#: share/templates/notfound_page.tt
msgid "Sorry, an error has occured, Requested page not found!"
msgid "Sorry, an error has occurred, Requested page not found!"
msgstr ""
"Mi spiace, si è verificato un errore, la pagina richiesta non è stata "
"trovata!"
#: share/templates/denied_page.tt
msgid "Sorry, an error has occured, requested operation denied!"
msgid "Sorry, an error has occurred, requested operation denied!"
msgstr ""
"Mi spiace, si è verificato un errore, l´operazione richiesta non è permessa!"
@ -7675,7 +7675,7 @@ msgid "Vouchers"
msgstr "Vouchers"
#: share/templates/error_page.tt
msgid "We are terribly sorry, an exceptional error has occured:"
msgid "We are terribly sorry, an exceptional error has occurred:"
msgstr "Mi spiace, si è verificato un errore eccezionale:"
#: share/templates/widgets/subscriber_topmenu_settings.tt
@ -8177,7 +8177,7 @@ msgstr "si"
#~ msgstr ""
#~ "Una lista di reti di fatturazione, ognuno contenente le chiavi "
#~ "(fondamentali) indirizzo \"ip\" e \"mask\" per specificare la porzione di "
#~ "rete (subnet prefix lenght)."
#~ "rete (subnet prefix length)."
#~ msgid ""
#~ "An array of billing network blocks, each containing the keys (base) \"ip"
@ -8187,7 +8187,7 @@ msgstr "si"
#~ msgstr ""
#~ "Una lista di reti di fatturazione, ognuno contenente le chiavi "
#~ "(fondamentali) indirizzo \"ip\" e \"mask\" per specificare la porzione di "
#~ "rete (subnet prefix lenght). I blocchi specificati non si devono "
#~ "rete (subnet prefix length). I blocchi specificati non si devono "
#~ "sovrapporre e possono indipendentemente contenere indirizzi IPv4 e IPv6."
#~ msgid ""
@ -8235,7 +8235,7 @@ msgstr "si"
#~ msgstr ""
#~ "Una lista di location, ognuno contenente le chiavi (fondamentali): "
#~ "indirizzo \"ip\" e \"mask\" per specificare la porzione di rete (subnet "
#~ "prefix lenght)."
#~ "prefix length)."
#~ msgid ""
#~ "An array of location blocks, each containing the keys (base) \"ip\" "
@ -8245,7 +8245,7 @@ msgstr "si"
#~ msgstr ""
#~ "Una lista di location, ognuno contenente le chiavi (fondamentali): "
#~ "indirizzo \"ip\" e \"mask\" per specificare la porzione di rete (subnet "
#~ "prefix lenght). I blocchi specificati non si devono sovrapporre e possono "
#~ "prefix length). I blocchi specificati non si devono sovrapporre e possono "
#~ "indipendentemente contenere indirizzi IPv4 e IPv6."
#~ msgid ""
@ -10234,7 +10234,7 @@ msgstr "si"
#~ msgid "The billing network id this profile is restricted to."
#~ msgstr "L´Id rete di fatturazione a cui questo profilo è limitato"
#~ msgid "The billing packge to switch to after topup."
#~ msgid "The billing package to switch to after topup."
#~ msgstr "Il pacchetto tariffario a cui passare dopo una ricarica"
#~ msgid ""
@ -11189,10 +11189,10 @@ msgstr "si"
#~ msgid "The timestamp of the topup attempt."
#~ msgstr "La data e ora in cui è avvenuto un tentativo di ricarica."
#~ msgid "The timestamp when the exporting occured."
#~ msgid "The timestamp when the exporting occurred."
#~ msgstr "La data e ora in cui è avvenuta l´esportazione."
#~ msgid "The timestamp when the rating occured."
#~ msgid "The timestamp when the rating occurred."
#~ msgstr "La data e ora in cui è avvenuta la tariffazione."
#~ msgid "The top-up amount in Euro/USD/etc."
@ -11814,7 +11814,7 @@ msgstr "si"
#~ msgstr "settimana/e"
#~ msgid ""
#~ "where e-mail notifications are sent, a list of e-mail addreses separated "
#~ "where e-mail notifications are sent, a list of e-mail addresses separated "
#~ "by comma"
#~ msgstr ""
#~ "dove inviare la notifica email, una lista di indirizzi e-mail separati da "

@ -5406,7 +5406,7 @@ msgid "Save SVG"
msgstr ""
#: lib/NGCP/Panel/Utils/DbStrings.pm
msgid "Search for partial match of user-provided number (UPN) to subscriber's primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN)."
msgid "Search for partial match of user-provided number (UPN) to subscriber's primary E164 number and aliases. If it matches, take UPN as valid without allowed_clis check and copy UPN to network-provided number (NPN)."
msgstr ""
#: share/templates/subscriber/preferences.tt
@ -5563,11 +5563,11 @@ msgid "Sorry!"
msgstr ""
#: share/templates/notfound_page.tt
msgid "Sorry, an error has occured, Requested page not found!"
msgid "Sorry, an error has occurred, Requested page not found!"
msgstr ""
#: share/templates/denied_page.tt
msgid "Sorry, an error has occured, requested operation denied!"
msgid "Sorry, an error has occurred, requested operation denied!"
msgstr ""
#: share/templates/customer/details.tt share/templates/sound/list.tt share/templates/widgets/reseller_domain_overview.tt
@ -6667,7 +6667,7 @@ msgid "Vouchers"
msgstr ""
#: share/templates/error_page.tt
msgid "We are terribly sorry, an exceptional error has occured:"
msgid "We are terribly sorry, an exceptional error has occurred:"
msgstr ""
#: share/templates/widgets/subscriber_topmenu_settings.tt share/templates/widgets/subscriberadmin_topmenu_settings.tt

@ -6011,7 +6011,7 @@ msgstr "Сохранить SVG"
#: lib/NGCP/Panel/Utils/DbStrings.pm
msgid ""
"Search for partial match of user-provided number (UPN) to subscriber's "
"primary E164 number and aliases. If it mathes, take UPN as valid wihout "
"primary E164 number and aliases. If it matches, take UPN as valid without "
"allowed_clis check and copy UPN to network-provided number (NPN)."
msgstr ""
"Искать частичное совпадение пользовательского номера (UPN) с первичным и "
@ -6208,11 +6208,11 @@ msgid "Sorry!"
msgstr "Извините!"
#: share/templates/notfound_page.tt
msgid "Sorry, an error has occured, Requested page not found!"
msgid "Sorry, an error has occurred, Requested page not found!"
msgstr "Извините, произошла ошибка, запрошенная страница не найдена!"
#: share/templates/denied_page.tt
msgid "Sorry, an error has occured, requested operation denied!"
msgid "Sorry, an error has occurred, requested operation denied!"
msgstr "Извините, произошла ошибка, запрошенная операция запрещена!"
#: share/templates/customer/details.tt share/templates/sound/list.tt
@ -7494,7 +7494,7 @@ msgid "Vouchers"
msgstr ""
#: share/templates/error_page.tt
msgid "We are terribly sorry, an exceptional error has occured:"
msgid "We are terribly sorry, an exceptional error has occurred:"
msgstr "Нам ужасно жаль, но приключилась беда:"
#: share/templates/widgets/subscriber_topmenu_settings.tt
@ -9523,10 +9523,10 @@ msgstr "да"
#~ msgid "The timestamp of the call initiation."
#~ msgstr "Отметка времени начала звонка."
#~ msgid "The timestamp when the exporting occured."
#~ msgid "The timestamp when the exporting occurred."
#~ msgstr "Отметка времени когда произошел экспорт."
#~ msgid "The timestamp when the rating occured."
#~ msgid "The timestamp when the rating occurred."
#~ msgstr "Отметка времени когда произошел биллинг."
#~ msgid "The transport protocol (one of UDP, TCP, TLS, ANY)."
@ -9798,7 +9798,7 @@ msgstr "да"
#~ msgstr "не тарифицированный"
#~ msgid ""
#~ "where e-mail notifications are sent, a list of e-mail addreses separated "
#~ "where e-mail notifications are sent, a list of e-mail addresses separated "
#~ "by comma"
#~ msgstr ""
#~ "получатели EMail уведомлений, список EMail адресов разделенных запятой"

@ -130,7 +130,7 @@ sub get_resource {
if($rwr_set) {
$resource->{rewrite_rule_set} = $rwr_set->name;
} else {
$c->log->error("no rewrite rule set for '".$pref->attribute->attribute."' with value '".$pref->value."' found, altough it's stored in preference id ".$pref->id);
$c->log->error("no rewrite rule set for '".$pref->attribute->attribute."' with value '".$pref->value."' found, although it's stored in preference id ".$pref->id);
# let it slip through
}
$processed = 1;
@ -149,7 +149,7 @@ sub get_resource {
if($ncos) {
$resource->{$pref_name} = $ncos->level;
} else {
$c->log->error("no ncos level for '".$pref->attribute->attribute."' with value '".$pref->value."' found, altough it's stored in preference id ".$pref->id);
$c->log->error("no ncos level for '".$pref->attribute->attribute."' with value '".$pref->value."' found, although it's stored in preference id ".$pref->id);
# let it slip through
}
$processed = 1;
@ -168,7 +168,7 @@ sub get_resource {
if($container) {
$resource->{$pref_name} = $container->name;
} else {
$c->log->error("no emergency mapping container for '".$pref->attribute->attribute."' with value '".$pref->value."' found, altough it's stored in preference id ".$pref->id);
$c->log->error("no emergency mapping container for '".$pref->attribute->attribute."' with value '".$pref->value."' found, although it's stored in preference id ".$pref->id);
# let it slip through
}
$processed = 1;
@ -185,7 +185,7 @@ sub get_resource {
if($set) {
$resource->{$pref->attribute->attribute} = $set->name;
} else {
$c->log->error("no sound set for '".$pref->attribute->attribute."' with value '".$pref->value."' found, altough it's stored in preference id ".$pref->id);
$c->log->error("no sound set for '".$pref->attribute->attribute."' with value '".$pref->value."' found, although it's stored in preference id ".$pref->id);
# let it slip through
}
$processed = 1;

@ -20,7 +20,7 @@ sub recursively_lock_contract {
}
# first, change all voip subscribers, in case there are any
# we dont need to set to active, or any other level, already terminated subscribers
# we don't need to set to active, or any other level, already terminated subscribers
for my $subscriber($contract->voip_subscribers->search_rs({ 'me.status' => { '!=' => 'terminated' } })->all) {
$subscriber->update({ status => $status });
if($status eq 'terminated') {

@ -102,7 +102,7 @@ sub localize {
$c->loc('Session-Timer Min Refresh Interval');
$c->loc('Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.');
$c->loc('Session-Timer Max Refresh Interval');
$c->loc('Sets upper limit on accepted Min-SE value in in SBC.');
$c->loc('Sets upper limit on accepted Min-SE value in SBC.');
$c->loc('Session-Timer Refresh Method');
$c->loc('SIP Session Timers refresh method.');
$c->loc('System Sound Set');
@ -128,7 +128,7 @@ sub localize {
$c->loc('Enable Apple/Google Mobile Push');
$c->loc('Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.');
$c->loc('Use valid Alias CLI as NPN');
$c->loc('Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).');
$c->loc('Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it matches, take UPN as valid without allowed_clis check and copy UPN to network-provided number (NPN).');
$c->loc('Total max of overall calls of Customer');
$c->loc('Maximum number of concurrent sessions (calls) for subscribers within the same account');
$c->loc('Total max of outbound calls of Customer');
@ -405,7 +405,7 @@ sub form_strings {
$c->loc('Alias Number');
$c->loc('Alias numbers');
$c->loc('Alias number');
$c->loc('where e-mail notifications are sent, a list of e-mail addreses separated by comma');
$c->loc('where e-mail notifications are sent, a list of e-mail addresses separated by comma');
$c->loc('Level Name');
$c->loc('April');
$c->loc('Contact Email');

@ -84,7 +84,7 @@ sub update_device_model_ranges {
unless($range_db) {#really this is strange situation
$range_db = $range_rs->create($range);
} else {
# formhandler only passes set check-boxes, so explicitely unset here
# formhandler only passes set check-boxes, so explicitly unset here
$range->{can_private} //= 0;
$range->{can_shared} //= 0;
$range->{can_blf} //= 0;
@ -326,7 +326,7 @@ NGCP::Panel::Utils::Device
=head1 DESCRIPTION
Diffrent business logic method for pbx devices
Different business logic method for pbx devices
=head1 METHODS

@ -142,7 +142,7 @@ has 'classinfo' => ( is => 'ro', isa => HashRef, default => sub{
revalidate => 0,
},
ds1_spans_optical => {
name => 'SpanGroup', # TODO: double occurence, is that acceptable?
name => 'SpanGroup', # TODO: double occurrence, is that acceptable?
parent => 'ds3_interface',
revalidate => 0,
},

@ -299,7 +299,7 @@ Params:
$error - error log message, will be parsed and may also appear on the GUI
$type - 'panel' by default, means the message will go to both the log and the GUI,
anything else but 'panel' is written only to the log.
Expandable with new types if neccessary.
Expandable with new types if necessary.
Current types 'panel','internal','api_request','api_response'
$data - hash containing what will be written into the DATA= part of the log message
(by default $c->request->params is used for the data source)
@ -319,7 +319,7 @@ Params:
$log - additional information that will be added to LOG= only (no GUI).
$type - 'panel' by default, means the message will go to both the log and the GUI,
anything else but 'panel' is written only to the log.
Expandable with new types if neccessary.
Expandable with new types if necessary.
Current types 'panel','internal','api_request','api_response'
$data - hash containing what will be written into the DATA= part of the log message
(by default $c->request->params is used for the data source)

@ -333,7 +333,7 @@ PREPARE_BALANCE_CATCHUP:
# the interval start represents the time the last topup happened in case of "topup".
# in case of "topup_interval", the interval start represents the contract creation.
# the cash balance should be discarded when
# 1. the current/call time is later than than $notopup_discard_intervals periods
# 1. the current/call time is later than $notopup_discard_intervals periods
# after the interval start, or
# 2. we have the "carry_over_timely" mode, and the current/call time is beyond
# the timely end already
@ -844,7 +844,7 @@ sub _get_notopup_expiration {
my($contract,$start_mode,$notopup_discard_intervals,$interval_unit,$last_balance)= @params{qw/contract $start_mode notopup_discard_intervals interval_unit last_balance/};
my $notopup_expiration = undef;
if ($notopup_discard_intervals) {
#take the start of the latest interval where a topup occured,
#take the start of the latest interval where a topup occurred,
#add the allowed number+1 of the current package' interval units.
#the balance is discarded if the start of the next package
#exceed this calculated expiration date.
@ -1162,7 +1162,7 @@ sub check_underrun_lock_level {
if (defined $resource->{underrun_lock_level}) {
unless(defined $resource->{underrun_lock_threshold}){
return 0 unless &{$err_code}("If specifying an underun lock level, 'underrun_lock_threshold' is required.",'underrun_lock_threshold');
return 0 unless &{$err_code}("If specifying an underrun lock level, 'underrun_lock_threshold' is required.",'underrun_lock_threshold');
}
}
return 1;

@ -374,7 +374,7 @@ END%]
</li>
<li>
<b>copy, move</b>
<p>Copies or moves (copy, then remove) the value from property defined by <b>from</b> to the propery defined by <b>path</b>.</p>
<p>Copies or moves (copy, then remove) the value from property defined by <b>from</b> to the property defined by <b>path</b>.</p>
</li>
</ul>
</p>

@ -72,7 +72,7 @@ As a consequence, this means that a client implemented against the API <b>should
<h[% level + 1%]>Query Parameters</h[% level + 1%]>
Some collections define query paramters to filter the output. Typical use cases are limiting collections to a specific reseller or a specific customer.
Some collections define query parameters to filter the output. Typical use cases are limiting collections to a specific reseller or a specific customer.
Query parameters are appended to the URL like in the following example:
@ -124,7 +124,7 @@ The server sends the following successful responses:
The server redirects the clients using the following return codes:
<ul>
<li><b>301 Moved Permanently</b>: The 301 code is sent in reponse to a request towards a collection without a trailing slash, e.g. <em>http://example.org:1443/api/something</em> is redirected to <em>http://example.org:1443/api/something/</em>.</li>
<li><b>301 Moved Permanently</b>: The 301 code is sent in response to a request towards a collection without a trailing slash, e.g. <em>http://example.org:1443/api/something</em> is redirected to <em>http://example.org:1443/api/something/</em>.</li>
</ul>
<h[% level + 2%]>4xx Client Error</h[% level + 2%]>
@ -137,7 +137,7 @@ The server rejects a client request with the following response codes:
<li><b>403 Forbidden</b>: The 403 code is sent in response to a request trying to access resources which require different privileges (typically a reseller accessing resources of other resellers or of the system), or if you try to create more subscribers than allowed within a customer, or if you try to authenticate with an SSL client certificate with an invalid serial number.</li>
<li><b>404 Not Found</b>: The 404 code is sent in response to a request trying to access an invalid URL on the system, or if it is trying to perform an operation on an item which does not exist or the user has no access to (e.g. a reseller trying to access items of a different reseller).</li>
<li><b>415 Unsupported Media Type</b>: The 415 code is sent in response to a PUT, POST or PATCH request which doesn't provide an acceptable <em>Content-Type</em> header. Content types are usually <em>application/json</em> or <em>application/json-patch+json</em> for POST/PUT and PATCH, respectively. However, some resources require different content types like <em>audio/x-wav</em>.</li>
<li><b>422 Unprocessible Entity</b>: The 422 code is sent in response to a syntactically valid request, which fails to meet sematical conditions, like missing or invalid fields in a JSON structure. The body of the response provides more information about the exact condition that failed.</li>
<li><b>422 Unprocessible Entity</b>: The 422 code is sent in response to a syntactically valid request, which fails to meet semantical conditions, like missing or invalid fields in a JSON structure. The body of the response provides more information about the exact condition that failed.</li>
<li><b>423 Locked</b>: The 423 code is sent if you try to delete an item which is still in use. This is typically the case when trying to delete system or customer contacts which are still bound to a contract.</li>
</ul>

@ -9,7 +9,7 @@
<h2>[% c.loc('[_1] Access Denied', c.response.status) %]</h2>
<div class="error-details">
[% c.loc('Sorry, an error has occured, requested operation denied!') %]
[% c.loc('Sorry, an error has occurred, requested operation denied!') %]
</div> <!-- /error-details -->

@ -9,7 +9,7 @@
<h2>[% c.loc('[_1] Internal server error', c.response.status) %]</h2>
<div class="error-details">
<p>[% c.loc('We are terribly sorry, an exceptional error has occured:') %]</p>
<p>[% c.loc('We are terribly sorry, an exceptional error has occurred:') %]</p>
<div><strong>[% c.loc('incident number:') %]</strong> [% exception_incident %]</div>
<div><strong>[% c.loc('time of incident:') %]</strong> [% exception_timestamp %]</div>
<br/>

@ -22,7 +22,7 @@
tmp = backuri.query_param_delete('back');
# create unique identifier
helper.id_from_name = helper.identifier || helper.name.remove('[\s+\.#]');
helper.identifier = 0; # make sure we dont use the same identifier twice
helper.identifier = 0; # make sure we don't use the same identifier twice
-%]
<script src="/js/libs/bootstrap/datatables-paging.js"></script>

@ -9,7 +9,7 @@
<h2>[% c.loc('[_1] Not found', c.response.status) %]</h2>
<div class="error-details">
[% c.loc('Sorry, an error has occured, Requested page not found!') %]
[% c.loc('Sorry, an error has occurred, Requested page not found!') %]
</div> <!-- /error-details -->

@ -1059,7 +1059,7 @@ if (_get_allow_fake_client_time()) { # && $enable_profile_packages) {
#is($intervals_b->{total_count},scalar (grep { $_->{contact_id} == $custcontact9->{id} } values %customer_map),"check total count of thread b results");
#is($intervals_c->{total_count},3,"check total count of thread c results");
ok($t2 - $t1 < $delta_serialized,'expected delay to assume only required contracts were locked and requests were perfomed in parallel') if !$disable_parallel_catchup;
ok($t2 - $t1 < $delta_serialized,'expected delay to assume only required contracts were locked and requests were performed in parallel') if !$disable_parallel_catchup;
} else {

@ -110,7 +110,7 @@ SKIP:
my $d = $test_machine->check_create_correct( 1, sub{
$_[0]->{name} .= '5954' ;
} )->[0];
ok(exists $d->{content}->{destinations}->[0]->{announcement_id},"Check announcement_id existance");
ok(exists $d->{content}->{destinations}->[0]->{announcement_id},"Check announcement_id existence");
my (undef,$announcement_hal) = $test_machine->check_item_get('/api/soundhandles/'.$d->{content}->{destinations}->[0]->{announcement_id});
ok($announcement_hal->{group} eq 'custom_announcements', 'Check announcement group' );

@ -319,7 +319,7 @@ my %customer_contact_map = ();
my $customer = _create_customer($customer_contact->{id});
my $subscriber1 = _create_subscriber($customer,contact_id => $subscriber1_contact->{id});
my $subscriber2 = _create_subscriber($customer,contact_id => $subscriber2_contact->{id});
#termination wether subscriber is terminated or not.
#termination whether subscriber is terminated or not.
_delete_customer_contact($subscriber1_contact);
_delete_subscriber($subscriber2);
_delete_customer_contact($subscriber2_contact);

@ -49,7 +49,7 @@ $test_machine->check_bundle();
$rules->[1]->{content}->{replace_pattern} = '${callee_in}_' . time();
$test_machine->request_put(@{$rules->[1]}{qw/content location/});
my ($res, $rule, $req) = $test_machine->check_item_get($rules->[1]->{location});
#While I don't know how to test raw data when we recieve inflated
#While I don't know how to test raw data when we receive inflated
#so just checked in the DB
#print Dumper $rules->[1]->{content};
ok(exists $rule->{direction} && $rule->{direction} =~ /^(in|out)$/ , "check existence of direction");

@ -59,7 +59,7 @@ my ($contract_id, $reseller_id, $customer_id, $bprof_id, $customercontact_id, $n
$res = $ua->request($req);
is($res->code, 201, "POST create contract");
($contract_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($contract_id, "got contract_id") || die "we dont't continue here";
ok($contract_id, "got contract_id") || die "we don't continue here";
$req = HTTP::Request->new('POST', $uri.'/api/resellers/');
$req->header('Content-Type' => 'application/json');
@ -74,7 +74,7 @@ my ($contract_id, $reseller_id, $customer_id, $bprof_id, $customercontact_id, $n
$res = $ua->request($req);
is($res->code, 201, "POST create reseller");
($reseller_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($reseller_id, "got reseller_id") || die "we dont't continue here";
ok($reseller_id, "got reseller_id") || die "we don't continue here";
$req = HTTP::Request->new('GET', $uri . "/api/resellers/$reseller_id");
$res = $ua->request($req);
@ -102,7 +102,7 @@ my ($contract_id, $reseller_id, $customer_id, $bprof_id, $customercontact_id, $n
$res = $ua->request($req);
is($res->code, 201, "POST create billingprofile");
($bprof_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($bprof_id, "got bprof_id") || die "we dont't continue here";
ok($bprof_id, "got bprof_id") || die "we don't continue here";
$req = HTTP::Request->new('POST', $uri.'/api/customercontacts/');
$req->header('Content-Type' => 'application/json');
@ -114,7 +114,7 @@ my ($contract_id, $reseller_id, $customer_id, $bprof_id, $customercontact_id, $n
$res = $ua->request($req);
is($res->code, 201, "POST create customercontact");
($customercontact_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($customercontact_id, "got customercontact_id") || die "we dont't continue here";
ok($customercontact_id, "got customercontact_id") || die "we don't continue here";
$req = HTTP::Request->new('POST', $uri.'/api/customers/');
$req->header('Content-Type' => 'application/json');
@ -129,7 +129,7 @@ my ($contract_id, $reseller_id, $customer_id, $bprof_id, $customercontact_id, $n
$res = $ua->request($req);
is($res->code, 201, "POST create customer");
($customer_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($customer_id, "got customer_id") || die "we dont't continue here";
ok($customer_id, "got customer_id") || die "we don't continue here";
diag("customer id: $customer_id");
}
@ -153,7 +153,7 @@ my ($sub1_id, $sub1_name, $sub2_id, $sub2_name);
$res = $ua->request($req);
is($res->code, 201, "POST create subscriber 1");
($sub1_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($sub1_id, "got sub1_id") || die "we dont't continue here";
ok($sub1_id, "got sub1_id") || die "we don't continue here";
$req = HTTP::Request->new('PATCH', $uri."/api/subscriberpreferences/$sub1_id");
$req->header('Content-Type' => 'application/json-patch+json');
@ -180,7 +180,7 @@ my ($sub1_id, $sub1_name, $sub2_id, $sub2_name);
$res = $ua->request($req);
is($res->code, 201, "POST create subscriber 2");
($sub2_id) = $res->header('Location') =~ m!/(\d+)$!;
ok($sub2_id, "got sub2_id") || die "we dont't continue here";
ok($sub2_id, "got sub2_id") || die "we don't continue here";
$req = HTTP::Request->new('PATCH', $uri."/api/subscriberpreferences/$sub2_id");
$req->header('Content-Type' => 'application/json-patch+json');

@ -794,7 +794,7 @@ sub check_list_collection{
ok(exists $q{page} && exists $q{rows}, "$self->{name}: check existence of 'page' and 'row' in 'self'");
my $page = int($q{page});
my $rows = int($q{rows});
ok($rows != 0, "check existance of the 'rows'");
ok($rows != 0, "check existence of the 'rows'");
if($page == 1) {
ok(!exists $list_collection->{_links}->{prev}->{href}, "$self->{name}: check absence of 'prev' on first page");
} else {

@ -59,7 +59,7 @@ sub _test_datatables_process {
ok(1, "_test_datatables_process completed successfully");
is($stash->{sEcho}, 9251, "sEcho was properly set");
is($stash->{iTotalRecords}, 99, "totalRecords were retrieved by first call of count()");
# not a neccessary conditon for correct functionality, but a hint
# not a necessary conditon for correct functionality, but a hint
return;
}

Loading…
Cancel
Save