This is a placeholder README.md for a new repository
This code is open source software licensed under the Apache 2.0 License.
Modify application.conf to enable polling and increase the intervals for humans
isPollingEnv = true
pollingIntervals = 5000
sbt "run 10003"
Open a new terminal (this will be a long lived request) Call an endpoint defined in app.routes This will trigger the polling service to start and also insert a request document into mongodb ttp-testonly
curl --location --request GET 'http://localhost:9111/individuals/subcontractor/idms/wmfid/blah' \
--header 'Content-Type: application/json'
{
"_id" : ObjectId("621f6bb9ad942e03d6cf1990"),
"requestId" : "986da206-27fd-4786-8eac-ff3a8a6a3fce",
"content" : "{}",
"uri" : "/individuals/subcontractor/idms/wmfid/blah",
"isResponse" : false,
"createdOn" : "2022-03-02T13:06:01.825459"
}
curl --location --request POST 'http://localhost:9111/test-only/response' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId" : "986da206-27fd-4786-8eac-ff3a8a6a3fce",
"content" : "[{\"fileInd\":\"K\",\"wmfId\":\"00000000000036320200100009KP0001\",\"shortDescription\":\"RGD Retrn Chrg\",\"solDescription\":\"Interest on First Payment on Account\",\"latestDueDate\":\"2021-09-15\",\"accountingPeriodEndDate\":\"2021-09-15\",\"safeChargeRef\":\"XA188698553712\",\"customerRefType\":\"A\",\"outputRefType\":\"B\",\"additionalInfo\":[{\"infoType\":\"RCQ\",\"infoValue\":\"Reinstated Charge\"}],\"bsPeriod\":[{\"irIntAreaRef\":\"AX21231YE\"}],\"debtItemSignal\":[{\"signalType\":\"#TBD#\",\"signalValue\":\"C\"},{\"signalType\":\"#TBD#\",\"signalValue\":\"D\"}],\"debtItemCharge\":[{\"intBearingInd\":\"Y\",\"interestChargeInd\":\"Y\",\"currentCollectibleAmount\":34409.49,\"chargeAmount\":7899.45,\"interestStartDate\":\"2021-09-15\",\"interestSuppressionInd\":\"Y\",\"debtChargePayment\":[{\"postingAmount\":100.99,\"effectiveDateOfPayment\":\"2021-09-15\",\"adjustmentType\":\"CHG\"},{\"postingAmount\":110.99,\"effectiveDateOfPayment\":\"2021-10-15\",\"adjustmentType\":\"CHG\"}]}]},{\"fileInd\":\"L\",\"wmfId\":\"00000000000036320200100009KP0002\",\"shortDescription\":\"RGD Retrn Chrg\",\"solDescription\":\"Interest on First Payment on Account\",\"latestDueDate\":\"2021-10-15\",\"accountingPeriodEndDate\":\"2021-10-15\",\"safeChargeRef\":\"XA188698553712\",\"customerRefType\":\"A\",\"outputRefType\":\"B\",\"additionalInfo\":[{\"infoType\":\"RCQ\",\"infoValue\":\"Reinstated Charge\"}],\"bsPeriod\":[{\"irIntAreaRef\":\"AX21231YE\"}],\"debtItemSignal\":[{\"signalType\":\"#TBD#\",\"signalValue\":\"D\"},{\"signalType\":\"#TBD#\",\"signalValue\":\"E\"}],\"debtItemCharge\":[{\"intBearingInd\":\"Y\",\"interestChargeInd\":\"Y\",\"currentCollectibleAmount\":54409.49,\"chargeAmount\":8899.45,\"interestStartDate\":\"2021-10-15\",\"interestSuppressionInd\":\"Y\",\"debtChargePayment\":[{\"postingAmount\":200.99,\"effectiveDateOfPayment\":\"2021-10-15\",\"adjustmentType\":\"CHG\"},{\"postingAmount\":210.99,\"effectiveDateOfPayment\":\"2021-11-15\",\"adjustmentType\":\"CHG\"}]}]}]",
"uri" : "/individuals/subcontractor/idms/wmfid/blah",
"isResponse" : true
}'
sbt "run 10003"
sbt scalafmtAll scalafmtSbt
sbt scalafmtCheckAll scalafmtSbtCheck
Run the main
method in InterestForecastingRulesGenerator
with the appropriate arguments.
Tells the tool to read a TSV or CSV file representing the "master spreadsheet" with the interest forecasting rules.
The file can be *.tsv
or *.csv
and must have one of the following formats:
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,Period End
1545,1090,Y,4,N,N/A,Tax Yr (6/4/yyyy - 5/4/yyyy)
3997,2091,N,N/A,Y,N/A,
,,,,,,
PAYE,,,,,,
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,
2090,1350,Y,,,ASN,
2095,2020,N,,Y,Charge ref,
,,,,,,
VAT,,,,,,
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,
4700,1174,Y,,,VRN,
4620,1175,,,Y,VRN,
4703,1090,Y,,,VRN,
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,Period End
1545,1090,Y,4,N,N/A,Tax Yr (6/4/yyyy - 5/4/yyyy)
3997,2091,N,N/A,Y,N/A,
PAYE
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,
2090,1350,Y,,,ASN,
2095,2020,N,,Y,Charge ref,
VAT
Main Trans,Sub Trans,Interest bearing,Interest key,Interest only Debt,Charge Ref,
4700,1174,Y,,,VRN,
4620,1175,,,Y,VRN,
4703,1090,Y,,,VRN,
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref Period End
1545 1090 Y 4 N N/A Tax Yr (6/4/yyyy - 5/4/yyyy)
1441 1150 N N/A N N/A
PAYE
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref
2000 1100 Y ASN
2005 2000 N Y Charge ref
2590 1090 Y Charge ref
2595 2090 N Y Charge ref
VAT
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref
4793 1090 Y VRN
4794 1175 Y VRN
4711 1174 VRN
Specified instead of --input-file=...
to allow users to copy the data straight from Excel and paste it
directly into the terminal.
You'll be given a string to add after your pasted content, to signal the end of the data.
The pasted content must have the following format:
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref Period End
1545 1090 Y 4 N N/A Tax Yr (6/4/yyyy - 5/4/yyyy)
1441 1150 N N/A N N/A
PAYE
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref
2000 1100 Y ASN
2005 2000 N Y Charge ref
2590 1090 Y Charge ref
2595 2090 N Y Charge ref
VAT
Main Trans Sub Trans Interest bearing Interest key Interest only Debt Charge Ref
4793 1090 Y VRN
4794 1175 Y VRN
4711 1174 VRN
Provided if the desired output is the rules
section in the application.conf
of interest-forecasting
.
Provided if the desired output is the service-config.rules
entries in the production config of interest-forecasting
.