Skip to content

Commit 42ab9a7

Browse files
github-actions[bot]github-actions
andauthored
Codes are generated by openapi generator (#1467)
Co-authored-by: github-actions <[email protected]>
1 parent 2207f67 commit 42ab9a7

File tree

10 files changed

+408
-2
lines changed

10 files changed

+408
-2
lines changed

clients/line-bot-messaging-api-client/.openapi-generator/FILES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java
33
src/main/java/com/linecorp/bot/messaging/model/Action.java
44
src/main/java/com/linecorp/bot/messaging/model/AgeDemographic.java
55
src/main/java/com/linecorp/bot/messaging/model/AgeDemographicFilter.java
6+
src/main/java/com/linecorp/bot/messaging/model/AllMentionTarget.java
67
src/main/java/com/linecorp/bot/messaging/model/AltUri.java
78
src/main/java/com/linecorp/bot/messaging/model/AppTypeDemographic.java
89
src/main/java/com/linecorp/bot/messaging/model/AppTypeDemographicFilter.java
@@ -26,6 +27,7 @@ src/main/java/com/linecorp/bot/messaging/model/CreateRichMenuAliasRequest.java
2627
src/main/java/com/linecorp/bot/messaging/model/DatetimePickerAction.java
2728
src/main/java/com/linecorp/bot/messaging/model/DemographicFilter.java
2829
src/main/java/com/linecorp/bot/messaging/model/Emoji.java
30+
src/main/java/com/linecorp/bot/messaging/model/EmojiSubstitutionObject.java
2931
src/main/java/com/linecorp/bot/messaging/model/ErrorDetail.java
3032
src/main/java/com/linecorp/bot/messaging/model/ErrorResponse.java
3133
src/main/java/com/linecorp/bot/messaging/model/Filter.java
@@ -85,6 +87,8 @@ src/main/java/com/linecorp/bot/messaging/model/MarkMessagesAsReadRequest.java
8587
src/main/java/com/linecorp/bot/messaging/model/MembersIdsResponse.java
8688
src/main/java/com/linecorp/bot/messaging/model/Membership.java
8789
src/main/java/com/linecorp/bot/messaging/model/MembershipListResponse.java
90+
src/main/java/com/linecorp/bot/messaging/model/MentionSubstitutionObject.java
91+
src/main/java/com/linecorp/bot/messaging/model/MentionTarget.java
8892
src/main/java/com/linecorp/bot/messaging/model/Message.java
8993
src/main/java/com/linecorp/bot/messaging/model/MessageAction.java
9094
src/main/java/com/linecorp/bot/messaging/model/MessageImagemapAction.java
@@ -138,16 +142,19 @@ src/main/java/com/linecorp/bot/messaging/model/SubscribedMembershipUser.java
138142
src/main/java/com/linecorp/bot/messaging/model/Subscription.java
139143
src/main/java/com/linecorp/bot/messaging/model/SubscriptionPeriodDemographic.java
140144
src/main/java/com/linecorp/bot/messaging/model/SubscriptionPeriodDemographicFilter.java
145+
src/main/java/com/linecorp/bot/messaging/model/SubstitutionObject.java
141146
src/main/java/com/linecorp/bot/messaging/model/Template.java
142147
src/main/java/com/linecorp/bot/messaging/model/TemplateImageAspectRatio.java
143148
src/main/java/com/linecorp/bot/messaging/model/TemplateImageSize.java
144149
src/main/java/com/linecorp/bot/messaging/model/TemplateMessage.java
145150
src/main/java/com/linecorp/bot/messaging/model/TestWebhookEndpointRequest.java
146151
src/main/java/com/linecorp/bot/messaging/model/TestWebhookEndpointResponse.java
147152
src/main/java/com/linecorp/bot/messaging/model/TextMessage.java
153+
src/main/java/com/linecorp/bot/messaging/model/TextMessageV2.java
148154
src/main/java/com/linecorp/bot/messaging/model/URIAction.java
149155
src/main/java/com/linecorp/bot/messaging/model/URIImagemapAction.java
150156
src/main/java/com/linecorp/bot/messaging/model/UpdateRichMenuAliasRequest.java
157+
src/main/java/com/linecorp/bot/messaging/model/UserMentionTarget.java
151158
src/main/java/com/linecorp/bot/messaging/model/UserProfileResponse.java
152159
src/main/java/com/linecorp/bot/messaging/model/ValidateMessageRequest.java
153160
src/main/java/com/linecorp/bot/messaging/model/VideoMessage.java
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonInclude;
26+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
27+
import com.fasterxml.jackson.annotation.JsonTypeName;
28+
29+
/**
30+
* AllMentionTarget
31+
*
32+
* @see <a
33+
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mentionee-all">
34+
* Documentation</a>
35+
*/
36+
@JsonTypeName("all")
37+
@JsonInclude(Include.NON_NULL)
38+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
39+
public record AllMentionTarget() implements MentionTarget {
40+
41+
public static class Builder {
42+
43+
public Builder() {}
44+
45+
public AllMentionTarget build() {
46+
return new AllMentionTarget();
47+
}
48+
}
49+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonInclude;
26+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
27+
import com.fasterxml.jackson.annotation.JsonProperty;
28+
import com.fasterxml.jackson.annotation.JsonTypeName;
29+
30+
/**
31+
* An object representing a emoji substitution.
32+
*
33+
* @see <a
34+
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-emoji-object">
35+
* Documentation</a>
36+
*/
37+
@JsonTypeName("emoji")
38+
@JsonInclude(Include.NON_NULL)
39+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
40+
public record EmojiSubstitutionObject(
41+
/** Get productId */
42+
@JsonProperty("productId") String productId,
43+
/** Get emojiId */
44+
@JsonProperty("emojiId") String emojiId)
45+
implements SubstitutionObject {
46+
47+
public static class Builder {
48+
private String productId;
49+
private String emojiId;
50+
51+
public Builder(String productId, String emojiId) {
52+
53+
this.productId = productId;
54+
55+
this.emojiId = emojiId;
56+
}
57+
58+
public EmojiSubstitutionObject build() {
59+
return new EmojiSubstitutionObject(productId, emojiId);
60+
}
61+
}
62+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonInclude;
26+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
27+
import com.fasterxml.jackson.annotation.JsonProperty;
28+
import com.fasterxml.jackson.annotation.JsonTypeName;
29+
30+
/**
31+
* An object representing a mention substitution.
32+
*
33+
* @see <a
34+
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mention-object">
35+
* Documentation</a>
36+
*/
37+
@JsonTypeName("mention")
38+
@JsonInclude(Include.NON_NULL)
39+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
40+
public record MentionSubstitutionObject(
41+
/** Get mentionee */
42+
@JsonProperty("mentionee") MentionTarget mentionee) implements SubstitutionObject {
43+
44+
public static class Builder {
45+
private MentionTarget mentionee;
46+
47+
public Builder(MentionTarget mentionee) {
48+
49+
this.mentionee = mentionee;
50+
}
51+
52+
public MentionSubstitutionObject build() {
53+
return new MentionSubstitutionObject(mentionee);
54+
}
55+
}
56+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonSubTypes;
26+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
27+
28+
/** MentionTarget */
29+
@JsonSubTypes({
30+
@JsonSubTypes.Type(value = AllMentionTarget.class, name = "all"),
31+
@JsonSubTypes.Type(value = UserMentionTarget.class, name = "user"),
32+
})
33+
@JsonTypeInfo(
34+
use = JsonTypeInfo.Id.NAME,
35+
include = JsonTypeInfo.As.PROPERTY,
36+
property = "type",
37+
visible = true)
38+
public interface MentionTarget {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
@JsonSubTypes.Type(value = StickerMessage.class, name = "sticker"),
3636
@JsonSubTypes.Type(value = TemplateMessage.class, name = "template"),
3737
@JsonSubTypes.Type(value = TextMessage.class, name = "text"),
38+
@JsonSubTypes.Type(value = TextMessageV2.class, name = "textV2"),
3839
@JsonSubTypes.Type(value = VideoMessage.class, name = "video"),
3940
})
4041
@JsonTypeInfo(
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonSubTypes;
26+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
27+
28+
/** An object that defines the replacement value for a placeholder in the text. */
29+
@JsonSubTypes({
30+
@JsonSubTypes.Type(value = EmojiSubstitutionObject.class, name = "emoji"),
31+
@JsonSubTypes.Type(value = MentionSubstitutionObject.class, name = "mention"),
32+
})
33+
@JsonTypeInfo(
34+
use = JsonTypeInfo.Id.NAME,
35+
include = JsonTypeInfo.As.PROPERTY,
36+
property = "type",
37+
visible = true)
38+
public interface SubstitutionObject {}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.messaging.model;
22+
23+
24+
import com.fasterxml.jackson.annotation.JsonInclude;
25+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
26+
import com.fasterxml.jackson.annotation.JsonProperty;
27+
import com.fasterxml.jackson.annotation.JsonTypeName;
28+
import java.util.Map;
29+
30+
/**
31+
* TextMessageV2
32+
*
33+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2">
34+
* Documentation</a>
35+
*/
36+
@JsonTypeName("textV2")
37+
@JsonInclude(Include.NON_NULL)
38+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
39+
public record TextMessageV2(
40+
/** Get quickReply */
41+
@JsonProperty("quickReply") QuickReply quickReply,
42+
/** Get sender */
43+
@JsonProperty("sender") Sender sender,
44+
/** Get text */
45+
@JsonProperty("text") String text,
46+
/**
47+
* A mapping that specifies substitutions for parts enclosed in {} within the &#39;text&#39;
48+
* field.
49+
*/
50+
@JsonProperty("substitution") Map<String, SubstitutionObject> substitution,
51+
/** Quote token of the message you want to quote. */
52+
@JsonProperty("quoteToken") String quoteToken)
53+
implements Message {
54+
55+
public static class Builder {
56+
private QuickReply quickReply;
57+
private Sender sender;
58+
private String text;
59+
private Map<String, SubstitutionObject> substitution;
60+
private String quoteToken;
61+
62+
public Builder(String text) {
63+
64+
this.text = text;
65+
}
66+
67+
public Builder quickReply(QuickReply quickReply) {
68+
this.quickReply = quickReply;
69+
return this;
70+
}
71+
72+
public Builder sender(Sender sender) {
73+
this.sender = sender;
74+
return this;
75+
}
76+
77+
public Builder substitution(Map<String, SubstitutionObject> substitution) {
78+
this.substitution = substitution;
79+
return this;
80+
}
81+
82+
public Builder quoteToken(String quoteToken) {
83+
this.quoteToken = quoteToken;
84+
return this;
85+
}
86+
87+
public TextMessageV2 build() {
88+
return new TextMessageV2(quickReply, sender, text, substitution, quoteToken);
89+
}
90+
}
91+
}

0 commit comments

Comments
 (0)