[freeside-commits] branch master updated. 9fa2bad9e9954ba0f838b032b4732de6847bb55b

Ivan ivan at 420.am
Mon Dec 3 20:27:18 PST 2012


The branch, master has been updated
       via  9fa2bad9e9954ba0f838b032b4732de6847bb55b (commit)
      from  e0f4d7c4932871a17555b93ef2db49bc6c4c2d35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9fa2bad9e9954ba0f838b032b4732de6847bb55b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Dec 3 20:27:16 2012 -0800

    add suspend/unsuspend to http exports, RT#20054

diff --git a/FS/FS/part_export/acct_http.pm b/FS/FS/part_export/acct_http.pm
index 23df7b3..af35899 100644
--- a/FS/FS/part_export/acct_http.pm
+++ b/FS/FS/part_export/acct_http.pm
@@ -41,6 +41,18 @@ tie %options, 'Tie::IxHash',
       "password \$new->_password",
     ),
   },
+  'suspend_data' => {
+    label   => 'Suspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
+  'unsuspend_data' => {
+    label   => 'Unsuspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
   'success_regexp' => {
     label  => 'Success Regexp',
     default => '',
diff --git a/FS/FS/part_export/broadband_http.pm b/FS/FS/part_export/broadband_http.pm
index c1ed7fc..5be8b68 100644
--- a/FS/FS/part_export/broadband_http.pm
+++ b/FS/FS/part_export/broadband_http.pm
@@ -35,6 +35,18 @@ tie %options, 'Tie::IxHash',
     type    => 'textarea',
     default => '',
   },
+  'suspend_data' => {
+    label   => 'Suspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
+  'unsuspend_data' => {
+    label   => 'Unsuspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
   'success_regexp' => {
     label   => 'Success Regexp',
     default => '',
diff --git a/FS/FS/part_export/http.pm b/FS/FS/part_export/http.pm
index c35c89f..0d62409 100644
--- a/FS/FS/part_export/http.pm
+++ b/FS/FS/part_export/http.pm
@@ -33,6 +33,18 @@ tie %options, 'Tie::IxHash',
     default => join("\n",
     ),
   },
+  'suspend_data' => {
+    label   => 'Suspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
+  'unsuspend_data' => {
+    label   => 'Unsuspend data',
+    type    => 'textarea',
+    default => join("\n",
+    ),
+  },
   'success_regexp' => {
     label  => 'Success Regexp',
     default => '',
@@ -64,6 +76,16 @@ sub _export_delete {
   $self->_export_command('delete', @_);
 }
 
+sub _export_suspend {
+  my $self = shift;
+  $self->_export_command('suspend', @_);
+}
+
+sub _export_unsuspend {
+  my $self = shift;
+  $self->_export_command('unsuspend', @_);
+}
+
 sub _export_command {
   my( $self, $action, $svc_x ) = ( shift, shift, shift );
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_export/acct_http.pm      |   12 ++++++++++++
 FS/FS/part_export/broadband_http.pm |   12 ++++++++++++
 FS/FS/part_export/http.pm           |   22 ++++++++++++++++++++++
 3 files changed, 46 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list