Search in sources :

Example 1 with OverduePeriodCalculatorService

use of org.folio.circulation.domain.OverduePeriodCalculatorService in project mod-circulation by folio-org.

the class CheckInProcessAdapter method newInstance.

public static CheckInProcessAdapter newInstance(Clients clients, ItemRepository itemRepository, UserRepository userRepository, LoanRepository loanRepository, RequestRepository requestRepository, RequestQueueRepository requestQueueRepository) {
    final var itemFinder = new ItemByBarcodeInStorageFinder(itemRepository);
    final SingleOpenLoanForItemInStorageFinder singleOpenLoanFinder = new SingleOpenLoanForItemInStorageFinder(loanRepository, userRepository, true);
    final var overdueFineService = new OverdueFineService(new OverdueFinePolicyRepository(clients), itemRepository, new FeeFineOwnerRepository(clients), new FeeFineRepository(clients), ScheduledNoticesRepository.using(clients), new OverduePeriodCalculatorService(new CalendarRepository(clients), new LoanPolicyRepository(clients)), new FeeFineFacade(clients));
    return new CheckInProcessAdapter(itemFinder, singleOpenLoanFinder, new LoanCheckInService(), requestQueueRepository, new UpdateItem(itemRepository), UpdateRequestQueue.using(clients, requestRepository, requestQueueRepository), loanRepository, new ServicePointRepository(clients), userRepository, new AddressTypeRepository(clients), new LogCheckInService(clients), overdueFineService, FeeFineScheduledNoticeService.using(clients), new LostItemFeeRefundService(clients, itemRepository, userRepository, loanRepository), new EventPublisher(clients.pubSubPublishingService()));
}
Also used : FeeFineFacade(org.folio.circulation.services.FeeFineFacade) EventPublisher(org.folio.circulation.services.EventPublisher) FeeFineOwnerRepository(org.folio.circulation.infrastructure.storage.feesandfines.FeeFineOwnerRepository) CalendarRepository(org.folio.circulation.infrastructure.storage.CalendarRepository) OverdueFineService(org.folio.circulation.domain.OverdueFineService) ItemByBarcodeInStorageFinder(org.folio.circulation.storage.ItemByBarcodeInStorageFinder) LostItemFeeRefundService(org.folio.circulation.services.LostItemFeeRefundService) ServicePointRepository(org.folio.circulation.infrastructure.storage.ServicePointRepository) FeeFineRepository(org.folio.circulation.infrastructure.storage.feesandfines.FeeFineRepository) OverduePeriodCalculatorService(org.folio.circulation.domain.OverduePeriodCalculatorService) SingleOpenLoanForItemInStorageFinder(org.folio.circulation.storage.SingleOpenLoanForItemInStorageFinder) UpdateItem(org.folio.circulation.domain.UpdateItem) AddressTypeRepository(org.folio.circulation.infrastructure.storage.users.AddressTypeRepository) LoanPolicyRepository(org.folio.circulation.infrastructure.storage.loans.LoanPolicyRepository) LogCheckInService(org.folio.circulation.services.LogCheckInService) LoanCheckInService(org.folio.circulation.domain.LoanCheckInService) OverdueFinePolicyRepository(org.folio.circulation.infrastructure.storage.loans.OverdueFinePolicyRepository)

Aggregations

LoanCheckInService (org.folio.circulation.domain.LoanCheckInService)1 OverdueFineService (org.folio.circulation.domain.OverdueFineService)1 OverduePeriodCalculatorService (org.folio.circulation.domain.OverduePeriodCalculatorService)1 UpdateItem (org.folio.circulation.domain.UpdateItem)1 CalendarRepository (org.folio.circulation.infrastructure.storage.CalendarRepository)1 ServicePointRepository (org.folio.circulation.infrastructure.storage.ServicePointRepository)1 FeeFineOwnerRepository (org.folio.circulation.infrastructure.storage.feesandfines.FeeFineOwnerRepository)1 FeeFineRepository (org.folio.circulation.infrastructure.storage.feesandfines.FeeFineRepository)1 LoanPolicyRepository (org.folio.circulation.infrastructure.storage.loans.LoanPolicyRepository)1 OverdueFinePolicyRepository (org.folio.circulation.infrastructure.storage.loans.OverdueFinePolicyRepository)1 AddressTypeRepository (org.folio.circulation.infrastructure.storage.users.AddressTypeRepository)1 EventPublisher (org.folio.circulation.services.EventPublisher)1 FeeFineFacade (org.folio.circulation.services.FeeFineFacade)1 LogCheckInService (org.folio.circulation.services.LogCheckInService)1 LostItemFeeRefundService (org.folio.circulation.services.LostItemFeeRefundService)1 ItemByBarcodeInStorageFinder (org.folio.circulation.storage.ItemByBarcodeInStorageFinder)1 SingleOpenLoanForItemInStorageFinder (org.folio.circulation.storage.SingleOpenLoanForItemInStorageFinder)1