Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRE-88] Change artifactVersion #43

Merged
merged 9 commits into from
Jun 13, 2023
Prev Previous commit
Next Next commit
Changes for upgrade OpenApi - Java
  • Loading branch information
ezerozen committed Jun 9, 2023
commit 0467ba358f137e4156d75c5fbca2e26af1d094b9
52 changes: 26 additions & 26 deletions templates/java/jersey3/ApiClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* <p>Setter for the field <code>httpClient</code>.</p>
*
* @param httpClient a {@link {{javaxPackage}}.ws.rs.client.Client} object.
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setHttpClient(Client httpClient) {
this.httpClient = httpClient;
Expand All @@ -310,7 +310,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Sets the base URL to the location where the OpenAPI document is being served.
*
* @param basePath The base URL to the target host.
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setBasePath(String basePath) {
this.basePath = basePath;
Expand All @@ -333,7 +333,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* <p>Setter for the field <code>servers</code>.</p>
*
* @param servers a {@link java.util.List} of servers.
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setServers(List<ServerConfiguration> servers) {
this.servers = servers;
Expand All @@ -354,7 +354,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* <p>Setter for the field <code>serverIndex</code>.</p>
*
* @param serverIndex the server index
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setServerIndex(Integer serverIndex) {
this.serverIndex = serverIndex;
Expand All @@ -375,7 +375,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* <p>Setter for the field <code>serverVariables</code>.</p>
*
* @param serverVariables a {@link java.util.Map} of server variables.
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setServerVariables(Map<String, String> serverVariables) {
this.serverVariables = serverVariables;
Expand Down Expand Up @@ -422,7 +422,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set username for the first HTTP basic authentication.
*
* @param username Username
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setUsername(String username) {
for (Authentication auth : authentications.values()) {
Expand All @@ -438,7 +438,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set password for the first HTTP basic authentication.
*
* @param password Password
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setPassword(String password) {
for (Authentication auth : authentications.values()) {
Expand All @@ -454,7 +454,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set API key value for the first API key authentication.
*
* @param apiKey API key
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setApiKey(String apiKey) {
for (Authentication auth : authentications.values()) {
Expand All @@ -470,7 +470,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to configure authentications which respects aliases of API keys.
*
* @param secrets Hash map from authentication name to its secret.
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient configureApiKeys(Map<String, String> secrets) {
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
Expand All @@ -492,7 +492,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set API key prefix for the first API key authentication.
*
* @param apiKeyPrefix API key prefix
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setApiKeyPrefix(String apiKeyPrefix) {
for (Authentication auth : authentications.values()) {
Expand All @@ -508,7 +508,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set bearer token for the first Bearer authentication.
*
* @param bearerToken Bearer token
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setBearerToken(String bearerToken) {
for (Authentication auth : authentications.values()) {
Expand All @@ -525,7 +525,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set access token for the first OAuth2 authentication.
*
* @param accessToken Access token
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setAccessToken(String accessToken) {
for (Authentication auth : authentications.values()) {
Expand All @@ -542,7 +542,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
*
* @param clientId the client ID
* @param clientSecret the client secret
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setOauthCredentials(String clientId, String clientSecret) {
for (Authentication auth : authentications.values()) {
Expand All @@ -558,7 +558,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set the credentials of a public client for the first OAuth2 authentication.
*
* @param clientId the client ID
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setOauthCredentialsForPublicClient(String clientId) {
for (Authentication auth : authentications.values()) {
Expand All @@ -575,7 +575,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
*
* @param username the user name
* @param password the user password
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setOauthPasswordFlow(String username, String password) {
for (Authentication auth : authentications.values()) {
Expand All @@ -591,7 +591,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set the authorization code flow for the first OAuth2 authentication.
*
* @param code the authorization code
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setOauthAuthorizationCodeFlow(String code) {
for (Authentication auth : authentications.values()) {
Expand All @@ -607,7 +607,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Helper method to set the scopes for the first OAuth2 authentication.
*
* @param scope the oauth scope
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setOauthScope(String scope) {
for (Authentication auth : authentications.values()) {
Expand All @@ -624,7 +624,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Set the User-Agent header's value (by adding to the default header map).
*
* @param userAgent Http user agent
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setUserAgent(String userAgent) {
this.userAgent = userAgent;
Expand All @@ -646,7 +646,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
*
* @param key The header's key
* @param value The header's value
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient addDefaultHeader(String key, String value) {
defaultHeaderMap.put(key, value);
Expand All @@ -658,7 +658,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
*
* @param key The cookie's key
* @param value The cookie's value
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient addDefaultCookie(String key, String value) {
defaultCookieMap.put(key, value);
Expand All @@ -678,7 +678,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Set the client config.
*
* @param clientConfig Set the client config
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setClientConfig(ClientConfig clientConfig) {
this.clientConfig = clientConfig;
Expand All @@ -700,7 +700,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Enable/disable debugging for this API client.
*
* @param debugging To enable (true) or disable (false) debugging
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setDebugging(boolean debugging) {
this.debugging = debugging;
Expand All @@ -724,7 +724,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Set temp folder path
*
* @param tempFolderPath Temp folder path
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setTempFolderPath(String tempFolderPath) {
this.tempFolderPath = tempFolderPath;
Expand All @@ -746,7 +746,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* {@link Integer#MAX_VALUE}.
*
* @param connectionTimeout Connection timeout in milliseconds
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setConnectTimeout(int connectionTimeout) {
this.connectionTimeout = connectionTimeout;
Expand All @@ -769,7 +769,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* {@link Integer#MAX_VALUE}.
*
* @param readTimeout Read timeout in milliseconds
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setReadTimeout(int readTimeout) {
this.readTimeout = readTimeout;
Expand All @@ -790,7 +790,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* Set the date format used to parse/format date parameters.
*
* @param dateFormat Date format
* @return a {@link com.conekta.ApiClient} object.
* @return a {@link {{apiPackage}}.ApiClient} object.
*/
public ApiClient setDateFormat(DateFormat dateFormat) {
this.dateFormat = dateFormat;
Expand Down