Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue-111] 결제 처리 및 사후 관련 구현 #139

Merged
merged 15 commits into from
Nov 11, 2024
Merged

Conversation

amm0124
Copy link
Contributor

@amm0124 amm0124 commented Nov 11, 2024

해결하려는 문제가 무엇인가요?

어떻게 해결했나요?

  • 기존 엔티티를 수정하였습니다
    커밋 내용에 있습니다!!!

코드 리뷰시 요청 사항

  • 지금 메서드들이 좀 난잡한 상황인데
    객체 안으로 옮길 메서드들이 많습니다
    중복되는 메서드들도 많아서 이를 해결할 예정입니다

더 하고 싶은 말

  • 다들 파이팅~~~~ 밤샘모각코해요

amm0124 added 15 commits November 9, 2024 03:12
- 하나로 통합 예정
- 배송 전인 경우에만 취소를 할 수 있도록 구현.
- 그 이후 상태는 배송중으로 판단하여 취소 할 수 없도록 구현
- 다중 결제취소 등등을 위해 entity 구조를 변경했습니다
- AbstractOrder를 상속받는 productOrder, farmOrder
- 각 Order Entity는 list의 orderedProduct, orderedFarm을 가짐
- 각 Order는 Payment 방식을 기록한 Payment entity를 가짐
- 각 Order는 order의 detail을 가지는 orderdetail을 가짐

- orderedProduct는 aftersales를 list로 가짐
- aftersales는 refunddetail을 1:1 관계로 가짐
- IamportResponseException을 전역적으로 잡기 위해 advice를 추가하였습니다
- IOException을 전역적으로 잡기 위해 advice를 추가하였습니다
- 기존 paymentService가 너무 많은 결제 로직을 담당하였습니다
근데 다론 service에서도 이를 호출하니 너무 복잡한 의존관계가 된 것 같아서 paymentUtil을 구현하였습니다.
- 두 개의 도메인에 대해서 service를 나누었습니다
두 service는 나중에 인터페이스를 상속받아서 구현하겠습니다
- 두 도메인에서 공통적으로 사용하는 cancel을 제네릭을 사용하여 인터페이스를 작성하였습니다
- record 객체로 구현하였습니다
- 상세 내용은 내일 작성하겠습니다
…e/ISSUE-111

# Conflicts:
#	src/main/java/poomasi/global/error/BusinessError.java
@amm0124 amm0124 merged commit 0362e8c into week10 Nov 11, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants