From 1b90219b92f4400c79b022228b855ceee5496e92 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 24 Oct 2024 07:09:08 +0000 Subject: [PATCH] Code are generated by openapi generator --- .../line-liff-client/.openapi-generator/FILES | 1 + .../bot/liff/model/UpdateLiffAppRequest.java | 6 +- .../bot/liff/model/UpdateLiffView.java | 93 +++++++++++++++++++ line-openapi | 2 +- 4 files changed, 98 insertions(+), 4 deletions(-) create mode 100644 clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java diff --git a/clients/line-liff-client/.openapi-generator/FILES b/clients/line-liff-client/.openapi-generator/FILES index 74bc65c7a..ce6902dc1 100644 --- a/clients/line-liff-client/.openapi-generator/FILES +++ b/clients/line-liff-client/.openapi-generator/FILES @@ -8,3 +8,4 @@ src/main/java/com/linecorp/bot/liff/model/LiffFeatures.java src/main/java/com/linecorp/bot/liff/model/LiffScope.java src/main/java/com/linecorp/bot/liff/model/LiffView.java src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java +src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java diff --git a/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java b/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java index 403c2640a..1f581ff1c 100644 --- a/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java +++ b/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") public record UpdateLiffAppRequest( /** Get view */ - @JsonProperty("view") LiffView view, + @JsonProperty("view") UpdateLiffView view, /** * Name of the LIFF app. The LIFF app name can't include \"LINE\" or similar * strings, or inappropriate strings. @@ -53,7 +53,7 @@ public record UpdateLiffAppRequest( @JsonProperty("botPrompt") LiffBotPrompt botPrompt) { public static class Builder { - private LiffView view; + private UpdateLiffView view; private String description; private LiffFeatures features; private String permanentLinkPattern; @@ -62,7 +62,7 @@ public static class Builder { public Builder() {} - public Builder view(LiffView view) { + public Builder view(UpdateLiffView view) { this.view = view; return this; } diff --git a/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java b/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java new file mode 100644 index 000000000..75c10d971 --- /dev/null +++ b/clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java @@ -0,0 +1,93 @@ +/* + * 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.liff.model; + + + +import com.fasterxml.jackson.annotation.JsonEnumDefaultValue; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.URI; + +/** + * UpdateLiffView + * + * @see + * Documentation + */ +@JsonInclude(Include.NON_NULL) +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") +public record UpdateLiffView( + /** Size of the LIFF app view. Specify one of these values: - compact - tall - full */ + @JsonProperty("type") Type type, + /** + * Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g. + * https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme + * must be https. URL fragments (#URL-fragment) can't be specified. + */ + @JsonProperty("url") URI url, + /** + * `true` to use the LIFF app in modular mode. When in modular mode, the action button + * in the header is not displayed. + */ + @JsonProperty("moduleMode") Boolean moduleMode) { + + /** Size of the LIFF app view. Specify one of these values: - compact - tall - full */ + public enum Type { + @JsonProperty("compact") + COMPACT, + @JsonProperty("tall") + TALL, + @JsonProperty("full") + FULL, + + @JsonEnumDefaultValue + UNDEFINED; + } + + public static class Builder { + private Type type; + private URI url; + private Boolean moduleMode; + + public Builder() {} + + public Builder type(Type type) { + this.type = type; + return this; + } + + public Builder url(URI url) { + this.url = url; + return this; + } + + public Builder moduleMode(Boolean moduleMode) { + this.moduleMode = moduleMode; + return this; + } + + public UpdateLiffView build() { + return new UpdateLiffView(type, url, moduleMode); + } + } +} diff --git a/line-openapi b/line-openapi index 1729a0aee..4d9979bb3 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 1729a0aee4ec6257c4f7395860b012d3a3e0b235 +Subproject commit 4d9979bb3afa2798fa7dcc489f0fde023a8b25dd