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:

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.