[freeside-commits] branch master updated. 47ff1395f3d96fdb5d676f22b6f1498c824ae986
Ivan
ivan at 420.am
Thu Mar 6 12:15:48 PST 2014
The branch, master has been updated
via 47ff1395f3d96fdb5d676f22b6f1498c824ae986 (commit)
from 2fb037a3fdebcf220ce051ea1ba58efcfa2c5c49 (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 47ff1395f3d96fdb5d676f22b6f1498c824ae986
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Mar 6 12:15:45 2014 -0800
backoffice API: add new_customer, RT#22830
diff --git a/bin/xmlrpc-new_customer b/bin/xmlrpc-new_customer
index 248d9e9..d30c339 100755
--- a/bin/xmlrpc-new_customer
+++ b/bin/xmlrpc-new_customer
@@ -15,43 +15,44 @@ my $result = $server->call('FS.API.new_customer',
'secret' => 'sharingiscaring',
#customer informaiton
- 'agentnum' => 1,
- 'refnum' => 1, #advertising source
- 'agent_custid' => '323',
+ 'agentnum' => 1,
+ 'refnum' => 1, #advertising source
+ 'agent_custid' => '323',
+ 'referral_custnum' =>
- 'first' => 'Tofu',
- 'last' => 'Beast',
- 'company' => 'Bank of Soymerica',
+ 'first' => 'Tofu',
+ 'last' => 'Beast',
+ 'company' => 'Bank of Soymerica',
#address
- 'address1' => '1234 Soybean Ln.',
- 'city' => 'Tofutown',
- 'county' => '',
- 'state' => 'CA',
- 'zip' => '54321',
- 'country' => 'US',
- 'latitude' => '',
- 'longitude' => '',
- 'geocode' => '',
- 'censustract' => '',
- 'censusyear' => '',
+ 'address1' => '1234 Soybean Ln.',
+ 'city' => 'Tofutown',
+ 'county' => '',
+ 'state' => 'CA',
+ 'zip' => '54321',
+ 'country' => 'US',
+ 'latitude' => '',
+ 'longitude' => '',
+ 'geocode' => '',
+ 'censustract' => '',
+ 'censusyear' => '',
#phones
- 'daytime' => '555 444 3211',
- 'night' => '',
- 'fax' => '',
- 'mobile' => '123 466 3332',
+ 'daytime' => '555 444 3211',
+ 'night' => '',
+ 'fax' => '',
+ 'mobile' => '123 466 3332',
#invoicing info
'invoicing_list' => 'tofu at example.com', #comma-separated email addresses
'postal_invoicing' => 1,
#billing information
- 'payby' => 'CARD', # DCRD, CHEK, DCHK, BILL, etc.
- 'payinfo' => '4111111111111111', #card number / acctno at routing / PO#
- 'paydate' => '11/2019', #card expiration
- 'paycvv' => '123', #card CVV/security code
- 'payname' => 'Thomas Beast', #"Exact name on card" if different
+ 'payby' => 'CARD', # DCRD, CHEK, DCHK, BILL, etc.
+ 'payinfo' => '4111111111111111',#card number / acctno at routing / PO#
+ 'paydate' => '11/2019', #card expiration
+ 'paycvv' => '123', #card CVV/security code
+ 'payname' => 'Thomas Beast', #"Exact name on card" if different
);
die $result->{'error'} if $result->{'error'};
-----------------------------------------------------------------------
Summary of changes:
bin/xmlrpc-new_customer | 53 ++++++++++++++++++++++++-----------------------
1 files changed, 27 insertions(+), 26 deletions(-)
More information about the freeside-commits
mailing list