package ee.tuleva.onboarding.account;

import ee.tuleva.onboarding.auth.principal.Person;
import ee.tuleva.onboarding.epis.EpisService;
import ee.tuleva.onboarding.epis.cashflows.CashFlowStatement;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

@Service
@RequiredArgsConstructor
public class CashFlowService {

    private static final LocalDate BEGINNING_OF_TIME = LocalDate.parse("1900-01-01");

    private final EpisService episService;

    public CashFlowStatement getCashFlowStatement(Person person) {
        return getCashFlowStatement(person, BEGINNING_OF_TIME, LocalDate.now());
    }

    public CashFlowStatement getCashFlowStatement(Person person, LocalDate fromDate, LocalDate toDate) {
        return episService.getCashFlowStatement(person, fromDate, toDate);
    }

}

@@ -449,10 +449,10 @@
 se(%22
-19
+20
 00-0

Fix beginning of time stamp