[freeside-commits] freeside/fs_selfservice/FS-SelfService SelfService.pm, 1.42, 1.43
Ivan,,,
ivan at wavetail.420.am
Sat Feb 7 12:16:13 PST 2009
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService
In directory wavetail.420.am:/tmp/cvs-serv18277/fs_selfservice/FS-SelfService
Modified Files:
SelfService.pm
Log Message:
add more documentation on order_pkg and the ability to order svc_phone too, RT#4722
Index: SelfService.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/SelfService.pm,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- SelfService.pm 7 Feb 2009 01:45:43 -0000 1.42
+++ SelfService.pm 7 Feb 2009 20:16:11 -0000 1.43
@@ -472,10 +472,14 @@
Hash reference of card types; keys are card types, values are the exact strings
passed to the process_payment function
-=item paybatch
+=cut
-Unique transaction identifier (prevents multiple charges), passed to the
-process_payment function
+#this doesn't actually work yet
+#
+#=item paybatch
+#
+#Unique transaction identifier (prevents multiple charges), passed to the
+#process_payment function
=back
@@ -541,15 +545,19 @@
Card expiration year
-=item paybatch
+=cut
-Unique transaction identifier, returned from the payment_info function.
-Prevents multiple charges.
+#this doesn't actually work yet
+#
+#=item paybatch
+#
+#Unique transaction identifier, returned from the payment_info function.
+#Prevents multiple charges.
=back
Returns a hash reference with a single key, B<error>, empty on success, or an
-error message on errors
+error message on errors.
=item process_payment_order_pkg
@@ -584,6 +592,10 @@
Customer number
+=item error
+
+Empty on success, or an error message on errors.
+
=item cust_pkg HASHREF
Array reference of hash references, each of which has the fields of a cust_pkg
@@ -640,11 +652,11 @@
=item svcpart
-Service definition (part_pkg)
+Service definition (see L<FS::part_svc>)
=item pkgnum
-Customer package (cust_pkg)
+Customer package (see L<FS::cust_pkg>)
=item overlimit
@@ -654,12 +666,6 @@
=back
-=item error
-
-Empty on success, or an error message on errors.
-
-=back
-
=item list_svcs
Returns service information for this customer.
@@ -698,6 +704,8 @@
Account (svc_acct) services also have the following keys:
+=over 4
+
=item username
Username
@@ -744,6 +752,8 @@
=back
+=back
+
=item order_pkg
Orders a package for this customer.
@@ -758,13 +768,22 @@
=item pkgpart
-pkgpart of package to order
+Package to order (see L<FS::part_pkg>).
=item svcpart
-optional svcpart, required only if the package definition does not contain
-one svc_acct service definition with quantity 1 (it may contain others with
-quantity >1)
+Service to order (see L<FS::part_svc>).
+
+Normally optional; required only to provision a non-svc_acct service, or if the
+package definition does not contain one svc_acct service definition with
+quantity 1 (it may contain others with quantity >1). A svcpart of "none" can
+also be specified to indicate that no initial service should be provisioned.
+
+=back
+
+Fields used when provisioning an svc_acct service:
+
+=over 4
=item username
@@ -784,6 +803,48 @@
=back
+Fields used when provisioning an svc_domain service:
+
+=over 4
+
+=item domain
+
+Domain
+
+=back
+
+Fields used when provisioning an svc_phone service:
+
+=over 4
+
+=item phonenum
+
+Phone number
+
+=item pin
+
+Voicemail PIN
+
+=item sip_password
+
+SIP password
+
+=back
+
+Fields used when provisioning an svc_external service:
+
+=over 4
+
+=item id
+
+External numeric ID.
+
+=item title
+
+External text title.
+
+=back
+
Returns a hash reference with a single key, B<error>, empty on success, or an
error message on errors. The special error '_decline' is returned for
declined transactions.
@@ -1578,8 +1639,12 @@
=item field
+Field name for the returned HTML fragment.
+
=item svcpart
+Service definition (see L<FS::part_svc>)
+
=back
Returns an HTML fragment for DID selection.
@@ -1611,14 +1676,23 @@
with their active session, and the B<customer_info> and B<order_pkg> functions
with their active session and an additional I<custnum> parameter.
+For the most part, development of the reseller web interface has been
+superceded by agent-virtualized access to the backend.
+
=over 4
=item agent_login
+Agent login
+
=item agent_info
+Agent info
+
=item agent_list_customers
+List agent's customers.
+
=back
=head1 BUGS
More information about the freeside-commits
mailing list