From 412eaca8caa2849071c12f853d06c1c4a8c471b0 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 1 Jul 2026 06:16:37 +0000 Subject: [PATCH] Code are generated by openapi generator --- .../.openapi-generator/FILES | 10 +++ .../bot/insight/client/InsightClient.java | 44 ++++++++++ .../GetRichMenuInsightDailyResponse.java | 88 +++++++++++++++++++ ...GetRichMenuInsightDailyResponseBounds.java | 63 +++++++++++++ .../GetRichMenuInsightDailyResponseClick.java | 56 ++++++++++++ ...hMenuInsightDailyResponseDailyMetrics.java | 58 ++++++++++++ ...ichMenuInsightDailyResponseImpression.java | 49 +++++++++++ .../GetRichMenuInsightSummaryResponse.java | 88 +++++++++++++++++++ ...tRichMenuInsightSummaryResponseBounds.java | 63 +++++++++++++ ...etRichMenuInsightSummaryResponseClick.java | 55 ++++++++++++ ...hMenuInsightSummaryResponseImpression.java | 48 ++++++++++ ...RichMenuInsightSummaryResponseMetrics.java | 53 +++++++++++ line-openapi | 2 +- 13 files changed, 676 insertions(+), 1 deletion(-) create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponse.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseBounds.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseClick.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseDailyMetrics.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseImpression.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponse.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseBounds.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseClick.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseImpression.java create mode 100644 clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseMetrics.java diff --git a/clients/line-bot-insight-client/.openapi-generator/FILES b/clients/line-bot-insight-client/.openapi-generator/FILES index 7f3ee928d..c0e2979ba 100644 --- a/clients/line-bot-insight-client/.openapi-generator/FILES +++ b/clients/line-bot-insight-client/.openapi-generator/FILES @@ -12,6 +12,16 @@ src/main/java/com/linecorp/bot/insight/model/GetMessageEventResponseMessage.java src/main/java/com/linecorp/bot/insight/model/GetMessageEventResponseOverview.java src/main/java/com/linecorp/bot/insight/model/GetNumberOfFollowersResponse.java src/main/java/com/linecorp/bot/insight/model/GetNumberOfMessageDeliveriesResponse.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponse.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseBounds.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseClick.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseDailyMetrics.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseImpression.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponse.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseBounds.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseClick.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseImpression.java +src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseMetrics.java src/main/java/com/linecorp/bot/insight/model/GetStatisticsPerUnitResponse.java src/main/java/com/linecorp/bot/insight/model/GetStatisticsPerUnitResponseClick.java src/main/java/com/linecorp/bot/insight/model/GetStatisticsPerUnitResponseMessage.java diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/client/InsightClient.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/client/InsightClient.java index 0baa5d774..3cf329f05 100644 --- a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/client/InsightClient.java +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/client/InsightClient.java @@ -27,6 +27,8 @@ import com.linecorp.bot.insight.model.GetMessageEventResponse; import com.linecorp.bot.insight.model.GetNumberOfFollowersResponse; import com.linecorp.bot.insight.model.GetNumberOfMessageDeliveriesResponse; +import com.linecorp.bot.insight.model.GetRichMenuInsightDailyResponse; +import com.linecorp.bot.insight.model.GetRichMenuInsightSummaryResponse; import com.linecorp.bot.insight.model.GetStatisticsPerUnitResponse; import java.net.URI; import java.util.concurrent.CompletableFuture; @@ -87,6 +89,48 @@ CompletableFuture> getNumberOfFollowers( CompletableFuture> getNumberOfMessageDeliveries( @Query("date") String date); + /** + * Get rich menu insight daily Gets rich menu statistics broken down by day for the specified + * period, for a rich menu created via the Messaging API. Returns the daily impression count for + * the whole rich menu and the daily click count for each tappable area. When the total number of + * unique clicks during the period is below the privacy threshold, only `richMenuId` is + * returned and the other fields are omitted. + * + * @param richMenuId ID of the rich menu created via the Messaging API. (required) + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 + * years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 (required) + * @param to End date of the aggregation period (inclusive). The end date can be specified for up + * to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * (required) + * @see Get + * rich menu insight daily Documentation + */ + @GET("/v2/bot/insight/richmenu/{richMenuId}/daily") + CompletableFuture> getRichMenuInsightDaily( + @Path("richMenuId") String richMenuId, @Query("from") String from, @Query("to") String to); + + /** + * Get rich menu insight summary Gets a summary of rich menu statistics for the specified period, + * for a rich menu created via the Messaging API. Returns the total impression count for the whole + * rich menu and the click count for each tappable area, aggregated over the entire period as a + * single result. When the total number of unique clicks during the period is below the privacy + * threshold, only `richMenuId` is returned and the other fields are omitted. + * + * @param richMenuId ID of the rich menu created via the Messaging API. (required) + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 + * years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 (required) + * @param to End date of the aggregation period (inclusive). The end date can be specified for up + * to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * (required) + * @see Get + * rich menu insight summary Documentation + */ + @GET("/v2/bot/insight/richmenu/{richMenuId}/summary") + CompletableFuture> getRichMenuInsightSummary( + @Path("richMenuId") String richMenuId, @Query("from") String from, @Query("to") String to); + /** * You can check the per-unit statistics of how users interact with push messages and multicast * messages sent from your LINE Official Account. diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponse.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponse.java new file mode 100644 index 000000000..7fa757486 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponse.java @@ -0,0 +1,88 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Daily impression and click statistics for a rich menu created via the Messaging API. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightDailyResponse( + /** Rich menu ID. */ + @JsonProperty("richMenuId") String richMenuId, + /** + * Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd + * (e.g. 20260213). + */ + @JsonProperty("metricsFrom") String metricsFrom, + /** + * End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. + * 20260215). + */ + @JsonProperty("metricsTo") String metricsTo, + /** Get impression */ + @JsonProperty("impression") GetRichMenuInsightDailyResponseImpression impression, + /** Daily click metrics for each tappable area of the rich menu. */ + @JsonProperty("clicks") List clicks) { + + public static class Builder { + private String richMenuId; + private String metricsFrom; + private String metricsTo; + private GetRichMenuInsightDailyResponseImpression impression; + private List clicks; + + public Builder(String richMenuId) { + + this.richMenuId = richMenuId; + } + + public Builder metricsFrom(String metricsFrom) { + this.metricsFrom = metricsFrom; + return this; + } + + public Builder metricsTo(String metricsTo) { + this.metricsTo = metricsTo; + return this; + } + + public Builder impression(GetRichMenuInsightDailyResponseImpression impression) { + this.impression = impression; + return this; + } + + public Builder clicks(List clicks) { + this.clicks = clicks; + return this; + } + + public GetRichMenuInsightDailyResponse build() { + return new GetRichMenuInsightDailyResponse( + richMenuId, metricsFrom, metricsTo, impression, clicks); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseBounds.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseBounds.java new file mode 100644 index 000000000..a9dbe8160 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseBounds.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Target area of the metrics, represented by the top-left coordinate, width, and height. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightDailyResponseBounds( + /** The x coordinate of the top-left corner of the target area. */ + @JsonProperty("x") Integer x, + /** The y coordinate of the top-left corner of the target area. */ + @JsonProperty("y") Integer y, + /** The width of the target area. */ + @JsonProperty("width") Integer width, + /** The height of the target area. */ + @JsonProperty("height") Integer height) { + + public static class Builder { + private Integer x; + private Integer y; + private Integer width; + private Integer height; + + public Builder(Integer x, Integer y, Integer width, Integer height) { + + this.x = x; + + this.y = y; + + this.width = width; + + this.height = height; + } + + public GetRichMenuInsightDailyResponseBounds build() { + return new GetRichMenuInsightDailyResponseBounds(x, y, width, height); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseClick.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseClick.java new file mode 100644 index 000000000..5ca55a69d --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseClick.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Daily click metrics for a single tappable area of the rich menu. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightDailyResponseClick( + /** Get bounds */ + @JsonProperty("bounds") GetRichMenuInsightDailyResponseBounds bounds, + /** Per-day click metrics for the target area. */ + @JsonProperty("metrics") List metrics) { + + public static class Builder { + private GetRichMenuInsightDailyResponseBounds bounds; + private List metrics; + + public Builder( + GetRichMenuInsightDailyResponseBounds bounds, + List metrics) { + + this.bounds = bounds; + + this.metrics = metrics; + } + + public GetRichMenuInsightDailyResponseClick build() { + return new GetRichMenuInsightDailyResponseClick(bounds, metrics); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseDailyMetrics.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseDailyMetrics.java new file mode 100644 index 000000000..bf15c1854 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseDailyMetrics.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Aggregated number of events and unique users for a single day. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightDailyResponseDailyMetrics( + /** The date (JST) of these metrics. Format: yyyyMMdd (e.g. 20260213). */ + @JsonProperty("date") String date, + /** Number of impressions or clicks on this day. */ + @JsonProperty("count") Long count, + /** Approximate number of unique users who triggered an impression or click on this day. */ + @JsonProperty("uniqueUsers") Long uniqueUsers) { + + public static class Builder { + private String date; + private Long count; + private Long uniqueUsers; + + public Builder(String date, Long count, Long uniqueUsers) { + + this.date = date; + + this.count = count; + + this.uniqueUsers = uniqueUsers; + } + + public GetRichMenuInsightDailyResponseDailyMetrics build() { + return new GetRichMenuInsightDailyResponseDailyMetrics(date, count, uniqueUsers); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseImpression.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseImpression.java new file mode 100644 index 000000000..11822463c --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightDailyResponseImpression.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Daily impression metrics for the whole rich menu. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightDailyResponseImpression( + /** Per-day impression metrics. */ + @JsonProperty("metrics") List metrics) { + + public static class Builder { + private List metrics; + + public Builder(List metrics) { + + this.metrics = metrics; + } + + public GetRichMenuInsightDailyResponseImpression build() { + return new GetRichMenuInsightDailyResponseImpression(metrics); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponse.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponse.java new file mode 100644 index 000000000..7cc272861 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponse.java @@ -0,0 +1,88 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Summary of impression and click statistics for a rich menu created via the Messaging API. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightSummaryResponse( + /** Rich menu ID. */ + @JsonProperty("richMenuId") String richMenuId, + /** + * Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd + * (e.g. 20260213). + */ + @JsonProperty("metricsFrom") String metricsFrom, + /** + * End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. + * 20260215). + */ + @JsonProperty("metricsTo") String metricsTo, + /** Get impression */ + @JsonProperty("impression") GetRichMenuInsightSummaryResponseImpression impression, + /** Click metrics for each tappable area of the rich menu. */ + @JsonProperty("clicks") List clicks) { + + public static class Builder { + private String richMenuId; + private String metricsFrom; + private String metricsTo; + private GetRichMenuInsightSummaryResponseImpression impression; + private List clicks; + + public Builder(String richMenuId) { + + this.richMenuId = richMenuId; + } + + public Builder metricsFrom(String metricsFrom) { + this.metricsFrom = metricsFrom; + return this; + } + + public Builder metricsTo(String metricsTo) { + this.metricsTo = metricsTo; + return this; + } + + public Builder impression(GetRichMenuInsightSummaryResponseImpression impression) { + this.impression = impression; + return this; + } + + public Builder clicks(List clicks) { + this.clicks = clicks; + return this; + } + + public GetRichMenuInsightSummaryResponse build() { + return new GetRichMenuInsightSummaryResponse( + richMenuId, metricsFrom, metricsTo, impression, clicks); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseBounds.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseBounds.java new file mode 100644 index 000000000..6b8990e76 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseBounds.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Target area of the metrics, represented by the top-left coordinate, width, and height. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightSummaryResponseBounds( + /** The x coordinate of the top-left corner of the target area. */ + @JsonProperty("x") Integer x, + /** The y coordinate of the top-left corner of the target area. */ + @JsonProperty("y") Integer y, + /** The width of the target area. */ + @JsonProperty("width") Integer width, + /** The height of the target area. */ + @JsonProperty("height") Integer height) { + + public static class Builder { + private Integer x; + private Integer y; + private Integer width; + private Integer height; + + public Builder(Integer x, Integer y, Integer width, Integer height) { + + this.x = x; + + this.y = y; + + this.width = width; + + this.height = height; + } + + public GetRichMenuInsightSummaryResponseBounds build() { + return new GetRichMenuInsightSummaryResponseBounds(x, y, width, height); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseClick.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseClick.java new file mode 100644 index 000000000..e51e3cbdd --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseClick.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Click metrics for a single tappable area of the rich menu. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightSummaryResponseClick( + /** Get bounds */ + @JsonProperty("bounds") GetRichMenuInsightSummaryResponseBounds bounds, + /** Get metrics */ + @JsonProperty("metrics") GetRichMenuInsightSummaryResponseMetrics metrics) { + + public static class Builder { + private GetRichMenuInsightSummaryResponseBounds bounds; + private GetRichMenuInsightSummaryResponseMetrics metrics; + + public Builder( + GetRichMenuInsightSummaryResponseBounds bounds, + GetRichMenuInsightSummaryResponseMetrics metrics) { + + this.bounds = bounds; + + this.metrics = metrics; + } + + public GetRichMenuInsightSummaryResponseClick build() { + return new GetRichMenuInsightSummaryResponseClick(bounds, metrics); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseImpression.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseImpression.java new file mode 100644 index 000000000..b3da4d4d4 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseImpression.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Impression metrics for the whole rich menu. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightSummaryResponseImpression( + /** Get metrics */ + @JsonProperty("metrics") GetRichMenuInsightSummaryResponseMetrics metrics) { + + public static class Builder { + private GetRichMenuInsightSummaryResponseMetrics metrics; + + public Builder(GetRichMenuInsightSummaryResponseMetrics metrics) { + + this.metrics = metrics; + } + + public GetRichMenuInsightSummaryResponseImpression build() { + return new GetRichMenuInsightSummaryResponseImpression(metrics); + } + } +} diff --git a/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseMetrics.java b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseMetrics.java new file mode 100644 index 000000000..68c1cb401 --- /dev/null +++ b/clients/line-bot-insight-client/src/main/java/com/linecorp/bot/insight/model/GetRichMenuInsightSummaryResponseMetrics.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 LINE Corporation + * + * LINE Corporation licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ +package com.linecorp.bot.insight.model; + + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Aggregated number of events and unique users over the whole period. */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record GetRichMenuInsightSummaryResponseMetrics( + /** Number of impressions or clicks. */ + @JsonProperty("count") Long count, + /** Approximate number of unique users who triggered an impression or click. */ + @JsonProperty("uniqueUsers") Long uniqueUsers) { + + public static class Builder { + private Long count; + private Long uniqueUsers; + + public Builder(Long count, Long uniqueUsers) { + + this.count = count; + + this.uniqueUsers = uniqueUsers; + } + + public GetRichMenuInsightSummaryResponseMetrics build() { + return new GetRichMenuInsightSummaryResponseMetrics(count, uniqueUsers); + } + } +} diff --git a/line-openapi b/line-openapi index 82f108c6a..6e4c2a2a1 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 82f108c6a38f3b71a1bc9673486357d93fdb6597 +Subproject commit 6e4c2a2a1b7b059ea3920456d4f88d03fd8ef0bb