Skip to content

Commit 85d9fc8

Browse files
authored
Merge branch 'master' into feature/allow-custom-logger
2 parents 3012da2 + 22d8630 commit 85d9fc8

File tree

4 files changed

+98
-4
lines changed

4 files changed

+98
-4
lines changed

clients/line-liff-client/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ src/main/java/com/linecorp/bot/liff/model/LiffFeatures.java
88
src/main/java/com/linecorp/bot/liff/model/LiffScope.java
99
src/main/java/com/linecorp/bot/liff/model/LiffView.java
1010
src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java
11+
src/main/java/com/linecorp/bot/liff/model/UpdateLiffView.java

clients/line-liff-client/src/main/java/com/linecorp/bot/liff/model/UpdateLiffAppRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
3838
public record UpdateLiffAppRequest(
3939
/** Get view */
40-
@JsonProperty("view") LiffView view,
40+
@JsonProperty("view") UpdateLiffView view,
4141
/**
4242
* Name of the LIFF app. The LIFF app name can't include \"LINE\" or similar
4343
* strings, or inappropriate strings.
@@ -53,7 +53,7 @@ public record UpdateLiffAppRequest(
5353
@JsonProperty("botPrompt") LiffBotPrompt botPrompt) {
5454

5555
public static class Builder {
56-
private LiffView view;
56+
private UpdateLiffView view;
5757
private String description;
5858
private LiffFeatures features;
5959
private String permanentLinkPattern;
@@ -62,7 +62,7 @@ public static class Builder {
6262

6363
public Builder() {}
6464

65-
public Builder view(LiffView view) {
65+
public Builder view(UpdateLiffView view) {
6666
this.view = view;
6767
return this;
6868
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.liff.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
26+
import com.fasterxml.jackson.annotation.JsonInclude;
27+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
28+
import com.fasterxml.jackson.annotation.JsonProperty;
29+
import java.net.URI;
30+
31+
/**
32+
* UpdateLiffView
33+
*
34+
* @see <a href="https://developers.line.biz/en/reference/liff-server/#update-liff-app">
35+
* Documentation</a>
36+
*/
37+
@JsonInclude(Include.NON_NULL)
38+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
39+
public record UpdateLiffView(
40+
/** Size of the LIFF app view. Specify one of these values: - compact - tall - full */
41+
@JsonProperty("type") Type type,
42+
/**
43+
* Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g.
44+
* https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme
45+
* must be https. URL fragments (#URL-fragment) can&#39;t be specified.
46+
*/
47+
@JsonProperty("url") URI url,
48+
/**
49+
* &#x60;true&#x60; to use the LIFF app in modular mode. When in modular mode, the action button
50+
* in the header is not displayed.
51+
*/
52+
@JsonProperty("moduleMode") Boolean moduleMode) {
53+
54+
/** Size of the LIFF app view. Specify one of these values: - compact - tall - full */
55+
public enum Type {
56+
@JsonProperty("compact")
57+
COMPACT,
58+
@JsonProperty("tall")
59+
TALL,
60+
@JsonProperty("full")
61+
FULL,
62+
63+
@JsonEnumDefaultValue
64+
UNDEFINED;
65+
}
66+
67+
public static class Builder {
68+
private Type type;
69+
private URI url;
70+
private Boolean moduleMode;
71+
72+
public Builder() {}
73+
74+
public Builder type(Type type) {
75+
this.type = type;
76+
return this;
77+
}
78+
79+
public Builder url(URI url) {
80+
this.url = url;
81+
return this;
82+
}
83+
84+
public Builder moduleMode(Boolean moduleMode) {
85+
this.moduleMode = moduleMode;
86+
return this;
87+
}
88+
89+
public UpdateLiffView build() {
90+
return new UpdateLiffView(type, url, moduleMode);
91+
}
92+
}
93+
}

line-openapi

0 commit comments

Comments
 (0)