order_pkg doc
authorIvan Kohler <ivan@freeside.biz>
Mon, 27 Apr 2015 09:59:16 +0000 (02:59 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 27 Apr 2015 09:59:16 +0000 (02:59 -0700)
fs_selfservice/FS-SelfService/SelfService.pm

index 9d7e7ed..12d56bb 100644 (file)
@@ -251,7 +251,30 @@ FS::SelfService - Freeside self-service API
 
   #!!! list_pkgs example
 
 
   #!!! list_pkgs example
 
-  #!!! order_pkg example
+  #ordering a package with an svc_acct service
+  my $rv = order_pkg( { 'session_id' => $session_id,
+                        'pkgpart'    => $pkgpart,
+                        'svcpart'    => $svcpart,
+                        'username'   => $username,
+                        'domsvc'     => $domsvc, #svcnum of svc_domain
+                        '_password'  => $password,
+                      }
+                    );
+
+  #!!! ordering a package with an svc_domain service example
+
+  #!!! ordering a package with an svc_phone service example
+
+  #!!! ordering a package with an svc_external service example
+
+  #!!! ordering a package with an svc_pbx service
+
+  #ordering a package with no service
+  my $rv = order_pkg( { 'session_id' => $session_id,
+                        'pkgpart'    => $pkgpart,
+                        'svcpart'    => 'none',
+                      }
+                    );
 
   #!!! cancel_pkg example
 
 
   #!!! cancel_pkg example