[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 475fd095e28f492075cdf4e7f95f4fdbf7777075

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


The branch, FREESIDE_2_3_BRANCH has been updated
       via  475fd095e28f492075cdf4e7f95f4fdbf7777075 (commit)
      from  245fa062729d5f48da967ec91f476ca075c5ebc0 (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 475fd095e28f492075cdf4e7f95f4fdbf7777075
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Dec 3 20:27:21 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 b4c64ac..fa44e54 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 9edfee5..2d70ccf 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 3749224..96d49f0 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 => '',
@@ -63,6 +75,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