[freeside-commits] freeside/FS/FS ClientAPI_XMLRPC.pm, 1.3, 1.4 Conf.pm, 1.400, 1.401

Mark Wells mark at wavetail.420.am
Mon Nov 22 17:39:03 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9277/FS/FS

Modified Files:
	ClientAPI_XMLRPC.pm Conf.pm 
Log Message:
selfservice command to suspend packages, RT#9989

Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.400
retrieving revision 1.401
diff -u -w -d -r1.400 -r1.401
--- Conf.pm	18 Nov 2010 18:20:09 -0000	1.400
+++ Conf.pm	23 Nov 2010 01:39:01 -0000	1.401
@@ -2294,6 +2294,32 @@
   },
 
   {
+    'key'         => 'selfservice-self_suspend_reason',
+    'section'     => 'self-service',
+    'description' => 'Suspend reason when customers suspend their own packages. Set to nothing to disallow self-suspension.',
+    'type'        => 'select-sub',
+    'options_sub' => sub { require FS::Record;
+                           require FS::reason;
+                           my $type = qsearchs('reason_type', 
+                             { class => 'S' }) 
+                              or return ();
+			   map { $_->reasonnum => $_->reason }
+                               FS::Record::qsearch('reason', 
+                                 { reason_type => $type->typenum } 
+                               );
+			 },
+    'option_sub'  => sub { require FS::Record;
+                           require FS::reason;
+			   my $reason = FS::Record::qsearchs(
+			     'reason', { 'reasonnum' => shift }
+			   );
+                           $reason ? $reason->reason : '';
+			 },
+
+    'per_agent'   => 1,
+  },
+
+  {
     'key'         => 'card_refund-days',
     'section'     => 'billing',
     'description' => 'After a payment, the number of days a refund link will be available for that payment.  Defaults to 120.',

Index: ClientAPI_XMLRPC.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI_XMLRPC.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- ClientAPI_XMLRPC.pm	25 Aug 2010 09:42:04 -0000	1.3
+++ ClientAPI_XMLRPC.pm	23 Nov 2010 01:39:01 -0000	1.4
@@ -91,6 +91,7 @@
   'renew_info'                => 'MyAccount/renew_info',
   'order_renew'               => 'MyAccount/order_renew',
   'cancel_pkg'                => 'MyAccount/cancel_pkg',    #add to ss cgi!
+  'suspend_pkg'               => 'MyAccount/suspend_pkg',   #add to ss cgi!
   'charge'                    => 'MyAccount/charge',        #?
   'part_svc_info'             => 'MyAccount/part_svc_info',
   'provision_acct'            => 'MyAccount/provision_acct',



More information about the freeside-commits mailing list