Skip to content

Commit 55e1958

Browse files
github-actions[bot]github-actions
andauthored
Codes are generated by openapi generator (#1410)
line/line-openapi#65 In the Messaging API, we've added the following values as conditions for filtering the age range of recipients in the [demographic filter objects](https://developers.line.biz/en/reference/messaging-api/#narrowcast-demographic-filter) of [narrowcast messages](https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message): - `age_55` - `age_60` - `age_65` - `age_70` Until now, the upper limit was `age_50`, so it wasn't possible to filter ages over 50 in detail. By specifying the added age ranges, you can now filter recipients more flexibly than before. For example, the following is a demographic filter object that filters by age 50 and older but less than 60: ```json { "type": "age", "gte": "age_50", "lt": "age_60" } ``` news: https://developers.line.biz/en/news/2024/08/26/age-filter-subdivision/ Co-authored-by: github-actions <[email protected]>
1 parent f40dc08 commit 55e1958

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/AgeDemographic.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ public enum AgeDemographic {
5252
@JsonProperty("age_50")
5353
AGE_50,
5454

55+
@JsonProperty("age_55")
56+
AGE_55,
57+
58+
@JsonProperty("age_60")
59+
AGE_60,
60+
61+
@JsonProperty("age_65")
62+
AGE_65,
63+
64+
@JsonProperty("age_70")
65+
AGE_70,
66+
5567
@JsonEnumDefaultValue
5668
UNDEFINED;
5769

@@ -66,6 +78,10 @@ public String toValue() {
6678
case AGE_40 -> "age_40";
6779
case AGE_45 -> "age_45";
6880
case AGE_50 -> "age_50";
81+
case AGE_55 -> "age_55";
82+
case AGE_60 -> "age_60";
83+
case AGE_65 -> "age_65";
84+
case AGE_70 -> "age_70";
6985

7086
default -> "UNDEFINED";
7187
};

line-openapi

0 commit comments

Comments
 (0)