Current PSPI Functions
Proprietary & Confidential
79
UpdateSub_v2550()
Stored procedure for updating a subscriber’s record in the database. This
procedure requires ReadiVoice v. 2.55.0 or later.
This procedure is similar to
, but has:
•
One new parameter. The
vExternalIdB
parameter specifies the value to
put in the new External ID B field added to the subscriber record. Set this
parameter to
-1
if not using.
•
One new validity check. If Name Record is on and configurable, but
Entry/Exit Announcement is Name and not configurable, then the
subscriber can turn off Name Record, but the Announcement setting must
remain Name. To prevent this undesirable combination, the procedure
returns an error if
vNameRecord
,
vNameRecordEnable
, and
vRollCall
are
all set to
1
, but
vRollCallEnable
is set to
0
.
Parameters
Specify all parameters. The constraints column shows specific value or range
constraints. For syntax rules and constraints applicable to all parameters, see
Parameter
Data Type
Constraints
Description
vSubscriberId
INT >0
ID of subscriber to update.
vBillingType
SMALLINT 0,
1
Type of billing. 0: Credit card; 1: Phone
number. Set to 0 if not updating billing
information.
vBillingPhone CHAR
(30)
Phone number to bill or empty string if not
updating billing information.
vBillingAddress CHAR
(255)
Billing address or empty string if not updating
billing information.
vBillingId
INT <0,
>0
Existing billing ID (from database) if updating
billing information. Negative number if not
updating billing information.
vCreditCardType SMALLINT 0–3
Type of credit card. 0: Visa; 1: MC; 2: Amex;
3: Discover. Set to 0 if not if not updating billing
information.
vCreditCardNumber
CHAR (20)
Credit card number (numeric characters only)
or empty string if not updating billing
information.
vCreditCardExpire
DATETIME
YEAR TO
MONTH
Credit card expiration date. Set to 1999-12 if
not updating billing information.