Skip to content

Commit

Permalink
Codes are generated by openapi generator (#1467)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Oct 31, 2024
1 parent 2207f67 commit 42ab9a7
Show file tree
Hide file tree
Showing 10 changed files with 408 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java
src/main/java/com/linecorp/bot/messaging/model/Action.java
src/main/java/com/linecorp/bot/messaging/model/AgeDemographic.java
src/main/java/com/linecorp/bot/messaging/model/AgeDemographicFilter.java
src/main/java/com/linecorp/bot/messaging/model/AllMentionTarget.java
src/main/java/com/linecorp/bot/messaging/model/AltUri.java
src/main/java/com/linecorp/bot/messaging/model/AppTypeDemographic.java
src/main/java/com/linecorp/bot/messaging/model/AppTypeDemographicFilter.java
Expand All @@ -26,6 +27,7 @@ src/main/java/com/linecorp/bot/messaging/model/CreateRichMenuAliasRequest.java
src/main/java/com/linecorp/bot/messaging/model/DatetimePickerAction.java
src/main/java/com/linecorp/bot/messaging/model/DemographicFilter.java
src/main/java/com/linecorp/bot/messaging/model/Emoji.java
src/main/java/com/linecorp/bot/messaging/model/EmojiSubstitutionObject.java
src/main/java/com/linecorp/bot/messaging/model/ErrorDetail.java
src/main/java/com/linecorp/bot/messaging/model/ErrorResponse.java
src/main/java/com/linecorp/bot/messaging/model/Filter.java
Expand Down Expand Up @@ -85,6 +87,8 @@ src/main/java/com/linecorp/bot/messaging/model/MarkMessagesAsReadRequest.java
src/main/java/com/linecorp/bot/messaging/model/MembersIdsResponse.java
src/main/java/com/linecorp/bot/messaging/model/Membership.java
src/main/java/com/linecorp/bot/messaging/model/MembershipListResponse.java
src/main/java/com/linecorp/bot/messaging/model/MentionSubstitutionObject.java
src/main/java/com/linecorp/bot/messaging/model/MentionTarget.java
src/main/java/com/linecorp/bot/messaging/model/Message.java
src/main/java/com/linecorp/bot/messaging/model/MessageAction.java
src/main/java/com/linecorp/bot/messaging/model/MessageImagemapAction.java
Expand Down Expand Up @@ -138,16 +142,19 @@ src/main/java/com/linecorp/bot/messaging/model/SubscribedMembershipUser.java
src/main/java/com/linecorp/bot/messaging/model/Subscription.java
src/main/java/com/linecorp/bot/messaging/model/SubscriptionPeriodDemographic.java
src/main/java/com/linecorp/bot/messaging/model/SubscriptionPeriodDemographicFilter.java
src/main/java/com/linecorp/bot/messaging/model/SubstitutionObject.java
src/main/java/com/linecorp/bot/messaging/model/Template.java
src/main/java/com/linecorp/bot/messaging/model/TemplateImageAspectRatio.java
src/main/java/com/linecorp/bot/messaging/model/TemplateImageSize.java
src/main/java/com/linecorp/bot/messaging/model/TemplateMessage.java
src/main/java/com/linecorp/bot/messaging/model/TestWebhookEndpointRequest.java
src/main/java/com/linecorp/bot/messaging/model/TestWebhookEndpointResponse.java
src/main/java/com/linecorp/bot/messaging/model/TextMessage.java
src/main/java/com/linecorp/bot/messaging/model/TextMessageV2.java
src/main/java/com/linecorp/bot/messaging/model/URIAction.java
src/main/java/com/linecorp/bot/messaging/model/URIImagemapAction.java
src/main/java/com/linecorp/bot/messaging/model/UpdateRichMenuAliasRequest.java
src/main/java/com/linecorp/bot/messaging/model/UserMentionTarget.java
src/main/java/com/linecorp/bot/messaging/model/UserProfileResponse.java
src/main/java/com/linecorp/bot/messaging/model/ValidateMessageRequest.java
src/main/java/com/linecorp/bot/messaging/model/VideoMessage.java
Expand Down
Original file line number Diff line number Diff line change
@@ -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.messaging.model;



import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* AllMentionTarget
*
* @see <a
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mentionee-all">
* Documentation</a>
*/
@JsonTypeName("all")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record AllMentionTarget() implements MentionTarget {

public static class Builder {

public Builder() {}

public AllMentionTarget build() {
return new AllMentionTarget();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* 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.messaging.model;



import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* An object representing a emoji substitution.
*
* @see <a
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-emoji-object">
* Documentation</a>
*/
@JsonTypeName("emoji")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record EmojiSubstitutionObject(
/** Get productId */
@JsonProperty("productId") String productId,
/** Get emojiId */
@JsonProperty("emojiId") String emojiId)
implements SubstitutionObject {

public static class Builder {
private String productId;
private String emojiId;

public Builder(String productId, String emojiId) {

this.productId = productId;

this.emojiId = emojiId;
}

public EmojiSubstitutionObject build() {
return new EmojiSubstitutionObject(productId, emojiId);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.messaging.model;



import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* An object representing a mention substitution.
*
* @see <a
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mention-object">
* Documentation</a>
*/
@JsonTypeName("mention")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record MentionSubstitutionObject(
/** Get mentionee */
@JsonProperty("mentionee") MentionTarget mentionee) implements SubstitutionObject {

public static class Builder {
private MentionTarget mentionee;

public Builder(MentionTarget mentionee) {

this.mentionee = mentionee;
}

public MentionSubstitutionObject build() {
return new MentionSubstitutionObject(mentionee);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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.messaging.model;



import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/** MentionTarget */
@JsonSubTypes({
@JsonSubTypes.Type(value = AllMentionTarget.class, name = "all"),
@JsonSubTypes.Type(value = UserMentionTarget.class, name = "user"),
})
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type",
visible = true)
public interface MentionTarget {}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
@JsonSubTypes.Type(value = StickerMessage.class, name = "sticker"),
@JsonSubTypes.Type(value = TemplateMessage.class, name = "template"),
@JsonSubTypes.Type(value = TextMessage.class, name = "text"),
@JsonSubTypes.Type(value = TextMessageV2.class, name = "textV2"),
@JsonSubTypes.Type(value = VideoMessage.class, name = "video"),
})
@JsonTypeInfo(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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.messaging.model;



import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/** An object that defines the replacement value for a placeholder in the text. */
@JsonSubTypes({
@JsonSubTypes.Type(value = EmojiSubstitutionObject.class, name = "emoji"),
@JsonSubTypes.Type(value = MentionSubstitutionObject.class, name = "mention"),
})
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type",
visible = true)
public interface SubstitutionObject {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* 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.messaging.model;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.Map;

/**
* TextMessageV2
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2">
* Documentation</a>
*/
@JsonTypeName("textV2")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record TextMessageV2(
/** Get quickReply */
@JsonProperty("quickReply") QuickReply quickReply,
/** Get sender */
@JsonProperty("sender") Sender sender,
/** Get text */
@JsonProperty("text") String text,
/**
* A mapping that specifies substitutions for parts enclosed in {} within the &#39;text&#39;
* field.
*/
@JsonProperty("substitution") Map<String, SubstitutionObject> substitution,
/** Quote token of the message you want to quote. */
@JsonProperty("quoteToken") String quoteToken)
implements Message {

public static class Builder {
private QuickReply quickReply;
private Sender sender;
private String text;
private Map<String, SubstitutionObject> substitution;
private String quoteToken;

public Builder(String text) {

this.text = text;
}

public Builder quickReply(QuickReply quickReply) {
this.quickReply = quickReply;
return this;
}

public Builder sender(Sender sender) {
this.sender = sender;
return this;
}

public Builder substitution(Map<String, SubstitutionObject> substitution) {
this.substitution = substitution;
return this;
}

public Builder quoteToken(String quoteToken) {
this.quoteToken = quoteToken;
return this;
}

public TextMessageV2 build() {
return new TextMessageV2(quickReply, sender, text, substitution, quoteToken);
}
}
}
Loading

0 comments on commit 42ab9a7

Please sign in to comment.