diff --git a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java new file mode 100644 index 000000000..c1833fecc --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java @@ -0,0 +1,248 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** ApproveAssociationRequest */ +@JsonPropertyOrder({ + ApproveAssociationRequest.JSON_PROPERTY_ENTITY_ID, + ApproveAssociationRequest.JSON_PROPERTY_ENTITY_TYPE, + ApproveAssociationRequest.JSON_PROPERTY_SCA_DEVICE_IDS, + ApproveAssociationRequest.JSON_PROPERTY_STATUS +}) +public class ApproveAssociationRequest { + public static final String JSON_PROPERTY_ENTITY_ID = "entityId"; + private String entityId; + + public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; + private ScaEntityType entityType; + + public static final String JSON_PROPERTY_SCA_DEVICE_IDS = "scaDeviceIds"; + private List scaDeviceIds; + + public static final String JSON_PROPERTY_STATUS = "status"; + private AssociationStatus status; + + public ApproveAssociationRequest() {} + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining + */ + public ApproveAssociationRequest entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The unique identifier of the entity. + * + * @return entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityId() { + return entityId; + } + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + /** + * entityType + * + * @param entityType + * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining + */ + public ApproveAssociationRequest entityType(ScaEntityType entityType) { + this.entityType = entityType; + return this; + } + + /** + * Get entityType + * + * @return entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaEntityType getEntityType() { + return entityType; + } + + /** + * entityType + * + * @param entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityType(ScaEntityType entityType) { + this.entityType = entityType; + } + + /** + * List of device ids associated to the entity that will be approved. + * + * @param scaDeviceIds List of device ids associated to the entity that will be approved. + * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining + */ + public ApproveAssociationRequest scaDeviceIds(List scaDeviceIds) { + this.scaDeviceIds = scaDeviceIds; + return this; + } + + public ApproveAssociationRequest addScaDeviceIdsItem(String scaDeviceIdsItem) { + if (this.scaDeviceIds == null) { + this.scaDeviceIds = new ArrayList<>(); + } + this.scaDeviceIds.add(scaDeviceIdsItem); + return this; + } + + /** + * List of device ids associated to the entity that will be approved. + * + * @return scaDeviceIds List of device ids associated to the entity that will be approved. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getScaDeviceIds() { + return scaDeviceIds; + } + + /** + * List of device ids associated to the entity that will be approved. + * + * @param scaDeviceIds List of device ids associated to the entity that will be approved. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceIds(List scaDeviceIds) { + this.scaDeviceIds = scaDeviceIds; + } + + /** + * status + * + * @param status + * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining + */ + public ApproveAssociationRequest status(AssociationStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * + * @return status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AssociationStatus getStatus() { + return status; + } + + /** + * status + * + * @param status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(AssociationStatus status) { + this.status = status; + } + + /** Return true if this ApproveAssociationRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApproveAssociationRequest approveAssociationRequest = (ApproveAssociationRequest) o; + return Objects.equals(this.entityId, approveAssociationRequest.entityId) + && Objects.equals(this.entityType, approveAssociationRequest.entityType) + && Objects.equals(this.scaDeviceIds, approveAssociationRequest.scaDeviceIds) + && Objects.equals(this.status, approveAssociationRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(entityId, entityType, scaDeviceIds, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApproveAssociationRequest {\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" scaDeviceIds: ").append(toIndentedString(scaDeviceIds)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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 ApproveAssociationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApproveAssociationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApproveAssociationRequest + */ + public static ApproveAssociationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ApproveAssociationRequest.class); + } + + /** + * Convert an instance of ApproveAssociationRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java new file mode 100644 index 000000000..b4b635d03 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java @@ -0,0 +1,129 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** ApproveAssociationResponse */ +@JsonPropertyOrder({ApproveAssociationResponse.JSON_PROPERTY_SCA_ASSOCIATIONS}) +public class ApproveAssociationResponse { + public static final String JSON_PROPERTY_SCA_ASSOCIATIONS = "scaAssociations"; + private List scaAssociations; + + public ApproveAssociationResponse() {} + + /** + * The list of associations. + * + * @param scaAssociations The list of associations. + * @return the current {@code ApproveAssociationResponse} instance, allowing for method chaining + */ + public ApproveAssociationResponse scaAssociations(List scaAssociations) { + this.scaAssociations = scaAssociations; + return this; + } + + public ApproveAssociationResponse addScaAssociationsItem(Association scaAssociationsItem) { + if (this.scaAssociations == null) { + this.scaAssociations = new ArrayList<>(); + } + this.scaAssociations.add(scaAssociationsItem); + return this; + } + + /** + * The list of associations. + * + * @return scaAssociations The list of associations. + */ + @JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getScaAssociations() { + return scaAssociations; + } + + /** + * The list of associations. + * + * @param scaAssociations The list of associations. + */ + @JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaAssociations(List scaAssociations) { + this.scaAssociations = scaAssociations; + } + + /** Return true if this ApproveAssociationResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApproveAssociationResponse approveAssociationResponse = (ApproveAssociationResponse) o; + return Objects.equals(this.scaAssociations, approveAssociationResponse.scaAssociations); + } + + @Override + public int hashCode() { + return Objects.hash(scaAssociations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApproveAssociationResponse {\n"); + sb.append(" scaAssociations: ").append(toIndentedString(scaAssociations)).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 ApproveAssociationResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApproveAssociationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApproveAssociationResponse + */ + public static ApproveAssociationResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ApproveAssociationResponse.class); + } + + /** + * Convert an instance of ApproveAssociationResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/Association.java b/src/main/java/com/adyen/model/balanceplatform/Association.java new file mode 100644 index 000000000..8790afdde --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/Association.java @@ -0,0 +1,236 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** Association */ +@JsonPropertyOrder({ + Association.JSON_PROPERTY_ENTITY_ID, + Association.JSON_PROPERTY_ENTITY_TYPE, + Association.JSON_PROPERTY_SCA_DEVICE_ID, + Association.JSON_PROPERTY_STATUS +}) +public class Association { + public static final String JSON_PROPERTY_ENTITY_ID = "entityId"; + private String entityId; + + public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; + private ScaEntityType entityType; + + public static final String JSON_PROPERTY_SCA_DEVICE_ID = "scaDeviceId"; + private String scaDeviceId; + + public static final String JSON_PROPERTY_STATUS = "status"; + private AssociationStatus status; + + public Association() {} + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + * @return the current {@code Association} instance, allowing for method chaining + */ + public Association entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The unique identifier of the entity. + * + * @return entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityId() { + return entityId; + } + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + /** + * entityType + * + * @param entityType + * @return the current {@code Association} instance, allowing for method chaining + */ + public Association entityType(ScaEntityType entityType) { + this.entityType = entityType; + return this; + } + + /** + * Get entityType + * + * @return entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaEntityType getEntityType() { + return entityType; + } + + /** + * entityType + * + * @param entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityType(ScaEntityType entityType) { + this.entityType = entityType; + } + + /** + * The unique identifier for the SCA device. + * + * @param scaDeviceId The unique identifier for the SCA device. + * @return the current {@code Association} instance, allowing for method chaining + */ + public Association scaDeviceId(String scaDeviceId) { + this.scaDeviceId = scaDeviceId; + return this; + } + + /** + * The unique identifier for the SCA device. + * + * @return scaDeviceId The unique identifier for the SCA device. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScaDeviceId() { + return scaDeviceId; + } + + /** + * The unique identifier for the SCA device. + * + * @param scaDeviceId The unique identifier for the SCA device. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceId(String scaDeviceId) { + this.scaDeviceId = scaDeviceId; + } + + /** + * status + * + * @param status + * @return the current {@code Association} instance, allowing for method chaining + */ + public Association status(AssociationStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * + * @return status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AssociationStatus getStatus() { + return status; + } + + /** + * status + * + * @param status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(AssociationStatus status) { + this.status = status; + } + + /** Return true if this Association object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Association association = (Association) o; + return Objects.equals(this.entityId, association.entityId) + && Objects.equals(this.entityType, association.entityType) + && Objects.equals(this.scaDeviceId, association.scaDeviceId) + && Objects.equals(this.status, association.status); + } + + @Override + public int hashCode() { + return Objects.hash(entityId, entityType, scaDeviceId, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Association {\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" scaDeviceId: ").append(toIndentedString(scaDeviceId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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 Association given an JSON string + * + * @param jsonString JSON string + * @return An instance of Association + * @throws JsonProcessingException if the JSON string is invalid with respect to Association + */ + public static Association fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, Association.class); + } + + /** + * Convert an instance of Association to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java b/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java new file mode 100644 index 000000000..d9607c7ec --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java @@ -0,0 +1,356 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; + +/** AssociationListing */ +@JsonPropertyOrder({ + AssociationListing.JSON_PROPERTY_CREATED_AT, + AssociationListing.JSON_PROPERTY_ENTITY_ID, + AssociationListing.JSON_PROPERTY_ENTITY_TYPE, + AssociationListing.JSON_PROPERTY_SCA_DEVICE_ID, + AssociationListing.JSON_PROPERTY_SCA_DEVICE_NAME, + AssociationListing.JSON_PROPERTY_SCA_DEVICE_TYPE, + AssociationListing.JSON_PROPERTY_STATUS +}) +public class AssociationListing { + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_ENTITY_ID = "entityId"; + private String entityId; + + public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; + private ScaEntityType entityType; + + public static final String JSON_PROPERTY_SCA_DEVICE_ID = "scaDeviceId"; + private String scaDeviceId; + + public static final String JSON_PROPERTY_SCA_DEVICE_NAME = "scaDeviceName"; + private String scaDeviceName; + + public static final String JSON_PROPERTY_SCA_DEVICE_TYPE = "scaDeviceType"; + private ScaDeviceType scaDeviceType; + + public static final String JSON_PROPERTY_STATUS = "status"; + private AssociationStatus status; + + public AssociationListing() {} + + /** + * The date and time when the association was created. + * + * @param createdAt The date and time when the association was created. + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * The date and time when the association was created. + * + * @return createdAt The date and time when the association was created. + */ + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * The date and time when the association was created. + * + * @param createdAt The date and time when the association was created. + */ + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The unique identifier of the entity. + * + * @return entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityId() { + return entityId; + } + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + /** + * entityType + * + * @param entityType + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing entityType(ScaEntityType entityType) { + this.entityType = entityType; + return this; + } + + /** + * Get entityType + * + * @return entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaEntityType getEntityType() { + return entityType; + } + + /** + * entityType + * + * @param entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityType(ScaEntityType entityType) { + this.entityType = entityType; + } + + /** + * The unique identifier of the SCA device. + * + * @param scaDeviceId The unique identifier of the SCA device. + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing scaDeviceId(String scaDeviceId) { + this.scaDeviceId = scaDeviceId; + return this; + } + + /** + * The unique identifier of the SCA device. + * + * @return scaDeviceId The unique identifier of the SCA device. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScaDeviceId() { + return scaDeviceId; + } + + /** + * The unique identifier of the SCA device. + * + * @param scaDeviceId The unique identifier of the SCA device. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceId(String scaDeviceId) { + this.scaDeviceId = scaDeviceId; + } + + /** + * The human-readable name for the SCA device that was registered. + * + * @param scaDeviceName The human-readable name for the SCA device that was registered. + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing scaDeviceName(String scaDeviceName) { + this.scaDeviceName = scaDeviceName; + return this; + } + + /** + * The human-readable name for the SCA device that was registered. + * + * @return scaDeviceName The human-readable name for the SCA device that was registered. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScaDeviceName() { + return scaDeviceName; + } + + /** + * The human-readable name for the SCA device that was registered. + * + * @param scaDeviceName The human-readable name for the SCA device that was registered. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceName(String scaDeviceName) { + this.scaDeviceName = scaDeviceName; + } + + /** + * scaDeviceType + * + * @param scaDeviceType + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing scaDeviceType(ScaDeviceType scaDeviceType) { + this.scaDeviceType = scaDeviceType; + return this; + } + + /** + * Get scaDeviceType + * + * @return scaDeviceType + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaDeviceType getScaDeviceType() { + return scaDeviceType; + } + + /** + * scaDeviceType + * + * @param scaDeviceType + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceType(ScaDeviceType scaDeviceType) { + this.scaDeviceType = scaDeviceType; + } + + /** + * status + * + * @param status + * @return the current {@code AssociationListing} instance, allowing for method chaining + */ + public AssociationListing status(AssociationStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * + * @return status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AssociationStatus getStatus() { + return status; + } + + /** + * status + * + * @param status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(AssociationStatus status) { + this.status = status; + } + + /** Return true if this AssociationListing object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssociationListing associationListing = (AssociationListing) o; + return Objects.equals(this.createdAt, associationListing.createdAt) + && Objects.equals(this.entityId, associationListing.entityId) + && Objects.equals(this.entityType, associationListing.entityType) + && Objects.equals(this.scaDeviceId, associationListing.scaDeviceId) + && Objects.equals(this.scaDeviceName, associationListing.scaDeviceName) + && Objects.equals(this.scaDeviceType, associationListing.scaDeviceType) + && Objects.equals(this.status, associationListing.status); + } + + @Override + public int hashCode() { + return Objects.hash( + createdAt, entityId, entityType, scaDeviceId, scaDeviceName, scaDeviceType, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssociationListing {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" scaDeviceId: ").append(toIndentedString(scaDeviceId)).append("\n"); + sb.append(" scaDeviceName: ").append(toIndentedString(scaDeviceName)).append("\n"); + sb.append(" scaDeviceType: ").append(toIndentedString(scaDeviceType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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 AssociationListing given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssociationListing + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationListing + */ + public static AssociationListing fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, AssociationListing.class); + } + + /** + * Convert an instance of AssociationListing to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationStatus.java b/src/main/java/com/adyen/model/balanceplatform/AssociationStatus.java new file mode 100644 index 000000000..e4a80744e --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationStatus.java @@ -0,0 +1,49 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; + +/** Gets or Sets AssociationStatus */ +public enum AssociationStatus { + PENDINGAPPROVAL("pendingApproval"), + + ACTIVE("active"); + + private String value; + + AssociationStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AssociationStatus fromValue(String value) { + for (AssociationStatus b : AssociationStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java new file mode 100644 index 000000000..cb12b21c4 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java @@ -0,0 +1,175 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** BeginScaDeviceRegistrationRequest */ +@JsonPropertyOrder({ + BeginScaDeviceRegistrationRequest.JSON_PROPERTY_NAME, + BeginScaDeviceRegistrationRequest.JSON_PROPERTY_SDK_OUTPUT +}) +public class BeginScaDeviceRegistrationRequest { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; + private String sdkOutput; + + public BeginScaDeviceRegistrationRequest() {} + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + * @return the current {@code BeginScaDeviceRegistrationRequest} instance, allowing for method + * chaining + */ + public BeginScaDeviceRegistrationRequest name(String name) { + this.name = name; + return this; + } + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @return name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + * @return the current {@code BeginScaDeviceRegistrationRequest} instance, allowing for method + * chaining + */ + public BeginScaDeviceRegistrationRequest sdkOutput(String sdkOutput) { + this.sdkOutput = sdkOutput; + return this; + } + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + */ + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkOutput() { + return sdkOutput; + } + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + */ + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkOutput(String sdkOutput) { + this.sdkOutput = sdkOutput; + } + + /** Return true if this BeginScaDeviceRegistrationRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BeginScaDeviceRegistrationRequest beginScaDeviceRegistrationRequest = + (BeginScaDeviceRegistrationRequest) o; + return Objects.equals(this.name, beginScaDeviceRegistrationRequest.name) + && Objects.equals(this.sdkOutput, beginScaDeviceRegistrationRequest.sdkOutput); + } + + @Override + public int hashCode() { + return Objects.hash(name, sdkOutput); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BeginScaDeviceRegistrationRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" sdkOutput: ").append(toIndentedString(sdkOutput)).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 BeginScaDeviceRegistrationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of BeginScaDeviceRegistrationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BeginScaDeviceRegistrationRequest + */ + public static BeginScaDeviceRegistrationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, BeginScaDeviceRegistrationRequest.class); + } + + /** + * Convert an instance of BeginScaDeviceRegistrationRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java new file mode 100644 index 000000000..21eb14e82 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java @@ -0,0 +1,169 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** BeginScaDeviceRegistrationResponse */ +@JsonPropertyOrder({ + BeginScaDeviceRegistrationResponse.JSON_PROPERTY_SCA_DEVICE, + BeginScaDeviceRegistrationResponse.JSON_PROPERTY_SDK_INPUT +}) +public class BeginScaDeviceRegistrationResponse { + public static final String JSON_PROPERTY_SCA_DEVICE = "scaDevice"; + private ScaDevice scaDevice; + + public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput"; + private String sdkInput; + + public BeginScaDeviceRegistrationResponse() {} + + /** + * scaDevice + * + * @param scaDevice + * @return the current {@code BeginScaDeviceRegistrationResponse} instance, allowing for method + * chaining + */ + public BeginScaDeviceRegistrationResponse scaDevice(ScaDevice scaDevice) { + this.scaDevice = scaDevice; + return this; + } + + /** + * Get scaDevice + * + * @return scaDevice + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaDevice getScaDevice() { + return scaDevice; + } + + /** + * scaDevice + * + * @param scaDevice + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDevice(ScaDevice scaDevice) { + this.scaDevice = scaDevice; + } + + /** + * A string that you must pass to the authentication SDK to continue with the registration + * process. + * + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. + * @return the current {@code BeginScaDeviceRegistrationResponse} instance, allowing for method + * chaining + */ + public BeginScaDeviceRegistrationResponse sdkInput(String sdkInput) { + this.sdkInput = sdkInput; + return this; + } + + /** + * A string that you must pass to the authentication SDK to continue with the registration + * process. + * + * @return sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. + */ + @JsonProperty(JSON_PROPERTY_SDK_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkInput() { + return sdkInput; + } + + /** + * A string that you must pass to the authentication SDK to continue with the registration + * process. + * + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. + */ + @JsonProperty(JSON_PROPERTY_SDK_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkInput(String sdkInput) { + this.sdkInput = sdkInput; + } + + /** Return true if this BeginScaDeviceRegistrationResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BeginScaDeviceRegistrationResponse beginScaDeviceRegistrationResponse = + (BeginScaDeviceRegistrationResponse) o; + return Objects.equals(this.scaDevice, beginScaDeviceRegistrationResponse.scaDevice) + && Objects.equals(this.sdkInput, beginScaDeviceRegistrationResponse.sdkInput); + } + + @Override + public int hashCode() { + return Objects.hash(scaDevice, sdkInput); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BeginScaDeviceRegistrationResponse {\n"); + sb.append(" scaDevice: ").append(toIndentedString(scaDevice)).append("\n"); + sb.append(" sdkInput: ").append(toIndentedString(sdkInput)).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 BeginScaDeviceRegistrationResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BeginScaDeviceRegistrationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BeginScaDeviceRegistrationResponse + */ + public static BeginScaDeviceRegistrationResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, BeginScaDeviceRegistrationResponse.class); + } + + /** + * Convert an instance of BeginScaDeviceRegistrationResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java new file mode 100644 index 000000000..e6a010450 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java @@ -0,0 +1,127 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** FinishScaDeviceRegistrationRequest */ +@JsonPropertyOrder({FinishScaDeviceRegistrationRequest.JSON_PROPERTY_SDK_OUTPUT}) +public class FinishScaDeviceRegistrationRequest { + public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; + private String sdkOutput; + + public FinishScaDeviceRegistrationRequest() {} + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + * @return the current {@code FinishScaDeviceRegistrationRequest} instance, allowing for method + * chaining + */ + public FinishScaDeviceRegistrationRequest sdkOutput(String sdkOutput) { + this.sdkOutput = sdkOutput; + return this; + } + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + */ + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkOutput() { + return sdkOutput; + } + + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using Adyen's authentication SDK. + * + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using Adyen's authentication SDK. + */ + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkOutput(String sdkOutput) { + this.sdkOutput = sdkOutput; + } + + /** Return true if this FinishScaDeviceRegistrationRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FinishScaDeviceRegistrationRequest finishScaDeviceRegistrationRequest = + (FinishScaDeviceRegistrationRequest) o; + return Objects.equals(this.sdkOutput, finishScaDeviceRegistrationRequest.sdkOutput); + } + + @Override + public int hashCode() { + return Objects.hash(sdkOutput); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FinishScaDeviceRegistrationRequest {\n"); + sb.append(" sdkOutput: ").append(toIndentedString(sdkOutput)).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 FinishScaDeviceRegistrationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of FinishScaDeviceRegistrationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * FinishScaDeviceRegistrationRequest + */ + public static FinishScaDeviceRegistrationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, FinishScaDeviceRegistrationRequest.class); + } + + /** + * Convert an instance of FinishScaDeviceRegistrationRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java new file mode 100644 index 000000000..201bd5cd0 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java @@ -0,0 +1,121 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** FinishScaDeviceRegistrationResponse */ +@JsonPropertyOrder({FinishScaDeviceRegistrationResponse.JSON_PROPERTY_SCA_DEVICE}) +public class FinishScaDeviceRegistrationResponse { + public static final String JSON_PROPERTY_SCA_DEVICE = "scaDevice"; + private ScaDevice scaDevice; + + public FinishScaDeviceRegistrationResponse() {} + + /** + * scaDevice + * + * @param scaDevice + * @return the current {@code FinishScaDeviceRegistrationResponse} instance, allowing for method + * chaining + */ + public FinishScaDeviceRegistrationResponse scaDevice(ScaDevice scaDevice) { + this.scaDevice = scaDevice; + return this; + } + + /** + * Get scaDevice + * + * @return scaDevice + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaDevice getScaDevice() { + return scaDevice; + } + + /** + * scaDevice + * + * @param scaDevice + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDevice(ScaDevice scaDevice) { + this.scaDevice = scaDevice; + } + + /** Return true if this FinishScaDeviceRegistrationResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FinishScaDeviceRegistrationResponse finishScaDeviceRegistrationResponse = + (FinishScaDeviceRegistrationResponse) o; + return Objects.equals(this.scaDevice, finishScaDeviceRegistrationResponse.scaDevice); + } + + @Override + public int hashCode() { + return Objects.hash(scaDevice); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FinishScaDeviceRegistrationResponse {\n"); + sb.append(" scaDevice: ").append(toIndentedString(scaDevice)).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 FinishScaDeviceRegistrationResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of FinishScaDeviceRegistrationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * FinishScaDeviceRegistrationResponse + */ + public static FinishScaDeviceRegistrationResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, FinishScaDeviceRegistrationResponse.class); + } + + /** + * Convert an instance of FinishScaDeviceRegistrationResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java new file mode 100644 index 000000000..8b2f837fa --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java @@ -0,0 +1,248 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** ListAssociationsResponse */ +@JsonPropertyOrder({ + ListAssociationsResponse.JSON_PROPERTY_LINKS, + ListAssociationsResponse.JSON_PROPERTY_DATA, + ListAssociationsResponse.JSON_PROPERTY_ITEMS_TOTAL, + ListAssociationsResponse.JSON_PROPERTY_PAGES_TOTAL +}) +public class ListAssociationsResponse { + public static final String JSON_PROPERTY_LINKS = "_links"; + private Link links; + + public static final String JSON_PROPERTY_DATA = "data"; + private List data; + + public static final String JSON_PROPERTY_ITEMS_TOTAL = "itemsTotal"; + private Integer itemsTotal; + + public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; + private Integer pagesTotal; + + public ListAssociationsResponse() {} + + /** + * links + * + * @param links + * @return the current {@code ListAssociationsResponse} instance, allowing for method chaining + */ + public ListAssociationsResponse links(Link links) { + this.links = links; + return this; + } + + /** + * Get links + * + * @return links + */ + @JsonProperty(JSON_PROPERTY_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Link getLinks() { + return links; + } + + /** + * links + * + * @param links + */ + @JsonProperty(JSON_PROPERTY_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinks(Link links) { + this.links = links; + } + + /** + * Contains a list of associations and their corresponding details. + * + * @param data Contains a list of associations and their corresponding details. + * @return the current {@code ListAssociationsResponse} instance, allowing for method chaining + */ + public ListAssociationsResponse data(List data) { + this.data = data; + return this; + } + + public ListAssociationsResponse addDataItem(AssociationListing dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Contains a list of associations and their corresponding details. + * + * @return data Contains a list of associations and their corresponding details. + */ + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getData() { + return data; + } + + /** + * Contains a list of associations and their corresponding details. + * + * @param data Contains a list of associations and their corresponding details. + */ + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + /** + * The total number of items available. + * + * @param itemsTotal The total number of items available. + * @return the current {@code ListAssociationsResponse} instance, allowing for method chaining + */ + public ListAssociationsResponse itemsTotal(Integer itemsTotal) { + this.itemsTotal = itemsTotal; + return this; + } + + /** + * The total number of items available. + * + * @return itemsTotal The total number of items available. + */ + @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getItemsTotal() { + return itemsTotal; + } + + /** + * The total number of items available. + * + * @param itemsTotal The total number of items available. + */ + @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setItemsTotal(Integer itemsTotal) { + this.itemsTotal = itemsTotal; + } + + /** + * The total number of pages available. + * + * @param pagesTotal The total number of pages available. + * @return the current {@code ListAssociationsResponse} instance, allowing for method chaining + */ + public ListAssociationsResponse pagesTotal(Integer pagesTotal) { + this.pagesTotal = pagesTotal; + return this; + } + + /** + * The total number of pages available. + * + * @return pagesTotal The total number of pages available. + */ + @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPagesTotal() { + return pagesTotal; + } + + /** + * The total number of pages available. + * + * @param pagesTotal The total number of pages available. + */ + @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPagesTotal(Integer pagesTotal) { + this.pagesTotal = pagesTotal; + } + + /** Return true if this ListAssociationsResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAssociationsResponse listAssociationsResponse = (ListAssociationsResponse) o; + return Objects.equals(this.links, listAssociationsResponse.links) + && Objects.equals(this.data, listAssociationsResponse.data) + && Objects.equals(this.itemsTotal, listAssociationsResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listAssociationsResponse.pagesTotal); + } + + @Override + public int hashCode() { + return Objects.hash(links, data, itemsTotal, pagesTotal); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAssociationsResponse {\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" itemsTotal: ").append(toIndentedString(itemsTotal)).append("\n"); + sb.append(" pagesTotal: ").append(toIndentedString(pagesTotal)).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 ListAssociationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ListAssociationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListAssociationsResponse + */ + public static ListAssociationsResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ListAssociationsResponse.class); + } + + /** + * Convert an instance of ListAssociationsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java new file mode 100644 index 000000000..db98f637e --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java @@ -0,0 +1,209 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** RemoveAssociationRequest */ +@JsonPropertyOrder({ + RemoveAssociationRequest.JSON_PROPERTY_ENTITY_ID, + RemoveAssociationRequest.JSON_PROPERTY_ENTITY_TYPE, + RemoveAssociationRequest.JSON_PROPERTY_SCA_DEVICE_IDS +}) +public class RemoveAssociationRequest { + public static final String JSON_PROPERTY_ENTITY_ID = "entityId"; + private String entityId; + + public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; + private ScaEntityType entityType; + + public static final String JSON_PROPERTY_SCA_DEVICE_IDS = "scaDeviceIds"; + private List scaDeviceIds; + + public RemoveAssociationRequest() {} + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + * @return the current {@code RemoveAssociationRequest} instance, allowing for method chaining + */ + public RemoveAssociationRequest entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The unique identifier of the entity. + * + * @return entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityId() { + return entityId; + } + + /** + * The unique identifier of the entity. + * + * @param entityId The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ENTITY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + /** + * entityType + * + * @param entityType + * @return the current {@code RemoveAssociationRequest} instance, allowing for method chaining + */ + public RemoveAssociationRequest entityType(ScaEntityType entityType) { + this.entityType = entityType; + return this; + } + + /** + * Get entityType + * + * @return entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaEntityType getEntityType() { + return entityType; + } + + /** + * entityType + * + * @param entityType + */ + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityType(ScaEntityType entityType) { + this.entityType = entityType; + } + + /** + * A list of device ids associated with the entity that should be removed. + * + * @param scaDeviceIds A list of device ids associated with the entity that should be removed. + * @return the current {@code RemoveAssociationRequest} instance, allowing for method chaining + */ + public RemoveAssociationRequest scaDeviceIds(List scaDeviceIds) { + this.scaDeviceIds = scaDeviceIds; + return this; + } + + public RemoveAssociationRequest addScaDeviceIdsItem(String scaDeviceIdsItem) { + if (this.scaDeviceIds == null) { + this.scaDeviceIds = new ArrayList<>(); + } + this.scaDeviceIds.add(scaDeviceIdsItem); + return this; + } + + /** + * A list of device ids associated with the entity that should be removed. + * + * @return scaDeviceIds A list of device ids associated with the entity that should be removed. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getScaDeviceIds() { + return scaDeviceIds; + } + + /** + * A list of device ids associated with the entity that should be removed. + * + * @param scaDeviceIds A list of device ids associated with the entity that should be removed. + */ + @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaDeviceIds(List scaDeviceIds) { + this.scaDeviceIds = scaDeviceIds; + } + + /** Return true if this RemoveAssociationRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveAssociationRequest removeAssociationRequest = (RemoveAssociationRequest) o; + return Objects.equals(this.entityId, removeAssociationRequest.entityId) + && Objects.equals(this.entityType, removeAssociationRequest.entityType) + && Objects.equals(this.scaDeviceIds, removeAssociationRequest.scaDeviceIds); + } + + @Override + public int hashCode() { + return Objects.hash(entityId, entityType, scaDeviceIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemoveAssociationRequest {\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" scaDeviceIds: ").append(toIndentedString(scaDeviceIds)).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 RemoveAssociationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of RemoveAssociationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RemoveAssociationRequest + */ + public static RemoveAssociationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, RemoveAssociationRequest.class); + } + + /** + * Convert an instance of RemoveAssociationRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java b/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java new file mode 100644 index 000000000..774e5178d --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java @@ -0,0 +1,203 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** A resource that contains information about a device, including its unique ID, name, and type. */ +@JsonPropertyOrder({ + ScaDevice.JSON_PROPERTY_ID, + ScaDevice.JSON_PROPERTY_NAME, + ScaDevice.JSON_PROPERTY_TYPE +}) +public class ScaDevice { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TYPE = "type"; + private ScaDeviceType type; + + public ScaDevice() {} + + /** + * The unique identifier of the SCA device you are registering. + * + * @param id The unique identifier of the SCA device you are registering. + * @return the current {@code ScaDevice} instance, allowing for method chaining + */ + public ScaDevice id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of the SCA device you are registering. + * + * @return id The unique identifier of the SCA device you are registering. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + /** + * The unique identifier of the SCA device you are registering. + * + * @param id The unique identifier of the SCA device you are registering. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + * @return the current {@code ScaDevice} instance, allowing for method chaining + */ + public ScaDevice name(String name) { + this.name = name; + return this; + } + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @return name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + /** + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. + * + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + /** + * type + * + * @param type + * @return the current {@code ScaDevice} instance, allowing for method chaining + */ + public ScaDevice type(ScaDeviceType type) { + this.type = type; + return this; + } + + /** + * Get type + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaDeviceType getType() { + return type; + } + + /** + * type + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(ScaDeviceType type) { + this.type = type; + } + + /** Return true if this ScaDevice object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScaDevice scaDevice = (ScaDevice) o; + return Objects.equals(this.id, scaDevice.id) + && Objects.equals(this.name, scaDevice.name) + && Objects.equals(this.type, scaDevice.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScaDevice {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 ScaDevice given an JSON string + * + * @param jsonString JSON string + * @return An instance of ScaDevice + * @throws JsonProcessingException if the JSON string is invalid with respect to ScaDevice + */ + public static ScaDevice fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ScaDevice.class); + } + + /** + * Convert an instance of ScaDevice to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaDeviceType.java b/src/main/java/com/adyen/model/balanceplatform/ScaDeviceType.java new file mode 100644 index 000000000..8f1613422 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ScaDeviceType.java @@ -0,0 +1,51 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; + +/** Gets or Sets ScaDeviceType */ +public enum ScaDeviceType { + BROWSER("browser"), + + IOS("ios"), + + ANDROID("android"); + + private String value; + + ScaDeviceType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScaDeviceType fromValue(String value) { + for (ScaDeviceType b : ScaDeviceType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java b/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java new file mode 100644 index 000000000..67442f106 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java @@ -0,0 +1,154 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** ScaEntity */ +@JsonPropertyOrder({ScaEntity.JSON_PROPERTY_ID, ScaEntity.JSON_PROPERTY_TYPE}) +public class ScaEntity { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private ScaEntityType type; + + public ScaEntity() {} + + /** + * The unique identifier of the entity. + * + * @param id The unique identifier of the entity. + * @return the current {@code ScaEntity} instance, allowing for method chaining + */ + public ScaEntity id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of the entity. + * + * @return id The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + /** + * The unique identifier of the entity. + * + * @param id The unique identifier of the entity. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + /** + * type + * + * @param type + * @return the current {@code ScaEntity} instance, allowing for method chaining + */ + public ScaEntity type(ScaEntityType type) { + this.type = type; + return this; + } + + /** + * Get type + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScaEntityType getType() { + return type; + } + + /** + * type + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(ScaEntityType type) { + this.type = type; + } + + /** Return true if this ScaEntity object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScaEntity scaEntity = (ScaEntity) o; + return Objects.equals(this.id, scaEntity.id) && Objects.equals(this.type, scaEntity.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScaEntity {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 ScaEntity given an JSON string + * + * @param jsonString JSON string + * @return An instance of ScaEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to ScaEntity + */ + public static ScaEntity fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ScaEntity.class); + } + + /** + * Convert an instance of ScaEntity to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaEntityType.java b/src/main/java/com/adyen/model/balanceplatform/ScaEntityType.java new file mode 100644 index 000000000..3c23a8859 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/ScaEntityType.java @@ -0,0 +1,49 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; + +/** Gets or Sets ScaEntityType */ +public enum ScaEntityType { + ACCOUNTHOLDER("accountHolder"), + + PAYMENTINSTRUMENT("paymentInstrument"); + + private String value; + + ScaEntityType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScaEntityType fromValue(String value) { + for (ScaEntityType b : ScaEntityType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java new file mode 100644 index 000000000..a52b29041 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java @@ -0,0 +1,129 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** SubmitScaAssociationRequest */ +@JsonPropertyOrder({SubmitScaAssociationRequest.JSON_PROPERTY_ENTITIES}) +public class SubmitScaAssociationRequest { + public static final String JSON_PROPERTY_ENTITIES = "entities"; + private List entities; + + public SubmitScaAssociationRequest() {} + + /** + * The list of entities to be associated. + * + * @param entities The list of entities to be associated. + * @return the current {@code SubmitScaAssociationRequest} instance, allowing for method chaining + */ + public SubmitScaAssociationRequest entities(List entities) { + this.entities = entities; + return this; + } + + public SubmitScaAssociationRequest addEntitiesItem(ScaEntity entitiesItem) { + if (this.entities == null) { + this.entities = new ArrayList<>(); + } + this.entities.add(entitiesItem); + return this; + } + + /** + * The list of entities to be associated. + * + * @return entities The list of entities to be associated. + */ + @JsonProperty(JSON_PROPERTY_ENTITIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getEntities() { + return entities; + } + + /** + * The list of entities to be associated. + * + * @param entities The list of entities to be associated. + */ + @JsonProperty(JSON_PROPERTY_ENTITIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntities(List entities) { + this.entities = entities; + } + + /** Return true if this SubmitScaAssociationRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SubmitScaAssociationRequest submitScaAssociationRequest = (SubmitScaAssociationRequest) o; + return Objects.equals(this.entities, submitScaAssociationRequest.entities); + } + + @Override + public int hashCode() { + return Objects.hash(entities); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SubmitScaAssociationRequest {\n"); + sb.append(" entities: ").append(toIndentedString(entities)).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 SubmitScaAssociationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubmitScaAssociationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SubmitScaAssociationRequest + */ + public static SubmitScaAssociationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, SubmitScaAssociationRequest.class); + } + + /** + * Convert an instance of SubmitScaAssociationRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java new file mode 100644 index 000000000..3de49bf54 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java @@ -0,0 +1,129 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** SubmitScaAssociationResponse */ +@JsonPropertyOrder({SubmitScaAssociationResponse.JSON_PROPERTY_SCA_ASSOCIATIONS}) +public class SubmitScaAssociationResponse { + public static final String JSON_PROPERTY_SCA_ASSOCIATIONS = "scaAssociations"; + private List scaAssociations; + + public SubmitScaAssociationResponse() {} + + /** + * List of associations created to the entities and their statuses. + * + * @param scaAssociations List of associations created to the entities and their statuses. + * @return the current {@code SubmitScaAssociationResponse} instance, allowing for method chaining + */ + public SubmitScaAssociationResponse scaAssociations(List scaAssociations) { + this.scaAssociations = scaAssociations; + return this; + } + + public SubmitScaAssociationResponse addScaAssociationsItem(Association scaAssociationsItem) { + if (this.scaAssociations == null) { + this.scaAssociations = new ArrayList<>(); + } + this.scaAssociations.add(scaAssociationsItem); + return this; + } + + /** + * List of associations created to the entities and their statuses. + * + * @return scaAssociations List of associations created to the entities and their statuses. + */ + @JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getScaAssociations() { + return scaAssociations; + } + + /** + * List of associations created to the entities and their statuses. + * + * @param scaAssociations List of associations created to the entities and their statuses. + */ + @JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScaAssociations(List scaAssociations) { + this.scaAssociations = scaAssociations; + } + + /** Return true if this SubmitScaAssociationResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SubmitScaAssociationResponse submitScaAssociationResponse = (SubmitScaAssociationResponse) o; + return Objects.equals(this.scaAssociations, submitScaAssociationResponse.scaAssociations); + } + + @Override + public int hashCode() { + return Objects.hash(scaAssociations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SubmitScaAssociationResponse {\n"); + sb.append(" scaAssociations: ").append(toIndentedString(scaAssociations)).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 SubmitScaAssociationResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubmitScaAssociationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SubmitScaAssociationResponse + */ + public static SubmitScaAssociationResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, SubmitScaAssociationResponse.class); + } + + /** + * Convert an instance of SubmitScaAssociationResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java index c9473bd3a..55cbd7732 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java @@ -59,11 +59,14 @@ public class TransactionRule { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ public enum OutcomeTypeEnum { ENFORCESCA(String.valueOf("enforceSCA")), @@ -524,18 +527,25 @@ public void setInterval(TransactionRuleInterval interval) { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction is + * assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { @@ -545,18 +555,25 @@ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) * that will be applied when a transaction meets the conditions of the rule. Possible values: - * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction + * is assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,18 +583,25 @@ public OutcomeTypeEnum getOutcomeType() { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction is + * assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java index 5a380710e..f80632c35 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java @@ -55,11 +55,14 @@ public class TransactionRuleInfo { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ public enum OutcomeTypeEnum { ENFORCESCA(String.valueOf("enforceSCA")), @@ -487,18 +490,25 @@ public void setInterval(TransactionRuleInterval interval) { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction is + * assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { @@ -508,18 +518,25 @@ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) * that will be applied when a transaction meets the conditions of the rule. Possible values: - * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction + * is assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,18 +546,25 @@ public OutcomeTypeEnum getOutcomeType() { /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock** + * (default): the transaction is declined. * **scoreBased**: the transaction is assigned the + * `score` you specified. Adyen calculates the total score and if it exceeds 100, the + * transaction is declined. This value is not allowed when `requestType` is + * **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D + * Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails + * or times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. * * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * **hardBlock** (default): the transaction is declined. * **scoreBased**: the transaction is + * assigned the `score` you specified. Adyen calculates the total score and if it + * exceeds 100, the transaction is declined. This value is not allowed when + * `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to + * verify their identity using [3D Secure + * authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or + * times out, the transaction is declined. This value is only allowed when + * `requestType` is **authentication**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 7f242b565..8608520b3 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -23,6 +23,7 @@ /** CardDetails */ @JsonPropertyOrder({ + CardDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, CardDetails.JSON_PROPERTY_BRAND, CardDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, CardDetails.JSON_PROPERTY_CUPSECUREPLUS_SMSCODE, @@ -51,6 +52,9 @@ CardDetails.JSON_PROPERTY_TYPE }) public class CardDetails { + public static final String JSON_PROPERTY_BILLING_SEQUENCE_NUMBER = "billingSequenceNumber"; + private String billingSequenceNumber; + public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -230,6 +234,48 @@ public static TypeEnum fromValue(String value) { public CardDetails() {} + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + * @return the current {@code CardDetails} instance, allowing for method chaining + */ + public CardDetails billingSequenceNumber(String billingSequenceNumber) { + this.billingSequenceNumber = billingSequenceNumber; + return this; + } + + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if + * this is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + */ + @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBillingSequenceNumber() { + return billingSequenceNumber; + } + + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + */ + @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBillingSequenceNumber(String billingSequenceNumber) { + this.billingSequenceNumber = billingSequenceNumber; + } + /** * Secondary brand of the card. For example: **plastix**, **hmclub**. * @@ -1197,7 +1243,8 @@ public boolean equals(Object o) { return false; } CardDetails cardDetails = (CardDetails) o; - return Objects.equals(this.brand, cardDetails.brand) + return Objects.equals(this.billingSequenceNumber, cardDetails.billingSequenceNumber) + && Objects.equals(this.brand, cardDetails.brand) && Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) && Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) && Objects.equals(this.cvc, cardDetails.cvc) @@ -1229,6 +1276,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + billingSequenceNumber, brand, checkoutAttemptId, cupsecureplusSmscode, @@ -1261,6 +1309,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardDetails {\n"); + sb.append(" billingSequenceNumber: ") + .append(toIndentedString(billingSequenceNumber)) + .append("\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" cupsecureplusSmscode: ") diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 2f55a3fcb..adb2d444c 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -23,6 +23,7 @@ /** CardDonations */ @JsonPropertyOrder({ + CardDonations.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, CardDonations.JSON_PROPERTY_BRAND, CardDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, CardDonations.JSON_PROPERTY_CUPSECUREPLUS_SMSCODE, @@ -51,6 +52,9 @@ CardDonations.JSON_PROPERTY_TYPE }) public class CardDonations { + public static final String JSON_PROPERTY_BILLING_SEQUENCE_NUMBER = "billingSequenceNumber"; + private String billingSequenceNumber; + public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -230,6 +234,48 @@ public static TypeEnum fromValue(String value) { public CardDonations() {} + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + * @return the current {@code CardDonations} instance, allowing for method chaining + */ + public CardDonations billingSequenceNumber(String billingSequenceNumber) { + this.billingSequenceNumber = billingSequenceNumber; + return this; + } + + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if + * this is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + */ + @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBillingSequenceNumber() { + return billingSequenceNumber; + } + + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. + */ + @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBillingSequenceNumber(String billingSequenceNumber) { + this.billingSequenceNumber = billingSequenceNumber; + } + /** * Secondary brand of the card. For example: **plastix**, **hmclub**. * @@ -1197,7 +1243,8 @@ public boolean equals(Object o) { return false; } CardDonations cardDonations = (CardDonations) o; - return Objects.equals(this.brand, cardDonations.brand) + return Objects.equals(this.billingSequenceNumber, cardDonations.billingSequenceNumber) + && Objects.equals(this.brand, cardDonations.brand) && Objects.equals(this.checkoutAttemptId, cardDonations.checkoutAttemptId) && Objects.equals(this.cupsecureplusSmscode, cardDonations.cupsecureplusSmscode) && Objects.equals(this.cvc, cardDonations.cvc) @@ -1229,6 +1276,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + billingSequenceNumber, brand, checkoutAttemptId, cupsecureplusSmscode, @@ -1261,6 +1309,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardDonations {\n"); + sb.append(" billingSequenceNumber: ") + .append(toIndentedString(billingSequenceNumber)) + .append("\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" cupsecureplusSmscode: ") diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java index e856c2ec2..4cf158477 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java @@ -24,8 +24,10 @@ /** CheckoutBankTransferAction */ @JsonPropertyOrder({ CheckoutBankTransferAction.JSON_PROPERTY_ACCOUNT_NUMBER, + CheckoutBankTransferAction.JSON_PROPERTY_BANK_CODE, CheckoutBankTransferAction.JSON_PROPERTY_BENEFICIARY, CheckoutBankTransferAction.JSON_PROPERTY_BIC, + CheckoutBankTransferAction.JSON_PROPERTY_BRANCH_CODE, CheckoutBankTransferAction.JSON_PROPERTY_DOWNLOAD_URL, CheckoutBankTransferAction.JSON_PROPERTY_IBAN, CheckoutBankTransferAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, @@ -41,12 +43,18 @@ public class CheckoutBankTransferAction { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; + public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; + private String bankCode; + public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; private String beneficiary; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; + public static final String JSON_PROPERTY_BRANCH_CODE = "branchCode"; + private String branchCode; + public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl"; private String downloadUrl; @@ -151,6 +159,39 @@ public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } + /** + * The bank code of the bank transfer. + * + * @param bankCode The bank code of the bank transfer. + * @return the current {@code CheckoutBankTransferAction} instance, allowing for method chaining + */ + public CheckoutBankTransferAction bankCode(String bankCode) { + this.bankCode = bankCode; + return this; + } + + /** + * The bank code of the bank transfer. + * + * @return bankCode The bank code of the bank transfer. + */ + @JsonProperty(JSON_PROPERTY_BANK_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBankCode() { + return bankCode; + } + + /** + * The bank code of the bank transfer. + * + * @param bankCode The bank code of the bank transfer. + */ + @JsonProperty(JSON_PROPERTY_BANK_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBankCode(String bankCode) { + this.bankCode = bankCode; + } + /** * The name of the account holder. * @@ -217,6 +258,39 @@ public void setBic(String bic) { this.bic = bic; } + /** + * The branch code of the bank transfer. + * + * @param branchCode The branch code of the bank transfer. + * @return the current {@code CheckoutBankTransferAction} instance, allowing for method chaining + */ + public CheckoutBankTransferAction branchCode(String branchCode) { + this.branchCode = branchCode; + return this; + } + + /** + * The branch code of the bank transfer. + * + * @return branchCode The branch code of the bank transfer. + */ + @JsonProperty(JSON_PROPERTY_BRANCH_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBranchCode() { + return branchCode; + } + + /** + * The branch code of the bank transfer. + * + * @param branchCode The branch code of the bank transfer. + */ + @JsonProperty(JSON_PROPERTY_BRANCH_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBranchCode(String branchCode) { + this.branchCode = branchCode; + } + /** * The url to download payment details with. * @@ -558,8 +632,10 @@ public boolean equals(Object o) { } CheckoutBankTransferAction checkoutBankTransferAction = (CheckoutBankTransferAction) o; return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) + && Objects.equals(this.bankCode, checkoutBankTransferAction.bankCode) && Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) && Objects.equals(this.bic, checkoutBankTransferAction.bic) + && Objects.equals(this.branchCode, checkoutBankTransferAction.branchCode) && Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) && Objects.equals(this.iban, checkoutBankTransferAction.iban) && Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) @@ -576,8 +652,10 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( accountNumber, + bankCode, beneficiary, bic, + branchCode, downloadUrl, iban, paymentMethodType, @@ -595,8 +673,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutBankTransferAction {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" bankCode: ").append(toIndentedString(bankCode)).append("\n"); sb.append(" beneficiary: ").append(toIndentedString(beneficiary)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); + sb.append(" branchCode: ").append(toIndentedString(branchCode)).append("\n"); sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" paymentMethodType: ").append(toIndentedString(paymentMethodType)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java index 4b036502d..f2f5a739c 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -51,7 +51,9 @@ public enum TypeEnum { ONLINEBANKING_SK(String.valueOf("onlineBanking_SK")), - ONLINEBANKING_CZ(String.valueOf("onlineBanking_CZ")); + ONLINEBANKING_CZ(String.valueOf("onlineBanking_CZ")), + + ONLINEBANKING_IN(String.valueOf("onlinebanking_IN")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index ff01dcc45..58770fd40 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -152,8 +152,6 @@ public enum TypeEnum { KCP_NAVERPAY(String.valueOf("kcp_naverpay")), - ONLINEBANKING_IN(String.valueOf("onlinebanking_IN")), - FAWRY(String.valueOf("fawry")), ATOME(String.valueOf("atome")), diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java index 9e1bffc57..fd037500c 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java @@ -33,6 +33,7 @@ PaymentDetailsResponse.JSON_PROPERTY_MERCHANT_REFERENCE, PaymentDetailsResponse.JSON_PROPERTY_ORDER, PaymentDetailsResponse.JSON_PROPERTY_PAYMENT_METHOD, + PaymentDetailsResponse.JSON_PROPERTY_PAYMENT_VALIDATIONS, PaymentDetailsResponse.JSON_PROPERTY_PSP_REFERENCE, PaymentDetailsResponse.JSON_PROPERTY_REFUSAL_REASON, PaymentDetailsResponse.JSON_PROPERTY_REFUSAL_REASON_CODE, @@ -67,6 +68,9 @@ public class PaymentDetailsResponse { public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod"; private ResponsePaymentMethod paymentMethod; + public static final String JSON_PROPERTY_PAYMENT_VALIDATIONS = "paymentValidations"; + private PaymentValidationsResponse paymentValidations; + public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -467,6 +471,39 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } + /** + * paymentValidations + * + * @param paymentValidations + * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining + */ + public PaymentDetailsResponse paymentValidations(PaymentValidationsResponse paymentValidations) { + this.paymentValidations = paymentValidations; + return this; + } + + /** + * Get paymentValidations + * + * @return paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidationsResponse getPaymentValidations() { + return paymentValidations; + } + + /** + * paymentValidations + * + * @param paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentValidations(PaymentValidationsResponse paymentValidations) { + this.paymentValidations = paymentValidations; + } + /** * Adyen's 16-character string reference associated with the transaction/request. This value * is globally unique; quote it when communicating with us about this request. @@ -956,6 +993,7 @@ public boolean equals(Object o) { && Objects.equals(this.merchantReference, paymentDetailsResponse.merchantReference) && Objects.equals(this.order, paymentDetailsResponse.order) && Objects.equals(this.paymentMethod, paymentDetailsResponse.paymentMethod) + && Objects.equals(this.paymentValidations, paymentDetailsResponse.paymentValidations) && Objects.equals(this.pspReference, paymentDetailsResponse.pspReference) && Objects.equals(this.refusalReason, paymentDetailsResponse.refusalReason) && Objects.equals(this.refusalReasonCode, paymentDetailsResponse.refusalReasonCode) @@ -977,6 +1015,7 @@ public int hashCode() { merchantReference, order, paymentMethod, + paymentValidations, pspReference, refusalReason, refusalReasonCode, @@ -999,6 +1038,7 @@ public String toString() { sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" paymentValidations: ").append(toIndentedString(paymentValidations)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponse.java b/src/main/java/com/adyen/model/checkout/PaymentResponse.java index cfa5bee01..63d6ef5d6 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponse.java @@ -33,6 +33,7 @@ PaymentResponse.JSON_PROPERTY_MERCHANT_REFERENCE, PaymentResponse.JSON_PROPERTY_ORDER, PaymentResponse.JSON_PROPERTY_PAYMENT_METHOD, + PaymentResponse.JSON_PROPERTY_PAYMENT_VALIDATIONS, PaymentResponse.JSON_PROPERTY_PSP_REFERENCE, PaymentResponse.JSON_PROPERTY_REFUSAL_REASON, PaymentResponse.JSON_PROPERTY_REFUSAL_REASON_CODE, @@ -66,6 +67,9 @@ public class PaymentResponse { public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod"; private ResponsePaymentMethod paymentMethod; + public static final String JSON_PROPERTY_PAYMENT_VALIDATIONS = "paymentValidations"; + private PaymentValidationsResponse paymentValidations; + public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -484,6 +488,39 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } + /** + * paymentValidations + * + * @param paymentValidations + * @return the current {@code PaymentResponse} instance, allowing for method chaining + */ + public PaymentResponse paymentValidations(PaymentValidationsResponse paymentValidations) { + this.paymentValidations = paymentValidations; + return this; + } + + /** + * Get paymentValidations + * + * @return paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidationsResponse getPaymentValidations() { + return paymentValidations; + } + + /** + * paymentValidations + * + * @param paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentValidations(PaymentValidationsResponse paymentValidations) { + this.paymentValidations = paymentValidations; + } + /** * Adyen's 16-character string reference associated with the transaction/request. This value * is globally unique; quote it when communicating with us about this request. > For payment @@ -949,6 +986,7 @@ public boolean equals(Object o) { && Objects.equals(this.merchantReference, paymentResponse.merchantReference) && Objects.equals(this.order, paymentResponse.order) && Objects.equals(this.paymentMethod, paymentResponse.paymentMethod) + && Objects.equals(this.paymentValidations, paymentResponse.paymentValidations) && Objects.equals(this.pspReference, paymentResponse.pspReference) && Objects.equals(this.refusalReason, paymentResponse.refusalReason) && Objects.equals(this.refusalReasonCode, paymentResponse.refusalReasonCode) @@ -969,6 +1007,7 @@ public int hashCode() { merchantReference, order, paymentMethod, + paymentValidations, pspReference, refusalReason, refusalReasonCode, @@ -990,6 +1029,7 @@ public String toString() { sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" paymentValidations: ").append(toIndentedString(paymentValidations)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java new file mode 100644 index 000000000..4a4aa72a0 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java @@ -0,0 +1,251 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; + +/** PaymentValidationsNameResponse */ +@JsonPropertyOrder({ + PaymentValidationsNameResponse.JSON_PROPERTY_RAW_RESPONSE, + PaymentValidationsNameResponse.JSON_PROPERTY_RESULT, + PaymentValidationsNameResponse.JSON_PROPERTY_STATUS +}) +public class PaymentValidationsNameResponse { + public static final String JSON_PROPERTY_RAW_RESPONSE = "rawResponse"; + private PaymentValidationsNameResultRawResponse rawResponse; + + public static final String JSON_PROPERTY_RESULT = "result"; + private PaymentValidationsNameResultResponse result; + + /** Name Validation status result */ + public enum StatusEnum { + NOTPERFORMED(String.valueOf("notPerformed")), + + NOTSUPPORTED(String.valueOf("notSupported")), + + PERFORMED(String.valueOf("performed")); + + private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public PaymentValidationsNameResponse() {} + + /** + * rawResponse + * + * @param rawResponse + * @return the current {@code PaymentValidationsNameResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResponse rawResponse( + PaymentValidationsNameResultRawResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Get rawResponse + * + * @return rawResponse + */ + @JsonProperty(JSON_PROPERTY_RAW_RESPONSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidationsNameResultRawResponse getRawResponse() { + return rawResponse; + } + + /** + * rawResponse + * + * @param rawResponse + */ + @JsonProperty(JSON_PROPERTY_RAW_RESPONSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRawResponse(PaymentValidationsNameResultRawResponse rawResponse) { + this.rawResponse = rawResponse; + } + + /** + * result + * + * @param result + * @return the current {@code PaymentValidationsNameResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResponse result(PaymentValidationsNameResultResponse result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidationsNameResultResponse getResult() { + return result; + } + + /** + * result + * + * @param result + */ + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(PaymentValidationsNameResultResponse result) { + this.result = result; + } + + /** + * Name Validation status result + * + * @param status Name Validation status result + * @return the current {@code PaymentValidationsNameResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResponse status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Name Validation status result + * + * @return status Name Validation status result + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { + return status; + } + + /** + * Name Validation status result + * + * @param status Name Validation status result + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + /** Return true if this PaymentValidationsNameResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentValidationsNameResponse paymentValidationsNameResponse = + (PaymentValidationsNameResponse) o; + return Objects.equals(this.rawResponse, paymentValidationsNameResponse.rawResponse) + && Objects.equals(this.result, paymentValidationsNameResponse.result) + && Objects.equals(this.status, paymentValidationsNameResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(rawResponse, result, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentValidationsNameResponse {\n"); + sb.append(" rawResponse: ").append(toIndentedString(rawResponse)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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 PaymentValidationsNameResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentValidationsNameResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentValidationsNameResponse + */ + public static PaymentValidationsNameResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResponse.class); + } + + /** + * Convert an instance of PaymentValidationsNameResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java new file mode 100644 index 000000000..74ee29e61 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java @@ -0,0 +1,283 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** PaymentValidationsNameResultRawResponse */ +@JsonPropertyOrder({ + PaymentValidationsNameResultRawResponse.JSON_PROPERTY_FIRST_NAME, + PaymentValidationsNameResultRawResponse.JSON_PROPERTY_FULL_NAME, + PaymentValidationsNameResultRawResponse.JSON_PROPERTY_LAST_NAME, + PaymentValidationsNameResultRawResponse.JSON_PROPERTY_MIDDLE_NAME, + PaymentValidationsNameResultRawResponse.JSON_PROPERTY_STATUS +}) +public class PaymentValidationsNameResultRawResponse { + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + private String firstName; + + public static final String JSON_PROPERTY_FULL_NAME = "fullName"; + private String fullName; + + public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + private String lastName; + + public static final String JSON_PROPERTY_MIDDLE_NAME = "middleName"; + private String middleName; + + public static final String JSON_PROPERTY_STATUS = "status"; + private String status; + + public PaymentValidationsNameResultRawResponse() {} + + /** + * Name Validation Raw firstName Result + * + * @param firstName Name Validation Raw firstName Result + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Name Validation Raw firstName Result + * + * @return firstName Name Validation Raw firstName Result + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { + return firstName; + } + + /** + * Name Validation Raw firstName Result + * + * @param firstName Name Validation Raw firstName Result + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * Name Validation Raw fullName Result + * + * @param fullName Name Validation Raw fullName Result + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse fullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Name Validation Raw fullName Result + * + * @return fullName Name Validation Raw fullName Result + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFullName() { + return fullName; + } + + /** + * Name Validation Raw fullName Result + * + * @param fullName Name Validation Raw fullName Result + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(String fullName) { + this.fullName = fullName; + } + + /** + * Name Validation Raw lastName Result + * + * @param lastName Name Validation Raw lastName Result + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Name Validation Raw lastName Result + * + * @return lastName Name Validation Raw lastName Result + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { + return lastName; + } + + /** + * Name Validation Raw lastName Result + * + * @param lastName Name Validation Raw lastName Result + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(String lastName) { + this.lastName = lastName; + } + + /** + * Name Validation Raw middleName Result + * + * @param middleName Name Validation Raw middleName Result + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse middleName(String middleName) { + this.middleName = middleName; + return this; + } + + /** + * Name Validation Raw middleName Result + * + * @return middleName Name Validation Raw middleName Result + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMiddleName() { + return middleName; + } + + /** + * Name Validation Raw middleName Result + * + * @param middleName Name Validation Raw middleName Result + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + /** + * Name Validation Raw status result + * + * @param status Name Validation Raw status result + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse status(String status) { + this.status = status; + return this; + } + + /** + * Name Validation Raw status result + * + * @return status Name Validation Raw status result + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStatus() { + return status; + } + + /** + * Name Validation Raw status result + * + * @param status Name Validation Raw status result + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(String status) { + this.status = status; + } + + /** Return true if this PaymentValidationsNameResultRawResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentValidationsNameResultRawResponse paymentValidationsNameResultRawResponse = + (PaymentValidationsNameResultRawResponse) o; + return Objects.equals(this.firstName, paymentValidationsNameResultRawResponse.firstName) + && Objects.equals(this.fullName, paymentValidationsNameResultRawResponse.fullName) + && Objects.equals(this.lastName, paymentValidationsNameResultRawResponse.lastName) + && Objects.equals(this.middleName, paymentValidationsNameResultRawResponse.middleName) + && Objects.equals(this.status, paymentValidationsNameResultRawResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, fullName, lastName, middleName, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentValidationsNameResultRawResponse {\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" middleName: ").append(toIndentedString(middleName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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 PaymentValidationsNameResultRawResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentValidationsNameResultRawResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentValidationsNameResultRawResponse + */ + public static PaymentValidationsNameResultRawResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResultRawResponse.class); + } + + /** + * Convert an instance of PaymentValidationsNameResultRawResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java new file mode 100644 index 000000000..9e1ac3c94 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java @@ -0,0 +1,243 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** PaymentValidationsNameResultResponse */ +@JsonPropertyOrder({ + PaymentValidationsNameResultResponse.JSON_PROPERTY_FIRST_NAME, + PaymentValidationsNameResultResponse.JSON_PROPERTY_FULL_NAME, + PaymentValidationsNameResultResponse.JSON_PROPERTY_LAST_NAME, + PaymentValidationsNameResultResponse.JSON_PROPERTY_MIDDLE_NAME +}) +public class PaymentValidationsNameResultResponse { + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + private String firstName; + + public static final String JSON_PROPERTY_FULL_NAME = "fullName"; + private String fullName; + + public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + private String lastName; + + public static final String JSON_PROPERTY_MIDDLE_NAME = "middleName"; + private String middleName; + + public PaymentValidationsNameResultResponse() {} + + /** + * Name Validation firstName result + * + * @param firstName Name Validation firstName result + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Name Validation firstName result + * + * @return firstName Name Validation firstName result + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { + return firstName; + } + + /** + * Name Validation firstName result + * + * @param firstName Name Validation firstName result + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * Name Validation fullName result + * + * @param fullName Name Validation fullName result + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse fullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Name Validation fullName result + * + * @return fullName Name Validation fullName result + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFullName() { + return fullName; + } + + /** + * Name Validation fullName result + * + * @param fullName Name Validation fullName result + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(String fullName) { + this.fullName = fullName; + } + + /** + * Name Validation lastName result + * + * @param lastName Name Validation lastName result + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Name Validation lastName result + * + * @return lastName Name Validation lastName result + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { + return lastName; + } + + /** + * Name Validation lastName result + * + * @param lastName Name Validation lastName result + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(String lastName) { + this.lastName = lastName; + } + + /** + * Name Validation middleName result + * + * @param middleName Name Validation middleName result + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse middleName(String middleName) { + this.middleName = middleName; + return this; + } + + /** + * Name Validation middleName result + * + * @return middleName Name Validation middleName result + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMiddleName() { + return middleName; + } + + /** + * Name Validation middleName result + * + * @param middleName Name Validation middleName result + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + /** Return true if this PaymentValidationsNameResultResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentValidationsNameResultResponse paymentValidationsNameResultResponse = + (PaymentValidationsNameResultResponse) o; + return Objects.equals(this.firstName, paymentValidationsNameResultResponse.firstName) + && Objects.equals(this.fullName, paymentValidationsNameResultResponse.fullName) + && Objects.equals(this.lastName, paymentValidationsNameResultResponse.lastName) + && Objects.equals(this.middleName, paymentValidationsNameResultResponse.middleName); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, fullName, lastName, middleName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentValidationsNameResultResponse {\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" middleName: ").append(toIndentedString(middleName)).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 PaymentValidationsNameResultResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentValidationsNameResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentValidationsNameResultResponse + */ + public static PaymentValidationsNameResultResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResultResponse.class); + } + + /** + * Convert an instance of PaymentValidationsNameResultResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java new file mode 100644 index 000000000..dfa318034 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java @@ -0,0 +1,119 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** PaymentValidationsResponse */ +@JsonPropertyOrder({PaymentValidationsResponse.JSON_PROPERTY_NAME}) +public class PaymentValidationsResponse { + public static final String JSON_PROPERTY_NAME = "name"; + private PaymentValidationsNameResponse name; + + public PaymentValidationsResponse() {} + + /** + * name + * + * @param name + * @return the current {@code PaymentValidationsResponse} instance, allowing for method chaining + */ + public PaymentValidationsResponse name(PaymentValidationsNameResponse name) { + this.name = name; + return this; + } + + /** + * Get name + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidationsNameResponse getName() { + return name; + } + + /** + * name + * + * @param name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(PaymentValidationsNameResponse name) { + this.name = name; + } + + /** Return true if this PaymentValidationsResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentValidationsResponse paymentValidationsResponse = (PaymentValidationsResponse) o; + return Objects.equals(this.name, paymentValidationsResponse.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentValidationsResponse {\n"); + sb.append(" name: ").append(toIndentedString(name)).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 PaymentValidationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentValidationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentValidationsResponse + */ + public static PaymentValidationsResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentValidationsResponse.class); + } + + /** + * Convert an instance of PaymentValidationsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index 9cb5ea8e1..71aca8949 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -26,6 +26,8 @@ WeChatPayMiniProgramDetails.JSON_PROPERTY_APP_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_OPENID, + WeChatPayMiniProgramDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + WeChatPayMiniProgramDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_TYPE }) public class WeChatPayMiniProgramDetails { @@ -38,6 +40,13 @@ public class WeChatPayMiniProgramDetails { public static final String JSON_PROPERTY_OPENID = "openid"; private String openid; + public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; + @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + private String recurringDetailReference; + + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; + private String storedPaymentMethodId; + /** **wechatpayMiniProgram** */ public enum TypeEnum { WECHATPAYMINIPROGRAM(String.valueOf("wechatpayMiniProgram")); @@ -181,6 +190,90 @@ public void setOpenid(String openid) { this.openid = openid; } + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + public WeChatPayMiniProgramDetails recurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + */ + @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringDetailReference() { + return recurringDetailReference; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining + */ + public WeChatPayMiniProgramDetails storedPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStoredPaymentMethodId() { + return storedPaymentMethodId; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStoredPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + } + /** * **wechatpayMiniProgram** * @@ -227,12 +320,17 @@ public boolean equals(Object o) { return Objects.equals(this.appId, weChatPayMiniProgramDetails.appId) && Objects.equals(this.checkoutAttemptId, weChatPayMiniProgramDetails.checkoutAttemptId) && Objects.equals(this.openid, weChatPayMiniProgramDetails.openid) + && Objects.equals( + this.recurringDetailReference, weChatPayMiniProgramDetails.recurringDetailReference) + && Objects.equals( + this.storedPaymentMethodId, weChatPayMiniProgramDetails.storedPaymentMethodId) && Objects.equals(this.type, weChatPayMiniProgramDetails.type); } @Override public int hashCode() { - return Objects.hash(appId, checkoutAttemptId, openid, type); + return Objects.hash( + appId, checkoutAttemptId, openid, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -242,6 +340,12 @@ public String toString() { sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" openid: ").append(toIndentedString(openid)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java index 0796f2ca5..b2276ea01 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java @@ -198,13 +198,14 @@ public void setPageName(String pageName) { /** * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and include + * both sides in the same API request. * For any other types, when this is omitted, we infer the + * page number based on the order of attachments. * * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and + * include both sides in the same API request. * For any other types, when this is omitted, we + * infer the page number based on the order of attachments. * @return the current {@code Attachment} instance, allowing for method chaining */ public Attachment pageType(String pageType) { @@ -214,13 +215,14 @@ public Attachment pageType(String pageType) { /** * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and include + * both sides in the same API request. * For any other types, when this is omitted, we infer the + * page number based on the order of attachments. * * @return pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and + * include both sides in the same API request. * For any other types, when this is omitted, we + * infer the page number based on the order of attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,13 +232,14 @@ public String getPageType() { /** * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and include + * both sides in the same API request. * For any other types, when this is omitted, we infer the + * page number based on the order of attachments. * * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * **driversLicense** or **identityCard**, you must set this to **front** or **back** and + * include both sides in the same API request. * For any other types, when this is omitted, we + * infer the page number based on the order of attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/service/balanceplatform/ScaAssociationManagementApi.java b/src/main/java/com/adyen/service/balanceplatform/ScaAssociationManagementApi.java new file mode 100644 index 000000000..9ab38f64c --- /dev/null +++ b/src/main/java/com/adyen/service/balanceplatform/ScaAssociationManagementApi.java @@ -0,0 +1,184 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.service.balanceplatform; + +import com.adyen.Client; +import com.adyen.Service; +import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.ApproveAssociationRequest; +import com.adyen.model.balanceplatform.ApproveAssociationResponse; +import com.adyen.model.balanceplatform.ListAssociationsResponse; +import com.adyen.model.balanceplatform.RemoveAssociationRequest; +import com.adyen.model.balanceplatform.ScaEntityType; +import com.adyen.service.exception.ApiException; +import com.adyen.service.resource.Resource; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +public class ScaAssociationManagementApi extends Service { + + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * SCA association management constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public ScaAssociationManagementApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * SCA association management constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ScaAssociationManagementApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Approve a pending approval association + * + * @param wwWAuthenticate {@link String } The header for authenticating through SCA. (required) + * @param approveAssociationRequest {@link ApproveAssociationRequest } (required) + * @return {@link ApproveAssociationResponse } + * @throws ApiException if fails to make API call + */ + public ApproveAssociationResponse approveAssociation( + String wwWAuthenticate, ApproveAssociationRequest approveAssociationRequest) + throws ApiException, IOException { + return approveAssociation(approveAssociationRequest, null); + } + + /** + * Approve a pending approval association + * + * @param approveAssociationRequest {@link ApproveAssociationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ApproveAssociationResponse } + * @throws ApiException if fails to make API call + */ + public ApproveAssociationResponse approveAssociation( + ApproveAssociationRequest approveAssociationRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = approveAssociationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scaAssociations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, null); + return ApproveAssociationResponse.fromJson(jsonResult); + } + + /** + * Get a list of devices associated with an entity + * + * @param entityType {@link ScaEntityType } The type of entity you want to retrieve a list of + * associations for. Possible values: **accountHolder** or **paymentInstrument**. (required) + * @param entityId {@link String } The unique identifier of the entity. (required) + * @param pageSize {@link Integer } The number of items to have on a page. Default: **5**. + * (required) + * @param pageNumber {@link Integer } The index of the page to retrieve. The index of the first + * page is **0** (zero). Default: **0**. (required) + * @return {@link ListAssociationsResponse } + * @throws ApiException if fails to make API call + */ + public ListAssociationsResponse listAssociations( + ScaEntityType entityType, String entityId, Integer pageSize, Integer pageNumber) + throws ApiException, IOException { + return listAssociations(entityType, entityId, pageSize, pageNumber, null); + } + + /** + * Get a list of devices associated with an entity + * + * @param entityType {@link ScaEntityType } Query: The type of entity you want to retrieve a list + * of associations for. Possible values: **accountHolder** or **paymentInstrument**. + * (required) + * @param entityId {@link String } Query: The unique identifier of the entity. (required) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Default: **5**. + * (required) + * @param pageNumber {@link Integer } Query: The index of the page to retrieve. The index of the + * first page is **0** (zero). Default: **0**. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListAssociationsResponse } + * @throws ApiException if fails to make API call + */ + public ListAssociationsResponse listAssociations( + ScaEntityType entityType, + String entityId, + Integer pageSize, + Integer pageNumber, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (entityType != null) { + queryParams.put("entityType", entityType.toString()); + } + if (entityId != null) { + queryParams.put("entityId", entityId); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/scaAssociations", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListAssociationsResponse.fromJson(jsonResult); + } + + /** + * Delete association to devices + * + * @param wwWAuthenticate {@link String } The header for authenticating through SCA. (required) + * @param removeAssociationRequest {@link RemoveAssociationRequest } (required) + * @throws ApiException if fails to make API call + */ + public void removeAssociation( + String wwWAuthenticate, RemoveAssociationRequest removeAssociationRequest) + throws ApiException, IOException { + removeAssociation(removeAssociationRequest, null); + } + + /** + * Delete association to devices + * + * @param removeAssociationRequest {@link RemoveAssociationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeAssociation( + RemoveAssociationRequest removeAssociationRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = removeAssociationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scaAssociations", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, null); + } +} diff --git a/src/main/java/com/adyen/service/balanceplatform/ScaDeviceManagementApi.java b/src/main/java/com/adyen/service/balanceplatform/ScaDeviceManagementApi.java new file mode 100644 index 000000000..bd76837d5 --- /dev/null +++ b/src/main/java/com/adyen/service/balanceplatform/ScaDeviceManagementApi.java @@ -0,0 +1,184 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * 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.service.balanceplatform; + +import com.adyen.Client; +import com.adyen.Service; +import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.BeginScaDeviceRegistrationRequest; +import com.adyen.model.balanceplatform.BeginScaDeviceRegistrationResponse; +import com.adyen.model.balanceplatform.FinishScaDeviceRegistrationRequest; +import com.adyen.model.balanceplatform.FinishScaDeviceRegistrationResponse; +import com.adyen.model.balanceplatform.SubmitScaAssociationRequest; +import com.adyen.model.balanceplatform.SubmitScaAssociationResponse; +import com.adyen.service.exception.ApiException; +import com.adyen.service.resource.Resource; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +public class ScaDeviceManagementApi extends Service { + + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * SCA device management constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public ScaDeviceManagementApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * SCA device management constructor in {@link com.adyen.service.balanceplatform package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ScaDeviceManagementApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Begin SCA device registration + * + * @param beginScaDeviceRegistrationRequest {@link BeginScaDeviceRegistrationRequest } (required) + * @return {@link BeginScaDeviceRegistrationResponse } + * @throws ApiException if fails to make API call + */ + public BeginScaDeviceRegistrationResponse beginScaDeviceRegistration( + BeginScaDeviceRegistrationRequest beginScaDeviceRegistrationRequest) + throws ApiException, IOException { + return beginScaDeviceRegistration(beginScaDeviceRegistrationRequest, null); + } + + /** + * Begin SCA device registration + * + * @param beginScaDeviceRegistrationRequest {@link BeginScaDeviceRegistrationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BeginScaDeviceRegistrationResponse } + * @throws ApiException if fails to make API call + */ + public BeginScaDeviceRegistrationResponse beginScaDeviceRegistration( + BeginScaDeviceRegistrationRequest beginScaDeviceRegistrationRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = beginScaDeviceRegistrationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scaDevices", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BeginScaDeviceRegistrationResponse.fromJson(jsonResult); + } + + /** + * Finish registration process for a SCA device + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param finishScaDeviceRegistrationRequest {@link FinishScaDeviceRegistrationRequest } + * (required) + * @return {@link FinishScaDeviceRegistrationResponse } + * @throws ApiException if fails to make API call + */ + public FinishScaDeviceRegistrationResponse finishScaDeviceRegistration( + String deviceId, FinishScaDeviceRegistrationRequest finishScaDeviceRegistrationRequest) + throws ApiException, IOException { + return finishScaDeviceRegistration(deviceId, finishScaDeviceRegistrationRequest, null); + } + + /** + * Finish registration process for a SCA device + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param finishScaDeviceRegistrationRequest {@link FinishScaDeviceRegistrationRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link FinishScaDeviceRegistrationResponse } + * @throws ApiException if fails to make API call + */ + public FinishScaDeviceRegistrationResponse finishScaDeviceRegistration( + String deviceId, + FinishScaDeviceRegistrationRequest finishScaDeviceRegistrationRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); + } + pathParams.put("deviceId", deviceId); + + String requestBody = finishScaDeviceRegistrationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scaDevices/{deviceId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return FinishScaDeviceRegistrationResponse.fromJson(jsonResult); + } + + /** + * Create a new SCA association for a device + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param submitScaAssociationRequest {@link SubmitScaAssociationRequest } (required) + * @return {@link SubmitScaAssociationResponse } + * @throws ApiException if fails to make API call + */ + public SubmitScaAssociationResponse submitScaAssociation( + String deviceId, SubmitScaAssociationRequest submitScaAssociationRequest) + throws ApiException, IOException { + return submitScaAssociation(deviceId, submitScaAssociationRequest, null); + } + + /** + * Create a new SCA association for a device + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param submitScaAssociationRequest {@link SubmitScaAssociationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SubmitScaAssociationResponse } + * @throws ApiException if fails to make API call + */ + public SubmitScaAssociationResponse submitScaAssociation( + String deviceId, + SubmitScaAssociationRequest submitScaAssociationRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); + } + pathParams.put("deviceId", deviceId); + + String requestBody = submitScaAssociationRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/scaDevices/{deviceId}/scaAssociations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SubmitScaAssociationResponse.fromJson(jsonResult); + } +} diff --git a/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalanceAccountLevelApi.java b/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalanceAccountLevelApi.java index 1cfbc8142..5406cc917 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalanceAccountLevelApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalanceAccountLevelApi.java @@ -147,37 +147,37 @@ public TransferLimit createTransferLimit( /** * Delete a scheduled or pending transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance account. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @throws ApiException if fails to make API call */ - public void deletePendingTransferLimit(String transferLimitId, String id) + public void deletePendingTransferLimit(String id, String transferLimitId) throws ApiException, IOException { - deletePendingTransferLimit(transferLimitId, id, null); + deletePendingTransferLimit(id, transferLimitId, null); } /** * Delete a scheduled or pending transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance account. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as * idempotency-keys (optional) * @throws ApiException if fails to make API call */ public void deletePendingTransferLimit( - String transferLimitId, String id, RequestOptions requestOptions) + String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException { // Add path params Map pathParams = new HashMap<>(); - if (transferLimitId == null) { - throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); - } - pathParams.put("transferLimitId", transferLimitId); if (id == null) { throw new IllegalArgumentException("Please provide the id path parameter"); } pathParams.put("id", id); + if (transferLimitId == null) { + throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); + } + pathParams.put("transferLimitId", transferLimitId); String requestBody = null; Resource resource = @@ -245,39 +245,39 @@ public TransferLimitListResponse getCurrentTransferLimits( /** * Get the details of a transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance account. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @return {@link TransferLimit } * @throws ApiException if fails to make API call */ - public TransferLimit getSpecificTransferLimit(String transferLimitId, String id) + public TransferLimit getSpecificTransferLimit(String id, String transferLimitId) throws ApiException, IOException { - return getSpecificTransferLimit(transferLimitId, id, null); + return getSpecificTransferLimit(id, transferLimitId, null); } /** * Get the details of a transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance account. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as * idempotency-keys (optional) * @return {@link TransferLimit } * @throws ApiException if fails to make API call */ public TransferLimit getSpecificTransferLimit( - String transferLimitId, String id, RequestOptions requestOptions) + String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException { // Add path params Map pathParams = new HashMap<>(); - if (transferLimitId == null) { - throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); - } - pathParams.put("transferLimitId", transferLimitId); if (id == null) { throw new IllegalArgumentException("Please provide the id path parameter"); } pathParams.put("id", id); + if (transferLimitId == null) { + throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); + } + pathParams.put("transferLimitId", transferLimitId); String requestBody = null; Resource resource = diff --git a/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalancePlatformLevelApi.java b/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalancePlatformLevelApi.java index 5bd78f709..312e49c44 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalancePlatformLevelApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransferLimitsBalancePlatformLevelApi.java @@ -106,37 +106,37 @@ public TransferLimit createTransferLimit( /** * Delete a scheduled or pending transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance platform. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @throws ApiException if fails to make API call */ - public void deletePendingTransferLimit(String transferLimitId, String id) + public void deletePendingTransferLimit(String id, String transferLimitId) throws ApiException, IOException { - deletePendingTransferLimit(transferLimitId, id, null); + deletePendingTransferLimit(id, transferLimitId, null); } /** * Delete a scheduled or pending transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance platform. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as * idempotency-keys (optional) * @throws ApiException if fails to make API call */ public void deletePendingTransferLimit( - String transferLimitId, String id, RequestOptions requestOptions) + String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException { // Add path params Map pathParams = new HashMap<>(); - if (transferLimitId == null) { - throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); - } - pathParams.put("transferLimitId", transferLimitId); if (id == null) { throw new IllegalArgumentException("Please provide the id path parameter"); } pathParams.put("id", id); + if (transferLimitId == null) { + throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); + } + pathParams.put("transferLimitId", transferLimitId); String requestBody = null; Resource resource = @@ -148,39 +148,39 @@ public void deletePendingTransferLimit( /** * Get the details of a transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance platform. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @return {@link TransferLimit } * @throws ApiException if fails to make API call */ - public TransferLimit getSpecificTransferLimit(String transferLimitId, String id) + public TransferLimit getSpecificTransferLimit(String id, String transferLimitId) throws ApiException, IOException { - return getSpecificTransferLimit(transferLimitId, id, null); + return getSpecificTransferLimit(id, transferLimitId, null); } /** * Get the details of a transfer limit * - * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param id {@link String } The unique identifier of the balance platform. (required) + * @param transferLimitId {@link String } The unique identifier of the transfer limit. (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as * idempotency-keys (optional) * @return {@link TransferLimit } * @throws ApiException if fails to make API call */ public TransferLimit getSpecificTransferLimit( - String transferLimitId, String id, RequestOptions requestOptions) + String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException { // Add path params Map pathParams = new HashMap<>(); - if (transferLimitId == null) { - throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); - } - pathParams.put("transferLimitId", transferLimitId); if (id == null) { throw new IllegalArgumentException("Please provide the id path parameter"); } pathParams.put("id", id); + if (transferLimitId == null) { + throw new IllegalArgumentException("Please provide the transferLimitId path parameter"); + } + pathParams.put("transferLimitId", transferLimitId); String requestBody = null; Resource resource =