-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 주문서 만료 시 COMPLETED 여부 확인 & 결제 완료 시 Redis 주문서 정보 삭제 (#229)
* refactor: 이벤트 리스너 클래스 삭제 및 이벤트 로직을 Service로 이관 * feat: 주문서 만료 이벤트 발생 시 상태가 COMPLETED일 경우 취소하도록 수정 * feat: 결제 완료 시 비동기 이벤트를 발행해 Redis Receipt 삭제 * fix: COMPLETED가 아닌 EXPIRED 여부를 확인하고 있던 로직 수정 * refactor: 클릭수, 노출수 증가 시 락 점유 및 대기 시간을 3초에서 1초로 변경 * feat: 진행중인 주문서의 상태만 변경할 수 있도록 수정, 주문서 이벤트 리스너 클래스 생성
- Loading branch information
Showing
9 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/woowacamp/soolsool/core/receipt/event/ReceiptRemoveEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.woowacamp.soolsool.core.receipt.event; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ReceiptRemoveEvent { | ||
|
||
private final Long receiptId; | ||
|
||
public ReceiptRemoveEvent(final Long receiptId) { | ||
this.receiptId = receiptId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters