From e062d5849bf2f67da14b9c4c67d709dee1e86454 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 23 Oct 2025 08:28:57 +0000 Subject: [PATCH] Code are generated by openapi generator --- .../com/linecorp/bot/messaging/model/Limit.java | 17 +++++++++++++++-- .../model/NarrowcastProgressResponse.java | 3 ++- line-openapi | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/Limit.java b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/Limit.java index a2578d252..92cafb45c 100644 --- a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/Limit.java +++ b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/Limit.java @@ -44,11 +44,19 @@ public record Limit( * If true, the message will be sent within the maximum number of deliverable messages. The * default value is `false`. Targets will be selected at random. */ - @JsonProperty("upToRemainingQuota") Boolean upToRemainingQuota) { + @JsonProperty("upToRemainingQuota") Boolean upToRemainingQuota, + /** + * This option prevents messages from being delivered to only a subset of the target audience. + * If true, the narrowcast request success but fails asynchronously. You can check whether + * message delivery was canceled by retrieving the narrowcast message progress. This property + * can be set to true only if upToRemainingQuota is set to true. + */ + @JsonProperty("forbidPartialDelivery") Boolean forbidPartialDelivery) { public static class Builder { private Integer max; private Boolean upToRemainingQuota; + private Boolean forbidPartialDelivery; public Builder() {} @@ -62,8 +70,13 @@ public Builder upToRemainingQuota(Boolean upToRemainingQuota) { return this; } + public Builder forbidPartialDelivery(Boolean forbidPartialDelivery) { + this.forbidPartialDelivery = forbidPartialDelivery; + return this; + } + public Limit build() { - return new Limit(max, upToRemainingQuota); + return new Limit(max, upToRemainingQuota, forbidPartialDelivery); } } } diff --git a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/NarrowcastProgressResponse.java b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/NarrowcastProgressResponse.java index d96d8191e..c9d697374 100644 --- a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/NarrowcastProgressResponse.java +++ b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/NarrowcastProgressResponse.java @@ -62,7 +62,8 @@ public record NarrowcastProgressResponse( * `1`: An internal error occurred. `2`: An error occurred because there * weren't enough recipients. `3`: A conflict error of requests occurs because a * request that has already been accepted is retried. `4`: An audience of less than 50 - * recipients is included as a condition of sending. + * recipients is included as a condition of sending. `5`: Message delivery has been + * canceled to prevent messages from being delivered only to a subset of the target audience. */ @JsonProperty("errorCode") Long errorCode, /** diff --git a/line-openapi b/line-openapi index 8025f6ccb..9488f69f5 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 8025f6ccb16d4009d39f6f2163340d0a2d50585b +Subproject commit 9488f69f56b16650e3b20d700efad5f1d5c5635a