Skip to content

Commit

Permalink
💩 Comment out /pay/creditools request
Browse files Browse the repository at this point in the history
  • Loading branch information
Renan Kummer committed Apr 28, 2021
1 parent 34f8e8a commit f77b221
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);
}
Expand Down

0 comments on commit f77b221

Please sign in to comment.