[freeside-commits] freeside/fs_selfservice/FS-SelfService SelfService.pm, 1.26, 1.26.2.1

Ivan,,, ivan at wavetail.420.am
Wed Oct 3 20:22:25 PDT 2007


Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService
In directory wavetail:/tmp/cvs-serv16366

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	SelfService.pm 
Log Message:
improve layout of self-service documentation

Index: SelfService.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/SelfService.pm,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -u -d -r1.26 -r1.26.2.1
--- SelfService.pm	5 Jan 2007 05:19:34 -0000	1.26
+++ SelfService.pm	4 Oct 2007 03:22:23 -0000	1.26.2.1
@@ -238,10 +238,16 @@
 
 =item username
 
+Username
+
 =item domain
 
+Domain
+
 =item password
 
+Password
+
 =back
 
 Returns a hash reference with the following keys:
@@ -285,7 +291,9 @@
 
 An HTML fragment containing shipping and billing addresses.
 
-=item The following fields are also returned: first last company address1 address2 city county state zip country daytime night fax ship_first ship_last ship_company ship_address1 ship_address2 ship_city ship_state ship_zip ship_country ship_daytime ship_night ship_fax payby payinfo payname month year invoicing_list postal_invoicing
+=item The following fields are also returned
+
+first last company address1 address2 city county state zip country daytime night fax ship_first ship_last ship_company ship_address1 ship_address2 ship_city ship_state ship_zip ship_country ship_daytime ship_night ship_fax payby payinfo payname month year invoicing_list postal_invoicing
 
 =back
 
@@ -389,14 +397,24 @@
 
 =item address1
 
+Address line one
+
 =item address2
 
+Address line two
+
 =item city
 
+City
+
 =item state
 
+State
+
 =item zip
 
+Zip or postal code
+
 =item payby
 
 Customer's current default payment type.
@@ -446,6 +464,8 @@
 
 =item session_id
 
+Session identifier
+
 =item save
 
 If true, address and card information entered will be saved for subsequent
@@ -459,16 +479,28 @@
 
 =item payname
 
+Name on card
+
 =item address1
 
+Address line one
+
 =item address2
 
+Address line two
+
 =item city
 
+City
+
 =item state
 
+State
+
 =item zip
 
+Zip or postal code
+
 =item payinfo
 
 Card number
@@ -501,22 +533,39 @@
 
 =over 4
 
-
 =item cust_pkg HASHREF
 
 Array reference of hash references, each of which has the fields of a cust_pkg
 record (see L<FS::cust_pkg>) as well as the fields below.  Note these are not
 the internal FS:: objects, but hash references of columns and values.
 
-=item all fields of part_pkg (XXXpare this down to a secure subset)
+=over 4
 
-=item part_svc - An array of hash references, each of which has the following keys:
+=item part_pkg fields
+
+All fields of part_pkg (be careful with this information - it may reveal more
+about your available packages than you would like users to know in aggregate) 
+
+=cut
+
+#XXX pare part_pkg fields down to a more secure subset
+
+=item part_svc
+
+An array of hash references, each of which has the following keys:
 
 =over 4
 
-=item all fields of part_svc (XXXpare this down to a secure subset)
+=item part_svc fields
 
-=item avail
+All fields of part_svc (be careful with this information - it may reveal more
+about your available packages than you would like users to know in aggregate) 
+
+=cut
+
+#XXX pare part_svc fields down to a more secure subset
+
+=back
 
 =back
 
@@ -536,8 +585,12 @@
 
 =item session_id
 
+Session identifier
+
 =item pkgpart
 
+pkgpart of package to order
+
 =item svcpart
 
 optional svcpart, required only if the package definition does not contain
@@ -546,12 +599,20 @@
 
 =item username
 
+Username
+
 =item _password
 
+Password
+
 =item sec_phrase
 
+Optional security phrase
+
 =item popnum
 
+Optional Access number number
+
 =back
 
 Returns a hash reference with a single key, B<error>, empty on success, or an
@@ -568,8 +629,12 @@
 
 =item session_id
 
+Session identifier
+
 =item pkgpart
 
+pkgpart of package to cancel
+
 =back
 
 Returns a hash reference with a single key, B<error>, empty on success, or an
@@ -628,21 +693,37 @@
 
 =over 4
 
-=item CARD (credit card - automatic)
+=item CARD
 
-=item DCRD (credit card - on-demand - version 1.5+ only)
+credit card - automatic
 
-=item CHEK (electronic check - automatic)
+=item DCRD
 
-=item DCHK (electronic check - on-demand - version 1.5+ only)
+credit card - on-demand - version 1.5+ only
 
-=item LECB (Phone bill billing)
+=item CHEK
 
-=item BILL (billing, not recommended for signups)
+electronic check - automatic
 
-=item COMP (free, definately not recommended for signups)
+=item DCHK
 
