-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from Genti2024/feat/pgreq-two
Feat: #196 인앱결제 API Swagger UI에 표시
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
genti-api/src/main/java/com/gt/genti/purchase/api/UserPurchaseApi.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,27 @@ | ||
package com.gt.genti.purchase.api; | ||
|
||
import com.gt.genti.error.ResponseCode; | ||
import com.gt.genti.purchase.dto.request.PurchaseRequestDto; | ||
import com.gt.genti.response.GentiResponse; | ||
import com.gt.genti.swagger.AuthorizedUser; | ||
import com.gt.genti.swagger.EnumResponse; | ||
import com.gt.genti.swagger.EnumResponses; | ||
import com.gt.genti.user.model.AuthUser; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
|
||
@AuthorizedUser | ||
@Tag(name = "[UserPurchaseController] 인앱 결제 컨트롤러", description = "결제 내용을 서버에서 검증합니다.") | ||
public interface UserPurchaseApi { | ||
|
||
@Operation(summary = "영수증 검증", description = "클라이언트로부터 받은 결제 내역을 검증합니다.") | ||
@EnumResponses(value = { | ||
@EnumResponse(ResponseCode.OK), | ||
@EnumResponse(ResponseCode.UserNotFound) | ||
}) | ||
ResponseEntity<GentiResponse.ApiResult<Boolean>> validateReceipt( | ||
@AuthUser Long userId, | ||
@RequestBody PurchaseRequestDto purchaseRequestDto); | ||
} |
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