From 9977fa35f0395faf7f63d8ba633a986efcaa4bae Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Mon, 12 Jan 2015 14:12:29 +0200 Subject: [PATCH] MT#10797 Add documentation note and sample with required "type" parameter. Change-Id: I7f935d6593058a732888b79f4301a6fa78a4443e --- lib/NGCP/Panel/Controller/API/Customers.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/API/Customers.pm b/lib/NGCP/Panel/Controller/API/Customers.pm index a0cf697b05..7725fac266 100644 --- a/lib/NGCP/Panel/Controller/API/Customers.pm +++ b/lib/NGCP/Panel/Controller/API/Customers.pm @@ -20,7 +20,18 @@ class_has 'api_description' => ( is => 'ro', isa => 'Str', default => - 'Defines a billing container for end customers. Customers usually have one or more Subscribers. A Billing Profile is assigned to a customer, and it has Contract Balances indicating the saldo of the customer for current and past billing intervals.', + 'Defines a billing container for end customers. Customers usually have one or more Subscribers. A Billing Profile is assigned to a customer, and it has Contract Balances indicating the saldo of the customer for current and past billing intervals. Customer can be one of the "sipaccount" or "pbxaccount" type. Type should be specified as "type" parameter.', +); +class_has 'documentation_sample' => ( + is => 'ro', + default => sub { + { + "billing_profile_id" => 4, + "type" => "sipaccount", + "contact_id" => 4, + "status" => "test", + } + }, ); class_has 'query_params' => (