Rater - for Odin Conf

Here's a toy rater.


Story and Requirements

We need a rater to process customer usage. The rater will allow us to issue bills to customers regularly, with bill value based on ongoing customer use, and the tariff available at the time of use. We need to reconcile input and output, to track costs, and to manage invalid records.

Requirements


Examples

Account 1, with a tariff of 12K / unit, uses 10 units a day in June and July. The June bill, for 30 days, is 360K. The July bill is 372K

We receive a record of 10 units with an invalid account ID – the use record is suspended.

Account 2 has a June tariff of 5K/unit, and a July tariff of 8K/unit. They use 100 units in June, and are billed 500K. They use 80 units in July, and are billed 640K.


Changes

Added all-new billing

Improved statistics, adding stats for value as well as count

Known Issues


Tests

Jasmine unit tests


Pick Standing Data

Choose base data:

Currently using:

Tariffs


Accounts


something else

Details

Generate and rate

Generate how many?




Vary dates from 20220825 to 20221025

Vary accounts

Vary amounts

Edit generated records

Billing

From to

Aggregated test information

Testing stats

Test has sent records for rating.

Processing stats

NumberValue
Processed
Allocated
Billed
Suspended

Suspended records

These records have not been allocated to an account

suspended

Rater logs

Main Rater Log

Test Log

Inspect / Adjust standing data details

Rater is currently configured to use configuration :

Contains tariffSet and accountSet .
Configuration described as :

Current set of test data Accounts:


name

Current set of test Tariffs:


name

Keep changes

config – new name: , new description:
tarrifSet - new name:
accountSet - new Name: