Skip to content

Commit

Permalink
YEL-219 [fix] 광고 enum 수정
Browse files Browse the repository at this point in the history
YEL-219 [fix] 광고 enum 수정
  • Loading branch information
hyeonjeongs authored Feb 19, 2024
2 parents 07826c4 + a46f57d commit 344f8e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@

* 🆕 link:reward-event.html[이벤트 보상, 2024-02-07]

* 🆕 link:reward-admob.html[광고보고 보상 얻기, 2024-02-11]
* 🆕 link:reward-admob.html[광고보고 보상 얻기, 2024-02-19]

* 🆕 link:check-is-possible-admob.html[광고보고 보상 얻기 가능 여부 조회, 2024-02-17]
5 changes: 2 additions & 3 deletions src/docs/asciidoc/reward-admob.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include::{snippets}/api/v1/admob/reward/http-request.adoc[]

- "rewardType": String -> "ADMOB_POINT" | "ADMOB_MULTIPLE_POINT"
* ADMOB_POINT : 광고 보고 10 포인트
* ADMOB_MULTIPLE_POINT : 광고 보고 포인트 2배 이벤트
* ADMOB_MULTIPLE_POINT : 투표 후, 광고 보고 포인트 2배 이벤트

- "randomType" : String -> "FIXED" | "ADMOB_RANDOM"
* FIXED : 고정값 (현재 이것만 사용)
Expand All @@ -23,13 +23,12 @@ include::{snippets}/api/v1/admob/reward/http-response.adoc[]

=== NOTE

- Header에 무작위한 UUID4 값을 넣어주세요
* 예시) IdempotencyKey: 0397b5f3-ecdc-47d6-b5d7-2b1afcf00e87
- 주의사항
* 같은 멱등성키를 2번 요청하면, 400번 에러.
- ADMOB
* ADMOB 서버에 SSV(ServerSideVerification) Options의 customData에 입력한 것과 동일한 멱등성 키를 넘겨주세요.

=== CHANGELOG

- 2024.02.19 API ENUM, 명세서 수정
- 2024.02.11 릴리즈
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public enum UserDataType {
WITHDRAW_REASON(String.class, "withdraw-reason"),
ACCOUNT_UPDATED_AT(ZonedDateTime.class, "account-updated-at"),
RECOMMENDED(ZonedDateTime.class, "recommended"),
ADMOB_POINT(LocalDateTime.class, "ADMOB_POINT");
ADMOB_POINT(LocalDateTime.class, "ADMOB_POINT"),
ADMOB_MULTIPLE_POINT(LocalDateTime.class, "ADMOB_MULTIPLE_POINT");

private final Class<?> classType;
private final String initial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ void init() {
RestDocumentationRequestBuilders.post("/api/v1/admob/reward")
.with(csrf().asHeader())
.header(HttpHeaders.AUTHORIZATION, "Bearer your-access-token")
.header(ConstantUtil.IdempotencyKeyHeader, idempotencyKey)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andDo(print())
Expand Down

0 comments on commit 344f8e4

Please sign in to comment.