HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
subscription_plan_id: ID which uniquely identifies each subscription plan.
subscription_plan_fee: Subscription plan cost.
subscription_plan_tax: Subscription plan tax. Calculated based on the subscription
plan cost and the configured tax rate.
subscription_plan_total: Total subscription plan charge.
subscription_plan_description: Description of the plan.
GetFirstSubscriptionPlan()
The function returns the first subscription plan name (as a string) configured on the service
controller for which billing is enabled.
Example
var plan;
for (plan = GetFirstSubscriptionPlan(); plan != ""; plan = GetNextSubscriptionPlan(plan)) {
LoadSubscriptionPlanInformation(plan);
}
GetNextSubscriptionPlan(plan_name)
Returns the next subscription plan name that follows the specified plan_name. If
plan_name is the last plan, an empty string is returned.
Example
var plan;
for (plan = GetFirstSubscriptionPlan(); plan != ""; plan = GetNextSubscriptionPlan(plan)) {
LoadSubscriptionPlanInformation(plan);
}
Other
AssignBillingRecordId()
Use this function to reserve a billing record ID. If this function returns 0, it means that the
payment system has been halted. Any subscription-related activities should not be attempted
until this function returns a non-zero value. See Suspend payment system when log is full of
queued records on page 8-39).
Example
var billingRecordId = AssignBillingRecordId();
if (billingRecordId == 0) {
<p>The service is temporarily unavailable.Please try again later.</p>
}
9-86