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

Update all services #1306

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 56 additions & 4 deletions src/main/java/com/adyen/model/management/AndroidApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.management.AndroidAppError;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;

Expand All @@ -33,6 +36,7 @@
@JsonPropertyOrder({
AndroidApp.JSON_PROPERTY_DESCRIPTION,
AndroidApp.JSON_PROPERTY_ERROR_CODE,
AndroidApp.JSON_PROPERTY_ERRORS,
AndroidApp.JSON_PROPERTY_ID,
AndroidApp.JSON_PROPERTY_LABEL,
AndroidApp.JSON_PROPERTY_PACKAGE_NAME,
Expand All @@ -46,8 +50,12 @@ public class AndroidApp {
private String description;

public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
@Deprecated
private String errorCode;

public static final String JSON_PROPERTY_ERRORS = "errors";
private List<AndroidAppError> errors = null;

public static final String JSON_PROPERTY_ID = "id";
private String id;

Expand Down Expand Up @@ -99,16 +107,19 @@ public void setDescription(String description) {
}


@Deprecated
public AndroidApp errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}

/**
* The error code of the app. It exists if the status is error or invalid.
* The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
* @return errorCode
* @deprecated
**/
@ApiModelProperty(value = "The error code of the app. It exists if the status is error or invalid.")
@Deprecated
@ApiModelProperty(value = "The error code of the Android app with the `status` of either **error** or **invalid**.")
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -118,17 +129,56 @@ public String getErrorCode() {


/**
* The error code of the app. It exists if the status is error or invalid.
* The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
*
* @param errorCode
*/
@Deprecated
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}


public AndroidApp errors(List<AndroidAppError> errors) {
this.errors = errors;
return this;
}

public AndroidApp addErrorsItem(AndroidAppError errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList<>();
}
this.errors.add(errorsItem);
return this;
}

/**
* The list of errors of the Android app.
* @return errors
**/
@ApiModelProperty(value = "The list of errors of the Android app.")
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<AndroidAppError> getErrors() {
return errors;
}


/**
* The list of errors of the Android app.
*
* @param errors
*/
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrors(List<AndroidAppError> errors) {
this.errors = errors;
}


public AndroidApp id(String id) {
this.id = id;
return this;
Expand Down Expand Up @@ -323,6 +373,7 @@ public boolean equals(Object o) {
AndroidApp androidApp = (AndroidApp) o;
return Objects.equals(this.description, androidApp.description) &&
Objects.equals(this.errorCode, androidApp.errorCode) &&
Objects.equals(this.errors, androidApp.errors) &&
Objects.equals(this.id, androidApp.id) &&
Objects.equals(this.label, androidApp.label) &&
Objects.equals(this.packageName, androidApp.packageName) &&
Expand All @@ -333,7 +384,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(description, errorCode, id, label, packageName, status, versionCode, versionName);
return Objects.hash(description, errorCode, errors, id, label, packageName, status, versionCode, versionName);
}

@Override
Expand All @@ -342,6 +393,7 @@ public String toString() {
sb.append("class AndroidApp {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" packageName: ").append(toIndentedString(packageName)).append("\n");
Expand Down
179 changes: 179 additions & 0 deletions src/main/java/com/adyen/model/management/AndroidAppError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
/*
* Management API
*
* The version of the OpenAPI document: 3
*
*
* 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.adyen.model.management;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;


/**
* AndroidAppError
*/
@JsonPropertyOrder({
AndroidAppError.JSON_PROPERTY_ERROR_CODE,
AndroidAppError.JSON_PROPERTY_TERMINAL_MODELS
})

public class AndroidAppError {
public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
private String errorCode;

public static final String JSON_PROPERTY_TERMINAL_MODELS = "terminalModels";
private List<String> terminalModels = null;

public AndroidAppError() {
}

public AndroidAppError errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}

/**
* The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
* @return errorCode
**/
@ApiModelProperty(value = "The error code of the Android app with the `status` of either **error** or **invalid**.")
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getErrorCode() {
return errorCode;
}


/**
* The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
*
* @param errorCode
*/
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}


public AndroidAppError terminalModels(List<String> terminalModels) {
this.terminalModels = terminalModels;
return this;
}

public AndroidAppError addTerminalModelsItem(String terminalModelsItem) {
if (this.terminalModels == null) {
this.terminalModels = new ArrayList<>();
}
this.terminalModels.add(terminalModelsItem);
return this;
}

/**
* The list of payment terminal models to which the returned &#x60;errorCode&#x60; applies.
* @return terminalModels
**/
@ApiModelProperty(value = "The list of payment terminal models to which the returned `errorCode` applies.")
@JsonProperty(JSON_PROPERTY_TERMINAL_MODELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getTerminalModels() {
return terminalModels;
}


/**
* The list of payment terminal models to which the returned &#x60;errorCode&#x60; applies.
*
* @param terminalModels
*/
@JsonProperty(JSON_PROPERTY_TERMINAL_MODELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTerminalModels(List<String> terminalModels) {
this.terminalModels = terminalModels;
}


/**
* Return true if this AndroidAppError object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AndroidAppError androidAppError = (AndroidAppError) o;
return Objects.equals(this.errorCode, androidAppError.errorCode) &&
Objects.equals(this.terminalModels, androidAppError.terminalModels);
}

@Override
public int hashCode() {
return Objects.hash(errorCode, terminalModels);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AndroidAppError {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" terminalModels: ").append(toIndentedString(terminalModels)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

/**
* Create an instance of AndroidAppError given an JSON string
*
* @param jsonString JSON string
* @return An instance of AndroidAppError
* @throws JsonProcessingException if the JSON string is invalid with respect to AndroidAppError
*/
public static AndroidAppError fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AndroidAppError.class);
}
/**
* Convert an instance of AndroidAppError to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}

Loading