Skip to content

Commit

Permalink
Merge pull request #114 from Orange-Co/feature/payment
Browse files Browse the repository at this point in the history
feat: delete storeId
  • Loading branch information
Kang1221 authored Oct 7, 2024
2 parents 9142174 + 9fb1b78 commit db642f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@Getter
@Builder
public class RefundRequestDto {
private String storeId;
private Integer amount;
private Integer taxFreeAmount;
private String reason;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/co/orange/ddanzi/service/PaymentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object> entity = new HttpEntity<>(requestDto, headers);
Expand Down

0 comments on commit db642f3

Please sign in to comment.