Commit 1b7b980e authored by Andrey Shevchuk's avatar Andrey Shevchuk

fixed InboundRoutes maps

parent c495a28b
...@@ -81,6 +81,15 @@ our %out_hash_map = ( ...@@ -81,6 +81,15 @@ our %out_hash_map = (
"sample" => "", "sample" => "",
"transform" => "routetype", "transform" => "routetype",
"type" => "string" "type" => "string"
},
"options" => {
"description" => "Routetype",
"format" => "array",
"hidden" => 0,
"required" => 0,
"sample" => "[{args:[],action:'tl-check-voicemail',schedule:'day'}]",
"transform" => "options",
"type" => "inbound_route_option"
} }
); );
...@@ -157,15 +166,59 @@ my %in_hash_map = ( ...@@ -157,15 +166,59 @@ my %in_hash_map = (
"sample" => "schedule", "sample" => "schedule",
"transform" => "routetype", "transform" => "routetype",
"type" => "string" "type" => "string"
},
"options" => {
"description" => "Routetype",
"format" => "array",
"hidden" => 0,
"required" => 0,
"sample" => "[{args:[],action:'tl-check-voicemail',schedule:'day'}]",
"transform" => "options",
"type" => "inbound_route_option"
} }
); );
our %out_option_hash_map = (
"args" => {
"description" => "Action arguments",
"format" => "array",
"hidden" => 0,
"required" => 0,
"sample" => "[]",
"transform" => "args",
"type" => "string"
},
"action" => {
"description" => "Action",
"format" => "raw",
"hidden" => 0,
"required" => 1,
"sample" => "tl-check-voicemail",
"transform" => "action",
"type" => "string"
},
"schedule" => {
"description" => "Schedule",
"format" => "raw",
"hidden" => 0,
"required" => 1,
"sample" => "day",
"transform" => "schedule",
"type" => "string"
},
);
our %requests = ( our %requests = (
types => [ types => [
{ {
"type" => "inbound_route", "type" => "inbound_route",
"structure" => \%out_hash_map "structure" => \%out_hash_map
},
{
"type" => "inbound_route_option",
"structure" => \%out_option_hash_map
} }
], ],
operations => [ operations => [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment