Bill Calculation Methods
doGetMonthlyBill: This accepts 8 values, all of them integers: tariff_id, onPeakDemand, onPeakConsumption, shoulderDemand, shoulderConsumption, offPeakDemand, offPeakConsumption, and month. It returns bill information contained in a string indexed array. The bill data returned is the same for both time-of-use tariffs and standard block rate types. The values returned are as follows:
totalCharges: the sum of all charges
consumptionTotal: the sum of all consumption charges
demandTotal: the sum of all demand charges
fixedTotal: the sum of all fixed chages
offPeakConsumptionTotal: the sum of all consumption charges that occur during the off-peak time-of-use period.
offPeakDemandTotal: the sum of all demand charges that occur during the off-peak time-of-use period.
onPeakConsumptionTotal: the sum of all consumption charges that occur during the peak time-of-use period.
onPeakDemandTotal: the sum of all demand charges that occur during the peak time-of-use period.
shoulderConsumptionTotal: the sum of all consumption charges that occur during the shoulder or partial-peak time-of-use period.
shoulderDemandTotal: the sum of all demand charges that occur during the shoulder or partial-peak time-of-use period .
annualConsumptionTotal: the sum of all other consumption charges that occur regardless of the time-of-use period.
annualDemandTotal: the sum of all other demand charges that occur regardless of the time-of-use period.
DoGetYearlyBill: Is a wrapper for the doGetMonthlyBill method, it allows clients to send a complete year’s worth of inputs and return a complete year’s worth of bills. It accepts and returns a 12-element array (one for each month) of doGetMonthlyBill inputs and outputs.