[freeside-commits] freeside/FS/FS ClientAPI_XMLRPC.pm, 1.3, 1.3.2.1 Conf.pm, 1.397.2.3, 1.397.2.4
Mark Wells
mark at wavetail.420.am
Mon Nov 22 17:40:14 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9505/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.397.2.3
retrieving revision 1.397.2.4
diff -u -w -d -r1.397.2.3 -r1.397.2.4
--- Conf.pm 18 Nov 2010 18:20:13 -0000 1.397.2.3
+++ Conf.pm 23 Nov 2010 01:40:12 -0000 1.397.2.4
@@ -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.3.2.1
diff -u -w -d -r1.3 -r1.3.2.1
--- ClientAPI_XMLRPC.pm 25 Aug 2010 09:42:04 -0000 1.3
+++ ClientAPI_XMLRPC.pm 23 Nov 2010 01:40:12 -0000 1.3.2.1
@@ -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