diff --git a/src/main/java/ferramong/toolsmanager/services/RentalsService.java b/src/main/java/ferramong/toolsmanager/services/RentalsService.java index 1630266..6bff10a 100644 --- a/src/main/java/ferramong/toolsmanager/services/RentalsService.java +++ b/src/main/java/ferramong/toolsmanager/services/RentalsService.java @@ -56,7 +56,7 @@ public Rental rentTool(@NotNull RentalRequest rentalRequest) var toolToRent = toolsService.getTool(rentalRequest.getToolId(), rentalRequest.getOwnerDwellerId()); if (isAvailableForRental(toolToRent, rentalRequest.getReturnDate())) { - payClient.chargeCreditools(new Payment(rentalRequest.getRenterDwellerId(), toolToRent.getPrice())); +// payClient.chargeCreditools(new Payment(rentalRequest.getRenterDwellerId(), toolToRent.getPrice())); return repository.save( Rental.builder() @@ -78,8 +78,8 @@ public Rental returnTool(int toolId, int ownerDwellerId) throws RentalNotFoundEx var rentalToReturn = rentalEntity.get(); rentalToReturn.setRentUntil(LocalDate.now()); - chargeDelayedDaysIfAny(rentalToReturn); - payToolOwner(rentalToReturn); +// chargeDelayedDaysIfAny(rentalToReturn); +// payToolOwner(rentalToReturn); return repository.save(rentalToReturn); }