Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand All @@ -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);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
/**
Expand Down
2 changes: 1 addition & 1 deletion line-openapi
Submodule line-openapi updated 1 files
+10 −0 messaging-api.yml