Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
style: code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Jul 27, 2024
1 parent 93d035d commit 6a5b672
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import br.com.fiap.grupo30.fastfood.domain.entities.Order;
import br.com.fiap.grupo30.fastfood.infrastructure.gateways.OrderGateway;
import br.com.fiap.grupo30.fastfood.presentation.presenters.dto.CollectPaymentViaCashRequest;
import br.com.fiap.grupo30.fastfood.presentation.presenters.dto.OrderDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ public MercadoPagoGateway(MercadoPagoOrderMapper orderMapper) {
}

private Map<String, String> getHeaders() {
return new HashMap<String, String>() {
{
put("Authorization", String.format("Bearer %s", privateAccessToken));
put("Content-type", "application/json");
}
};
Map<String, String> headers = new HashMap<String, String>();
headers.put("Authorization", String.format("Bearer %s", privateAccessToken));
headers.put("Content-type", "application/json");
return headers;
}

private HttpResponse<String> makeRequest(String httpMethod, URI resourceUri) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public ResponseEntity<PaymentQrCodeDTO> generateQrCodeForPaymentCollection(
@Operation(summary = "Collect payment by cash")
public ResponseEntity<OrderDTO> collectPaymentByBash(
@PathVariable Long orderId, @RequestBody CollectPaymentViaCashRequest request) {
OrderDTO order = this.collectOrderPaymentViaCashUseCase.execute(orderId, request.getAmount());
OrderDTO order =
this.collectOrderPaymentViaCashUseCase.execute(orderId, request.getAmount());
return ResponseEntity.ok().body(order);
}
}

0 comments on commit 6a5b672

Please sign in to comment.