From 9fb1b789c7d41551a9d94be0b700570790731831 Mon Sep 17 00:00:00 2001 From: kang Date: Tue, 8 Oct 2024 06:22:13 +0900 Subject: [PATCH] feat: delete storeId --- .../java/co/orange/ddanzi/dto/payment/RefundRequestDto.java | 1 - src/main/java/co/orange/ddanzi/service/PaymentService.java | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/co/orange/ddanzi/dto/payment/RefundRequestDto.java b/src/main/java/co/orange/ddanzi/dto/payment/RefundRequestDto.java index 696ca6c0..4946c29f 100644 --- a/src/main/java/co/orange/ddanzi/dto/payment/RefundRequestDto.java +++ b/src/main/java/co/orange/ddanzi/dto/payment/RefundRequestDto.java @@ -6,7 +6,6 @@ @Getter @Builder public class RefundRequestDto { - private String storeId; private Integer amount; private Integer taxFreeAmount; private String reason; diff --git a/src/main/java/co/orange/ddanzi/service/PaymentService.java b/src/main/java/co/orange/ddanzi/service/PaymentService.java index 8cebb88f..c834854e 100644 --- a/src/main/java/co/orange/ddanzi/service/PaymentService.java +++ b/src/main/java/co/orange/ddanzi/service/PaymentService.java @@ -175,10 +175,9 @@ public void refundPayment(User user, Order order, Payment payment){ headers.set("Authorization", "PortOne "+ key); RefundRequestDto requestDto = RefundRequestDto.builder() - .storeId(storeId) .amount(payment.getTotalPrice()) .taxFreeAmount(payment.getTotalPrice()) - .reason("현재 남은 재고가 없어 고객에게 결제 금액 환불합니다. ") + .reason("현재 남은 재고가 없어 고객에게 결제 금액 환불합니다.") .build(); HttpEntity entity = new HttpEntity<>(requestDto, headers);