Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change (#1352)
Browse files Browse the repository at this point in the history
Co-authored-by: jillingk <[email protected]>
  • Loading branch information
AdyenAutomationBot and jillingk authored Sep 4, 2024
1 parent a58d355 commit fd381f0
Show file tree
Hide file tree
Showing 14 changed files with 1,892 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class IdentificationData {
private String number;

/**
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
*/
public enum TypeEnum {
NATIONALIDNUMBER("nationalIdNumber"),
Expand Down Expand Up @@ -295,10 +295,10 @@ public IdentificationData type(TypeEnum type) {
}

/**
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
* @return type
**/
@ApiModelProperty(required = true, value = "Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber")
@ApiModelProperty(required = true, value = "Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -308,7 +308,7 @@ public TypeEnum getType() {


/**
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
*
* @param type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static CapabilitiesEnum fromValue(String value) {
private List<VerificationErrorRecursive> subErrors = null;

/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
*/
public enum TypeEnum {
DATAMISSING("dataMissing"),
Expand Down Expand Up @@ -417,10 +417,10 @@ public VerificationError type(TypeEnum type) {
}

/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
* @return type
**/
@ApiModelProperty(value = "The type of error.")
@ApiModelProperty(value = "The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** ")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -430,7 +430,7 @@ public TypeEnum getType() {


/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
*
* @param type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static CapabilitiesEnum fromValue(String value) {
private String message;

/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
*/
public enum TypeEnum {
DATAMISSING("dataMissing"),
Expand Down Expand Up @@ -337,10 +337,10 @@ public VerificationErrorRecursive type(TypeEnum type) {
}

/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
* @return type
**/
@ApiModelProperty(value = "The type of error.")
@ApiModelProperty(value = "The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** ")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -350,7 +350,7 @@ public TypeEnum getType() {


/**
* The type of error.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**
*
* @param type
*/
Expand Down
207 changes: 207 additions & 0 deletions src/main/java/com/adyen/model/management/AccelInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
/*
* 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.adyen.model.management.TransactionDescriptionInfo;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;


/**
* AccelInfo
*/
@JsonPropertyOrder({
AccelInfo.JSON_PROPERTY_PROCESSING_TYPE,
AccelInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION
})

public class AccelInfo {
/**
* The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have &#x60;recurringProcessingModel&#x60; **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with &#x60;recurringProcessingModel&#x60; **CardOnFile** or **UnscheduledCardOnFile**.
*/
public enum ProcessingTypeEnum {
BILLPAY("billpay"),

ECOM("ecom"),

POS("pos");

private String value;

ProcessingTypeEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static ProcessingTypeEnum fromValue(String value) {
for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType";
private ProcessingTypeEnum processingType;

public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription";
private TransactionDescriptionInfo transactionDescription;

public AccelInfo() {
}

public AccelInfo processingType(ProcessingTypeEnum processingType) {
this.processingType = processingType;
return this;
}

/**
* The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have &#x60;recurringProcessingModel&#x60; **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with &#x60;recurringProcessingModel&#x60; **CardOnFile** or **UnscheduledCardOnFile**.
* @return processingType
**/
@ApiModelProperty(required = true, value = "The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. ")
@JsonProperty(JSON_PROPERTY_PROCESSING_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public ProcessingTypeEnum getProcessingType() {
return processingType;
}


/**
* The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have &#x60;recurringProcessingModel&#x60; **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with &#x60;recurringProcessingModel&#x60; **CardOnFile** or **UnscheduledCardOnFile**.
*
* @param processingType
*/
@JsonProperty(JSON_PROPERTY_PROCESSING_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProcessingType(ProcessingTypeEnum processingType) {
this.processingType = processingType;
}


public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDescription) {
this.transactionDescription = transactionDescription;
return this;
}

/**
* Get transactionDescription
* @return transactionDescription
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public TransactionDescriptionInfo getTransactionDescription() {
return transactionDescription;
}


/**
* transactionDescription
*
* @param transactionDescription
*/
@JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) {
this.transactionDescription = transactionDescription;
}


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

@Override
public int hashCode() {
return Objects.hash(processingType, transactionDescription);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccelInfo {\n");
sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n");
sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).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 AccelInfo given an JSON string
*
* @param jsonString JSON string
* @return An instance of AccelInfo
* @throws JsonProcessingException if the JSON string is invalid with respect to AccelInfo
*/
public static AccelInfo fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AccelInfo.class);
}
/**
* Convert an instance of AccelInfo to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}

43 changes: 40 additions & 3 deletions src/main/java/com/adyen/model/management/Connectivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.management.EventUrl;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -31,7 +32,8 @@
* Connectivity
*/
@JsonPropertyOrder({
Connectivity.JSON_PROPERTY_SIMCARD_STATUS
Connectivity.JSON_PROPERTY_SIMCARD_STATUS,
Connectivity.JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L
})

public class Connectivity {
Expand Down Expand Up @@ -73,6 +75,9 @@ public static SimcardStatusEnum fromValue(String value) {
public static final String JSON_PROPERTY_SIMCARD_STATUS = "simcardStatus";
private SimcardStatusEnum simcardStatus;

public static final String JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L = "terminalIPAddressURL";
private EventUrl terminalIPAddressURL;

public Connectivity() {
}

Expand Down Expand Up @@ -106,6 +111,36 @@ public void setSimcardStatus(SimcardStatusEnum simcardStatus) {
}


public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) {
this.terminalIPAddressURL = terminalIPAddressURL;
return this;
}

/**
* Get terminalIPAddressURL
* @return terminalIPAddressURL
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public EventUrl getTerminalIPAddressURL() {
return terminalIPAddressURL;
}


/**
* terminalIPAddressURL
*
* @param terminalIPAddressURL
*/
@JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTerminalIPAddressURL(EventUrl terminalIPAddressURL) {
this.terminalIPAddressURL = terminalIPAddressURL;
}


/**
* Return true if this Connectivity object is equal to o.
*/
Expand All @@ -118,19 +153,21 @@ public boolean equals(Object o) {
return false;
}
Connectivity connectivity = (Connectivity) o;
return Objects.equals(this.simcardStatus, connectivity.simcardStatus);
return Objects.equals(this.simcardStatus, connectivity.simcardStatus) &&
Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL);
}

@Override
public int hashCode() {
return Objects.hash(simcardStatus);
return Objects.hash(simcardStatus, terminalIPAddressURL);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Connectivity {\n");
sb.append(" simcardStatus: ").append(toIndentedString(simcardStatus)).append("\n");
sb.append(" terminalIPAddressURL: ").append(toIndentedString(terminalIPAddressURL)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Loading

0 comments on commit fd381f0

Please sign in to comment.