Provider fee calculation
A plan is represented as a versioned database record. The engine applies percentage fees to submitted monthly revenue, fixed fees to submitted transaction count, and separately models international-card, conversion, billing, tax-service and MoR components where the record contains them. Amounts are converted through the selected reference-rate snapshot.