package com.mvrent.carrental.service;

import java.math.BigDecimal;

/** Aggregated earnings view for a vendor over a set of trips. */
public record VendorRevenue(long trips, BigDecimal gross, BigDecimal commission, BigDecimal net) {
    public static VendorRevenue empty() {
        return new VendorRevenue(0, BigDecimal.ZERO, BigDecimal.ZERO, BigDecimal.ZERO);
    }
}
