Implementation
More widened way of adding and calculating commissions
In second version of commission calculator services we use new entitites
Let's introduce these new entities. As we know in Bill Master we have only P2pCommission domain. And P2pParam has sender and recipient P2pCommission.
We have 4 new entities
P2pCommissionGroup
P2pCommission
P2pCommissionPartGroup
P2pCommissionPart
As we know we diffirent commission for diffirent intervals
So, This entity is like a tariff and it can be many Commissions for any intervals.
Ex: We have a tariff that's named 0.5 % for [0; 5 mln] and 0.4 % for (5 mln; unlimited]
And we have to have two commissions 0.5 % and 0.4 %
if Amount of Operation is less than or equal to 5 mln soums commission is 0.5%
if Amount of Operation is more than 5 mln soums commission is 0.4%
Implementation requirements
Commission can be various for various intervals. ex: between 0 and 5 mln commission 0.5 %. And more than 5 mln 0.4 %
Commission can have parts. ex: this 0.5% commission split into 2 parts. First HUMO 0.3% and bank income 0.2%
So, Our P2Param has sender and recipient commission group for various commissions at various intervals.

And Commission has parts

In this version. P2pCommissionPart is for calculating commissionPart
Last updated