-=item PREPAY (special billing type: applies a credit (see FS::prepay_credit) and sets billing type to BILL)
+electronic check - on-demand - version 1.5+ only
+
+=item LECB
+
+Phone bill billing
+
+=item BILL
+
+billing, not recommended for signups
+
+=item COMP
+
+free, definitely not recommended for signups
+
+=item PREPAY
+
+special billing type: applies a credit (see FS::prepay_credit) and sets billing type to BILL
 
 =back
 
@@ -671,57 +752,109 @@
 
 =over 4
 
-=item first - first name (required)
+=item first
 
-=item last - last name (required)
+first name (required)
 
-=item ss (not typically collected; mostly used for ACH transactions)
+=item last
+
+last name (required)
+
+=item ss
+
+(not typically collected; mostly used for ACH transactions)
 
 =item company
 
+Company name
+
 =item address1 (required)
 
+Address line one
+
 =item address2
 
+Address line two
+
 =item city (required)
 
+City
+
 =item county
 
+County
+
 =item state (required)
 
+State
+
 =item zip (required)
 
-=item daytime - phone
+Zip or postal code
 
-=item night - phone
+=item daytime
 
-=item fax - phone
+Daytime phone number
 
-=item payby - CARD, DCRD, CHEK, DCHK, LECB, BILL, COMP or PREPAY (see L</signup_info> (required)
+=item night
 
-=item payinfo - Card number for CARD/DCRD, account_number at aba_number for CHEK/DCHK, prepaid "pin" for PREPAY, purchase order number for BILL
+Evening phone number
 
-=item paycvv - Credit card CVV2 number (1.5+ or 1.4.2 with CVV schema patch)
+=item fax
 
-=item paydate - Expiration date for CARD/DCRD
+Fax number
 
-=item payname - Exact name on credit card for CARD/DCRD, bank name for CHEK/DCHK
+=item payby
 
-=item invoicing_list - comma-separated list of email addresses for email invoices.  The special value 'POST' is used to designate postal invoicing (it may be specified alone or in addition to email addresses),
+CARD, DCRD, CHEK, DCHK, LECB, BILL, COMP or PREPAY (see L</signup_info> (required)
 
-=item referral_custnum - referring customer number
+=item payinfo
 
-=item pkgpart - pkgpart of initial package
+Card number for CARD/DCRD, account_number at aba_number for CHEK/DCHK, prepaid "pin" for PREPAY, purchase order number for BILL
+
+=item paycvv
+
+Credit card CVV2 number (1.5+ or 1.4.2 with CVV schema patch)
+
+=item paydate
+
+Expiration date for CARD/DCRD
+
+=item payname
+
+Exact name on credit card for CARD/DCRD, bank name for CHEK/DCHK
+
+=item invoicing_list
+
+comma-separated list of email addresses for email invoices.  The special value 'POST' is used to designate postal invoicing (it may be specified alone or in addition to email addresses),
+
+=item referral_custnum
+
+referring customer number
+
+=item pkgpart
+
+pkgpart of initial package
 
 =item username
 
+Username
+
 =item _password
 
-=item sec_phrase - security phrase
+Password
 
-=item popnum - access number (index, not the literal number)
+=item sec_phrase
 
-=item agentnum - agent number
+Security phrase
+
+=item popnum
+
+Access number (index, not the literal number)
+
+=item agentnum
+
+Agent number
 
 =back
 
@@ -729,7 +862,9 @@
 
 =over 4
 
-=item error Empty on success, or an error message on errors.  The special error '_decline' is returned for declined transactions; other error messages should be suitable for display to the user (and are customizable in under Sysadmin | View/Edit message catalog)
+=item error
+
+Empty on success, or an error message on errors.  The special error '_decline' is returned for declined transactions; other error messages should be suitable for display to the user (and are customizable in under Configuration | View/Edit message catalog)
 
 =back
 
@@ -741,19 +876,35 @@
 
 =item selected_county
 
+Currently selected county
+
 =item selected_state
 
+Currently selected state
+
 =item selected_country
 
-=item prefix - Specify a unique prefix string  if you intend to use the HTML output multiple time son one page.
+Currently selected country
 
-=item onchange - Specify a javascript subroutine to call on changes
+=item prefix
+
+Specify a unique prefix string  if you intend to use the HTML output multiple time son one page.
+
+=item onchange
+
+Specify a javascript subroutine to call on changes
 
 =item default_state
 
+Default state
+
 =item default_country
 
-=item locales - An arrayref of hash references specifying regions.  Normally you can just pass the value of the I<cust_main_county> field returned by B<signup_info>.
+Default country
+
+=item locales
+
+An arrayref of hash references specifying regions.  Normally you can just pass the value of the I<cust_main_county> field returned by B<signup_info>.
 
 =back
 
@@ -951,7 +1102,11 @@
 
 =item popnum
 
-=item pops - An arrayref of hash references specifying access numbers.  Normally you can just pass the value of the I<svc_acct_pop> field returned by B<signup_info>.
+Access number number
+
+=item pops
+
+An arrayref of hash references specifying access numbers.  Normally you can just pass the value of the I<svc_acct_pop> field returned by B<signup_info>.
 
 =back
 



More information about the freeside-commits mailing list