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/AchDetails.java b/src/main/java/com/adyen/model/checkout/AchDetails.java index 8bc042147..887e5ce4b 100644 --- a/src/main/java/com/adyen/model/checkout/AchDetails.java +++ b/src/main/java/com/adyen/model/checkout/AchDetails.java @@ -32,6 +32,7 @@ AchDetails.JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID, AchDetails.JSON_PROPERTY_OWNER_NAME, AchDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + AchDetails.JSON_PROPERTY_SDK_DATA, AchDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AchDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, AchDetails.JSON_PROPERTY_TYPE @@ -158,6 +159,9 @@ public static BankAccountTypeEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -579,6 +583,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AchDetails} instance, allowing for method chaining + */ + public AchDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -709,6 +747,7 @@ public boolean equals(Object o) { && Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId) && Objects.equals(this.ownerName, achDetails.ownerName) && Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) + && Objects.equals(this.sdkData, achDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) && Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) && Objects.equals(this.type, achDetails.type); @@ -726,6 +765,7 @@ public int hashCode() { encryptedBankLocationId, ownerName, recurringDetailReference, + sdkData, storedPaymentMethodId, transferInstrumentId, type); @@ -750,6 +790,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java index bd62aa77e..12c5a5ef1 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java @@ -397,15 +397,16 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * @@ -421,15 +422,16 @@ public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item * in a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * @@ -443,15 +445,16 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * diff --git a/src/main/java/com/adyen/model/checkout/AffirmDetails.java b/src/main/java/com/adyen/model/checkout/AffirmDetails.java index 9ff5682df..3e873314a 100644 --- a/src/main/java/com/adyen/model/checkout/AffirmDetails.java +++ b/src/main/java/com/adyen/model/checkout/AffirmDetails.java @@ -24,12 +24,16 @@ /** AffirmDetails */ @JsonPropertyOrder({ AffirmDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + AffirmDetails.JSON_PROPERTY_SDK_DATA, AffirmDetails.JSON_PROPERTY_TYPE }) public class AffirmDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **affirm** */ public enum TypeEnum { AFFIRM(String.valueOf("affirm")); @@ -107,6 +111,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AffirmDetails} instance, allowing for method chaining + */ + public AffirmDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **affirm** * @@ -151,12 +189,13 @@ public boolean equals(Object o) { } AffirmDetails affirmDetails = (AffirmDetails) o; return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, affirmDetails.sdkData) && Objects.equals(this.type, affirmDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, type); + return Objects.hash(checkoutAttemptId, sdkData, type); } @Override @@ -164,6 +203,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AffirmDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java index e6c353358..989e36972 100644 --- a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java @@ -28,6 +28,7 @@ AfterpayDetails.JSON_PROPERTY_DELIVERY_ADDRESS, AfterpayDetails.JSON_PROPERTY_PERSONAL_DETAILS, AfterpayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + AfterpayDetails.JSON_PROPERTY_SDK_DATA, AfterpayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AfterpayDetails.JSON_PROPERTY_TYPE }) @@ -48,6 +49,9 @@ public class AfterpayDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -278,6 +282,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AfterpayDetails} instance, allowing for method chaining + */ + public AfterpayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -365,6 +403,7 @@ public boolean equals(Object o) { && Objects.equals(this.deliveryAddress, afterpayDetails.deliveryAddress) && Objects.equals(this.personalDetails, afterpayDetails.personalDetails) && Objects.equals(this.recurringDetailReference, afterpayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, afterpayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, afterpayDetails.storedPaymentMethodId) && Objects.equals(this.type, afterpayDetails.type); } @@ -377,6 +416,7 @@ public int hashCode() { deliveryAddress, personalDetails, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -392,6 +432,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java index 023946dd0..cd92a982a 100644 --- a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java @@ -26,6 +26,7 @@ AmazonPayDetails.JSON_PROPERTY_AMAZON_PAY_TOKEN, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_SESSION_ID, + AmazonPayDetails.JSON_PROPERTY_SDK_DATA, AmazonPayDetails.JSON_PROPERTY_TYPE }) public class AmazonPayDetails { @@ -38,6 +39,9 @@ public class AmazonPayDetails { public static final String JSON_PROPERTY_CHECKOUT_SESSION_ID = "checkoutSessionId"; private String checkoutSessionId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **amazonpay** */ public enum TypeEnum { AMAZONPAY(String.valueOf("amazonpay")); @@ -208,6 +212,40 @@ public void setCheckoutSessionId(String checkoutSessionId) { this.checkoutSessionId = checkoutSessionId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AmazonPayDetails} instance, allowing for method chaining + */ + public AmazonPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **amazonpay** * @@ -254,12 +292,13 @@ public boolean equals(Object o) { return Objects.equals(this.amazonPayToken, amazonPayDetails.amazonPayToken) && Objects.equals(this.checkoutAttemptId, amazonPayDetails.checkoutAttemptId) && Objects.equals(this.checkoutSessionId, amazonPayDetails.checkoutSessionId) + && Objects.equals(this.sdkData, amazonPayDetails.sdkData) && Objects.equals(this.type, amazonPayDetails.type); } @Override public int hashCode() { - return Objects.hash(amazonPayToken, checkoutAttemptId, checkoutSessionId, type); + return Objects.hash(amazonPayToken, checkoutAttemptId, checkoutSessionId, sdkData, type); } @Override @@ -269,6 +308,7 @@ public String toString() { sb.append(" amazonPayToken: ").append(toIndentedString(amazonPayToken)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" checkoutSessionId: ").append(toIndentedString(checkoutSessionId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/AncvDetails.java b/src/main/java/com/adyen/model/checkout/AncvDetails.java index f9d406b7c..414b19ebe 100644 --- a/src/main/java/com/adyen/model/checkout/AncvDetails.java +++ b/src/main/java/com/adyen/model/checkout/AncvDetails.java @@ -26,6 +26,7 @@ AncvDetails.JSON_PROPERTY_BENEFICIARY_ID, AncvDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AncvDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + AncvDetails.JSON_PROPERTY_SDK_DATA, AncvDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AncvDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class AncvDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -198,6 +202,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AncvDetails} instance, allowing for method chaining + */ + public AncvDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -283,6 +321,7 @@ public boolean equals(Object o) { return Objects.equals(this.beneficiaryId, ancvDetails.beneficiaryId) && Objects.equals(this.checkoutAttemptId, ancvDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, ancvDetails.recurringDetailReference) + && Objects.equals(this.sdkData, ancvDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, ancvDetails.storedPaymentMethodId) && Objects.equals(this.type, ancvDetails.type); } @@ -290,7 +329,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - beneficiaryId, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + beneficiaryId, + checkoutAttemptId, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -302,6 +346,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java index f4a04af78..5ec29d824 100644 --- a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java @@ -24,12 +24,16 @@ /** AndroidPayDetails */ @JsonPropertyOrder({ AndroidPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + AndroidPayDetails.JSON_PROPERTY_SDK_DATA, AndroidPayDetails.JSON_PROPERTY_TYPE }) public class AndroidPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **androidpay** */ public enum TypeEnum { ANDROIDPAY(String.valueOf("androidpay")); @@ -107,6 +111,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AndroidPayDetails} instance, allowing for method chaining + */ + public AndroidPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **androidpay** * @@ -151,12 +189,13 @@ public boolean equals(Object o) { } AndroidPayDetails androidPayDetails = (AndroidPayDetails) o; return Objects.equals(this.checkoutAttemptId, androidPayDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, androidPayDetails.sdkData) && Objects.equals(this.type, androidPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, type); + return Objects.hash(checkoutAttemptId, sdkData, type); } @Override @@ -164,6 +203,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AndroidPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java index 6f262032a..df1ec1622 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java @@ -27,6 +27,7 @@ ApplePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, ApplePayDetails.JSON_PROPERTY_FUNDING_SOURCE, ApplePayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + ApplePayDetails.JSON_PROPERTY_SDK_DATA, ApplePayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDetails.JSON_PROPERTY_TYPE }) @@ -88,6 +89,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -294,6 +298,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code ApplePayDetails} instance, allowing for method chaining + */ + public ApplePayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -380,6 +418,7 @@ public boolean equals(Object o) { && Objects.equals(this.checkoutAttemptId, applePayDetails.checkoutAttemptId) && Objects.equals(this.fundingSource, applePayDetails.fundingSource) && Objects.equals(this.recurringDetailReference, applePayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, applePayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, applePayDetails.storedPaymentMethodId) && Objects.equals(this.type, applePayDetails.type); } @@ -391,6 +430,7 @@ public int hashCode() { checkoutAttemptId, fundingSource, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -405,6 +445,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java index 65439971d..641efc502 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java @@ -27,6 +27,7 @@ ApplePayDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, ApplePayDonations.JSON_PROPERTY_FUNDING_SOURCE, ApplePayDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + ApplePayDonations.JSON_PROPERTY_SDK_DATA, ApplePayDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDonations.JSON_PROPERTY_TYPE }) @@ -88,6 +89,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -294,6 +298,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code ApplePayDonations} instance, allowing for method chaining + */ + public ApplePayDonations sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -380,6 +418,7 @@ public boolean equals(Object o) { && Objects.equals(this.checkoutAttemptId, applePayDonations.checkoutAttemptId) && Objects.equals(this.fundingSource, applePayDonations.fundingSource) && Objects.equals(this.recurringDetailReference, applePayDonations.recurringDetailReference) + && Objects.equals(this.sdkData, applePayDonations.sdkData) && Objects.equals(this.storedPaymentMethodId, applePayDonations.storedPaymentMethodId) && Objects.equals(this.type, applePayDonations.type); } @@ -391,6 +430,7 @@ public int hashCode() { checkoutAttemptId, fundingSource, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -405,6 +445,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java index 842c7b180..831246a56 100644 --- a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java @@ -28,6 +28,7 @@ BacsDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, BacsDirectDebitDetails.JSON_PROPERTY_HOLDER_NAME, BacsDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + BacsDirectDebitDetails.JSON_PROPERTY_SDK_DATA, BacsDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, BacsDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, BacsDirectDebitDetails.JSON_PROPERTY_TYPE @@ -49,6 +50,9 @@ public class BacsDirectDebitDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -276,6 +280,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining + */ + public BacsDirectDebitDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -403,6 +441,7 @@ public boolean equals(Object o) { && Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) && Objects.equals( this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) + && Objects.equals(this.sdkData, bacsDirectDebitDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) && Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) && Objects.equals(this.type, bacsDirectDebitDetails.type); @@ -416,6 +455,7 @@ public int hashCode() { checkoutAttemptId, holderName, recurringDetailReference, + sdkData, storedPaymentMethodId, transferInstrumentId, type); @@ -432,6 +472,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index 5c663c73d..445ece698 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -878,18 +878,18 @@ public void setInstallments(Installments installments) { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest localizedShopperStatement( @@ -909,18 +909,18 @@ public BalanceCheckRequest putLocalizedShopperStatementItem( /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -930,18 +930,18 @@ public Map getLocalizedShopperStatement() { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java index 64442fc83..a07cafae7 100644 --- a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java +++ b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ BillDeskDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, BillDeskDetails.JSON_PROPERTY_ISSUER, + BillDeskDetails.JSON_PROPERTY_SDK_DATA, BillDeskDetails.JSON_PROPERTY_TYPE }) public class BillDeskDetails { @@ -34,6 +35,9 @@ public class BillDeskDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **billdesk** */ public enum TypeEnum { BILLDESK_ONLINE(String.valueOf("billdesk_online")), @@ -146,6 +150,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code BillDeskDetails} instance, allowing for method chaining + */ + public BillDeskDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **billdesk** * @@ -191,12 +229,13 @@ public boolean equals(Object o) { BillDeskDetails billDeskDetails = (BillDeskDetails) o; return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) && Objects.equals(this.issuer, billDeskDetails.issuer) + && Objects.equals(this.sdkData, billDeskDetails.sdkData) && Objects.equals(this.type, billDeskDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, type); } @Override @@ -205,6 +244,7 @@ public String toString() { sb.append("class BillDeskDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/BlikDetails.java b/src/main/java/com/adyen/model/checkout/BlikDetails.java index 49c626d4f..e95f78c0e 100644 --- a/src/main/java/com/adyen/model/checkout/BlikDetails.java +++ b/src/main/java/com/adyen/model/checkout/BlikDetails.java @@ -26,6 +26,7 @@ BlikDetails.JSON_PROPERTY_BLIK_CODE, BlikDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, BlikDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + BlikDetails.JSON_PROPERTY_SDK_DATA, BlikDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, BlikDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class BlikDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -198,6 +202,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code BlikDetails} instance, allowing for method chaining + */ + public BlikDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -283,6 +321,7 @@ public boolean equals(Object o) { return Objects.equals(this.blikCode, blikDetails.blikCode) && Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) + && Objects.equals(this.sdkData, blikDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) && Objects.equals(this.type, blikDetails.type); } @@ -290,7 +329,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + blikCode, + checkoutAttemptId, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -302,6 +346,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 7f242b565..7ed5d2647 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, @@ -41,6 +42,7 @@ CardDetails.JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE, CardDetails.JSON_PROPERTY_NUMBER, CardDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + CardDetails.JSON_PROPERTY_SDK_DATA, CardDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, CardDetails.JSON_PROPERTY_SRC_CORRELATION_ID, CardDetails.JSON_PROPERTY_SRC_DIGITAL_CARD_ID, @@ -51,6 +53,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; @@ -151,6 +156,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -230,6 +238,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**. * @@ -899,6 +949,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code CardDetails} instance, allowing for method chaining + */ + public CardDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used only for recurring payments in India. @@ -1197,7 +1281,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) @@ -1215,6 +1300,7 @@ public boolean equals(Object o) { && Objects.equals(this.networkPaymentReference, cardDetails.networkPaymentReference) && Objects.equals(this.number, cardDetails.number) && Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) + && Objects.equals(this.sdkData, cardDetails.sdkData) && Objects.equals( this.shopperNotificationReference, cardDetails.shopperNotificationReference) && Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) @@ -1229,6 +1315,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + billingSequenceNumber, brand, checkoutAttemptId, cupsecureplusSmscode, @@ -1247,6 +1334,7 @@ public int hashCode() { networkPaymentReference, number, recurringDetailReference, + sdkData, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, @@ -1261,6 +1349,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: ") @@ -1293,6 +1384,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 2f55a3fcb..3682b6618 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, @@ -41,6 +42,7 @@ CardDonations.JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE, CardDonations.JSON_PROPERTY_NUMBER, CardDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + CardDonations.JSON_PROPERTY_SDK_DATA, CardDonations.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, CardDonations.JSON_PROPERTY_SRC_CORRELATION_ID, CardDonations.JSON_PROPERTY_SRC_DIGITAL_CARD_ID, @@ -51,6 +53,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; @@ -151,6 +156,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -230,6 +238,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**. * @@ -899,6 +949,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code CardDonations} instance, allowing for method chaining + */ + public CardDonations sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used only for recurring payments in India. @@ -1197,7 +1281,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) @@ -1215,6 +1300,7 @@ public boolean equals(Object o) { && Objects.equals(this.networkPaymentReference, cardDonations.networkPaymentReference) && Objects.equals(this.number, cardDonations.number) && Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) + && Objects.equals(this.sdkData, cardDonations.sdkData) && Objects.equals( this.shopperNotificationReference, cardDonations.shopperNotificationReference) && Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) @@ -1229,6 +1315,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + billingSequenceNumber, brand, checkoutAttemptId, cupsecureplusSmscode, @@ -1247,6 +1334,7 @@ public int hashCode() { networkPaymentReference, number, recurringDetailReference, + sdkData, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, @@ -1261,6 +1349,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: ") @@ -1293,6 +1384,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CashAppDetails.java b/src/main/java/com/adyen/model/checkout/CashAppDetails.java index 630dee12b..c1ab53394 100644 --- a/src/main/java/com/adyen/model/checkout/CashAppDetails.java +++ b/src/main/java/com/adyen/model/checkout/CashAppDetails.java @@ -30,6 +30,7 @@ CashAppDetails.JSON_PROPERTY_ON_FILE_GRANT_ID, CashAppDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, CashAppDetails.JSON_PROPERTY_REQUEST_ID, + CashAppDetails.JSON_PROPERTY_SDK_DATA, CashAppDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, CashAppDetails.JSON_PROPERTY_SUBTYPE, CashAppDetails.JSON_PROPERTY_TYPE @@ -57,6 +58,9 @@ public class CashAppDetails { public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -350,6 +354,40 @@ public void setRequestId(String requestId) { this.requestId = requestId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code CashAppDetails} instance, allowing for method chaining + */ + public CashAppDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -472,6 +510,7 @@ public boolean equals(Object o) { && Objects.equals(this.onFileGrantId, cashAppDetails.onFileGrantId) && Objects.equals(this.recurringDetailReference, cashAppDetails.recurringDetailReference) && Objects.equals(this.requestId, cashAppDetails.requestId) + && Objects.equals(this.sdkData, cashAppDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, cashAppDetails.storedPaymentMethodId) && Objects.equals(this.subtype, cashAppDetails.subtype) && Objects.equals(this.type, cashAppDetails.type); @@ -487,6 +526,7 @@ public int hashCode() { onFileGrantId, recurringDetailReference, requestId, + sdkData, storedPaymentMethodId, subtype, type); @@ -505,6 +545,7 @@ public String toString() { .append(toIndentedString(recurringDetailReference)) .append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CellulantDetails.java b/src/main/java/com/adyen/model/checkout/CellulantDetails.java index cd0758abd..2857742df 100644 --- a/src/main/java/com/adyen/model/checkout/CellulantDetails.java +++ b/src/main/java/com/adyen/model/checkout/CellulantDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ CellulantDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, CellulantDetails.JSON_PROPERTY_ISSUER, + CellulantDetails.JSON_PROPERTY_SDK_DATA, CellulantDetails.JSON_PROPERTY_TYPE }) public class CellulantDetails { @@ -34,6 +35,9 @@ public class CellulantDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **Cellulant** */ public enum TypeEnum { CELLULANT(String.valueOf("cellulant")); @@ -144,6 +148,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code CellulantDetails} instance, allowing for method chaining + */ + public CellulantDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **Cellulant** * @@ -189,12 +227,13 @@ public boolean equals(Object o) { CellulantDetails cellulantDetails = (CellulantDetails) o; return Objects.equals(this.checkoutAttemptId, cellulantDetails.checkoutAttemptId) && Objects.equals(this.issuer, cellulantDetails.issuer) + && Objects.equals(this.sdkData, cellulantDetails.sdkData) && Objects.equals(this.type, cellulantDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, type); } @Override @@ -203,6 +242,7 @@ public String toString() { sb.append("class CellulantDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); 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/DokuDetails.java b/src/main/java/com/adyen/model/checkout/DokuDetails.java index d5a4a36af..1df8f345b 100644 --- a/src/main/java/com/adyen/model/checkout/DokuDetails.java +++ b/src/main/java/com/adyen/model/checkout/DokuDetails.java @@ -26,6 +26,7 @@ DokuDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DokuDetails.JSON_PROPERTY_FIRST_NAME, DokuDetails.JSON_PROPERTY_LAST_NAME, + DokuDetails.JSON_PROPERTY_SDK_DATA, DokuDetails.JSON_PROPERTY_SHOPPER_EMAIL, DokuDetails.JSON_PROPERTY_TYPE }) @@ -39,6 +40,9 @@ public class DokuDetails { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; @@ -205,6 +209,40 @@ public void setLastName(String lastName) { this.lastName = lastName; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code DokuDetails} instance, allowing for method chaining + */ + public DokuDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The shopper's email. * @@ -284,13 +322,14 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) && Objects.equals(this.firstName, dokuDetails.firstName) && Objects.equals(this.lastName, dokuDetails.lastName) + && Objects.equals(this.sdkData, dokuDetails.sdkData) && Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) && Objects.equals(this.type, dokuDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, firstName, lastName, shopperEmail, type); + return Objects.hash(checkoutAttemptId, firstName, lastName, sdkData, shopperEmail, type); } @Override @@ -300,6 +339,7 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java index 932c8211a..b03bc32fc 100644 --- a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ DragonpayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DragonpayDetails.JSON_PROPERTY_ISSUER, + DragonpayDetails.JSON_PROPERTY_SDK_DATA, DragonpayDetails.JSON_PROPERTY_SHOPPER_EMAIL, DragonpayDetails.JSON_PROPERTY_TYPE }) @@ -35,6 +36,9 @@ public class DragonpayDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; @@ -160,6 +164,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code DragonpayDetails} instance, allowing for method chaining + */ + public DragonpayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The shopper’s email address. * @@ -238,13 +276,14 @@ public boolean equals(Object o) { DragonpayDetails dragonpayDetails = (DragonpayDetails) o; return Objects.equals(this.checkoutAttemptId, dragonpayDetails.checkoutAttemptId) && Objects.equals(this.issuer, dragonpayDetails.issuer) + && Objects.equals(this.sdkData, dragonpayDetails.sdkData) && Objects.equals(this.shopperEmail, dragonpayDetails.shopperEmail) && Objects.equals(this.type, dragonpayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, shopperEmail, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, shopperEmail, type); } @Override @@ -253,6 +292,7 @@ public String toString() { sb.append("class DragonpayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java index e4fd77e2d..e239df293 100644 --- a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java +++ b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ EBankingFinlandDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EBankingFinlandDetails.JSON_PROPERTY_ISSUER, + EBankingFinlandDetails.JSON_PROPERTY_SDK_DATA, EBankingFinlandDetails.JSON_PROPERTY_TYPE }) public class EBankingFinlandDetails { @@ -34,6 +35,9 @@ public class EBankingFinlandDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **ebanking_FI** */ public enum TypeEnum { EBANKING_FI(String.valueOf("ebanking_FI")); @@ -144,6 +148,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining + */ + public EBankingFinlandDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **ebanking_FI** * @@ -189,12 +227,13 @@ public boolean equals(Object o) { EBankingFinlandDetails ebankingFinlandDetails = (EBankingFinlandDetails) o; return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) && Objects.equals(this.issuer, ebankingFinlandDetails.issuer) + && Objects.equals(this.sdkData, ebankingFinlandDetails.sdkData) && Objects.equals(this.type, ebankingFinlandDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, type); } @Override @@ -203,6 +242,7 @@ public String toString() { sb.append("class EBankingFinlandDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java index d8918958f..eb8856400 100644 --- a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java +++ b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java @@ -26,6 +26,7 @@ EcontextVoucherDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EcontextVoucherDetails.JSON_PROPERTY_FIRST_NAME, EcontextVoucherDetails.JSON_PROPERTY_LAST_NAME, + EcontextVoucherDetails.JSON_PROPERTY_SDK_DATA, EcontextVoucherDetails.JSON_PROPERTY_SHOPPER_EMAIL, EcontextVoucherDetails.JSON_PROPERTY_TELEPHONE_NUMBER, EcontextVoucherDetails.JSON_PROPERTY_TYPE @@ -40,6 +41,9 @@ public class EcontextVoucherDetails { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; @@ -197,6 +201,40 @@ public void setLastName(String lastName) { this.lastName = lastName; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code EcontextVoucherDetails} instance, allowing for method chaining + */ + public EcontextVoucherDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The shopper's email. * @@ -321,6 +359,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, econtextVoucherDetails.checkoutAttemptId) && Objects.equals(this.firstName, econtextVoucherDetails.firstName) && Objects.equals(this.lastName, econtextVoucherDetails.lastName) + && Objects.equals(this.sdkData, econtextVoucherDetails.sdkData) && Objects.equals(this.shopperEmail, econtextVoucherDetails.shopperEmail) && Objects.equals(this.telephoneNumber, econtextVoucherDetails.telephoneNumber) && Objects.equals(this.type, econtextVoucherDetails.type); @@ -329,7 +368,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, firstName, lastName, shopperEmail, telephoneNumber, type); + checkoutAttemptId, firstName, lastName, sdkData, shopperEmail, telephoneNumber, type); } @Override @@ -339,6 +378,7 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/EftDetails.java b/src/main/java/com/adyen/model/checkout/EftDetails.java index f841f8a0c..388ec456b 100644 --- a/src/main/java/com/adyen/model/checkout/EftDetails.java +++ b/src/main/java/com/adyen/model/checkout/EftDetails.java @@ -29,6 +29,7 @@ EftDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EftDetails.JSON_PROPERTY_OWNER_NAME, EftDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + EftDetails.JSON_PROPERTY_SDK_DATA, EftDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, EftDetails.JSON_PROPERTY_TYPE }) @@ -52,6 +53,9 @@ public class EftDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -357,6 +361,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code EftDetails} instance, allowing for method chaining + */ + public EftDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -445,6 +483,7 @@ public boolean equals(Object o) { && Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) && Objects.equals(this.ownerName, eftDetails.ownerName) && Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) + && Objects.equals(this.sdkData, eftDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) && Objects.equals(this.type, eftDetails.type); } @@ -458,6 +497,7 @@ public int hashCode() { checkoutAttemptId, ownerName, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -474,6 +514,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java index 909ee2d52..032b9261e 100644 --- a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java +++ b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java @@ -26,6 +26,7 @@ FastlaneDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, FastlaneDetails.JSON_PROPERTY_FASTLANE_DATA, FastlaneDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + FastlaneDetails.JSON_PROPERTY_SDK_DATA, FastlaneDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, FastlaneDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class FastlaneDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -198,6 +202,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code FastlaneDetails} instance, allowing for method chaining + */ + public FastlaneDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -283,6 +321,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, fastlaneDetails.checkoutAttemptId) && Objects.equals(this.fastlaneData, fastlaneDetails.fastlaneData) && Objects.equals(this.recurringDetailReference, fastlaneDetails.recurringDetailReference) + && Objects.equals(this.sdkData, fastlaneDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, fastlaneDetails.storedPaymentMethodId) && Objects.equals(this.type, fastlaneDetails.type); } @@ -290,7 +329,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, fastlaneData, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, + fastlaneData, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -302,6 +346,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .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..fac91915d 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -26,6 +26,7 @@ GenericIssuerPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_ISSUER, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + GenericIssuerPaymentMethodDetails.JSON_PROPERTY_SDK_DATA, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class GenericIssuerPaymentMethodDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -51,7 +55,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()); @@ -208,6 +214,41 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining + */ + public GenericIssuerPaymentMethodDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -299,6 +340,7 @@ public boolean equals(Object o) { && Objects.equals( this.recurringDetailReference, genericIssuerPaymentMethodDetails.recurringDetailReference) + && Objects.equals(this.sdkData, genericIssuerPaymentMethodDetails.sdkData) && Objects.equals( this.storedPaymentMethodId, genericIssuerPaymentMethodDetails.storedPaymentMethodId) && Objects.equals(this.type, genericIssuerPaymentMethodDetails.type); @@ -307,7 +349,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, issuer, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -319,6 +361,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java index c5092a4a2..deb73e02a 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java @@ -28,6 +28,7 @@ GooglePayDetails.JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK, GooglePayDetails.JSON_PROPERTY_GOOGLE_PAY_TOKEN, GooglePayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + GooglePayDetails.JSON_PROPERTY_SDK_DATA, GooglePayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, GooglePayDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDetails.JSON_PROPERTY_TYPE @@ -93,6 +94,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -341,6 +345,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code GooglePayDetails} instance, allowing for method chaining + */ + public GooglePayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -464,6 +502,7 @@ public boolean equals(Object o) { && Objects.equals(this.googlePayCardNetwork, googlePayDetails.googlePayCardNetwork) && Objects.equals(this.googlePayToken, googlePayDetails.googlePayToken) && Objects.equals(this.recurringDetailReference, googlePayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, googlePayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, googlePayDetails.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, googlePayDetails.threeDS2SdkVersion) && Objects.equals(this.type, googlePayDetails.type); @@ -477,6 +516,7 @@ public int hashCode() { googlePayCardNetwork, googlePayToken, recurringDetailReference, + sdkData, storedPaymentMethodId, threeDS2SdkVersion, type); @@ -495,6 +535,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java index 06fc459bb..825b39743 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java @@ -28,6 +28,7 @@ GooglePayDonations.JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK, GooglePayDonations.JSON_PROPERTY_GOOGLE_PAY_TOKEN, GooglePayDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + GooglePayDonations.JSON_PROPERTY_SDK_DATA, GooglePayDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, GooglePayDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDonations.JSON_PROPERTY_TYPE @@ -93,6 +94,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -341,6 +345,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code GooglePayDonations} instance, allowing for method chaining + */ + public GooglePayDonations sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -465,6 +503,7 @@ public boolean equals(Object o) { && Objects.equals(this.googlePayToken, googlePayDonations.googlePayToken) && Objects.equals( this.recurringDetailReference, googlePayDonations.recurringDetailReference) + && Objects.equals(this.sdkData, googlePayDonations.sdkData) && Objects.equals(this.storedPaymentMethodId, googlePayDonations.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, googlePayDonations.threeDS2SdkVersion) && Objects.equals(this.type, googlePayDonations.type); @@ -478,6 +517,7 @@ public int hashCode() { googlePayCardNetwork, googlePayToken, recurringDetailReference, + sdkData, storedPaymentMethodId, threeDS2SdkVersion, type); @@ -496,6 +536,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/IdealDetails.java b/src/main/java/com/adyen/model/checkout/IdealDetails.java index 6395e4994..02327e6fe 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDetails.java +++ b/src/main/java/com/adyen/model/checkout/IdealDetails.java @@ -26,6 +26,7 @@ IdealDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDetails.JSON_PROPERTY_ISSUER, IdealDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + IdealDetails.JSON_PROPERTY_SDK_DATA, IdealDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class IdealDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -204,6 +208,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code IdealDetails} instance, allowing for method chaining + */ + public IdealDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -289,6 +327,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, idealDetails.checkoutAttemptId) && Objects.equals(this.issuer, idealDetails.issuer) && Objects.equals(this.recurringDetailReference, idealDetails.recurringDetailReference) + && Objects.equals(this.sdkData, idealDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, idealDetails.storedPaymentMethodId) && Objects.equals(this.type, idealDetails.type); } @@ -296,7 +335,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, issuer, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -308,6 +347,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/IdealDonations.java b/src/main/java/com/adyen/model/checkout/IdealDonations.java index 069c8661a..9db35edf2 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDonations.java +++ b/src/main/java/com/adyen/model/checkout/IdealDonations.java @@ -26,6 +26,7 @@ IdealDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDonations.JSON_PROPERTY_ISSUER, IdealDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + IdealDonations.JSON_PROPERTY_SDK_DATA, IdealDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDonations.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class IdealDonations { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -204,6 +208,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code IdealDonations} instance, allowing for method chaining + */ + public IdealDonations sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -289,6 +327,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, idealDonations.checkoutAttemptId) && Objects.equals(this.issuer, idealDonations.issuer) && Objects.equals(this.recurringDetailReference, idealDonations.recurringDetailReference) + && Objects.equals(this.sdkData, idealDonations.sdkData) && Objects.equals(this.storedPaymentMethodId, idealDonations.storedPaymentMethodId) && Objects.equals(this.type, idealDonations.type); } @@ -296,7 +335,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, issuer, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -308,6 +347,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java index 0e9cb4f44..8ce91db46 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java @@ -28,6 +28,7 @@ KlarnaDetails.JSON_PROPERTY_DELIVERY_ADDRESS, KlarnaDetails.JSON_PROPERTY_PERSONAL_DETAILS, KlarnaDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + KlarnaDetails.JSON_PROPERTY_SDK_DATA, KlarnaDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, KlarnaDetails.JSON_PROPERTY_SUBTYPE, KlarnaDetails.JSON_PROPERTY_TYPE @@ -49,6 +50,9 @@ public class KlarnaDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -288,6 +292,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code KlarnaDetails} instance, allowing for method chaining + */ + public KlarnaDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -408,6 +446,7 @@ public boolean equals(Object o) { && Objects.equals(this.deliveryAddress, klarnaDetails.deliveryAddress) && Objects.equals(this.personalDetails, klarnaDetails.personalDetails) && Objects.equals(this.recurringDetailReference, klarnaDetails.recurringDetailReference) + && Objects.equals(this.sdkData, klarnaDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, klarnaDetails.storedPaymentMethodId) && Objects.equals(this.subtype, klarnaDetails.subtype) && Objects.equals(this.type, klarnaDetails.type); @@ -421,6 +460,7 @@ public int hashCode() { deliveryAddress, personalDetails, recurringDetailReference, + sdkData, storedPaymentMethodId, subtype, type); @@ -437,6 +477,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java index e3c4adcb5..43f4d35e1 100644 --- a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java +++ b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java @@ -26,6 +26,7 @@ MasterpassDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MasterpassDetails.JSON_PROPERTY_FUNDING_SOURCE, MasterpassDetails.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, + MasterpassDetails.JSON_PROPERTY_SDK_DATA, MasterpassDetails.JSON_PROPERTY_TYPE }) public class MasterpassDetails { @@ -82,6 +83,9 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_MASTERPASS_TRANSACTION_ID = "masterpassTransactionId"; private String masterpassTransactionId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **masterpass** */ public enum TypeEnum { MASTERPASS(String.valueOf("masterpass")); @@ -234,6 +238,40 @@ public void setMasterpassTransactionId(String masterpassTransactionId) { this.masterpassTransactionId = masterpassTransactionId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code MasterpassDetails} instance, allowing for method chaining + */ + public MasterpassDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **masterpass** * @@ -280,12 +318,13 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, masterpassDetails.checkoutAttemptId) && Objects.equals(this.fundingSource, masterpassDetails.fundingSource) && Objects.equals(this.masterpassTransactionId, masterpassDetails.masterpassTransactionId) + && Objects.equals(this.sdkData, masterpassDetails.sdkData) && Objects.equals(this.type, masterpassDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, masterpassTransactionId, type); + return Objects.hash(checkoutAttemptId, fundingSource, masterpassTransactionId, sdkData, type); } @Override @@ -297,6 +336,7 @@ public String toString() { sb.append(" masterpassTransactionId: ") .append(toIndentedString(masterpassTransactionId)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/MbwayDetails.java b/src/main/java/com/adyen/model/checkout/MbwayDetails.java index f90268351..93fde7b67 100644 --- a/src/main/java/com/adyen/model/checkout/MbwayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MbwayDetails.java @@ -24,6 +24,7 @@ /** MbwayDetails */ @JsonPropertyOrder({ MbwayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + MbwayDetails.JSON_PROPERTY_SDK_DATA, MbwayDetails.JSON_PROPERTY_SHOPPER_EMAIL, MbwayDetails.JSON_PROPERTY_TELEPHONE_NUMBER, MbwayDetails.JSON_PROPERTY_TYPE @@ -32,6 +33,9 @@ public class MbwayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; @@ -115,6 +119,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code MbwayDetails} instance, allowing for method chaining + */ + public MbwayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * @param shopperEmail * @return the current {@code MbwayDetails} instance, allowing for method chaining @@ -213,6 +251,7 @@ public boolean equals(Object o) { } MbwayDetails mbwayDetails = (MbwayDetails) o; return Objects.equals(this.checkoutAttemptId, mbwayDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, mbwayDetails.sdkData) && Objects.equals(this.shopperEmail, mbwayDetails.shopperEmail) && Objects.equals(this.telephoneNumber, mbwayDetails.telephoneNumber) && Objects.equals(this.type, mbwayDetails.type); @@ -220,7 +259,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, shopperEmail, telephoneNumber, type); + return Objects.hash(checkoutAttemptId, sdkData, shopperEmail, telephoneNumber, type); } @Override @@ -228,6 +267,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MbwayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java index 86222695f..fbd744f13 100644 --- a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java @@ -24,12 +24,16 @@ /** MobilePayDetails */ @JsonPropertyOrder({ MobilePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + MobilePayDetails.JSON_PROPERTY_SDK_DATA, MobilePayDetails.JSON_PROPERTY_TYPE }) public class MobilePayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **mobilepay** */ public enum TypeEnum { MOBILEPAY(String.valueOf("mobilepay")); @@ -107,6 +111,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code MobilePayDetails} instance, allowing for method chaining + */ + public MobilePayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **mobilepay** * @@ -151,12 +189,13 @@ public boolean equals(Object o) { } MobilePayDetails mobilePayDetails = (MobilePayDetails) o; return Objects.equals(this.checkoutAttemptId, mobilePayDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, mobilePayDetails.sdkData) && Objects.equals(this.type, mobilePayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, type); + return Objects.hash(checkoutAttemptId, sdkData, type); } @Override @@ -164,6 +203,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MobilePayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/MolPayDetails.java b/src/main/java/com/adyen/model/checkout/MolPayDetails.java index 46137acd1..510f3157b 100644 --- a/src/main/java/com/adyen/model/checkout/MolPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MolPayDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ MolPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MolPayDetails.JSON_PROPERTY_ISSUER, + MolPayDetails.JSON_PROPERTY_SDK_DATA, MolPayDetails.JSON_PROPERTY_TYPE }) public class MolPayDetails { @@ -34,6 +35,9 @@ public class MolPayDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **molpay** */ public enum TypeEnum { MOLPAY_EBANKING_FPX_MY(String.valueOf("molpay_ebanking_fpx_MY")), @@ -149,6 +153,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code MolPayDetails} instance, allowing for method chaining + */ + public MolPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **molpay** * @@ -194,12 +232,13 @@ public boolean equals(Object o) { MolPayDetails molPayDetails = (MolPayDetails) o; return Objects.equals(this.checkoutAttemptId, molPayDetails.checkoutAttemptId) && Objects.equals(this.issuer, molPayDetails.issuer) + && Objects.equals(this.sdkData, molPayDetails.sdkData) && Objects.equals(this.type, molPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, type); } @Override @@ -208,6 +247,7 @@ public String toString() { sb.append("class MolPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java index 9c33b6e20..b022c35dc 100644 --- a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java +++ b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java @@ -28,6 +28,7 @@ OpenInvoiceDetails.JSON_PROPERTY_DELIVERY_ADDRESS, OpenInvoiceDetails.JSON_PROPERTY_PERSONAL_DETAILS, OpenInvoiceDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + OpenInvoiceDetails.JSON_PROPERTY_SDK_DATA, OpenInvoiceDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, OpenInvoiceDetails.JSON_PROPERTY_TYPE }) @@ -48,6 +49,9 @@ public class OpenInvoiceDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -276,6 +280,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining + */ + public OpenInvoiceDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -364,6 +402,7 @@ public boolean equals(Object o) { && Objects.equals(this.personalDetails, openInvoiceDetails.personalDetails) && Objects.equals( this.recurringDetailReference, openInvoiceDetails.recurringDetailReference) + && Objects.equals(this.sdkData, openInvoiceDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, openInvoiceDetails.storedPaymentMethodId) && Objects.equals(this.type, openInvoiceDetails.type); } @@ -376,6 +415,7 @@ public int hashCode() { deliveryAddress, personalDetails, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -391,6 +431,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java index 094dadf9e..2bff1e433 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ PayByBankAISDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayByBankAISDirectDebitDetails.JSON_PROPERTY_SDK_DATA, PayByBankAISDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_TYPE }) @@ -36,6 +37,9 @@ public class PayByBankAISDirectDebitDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -163,6 +167,41 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method + * chaining + */ + public PayByBankAISDirectDebitDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -251,6 +290,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) && Objects.equals( this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payByBankAISDirectDebitDetails.sdkData) && Objects.equals( this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) && Objects.equals(this.type, payByBankAISDirectDebitDetails.type); @@ -258,7 +298,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -269,6 +310,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java index 9d0d8ca2e..fb3cb443c 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ PayByBankDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankDetails.JSON_PROPERTY_ISSUER, + PayByBankDetails.JSON_PROPERTY_SDK_DATA, PayByBankDetails.JSON_PROPERTY_TYPE }) public class PayByBankDetails { @@ -34,6 +35,9 @@ public class PayByBankDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **paybybank** */ public enum TypeEnum { PAYBYBANK(String.valueOf("paybybank")); @@ -144,6 +148,40 @@ public void setIssuer(String issuer) { this.issuer = issuer; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayByBankDetails} instance, allowing for method chaining + */ + public PayByBankDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **paybybank** * @@ -189,12 +227,13 @@ public boolean equals(Object o) { PayByBankDetails payByBankDetails = (PayByBankDetails) o; return Objects.equals(this.checkoutAttemptId, payByBankDetails.checkoutAttemptId) && Objects.equals(this.issuer, payByBankDetails.issuer) + && Objects.equals(this.sdkData, payByBankDetails.sdkData) && Objects.equals(this.type, payByBankDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, type); + return Objects.hash(checkoutAttemptId, issuer, sdkData, type); } @Override @@ -203,6 +242,7 @@ public String toString() { sb.append("class PayByBankDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/PayPalDetails.java b/src/main/java/com/adyen/model/checkout/PayPalDetails.java index c4fd26fb5..559905097 100644 --- a/src/main/java/com/adyen/model/checkout/PayPalDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPalDetails.java @@ -29,6 +29,7 @@ PayPalDetails.JSON_PROPERTY_PAYER_I_D, PayPalDetails.JSON_PROPERTY_PAYER_SELECTED, PayPalDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayPalDetails.JSON_PROPERTY_SDK_DATA, PayPalDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayPalDetails.JSON_PROPERTY_SUBTYPE, PayPalDetails.JSON_PROPERTY_TYPE @@ -53,6 +54,9 @@ public class PayPalDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -356,6 +360,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayPalDetails} instance, allowing for method chaining + */ + public PayPalDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -477,6 +515,7 @@ public boolean equals(Object o) { && Objects.equals(this.payerID, payPalDetails.payerID) && Objects.equals(this.payerSelected, payPalDetails.payerSelected) && Objects.equals(this.recurringDetailReference, payPalDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payPalDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, payPalDetails.storedPaymentMethodId) && Objects.equals(this.subtype, payPalDetails.subtype) && Objects.equals(this.type, payPalDetails.type); @@ -491,6 +530,7 @@ public int hashCode() { payerID, payerSelected, recurringDetailReference, + sdkData, storedPaymentMethodId, subtype, type); @@ -508,6 +548,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayPayDetails.java b/src/main/java/com/adyen/model/checkout/PayPayDetails.java index 67e91b996..5b6ba6a49 100644 --- a/src/main/java/com/adyen/model/checkout/PayPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPayDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ PayPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayPayDetails.JSON_PROPERTY_SDK_DATA, PayPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayPayDetails.JSON_PROPERTY_TYPE }) @@ -36,6 +37,9 @@ public class PayPayDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -161,6 +165,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayPayDetails} instance, allowing for method chaining + */ + public PayPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -245,13 +283,15 @@ public boolean equals(Object o) { PayPayDetails payPayDetails = (PayPayDetails) o; return Objects.equals(this.checkoutAttemptId, payPayDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, payPayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payPayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, payPayDetails.storedPaymentMethodId) && Objects.equals(this.type, payPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -262,6 +302,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayToDetails.java b/src/main/java/com/adyen/model/checkout/PayToDetails.java index 9a66cafdb..92a6be26c 100644 --- a/src/main/java/com/adyen/model/checkout/PayToDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayToDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ PayToDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayToDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayToDetails.JSON_PROPERTY_SDK_DATA, PayToDetails.JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER, PayToDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayToDetails.JSON_PROPERTY_TYPE @@ -37,6 +38,9 @@ public class PayToDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER = "shopperAccountIdentifier"; private String shopperAccountIdentifier; @@ -165,6 +169,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayToDetails} instance, allowing for method chaining + */ + public PayToDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The shopper's banking details or payId reference, used to complete payment. * @@ -285,6 +323,7 @@ public boolean equals(Object o) { PayToDetails payToDetails = (PayToDetails) o; return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payToDetails.sdkData) && Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) && Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) && Objects.equals(this.type, payToDetails.type); @@ -295,6 +334,7 @@ public int hashCode() { return Objects.hash( checkoutAttemptId, recurringDetailReference, + sdkData, shopperAccountIdentifier, storedPaymentMethodId, type); @@ -308,6 +348,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperAccountIdentifier: ") .append(toIndentedString(shopperAccountIdentifier)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java index 5e663628b..178fe2a76 100644 --- a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ PayUUpiDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayUUpiDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayUUpiDetails.JSON_PROPERTY_SDK_DATA, PayUUpiDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, PayUUpiDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayUUpiDetails.JSON_PROPERTY_TYPE, @@ -38,6 +39,9 @@ public class PayUUpiDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -170,6 +174,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayUUpiDetails} instance, allowing for method chaining + */ + public PayUUpiDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used for recurring payment only. @@ -326,6 +364,7 @@ public boolean equals(Object o) { PayUUpiDetails payUUpiDetails = (PayUUpiDetails) o; return Objects.equals(this.checkoutAttemptId, payUUpiDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, payUUpiDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payUUpiDetails.sdkData) && Objects.equals( this.shopperNotificationReference, payUUpiDetails.shopperNotificationReference) && Objects.equals(this.storedPaymentMethodId, payUUpiDetails.storedPaymentMethodId) @@ -338,6 +377,7 @@ public int hashCode() { return Objects.hash( checkoutAttemptId, recurringDetailReference, + sdkData, shopperNotificationReference, storedPaymentMethodId, type, @@ -352,6 +392,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java index f954eeeb0..4f9b2dee9 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java @@ -27,6 +27,7 @@ PayWithGoogleDetails.JSON_PROPERTY_FUNDING_SOURCE, PayWithGoogleDetails.JSON_PROPERTY_GOOGLE_PAY_TOKEN, PayWithGoogleDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayWithGoogleDetails.JSON_PROPERTY_SDK_DATA, PayWithGoogleDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayWithGoogleDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDetails.JSON_PROPERTY_TYPE @@ -89,6 +90,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -304,6 +308,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining + */ + public PayWithGoogleDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -427,6 +465,7 @@ public boolean equals(Object o) { && Objects.equals(this.googlePayToken, payWithGoogleDetails.googlePayToken) && Objects.equals( this.recurringDetailReference, payWithGoogleDetails.recurringDetailReference) + && Objects.equals(this.sdkData, payWithGoogleDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, payWithGoogleDetails.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDetails.threeDS2SdkVersion) && Objects.equals(this.type, payWithGoogleDetails.type); @@ -439,6 +478,7 @@ public int hashCode() { fundingSource, googlePayToken, recurringDetailReference, + sdkData, storedPaymentMethodId, threeDS2SdkVersion, type); @@ -454,6 +494,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java index cc496a05a..465a84035 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java @@ -27,6 +27,7 @@ PayWithGoogleDonations.JSON_PROPERTY_FUNDING_SOURCE, PayWithGoogleDonations.JSON_PROPERTY_GOOGLE_PAY_TOKEN, PayWithGoogleDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PayWithGoogleDonations.JSON_PROPERTY_SDK_DATA, PayWithGoogleDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayWithGoogleDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDonations.JSON_PROPERTY_TYPE @@ -89,6 +90,9 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -304,6 +308,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining + */ + public PayWithGoogleDonations sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -427,6 +465,7 @@ public boolean equals(Object o) { && Objects.equals(this.googlePayToken, payWithGoogleDonations.googlePayToken) && Objects.equals( this.recurringDetailReference, payWithGoogleDonations.recurringDetailReference) + && Objects.equals(this.sdkData, payWithGoogleDonations.sdkData) && Objects.equals(this.storedPaymentMethodId, payWithGoogleDonations.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDonations.threeDS2SdkVersion) && Objects.equals(this.type, payWithGoogleDonations.type); @@ -439,6 +478,7 @@ public int hashCode() { fundingSource, googlePayToken, recurringDetailReference, + sdkData, storedPaymentMethodId, threeDS2SdkVersion, type); @@ -454,6 +494,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index ff01dcc45..788328343 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -24,12 +24,16 @@ /** PaymentDetails */ @JsonPropertyOrder({ PaymentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + PaymentDetails.JSON_PROPERTY_SDK_DATA, PaymentDetails.JSON_PROPERTY_TYPE }) public class PaymentDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** The payment method type. */ public enum TypeEnum { ALIPAY(String.valueOf("alipay")), @@ -152,14 +156,10 @@ public enum TypeEnum { KCP_NAVERPAY(String.valueOf("kcp_naverpay")), - ONLINEBANKING_IN(String.valueOf("onlinebanking_IN")), - FAWRY(String.valueOf("fawry")), ATOME(String.valueOf("atome")), - MONEYBOOKERS(String.valueOf("moneybookers")), - NAPS(String.valueOf("naps")), NORDEA(String.valueOf("nordea")), @@ -285,6 +285,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PaymentDetails} instance, allowing for method chaining + */ + public PaymentDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The payment method type. * @@ -329,12 +363,13 @@ public boolean equals(Object o) { } PaymentDetails paymentDetails = (PaymentDetails) o; return Objects.equals(this.checkoutAttemptId, paymentDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, paymentDetails.sdkData) && Objects.equals(this.type, paymentDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, type); + return Objects.hash(checkoutAttemptId, sdkData, type); } @Override @@ -342,6 +377,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); 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/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 4c1a7b513..b60315ad1 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -72,6 +72,7 @@ PaymentRequest.JSON_PROPERTY_ORDER_REFERENCE, PaymentRequest.JSON_PROPERTY_ORIGIN, PaymentRequest.JSON_PROPERTY_PAYMENT_METHOD, + PaymentRequest.JSON_PROPERTY_PAYMENT_VALIDATIONS, PaymentRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC, PaymentRequest.JSON_PROPERTY_RECURRING_EXPIRY, PaymentRequest.JSON_PROPERTY_RECURRING_FREQUENCY, @@ -373,6 +374,9 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod"; private CheckoutPaymentMethod paymentMethod; + public static final String JSON_PROPERTY_PAYMENT_VALIDATIONS = "paymentValidations"; + private PaymentValidations paymentValidations; + public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic"; private PlatformChargebackLogic platformChargebackLogic; @@ -1812,18 +1816,18 @@ public void setLineItems(List lineItems) { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1842,18 +1846,18 @@ public PaymentRequest putLocalizedShopperStatementItem( /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1863,18 +1867,18 @@ public Map getLocalizedShopperStatement() { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2356,6 +2360,39 @@ public void setPaymentMethod(CheckoutPaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } + /** + * paymentValidations + * + * @param paymentValidations + * @return the current {@code PaymentRequest} instance, allowing for method chaining + */ + public PaymentRequest paymentValidations(PaymentValidations paymentValidations) { + this.paymentValidations = paymentValidations; + return this; + } + + /** + * Get paymentValidations + * + * @return paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaymentValidations getPaymentValidations() { + return paymentValidations; + } + + /** + * paymentValidations + * + * @param paymentValidations + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_VALIDATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentValidations(PaymentValidations paymentValidations) { + this.paymentValidations = paymentValidations; + } + /** * platformChargebackLogic * @@ -3853,6 +3890,7 @@ public boolean equals(Object o) { && Objects.equals(this.orderReference, paymentRequest.orderReference) && Objects.equals(this.origin, paymentRequest.origin) && Objects.equals(this.paymentMethod, paymentRequest.paymentMethod) + && Objects.equals(this.paymentValidations, paymentRequest.paymentValidations) && Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) && Objects.equals(this.recurringExpiry, paymentRequest.recurringExpiry) && Objects.equals(this.recurringFrequency, paymentRequest.recurringFrequency) @@ -3931,6 +3969,7 @@ public int hashCode() { orderReference, origin, paymentMethod, + paymentValidations, platformChargebackLogic, recurringExpiry, recurringFrequency, @@ -4016,6 +4055,7 @@ public String toString() { sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" paymentValidations: ").append(toIndentedString(paymentValidations)).append("\n"); sb.append(" platformChargebackLogic: ") .append(toIndentedString(platformChargebackLogic)) .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/PaymentValidations.java b/src/main/java/com/adyen/model/checkout/PaymentValidations.java new file mode 100644 index 000000000..ce7ee85aa --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidations.java @@ -0,0 +1,118 @@ +/* + * 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.*; + +/** PaymentValidations */ +@JsonPropertyOrder({PaymentValidations.JSON_PROPERTY_NAME}) +public class PaymentValidations { + public static final String JSON_PROPERTY_NAME = "name"; + private Name name; + + public PaymentValidations() {} + + /** + * name + * + * @param name + * @return the current {@code PaymentValidations} instance, allowing for method chaining + */ + public PaymentValidations name(Name name) { + this.name = name; + return this; + } + + /** + * Get name + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Name getName() { + return name; + } + + /** + * name + * + * @param name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(Name name) { + this.name = name; + } + + /** Return true if this PaymentValidations object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentValidations paymentValidations = (PaymentValidations) o; + return Objects.equals(this.name, paymentValidations.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentValidations {\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 PaymentValidations given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentValidations + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentValidations + */ + public static PaymentValidations fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentValidations.class); + } + + /** + * Convert an instance of PaymentValidations 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/PaymentValidationsNameResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java new file mode 100644 index 000000000..037e9a6bb --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java @@ -0,0 +1,260 @@ +/* + * 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; + + /** + * Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + */ + 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; + } + + /** + * Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + * + * @param status Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + * @return the current {@code PaymentValidationsNameResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResponse status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + * + * @return status Informs you if the name validation was performed. Possible values: + * **performed**, **notPerformed**, **notSupported** + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { + return status; + } + + /** + * Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + * + * @param status Informs you if the name validation was performed. Possible values: **performed**, + * **notPerformed**, **notSupported** + */ + @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..955066691 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java @@ -0,0 +1,313 @@ +/* + * 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() {} + + /** + * The raw first name validation result that Adyen received from the scheme. First name validation + * result is only returned for Visa. + * + * @param firstName The raw first name validation result that Adyen received from the scheme. + * First name validation result is only returned for Visa. + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The raw first name validation result that Adyen received from the scheme. First name validation + * result is only returned for Visa. + * + * @return firstName The raw first name validation result that Adyen received from the scheme. + * First name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { + return firstName; + } + + /** + * The raw first name validation result that Adyen received from the scheme. First name validation + * result is only returned for Visa. + * + * @param firstName The raw first name validation result that Adyen received from the scheme. + * First name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * The raw full name validation result that Adyen received from the scheme. Full name is the only + * field that is validated for Mastercard + * + * @param fullName The raw full name validation result that Adyen received from the scheme. Full + * name is the only field that is validated for Mastercard + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse fullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * The raw full name validation result that Adyen received from the scheme. Full name is the only + * field that is validated for Mastercard + * + * @return fullName The raw full name validation result that Adyen received from the scheme. Full + * name is the only field that is validated for Mastercard + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFullName() { + return fullName; + } + + /** + * The raw full name validation result that Adyen received from the scheme. Full name is the only + * field that is validated for Mastercard + * + * @param fullName The raw full name validation result that Adyen received from the scheme. Full + * name is the only field that is validated for Mastercard + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(String fullName) { + this.fullName = fullName; + } + + /** + * The raw last name validation result that Adyen received from the scheme. Last name validation + * result is only returned for Visa. + * + * @param lastName The raw last name validation result that Adyen received from the scheme. Last + * name validation result is only returned for Visa. + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The raw last name validation result that Adyen received from the scheme. Last name validation + * result is only returned for Visa. + * + * @return lastName The raw last name validation result that Adyen received from the scheme. Last + * name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { + return lastName; + } + + /** + * The raw last name validation result that Adyen received from the scheme. Last name validation + * result is only returned for Visa. + * + * @param lastName The raw last name validation result that Adyen received from the scheme. Last + * name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(String lastName) { + this.lastName = lastName; + } + + /** + * The raw middle name validation result that Adyen received from the scheme. Middle name + * validation result is only returned for Visa. + * + * @param middleName The raw middle name validation result that Adyen received from the scheme. + * Middle name validation result is only returned for Visa. + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse middleName(String middleName) { + this.middleName = middleName; + return this; + } + + /** + * The raw middle name validation result that Adyen received from the scheme. Middle name + * validation result is only returned for Visa. + * + * @return middleName The raw middle name validation result that Adyen received from the scheme. + * Middle name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMiddleName() { + return middleName; + } + + /** + * The raw middle name validation result that Adyen received from the scheme. Middle name + * validation result is only returned for Visa. + * + * @param middleName The raw middle name validation result that Adyen received from the scheme. + * Middle name validation result is only returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + /** + * The raw name validation status value that Adyen received from the scheme. Only returned for + * Visa. + * + * @param status The raw name validation status value that Adyen received from the scheme. Only + * returned for Visa. + * @return the current {@code PaymentValidationsNameResultRawResponse} instance, allowing for + * method chaining + */ + public PaymentValidationsNameResultRawResponse status(String status) { + this.status = status; + return this; + } + + /** + * The raw name validation status value that Adyen received from the scheme. Only returned for + * Visa. + * + * @return status The raw name validation status value that Adyen received from the scheme. Only + * returned for Visa. + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStatus() { + return status; + } + + /** + * The raw name validation status value that Adyen received from the scheme. Only returned for + * Visa. + * + * @param status The raw name validation status value that Adyen received from the scheme. Only + * returned for Visa. + */ + @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..07716be41 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java @@ -0,0 +1,291 @@ +/* + * 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() {} + + /** + * Informs you if the first name your shopper provided matches the cardholder first name on file + * at the issuing bank. The first name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param firstName Informs you if the first name your shopper provided matches the cardholder + * first name on file at the issuing bank. The first name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Informs you if the first name your shopper provided matches the cardholder first name on file + * at the issuing bank. The first name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @return firstName Informs you if the first name your shopper provided matches the cardholder + * first name on file at the issuing bank. The first name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { + return firstName; + } + + /** + * Informs you if the first name your shopper provided matches the cardholder first name on file + * at the issuing bank. The first name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param firstName Informs you if the first name your shopper provided matches the cardholder + * first name on file at the issuing bank. The first name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * Informs you if the full name your shopper provided matches the cardholder name on file at the + * issuing bank. The full name is the only field that is validated for Mastercard. Possible + * values: **match**, **partialMatch**, **noMatch** + * + * @param fullName Informs you if the full name your shopper provided matches the cardholder name + * on file at the issuing bank. The full name is the only field that is validated for + * Mastercard. Possible values: **match**, **partialMatch**, **noMatch** + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse fullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Informs you if the full name your shopper provided matches the cardholder name on file at the + * issuing bank. The full name is the only field that is validated for Mastercard. Possible + * values: **match**, **partialMatch**, **noMatch** + * + * @return fullName Informs you if the full name your shopper provided matches the cardholder name + * on file at the issuing bank. The full name is the only field that is validated for + * Mastercard. Possible values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFullName() { + return fullName; + } + + /** + * Informs you if the full name your shopper provided matches the cardholder name on file at the + * issuing bank. The full name is the only field that is validated for Mastercard. Possible + * values: **match**, **partialMatch**, **noMatch** + * + * @param fullName Informs you if the full name your shopper provided matches the cardholder name + * on file at the issuing bank. The full name is the only field that is validated for + * Mastercard. Possible values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(String fullName) { + this.fullName = fullName; + } + + /** + * Informs you if the last name your shopper provided matches the cardholder last name on file at + * the issuing bank. The last name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param lastName Informs you if the last name your shopper provided matches the cardholder last + * name on file at the issuing bank. The last name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Informs you if the last name your shopper provided matches the cardholder last name on file at + * the issuing bank. The last name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @return lastName Informs you if the last name your shopper provided matches the cardholder last + * name on file at the issuing bank. The last name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { + return lastName; + } + + /** + * Informs you if the last name your shopper provided matches the cardholder last name on file at + * the issuing bank. The last name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param lastName Informs you if the last name your shopper provided matches the cardholder last + * name on file at the issuing bank. The last name is only validated for Visa. Possible + * values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(String lastName) { + this.lastName = lastName; + } + + /** + * Informs you if the middle name your shopper provided matches the cardholder middle name on file + * at the issuing bank. The middle name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param middleName Informs you if the middle name your shopper provided matches the cardholder + * middle name on file at the issuing bank. The middle name is only validated for Visa. + * Possible values: **match**, **partialMatch**, **noMatch** + * @return the current {@code PaymentValidationsNameResultResponse} instance, allowing for method + * chaining + */ + public PaymentValidationsNameResultResponse middleName(String middleName) { + this.middleName = middleName; + return this; + } + + /** + * Informs you if the middle name your shopper provided matches the cardholder middle name on file + * at the issuing bank. The middle name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @return middleName Informs you if the middle name your shopper provided matches the cardholder + * middle name on file at the issuing bank. The middle name is only validated for Visa. + * Possible values: **match**, **partialMatch**, **noMatch** + */ + @JsonProperty(JSON_PROPERTY_MIDDLE_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMiddleName() { + return middleName; + } + + /** + * Informs you if the middle name your shopper provided matches the cardholder middle name on file + * at the issuing bank. The middle name is only validated for Visa. Possible values: **match**, + * **partialMatch**, **noMatch** + * + * @param middleName Informs you if the middle name your shopper provided matches the cardholder + * middle name on file at the issuing bank. The middle name is only validated for Visa. + * Possible values: **match**, **partialMatch**, **noMatch** + */ + @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/PixDetails.java b/src/main/java/com/adyen/model/checkout/PixDetails.java index af4e13448..553392ef7 100644 --- a/src/main/java/com/adyen/model/checkout/PixDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixDetails.java @@ -26,6 +26,7 @@ PixDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PixDetails.JSON_PROPERTY_PIX_RECURRING, PixDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PixDetails.JSON_PROPERTY_SDK_DATA, PixDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PixDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class PixDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -198,6 +202,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PixDetails} instance, allowing for method chaining + */ + public PixDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -283,6 +321,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, pixDetails.checkoutAttemptId) && Objects.equals(this.pixRecurring, pixDetails.pixRecurring) && Objects.equals(this.recurringDetailReference, pixDetails.recurringDetailReference) + && Objects.equals(this.sdkData, pixDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, pixDetails.storedPaymentMethodId) && Objects.equals(this.type, pixDetails.type); } @@ -290,7 +329,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, pixRecurring, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, + pixRecurring, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -302,6 +346,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PseDetails.java b/src/main/java/com/adyen/model/checkout/PseDetails.java index 943fd4dba..0a00753df 100644 --- a/src/main/java/com/adyen/model/checkout/PseDetails.java +++ b/src/main/java/com/adyen/model/checkout/PseDetails.java @@ -28,6 +28,7 @@ PseDetails.JSON_PROPERTY_CLIENT_TYPE, PseDetails.JSON_PROPERTY_IDENTIFICATION, PseDetails.JSON_PROPERTY_IDENTIFICATION_TYPE, + PseDetails.JSON_PROPERTY_SDK_DATA, PseDetails.JSON_PROPERTY_TYPE }) public class PseDetails { @@ -46,6 +47,9 @@ public class PseDetails { public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; private String identificationType; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** The payment method type. */ public enum TypeEnum { PSE_PAYULATAM(String.valueOf("pse_payulatam")); @@ -255,6 +259,40 @@ public void setIdentificationType(String identificationType) { this.identificationType = identificationType; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PseDetails} instance, allowing for method chaining + */ + public PseDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The payment method type. * @@ -303,13 +341,14 @@ public boolean equals(Object o) { && Objects.equals(this.clientType, pseDetails.clientType) && Objects.equals(this.identification, pseDetails.identification) && Objects.equals(this.identificationType, pseDetails.identificationType) + && Objects.equals(this.sdkData, pseDetails.sdkData) && Objects.equals(this.type, pseDetails.type); } @Override public int hashCode() { return Objects.hash( - bank, checkoutAttemptId, clientType, identification, identificationType, type); + bank, checkoutAttemptId, clientType, identification, identificationType, sdkData, type); } @Override @@ -321,6 +360,7 @@ public String toString() { sb.append(" clientType: ").append(toIndentedString(clientType)).append("\n"); sb.append(" identification: ").append(toIndentedString(identification)).append("\n"); sb.append(" identificationType: ").append(toIndentedString(identificationType)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java index f6508290d..ac9e7d9cc 100644 --- a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ RakutenPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, RakutenPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + RakutenPayDetails.JSON_PROPERTY_SDK_DATA, RakutenPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RakutenPayDetails.JSON_PROPERTY_TYPE }) @@ -36,6 +37,9 @@ public class RakutenPayDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -161,6 +165,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code RakutenPayDetails} instance, allowing for method chaining + */ + public RakutenPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -245,13 +283,15 @@ public boolean equals(Object o) { RakutenPayDetails rakutenPayDetails = (RakutenPayDetails) o; return Objects.equals(this.checkoutAttemptId, rakutenPayDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, rakutenPayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, rakutenPayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, rakutenPayDetails.storedPaymentMethodId) && Objects.equals(this.type, rakutenPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -262,6 +302,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/RatepayDetails.java b/src/main/java/com/adyen/model/checkout/RatepayDetails.java index 2167d676a..c687407fb 100644 --- a/src/main/java/com/adyen/model/checkout/RatepayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RatepayDetails.java @@ -28,6 +28,7 @@ RatepayDetails.JSON_PROPERTY_DELIVERY_ADDRESS, RatepayDetails.JSON_PROPERTY_PERSONAL_DETAILS, RatepayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + RatepayDetails.JSON_PROPERTY_SDK_DATA, RatepayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RatepayDetails.JSON_PROPERTY_TYPE }) @@ -48,6 +49,9 @@ public class RatepayDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -274,6 +278,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code RatepayDetails} instance, allowing for method chaining + */ + public RatepayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -361,6 +399,7 @@ public boolean equals(Object o) { && Objects.equals(this.deliveryAddress, ratepayDetails.deliveryAddress) && Objects.equals(this.personalDetails, ratepayDetails.personalDetails) && Objects.equals(this.recurringDetailReference, ratepayDetails.recurringDetailReference) + && Objects.equals(this.sdkData, ratepayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, ratepayDetails.storedPaymentMethodId) && Objects.equals(this.type, ratepayDetails.type); } @@ -373,6 +412,7 @@ public int hashCode() { deliveryAddress, personalDetails, recurringDetailReference, + sdkData, storedPaymentMethodId, type); } @@ -388,6 +428,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java index ed01b3547..033d6db99 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java @@ -21,6 +21,7 @@ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, + ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) public class ResponseAdditionalDataSepa { @@ -31,6 +32,10 @@ public class ResponseAdditionalDataSepa { public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE = + "sepadirectdebit.sepadirectdebit.dueDate"; + private String sepadirectdebitSepadirectdebitDueDate; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; @@ -107,6 +112,44 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { this.sepadirectdebitMandateId = sepadirectdebitMandateId; } + /** + * The date that the the shopper's bank account is charged. + * + * @param sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining + */ + public ResponseAdditionalDataSepa sepadirectdebitSepadirectdebitDueDate( + String sepadirectdebitSepadirectdebitDueDate) { + this.sepadirectdebitSepadirectdebitDueDate = sepadirectdebitSepadirectdebitDueDate; + return this; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @return sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + */ + @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSepadirectdebitSepadirectdebitDueDate() { + return sepadirectdebitSepadirectdebitDueDate; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @param sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + */ + @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSepadirectdebitSepadirectdebitDueDate( + String sepadirectdebitSepadirectdebitDueDate) { + this.sepadirectdebitSepadirectdebitDueDate = sepadirectdebitSepadirectdebitDueDate; + } + /** * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a @@ -183,6 +226,9 @@ public boolean equals(Object o) { responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && Objects.equals( this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) + && Objects.equals( + this.sepadirectdebitSepadirectdebitDueDate, + responseAdditionalDataSepa.sepadirectdebitSepadirectdebitDueDate) && Objects.equals( this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); @@ -191,7 +237,10 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + sepadirectdebitDateOfSignature, + sepadirectdebitMandateId, + sepadirectdebitSepadirectdebitDueDate, + sepadirectdebitSequenceType); } @Override @@ -204,6 +253,9 @@ public String toString() { sb.append(" sepadirectdebitMandateId: ") .append(toIndentedString(sepadirectdebitMandateId)) .append("\n"); + sb.append(" sepadirectdebitSepadirectdebitDueDate: ") + .append(toIndentedString(sepadirectdebitSepadirectdebitDueDate)) + .append("\n"); sb.append(" sepadirectdebitSequenceType: ") .append(toIndentedString(sepadirectdebitSequenceType)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index cc762c86d..68c495cae 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -30,6 +30,7 @@ RivertyDetails.JSON_PROPERTY_IBAN, RivertyDetails.JSON_PROPERTY_PERSONAL_DETAILS, RivertyDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + RivertyDetails.JSON_PROPERTY_SDK_DATA, RivertyDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RivertyDetails.JSON_PROPERTY_SUBTYPE, RivertyDetails.JSON_PROPERTY_TYPE @@ -57,6 +58,9 @@ public class RivertyDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -365,6 +369,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code RivertyDetails} instance, allowing for method chaining + */ + public RivertyDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -487,6 +525,7 @@ public boolean equals(Object o) { && Objects.equals(this.iban, rivertyDetails.iban) && Objects.equals(this.personalDetails, rivertyDetails.personalDetails) && Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) + && Objects.equals(this.sdkData, rivertyDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) && Objects.equals(this.subtype, rivertyDetails.subtype) && Objects.equals(this.type, rivertyDetails.type); @@ -502,6 +541,7 @@ public int hashCode() { iban, personalDetails, recurringDetailReference, + sdkData, storedPaymentMethodId, subtype, type); @@ -520,6 +560,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java index add3103e6..e941614f3 100644 --- a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java @@ -27,6 +27,7 @@ SamsungPayDetails.JSON_PROPERTY_FUNDING_SOURCE, SamsungPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, SamsungPayDetails.JSON_PROPERTY_SAMSUNG_PAY_TOKEN, + SamsungPayDetails.JSON_PROPERTY_SDK_DATA, SamsungPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, SamsungPayDetails.JSON_PROPERTY_TYPE }) @@ -88,6 +89,9 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_SAMSUNG_PAY_TOKEN = "samsungPayToken"; private String samsungPayToken; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -288,6 +292,40 @@ public void setSamsungPayToken(String samsungPayToken) { this.samsungPayToken = samsungPayToken; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code SamsungPayDetails} instance, allowing for method chaining + */ + public SamsungPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -374,6 +412,7 @@ public boolean equals(Object o) { && Objects.equals(this.fundingSource, samsungPayDetails.fundingSource) && Objects.equals(this.recurringDetailReference, samsungPayDetails.recurringDetailReference) && Objects.equals(this.samsungPayToken, samsungPayDetails.samsungPayToken) + && Objects.equals(this.sdkData, samsungPayDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, samsungPayDetails.storedPaymentMethodId) && Objects.equals(this.type, samsungPayDetails.type); } @@ -385,6 +424,7 @@ public int hashCode() { fundingSource, recurringDetailReference, samsungPayToken, + sdkData, storedPaymentMethodId, type); } @@ -399,6 +439,7 @@ public String toString() { .append(toIndentedString(recurringDetailReference)) .append("\n"); sb.append(" samsungPayToken: ").append(toIndentedString(samsungPayToken)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java index 779ed59f8..b6dc04af6 100644 --- a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java @@ -24,9 +24,11 @@ /** SepaDirectDebitDetails */ @JsonPropertyOrder({ SepaDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + SepaDirectDebitDetails.JSON_PROPERTY_DUE_DATE, SepaDirectDebitDetails.JSON_PROPERTY_IBAN, SepaDirectDebitDetails.JSON_PROPERTY_OWNER_NAME, SepaDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + SepaDirectDebitDetails.JSON_PROPERTY_SDK_DATA, SepaDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, SepaDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, SepaDirectDebitDetails.JSON_PROPERTY_TYPE @@ -35,6 +37,9 @@ public class SepaDirectDebitDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_DUE_DATE = "dueDate"; + private String dueDate; + public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; @@ -45,6 +50,9 @@ public class SepaDirectDebitDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -130,6 +138,39 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * The date that the the shopper's bank account is charged. + * + * @param dueDate The date that the the shopper's bank account is charged. + * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining + */ + public SepaDirectDebitDetails dueDate(String dueDate) { + this.dueDate = dueDate; + return this; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @return dueDate The date that the the shopper's bank account is charged. + */ + @JsonProperty(JSON_PROPERTY_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDueDate() { + return dueDate; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @param dueDate The date that the the shopper's bank account is charged. + */ + @JsonProperty(JSON_PROPERTY_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDueDate(String dueDate) { + this.dueDate = dueDate; + } + /** * The International Bank Account Number (IBAN). * @@ -241,6 +282,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining + */ + public SepaDirectDebitDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -363,10 +438,12 @@ public boolean equals(Object o) { } SepaDirectDebitDetails sepaDirectDebitDetails = (SepaDirectDebitDetails) o; return Objects.equals(this.checkoutAttemptId, sepaDirectDebitDetails.checkoutAttemptId) + && Objects.equals(this.dueDate, sepaDirectDebitDetails.dueDate) && Objects.equals(this.iban, sepaDirectDebitDetails.iban) && Objects.equals(this.ownerName, sepaDirectDebitDetails.ownerName) && Objects.equals( this.recurringDetailReference, sepaDirectDebitDetails.recurringDetailReference) + && Objects.equals(this.sdkData, sepaDirectDebitDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, sepaDirectDebitDetails.storedPaymentMethodId) && Objects.equals(this.transferInstrumentId, sepaDirectDebitDetails.transferInstrumentId) && Objects.equals(this.type, sepaDirectDebitDetails.type); @@ -376,9 +453,11 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( checkoutAttemptId, + dueDate, iban, ownerName, recurringDetailReference, + sdkData, storedPaymentMethodId, transferInstrumentId, type); @@ -389,11 +468,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SepaDirectDebitDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java index 7f2989b58..328fe145d 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ StoredPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, StoredPaymentMethodDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + StoredPaymentMethodDetails.JSON_PROPERTY_SDK_DATA, StoredPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, StoredPaymentMethodDetails.JSON_PROPERTY_TYPE }) @@ -36,6 +37,9 @@ public class StoredPaymentMethodDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -195,6 +199,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining + */ + public StoredPaymentMethodDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -280,6 +318,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, storedPaymentMethodDetails.checkoutAttemptId) && Objects.equals( this.recurringDetailReference, storedPaymentMethodDetails.recurringDetailReference) + && Objects.equals(this.sdkData, storedPaymentMethodDetails.sdkData) && Objects.equals( this.storedPaymentMethodId, storedPaymentMethodDetails.storedPaymentMethodId) && Objects.equals(this.type, storedPaymentMethodDetails.type); @@ -287,7 +326,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, sdkData, storedPaymentMethodId, type); } @Override @@ -298,6 +338,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java index c0e4d9c3f..838ad01b4 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java @@ -31,6 +31,7 @@ StoredPaymentMethodResource.JSON_PROPERTY_ID, StoredPaymentMethodResource.JSON_PROPERTY_ISSUER_NAME, StoredPaymentMethodResource.JSON_PROPERTY_LAST_FOUR, + StoredPaymentMethodResource.JSON_PROPERTY_MANDATE, StoredPaymentMethodResource.JSON_PROPERTY_NAME, StoredPaymentMethodResource.JSON_PROPERTY_NETWORK_TX_REFERENCE, StoredPaymentMethodResource.JSON_PROPERTY_OWNER_NAME, @@ -70,6 +71,9 @@ public class StoredPaymentMethodResource { public static final String JSON_PROPERTY_LAST_FOUR = "lastFour"; private String lastFour; + public static final String JSON_PROPERTY_MANDATE = "mandate"; + private TokenMandate mandate; + public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -436,6 +440,39 @@ public void setLastFour(String lastFour) { this.lastFour = lastFour; } + /** + * mandate + * + * @param mandate + * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining + */ + public StoredPaymentMethodResource mandate(TokenMandate mandate) { + this.mandate = mandate; + return this; + } + + /** + * Get mandate + * + * @return mandate + */ + @JsonProperty(JSON_PROPERTY_MANDATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TokenMandate getMandate() { + return mandate; + } + + /** + * mandate + * + * @param mandate + */ + @JsonProperty(JSON_PROPERTY_MANDATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMandate(TokenMandate mandate) { + this.mandate = mandate; + } + /** * The display name of the stored payment method. * @@ -772,6 +809,7 @@ public boolean equals(Object o) { && Objects.equals(this.id, storedPaymentMethodResource.id) && Objects.equals(this.issuerName, storedPaymentMethodResource.issuerName) && Objects.equals(this.lastFour, storedPaymentMethodResource.lastFour) + && Objects.equals(this.mandate, storedPaymentMethodResource.mandate) && Objects.equals(this.name, storedPaymentMethodResource.name) && Objects.equals(this.networkTxReference, storedPaymentMethodResource.networkTxReference) && Objects.equals(this.ownerName, storedPaymentMethodResource.ownerName) @@ -796,6 +834,7 @@ public int hashCode() { id, issuerName, lastFour, + mandate, name, networkTxReference, ownerName, @@ -823,6 +862,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuerName: ").append(toIndentedString(issuerName)).append("\n"); sb.append(" lastFour: ").append(toIndentedString(lastFour)).append("\n"); + sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/TokenMandate.java b/src/main/java/com/adyen/model/checkout/TokenMandate.java new file mode 100644 index 000000000..320941510 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/TokenMandate.java @@ -0,0 +1,931 @@ +/* + * 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; + +/** TokenMandate */ +@JsonPropertyOrder({ + TokenMandate.JSON_PROPERTY_ACCOUNT_ID_TYPE, + TokenMandate.JSON_PROPERTY_AMOUNT, + TokenMandate.JSON_PROPERTY_AMOUNT_RULE, + TokenMandate.JSON_PROPERTY_BILLING_ATTEMPTS_RULE, + TokenMandate.JSON_PROPERTY_BILLING_DAY, + TokenMandate.JSON_PROPERTY_COUNT, + TokenMandate.JSON_PROPERTY_CURRENCY, + TokenMandate.JSON_PROPERTY_ENDS_AT, + TokenMandate.JSON_PROPERTY_FREQUENCY, + TokenMandate.JSON_PROPERTY_MANDATE_ID, + TokenMandate.JSON_PROPERTY_MASKED_ACCOUNT_ID, + TokenMandate.JSON_PROPERTY_PROVIDER_ID, + TokenMandate.JSON_PROPERTY_REMARKS, + TokenMandate.JSON_PROPERTY_STARTS_AT, + TokenMandate.JSON_PROPERTY_STATUS, + TokenMandate.JSON_PROPERTY_TX_VARIANT +}) +public class TokenMandate { + public static final String JSON_PROPERTY_ACCOUNT_ID_TYPE = "accountIdType"; + private String accountIdType; + + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private String amount; + + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + */ + public enum AmountRuleEnum { + MAX(String.valueOf("max")), + + EXACT(String.valueOf("exact")); + + private static final Logger LOG = Logger.getLogger(AmountRuleEnum.class.getName()); + + private String value; + + AmountRuleEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AmountRuleEnum fromValue(String value) { + for (AmountRuleEnum b : AmountRuleEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "AmountRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AmountRuleEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_AMOUNT_RULE = "amountRule"; + private AmountRuleEnum amountRule; + + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + */ + public enum BillingAttemptsRuleEnum { + ON(String.valueOf("on")), + + BEFORE(String.valueOf("before")), + + AFTER(String.valueOf("after")); + + private static final Logger LOG = Logger.getLogger(BillingAttemptsRuleEnum.class.getName()); + + private String value; + + BillingAttemptsRuleEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BillingAttemptsRuleEnum fromValue(String value) { + for (BillingAttemptsRuleEnum b : BillingAttemptsRuleEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "BillingAttemptsRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BillingAttemptsRuleEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_BILLING_ATTEMPTS_RULE = "billingAttemptsRule"; + private BillingAttemptsRuleEnum billingAttemptsRule; + + public static final String JSON_PROPERTY_BILLING_DAY = "billingDay"; + private String billingDay; + + public static final String JSON_PROPERTY_COUNT = "count"; + private String count; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency; + + public static final String JSON_PROPERTY_ENDS_AT = "endsAt"; + private String endsAt; + + /** + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + */ + public enum FrequencyEnum { + ADHOC(String.valueOf("adhoc")), + + DAILY(String.valueOf("daily")), + + WEEKLY(String.valueOf("weekly")), + + BIWEEKLY(String.valueOf("biWeekly")), + + MONTHLY(String.valueOf("monthly")), + + QUARTERLY(String.valueOf("quarterly")), + + HALFYEARLY(String.valueOf("halfYearly")), + + YEARLY(String.valueOf("yearly")); + + private static final Logger LOG = Logger.getLogger(FrequencyEnum.class.getName()); + + private String value; + + FrequencyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FrequencyEnum fromValue(String value) { + for (FrequencyEnum b : FrequencyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "FrequencyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FrequencyEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_FREQUENCY = "frequency"; + private FrequencyEnum frequency; + + public static final String JSON_PROPERTY_MANDATE_ID = "mandateId"; + private String mandateId; + + public static final String JSON_PROPERTY_MASKED_ACCOUNT_ID = "maskedAccountId"; + private String maskedAccountId; + + public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; + private String providerId; + + public static final String JSON_PROPERTY_REMARKS = "remarks"; + private String remarks; + + public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; + private String startsAt; + + public static final String JSON_PROPERTY_STATUS = "status"; + private String status; + + public static final String JSON_PROPERTY_TX_VARIANT = "txVariant"; + private String txVariant; + + public TokenMandate() {} + + /** + * The type of account identifier for the masked account number. + * + * @param accountIdType The type of account identifier for the masked account number. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate accountIdType(String accountIdType) { + this.accountIdType = accountIdType; + return this; + } + + /** + * The type of account identifier for the masked account number. + * + * @return accountIdType The type of account identifier for the masked account number. + */ + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountIdType() { + return accountIdType; + } + + /** + * The type of account identifier for the masked account number. + * + * @param accountIdType The type of account identifier for the masked account number. + */ + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountIdType(String accountIdType) { + this.accountIdType = accountIdType; + } + + /** + * The billing amount (in minor units) of the recurring transactions. + * + * @param amount The billing amount (in minor units) of the recurring transactions. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate amount(String amount) { + this.amount = amount; + return this; + } + + /** + * The billing amount (in minor units) of the recurring transactions. + * + * @return amount The billing amount (in minor units) of the recurring transactions. + */ + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAmount() { + return amount; + } + + /** + * The billing amount (in minor units) of the recurring transactions. + * + * @param amount The billing amount (in minor units) of the recurring transactions. + */ + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(String amount) { + this.amount = amount; + } + + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + * + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate amountRule(AmountRuleEnum amountRule) { + this.amountRule = amountRule; + return this; + } + + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + * + * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. + */ + @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AmountRuleEnum getAmountRule() { + return amountRule; + } + + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + * + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. + */ + @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountRule(AmountRuleEnum amountRule) { + this.amountRule = amountRule; + } + + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + * + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { + this.billingAttemptsRule = billingAttemptsRule; + return this; + } + + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + * + * @return billingAttemptsRule The rule to specify the period, within which the recurring debit + * can happen, relative to the mandate recurring date. Possible values: * **on**: On a + * specific date. * **before**: Before and on a specific date. * **after**: On and after a + * specific date. + */ + @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BillingAttemptsRuleEnum getBillingAttemptsRule() { + return billingAttemptsRule; + } + + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + * + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. + */ + @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBillingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { + this.billingAttemptsRule = billingAttemptsRule; + } + + /** + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. + * + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate billingDay(String billingDay) { + this.billingDay = billingDay; + return this; + } + + /** + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. + * + * @return billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. + */ + @JsonProperty(JSON_PROPERTY_BILLING_DAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBillingDay() { + return billingDay; + } + + /** + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. + * + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. + */ + @JsonProperty(JSON_PROPERTY_BILLING_DAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBillingDay(String billingDay) { + this.billingDay = billingDay; + } + + /** + * The number of transactions that can be performed within the given frequency. + * + * @param count The number of transactions that can be performed within the given frequency. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate count(String count) { + this.count = count; + return this; + } + + /** + * The number of transactions that can be performed within the given frequency. + * + * @return count The number of transactions that can be performed within the given frequency. + */ + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCount() { + return count; + } + + /** + * The number of transactions that can be performed within the given frequency. + * + * @param count The number of transactions that can be performed within the given frequency. + */ + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCount(String count) { + this.count = count; + } + + /** + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate currency(String currency) { + this.currency = currency; + return this; + } + + /** + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + */ + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCurrency() { + return currency; + } + + /** + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + */ + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(String currency) { + this.currency = currency; + } + + /** + * End date of the billing plan, in YYYY-MM-DD format. + * + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate endsAt(String endsAt) { + this.endsAt = endsAt; + return this; + } + + /** + * End date of the billing plan, in YYYY-MM-DD format. + * + * @return endsAt End date of the billing plan, in YYYY-MM-DD format. + */ + @JsonProperty(JSON_PROPERTY_ENDS_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEndsAt() { + return endsAt; + } + + /** + * End date of the billing plan, in YYYY-MM-DD format. + * + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. + */ + @JsonProperty(JSON_PROPERTY_ENDS_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndsAt(String endsAt) { + this.endsAt = endsAt; + } + + /** + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate frequency(FrequencyEnum frequency) { + this.frequency = frequency; + return this; + } + + /** + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @return frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. + */ + @JsonProperty(JSON_PROPERTY_FREQUENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FrequencyEnum getFrequency() { + return frequency; + } + + /** + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. + */ + @JsonProperty(JSON_PROPERTY_FREQUENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFrequency(FrequencyEnum frequency) { + this.frequency = frequency; + } + + /** + * The unique identifier of the mandate. + * + * @param mandateId The unique identifier of the mandate. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate mandateId(String mandateId) { + this.mandateId = mandateId; + return this; + } + + /** + * The unique identifier of the mandate. + * + * @return mandateId The unique identifier of the mandate. + */ + @JsonProperty(JSON_PROPERTY_MANDATE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMandateId() { + return mandateId; + } + + /** + * The unique identifier of the mandate. + * + * @param mandateId The unique identifier of the mandate. + */ + @JsonProperty(JSON_PROPERTY_MANDATE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMandateId(String mandateId) { + this.mandateId = mandateId; + } + + /** + * The masked account number associated with the mandate. + * + * @param maskedAccountId The masked account number associated with the mandate. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate maskedAccountId(String maskedAccountId) { + this.maskedAccountId = maskedAccountId; + return this; + } + + /** + * The masked account number associated with the mandate. + * + * @return maskedAccountId The masked account number associated with the mandate. + */ + @JsonProperty(JSON_PROPERTY_MASKED_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMaskedAccountId() { + return maskedAccountId; + } + + /** + * The masked account number associated with the mandate. + * + * @param maskedAccountId The masked account number associated with the mandate. + */ + @JsonProperty(JSON_PROPERTY_MASKED_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMaskedAccountId(String maskedAccountId) { + this.maskedAccountId = maskedAccountId; + } + + /** + * The provider-specific identifier for this mandate. + * + * @param providerId The provider-specific identifier for this mandate. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate providerId(String providerId) { + this.providerId = providerId; + return this; + } + + /** + * The provider-specific identifier for this mandate. + * + * @return providerId The provider-specific identifier for this mandate. + */ + @JsonProperty(JSON_PROPERTY_PROVIDER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProviderId() { + return providerId; + } + + /** + * The provider-specific identifier for this mandate. + * + * @param providerId The provider-specific identifier for this mandate. + */ + @JsonProperty(JSON_PROPERTY_PROVIDER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProviderId(String providerId) { + this.providerId = providerId; + } + + /** + * Additional remarks or notes about the mandate. + * + * @param remarks Additional remarks or notes about the mandate. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate remarks(String remarks) { + this.remarks = remarks; + return this; + } + + /** + * Additional remarks or notes about the mandate. + * + * @return remarks Additional remarks or notes about the mandate. + */ + @JsonProperty(JSON_PROPERTY_REMARKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRemarks() { + return remarks; + } + + /** + * Additional remarks or notes about the mandate. + * + * @param remarks Additional remarks or notes about the mandate. + */ + @JsonProperty(JSON_PROPERTY_REMARKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate startsAt(String startsAt) { + this.startsAt = startsAt; + return this; + } + + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. + */ + @JsonProperty(JSON_PROPERTY_STARTS_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStartsAt() { + return startsAt; + } + + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. + */ + @JsonProperty(JSON_PROPERTY_STARTS_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStartsAt(String startsAt) { + this.startsAt = startsAt; + } + + /** + * The status of the mandate. Examples : active, revoked, completed, expired + * + * @param status The status of the mandate. Examples : active, revoked, completed, expired + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate status(String status) { + this.status = status; + return this; + } + + /** + * The status of the mandate. Examples : active, revoked, completed, expired + * + * @return status The status of the mandate. Examples : active, revoked, completed, expired + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStatus() { + return status; + } + + /** + * The status of the mandate. Examples : active, revoked, completed, expired + * + * @param status The status of the mandate. Examples : active, revoked, completed, expired + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(String status) { + this.status = status; + } + + /** + * The transaction variant used for this mandate. + * + * @param txVariant The transaction variant used for this mandate. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate txVariant(String txVariant) { + this.txVariant = txVariant; + return this; + } + + /** + * The transaction variant used for this mandate. + * + * @return txVariant The transaction variant used for this mandate. + */ + @JsonProperty(JSON_PROPERTY_TX_VARIANT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTxVariant() { + return txVariant; + } + + /** + * The transaction variant used for this mandate. + * + * @param txVariant The transaction variant used for this mandate. + */ + @JsonProperty(JSON_PROPERTY_TX_VARIANT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTxVariant(String txVariant) { + this.txVariant = txVariant; + } + + /** Return true if this TokenMandate object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TokenMandate tokenMandate = (TokenMandate) o; + return Objects.equals(this.accountIdType, tokenMandate.accountIdType) + && Objects.equals(this.amount, tokenMandate.amount) + && Objects.equals(this.amountRule, tokenMandate.amountRule) + && Objects.equals(this.billingAttemptsRule, tokenMandate.billingAttemptsRule) + && Objects.equals(this.billingDay, tokenMandate.billingDay) + && Objects.equals(this.count, tokenMandate.count) + && Objects.equals(this.currency, tokenMandate.currency) + && Objects.equals(this.endsAt, tokenMandate.endsAt) + && Objects.equals(this.frequency, tokenMandate.frequency) + && Objects.equals(this.mandateId, tokenMandate.mandateId) + && Objects.equals(this.maskedAccountId, tokenMandate.maskedAccountId) + && Objects.equals(this.providerId, tokenMandate.providerId) + && Objects.equals(this.remarks, tokenMandate.remarks) + && Objects.equals(this.startsAt, tokenMandate.startsAt) + && Objects.equals(this.status, tokenMandate.status) + && Objects.equals(this.txVariant, tokenMandate.txVariant); + } + + @Override + public int hashCode() { + return Objects.hash( + accountIdType, + amount, + amountRule, + billingAttemptsRule, + billingDay, + count, + currency, + endsAt, + frequency, + mandateId, + maskedAccountId, + providerId, + remarks, + startsAt, + status, + txVariant); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TokenMandate {\n"); + sb.append(" accountIdType: ").append(toIndentedString(accountIdType)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" amountRule: ").append(toIndentedString(amountRule)).append("\n"); + sb.append(" billingAttemptsRule: ") + .append(toIndentedString(billingAttemptsRule)) + .append("\n"); + sb.append(" billingDay: ").append(toIndentedString(billingDay)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); + sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); + sb.append(" mandateId: ").append(toIndentedString(mandateId)).append("\n"); + sb.append(" maskedAccountId: ").append(toIndentedString(maskedAccountId)).append("\n"); + sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); + sb.append(" remarks: ").append(toIndentedString(remarks)).append("\n"); + sb.append(" startsAt: ").append(toIndentedString(startsAt)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" txVariant: ").append(toIndentedString(txVariant)).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 TokenMandate given an JSON string + * + * @param jsonString JSON string + * @return An instance of TokenMandate + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenMandate + */ + public static TokenMandate fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TokenMandate.class); + } + + /** + * Convert an instance of TokenMandate 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/TwintDetails.java b/src/main/java/com/adyen/model/checkout/TwintDetails.java index 03ecbd7eb..f1a88c362 100644 --- a/src/main/java/com/adyen/model/checkout/TwintDetails.java +++ b/src/main/java/com/adyen/model/checkout/TwintDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ TwintDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, TwintDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + TwintDetails.JSON_PROPERTY_SDK_DATA, TwintDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, TwintDetails.JSON_PROPERTY_SUBTYPE, TwintDetails.JSON_PROPERTY_TYPE @@ -37,6 +38,9 @@ public class TwintDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -165,6 +169,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code TwintDetails} instance, allowing for method chaining + */ + public TwintDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -282,6 +320,7 @@ public boolean equals(Object o) { TwintDetails twintDetails = (TwintDetails) o; return Objects.equals(this.checkoutAttemptId, twintDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, twintDetails.recurringDetailReference) + && Objects.equals(this.sdkData, twintDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, twintDetails.storedPaymentMethodId) && Objects.equals(this.subtype, twintDetails.subtype) && Objects.equals(this.type, twintDetails.type); @@ -290,7 +329,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type); + checkoutAttemptId, recurringDetailReference, sdkData, storedPaymentMethodId, subtype, type); } @Override @@ -301,6 +340,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java index bb75b9500..4b97e0100 100644 --- a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java @@ -26,6 +26,7 @@ UpiCollectDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, UpiCollectDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, UpiCollectDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + UpiCollectDetails.JSON_PROPERTY_SDK_DATA, UpiCollectDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, UpiCollectDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, UpiCollectDetails.JSON_PROPERTY_TYPE, @@ -42,6 +43,9 @@ public class UpiCollectDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -216,6 +220,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code UpiCollectDetails} instance, allowing for method chaining + */ + public UpiCollectDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used for recurring payment only. @@ -373,6 +411,7 @@ public boolean equals(Object o) { return Objects.equals(this.billingSequenceNumber, upiCollectDetails.billingSequenceNumber) && Objects.equals(this.checkoutAttemptId, upiCollectDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, upiCollectDetails.recurringDetailReference) + && Objects.equals(this.sdkData, upiCollectDetails.sdkData) && Objects.equals( this.shopperNotificationReference, upiCollectDetails.shopperNotificationReference) && Objects.equals(this.storedPaymentMethodId, upiCollectDetails.storedPaymentMethodId) @@ -386,6 +425,7 @@ public int hashCode() { billingSequenceNumber, checkoutAttemptId, recurringDetailReference, + sdkData, shopperNotificationReference, storedPaymentMethodId, type, @@ -403,6 +443,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java index c5571849a..be40f6d0c 100644 --- a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java @@ -27,6 +27,7 @@ UpiIntentDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, UpiIntentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, UpiIntentDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + UpiIntentDetails.JSON_PROPERTY_SDK_DATA, UpiIntentDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, UpiIntentDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, UpiIntentDetails.JSON_PROPERTY_TYPE @@ -45,6 +46,9 @@ public class UpiIntentDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -249,6 +253,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code UpiIntentDetails} instance, allowing for method chaining + */ + public UpiIntentDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used for recurring payment only. @@ -374,6 +412,7 @@ public boolean equals(Object o) { && Objects.equals(this.billingSequenceNumber, upiIntentDetails.billingSequenceNumber) && Objects.equals(this.checkoutAttemptId, upiIntentDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, upiIntentDetails.recurringDetailReference) + && Objects.equals(this.sdkData, upiIntentDetails.sdkData) && Objects.equals( this.shopperNotificationReference, upiIntentDetails.shopperNotificationReference) && Objects.equals(this.storedPaymentMethodId, upiIntentDetails.storedPaymentMethodId) @@ -387,6 +426,7 @@ public int hashCode() { billingSequenceNumber, checkoutAttemptId, recurringDetailReference, + sdkData, shopperNotificationReference, storedPaymentMethodId, type); @@ -404,6 +444,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java index 249a1a16d..d8f77ff27 100644 --- a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java @@ -26,6 +26,7 @@ UpiQrDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, UpiQrDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, UpiQrDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + UpiQrDetails.JSON_PROPERTY_SDK_DATA, UpiQrDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, UpiQrDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, UpiQrDetails.JSON_PROPERTY_TYPE @@ -41,6 +42,9 @@ public class UpiQrDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; @@ -212,6 +216,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code UpiQrDetails} instance, allowing for method chaining + */ + public UpiQrDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * The `shopperNotificationReference` returned in the response when you requested to * notify the shopper. Used for recurring payment only. @@ -336,6 +374,7 @@ public boolean equals(Object o) { return Objects.equals(this.billingSequenceNumber, upiQrDetails.billingSequenceNumber) && Objects.equals(this.checkoutAttemptId, upiQrDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, upiQrDetails.recurringDetailReference) + && Objects.equals(this.sdkData, upiQrDetails.sdkData) && Objects.equals( this.shopperNotificationReference, upiQrDetails.shopperNotificationReference) && Objects.equals(this.storedPaymentMethodId, upiQrDetails.storedPaymentMethodId) @@ -348,6 +387,7 @@ public int hashCode() { billingSequenceNumber, checkoutAttemptId, recurringDetailReference, + sdkData, shopperNotificationReference, storedPaymentMethodId, type); @@ -364,6 +404,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" shopperNotificationReference: ") .append(toIndentedString(shopperNotificationReference)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/VippsDetails.java b/src/main/java/com/adyen/model/checkout/VippsDetails.java index 40f1654e4..2ef5bac82 100644 --- a/src/main/java/com/adyen/model/checkout/VippsDetails.java +++ b/src/main/java/com/adyen/model/checkout/VippsDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ VippsDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VippsDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + VippsDetails.JSON_PROPERTY_SDK_DATA, VippsDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, VippsDetails.JSON_PROPERTY_TELEPHONE_NUMBER, VippsDetails.JSON_PROPERTY_TYPE @@ -37,6 +38,9 @@ public class VippsDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -165,6 +169,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code VippsDetails} instance, allowing for method chaining + */ + public VippsDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -276,6 +314,7 @@ public boolean equals(Object o) { VippsDetails vippsDetails = (VippsDetails) o; return Objects.equals(this.checkoutAttemptId, vippsDetails.checkoutAttemptId) && Objects.equals(this.recurringDetailReference, vippsDetails.recurringDetailReference) + && Objects.equals(this.sdkData, vippsDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, vippsDetails.storedPaymentMethodId) && Objects.equals(this.telephoneNumber, vippsDetails.telephoneNumber) && Objects.equals(this.type, vippsDetails.type); @@ -284,7 +323,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, telephoneNumber, type); + checkoutAttemptId, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + telephoneNumber, + type); } @Override @@ -295,6 +339,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java index e9bf15507..ea3bbb9b4 100644 --- a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java +++ b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java @@ -25,6 +25,7 @@ @JsonPropertyOrder({ VisaCheckoutDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VisaCheckoutDetails.JSON_PROPERTY_FUNDING_SOURCE, + VisaCheckoutDetails.JSON_PROPERTY_SDK_DATA, VisaCheckoutDetails.JSON_PROPERTY_TYPE, VisaCheckoutDetails.JSON_PROPERTY_VISA_CHECKOUT_CALL_ID }) @@ -79,6 +80,9 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private FundingSourceEnum fundingSource; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **visacheckout** */ public enum TypeEnum { VISACHECKOUT(String.valueOf("visacheckout")); @@ -201,6 +205,40 @@ public void setFundingSource(FundingSourceEnum fundingSource) { this.fundingSource = fundingSource; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code VisaCheckoutDetails} instance, allowing for method chaining + */ + public VisaCheckoutDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **visacheckout** * @@ -288,13 +326,14 @@ public boolean equals(Object o) { VisaCheckoutDetails visaCheckoutDetails = (VisaCheckoutDetails) o; return Objects.equals(this.checkoutAttemptId, visaCheckoutDetails.checkoutAttemptId) && Objects.equals(this.fundingSource, visaCheckoutDetails.fundingSource) + && Objects.equals(this.sdkData, visaCheckoutDetails.sdkData) && Objects.equals(this.type, visaCheckoutDetails.type) && Objects.equals(this.visaCheckoutCallId, visaCheckoutDetails.visaCheckoutCallId); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, type, visaCheckoutCallId); + return Objects.hash(checkoutAttemptId, fundingSource, sdkData, type, visaCheckoutCallId); } @Override @@ -303,6 +342,7 @@ public String toString() { sb.append("class VisaCheckoutDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" visaCheckoutCallId: ").append(toIndentedString(visaCheckoutCallId)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java index 74cabefcb..765d56fb8 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java @@ -24,12 +24,16 @@ /** WeChatPayDetails */ @JsonPropertyOrder({ WeChatPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + WeChatPayDetails.JSON_PROPERTY_SDK_DATA, WeChatPayDetails.JSON_PROPERTY_TYPE }) public class WeChatPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + /** **wechatpay** */ public enum TypeEnum { WECHATPAY(String.valueOf("wechatpay")), @@ -109,6 +113,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code WeChatPayDetails} instance, allowing for method chaining + */ + public WeChatPayDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * **wechatpay** * @@ -153,12 +191,13 @@ public boolean equals(Object o) { } WeChatPayDetails weChatPayDetails = (WeChatPayDetails) o; return Objects.equals(this.checkoutAttemptId, weChatPayDetails.checkoutAttemptId) + && Objects.equals(this.sdkData, weChatPayDetails.sdkData) && Objects.equals(this.type, weChatPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, type); + return Objects.hash(checkoutAttemptId, sdkData, type); } @Override @@ -166,6 +205,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WeChatPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index 9cb5ea8e1..da6f0f456 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -26,6 +26,9 @@ WeChatPayMiniProgramDetails.JSON_PROPERTY_APP_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_OPENID, + WeChatPayMiniProgramDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + WeChatPayMiniProgramDetails.JSON_PROPERTY_SDK_DATA, + WeChatPayMiniProgramDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_TYPE }) public class WeChatPayMiniProgramDetails { @@ -38,6 +41,16 @@ 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_SDK_DATA = "sdkData"; + private String sdkData; + + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; + private String storedPaymentMethodId; + /** **wechatpayMiniProgram** */ public enum TypeEnum { WECHATPAYMINIPROGRAM(String.valueOf("wechatpayMiniProgram")); @@ -181,6 +194,124 @@ 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; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining + */ + public WeChatPayMiniProgramDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + + /** + * 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 +358,24 @@ 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.sdkData, weChatPayMiniProgramDetails.sdkData) + && 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, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -242,6 +385,13 @@ 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(" sdkData: ").append(toIndentedString(sdkData)).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/checkout/ZipDetails.java b/src/main/java/com/adyen/model/checkout/ZipDetails.java index 368c13648..e8b0b303e 100644 --- a/src/main/java/com/adyen/model/checkout/ZipDetails.java +++ b/src/main/java/com/adyen/model/checkout/ZipDetails.java @@ -26,6 +26,7 @@ ZipDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, ZipDetails.JSON_PROPERTY_CLICK_AND_COLLECT, ZipDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + ZipDetails.JSON_PROPERTY_SDK_DATA, ZipDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ZipDetails.JSON_PROPERTY_TYPE }) @@ -40,6 +41,9 @@ public class ZipDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -206,6 +210,40 @@ public void setRecurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; } + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code ZipDetails} instance, allowing for method chaining + */ + public ZipDetails sdkData(String sdkData) { + this.sdkData = sdkData; + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + } + /** * This is the `recurringDetailReference` returned in the response when you created the * token. @@ -291,6 +329,7 @@ public boolean equals(Object o) { return Objects.equals(this.checkoutAttemptId, zipDetails.checkoutAttemptId) && Objects.equals(this.clickAndCollect, zipDetails.clickAndCollect) && Objects.equals(this.recurringDetailReference, zipDetails.recurringDetailReference) + && Objects.equals(this.sdkData, zipDetails.sdkData) && Objects.equals(this.storedPaymentMethodId, zipDetails.storedPaymentMethodId) && Objects.equals(this.type, zipDetails.type); } @@ -298,7 +337,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - checkoutAttemptId, clickAndCollect, recurringDetailReference, storedPaymentMethodId, type); + checkoutAttemptId, + clickAndCollect, + recurringDetailReference, + sdkData, + storedPaymentMethodId, + type); } @Override @@ -310,6 +354,7 @@ public String toString() { sb.append(" recurringDetailReference: ") .append(toIndentedString(recurringDetailReference)) .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); sb.append(" storedPaymentMethodId: ") .append(toIndentedString(storedPaymentMethodId)) .append("\n"); 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/model/management/AffirmInfo.java b/src/main/java/com/adyen/model/management/AffirmInfo.java index cd316e382..249545740 100644 --- a/src/main/java/com/adyen/model/management/AffirmInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmInfo.java @@ -11,20 +11,103 @@ package com.adyen.model.management; +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; /** AffirmInfo */ -@JsonPropertyOrder({AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL}) +@JsonPropertyOrder({AffirmInfo.JSON_PROPERTY_PRICE_PLAN, AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL}) public class AffirmInfo { + /** Merchant price plan */ + public enum PricePlanEnum { + BRONZE(String.valueOf("BRONZE")), + + SILVER(String.valueOf("SILVER")), + + GOLD(String.valueOf("GOLD")); + + private static final Logger LOG = Logger.getLogger(PricePlanEnum.class.getName()); + + private String value; + + PricePlanEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PricePlanEnum fromValue(String value) { + for (PricePlanEnum b : PricePlanEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "PricePlanEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PricePlanEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_PRICE_PLAN = "pricePlan"; + private PricePlanEnum pricePlan; + public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; public AffirmInfo() {} + /** + * Merchant price plan + * + * @param pricePlan Merchant price plan + * @return the current {@code AffirmInfo} instance, allowing for method chaining + */ + public AffirmInfo pricePlan(PricePlanEnum pricePlan) { + this.pricePlan = pricePlan; + return this; + } + + /** + * Merchant price plan + * + * @return pricePlan Merchant price plan + */ + @JsonProperty(JSON_PROPERTY_PRICE_PLAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PricePlanEnum getPricePlan() { + return pricePlan; + } + + /** + * Merchant price plan + * + * @param pricePlan Merchant price plan + */ + @JsonProperty(JSON_PROPERTY_PRICE_PLAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPricePlan(PricePlanEnum pricePlan) { + this.pricePlan = pricePlan; + } + /** * Merchant support email * @@ -68,18 +151,20 @@ public boolean equals(Object o) { return false; } AffirmInfo affirmInfo = (AffirmInfo) o; - return Objects.equals(this.supportEmail, affirmInfo.supportEmail); + return Objects.equals(this.pricePlan, affirmInfo.pricePlan) + && Objects.equals(this.supportEmail, affirmInfo.supportEmail); } @Override public int hashCode() { - return Objects.hash(supportEmail); + return Objects.hash(pricePlan, supportEmail); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AffirmInfo {\n"); + sb.append(" pricePlan: ").append(toIndentedString(pricePlan)).append("\n"); sb.append(" supportEmail: ").append(toIndentedString(supportEmail)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/management/CardholderReceipt.java b/src/main/java/com/adyen/model/management/CardholderReceipt.java index a4faacf84..9cc3bab5e 100644 --- a/src/main/java/com/adyen/model/management/CardholderReceipt.java +++ b/src/main/java/com/adyen/model/management/CardholderReceipt.java @@ -27,12 +27,16 @@ public class CardholderReceipt { public CardholderReceipt() {} /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` + * The structure of the header to show on the shopper receipt. You can define the order of one or + * two header lines and blank lines. For example, **header1,header2,filler**. The text of the + * header lines is defined in the Customer Area under **In-person payments** > **Terminal + * settings** > **Receipts** in the **Receipt lines** block. * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * @param headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. + * You can define the order of one or two header lines and blank lines. For example, + * **header1,header2,filler**. The text of the header lines is defined in the Customer Area + * under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt + * lines** block. * @return the current {@code CardholderReceipt} instance, allowing for method chaining */ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedReceipt) { @@ -41,12 +45,16 @@ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedRe } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` + * The structure of the header to show on the shopper receipt. You can define the order of one or + * two header lines and blank lines. For example, **header1,header2,filler**. The text of the + * header lines is defined in the Customer Area under **In-person payments** > **Terminal + * settings** > **Receipts** in the **Receipt lines** block. * - * @return headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * @return headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. + * You can define the order of one or two header lines and blank lines. For example, + * **header1,header2,filler**. The text of the header lines is defined in the Customer Area + * under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt + * lines** block. */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,12 +63,16 @@ public String getHeaderForAuthorizedReceipt() { } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` + * The structure of the header to show on the shopper receipt. You can define the order of one or + * two header lines and blank lines. For example, **header1,header2,filler**. The text of the + * header lines is defined in the Customer Area under **In-person payments** > **Terminal + * settings** > **Receipts** in the **Receipt lines** block. * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * @param headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. + * You can define the order of one or two header lines and blank lines. For example, + * **header1,header2,filler**. The text of the header lines is defined in the Customer Area + * under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt + * lines** block. */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/management/Key.java b/src/main/java/com/adyen/model/management/Key.java index 1c23741fd..0295dae4e 100644 --- a/src/main/java/com/adyen/model/management/Key.java +++ b/src/main/java/com/adyen/model/management/Key.java @@ -72,20 +72,21 @@ public void setIdentifier(String identifier) { * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. + * Limited to the following: `~`, `!`, `@`, `#`, + * `$`, `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, `{`, + * `]`, `[`, `;`, `:`, `?`, `.`, + * `,`, `>`, `<`. * * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * character. Limited to the following: `~`, `!`, `@`, + * `#`, `$`, `%`, `^`, `&`, + * `*`, `(`, `)`, `_`, `+`, + * `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, + * `>`, `<`. * @return the current {@code Key} instance, allowing for method chaining */ public Key passphrase(String passphrase) { @@ -97,20 +98,21 @@ public Key passphrase(String passphrase) { * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. + * Limited to the following: `~`, `!`, `@`, `#`, + * `$`, `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, `{`, + * `]`, `[`, `;`, `:`, `?`, `.`, + * `,`, `>`, `<`. * * @return passphrase The secure passphrase to protect the shared key. Must consist of: * At least * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * character. Limited to the following: `~`, `!`, `@`, + * `#`, `$`, `%`, `^`, `&`, + * `*`, `(`, `)`, `_`, `+`, + * `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, + * `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,20 +124,21 @@ public String getPassphrase() { * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. + * Limited to the following: `~`, `!`, `@`, `#`, + * `$`, `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, `{`, + * `]`, `[`, `;`, `:`, `?`, `.`, + * `,`, `>`, `<`. * * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * character. Limited to the following: `~`, `!`, `@`, + * `#`, `$`, `%`, `^`, `&`, + * `*`, `(`, `)`, `_`, `+`, + * `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, + * `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index 81968c2a0..471bb5e08 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -69,10 +69,12 @@ PaymentMethod.JSON_PROPERTY_SOFORT, PaymentMethod.JSON_PROPERTY_STAR, PaymentMethod.JSON_PROPERTY_STORE_IDS, + PaymentMethod.JSON_PROPERTY_SVS, PaymentMethod.JSON_PROPERTY_SWISH, PaymentMethod.JSON_PROPERTY_TICKET, PaymentMethod.JSON_PROPERTY_TWINT, PaymentMethod.JSON_PROPERTY_TYPE, + PaymentMethod.JSON_PROPERTY_VALUE_LINK, PaymentMethod.JSON_PROPERTY_VERIFICATION_STATUS, PaymentMethod.JSON_PROPERTY_VIPPS, PaymentMethod.JSON_PROPERTY_VISA, @@ -212,6 +214,9 @@ public class PaymentMethod { public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; private List storeIds; + public static final String JSON_PROPERTY_SVS = "svs"; + private SvsInfo svs; + public static final String JSON_PROPERTY_SWISH = "swish"; private SwishInfo swish; @@ -224,6 +229,9 @@ public class PaymentMethod { public static final String JSON_PROPERTY_TYPE = "type"; private String type; + public static final String JSON_PROPERTY_VALUE_LINK = "valueLink"; + private ValueLinkInfo valueLink; + /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @@ -1805,6 +1813,39 @@ public void setStoreIds(List storeIds) { this.storeIds = storeIds; } + /** + * svs + * + * @param svs + * @return the current {@code PaymentMethod} instance, allowing for method chaining + */ + public PaymentMethod svs(SvsInfo svs) { + this.svs = svs; + return this; + } + + /** + * Get svs + * + * @return svs + */ + @JsonProperty(JSON_PROPERTY_SVS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SvsInfo getSvs() { + return svs; + } + + /** + * svs + * + * @param svs + */ + @JsonProperty(JSON_PROPERTY_SVS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSvs(SvsInfo svs) { + this.svs = svs; + } + /** * swish * @@ -1943,6 +1984,39 @@ public void setType(String type) { this.type = type; } + /** + * valueLink + * + * @param valueLink + * @return the current {@code PaymentMethod} instance, allowing for method chaining + */ + public PaymentMethod valueLink(ValueLinkInfo valueLink) { + this.valueLink = valueLink; + return this; + } + + /** + * Get valueLink + * + * @return valueLink + */ + @JsonProperty(JSON_PROPERTY_VALUE_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ValueLinkInfo getValueLink() { + return valueLink; + } + + /** + * valueLink + * + * @param valueLink + */ + @JsonProperty(JSON_PROPERTY_VALUE_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValueLink(ValueLinkInfo valueLink) { + this.valueLink = valueLink; + } + /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * @@ -2165,10 +2239,12 @@ public boolean equals(Object o) { && Objects.equals(this.sofort, paymentMethod.sofort) && Objects.equals(this.star, paymentMethod.star) && Objects.equals(this.storeIds, paymentMethod.storeIds) + && Objects.equals(this.svs, paymentMethod.svs) && Objects.equals(this.swish, paymentMethod.swish) && Objects.equals(this.ticket, paymentMethod.ticket) && Objects.equals(this.twint, paymentMethod.twint) && Objects.equals(this.type, paymentMethod.type) + && Objects.equals(this.valueLink, paymentMethod.valueLink) && Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) && Objects.equals(this.vipps, paymentMethod.vipps) && Objects.equals(this.visa, paymentMethod.visa) @@ -2223,10 +2299,12 @@ public int hashCode() { sofort, star, storeIds, + svs, swish, ticket, twint, type, + valueLink, verificationStatus, vipps, visa, @@ -2282,10 +2360,12 @@ public String toString() { sb.append(" sofort: ").append(toIndentedString(sofort)).append("\n"); sb.append(" star: ").append(toIndentedString(star)).append("\n"); sb.append(" storeIds: ").append(toIndentedString(storeIds)).append("\n"); + sb.append(" svs: ").append(toIndentedString(svs)).append("\n"); sb.append(" swish: ").append(toIndentedString(swish)).append("\n"); sb.append(" ticket: ").append(toIndentedString(ticket)).append("\n"); sb.append(" twint: ").append(toIndentedString(twint)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" valueLink: ").append(toIndentedString(valueLink)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append(" vipps: ").append(toIndentedString(vipps)).append("\n"); sb.append(" visa: ").append(toIndentedString(visa)).append("\n"); diff --git a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java index a357228f5..f411d3404 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java @@ -174,6 +174,8 @@ public enum TypesWithErrorsEnum { KLARNA_ACCOUNT(String.valueOf("klarna_account")), + KLARNA_B2B(String.valueOf("klarna_b2b")), + KLARNA_PAYNOW(String.valueOf("klarna_paynow")), LE_CARD(String.valueOf("le_card")), @@ -256,6 +258,8 @@ public enum TypesWithErrorsEnum { STAR(String.valueOf("star")), + SVS(String.valueOf("svs")), + SWISH(String.valueOf("swish")), TICKET(String.valueOf("ticket")), @@ -280,6 +284,8 @@ public enum TypesWithErrorsEnum { VALE_REFEICAO_PREPAID(String.valueOf("vale_refeicao_prepaid")), + VALUELINK(String.valueOf("valueLink")), + VEGAS_CARD(String.valueOf("vegas_card")), VEGAS_CARD_CREDIT(String.valueOf("vegas_card_credit")), diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index 2c4527c64..c913544c2 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -66,10 +66,12 @@ PaymentMethodSetupInfo.JSON_PROPERTY_SOFORT, PaymentMethodSetupInfo.JSON_PROPERTY_STAR, PaymentMethodSetupInfo.JSON_PROPERTY_STORE_IDS, + PaymentMethodSetupInfo.JSON_PROPERTY_SVS, PaymentMethodSetupInfo.JSON_PROPERTY_SWISH, PaymentMethodSetupInfo.JSON_PROPERTY_TICKET, PaymentMethodSetupInfo.JSON_PROPERTY_TWINT, PaymentMethodSetupInfo.JSON_PROPERTY_TYPE, + PaymentMethodSetupInfo.JSON_PROPERTY_VALUE_LINK, PaymentMethodSetupInfo.JSON_PROPERTY_VIPPS, PaymentMethodSetupInfo.JSON_PROPERTY_VISA, PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY, @@ -248,6 +250,9 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; private List storeIds; + public static final String JSON_PROPERTY_SVS = "svs"; + private SvsInfo svs; + public static final String JSON_PROPERTY_SWISH = "swish"; private SwishInfo swish; @@ -390,6 +395,8 @@ public enum TypeEnum { KLARNA_ACCOUNT(String.valueOf("klarna_account")), + KLARNA_B2B(String.valueOf("klarna_b2b")), + KLARNA_PAYNOW(String.valueOf("klarna_paynow")), LE_CARD(String.valueOf("le_card")), @@ -472,6 +479,8 @@ public enum TypeEnum { STAR(String.valueOf("star")), + SVS(String.valueOf("svs")), + SWISH(String.valueOf("swish")), TICKET(String.valueOf("ticket")), @@ -496,6 +505,8 @@ public enum TypeEnum { VALE_REFEICAO_PREPAID(String.valueOf("vale_refeicao_prepaid")), + VALUELINK(String.valueOf("valueLink")), + VEGAS_CARD(String.valueOf("vegas_card")), VEGAS_CARD_CREDIT(String.valueOf("vegas_card_credit")), @@ -560,6 +571,9 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; + public static final String JSON_PROPERTY_VALUE_LINK = "valueLink"; + private ValueLinkInfo valueLink; + public static final String JSON_PROPERTY_VIPPS = "vipps"; private VippsInfo vipps; @@ -1995,6 +2009,39 @@ public void setStoreIds(List storeIds) { this.storeIds = storeIds; } + /** + * svs + * + * @param svs + * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining + */ + public PaymentMethodSetupInfo svs(SvsInfo svs) { + this.svs = svs; + return this; + } + + /** + * Get svs + * + * @return svs + */ + @JsonProperty(JSON_PROPERTY_SVS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SvsInfo getSvs() { + return svs; + } + + /** + * svs + * + * @param svs + */ + @JsonProperty(JSON_PROPERTY_SVS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSvs(SvsInfo svs) { + this.svs = svs; + } + /** * swish * @@ -2133,6 +2180,39 @@ public void setType(TypeEnum type) { this.type = type; } + /** + * valueLink + * + * @param valueLink + * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining + */ + public PaymentMethodSetupInfo valueLink(ValueLinkInfo valueLink) { + this.valueLink = valueLink; + return this; + } + + /** + * Get valueLink + * + * @return valueLink + */ + @JsonProperty(JSON_PROPERTY_VALUE_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ValueLinkInfo getValueLink() { + return valueLink; + } + + /** + * valueLink + * + * @param valueLink + */ + @JsonProperty(JSON_PROPERTY_VALUE_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValueLink(ValueLinkInfo valueLink) { + this.valueLink = valueLink; + } + /** * vipps * @@ -2316,10 +2396,12 @@ public boolean equals(Object o) { && Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) && Objects.equals(this.star, paymentMethodSetupInfo.star) && Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) + && Objects.equals(this.svs, paymentMethodSetupInfo.svs) && Objects.equals(this.swish, paymentMethodSetupInfo.swish) && Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) && Objects.equals(this.twint, paymentMethodSetupInfo.twint) && Objects.equals(this.type, paymentMethodSetupInfo.type) + && Objects.equals(this.valueLink, paymentMethodSetupInfo.valueLink) && Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) && Objects.equals(this.visa, paymentMethodSetupInfo.visa) && Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) @@ -2370,10 +2452,12 @@ public int hashCode() { sofort, star, storeIds, + svs, swish, ticket, twint, type, + valueLink, vipps, visa, wechatpay, @@ -2425,10 +2509,12 @@ public String toString() { sb.append(" sofort: ").append(toIndentedString(sofort)).append("\n"); sb.append(" star: ").append(toIndentedString(star)).append("\n"); sb.append(" storeIds: ").append(toIndentedString(storeIds)).append("\n"); + sb.append(" svs: ").append(toIndentedString(svs)).append("\n"); sb.append(" swish: ").append(toIndentedString(swish)).append("\n"); sb.append(" ticket: ").append(toIndentedString(ticket)).append("\n"); sb.append(" twint: ").append(toIndentedString(twint)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" valueLink: ").append(toIndentedString(valueLink)).append("\n"); sb.append(" vipps: ").append(toIndentedString(vipps)).append("\n"); sb.append(" visa: ").append(toIndentedString(visa)).append("\n"); sb.append(" wechatpay: ").append(toIndentedString(wechatpay)).append("\n"); diff --git a/src/main/java/com/adyen/model/management/SvsInfo.java b/src/main/java/com/adyen/model/management/SvsInfo.java new file mode 100644 index 000000000..ee099dea7 --- /dev/null +++ b/src/main/java/com/adyen/model/management/SvsInfo.java @@ -0,0 +1,155 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.management; + +import 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.*; + +/** SvsInfo */ +@JsonPropertyOrder({SvsInfo.JSON_PROPERTY_AUTHORISATION_MID, SvsInfo.JSON_PROPERTY_CURRENCY_CODE}) +public class SvsInfo { + public static final String JSON_PROPERTY_AUTHORISATION_MID = "authorisationMid"; + private String authorisationMid; + + public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; + private String currencyCode; + + public SvsInfo() {} + + /** + * Authorisation Mid + * + * @param authorisationMid Authorisation Mid + * @return the current {@code SvsInfo} instance, allowing for method chaining + */ + public SvsInfo authorisationMid(String authorisationMid) { + this.authorisationMid = authorisationMid; + return this; + } + + /** + * Authorisation Mid + * + * @return authorisationMid Authorisation Mid + */ + @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAuthorisationMid() { + return authorisationMid; + } + + /** + * Authorisation Mid + * + * @param authorisationMid Authorisation Mid + */ + @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAuthorisationMid(String authorisationMid) { + this.authorisationMid = authorisationMid; + } + + /** + * CurrencyCode + * + * @param currencyCode CurrencyCode + * @return the current {@code SvsInfo} instance, allowing for method chaining + */ + public SvsInfo currencyCode(String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * CurrencyCode + * + * @return currencyCode CurrencyCode + */ + @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCurrencyCode() { + return currencyCode; + } + + /** + * CurrencyCode + * + * @param currencyCode CurrencyCode + */ + @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrencyCode(String currencyCode) { + this.currencyCode = currencyCode; + } + + /** Return true if this SvsInfo object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SvsInfo svsInfo = (SvsInfo) o; + return Objects.equals(this.authorisationMid, svsInfo.authorisationMid) + && Objects.equals(this.currencyCode, svsInfo.currencyCode); + } + + @Override + public int hashCode() { + return Objects.hash(authorisationMid, currencyCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SvsInfo {\n"); + sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).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 SvsInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of SvsInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to SvsInfo + */ + public static SvsInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, SvsInfo.class); + } + + /** + * Convert an instance of SvsInfo 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/management/ValueLinkInfo.java b/src/main/java/com/adyen/model/management/ValueLinkInfo.java new file mode 100644 index 000000000..154bcec2b --- /dev/null +++ b/src/main/java/com/adyen/model/management/ValueLinkInfo.java @@ -0,0 +1,281 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.management; + +import 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; + +/** ValueLinkInfo */ +@JsonPropertyOrder({ + ValueLinkInfo.JSON_PROPERTY_AUTHORISATION_MID, + ValueLinkInfo.JSON_PROPERTY_PIN_SUPPORT, + ValueLinkInfo.JSON_PROPERTY_SUBMITTER_ID, + ValueLinkInfo.JSON_PROPERTY_TERMINAL_ID +}) +public class ValueLinkInfo { + public static final String JSON_PROPERTY_AUTHORISATION_MID = "authorisationMid"; + private String authorisationMid; + + /** PIN Support. For ecommerce, PIN is required. */ + public enum PinSupportEnum { + PIN(String.valueOf("PIN")), + + NO_PIN(String.valueOf("NO PIN")); + + private static final Logger LOG = Logger.getLogger(PinSupportEnum.class.getName()); + + private String value; + + PinSupportEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PinSupportEnum fromValue(String value) { + for (PinSupportEnum b : PinSupportEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "PinSupportEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PinSupportEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_PIN_SUPPORT = "pinSupport"; + private PinSupportEnum pinSupport; + + public static final String JSON_PROPERTY_SUBMITTER_ID = "submitterId"; + private String submitterId; + + public static final String JSON_PROPERTY_TERMINAL_ID = "terminalId"; + private String terminalId; + + public ValueLinkInfo() {} + + /** + * Authorisation Mid + * + * @param authorisationMid Authorisation Mid + * @return the current {@code ValueLinkInfo} instance, allowing for method chaining + */ + public ValueLinkInfo authorisationMid(String authorisationMid) { + this.authorisationMid = authorisationMid; + return this; + } + + /** + * Authorisation Mid + * + * @return authorisationMid Authorisation Mid + */ + @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAuthorisationMid() { + return authorisationMid; + } + + /** + * Authorisation Mid + * + * @param authorisationMid Authorisation Mid + */ + @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAuthorisationMid(String authorisationMid) { + this.authorisationMid = authorisationMid; + } + + /** + * PIN Support. For ecommerce, PIN is required. + * + * @param pinSupport PIN Support. For ecommerce, PIN is required. + * @return the current {@code ValueLinkInfo} instance, allowing for method chaining + */ + public ValueLinkInfo pinSupport(PinSupportEnum pinSupport) { + this.pinSupport = pinSupport; + return this; + } + + /** + * PIN Support. For ecommerce, PIN is required. + * + * @return pinSupport PIN Support. For ecommerce, PIN is required. + */ + @JsonProperty(JSON_PROPERTY_PIN_SUPPORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PinSupportEnum getPinSupport() { + return pinSupport; + } + + /** + * PIN Support. For ecommerce, PIN is required. + * + * @param pinSupport PIN Support. For ecommerce, PIN is required. + */ + @JsonProperty(JSON_PROPERTY_PIN_SUPPORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPinSupport(PinSupportEnum pinSupport) { + this.pinSupport = pinSupport; + } + + /** + * Submitter ID + * + * @param submitterId Submitter ID + * @return the current {@code ValueLinkInfo} instance, allowing for method chaining + */ + public ValueLinkInfo submitterId(String submitterId) { + this.submitterId = submitterId; + return this; + } + + /** + * Submitter ID + * + * @return submitterId Submitter ID + */ + @JsonProperty(JSON_PROPERTY_SUBMITTER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSubmitterId() { + return submitterId; + } + + /** + * Submitter ID + * + * @param submitterId Submitter ID + */ + @JsonProperty(JSON_PROPERTY_SUBMITTER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubmitterId(String submitterId) { + this.submitterId = submitterId; + } + + /** + * Terminal ID + * + * @param terminalId Terminal ID + * @return the current {@code ValueLinkInfo} instance, allowing for method chaining + */ + public ValueLinkInfo terminalId(String terminalId) { + this.terminalId = terminalId; + return this; + } + + /** + * Terminal ID + * + * @return terminalId Terminal ID + */ + @JsonProperty(JSON_PROPERTY_TERMINAL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTerminalId() { + return terminalId; + } + + /** + * Terminal ID + * + * @param terminalId Terminal ID + */ + @JsonProperty(JSON_PROPERTY_TERMINAL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTerminalId(String terminalId) { + this.terminalId = terminalId; + } + + /** Return true if this ValueLinkInfo object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueLinkInfo valueLinkInfo = (ValueLinkInfo) o; + return Objects.equals(this.authorisationMid, valueLinkInfo.authorisationMid) + && Objects.equals(this.pinSupport, valueLinkInfo.pinSupport) + && Objects.equals(this.submitterId, valueLinkInfo.submitterId) + && Objects.equals(this.terminalId, valueLinkInfo.terminalId); + } + + @Override + public int hashCode() { + return Objects.hash(authorisationMid, pinSupport, submitterId, terminalId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueLinkInfo {\n"); + sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); + sb.append(" pinSupport: ").append(toIndentedString(pinSupport)).append("\n"); + sb.append(" submitterId: ").append(toIndentedString(submitterId)).append("\n"); + sb.append(" terminalId: ").append(toIndentedString(terminalId)).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 ValueLinkInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueLinkInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to ValueLinkInfo + */ + public static ValueLinkInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ValueLinkInfo.class); + } + + /** + * Convert an instance of ValueLinkInfo 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/payment/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java index 245e2d8af..9791e8f51 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java @@ -397,15 +397,16 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * @@ -421,15 +422,16 @@ public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item * in a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * @@ -443,15 +445,16 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { /** * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * different commodity coding schemes: * [UNSPSC commodity + * codes](https://www.ungm.org/public/unspsc) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * * Must not start with a space or be all spaces. * Must not be all zeros. * * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity * codes](https://www.census.gov/naics/) * [NAPCS commodity * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest.java b/src/main/java/com/adyen/model/payment/PaymentRequest.java index 455a4acbd..f9f47f40a 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest.java @@ -1209,18 +1209,18 @@ public void setInstallments(Installments installments) { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1239,18 +1239,18 @@ public PaymentRequest putLocalizedShopperStatementItem( /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1260,18 +1260,18 @@ public Map getLocalizedShopperStatement() { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java index c2f1e9601..03030be1c 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java @@ -880,18 +880,18 @@ public void setInstallments(Installments installments) { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d localizedShopperStatement(Map localizedShopperStatement) { @@ -910,18 +910,18 @@ public PaymentRequest3d putLocalizedShopperStatementItem( /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -931,18 +931,18 @@ public Map getLocalizedShopperStatement() { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java index f4bdf2bca..39c151bdd 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java @@ -880,18 +880,18 @@ public void setInstallments(Installments installments) { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 localizedShopperStatement( @@ -911,18 +911,18 @@ public PaymentRequest3ds2 putLocalizedShopperStatementItem( /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -932,18 +932,18 @@ public Map getLocalizedShopperStatement() { /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * statement in a local character set. If this parameter is left empty, not provided, or not + * applicable (in case of cross-border transactions), then **shopperStatement** is used. + * Currently, `localizedShopperStatement` is only supported for payments with Visa, + * Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and + * alphanumeric. * * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * dynamic values for your shopper statement in a local character set. If this parameter is + * left empty, not provided, or not applicable (in case of cross-border transactions), then + * **shopperStatement** is used. Currently, `localizedShopperStatement` is only + * supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported + * characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java index 3305aeb70..2fcd19cd9 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java @@ -21,6 +21,7 @@ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, + ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) public class ResponseAdditionalDataSepa { @@ -31,6 +32,10 @@ public class ResponseAdditionalDataSepa { public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE = + "sepadirectdebit.sepadirectdebit.dueDate"; + private String sepadirectdebitSepadirectdebitDueDate; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; @@ -107,6 +112,44 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { this.sepadirectdebitMandateId = sepadirectdebitMandateId; } + /** + * The date that the the shopper's bank account is charged. + * + * @param sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining + */ + public ResponseAdditionalDataSepa sepadirectdebitSepadirectdebitDueDate( + String sepadirectdebitSepadirectdebitDueDate) { + this.sepadirectdebitSepadirectdebitDueDate = sepadirectdebitSepadirectdebitDueDate; + return this; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @return sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + */ + @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSepadirectdebitSepadirectdebitDueDate() { + return sepadirectdebitSepadirectdebitDueDate; + } + + /** + * The date that the the shopper's bank account is charged. + * + * @param sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account + * is charged. + */ + @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEPADIRECTDEBIT_DUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSepadirectdebitSepadirectdebitDueDate( + String sepadirectdebitSepadirectdebitDueDate) { + this.sepadirectdebitSepadirectdebitDueDate = sepadirectdebitSepadirectdebitDueDate; + } + /** * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a @@ -183,6 +226,9 @@ public boolean equals(Object o) { responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && Objects.equals( this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) + && Objects.equals( + this.sepadirectdebitSepadirectdebitDueDate, + responseAdditionalDataSepa.sepadirectdebitSepadirectdebitDueDate) && Objects.equals( this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); @@ -191,7 +237,10 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + sepadirectdebitDateOfSignature, + sepadirectdebitMandateId, + sepadirectdebitSepadirectdebitDueDate, + sepadirectdebitSequenceType); } @Override @@ -204,6 +253,9 @@ public String toString() { sb.append(" sepadirectdebitMandateId: ") .append(toIndentedString(sepadirectdebitMandateId)) .append("\n"); + sb.append(" sepadirectdebitSepadirectdebitDueDate: ") + .append(toIndentedString(sepadirectdebitSepadirectdebitDueDate)) + .append("\n"); sb.append(" sepadirectdebitSequenceType: ") .append(toIndentedString(sepadirectdebitSequenceType)) .append("\n"); 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 =