Skip to content

Commit 319ed4f

Browse files
github-actions[bot]github-actions
andauthored
Fix type of expireTimestamp (#1608)
line/line-openapi#106 Type for `CreateAudienceGroupResponse#expireTimestamp` is not float or double, but integer actually. This change fixes type. Co-authored-by: github-actions <[email protected]>
1 parent 157fddb commit 319ed4f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

clients/line-bot-manage-audience-client/src/main/java/com/linecorp/bot/audience/model/CreateAudienceGroupResponse.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.fasterxml.jackson.annotation.JsonInclude;
2727
import com.fasterxml.jackson.annotation.JsonInclude.Include;
2828
import com.fasterxml.jackson.annotation.JsonProperty;
29-
import java.math.BigDecimal;
3029

3130
/**
3231
* Create audience for uploading user IDs (by JSON)
@@ -57,7 +56,7 @@ public record CreateAudienceGroupResponse(
5756
*/
5857
@JsonProperty("permission") Permission permission,
5958
/** Time of audience expiration. Only returned for specific audiences. */
60-
@JsonProperty("expireTimestamp") BigDecimal expireTimestamp,
59+
@JsonProperty("expireTimestamp") Long expireTimestamp,
6160
/**
6261
* The value indicating the type of account to be sent, as specified when creating the audience
6362
* for uploading user IDs. One of: &#x60;true&#x60;: Accounts are specified with IFAs.
@@ -98,7 +97,7 @@ public static class Builder {
9897
private String description;
9998
private Long created;
10099
private Permission permission;
101-
private BigDecimal expireTimestamp;
100+
private Long expireTimestamp;
102101
private Boolean isIfaAudience;
103102

104103
public Builder() {}
@@ -133,7 +132,7 @@ public Builder permission(Permission permission) {
133132
return this;
134133
}
135134

136-
public Builder expireTimestamp(BigDecimal expireTimestamp) {
135+
public Builder expireTimestamp(Long expireTimestamp) {
137136
this.expireTimestamp = expireTimestamp;
138137
return this;
139138
}

line-openapi

0 commit comments

Comments
 (0)